2 # From configure.ac Revision: 1.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.2.
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.2'
428 PACKAGE_STRING='GRAS 0.0.2'
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 HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid HAVE_SG_TRUE HAVE_SG_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING SED 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.2 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.2:";;
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-gtk-doc use gtk-doc to build documentation default=no
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
1045 --enable-iso-c Try to warn if code is not ISO C
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051 --with-pic try to use only PIC/non-PIC objects [default=use
1054 include additional configurations [automatic]
1055 --with-html-dir=PATH path to installed docs
1056 --with-SimGrid=DIR root directory of the SimGrid simulator installation
1057 --with-SimGrid-includes=DIR
1058 specify exact include dir for the SimGrid simulator headers
1059 --with-SimGrid-libraries=DIR
1060 specify exact library dir for the SimGrid simulator library
1061 --with-SimGrid-extra=ARG
1062 specify extra args to pass to the linker to get the
1063 the SimGrid simulator library (with no space. A sed to change "!"
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 GRAS configure 0.0.2
1180 generated by GNU Autoconf 2.59
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1193 It was created by GRAS $as_me 0.0.2, which was
1194 generated by GNU Autoconf 2.59. Invocation command line was
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228 test -z "$as_dir" && as_dir=.
1229 echo "PATH: $as_dir"
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_must_keep_next=false
1259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270 if test $ac_must_keep_next = true; then
1271 ac_must_keep_next=false # Got value, back to normal.
1274 *=* | --config-cache | -C | -disable-* | --disable-* \
1275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277 | -with-* | --with-* | -without-* | --without-* | --x)
1278 case "$ac_configure_args0 " in
1279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 -* ) ac_must_keep_next=true ;;
1285 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286 # Get rid of the leading space.
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log. We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301 # Save into config.log some information that might help in debugging.
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1311 # The following way of writing the cache mishandles newlines in values,
1314 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1334 for ac_var in $ac_subst_vars
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -n "$ac_subst_files"; then
1348 for ac_var in $ac_subst_files
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1356 if test -s confdefs.h; then
1363 sed "/^$/d" confdefs.h | sort
1366 test "$ac_signal" != 0 &&
1367 echo "$as_me: caught signal $ac_signal"
1368 echo "$as_me: exit $exit_status"
1370 rm -f core *.core &&
1371 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 for ac_signal in 1 2 13 15; do
1375 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 # Predefined preprocessor variables.
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414 if test "x$prefix" != xNONE; then
1415 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 for ac_site_file in $CONFIG_SITE; do
1421 if test -r "$ac_site_file"; then
1422 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424 sed 's/^/| /' "$ac_site_file" >&5
1429 if test -r "$cache_file"; then
1430 # Some versions of bash will fail to source /dev/null (special
1431 # files actually), so we avoid doing that.
1432 if test -f "$cache_file"; then
1433 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1436 [\\/]* | ?:[\\/]* ) . $cache_file;;
1437 *) . ./$cache_file;;
1441 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1446 # Check that the precious variables saved in the cache have kept the same
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452 eval ac_new_set=\$ac_env_${ac_var}_set
1453 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454 eval ac_new_val="\$ac_env_${ac_var}_value"
1455 case $ac_old_set,$ac_new_set in
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1466 if test "x$ac_old_val" != "x$ac_new_val"; then
1467 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1470 echo "$as_me: former value: $ac_old_val" >&2;}
1471 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1472 echo "$as_me: current value: $ac_new_val" >&2;}
1473 ac_cache_corrupted=:
1476 # Pass precious variables to config.status.
1477 if test "$ac_new_set" = set; then
1479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 *) ac_arg=$ac_var=$ac_new_val ;;
1483 case " $ac_configure_args " in
1484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1485 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 if $ac_cache_corrupted; then
1490 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494 { (exit 1); exit 1; }; }
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 elif test -f $ac_dir/install.sh; then
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 elif test -f $ac_dir/shtool; then
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561 { (exit 1); exit 1; }; }
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596 ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618 ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636 test "$program_prefix$program_suffix$program_transform_name" = \
1638 program_prefix=${target_alias}-
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1646 ac_config_headers="$ac_config_headers src/gras_config.h"
1648 am__api_version="1.8"
1649 # Find a good install program. We prefer a C program (faster),
1650 # so one script is as good as another. But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # OS/2's system install, which has a completely different semantic
1661 # ./install, which can be erroneously created by make from ./install.sh.
1662 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1664 if test -z "$INSTALL"; then
1665 if test "${ac_cv_path_install+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 # Account for people who put trailing slashes in PATH elements.
1675 ./ | .// | /cC/* | \
1676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1677 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680 # OSF1 and SCO ODT 3.0 have their own names for install.
1681 # Don't use installbsd from OSF since it installs stuff as root
1683 for ac_prog in ginstall scoinst install; do
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1686 if test $ac_prog = install &&
1687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688 # AIX install. It has an incompatible calling convention.
1690 elif test $ac_prog = install &&
1691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692 # program-specific install script used by HP pwplus--don't use.
1695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1707 if test "${ac_cv_path_install+set}" = set; then
1708 INSTALL=$ac_cv_path_install
1710 # As a last resort, use the slow shell script. We don't cache a
1711 # path for INSTALL within a source directory, because that will
1712 # break other packages using the cache if that directory is
1713 # removed, or if the path is relative.
1714 INSTALL=$ac_install_sh
1717 echo "$as_me:$LINENO: result: $INSTALL" >&5
1718 echo "${ECHO_T}$INSTALL" >&6
1720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721 # It thinks the first close brace ends the variable substitution.
1722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1728 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1729 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1732 echo timestamp > conftest.file
1733 # Do `set' in a subshell so we don't clobber the current shell's
1734 # arguments. Must try -L first in case configure is actually a
1735 # symlink; some systems play weird games with the mod time of symlinks
1736 # (eg FreeBSD returns the mod time of the symlink's containing
1739 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1740 if test "$*" = "X"; then
1742 set X `ls -t $srcdir/configure conftest.file`
1745 if test "$*" != "X $srcdir/configure conftest.file" \
1746 && test "$*" != "X conftest.file $srcdir/configure"; then
1748 # If neither matched, then we have a broken ls. This can happen
1749 # if, for instance, CONFIG_SHELL is bash and it inherits a
1750 # broken ls alias from the environment. This has actually
1751 # happened. Such a system could not be considered "sane".
1752 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1753 alias in your environment" >&5
1754 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1755 alias in your environment" >&2;}
1756 { (exit 1); exit 1; }; }
1759 test "$2" = conftest.file
1765 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1766 Check your system clock" >&5
1767 echo "$as_me: error: newly created file is older than distributed files!
1768 Check your system clock" >&2;}
1769 { (exit 1); exit 1; }; }
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773 test "$program_prefix" != NONE &&
1774 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1775 # Use a double $ so make ignores it.
1776 test "$program_suffix" != NONE &&
1777 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1778 # Double any \ or $. echo might interpret backslashes.
1779 # By default was `s,x,x', remove it if useless.
1780 cat <<\_ACEOF >conftest.sed
1781 s/[\\$]/&&/g;s/;s,x,x,$//
1783 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1786 # expand $ac_aux_dir to an absolute path
1787 am_aux_dir=`cd $ac_aux_dir && pwd`
1789 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1790 # Use eval to expand $SHELL
1791 if eval "$MISSING --run true"; then
1792 am_missing_run="$MISSING --run "
1795 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1796 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1799 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1800 # Keeping the `.' argument allows $(mkdir_p) to be used without
1801 # argument. Indeed, we sometimes output rules like
1802 # $(mkdir_p) $(somedir)
1803 # where $(somedir) is conditionally defined.
1804 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1805 # expensive solution, as it forces Make to start a sub-shell.)
1806 mkdir_p='mkdir -p -- .'
1808 # On NextStep and OpenStep, the `mkdir' command does not
1809 # recognize any option. It will interpret all options as
1810 # directories to create, and then abort because `.' already
1812 for d in ./-p ./--version;
1814 test -d $d && rmdir $d
1816 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1817 if test -f "$ac_aux_dir/mkinstalldirs"; then
1818 mkdir_p='$(mkinstalldirs)'
1820 mkdir_p='$(install_sh) -d'
1824 for ac_prog in gawk mawk nawk awk
1826 # Extract the first word of "$ac_prog", so it can be a program name with args.
1827 set dummy $ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_AWK+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$AWK"; then
1834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_AWK="$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$AWK"; then
1854 echo "$as_me:$LINENO: result: $AWK" >&5
1855 echo "${ECHO_T}$AWK" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$AWK" && break
1864 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1865 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1866 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1867 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 cat >conftest.make <<\_ACEOF
1872 @echo 'ac_maketemp="$(MAKE)"'
1874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1875 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1876 if test -n "$ac_maketemp"; then
1877 eval ac_cv_prog_make_${ac_make}_set=yes
1879 eval ac_cv_prog_make_${ac_make}_set=no
1883 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1884 echo "$as_me:$LINENO: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 SET_MAKE="MAKE=${MAKE-make}"
1893 rm -rf .tst 2>/dev/null
1894 mkdir .tst 2>/dev/null
1895 if test -d .tst; then
1900 rmdir .tst 2>/dev/null
1902 # test to see if srcdir already configured
1903 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1904 test -f $srcdir/config.status; then
1905 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1906 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1907 { (exit 1); exit 1; }; }
1910 # test whether we have cygpath
1911 if test -z "$CYGPATH_W"; then
1912 if (cygpath --version) >/dev/null 2>/dev/null; then
1913 CYGPATH_W='cygpath -w'
1920 # Define the identity of the package.
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE "$PACKAGE"
1930 cat >>confdefs.h <<_ACEOF
1931 #define VERSION "$VERSION"
1934 # Some tools Automake needs.
1936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1951 AMTAR=${AMTAR-"${am_missing_run}tar"}
1953 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1955 # Installed binaries are usually stripped using `strip' when the user
1956 # run `make install-strip'. However `strip' might not be the right
1957 # tool to use in cross-compilation environments, therefore Automake
1958 # will honor the `STRIP' environment variable to overrule this program.
1959 if test "$cross_compiling" != no; then
1960 if test -n "$ac_tool_prefix"; then
1961 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}strip; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_STRIP+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$STRIP"; then
1969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 STRIP=$ac_cv_prog_STRIP
1988 if test -n "$STRIP"; then
1989 echo "$as_me:$LINENO: result: $STRIP" >&5
1990 echo "${ECHO_T}$STRIP" >&6
1992 echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1997 if test -z "$ac_cv_prog_STRIP"; then
1999 # Extract the first word of "strip", so it can be a program name with args.
2000 set dummy strip; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_STRIP"; then
2007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_STRIP="strip"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2027 if test -n "$ac_ct_STRIP"; then
2028 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2029 echo "${ECHO_T}$ac_ct_STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2037 STRIP="$ac_cv_prog_STRIP"
2041 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2043 # We need awk for the "check" target. The system "awk" is bad on
2049 # Check whether --enable-shared or --disable-shared was given.
2050 if test "${enable_shared+set}" = set; then
2051 enableval="$enable_shared"
2052 p=${PACKAGE-default}
2054 yes) enable_shared=yes ;;
2055 no) enable_shared=no ;;
2058 # Look at the argument we got. We use all the common list separators.
2059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060 for pkg in $enableval; do
2062 if test "X$pkg" = "X$p"; then
2073 # Check whether --enable-static or --disable-static was given.
2074 if test "${enable_static+set}" = set; then
2075 enableval="$enable_static"
2076 p=${PACKAGE-default}
2078 yes) enable_static=yes ;;
2079 no) enable_static=no ;;
2082 # Look at the argument we got. We use all the common list separators.
2083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2084 for pkg in $enableval; do
2086 if test "X$pkg" = "X$p"; then
2097 # Check whether --enable-fast-install or --disable-fast-install was given.
2098 if test "${enable_fast_install+set}" = set; then
2099 enableval="$enable_fast_install"
2100 p=${PACKAGE-default}
2102 yes) enable_fast_install=yes ;;
2103 no) enable_fast_install=no ;;
2105 enable_fast_install=no
2106 # Look at the argument we got. We use all the common list separators.
2107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2108 for pkg in $enableval; do
2110 if test "X$pkg" = "X$p"; then
2111 enable_fast_install=yes
2118 enable_fast_install=yes
2121 DEPDIR="${am__leading_dot}deps"
2123 ac_config_commands="$ac_config_commands depfiles"
2126 am_make=${MAKE-make}
2127 cat > confinc << 'END'
2132 # If we don't find an include directive, just comment out the code.
2133 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2134 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2138 # First try GNU make style include.
2139 echo "include confinc" > confmf
2140 # We grep out `Entering directory' and `Leaving directory'
2141 # messages which can occur if `w' ends up in MAKEFLAGS.
2142 # In particular we don't look at `^make:' because GNU make might
2143 # be invoked under some other name (usually "gmake"), in which
2144 # case it prints its new name instead of `make'.
2145 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2150 # Now try BSD make style include.
2151 if test "$am__include" = "#"; then
2152 echo '.include "confinc"' > confmf
2153 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2154 am__include=.include
2161 echo "$as_me:$LINENO: result: $_am_result" >&5
2162 echo "${ECHO_T}$_am_result" >&6
2163 rm -f confinc confmf
2165 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2166 if test "${enable_dependency_tracking+set}" = set; then
2167 enableval="$enable_dependency_tracking"
2170 if test "x$enable_dependency_tracking" != xno; then
2171 am_depcomp="$ac_aux_dir/depcomp"
2176 if test "x$enable_dependency_tracking" != xno; then
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2228 if test -z "$ac_cv_prog_CC"; then
2230 # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_ac_ct_CC="gcc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2270 if test -z "$CC"; then
2271 if test -n "$ac_tool_prefix"; then
2272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_CC="${ac_tool_prefix}cc"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 if test -n "$CC"; then
2300 echo "$as_me:$LINENO: result: $CC" >&5
2301 echo "${ECHO_T}$CC" >&6
2303 echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2308 if test -z "$ac_cv_prog_CC"; then
2310 # Extract the first word of "cc", so it can be a program name with args.
2311 set dummy cc; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CC="cc"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2341 echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2351 if test -z "$CC"; then
2352 # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371 ac_prog_rejected=yes
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test $ac_prog_rejected = yes; then
2382 # We found a bogon in the path, so make sure we never use it.
2383 set dummy $ac_cv_prog_CC
2385 if test $# != 0; then
2386 # We chose a different compiler from the bogus one.
2387 # However, it has the same basename, so the bogon will be chosen
2388 # first if we set CC to just the basename; use the full file name.
2390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2396 if test -n "$CC"; then
2397 echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2405 if test -z "$CC"; then
2406 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 if test -n "$CC"; then
2437 echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6
2440 echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6
2444 test -n "$CC" && break
2447 if test -z "$CC"; then
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_ac_ct_CC="$ac_prog"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6
2482 echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2486 test -n "$ac_ct_CC" && break
2495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details." >&2;}
2499 { (exit 1); exit 1; }; }
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO:" \
2503 "checking for C compiler version" >&5
2504 ac_compiler=`set X $ac_compile; echo $2`
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506 (eval $ac_compiler --version </dev/null >&5) 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511 (eval $ac_compiler -v </dev/null >&5) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2516 (eval $ac_compiler -V </dev/null >&5) 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545 (eval $ac_link_default) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # Find the output, starting from the most likely. This scheme is
2550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2553 # Be careful to initialize this variable, since it used to be cached.
2554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2556 # b.out is created by i960 compilers.
2557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2559 test -f "$ac_file" || continue
2561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2564 # This is the source file.
2567 # We found the default executable, but exeext='' is most
2571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572 # FIXME: I believe we export ac_cv_exeext for Libtool,
2573 # but it would be cool to find out if it's true. Does anybody
2574 # maintain Libtool? --akim.
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&2;}
2589 { (exit 77); exit 77; }; }
2592 ac_exeext=$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_file" >&5
2594 echo "${ECHO_T}$ac_file" >&6
2596 # Check the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603 if { ac_try='./$ac_file'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2611 if test "$cross_compiling" = maybe; then
2614 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2624 echo "$as_me:$LINENO: result: yes" >&5
2625 echo "${ECHO_T}yes" >&6
2627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check the compiler produces executables we can run. If not, either
2630 # the compiler is broken, or we cross compile.
2631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 echo "${ECHO_T}$cross_compiling" >&6
2636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639 (eval $ac_link) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; then
2643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2647 for ac_file in conftest.exe conftest conftest.*; do
2648 test -f "$ac_file" || continue
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2665 rm -f conftest$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667 echo "${ECHO_T}$ac_cv_exeext" >&6
2669 rm -f conftest.$ac_ext
2670 EXEEXT=$ac_cv_exeext
2672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674 if test "${ac_cv_objext+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.o conftest.obj
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6
2720 OBJEXT=$ac_cv_objext
2722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>conftest.er1
2749 grep -v '^ *+' conftest.er1 >conftest.err
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2834 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2835 if test "$ac_test_CFLAGS" = set; then
2836 CFLAGS=$ac_save_CFLAGS
2837 elif test $ac_cv_prog_cc_g = yes; then
2838 if test "$GCC" = yes; then
2844 if test "$GCC" = yes; then
2850 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2851 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2852 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 ac_cv_prog_cc_stdc=no
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2865 #include <sys/types.h>
2866 #include <sys/stat.h>
2867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2868 struct buf { int x; };
2869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2870 static char *e (p, i)
2876 static char *f (char * (*g) (char **, int), char **p, ...)
2881 s = g (p, va_arg (v,int));
2886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2887 function prototypes and stuff, but not '\xHH' hex character constants.
2888 These don't provoke an error unfortunately, instead are silently treated
2889 as 'x'. The following induces an error, until -std1 is added to get
2890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2891 array size at least. It's necessary to write '\x00'==0 to get something
2892 that's true only with -std1. */
2893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2895 int test (int i, double x);
2896 struct s1 {int (*f) (int a);};
2897 struct s2 {int (*f) (double a);};
2898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2904 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2909 # Don't try gcc -ansi; that turns off useful extensions and
2910 # breaks some systems' header files.
2911 # AIX -qlanglvl=ansi
2912 # Ultrix and OSF/1 -std1
2913 # HP-UX 10.20 and later -Ae
2914 # HP-UX older versions -Aa -D_HPUX_SOURCE
2915 # SVR4 -Xc -D__EXTENSIONS__
2916 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2918 CC="$ac_save_CC $ac_arg"
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>conftest.er1
2923 grep -v '^ *+' conftest.er1 >conftest.err
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_prog_cc_stdc=$ac_arg
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2947 rm -f conftest.err conftest.$ac_objext
2949 rm -f conftest.$ac_ext conftest.$ac_objext
2954 case "x$ac_cv_prog_cc_stdc" in
2956 echo "$as_me:$LINENO: result: none needed" >&5
2957 echo "${ECHO_T}none needed" >&6 ;;
2959 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2960 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2961 CC="$CC $ac_cv_prog_cc_stdc" ;;
2964 # Some people use a C++ compiler to compile C. Since we use `exit',
2965 # in C++ we need to declare it. In case someone uses the same compiler
2966 # for both compiling C and C++ we need to have the C++ compiler decide
2967 # the declaration of exit, since it's the most demanding environment.
2968 cat >conftest.$ac_ext <<_ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 for ac_declaration in \
2996 'extern "C" void std::exit (int) throw (); using std::exit;' \
2997 'extern "C" void std::exit (int); using std::exit;' \
2998 'extern "C" void exit (int) throw ();' \
2999 'extern "C" void exit (int);' \
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 if test -n "$ac_declaration"; then
3093 echo '#ifdef __cplusplus' >>confdefs.h
3094 echo $ac_declaration >>confdefs.h
3095 echo '#endif' >>confdefs.h
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 depcc="$CC" am_compiler_list=
3112 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3113 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3118 # We make a subdir and do the tests there. Otherwise we can end up
3119 # making bogus files that we don't know about and never remove. For
3120 # instance it was reported that on HP-UX the gcc test will end up
3121 # making a dummy file named `D' -- because `-MD' means `put the output
3124 # Copy depcomp to subdir because otherwise we won't find it if we're
3125 # using a relative directory.
3126 cp "$am_depcomp" conftest.dir
3128 # We will build objects and dependencies in a subdirectory because
3129 # it helps to detect inapplicable dependency modes. For instance
3130 # both Tru64's cc and ICC support -MD to output dependencies as a
3131 # side effect of compilation, but ICC will put the dependencies in
3132 # the current directory while Tru64 will put them in the object
3136 am_cv_CC_dependencies_compiler_type=none
3137 if test "$am_compiler_list" = ""; then
3138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3140 for depmode in $am_compiler_list; do
3141 # Setup a source with many dependencies, because some compilers
3142 # like to wrap large dependency lists on column 80 (with \), and
3143 # we should not choose a depcomp mode which is confused by this.
3145 # We need to recreate these files for each test, as the compiler may
3146 # overwrite some of them when testing with obscure command lines.
3147 # This happens at least with the AIX C compiler.
3149 for i in 1 2 3 4 5 6; do
3150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3151 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3152 # Solaris 8's {/usr,}/bin/sh.
3153 touch sub/conftst$i.h
3155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3159 # after this tag, mechanisms are not by side-effect, so they'll
3160 # only be used when explicitly requested
3161 if test "x$enable_dependency_tracking" = xyes; then
3169 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3170 # mode. It turns out that the SunPro C++ compiler does not properly
3171 # handle `-M -o', and we need to detect this.
3172 if depmode=$depmode \
3173 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3175 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3176 >/dev/null 2>conftest.err &&
3177 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3178 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3180 # icc doesn't choke on unknown options, it will just issue warnings
3181 # or remarks (even with -Werror). So we grep stderr for any message
3182 # that says an option was ignored or not supported.
3183 # When given -MP, icc 7.0 and 7.1 complain thusly:
3184 # icc: Command line warning: ignoring option '-M'; no argument required
3185 # The diagnosis changed in icc 8.0:
3186 # icc: Command line remark: option '-MP' not supported
3187 if (grep 'ignoring option' conftest.err ||
3188 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3189 am_cv_CC_dependencies_compiler_type=$depmode
3198 am_cv_CC_dependencies_compiler_type=none
3202 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3203 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3204 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3209 test "x$enable_dependency_tracking" != xno \
3210 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3212 am__fastdepCC_FALSE='#'
3214 am__fastdepCC_TRUE='#'
3215 am__fastdepCC_FALSE=
3219 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3220 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3221 if test "${lt_cv_path_SED+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 # Loop through the user's path and test for sed and gsed.
3225 # Then use that list of sed's as ones to test for truncation.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for lt_ac_prog in sed gsed; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3234 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3241 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3242 # along with /bin/sed that truncates output.
3243 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3244 test ! -f $lt_ac_sed && break
3245 cat /dev/null > conftest.in
3247 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3248 # Check for GNU sed and select it if it is found.
3249 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3250 lt_cv_path_SED=$lt_ac_sed
3254 cat conftest.in conftest.in >conftest.tmp
3255 mv conftest.tmp conftest.in
3256 cp conftest.in conftest.nl
3258 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3259 cmp -s conftest.out conftest.nl || break
3260 # 10000 chars as input seems more than enough
3261 test $lt_ac_count -gt 10 && break
3262 lt_ac_count=`expr $lt_ac_count + 1`
3263 if test $lt_ac_count -gt $lt_ac_max; then
3264 lt_ac_max=$lt_ac_count
3265 lt_cv_path_SED=$lt_ac_sed
3273 echo "$as_me:$LINENO: result: $SED" >&5
3274 echo "${ECHO_T}$SED" >&6
3276 echo "$as_me:$LINENO: checking for egrep" >&5
3277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3278 if test "${ac_cv_prog_egrep+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3282 then ac_cv_prog_egrep='grep -E'
3283 else ac_cv_prog_egrep='egrep'
3286 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3287 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3288 EGREP=$ac_cv_prog_egrep
3292 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3293 if test "${with_gnu_ld+set}" = set; then
3294 withval="$with_gnu_ld"
3295 test "$withval" = no || with_gnu_ld=yes
3300 if test "$GCC" = yes; then
3301 # Check if gcc -print-prog-name=ld gives a path.
3302 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3303 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3306 # gcc leaves a trailing carriage return which upsets mingw
3307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3312 # Accept absolute paths.
3314 re_direlt='/[^/][^/]*/\.\./'
3315 # Canonicalize the pathname of ld
3316 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3317 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3318 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3320 test -z "$LD" && LD="$ac_prog"
3323 # If it fails, then pretend we aren't using GCC.
3327 # If it is relative, then search for the first ld in PATH.
3331 elif test "$with_gnu_ld" = yes; then
3332 echo "$as_me:$LINENO: checking for GNU ld" >&5
3333 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3335 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3336 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3338 if test "${lt_cv_path_LD+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if test -z "$LD"; then
3342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3343 for ac_dir in $PATH; do
3345 test -z "$ac_dir" && ac_dir=.
3346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3347 lt_cv_path_LD="$ac_dir/$ac_prog"
3348 # Check to see if the program is GNU ld. I'd rather use --version,
3349 # but apparently some GNU ld's only accept -v.
3350 # Break only if it was the GNU/non-GNU ld that we prefer.
3351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3352 *GNU* | *'with BFD'*)
3353 test "$with_gnu_ld" != no && break
3356 test "$with_gnu_ld" != yes && break
3363 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3368 if test -n "$LD"; then
3369 echo "$as_me:$LINENO: result: $LD" >&5
3370 echo "${ECHO_T}$LD" >&6
3372 echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3375 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3376 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3377 { (exit 1); exit 1; }; }
3378 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3379 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3380 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3384 case `$LD -v 2>&1 </dev/null` in
3385 *GNU* | *'with BFD'*)
3386 lt_cv_prog_gnu_ld=yes
3389 lt_cv_prog_gnu_ld=no
3393 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3394 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3395 with_gnu_ld=$lt_cv_prog_gnu_ld
3398 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3399 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3400 if test "${lt_cv_ld_reload_flag+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 lt_cv_ld_reload_flag='-r'
3405 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3406 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3407 reload_flag=$lt_cv_ld_reload_flag
3408 case $reload_flag in
3410 *) reload_flag=" $reload_flag" ;;
3412 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3414 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3415 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3416 if test "${lt_cv_path_NM+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 if test -n "$NM"; then
3420 # Let the user override the test.
3423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3424 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3426 test -z "$ac_dir" && ac_dir=.
3427 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3428 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3429 # Check to see if the nm accepts a BSD-compat flag.
3430 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3431 # nm: unknown option "B" ignored
3432 # Tru64's nm complains that /dev/null is an invalid object file
3433 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3434 */dev/null* | *'Invalid file or object type'*)
3435 lt_cv_path_NM="$tmp_nm -B"
3439 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3441 lt_cv_path_NM="$tmp_nm -p"
3445 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3446 continue # so that we can try to find one that supports BSD flags
3453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3456 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3457 echo "${ECHO_T}$lt_cv_path_NM" >&6
3460 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3461 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3463 if test "$LN_S" = "ln -s"; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6
3467 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3468 echo "${ECHO_T}no, using $LN_S" >&6
3471 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3472 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3473 if test "${lt_cv_deplibs_check_method+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 lt_cv_file_magic_cmd='$MAGIC_CMD'
3477 lt_cv_file_magic_test_file=
3478 lt_cv_deplibs_check_method='unknown'
3479 # Need to set the preceding variable on all platforms that support
3480 # interlibrary dependencies.
3481 # 'none' -- dependencies not supported.
3482 # `unknown' -- same as none, but documents that we really don't know.
3483 # 'pass_all' -- all dependencies passed with no checks.
3484 # 'test_compile' -- check by making test program.
3485 # 'file_magic [[regex]]' -- check by looking for files in library path
3486 # which responds to the $file_magic_cmd with a given extended regex.
3487 # If you have `file' or equivalent on your system and you're not sure
3488 # whether `pass_all' will *always* work, you probably want this one.
3492 lt_cv_deplibs_check_method=pass_all
3496 lt_cv_deplibs_check_method=pass_all
3500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3501 lt_cv_file_magic_cmd='/usr/bin/file -L'
3502 lt_cv_file_magic_test_file=/shlib/libc.so
3506 # func_win32_libid is a shell function defined in ltmain.sh
3507 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3508 lt_cv_file_magic_cmd='func_win32_libid'
3512 # Base MSYS/MinGW do not provide the 'file' command needed by
3513 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3514 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3515 lt_cv_file_magic_cmd='$OBJDUMP -f'
3518 darwin* | rhapsody*)
3519 lt_cv_deplibs_check_method=pass_all
3522 freebsd* | kfreebsd*-gnu)
3523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3526 # Not sure whether the presence of OpenBSD here was a mistake.
3527 # Let's accept both of them until this is cleared up.
3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3529 lt_cv_file_magic_cmd=/usr/bin/file
3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3534 lt_cv_deplibs_check_method=pass_all
3539 lt_cv_deplibs_check_method=pass_all
3542 hpux10.20* | hpux11*)
3543 lt_cv_file_magic_cmd=/usr/bin/file
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3550 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]'
3551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3555 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3560 irix5* | irix6* | nonstopux*)
3562 *-32|*"-32 ") libmagic=32-bit;;
3563 *-n32|*"-n32 ") libmagic=N32;;
3564 *-64|*"-64 ") libmagic=64-bit;;
3565 *) libmagic=never-match;;
3567 lt_cv_deplibs_check_method=pass_all
3570 # This must be Linux ELF.
3572 lt_cv_deplibs_check_method=pass_all
3575 netbsd* | knetbsd*-gnu)
3576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3585 lt_cv_file_magic_cmd=/usr/bin/file
3586 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3590 lt_cv_deplibs_check_method=unknown
3594 lt_cv_file_magic_cmd=/usr/bin/file
3595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3599 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3603 osf3* | osf4* | osf5*)
3604 lt_cv_deplibs_check_method=pass_all
3608 lt_cv_deplibs_check_method=pass_all
3612 lt_cv_deplibs_check_method=pass_all
3615 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3616 case $host_vendor in
3618 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]'
3619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3622 lt_cv_deplibs_check_method=pass_all
3625 lt_cv_file_magic_cmd='/bin/file'
3626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3629 lt_cv_file_magic_cmd='/bin/file'
3630 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3631 lt_cv_file_magic_test_file=/lib/libc.so
3634 lt_cv_deplibs_check_method=pass_all
3639 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3640 lt_cv_deplibs_check_method=pass_all
3645 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3646 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3647 file_magic_cmd=$lt_cv_file_magic_cmd
3648 deplibs_check_method=$lt_cv_deplibs_check_method
3649 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3654 # If no C compiler was specified, use CC.
3657 # Allow CC to be a program name with arguments.
3661 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3662 if test "${enable_libtool_lock+set}" = set; then
3663 enableval="$enable_libtool_lock"
3666 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3668 # Some flags need to be propagated to the compiler or linker for good
3672 # Find out which ABI we are using.
3673 echo 'int i;' > conftest.$ac_ext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; then
3679 case `/usr/bin/file conftest.$ac_objext` in
3691 # Find out which ABI we are using.
3692 echo '#line 3692 "configure"' > conftest.$ac_ext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; then
3698 if test "$lt_cv_prog_gnu_ld" = yes; then
3699 case `/usr/bin/file conftest.$ac_objext` in
3701 LD="${LD-ld} -melf32bsmip"
3704 LD="${LD-ld} -melf32bmipn32"
3707 LD="${LD-ld} -melf64bmip"
3711 case `/usr/bin/file conftest.$ac_objext` in
3727 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3728 # Find out which ABI we are using.
3729 echo 'int i;' > conftest.$ac_ext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; then
3735 case "`/usr/bin/file conftest.o`" in
3739 LD="${LD-ld} -m elf_i386"
3741 ppc64-*linux*|powerpc64-*linux*)
3742 LD="${LD-ld} -m elf32ppclinux"
3745 LD="${LD-ld} -m elf_s390"
3748 LD="${LD-ld} -m elf32_sparc"
3755 LD="${LD-ld} -m elf_x86_64"
3757 ppc*-*linux*|powerpc*-*linux*)
3758 LD="${LD-ld} -m elf64ppc"
3761 LD="${LD-ld} -m elf64_s390"
3764 LD="${LD-ld} -m elf64_sparc"
3774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3775 SAVE_CFLAGS="$CFLAGS"
3776 CFLAGS="$CFLAGS -belf"
3777 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3778 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3779 if test "${lt_cv_cc_needs_belf+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 cat >conftest.$ac_ext <<_ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805 (eval $ac_link) 2>conftest.er1
3807 grep -v '^ *+' conftest.er1 >conftest.err
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } &&
3812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest$ac_exeext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 lt_cv_cc_needs_belf=yes
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 lt_cv_cc_needs_belf=no
3831 rm -f conftest.err conftest.$ac_objext \
3832 conftest$ac_exeext conftest.$ac_ext
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3841 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3842 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3843 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3844 CFLAGS="$SAVE_CFLAGS"
3850 need_locks="$enable_libtool_lock"
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3859 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3860 # On Suns, sometimes $CPP names a directory.
3861 if test -n "$CPP" && test -d "$CPP"; then
3864 if test -z "$CPP"; then
3865 if test "${ac_cv_prog_CPP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 # Double quotes because CPP needs to be expanded
3869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3872 for ac_c_preproc_warn_flag in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3887 # include <limits.h>
3889 # include <assert.h>
3893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 grep -v '^ *+' conftest.er1 >conftest.err
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } >/dev/null; then
3901 if test -s conftest.err; then
3902 ac_cpp_err=$ac_c_preproc_warn_flag
3903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3910 if test -z "$ac_cpp_err"; then
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 # Broken: fails on valid input.
3919 rm -f conftest.err conftest.$ac_ext
3921 # OK, works on sane cases. Now check whether non-existent headers
3922 # can be detected and how.
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 #include <ac_nonexistent.h>
3931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3934 grep -v '^ *+' conftest.er1 >conftest.err
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } >/dev/null; then
3939 if test -s conftest.err; then
3940 ac_cpp_err=$ac_c_preproc_warn_flag
3941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3948 if test -z "$ac_cpp_err"; then
3949 # Broken: success on invalid input.
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 # Passes both tests.
3959 rm -f conftest.err conftest.$ac_ext
3962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3963 rm -f conftest.err conftest.$ac_ext
3964 if $ac_preproc_ok; then
3976 echo "$as_me:$LINENO: result: $CPP" >&5
3977 echo "${ECHO_T}$CPP" >&6
3979 for ac_c_preproc_warn_flag in '' yes
3981 # Use a header file that comes with gcc, so configuring glibc
3982 # with a fresh cross-compiler works.
3983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3984 # <limits.h> exists even on freestanding compilers.
3985 # On the NeXT, cc -E runs the code through the compiler's parser,
3986 # not just through cpp. "Syntax error" is here to catch this case.
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3994 # include <limits.h>
3996 # include <assert.h>
4000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null; then
4008 if test -s conftest.err; then
4009 ac_cpp_err=$ac_c_preproc_warn_flag
4010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4017 if test -z "$ac_cpp_err"; then
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 # Broken: fails on valid input.
4026 rm -f conftest.err conftest.$ac_ext
4028 # OK, works on sane cases. Now check whether non-existent headers
4029 # can be detected and how.
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 #include <ac_nonexistent.h>
4038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4041 grep -v '^ *+' conftest.er1 >conftest.err
4043 cat conftest.err >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } >/dev/null; then
4046 if test -s conftest.err; then
4047 ac_cpp_err=$ac_c_preproc_warn_flag
4048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4055 if test -z "$ac_cpp_err"; then
4056 # Broken: success on invalid input.
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 # Passes both tests.
4066 rm -f conftest.err conftest.$ac_ext
4069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4070 rm -f conftest.err conftest.$ac_ext
4071 if $ac_preproc_ok; then
4074 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4075 See \`config.log' for more details." >&5
4076 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4077 See \`config.log' for more details." >&2;}
4078 { (exit 1); exit 1; }; }
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4089 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4090 if test "${ac_cv_header_stdc+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 cat >conftest.$ac_ext <<_ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>conftest.er1
4116 grep -v '^ *+' conftest.er1 >conftest.err
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 ac_cv_header_stdc=yes
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 ac_cv_header_stdc=no
4140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4142 if test $ac_cv_header_stdc = yes; then
4143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 $EGREP "memchr" >/dev/null 2>&1; then
4157 ac_cv_header_stdc=no
4163 if test $ac_cv_header_stdc = yes; then
4164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "free" >/dev/null 2>&1; then
4178 ac_cv_header_stdc=no
4184 if test $ac_cv_header_stdc = yes; then
4185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186 if test "$cross_compiling" = yes; then
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4196 #if ((' ' & 0x0FF) == 0x020)
4197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4200 # define ISLOWER(c) \
4201 (('a' <= (c) && (c) <= 'i') \
4202 || ('j' <= (c) && (c) <= 'r') \
4203 || ('s' <= (c) && (c) <= 'z'))
4204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 for (i = 0; i < 256; i++)
4213 if (XOR (islower (i), ISLOWER (i))
4214 || toupper (i) != TOUPPER (i))
4219 rm -f conftest$ac_exeext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221 (eval $ac_link) 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4232 echo "$as_me: program exited with status $ac_status" >&5
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4237 ac_cv_header_stdc=no
4239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4243 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4244 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4245 if test $ac_cv_header_stdc = yes; then
4247 cat >>confdefs.h <<\_ACEOF
4248 #define STDC_HEADERS 1
4253 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4264 inttypes.h stdint.h unistd.h
4266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4267 echo "$as_me:$LINENO: checking for $ac_header" >&5
4268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 $ac_includes_default
4280 #include <$ac_header>
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 eval "$as_ac_Header=yes"
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 eval "$as_ac_Header=no"
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4315 cat >>confdefs.h <<_ACEOF
4316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4325 for ac_header in dlfcn.h
4327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4337 # Is the header compilable?
4338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4340 cat >conftest.$ac_ext <<_ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 $ac_includes_default
4347 #include <$ac_header>
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 ac_header_compiler=yes
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ac_header_compiler=no
4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4379 echo "${ECHO_T}$ac_header_compiler" >&6
4381 # Is the header present?
4382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 #include <$ac_header>
4392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null; then
4400 if test -s conftest.err; then
4401 ac_cpp_err=$ac_c_preproc_warn_flag
4402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4409 if test -z "$ac_cpp_err"; then
4410 ac_header_preproc=yes
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 ac_header_preproc=no
4417 rm -f conftest.err conftest.$ac_ext
4418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4419 echo "${ECHO_T}$ac_header_preproc" >&6
4421 # So? What about this header?
4422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4428 ac_header_preproc=yes
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4445 ## ----------------------------------------- ##
4446 ## Report this to martin.quinson@ens-lyon.fr ##
4447 ## ----------------------------------------- ##
4450 sed "s/^/$as_me: WARNING: /" >&2
4453 echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 eval "$as_ac_Header=\$ac_header_preproc"
4460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4465 cat >>confdefs.h <<_ACEOF
4466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4474 ac_cpp='$CXXCPP $CPPFLAGS'
4475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4478 if test -n "$ac_tool_prefix"; then
4479 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483 echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4485 if test "${ac_cv_prog_CXX+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 if test -n "$CXX"; then
4489 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 if test -n "$CXX"; then
4509 echo "$as_me:$LINENO: result: $CXX" >&5
4510 echo "${ECHO_T}$CXX" >&6
4512 echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6
4516 test -n "$CXX" && break
4519 if test -z "$CXX"; then
4521 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4523 # Extract the first word of "$ac_prog", so it can be a program name with args.
4524 set dummy $ac_prog; ac_word=$2
4525 echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 if test -n "$ac_ct_CXX"; then
4531 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_ac_ct_CXX="$ac_prog"
4541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4550 if test -n "$ac_ct_CXX"; then
4551 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4552 echo "${ECHO_T}$ac_ct_CXX" >&6
4554 echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4558 test -n "$ac_ct_CXX" && break
4560 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4566 # Provide some information about the compiler.
4567 echo "$as_me:$LINENO:" \
4568 "checking for C++ compiler version" >&5
4569 ac_compiler=`set X $ac_compile; echo $2`
4570 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4571 (eval $ac_compiler --version </dev/null >&5) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }
4575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4576 (eval $ac_compiler -v </dev/null >&5) 2>&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }
4580 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4581 (eval $ac_compiler -V </dev/null >&5) 2>&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }
4586 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4587 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4588 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4641 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4642 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4643 GXX=`test $ac_compiler_gnu = yes && echo yes`
4644 ac_test_CXXFLAGS=${CXXFLAGS+set}
4645 ac_save_CXXFLAGS=$CXXFLAGS
4647 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4648 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4649 if test "${ac_cv_prog_cxx_g+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest.$ac_objext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 ac_cv_prog_cxx_g=yes
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4699 if test "$ac_test_CXXFLAGS" = set; then
4700 CXXFLAGS=$ac_save_CXXFLAGS
4701 elif test $ac_cv_prog_cxx_g = yes; then
4702 if test "$GXX" = yes; then
4708 if test "$GXX" = yes; then
4714 for ac_declaration in \
4716 'extern "C" void std::exit (int) throw (); using std::exit;' \
4717 'extern "C" void std::exit (int); using std::exit;' \
4718 'extern "C" void exit (int) throw ();' \
4719 'extern "C" void exit (int);' \
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 cat >conftest.$ac_ext <<_ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4812 if test -n "$ac_declaration"; then
4813 echo '#ifdef __cplusplus' >>confdefs.h
4814 echo $ac_declaration >>confdefs.h
4815 echo '#endif' >>confdefs.h
4819 ac_cpp='$CXXCPP $CPPFLAGS'
4820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4824 depcc="$CXX" am_compiler_list=
4826 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4827 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4828 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4832 # We make a subdir and do the tests there. Otherwise we can end up
4833 # making bogus files that we don't know about and never remove. For
4834 # instance it was reported that on HP-UX the gcc test will end up
4835 # making a dummy file named `D' -- because `-MD' means `put the output
4838 # Copy depcomp to subdir because otherwise we won't find it if we're
4839 # using a relative directory.
4840 cp "$am_depcomp" conftest.dir
4842 # We will build objects and dependencies in a subdirectory because
4843 # it helps to detect inapplicable dependency modes. For instance
4844 # both Tru64's cc and ICC support -MD to output dependencies as a
4845 # side effect of compilation, but ICC will put the dependencies in
4846 # the current directory while Tru64 will put them in the object
4850 am_cv_CXX_dependencies_compiler_type=none
4851 if test "$am_compiler_list" = ""; then
4852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4854 for depmode in $am_compiler_list; do
4855 # Setup a source with many dependencies, because some compilers
4856 # like to wrap large dependency lists on column 80 (with \), and
4857 # we should not choose a depcomp mode which is confused by this.
4859 # We need to recreate these files for each test, as the compiler may
4860 # overwrite some of them when testing with obscure command lines.
4861 # This happens at least with the AIX C compiler.
4863 for i in 1 2 3 4 5 6; do
4864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4866 # Solaris 8's {/usr,}/bin/sh.
4867 touch sub/conftst$i.h
4869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4873 # after this tag, mechanisms are not by side-effect, so they'll
4874 # only be used when explicitly requested
4875 if test "x$enable_dependency_tracking" = xyes; then
4883 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4884 # mode. It turns out that the SunPro C++ compiler does not properly
4885 # handle `-M -o', and we need to detect this.
4886 if depmode=$depmode \
4887 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4889 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4890 >/dev/null 2>conftest.err &&
4891 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4892 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4893 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4894 # icc doesn't choke on unknown options, it will just issue warnings
4895 # or remarks (even with -Werror). So we grep stderr for any message
4896 # that says an option was ignored or not supported.
4897 # When given -MP, icc 7.0 and 7.1 complain thusly:
4898 # icc: Command line warning: ignoring option '-M'; no argument required
4899 # The diagnosis changed in icc 8.0:
4900 # icc: Command line remark: option '-MP' not supported
4901 if (grep 'ignoring option' conftest.err ||
4902 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4903 am_cv_CXX_dependencies_compiler_type=$depmode
4912 am_cv_CXX_dependencies_compiler_type=none
4916 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4917 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4918 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4923 test "x$enable_dependency_tracking" != xno \
4924 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4925 am__fastdepCXX_TRUE=
4926 am__fastdepCXX_FALSE='#'
4928 am__fastdepCXX_TRUE='#'
4929 am__fastdepCXX_FALSE=
4934 ac_cpp='$CXXCPP $CPPFLAGS'
4935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4939 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4940 if test -z "$CXXCPP"; then
4941 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 # Double quotes because CXXCPP needs to be expanded
4945 for CXXCPP in "$CXX -E" "/lib/cpp"
4948 for ac_cxx_preproc_warn_flag in '' yes
4950 # Use a header file that comes with gcc, so configuring glibc
4951 # with a fresh cross-compiler works.
4952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953 # <limits.h> exists even on freestanding compilers.
4954 # On the NeXT, cc -E runs the code through the compiler's parser,
4955 # not just through cpp. "Syntax error" is here to catch this case.
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4963 # include <limits.h>
4965 # include <assert.h>
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null; then
4977 if test -s conftest.err; then
4978 ac_cpp_err=$ac_cxx_preproc_warn_flag
4979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4986 if test -z "$ac_cpp_err"; then
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 # Broken: fails on valid input.
4995 rm -f conftest.err conftest.$ac_ext
4997 # OK, works on sane cases. Now check whether non-existent headers
4998 # can be detected and how.
4999 cat >conftest.$ac_ext <<_ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 #include <ac_nonexistent.h>
5007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null; then
5015 if test -s conftest.err; then
5016 ac_cpp_err=$ac_cxx_preproc_warn_flag
5017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5024 if test -z "$ac_cpp_err"; then
5025 # Broken: success on invalid input.
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 # Passes both tests.
5035 rm -f conftest.err conftest.$ac_ext
5038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039 rm -f conftest.err conftest.$ac_ext
5040 if $ac_preproc_ok; then
5045 ac_cv_prog_CXXCPP=$CXXCPP
5048 CXXCPP=$ac_cv_prog_CXXCPP
5050 ac_cv_prog_CXXCPP=$CXXCPP
5052 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5053 echo "${ECHO_T}$CXXCPP" >&6
5055 for ac_cxx_preproc_warn_flag in '' yes
5057 # Use a header file that comes with gcc, so configuring glibc
5058 # with a fresh cross-compiler works.
5059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060 # <limits.h> exists even on freestanding compilers.
5061 # On the NeXT, cc -E runs the code through the compiler's parser,
5062 # not just through cpp. "Syntax error" is here to catch this case.
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5070 # include <limits.h>
5072 # include <assert.h>
5076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5079 grep -v '^ *+' conftest.er1 >conftest.err
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null; then
5084 if test -s conftest.err; then
5085 ac_cpp_err=$ac_cxx_preproc_warn_flag
5086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5093 if test -z "$ac_cpp_err"; then
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 # Broken: fails on valid input.
5102 rm -f conftest.err conftest.$ac_ext
5104 # OK, works on sane cases. Now check whether non-existent headers
5105 # can be detected and how.
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <ac_nonexistent.h>
5114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5117 grep -v '^ *+' conftest.er1 >conftest.err
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null; then
5122 if test -s conftest.err; then
5123 ac_cpp_err=$ac_cxx_preproc_warn_flag
5124 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5131 if test -z "$ac_cpp_err"; then
5132 # Broken: success on invalid input.
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 # Passes both tests.
5142 rm -f conftest.err conftest.$ac_ext
5145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146 rm -f conftest.err conftest.$ac_ext
5147 if $ac_preproc_ok; then
5150 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5151 See \`config.log' for more details." >&5
5152 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5153 See \`config.log' for more details." >&2;}
5154 { (exit 1); exit 1; }; }
5158 ac_cpp='$CXXCPP $CPPFLAGS'
5159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5165 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5166 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5168 if test -n "$ac_tool_prefix"; then
5169 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173 echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5175 if test "${ac_cv_prog_F77+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 if test -n "$F77"; then
5179 ac_cv_prog_F77="$F77" # Let the user override the test.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 if test -n "$F77"; then
5199 echo "$as_me:$LINENO: result: $F77" >&5
5200 echo "${ECHO_T}$F77" >&6
5202 echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6
5206 test -n "$F77" && break
5209 if test -z "$F77"; then
5211 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5213 # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5217 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if test -n "$ac_ct_F77"; then
5221 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230 ac_cv_prog_ac_ct_F77="$ac_prog"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5240 if test -n "$ac_ct_F77"; then
5241 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5242 echo "${ECHO_T}$ac_ct_F77" >&6
5244 echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5248 test -n "$ac_ct_F77" && break
5255 # Provide some information about the compiler.
5256 echo "$as_me:5256:" \
5257 "checking for Fortran 77 compiler version" >&5
5258 ac_compiler=`set X $ac_compile; echo $2`
5259 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5260 (eval $ac_compiler --version </dev/null >&5) 2>&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5265 (eval $ac_compiler -v </dev/null >&5) 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }
5269 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5270 (eval $ac_compiler -V </dev/null >&5) 2>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }
5276 # If we don't use `.F' as extension, the preprocessor is not run on the
5277 # input file. (Note that this only needs to work for GNU compilers.)
5280 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5281 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5282 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 cat >conftest.$ac_ext <<_ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295 (eval $ac_compile) 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } &&
5302 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5325 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5326 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5328 ac_test_FFLAGS=${FFLAGS+set}
5329 ac_save_FFLAGS=$FFLAGS
5331 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5332 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5333 if test "${ac_cv_prog_f77_g+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>conftest.er1
5346 grep -v '^ *+' conftest.er1 >conftest.err
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; } &&
5357 { ac_try='test -s conftest.$ac_objext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5363 ac_cv_prog_f77_g=yes
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5373 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5374 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5375 if test "$ac_test_FFLAGS" = set; then
5376 FFLAGS=$ac_save_FFLAGS
5377 elif test $ac_cv_prog_f77_g = yes; then
5378 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5384 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5391 G77=`test $ac_compiler_gnu = yes && echo yes`
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5400 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5402 # find the maximum length of command line arguments
5403 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5404 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5405 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 # On DJGPP, this test can blow up pretty badly due to problems in libc
5414 # (any single argument exceeding 2000 bytes causes a buffer overrun
5415 # during glob expansion). Even if it were fixed, the result of this
5416 # check would be larger than it should be.
5417 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5421 # Under GNU Hurd, this test is not required because there is
5422 # no limit to the length of command line arguments.
5423 # Libtool will interpret -1 as no limit whatsoever
5424 lt_cv_sys_max_cmd_len=-1;
5428 # On Win9x/ME, this test blows up -- it succeeds, but takes
5429 # about 5 minutes as the teststring grows exponentially.
5430 # Worse, since 9x/ME are not pre-emptively multitasking,
5431 # you end up with a "frozen" computer, even though with patience
5432 # the test eventually succeeds (with a max line length of 256k).
5433 # Instead, let's just punt: use the minimum linelength reported by
5434 # all of the supported platforms: 8192 (on NT/2K/XP).
5435 lt_cv_sys_max_cmd_len=8192;
5439 # On AmigaOS with pdksh, this test takes hours, literally.
5440 # So we just punt and use a minimum line length of 8192.
5441 lt_cv_sys_max_cmd_len=8192;
5445 # If test is not a shell built-in, we'll probably end up computing a
5446 # maximum length that is only half of the actual maximum length, but
5448 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5449 = "XX$teststring") >/dev/null 2>&1 &&
5450 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5451 lt_cv_sys_max_cmd_len=$new_result &&
5452 test $i != 17 # 1/2 MB should be enough
5455 teststring=$teststring$teststring
5458 # Add a significant safety factor because C++ compilers can tack on massive
5459 # amounts of additional arguments before passing them to the linker.
5460 # It appears as though 1/2 is a usable value.
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5467 if test -n $lt_cv_sys_max_cmd_len ; then
5468 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5469 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5471 echo "$as_me:$LINENO: result: none" >&5
5472 echo "${ECHO_T}none" >&6
5478 # Check for command to grab the raw symbol name followed by C symbol from nm.
5479 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5480 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5481 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 # These are sane defaults that work on at least a few old systems.
5486 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5488 # Character class describing NM global symbol codes.
5489 symcode='[BCDEGRST]'
5491 # Regexp to match symbols that can be accessed directly from C.
5492 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5494 # Transform the above into a raw symbol and a C symbol.
5495 symxfrm='\1 \2\3 \3'
5497 # Transform an extracted symbol line into a proper C declaration
5498 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5500 # Transform an extracted symbol line into symbol name and symbol address
5501 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'"
5503 # Define system-specific variables.
5508 cygwin* | mingw* | pw32*)
5509 symcode='[ABCDGISTW]'
5511 hpux*) # Its linker distinguishes data from code symbols
5512 if test "$host_cpu" = ia64; then
5513 symcode='[ABCDEGRST]'
5515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5516 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'"
5519 symcode='[BCDEGRST]'
5522 symcode='[BCDEGQRST]'
5532 # Handle CRLF in mingw tool chain
5536 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5540 # If we're using GNU nm, then use its standard symbol codes.
5541 case `$NM -V 2>&1` in
5542 *GNU* | *'with BFD'*)
5543 symcode='[ABCDGIRSTW]' ;;
5546 # Try without a prefix undercore, then with it.
5547 for ac_symprfx in "" "_"; do
5549 # Write the raw and C identifiers.
5550 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5552 # Check to see that the pipe works correctly.
5556 cat > conftest.$ac_ext <<EOF
5561 void nm_test_func(){}
5565 int main(){nm_test_var='a';nm_test_func();return(0);}
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; then
5573 # Now try to grab the symbols.
5575 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5576 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && test -s "$nlist"; then
5580 # Try sorting and uniquifying the output.
5581 if sort "$nlist" | uniq > "$nlist"T; then
5582 mv -f "$nlist"T "$nlist"
5587 # Make sure that we snagged all the symbols we need.
5588 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5589 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5590 cat <<EOF > conftest.$ac_ext
5596 # Now generate the symbol file.
5597 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5599 cat <<EOF >> conftest.$ac_ext
5600 #if defined (__STDC__) && __STDC__
5601 # define lt_ptr_t void *
5603 # define lt_ptr_t char *
5607 /* The mapping between symbol names and symbols. */
5612 lt_preloaded_symbols[] =
5615 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5616 cat <<\EOF >> conftest.$ac_ext
5624 # Now try linking the two files.
5625 mv conftest.$ac_objext conftstm.$ac_objext
5626 lt_save_LIBS="$LIBS"
5627 lt_save_CFLAGS="$CFLAGS"
5628 LIBS="conftstm.$ac_objext"
5629 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5637 LIBS="$lt_save_LIBS"
5638 CFLAGS="$lt_save_CFLAGS"
5640 echo "cannot find nm_test_func in $nlist" >&5
5643 echo "cannot find nm_test_var in $nlist" >&5
5646 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5649 echo "$progname: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5652 rm -f conftest* conftst*
5654 # Do not use the global_symbol_pipe unless it works.
5655 if test "$pipe_works" = yes; then
5658 lt_cv_sys_global_symbol_pipe=
5664 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5665 lt_cv_sys_global_symbol_to_cdecl=
5667 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5668 echo "$as_me:$LINENO: result: failed" >&5
5669 echo "${ECHO_T}failed" >&6
5671 echo "$as_me:$LINENO: result: ok" >&5
5672 echo "${ECHO_T}ok" >&6
5675 echo "$as_me:$LINENO: checking for objdir" >&5
5676 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5677 if test "${lt_cv_objdir+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 rm -f .libs 2>/dev/null
5681 mkdir .libs 2>/dev/null
5682 if test -d .libs; then
5685 # MS-DOS does not allow filenames that begin with a dot.
5688 rmdir .libs 2>/dev/null
5690 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5691 echo "${ECHO_T}$lt_cv_objdir" >&6
5692 objdir=$lt_cv_objdir
5700 # AIX sometimes has problems with the GCC collect2 program. For some
5701 # reason, if we set the COLLECT_NAMES environment variable, the problems
5702 # vanish in a puff of smoke.
5703 if test "X${COLLECT_NAMES+set}" != Xset; then
5705 export COLLECT_NAMES
5710 # Sed substitution that helps us do robust quoting. It backslashifies
5711 # metacharacters that are still active within double-quoted strings.
5712 Xsed='sed -e s/^X//'
5713 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5715 # Same as above, but do not quote variable references.
5716 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5718 # Sed substitution to delay expansion of an escaped shell variable in a
5719 # double_quote_subst'ed string.
5720 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5722 # Sed substitution to avoid accidental globbing in evaled expressions
5723 no_glob_subst='s/\*/\\\*/g'
5729 default_ofile=libtool
5730 can_build_shared=yes
5732 # All known linkers require a `.a' archive for static linking (except M$VC,
5733 # which needs '.lib').
5735 ltmain="$ac_aux_dir/ltmain.sh"
5736 ofile="$default_ofile"
5737 with_gnu_ld="$lt_cv_prog_gnu_ld"
5739 if test -n "$ac_tool_prefix"; then
5740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}ar; ac_word=$2
5742 echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_AR+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -n "$AR"; then
5748 ac_cv_prog_AR="$AR" # Let the user override the test.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_AR="${ac_tool_prefix}ar"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 if test -n "$AR"; then
5768 echo "$as_me:$LINENO: result: $AR" >&5
5769 echo "${ECHO_T}$AR" >&6
5771 echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5776 if test -z "$ac_cv_prog_AR"; then
5778 # Extract the first word of "ar", so it can be a program name with args.
5779 set dummy ar; ac_word=$2
5780 echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 if test -n "$ac_ct_AR"; then
5786 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_AR="ar"
5796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5805 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5806 if test -n "$ac_ct_AR"; then
5807 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5808 echo "${ECHO_T}$ac_ct_AR" >&6
5810 echo "$as_me:$LINENO: result: no" >&5
5811 echo "${ECHO_T}no" >&6
5819 if test -n "$ac_tool_prefix"; then
5820 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5821 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5822 echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824 if test "${ac_cv_prog_RANLIB+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 if test -n "$RANLIB"; then
5828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 RANLIB=$ac_cv_prog_RANLIB
5847 if test -n "$RANLIB"; then
5848 echo "$as_me:$LINENO: result: $RANLIB" >&5
5849 echo "${ECHO_T}$RANLIB" >&6
5851 echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6
5856 if test -z "$ac_cv_prog_RANLIB"; then
5857 ac_ct_RANLIB=$RANLIB
5858 # Extract the first word of "ranlib", so it can be a program name with args.
5859 set dummy ranlib; ac_word=$2
5860 echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 if test -n "$ac_ct_RANLIB"; then
5866 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_ac_ct_RANLIB="ranlib"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5885 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5886 if test -n "$ac_ct_RANLIB"; then
5887 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5888 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5890 echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6
5894 RANLIB=$ac_ct_RANLIB
5896 RANLIB="$ac_cv_prog_RANLIB"
5899 if test -n "$ac_tool_prefix"; then
5900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5901 set dummy ${ac_tool_prefix}strip; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_STRIP+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 if test -n "$STRIP"; then
5908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 STRIP=$ac_cv_prog_STRIP
5927 if test -n "$STRIP"; then
5928 echo "$as_me:$LINENO: result: $STRIP" >&5
5929 echo "${ECHO_T}$STRIP" >&6
5931 echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5936 if test -z "$ac_cv_prog_STRIP"; then
5938 # Extract the first word of "strip", so it can be a program name with args.
5939 set dummy strip; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 if test -n "$ac_ct_STRIP"; then
5946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_ac_ct_STRIP="strip"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5966 if test -n "$ac_ct_STRIP"; then
5967 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5968 echo "${ECHO_T}$ac_ct_STRIP" >&6
5970 echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6
5976 STRIP="$ac_cv_prog_STRIP"
5981 old_CFLAGS="$CFLAGS"
5983 # Set sane defaults for various variables
5984 test -z "$AR" && AR=ar
5985 test -z "$AR_FLAGS" && AR_FLAGS=cru
5986 test -z "$AS" && AS=as
5987 test -z "$CC" && CC=cc
5988 test -z "$LTCC" && LTCC=$CC
5989 test -z "$DLLTOOL" && DLLTOOL=dlltool
5990 test -z "$LD" && LD=ld
5991 test -z "$LN_S" && LN_S="ln -s"
5992 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5993 test -z "$NM" && NM=nm
5994 test -z "$SED" && SED=sed
5995 test -z "$OBJDUMP" && OBJDUMP=objdump
5996 test -z "$RANLIB" && RANLIB=:
5997 test -z "$STRIP" && STRIP=:
5998 test -z "$ac_objext" && ac_objext=o
6000 # Determine commands to create old-style static archives.
6001 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6002 old_postinstall_cmds='chmod 644 $oldlib'
6003 old_postuninstall_cmds=
6005 if test -n "$RANLIB"; then
6008 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6011 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6014 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6017 # Only perform the check for file, if the check method requires it
6018 case $deplibs_check_method in
6020 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6021 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6022 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6023 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6031 lt_save_MAGIC_CMD="$MAGIC_CMD"
6032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6033 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6034 for ac_dir in $ac_dummy; do
6036 test -z "$ac_dir" && ac_dir=.
6037 if test -f $ac_dir/${ac_tool_prefix}file; then
6038 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6039 if test -n "$file_magic_test_file"; then
6040 case $deplibs_check_method in
6042 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6044 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6045 $EGREP "$file_magic_regex" > /dev/null; then
6050 *** Warning: the command libtool uses to detect shared libraries,
6051 *** $file_magic_cmd, produces output that libtool cannot recognize.
6052 *** The result is that libtool may fail to recognize shared libraries
6053 *** as such. This will affect the creation of libtool libraries that
6054 *** depend on shared libraries, but programs linked with such libtool
6055 *** libraries will work regardless of this problem. Nevertheless, you
6056 *** may want to report the problem to your system manager and/or to
6057 *** bug-libtool@gnu.org
6067 MAGIC_CMD="$lt_save_MAGIC_CMD"
6072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6073 if test -n "$MAGIC_CMD"; then
6074 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6075 echo "${ECHO_T}$MAGIC_CMD" >&6
6077 echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6081 if test -z "$lt_cv_path_MAGIC_CMD"; then
6082 if test -n "$ac_tool_prefix"; then
6083 echo "$as_me:$LINENO: checking for file" >&5
6084 echo $ECHO_N "checking for file... $ECHO_C" >&6
6085 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6093 lt_save_MAGIC_CMD="$MAGIC_CMD"
6094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6095 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6096 for ac_dir in $ac_dummy; do
6098 test -z "$ac_dir" && ac_dir=.
6099 if test -f $ac_dir/file; then
6100 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6101 if test -n "$file_magic_test_file"; then
6102 case $deplibs_check_method in
6104 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6106 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6107 $EGREP "$file_magic_regex" > /dev/null; then
6112 *** Warning: the command libtool uses to detect shared libraries,
6113 *** $file_magic_cmd, produces output that libtool cannot recognize.
6114 *** The result is that libtool may fail to recognize shared libraries
6115 *** as such. This will affect the creation of libtool libraries that
6116 *** depend on shared libraries, but programs linked with such libtool
6117 *** libraries will work regardless of this problem. Nevertheless, you
6118 *** may want to report the problem to your system manager and/or to
6119 *** bug-libtool@gnu.org
6129 MAGIC_CMD="$lt_save_MAGIC_CMD"
6134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6135 if test -n "$MAGIC_CMD"; then
6136 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6137 echo "${ECHO_T}$MAGIC_CMD" >&6
6139 echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6
6155 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6156 if test "${enable_libtool_lock+set}" = set; then
6157 enableval="$enable_libtool_lock"
6160 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6163 # Check whether --with-pic or --without-pic was given.
6164 if test "${with_pic+set}" = set; then
6170 test -z "$pic_mode" && pic_mode=default
6172 # Use C for the default configuration in the libtool script
6176 ac_cpp='$CPP $CPPFLAGS'
6177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6182 # Source file extension for C test sources.
6185 # Object file extension for compiled C test sources.
6189 # Code to be used in simple compile tests
6190 lt_simple_compile_test_code="int some_variable = 0;\n"
6192 # Code to be used in simple link tests
6193 lt_simple_link_test_code='int main(){return(0);}\n'
6196 # If no C compiler was specified, use CC.
6199 # Allow CC to be a program name with arguments.
6204 # Check for any special shared library compilation flags.
6207 if test "$GCC" = no; then
6210 lt_prog_cc_shlib='-belf'
6214 if test -n "$lt_prog_cc_shlib"; then
6215 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6216 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6217 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6219 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6220 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6221 lt_cv_prog_cc_can_build_shared=no
6227 # Check to make sure the static flag actually works.
6229 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6230 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6231 if test "${lt_prog_compiler_static_works+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 lt_prog_compiler_static_works=no
6235 save_LDFLAGS="$LDFLAGS"
6236 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6237 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6239 # The compiler can only warn and ignore the option if not recognized
6240 # So say no if there are warnings
6241 if test -s conftest.err; then
6242 # Append any errors to the config.log.
6243 cat conftest.err 1>&5
6245 lt_prog_compiler_static_works=yes
6249 LDFLAGS="$save_LDFLAGS"
6252 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6253 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6255 if test x"$lt_prog_compiler_static_works" = xyes; then
6258 lt_prog_compiler_static=
6264 lt_prog_compiler_no_builtin_flag=
6266 if test "$GCC" = yes; then
6267 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6270 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6271 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6272 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 lt_cv_prog_compiler_rtti_exceptions=no
6276 ac_outfile=conftest.$ac_objext
6277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6278 lt_compiler_flag="-fno-rtti -fno-exceptions"
6279 # Insert the option either (1) after the last *FLAGS variable, or
6280 # (2) before a word containing "conftest.", or (3) at the end.
6281 # Note that $ac_compile itself does not contain backslashes and begins
6282 # with a dollar sign (not a hyphen), so the echo should work correctly.
6283 # The option is referenced via a variable to avoid confusing sed.
6284 lt_compile=`echo "$ac_compile" | $SED \
6285 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6287 -e 's:$: $lt_compiler_flag:'`
6288 (eval echo "\"\$as_me:6288: $lt_compile\"" >&5)
6289 (eval "$lt_compile" 2>conftest.err)
6291 cat conftest.err >&5
6292 echo "$as_me:6292: \$? = $ac_status" >&5
6293 if (exit $ac_status) && test -s "$ac_outfile"; then
6294 # The compiler can only warn and ignore the option if not recognized
6295 # So say no if there are warnings
6296 if test ! -s conftest.err; then
6297 lt_cv_prog_compiler_rtti_exceptions=yes
6303 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6304 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6306 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6307 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6314 lt_prog_compiler_wl=
6315 lt_prog_compiler_pic=
6316 lt_prog_compiler_static=
6318 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6319 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6321 if test "$GCC" = yes; then
6322 lt_prog_compiler_wl='-Wl,'
6323 lt_prog_compiler_static='-static'
6327 # All AIX code is PIC.
6328 if test "$host_cpu" = ia64; then
6329 # AIX 5 now supports IA64 processor
6330 lt_prog_compiler_static='-Bstatic'
6335 # FIXME: we need at least 68020 code to build shared libraries, but
6336 # adding the `-m68020' flag to GCC prevents building anything better,
6338 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6341 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6342 # PIC is the default for these OSes.
6345 mingw* | pw32* | os2*)
6346 # This hack is so that the source file can tell whether it is being
6347 # built for inclusion in a dll (and should export symbols for example).
6348 lt_prog_compiler_pic='-DDLL_EXPORT'
6351 darwin* | rhapsody*)
6352 # PIC is the default on this platform
6353 # Common symbols not allowed in MH_DYLIB files
6354 lt_prog_compiler_pic='-fno-common'
6358 # Just because we use GCC doesn't mean we suddenly get shared libraries
6359 # on systems that don't support them.
6360 lt_prog_compiler_can_build_shared=no
6365 if test -d /usr/nec; then
6366 lt_prog_compiler_pic=-Kconform_pic
6371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6378 lt_prog_compiler_pic='-fPIC'
6384 lt_prog_compiler_pic='-fPIC'
6388 # PORTME Check for flag to pass linker flags through the system compiler.
6391 lt_prog_compiler_wl='-Wl,'
6392 if test "$host_cpu" = ia64; then
6393 # AIX 5 now supports IA64 processor
6394 lt_prog_compiler_static='-Bstatic'
6396 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6400 mingw* | pw32* | os2*)
6401 # This hack is so that the source file can tell whether it is being
6402 # built for inclusion in a dll (and should export symbols for example).
6403 lt_prog_compiler_pic='-DDLL_EXPORT'
6406 hpux9* | hpux10* | hpux11*)
6407 lt_prog_compiler_wl='-Wl,'
6408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6415 lt_prog_compiler_pic='+Z'
6418 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6419 lt_prog_compiler_static='${wl}-a ${wl}archive'
6422 irix5* | irix6* | nonstopux*)
6423 lt_prog_compiler_wl='-Wl,'
6424 # PIC (with -KPIC) is the default.
6425 lt_prog_compiler_static='-non_shared'
6429 lt_prog_compiler_pic='-KPIC'
6430 lt_prog_compiler_static='-Bstatic'
6436 lt_prog_compiler_wl='-Wl,'
6437 lt_prog_compiler_pic='-KPIC'
6438 lt_prog_compiler_static='-static'
6441 lt_prog_compiler_wl='-Wl,'
6442 # All Alpha code is PIC.
6443 lt_prog_compiler_static='-non_shared'
6448 osf3* | osf4* | osf5*)
6449 lt_prog_compiler_wl='-Wl,'
6450 # All OSF/1 code is PIC.
6451 lt_prog_compiler_static='-non_shared'
6455 lt_prog_compiler_pic='-Kpic'
6456 lt_prog_compiler_static='-dn'
6460 lt_prog_compiler_wl='-Wl,'
6461 lt_prog_compiler_pic='-KPIC'
6462 lt_prog_compiler_static='-Bstatic'
6466 lt_prog_compiler_wl='-Qoption ld '
6467 lt_prog_compiler_pic='-PIC'
6468 lt_prog_compiler_static='-Bstatic'
6471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6472 lt_prog_compiler_wl='-Wl,'
6473 lt_prog_compiler_pic='-KPIC'
6474 lt_prog_compiler_static='-Bstatic'
6478 if test -d /usr/nec ;then
6479 lt_prog_compiler_pic='-Kconform_pic'
6480 lt_prog_compiler_static='-Bstatic'
6485 lt_prog_compiler_pic='-pic'
6486 lt_prog_compiler_static='-Bstatic'
6490 lt_prog_compiler_can_build_shared=no
6495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6496 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6499 # Check to make sure the PIC flag actually works.
6501 if test -n "$lt_prog_compiler_pic"; then
6503 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6504 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6505 if test "${lt_prog_compiler_pic_works+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 lt_prog_compiler_pic_works=no
6509 ac_outfile=conftest.$ac_objext
6510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6511 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6512 # Insert the option either (1) after the last *FLAGS variable, or
6513 # (2) before a word containing "conftest.", or (3) at the end.
6514 # Note that $ac_compile itself does not contain backslashes and begins
6515 # with a dollar sign (not a hyphen), so the echo should work correctly.
6516 # The option is referenced via a variable to avoid confusing sed.
6517 lt_compile=`echo "$ac_compile" | $SED \
6518 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6520 -e 's:$: $lt_compiler_flag:'`
6521 (eval echo "\"\$as_me:6521: $lt_compile\"" >&5)
6522 (eval "$lt_compile" 2>conftest.err)
6524 cat conftest.err >&5
6525 echo "$as_me:6525: \$? = $ac_status" >&5
6526 if (exit $ac_status) && test -s "$ac_outfile"; then
6527 # The compiler can only warn and ignore the option if not recognized
6528 # So say no if there are warnings
6529 if test ! -s conftest.err; then
6530 lt_prog_compiler_pic_works=yes
6536 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6537 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6539 if test x"$lt_prog_compiler_pic_works" = xyes; then
6540 case $lt_prog_compiler_pic in
6542 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6545 lt_prog_compiler_pic=
6546 lt_prog_compiler_can_build_shared=no
6551 # For platforms which do not support PIC, -DPIC is meaningless:
6553 lt_prog_compiler_pic=
6556 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6560 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6561 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 lt_cv_prog_compiler_c_o=no
6566 $rm -r conftest 2>/dev/null
6570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6572 lt_compiler_flag="-o out/conftest2.$ac_objext"
6573 # Insert the option either (1) after the last *FLAGS variable, or
6574 # (2) before a word containing "conftest.", or (3) at the end.
6575 # Note that $ac_compile itself does not contain backslashes and begins
6576 # with a dollar sign (not a hyphen), so the echo should work correctly.
6577 lt_compile=`echo "$ac_compile" | $SED \
6578 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6580 -e 's:$: $lt_compiler_flag:'`
6581 (eval echo "\"\$as_me:6581: $lt_compile\"" >&5)
6582 (eval "$lt_compile" 2>out/conftest.err)
6584 cat out/conftest.err >&5
6585 echo "$as_me:6585: \$? = $ac_status" >&5
6586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6588 # The compiler can only warn and ignore the option if not recognized
6589 # So say no if there are warnings
6590 if test ! -s out/conftest.err; then
6591 lt_cv_prog_compiler_c_o=yes
6596 # SGI C++ compiler will create directory out/ii_files/ for
6597 # template instantiation
6598 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6599 $rm out/* && rmdir out
6605 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6606 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6609 hard_links="nottested"
6610 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6611 # do not overwrite the value of need_locks provided by the user
6612 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6613 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6618 ln conftest.a conftest.b 2>&5 || hard_links=no
6619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6620 echo "$as_me:$LINENO: result: $hard_links" >&5
6621 echo "${ECHO_T}$hard_links" >&6
6622 if test "$hard_links" = no; then
6623 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6624 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6631 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6632 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6635 allow_undefined_flag=
6636 enable_shared_with_static_runtimes=no
6638 archive_expsym_cmds=
6639 old_archive_From_new_cmds=
6640 old_archive_from_expsyms_cmds=
6641 export_dynamic_flag_spec=
6642 whole_archive_flag_spec=
6643 thread_safe_flag_spec=
6644 hardcode_libdir_flag_spec=
6645 hardcode_libdir_flag_spec_ld=
6646 hardcode_libdir_separator=
6649 hardcode_shlibpath_var=unsupported
6650 link_all_deplibs=unknown
6651 hardcode_automatic=no
6654 always_export_symbols=no
6655 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6656 # include_expsyms should be a list of space-separated symbols to be *always*
6657 # included in the symbol list
6659 # exclude_expsyms can be an extended regexp of symbols to exclude
6660 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6661 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6662 # as well as any symbol that contains `d'.
6663 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6664 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6665 # platforms (ab)use it in PIC code, but their linkers get confused if
6666 # the symbol is explicitly referenced. Since portable code cannot
6667 # rely on this symbol name, it's probably fine to never include it in
6668 # preloaded symbol tables.
6669 extract_expsyms_cmds=
6672 cygwin* | mingw* | pw32*)
6673 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6674 # When not using gcc, we currently assume that we are using
6675 # Microsoft Visual C++.
6676 if test "$GCC" != yes; then
6686 if test "$with_gnu_ld" = yes; then
6687 # If archive_cmds runs LD, not CC, wlarc should be empty
6690 # See if GNU ld supports shared libraries.
6692 aix3* | aix4* | aix5*)
6693 # On AIX/PPC, the GNU linker is very broken
6694 if test "$host_cpu" != ia64; then
6698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6699 *** to be unable to reliably create shared libraries on AIX.
6700 *** Therefore, libtool is disabling shared libraries support. If you
6701 *** really care for shared libraries, you may want to modify your PATH
6702 *** so that a non-GNU linker is found, and then restart.
6709 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)'
6710 hardcode_libdir_flag_spec='-L$libdir'
6711 hardcode_minus_L=yes
6713 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6714 # that the semantics of dynamic libraries on AmigaOS, at least up
6715 # to version 4, is to share data among multiple programs linked
6716 # with the same dynamic library. Since this doesn't match the
6717 # behavior of shared libraries on other platforms, we can't use
6723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6724 allow_undefined_flag=unsupported
6725 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6726 # support --undefined. This deserves some investigation. FIXME
6727 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6733 cygwin* | mingw* | pw32*)
6734 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6735 # as there is no search path for DLLs.
6736 hardcode_libdir_flag_spec='-L$libdir'
6737 allow_undefined_flag=unsupported
6738 always_export_symbols=no
6739 enable_shared_with_static_runtimes=yes
6740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6742 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6744 # If the export-symbols file already is a .def file (1st line
6745 # is EXPORTS), use it as is; otherwise, prepend...
6746 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6747 cp $export_symbols $output_objdir/$soname.def;
6749 echo EXPORTS > $output_objdir/$soname.def;
6750 cat $export_symbols >> $output_objdir/$soname.def;
6752 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6758 netbsd* | knetbsd*-gnu)
6759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6760 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6769 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6773 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6774 *** create shared libraries on Solaris systems. Therefore, libtool
6775 *** is disabling shared libraries support. We urge you to upgrade GNU
6776 *** binutils to release 2.9.1 or newer. Another option is to modify
6777 *** your PATH or compiler configuration so that the native linker is
6778 *** used, and then restart.
6781 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6790 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6793 hardcode_shlibpath_var=no
6797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6798 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6799 archive_cmds="$tmp_archive_cmds"
6800 supports_anon_versioning=no
6801 case `$LD -v 2>/dev/null` in
6802 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6803 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6804 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6805 *\ 2.11.*) ;; # other 2.11 versions
6806 *) supports_anon_versioning=yes ;;
6808 if test $supports_anon_versioning = yes; then
6809 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6811 $echo "local: *; };" >> $output_objdir/$libname.ver~
6812 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6814 archive_expsym_cmds="$tmp_archive_cmds"
6823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6832 if test "$ld_shlibs" = yes; then
6833 runpath_var=LD_RUN_PATH
6834 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6835 export_dynamic_flag_spec='${wl}--export-dynamic'
6836 # ancient GNU ld didn't support --whole-archive et. al.
6837 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6838 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6840 whole_archive_flag_spec=
6844 # PORTME fill in a description of your system's linker (not GNU ld)
6847 allow_undefined_flag=unsupported
6848 always_export_symbols=yes
6849 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'
6850 # Note: this linker hardcodes the directories in LIBPATH if there
6851 # are no directories specified by -L.
6852 hardcode_minus_L=yes
6853 if test "$GCC" = yes && test -z "$link_static_flag"; then
6854 # Neither direct hardcoding nor static linking is supported with a
6856 hardcode_direct=unsupported
6861 if test "$host_cpu" = ia64; then
6862 # On IA64, the linker does run time linking by default, so we don't
6863 # have to do anything special.
6864 aix_use_runtimelinking=no
6865 exp_sym_flag='-Bexport'
6868 # If we're using GNU nm, then we don't want the "-C" option.
6869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6870 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6871 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'
6873 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'
6875 aix_use_runtimelinking=no
6877 # Test if we are trying to use run time linking or normal
6878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6879 # need to do runtime linking.
6880 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6881 for ld_flag in $LDFLAGS; do
6882 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6883 aix_use_runtimelinking=yes
6889 exp_sym_flag='-bexport'
6890 no_entry_flag='-bnoentry'
6893 # When large executables or shared objects are built, AIX ld can
6894 # have problems creating the table of contents. If linking a library
6895 # or program results in "error TOC overflow" add -mminimal-toc to
6896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6901 hardcode_libdir_separator=':'
6902 link_all_deplibs=yes
6904 if test "$GCC" = yes; then
6905 case $host_os in aix4.012|aix4.012.*)
6906 # We only want to do this on AIX 4.2 and lower, the check
6907 # below for broken collect2 doesn't work under 4.3+
6908 collect2name=`${CC} -print-prog-name=collect2`
6909 if test -f "$collect2name" && \
6910 strings "$collect2name" | grep resolve_lib_name >/dev/null
6912 # We have reworked collect2
6915 # We have old collect2
6916 hardcode_direct=unsupported
6917 # It fails to find uninstalled libraries when the uninstalled
6918 # path is not listed in the libpath. Setting hardcode_minus_L
6919 # to unsupported forces relinking
6920 hardcode_minus_L=yes
6921 hardcode_libdir_flag_spec='-L$libdir'
6922 hardcode_libdir_separator=
6925 shared_flag='-shared'
6928 if test "$host_cpu" = ia64; then
6929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6930 # chokes on -Wl,-G. The following line is correct:
6933 if test "$aix_use_runtimelinking" = yes; then
6934 shared_flag='${wl}-G'
6936 shared_flag='${wl}-bM:SRE'
6941 # It seems that -bexpall does not export symbols beginning with
6942 # underscore (_), so it is better to generate a list of symbols to export.
6943 always_export_symbols=yes
6944 if test "$aix_use_runtimelinking" = yes; then
6945 # Warning - without using the other runtime loading flags (-brtl),
6946 # -berok will link without error, but may produce a broken library.
6947 allow_undefined_flag='-berok'
6948 # Determine the default libpath from the value encoded in an empty executable.
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6964 rm -f conftest.$ac_objext conftest$ac_exeext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6966 (eval $ac_link) 2>conftest.er1
6968 grep -v '^ *+' conftest.er1 >conftest.err
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; } &&
6979 { ac_try='test -s conftest$ac_exeext'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6988 # Check for a 64-bit object if we didn't find anything.
6989 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; }
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6996 rm -f conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7000 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7001 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"
7003 if test "$host_cpu" = ia64; then
7004 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7005 allow_undefined_flag="-z nodefs"
7006 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"
7008 # Determine the default libpath from the value encoded in an empty executable.
7009 cat >conftest.$ac_ext <<_ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest$ac_exeext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7048 # Check for a 64-bit object if we didn't find anything.
7049 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; }
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7056 rm -f conftest.err conftest.$ac_objext \
7057 conftest$ac_exeext conftest.$ac_ext
7058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7061 # Warning - without using the other run time loading flags,
7062 # -berok will link without error, but may produce a broken library.
7063 no_undefined_flag=' ${wl}-bernotok'
7064 allow_undefined_flag=' ${wl}-berok'
7065 # -bexpall does not export symbols beginning with underscore (_)
7066 always_export_symbols=yes
7067 # Exported symbols can be pulled into shared objects from archives
7068 whole_archive_flag_spec=' '
7069 archive_cmds_need_lc=yes
7070 # This is similar to how AIX traditionally builds it's shared libraries.
7071 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'
7077 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)'
7078 hardcode_libdir_flag_spec='-L$libdir'
7079 hardcode_minus_L=yes
7080 # see comment about different semantics on the GNU ld section
7085 export_dynamic_flag_spec=-rdynamic
7088 cygwin* | mingw* | pw32*)
7089 # When not using gcc, we currently assume that we are using
7090 # Microsoft Visual C++.
7091 # hardcode_libdir_flag_spec is actually meaningless, as there is
7092 # no search path for DLLs.
7093 hardcode_libdir_flag_spec=' '
7094 allow_undefined_flag=unsupported
7095 # Tell ltmain to make .lib files, not .a files.
7097 # Tell ltmain to make .dll files, not .so files.
7099 # FIXME: Setting linknames here is a bad hack.
7100 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7101 # The linker will automatically build a .lib file if we build a DLL.
7102 old_archive_From_new_cmds='true'
7103 # FIXME: Should let the user specify the lib program.
7104 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7105 fix_srcfile_path='`cygpath -w "$srcfile"`'
7106 enable_shared_with_static_runtimes=yes
7109 darwin* | rhapsody*)
7110 if test "$GXX" = yes ; then
7111 archive_cmds_need_lc=no
7113 rhapsody* | darwin1.[012])
7114 allow_undefined_flag='-undefined suppress'
7117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7118 allow_undefined_flag='-flat_namespace -undefined suppress'
7120 case ${MACOSX_DEPLOYMENT_TARGET} in
7122 allow_undefined_flag='-flat_namespace -undefined suppress'
7125 allow_undefined_flag='-undefined dynamic_lookup'
7131 lt_int_apple_cc_single_mod=no
7132 output_verbose_link_cmd='echo'
7133 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7134 lt_int_apple_cc_single_mod=yes
7136 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7137 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7139 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'
7141 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7142 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7143 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7144 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}'
7146 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}'
7148 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}'
7150 hardcode_automatic=yes
7151 hardcode_shlibpath_var=unsupported
7152 whole_archive_flag_spec='-all_load $convenience'
7153 link_all_deplibs=yes
7160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7161 hardcode_libdir_flag_spec='-L$libdir'
7162 hardcode_shlibpath_var=no
7169 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7170 # support. Future versions do this automatically, but an explicit c++rt0.o
7171 # does not break anything, and helps significantly (at the cost of a little
7174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7175 hardcode_libdir_flag_spec='-R$libdir'
7177 hardcode_shlibpath_var=no
7180 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7184 hardcode_minus_L=yes
7185 hardcode_shlibpath_var=no
7188 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7189 freebsd* | kfreebsd*-gnu)
7190 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7191 hardcode_libdir_flag_spec='-R$libdir'
7193 hardcode_shlibpath_var=no
7197 if test "$GCC" = yes; then
7198 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'
7200 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'
7202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7203 hardcode_libdir_separator=:
7206 # hardcode_minus_L: Not really in the search PATH,
7207 # but as the default location of the library.
7208 hardcode_minus_L=yes
7209 export_dynamic_flag_spec='${wl}-E'
7213 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7216 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7225 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7232 if test "$with_gnu_ld" = no; then
7235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7236 hardcode_libdir_flag_spec_ld='+b $libdir'
7237 hardcode_libdir_separator=:
7239 hardcode_shlibpath_var=no
7242 hardcode_libdir_flag_spec='-L$libdir'
7244 hardcode_shlibpath_var=no
7246 # hardcode_minus_L: Not really in the search PATH,
7247 # but as the default location of the library.
7248 hardcode_minus_L=yes
7251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7252 hardcode_libdir_separator=:
7254 export_dynamic_flag_spec='${wl}-E'
7256 # hardcode_minus_L: Not really in the search PATH,
7257 # but as the default location of the library.
7258 hardcode_minus_L=yes
7264 irix5* | irix6* | nonstopux*)
7265 if test "$GCC" = yes; then
7266 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'
7268 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'
7269 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7272 hardcode_libdir_separator=:
7273 link_all_deplibs=yes
7276 netbsd* | knetbsd*-gnu)
7277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7280 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7282 hardcode_libdir_flag_spec='-R$libdir'
7284 hardcode_shlibpath_var=no
7288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7291 hardcode_libdir_separator=:
7292 hardcode_shlibpath_var=no
7297 hardcode_shlibpath_var=no
7298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7300 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7301 export_dynamic_flag_spec='${wl}-E'
7304 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_libdir_flag_spec='-R$libdir'
7309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7317 hardcode_libdir_flag_spec='-L$libdir'
7318 hardcode_minus_L=yes
7319 allow_undefined_flag=unsupported
7320 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'
7321 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7325 if test "$GCC" = yes; then
7326 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7327 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'
7329 allow_undefined_flag=' -expect_unresolved \*'
7330 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'
7332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7333 hardcode_libdir_separator=:
7336 osf4* | osf5*) # as osf3* with the addition of -msym flag
7337 if test "$GCC" = yes; then
7338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7339 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'
7340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7342 allow_undefined_flag=' -expect_unresolved \*'
7343 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'
7344 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7345 $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'
7347 # Both c and cxx compiler support -rpath directly
7348 hardcode_libdir_flag_spec='-rpath $libdir'
7350 hardcode_libdir_separator=:
7354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355 hardcode_shlibpath_var=no
7356 export_dynamic_flag_spec='${wl}-Bexport'
7357 runpath_var=LD_RUN_PATH
7358 hardcode_runpath_var=yes
7362 no_undefined_flag=' -z text'
7363 if test "$GCC" = yes; then
7364 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7365 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7368 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7370 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7372 hardcode_libdir_flag_spec='-R$libdir'
7373 hardcode_shlibpath_var=no
7375 solaris2.[0-5] | solaris2.[0-5].*) ;;
7376 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7377 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7379 link_all_deplibs=yes
7383 if test "x$host_vendor" = xsequent; then
7384 # Use $CC to link under sequent, because it throws in some extra .o
7385 # files that make .init and .fini sections work.
7386 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7388 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7390 hardcode_libdir_flag_spec='-L$libdir'
7392 hardcode_minus_L=yes
7393 hardcode_shlibpath_var=no
7397 case $host_vendor in
7399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_direct=yes # is this really true???
7403 ## LD is ld it makes a PLAMLIB
7404 ## CC just makes a GrossModule.
7405 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7406 reload_cmds='$CC -r -o $output$reload_objs'
7410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7414 runpath_var='LD_RUN_PATH'
7415 hardcode_shlibpath_var=no
7419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420 hardcode_shlibpath_var=no
7421 export_dynamic_flag_spec='-Bexport'
7425 if test -d /usr/nec; then
7426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7427 hardcode_shlibpath_var=no
7428 runpath_var=LD_RUN_PATH
7429 hardcode_runpath_var=yes
7435 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_shlibpath_var=no
7439 hardcode_runpath_var=yes
7440 runpath_var=LD_RUN_PATH
7443 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7444 no_undefined_flag='${wl}-z ${wl}text'
7445 if test "$GCC" = yes; then
7446 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7448 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7450 runpath_var='LD_RUN_PATH'
7451 hardcode_shlibpath_var=no
7455 no_undefined_flag=' -z text'
7456 # $CC -shared without GNU ld will not create a library from C++
7457 # object files and a static libstdc++, better avoid it by now
7458 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7460 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7461 hardcode_libdir_flag_spec=
7462 hardcode_shlibpath_var=no
7463 runpath_var='LD_RUN_PATH'
7467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468 hardcode_libdir_flag_spec='-L$libdir'
7469 hardcode_shlibpath_var=no
7478 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7479 echo "${ECHO_T}$ld_shlibs" >&6
7480 test "$ld_shlibs" = no && can_build_shared=no
7482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7483 if test "$GCC" = yes; then
7484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7488 # Do we need to explicitly link libc?
7490 case "x$archive_cmds_need_lc" in
7492 # Assume -lc should be added
7493 archive_cmds_need_lc=yes
7495 if test "$enable_shared" = yes && test "$GCC" = yes; then
7496 case $archive_cmds in
7498 # FIXME: we may have to deal with multi-command sequences.
7501 # Test whether the compiler implicitly links with -lc since on some
7502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7503 # to ld, don't add -lc before -lgcc.
7504 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7505 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } 2>conftest.err; then
7516 libobjs=conftest.$ac_objext
7518 wl=$lt_prog_compiler_wl
7524 lt_save_allow_undefined_flag=$allow_undefined_flag
7525 allow_undefined_flag=
7526 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7527 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }
7532 archive_cmds_need_lc=no
7534 archive_cmds_need_lc=yes
7536 allow_undefined_flag=$lt_save_allow_undefined_flag
7538 cat conftest.err 1>&5
7541 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7542 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7549 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7550 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7552 libname_spec='lib$name'
7560 shlibpath_overrides_runpath=unknown
7562 dynamic_linker="$host_os ld.so"
7563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7564 if test "$GCC" = yes; then
7565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7566 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7567 # if the path contains ";" then we assume it to be the separator
7568 # otherwise default to the standard path separator (i.e. ":") - it is
7569 # assumed that no part of a normal pathname contains ";" but that should
7570 # okay in the real world where ";" in dirpaths is itself problematic.
7571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7578 need_lib_prefix=unknown
7579 hardcode_into_libs=no
7581 # when you set need_version to no, make sure it does not cause -set_version
7582 # flags to be left without arguments
7583 need_version=unknown
7588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7589 shlibpath_var=LIBPATH
7591 # AIX 3 has no versioning support, so we append a major version to the name.
7592 soname_spec='${libname}${release}${shared_ext}$major'
7599 hardcode_into_libs=yes
7600 if test "$host_cpu" = ia64; then
7601 # AIX 5 supports IA64
7602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7603 shlibpath_var=LD_LIBRARY_PATH
7605 # With GCC up to 2.95.x, collect2 would create an import file
7606 # for dependence libraries. The import file would start with
7607 # the line `#! .'. This would cause the generated library to
7608 # depend on `.', always an invalid library. This was fixed in
7609 # development snapshots of GCC prior to 3.0.
7611 aix4 | aix4.[01] | aix4.[01].*)
7612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7614 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7622 # soname into executable. Probably we can add versioning support to
7623 # collect2, so additional links can be useful in future.
7624 if test "$aix_use_runtimelinking" = yes; then
7625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7626 # instead of lib<name>.a to let people know that these are not
7627 # typical AIX shared libraries.
7628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7630 # We preserve .a as extension for shared libraries through AIX4.2
7631 # and later when we are not doing run time linking.
7632 library_names_spec='${libname}${release}.a $libname.a'
7633 soname_spec='${libname}${release}${shared_ext}$major'
7635 shlibpath_var=LIBPATH
7640 library_names_spec='$libname.ixlibrary $libname.a'
7641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7642 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'
7646 library_names_spec='${libname}${shared_ext}'
7647 dynamic_linker="$host_os ld.so"
7648 shlibpath_var=LIBRARY_PATH
7654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7655 soname_spec='${libname}${release}${shared_ext}$major'
7656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7657 shlibpath_var=LD_LIBRARY_PATH
7658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7660 # the default ld.so.conf also contains /usr/contrib/lib and
7661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7662 # libtool to hard-code these into programs
7665 cygwin* | mingw* | pw32*)
7666 version_type=windows
7671 case $GCC,$host_os in
7672 yes,cygwin* | yes,mingw* | yes,pw32*)
7673 library_names_spec='$libname.dll.a'
7674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7675 postinstall_cmds='base_file=`basename \${file}`~
7676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7677 dldir=$destdir/`dirname \$dlpath`~
7678 test -d \$dldir || mkdir -p \$dldir~
7679 $install_prog $dir/$dlname \$dldir/$dlname'
7680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7681 dlpath=$dir/\$dldll~
7683 shlibpath_overrides_runpath=yes
7687 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7692 # MinGW DLLs use traditional 'lib' prefix
7693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7695 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7696 # It is most probably a Windows format PATH printed by
7697 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7698 # path with ; separators, and with drive letters. We can handle the
7699 # drive letters (cygwin fileutils understands them), so leave them,
7700 # especially as we might pass files found there to a mingw objdump,
7701 # which wouldn't understand a cygwinified path. Ahh.
7702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7708 # pw32 DLLs use 'pw' prefix rather than 'lib'
7709 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7718 dynamic_linker='Win32 ld.exe'
7719 # FIXME: first we should search . and the directory the executable is in
7723 darwin* | rhapsody*)
7724 dynamic_linker="$host_os dyld"
7728 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7729 soname_spec='${libname}${release}${major}$shared_ext'
7730 shlibpath_overrides_runpath=yes
7731 shlibpath_var=DYLD_LIBRARY_PATH
7732 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7733 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7734 if test "$GCC" = yes; then
7735 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"`
7737 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7760 soname_spec='${libname}${release}${shared_ext}$major'
7761 shlibpath_var=LD_LIBRARY_PATH
7762 shlibpath_overrides_runpath=no
7763 hardcode_into_libs=yes
7764 dynamic_linker='GNU ld.so'
7768 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7769 version_type=freebsd-$objformat
7770 case $version_type in
7772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7781 shlibpath_var=LD_LIBRARY_PATH
7784 shlibpath_overrides_runpath=yes
7786 freebsd3.01* | freebsdelf3.01*)
7787 shlibpath_overrides_runpath=yes
7788 hardcode_into_libs=yes
7791 shlibpath_overrides_runpath=no
7792 hardcode_into_libs=yes
7801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7802 soname_spec='${libname}${release}${shared_ext}$major'
7803 shlibpath_var=LD_LIBRARY_PATH
7804 hardcode_into_libs=yes
7807 hpux9* | hpux10* | hpux11*)
7808 # Give a soname corresponding to the major version so that dld.sl refuses to
7809 # link against other versions.
7816 hardcode_into_libs=yes
7817 dynamic_linker="$host_os dld.so"
7818 shlibpath_var=LD_LIBRARY_PATH
7819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7821 soname_spec='${libname}${release}${shared_ext}$major'
7822 if test "X$HPUX_IA64_MODE" = X32; then
7823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7831 hardcode_into_libs=yes
7832 dynamic_linker="$host_os dld.sl"
7833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836 soname_spec='${libname}${release}${shared_ext}$major'
7837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7842 dynamic_linker="$host_os dld.sl"
7843 shlibpath_var=SHLIB_PATH
7844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846 soname_spec='${libname}${release}${shared_ext}$major'
7849 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7850 postinstall_cmds='chmod 555 $lib'
7853 irix5* | irix6* | nonstopux*)
7855 nonstopux*) version_type=nonstopux ;;
7857 if test "$lt_cv_prog_gnu_ld" = yes; then
7865 soname_spec='${libname}${release}${shared_ext}$major'
7866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7868 irix5* | nonstopux*)
7872 case $LD in # libtool.m4 will add one of these switches to LD
7873 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7874 libsuff= shlibsuff= libmagic=32-bit;;
7875 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7876 libsuff=32 shlibsuff=N32 libmagic=N32;;
7877 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7878 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7879 *) libsuff= shlibsuff= libmagic=never-match;;
7883 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7884 shlibpath_overrides_runpath=no
7885 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7886 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7887 hardcode_into_libs=yes
7890 # No shared lib support for Linux oldld, aout, or coff.
7891 linux*oldld* | linux*aout* | linux*coff*)
7895 # This must be Linux ELF.
7900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901 soname_spec='${libname}${release}${shared_ext}$major'
7902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7903 shlibpath_var=LD_LIBRARY_PATH
7904 shlibpath_overrides_runpath=no
7905 # This implies no fast_install, which is unacceptable.
7906 # Some rework will be needed to allow for fast_install
7907 # before this can be enabled.
7908 hardcode_into_libs=yes
7910 # Append ld.so.conf contents to the search path
7911 if test -f /etc/ld.so.conf; then
7912 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7913 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7916 # We used to test for /lib/ld.so.1 and disable shared libraries on
7917 # powerpc, because MkLinux only supported shared libraries with the
7918 # GNU dynamic linker. Since this was broken with cross compilers,
7919 # most powerpc-linux boxes support dynamic linking these days and
7920 # people can always --disable-shared, the test was removed, and we
7921 # assume the GNU/Linux dynamic linker is in use.
7922 dynamic_linker='GNU/Linux ld.so'
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7930 soname_spec='${libname}${release}${shared_ext}$major'
7931 shlibpath_var=LD_LIBRARY_PATH
7932 shlibpath_overrides_runpath=no
7933 hardcode_into_libs=yes
7934 dynamic_linker='GNU ld.so'
7941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7944 dynamic_linker='NetBSD (a.out) ld.so'
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
7948 dynamic_linker='NetBSD ld.elf_so'
7950 shlibpath_var=LD_LIBRARY_PATH
7951 shlibpath_overrides_runpath=yes
7952 hardcode_into_libs=yes
7957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958 shlibpath_var=LD_LIBRARY_PATH
7959 shlibpath_overrides_runpath=yes
7966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967 soname_spec='${libname}${release}${shared_ext}$major'
7968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=yes
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7978 shlibpath_var=LD_LIBRARY_PATH
7979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7981 openbsd2.[89] | openbsd2.[89].*)
7982 shlibpath_overrides_runpath=no
7985 shlibpath_overrides_runpath=yes
7989 shlibpath_overrides_runpath=yes
7994 libname_spec='$name'
7997 library_names_spec='$libname${shared_ext} $libname.a'
7998 dynamic_linker='OS/2 ld.exe'
7999 shlibpath_var=LIBPATH
8002 osf3* | osf4* | osf5*)
8006 soname_spec='${libname}${release}${shared_ext}$major'
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008 shlibpath_var=LD_LIBRARY_PATH
8009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8015 soname_spec='${libname}${release}${shared_ext}$major'
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8017 shlibpath_var=LD_LIBRARY_PATH
8024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025 soname_spec='${libname}${release}${shared_ext}$major'
8026 shlibpath_var=LD_LIBRARY_PATH
8027 shlibpath_overrides_runpath=yes
8028 hardcode_into_libs=yes
8029 # ldd complains unless libraries are executable
8030 postinstall_cmds='chmod +x $lib'
8035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8037 shlibpath_var=LD_LIBRARY_PATH
8038 shlibpath_overrides_runpath=yes
8039 if test "$with_gnu_ld" = yes; then
8045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048 soname_spec='${libname}${release}${shared_ext}$major'
8049 shlibpath_var=LD_LIBRARY_PATH
8050 case $host_vendor in
8052 shlibpath_overrides_runpath=no
8054 export_dynamic_flag_spec='${wl}-Blargedynsym'
8055 runpath_var=LD_RUN_PATH
8063 shlibpath_overrides_runpath=no
8064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8070 if test -d /usr/nec ;then
8072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8073 soname_spec='$libname${shared_ext}.$major'
8074 shlibpath_var=LD_LIBRARY_PATH
8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8081 soname_spec='${libname}${release}${shared_ext}$major'
8082 shlibpath_var=LD_LIBRARY_PATH
8089 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8090 echo "${ECHO_T}$dynamic_linker" >&6
8091 test "$dynamic_linker" = no && can_build_shared=no
8093 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8096 if test -n "$hardcode_libdir_flag_spec" || \
8097 test -n "$runpath_var " || \
8098 test "X$hardcode_automatic"="Xyes" ; then
8100 # We can hardcode non-existant directories.
8101 if test "$hardcode_direct" != no &&
8102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8103 # have to relink, otherwise we might link with an installed library
8104 # when we should be linking with a yet-to-be-installed one
8105 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8106 test "$hardcode_minus_L" != no; then
8107 # Linking always hardcodes the temporary library directory.
8108 hardcode_action=relink
8110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8111 hardcode_action=immediate
8114 # We cannot hardcode anything, or else we can only hardcode existing
8116 hardcode_action=unsupported
8118 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8119 echo "${ECHO_T}$hardcode_action" >&6
8121 if test "$hardcode_action" = relink; then
8122 # Fast installation is not supported
8123 enable_fast_install=no
8124 elif test "$shlibpath_overrides_runpath" = yes ||
8125 test "$enable_shared" = no; then
8126 # Fast installation is not necessary
8127 enable_fast_install=needless
8132 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8136 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8137 echo "$as_me:$LINENO: result: yes" >&5
8138 echo "${ECHO_T}yes" >&6
8140 # FIXME - insert some real tests, host_os isn't really good enough
8143 if test -n "$STRIP" ; then
8144 striplib="$STRIP -x"
8145 echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8148 echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8153 echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6
8159 if test "x$enable_dlopen" != xyes; then
8160 enable_dlopen=unknown
8161 enable_dlopen_self=unknown
8162 enable_dlopen_self_static=unknown
8169 lt_cv_dlopen="load_add_on"
8171 lt_cv_dlopen_self=yes
8175 lt_cv_dlopen="LoadLibrary"
8180 lt_cv_dlopen="dlopen"
8185 # if libdl is installed we need to link against it
8186 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 ac_check_lib_save_LIBS=$LIBS
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8200 /* Override any gcc2 internal prototype to avoid an error. */
8204 /* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_lib_dl_dlopen=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_cv_lib_dl_dlopen=no
8243 rm -f conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8247 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8249 if test $ac_cv_lib_dl_dlopen = yes; then
8250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8255 lt_cv_dlopen_self=yes
8262 echo "$as_me:$LINENO: checking for shl_load" >&5
8263 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8264 if test "${ac_cv_func_shl_load+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8275 #define shl_load innocuous_shl_load
8277 /* System header to define __stub macros and hopefully few prototypes,
8278 which can conflict with char shl_load (); below.
8279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280 <limits.h> exists even on freestanding compilers. */
8283 # include <limits.h>
8285 # include <assert.h>
8290 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8298 /* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
8301 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8304 char (*f) () = shl_load;
8313 return f != shl_load;
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_func_shl_load=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_func_shl_load=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8350 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8351 if test $ac_cv_func_shl_load = yes; then
8352 lt_cv_dlopen="shl_load"
8354 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8355 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8356 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 ac_check_lib_save_LIBS=$LIBS
8361 cat >conftest.$ac_ext <<_ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8368 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_lib_dld_shl_load=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_cv_lib_dld_shl_load=no
8411 rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413 LIBS=$ac_check_lib_save_LIBS
8415 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8416 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8417 if test $ac_cv_lib_dld_shl_load = yes; then
8418 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8420 echo "$as_me:$LINENO: checking for dlopen" >&5
8421 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8422 if test "${ac_cv_func_dlopen+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8433 #define dlopen innocuous_dlopen
8435 /* System header to define __stub macros and hopefully few prototypes,
8436 which can conflict with char dlopen (); below.
8437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8438 <limits.h> exists even on freestanding compilers. */
8441 # include <limits.h>
8443 # include <assert.h>
8448 /* Override any gcc2 internal prototype to avoid an error. */
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8456 /* The GNU C library defines this for functions which it implements
8457 to always fail with ENOSYS. Some functions are actually named
8458 something starting with __ and the normal name is an alias. */
8459 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8462 char (*f) () = dlopen;
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_func_dlopen=yes
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 ac_cv_func_dlopen=no
8504 rm -f conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8507 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8508 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8509 if test $ac_cv_func_dlopen = yes; then
8510 lt_cv_dlopen="dlopen"
8512 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 ac_check_lib_save_LIBS=$LIBS
8519 cat >conftest.$ac_ext <<_ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8526 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543 (eval $ac_link) 2>conftest.er1
8545 grep -v '^ *+' conftest.er1 >conftest.err
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest$ac_exeext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_lib_dl_dlopen=yes
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 ac_cv_lib_dl_dlopen=no
8569 rm -f conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 LIBS=$ac_check_lib_save_LIBS
8573 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8574 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8575 if test $ac_cv_lib_dl_dlopen = yes; then
8576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8578 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8579 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8580 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 ac_check_lib_save_LIBS=$LIBS
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8592 /* Override any gcc2 internal prototype to avoid an error. */
8596 /* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>conftest.er1
8611 grep -v '^ *+' conftest.er1 >conftest.err
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 ac_cv_lib_svld_dlopen=yes
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_cv_lib_svld_dlopen=no
8635 rm -f conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ac_check_lib_save_LIBS
8639 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8640 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8641 if test $ac_cv_lib_svld_dlopen = yes; then
8642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8644 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8645 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8646 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 ac_check_lib_save_LIBS=$LIBS
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8658 /* Override any gcc2 internal prototype to avoid an error. */
8662 /* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675 (eval $ac_link) 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; } &&
8688 { ac_try='test -s conftest$ac_exeext'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_cv_lib_dld_dld_link=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_lib_dld_dld_link=no
8701 rm -f conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8705 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8706 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8707 if test $ac_cv_lib_dld_dld_link = yes; then
8708 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8729 if test "x$lt_cv_dlopen" != xno; then
8735 case $lt_cv_dlopen in
8737 save_CPPFLAGS="$CPPFLAGS"
8738 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8740 save_LDFLAGS="$LDFLAGS"
8741 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8744 LIBS="$lt_cv_dlopen_libs $LIBS"
8746 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8747 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8748 if test "${lt_cv_dlopen_self+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 if test "$cross_compiling" = yes; then :
8752 lt_cv_dlopen_self=cross
8754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8755 lt_status=$lt_dlunknown
8756 cat > conftest.$ac_ext <<EOF
8757 #line 8757 "configure"
8758 #include "confdefs.h"
8767 # define LT_DLGLOBAL RTLD_GLOBAL
8770 # define LT_DLGLOBAL DL_GLOBAL
8772 # define LT_DLGLOBAL 0
8776 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8777 find out it does not work in some platform. */
8778 #ifndef LT_DLLAZY_OR_NOW
8780 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8783 # define LT_DLLAZY_OR_NOW DL_LAZY
8786 # define LT_DLLAZY_OR_NOW RTLD_NOW
8789 # define LT_DLLAZY_OR_NOW DL_NOW
8791 # define LT_DLLAZY_OR_NOW 0
8799 extern "C" void exit (int);
8802 void fnord() { int i=42;}
8805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8806 int status = $lt_dlunknown;
8810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8811 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8812 /* dlclose (self); */
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8823 (./conftest; exit; ) 2>/dev/null
8826 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8827 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8828 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8831 # compilation failed
8832 lt_cv_dlopen_self=no
8839 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8840 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8842 if test "x$lt_cv_dlopen_self" = xyes; then
8843 LDFLAGS="$LDFLAGS $link_static_flag"
8844 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8845 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8846 if test "${lt_cv_dlopen_self_static+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 if test "$cross_compiling" = yes; then :
8850 lt_cv_dlopen_self_static=cross
8852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8853 lt_status=$lt_dlunknown
8854 cat > conftest.$ac_ext <<EOF
8855 #line 8855 "configure"
8856 #include "confdefs.h"
8865 # define LT_DLGLOBAL RTLD_GLOBAL
8868 # define LT_DLGLOBAL DL_GLOBAL
8870 # define LT_DLGLOBAL 0
8874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8875 find out it does not work in some platform. */
8876 #ifndef LT_DLLAZY_OR_NOW
8878 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8881 # define LT_DLLAZY_OR_NOW DL_LAZY
8884 # define LT_DLLAZY_OR_NOW RTLD_NOW
8887 # define LT_DLLAZY_OR_NOW DL_NOW
8889 # define LT_DLLAZY_OR_NOW 0
8897 extern "C" void exit (int);
8900 void fnord() { int i=42;}
8903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8904 int status = $lt_dlunknown;
8908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8909 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8910 /* dlclose (self); */
8916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8917 (eval $ac_link) 2>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8921 (./conftest; exit; ) 2>/dev/null
8924 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8925 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8926 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8929 # compilation failed
8930 lt_cv_dlopen_self_static=no
8937 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8938 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8941 CPPFLAGS="$save_CPPFLAGS"
8942 LDFLAGS="$save_LDFLAGS"
8947 case $lt_cv_dlopen_self in
8948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8949 *) enable_dlopen_self=unknown ;;
8952 case $lt_cv_dlopen_self_static in
8953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8954 *) enable_dlopen_self_static=unknown ;;
8959 # Report which librarie types wil actually be built
8960 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8961 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8962 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8963 echo "${ECHO_T}$can_build_shared" >&6
8965 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8966 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8967 test "$can_build_shared" = "no" && enable_shared=no
8969 # On AIX, shared libraries and static libraries use the same namespace, and
8970 # are all built from PIC.
8973 test "$enable_shared" = yes && enable_static=no
8974 if test -n "$RANLIB"; then
8975 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8976 postinstall_cmds='$RANLIB $lib'
8981 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8982 test "$enable_shared" = yes && enable_static=no
8985 darwin* | rhapsody*)
8986 if test "$GCC" = yes; then
8987 archive_cmds_need_lc=no
8989 rhapsody* | darwin1.[012])
8990 allow_undefined_flag='-undefined suppress'
8993 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8994 allow_undefined_flag='-flat_namespace -undefined suppress'
8996 case ${MACOSX_DEPLOYMENT_TARGET} in
8998 allow_undefined_flag='-flat_namespace -undefined suppress'
9001 allow_undefined_flag='-undefined dynamic_lookup'
9007 output_verbose_link_cmd='echo'
9008 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9009 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9010 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9011 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}'
9012 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}'
9014 hardcode_automatic=yes
9015 hardcode_shlibpath_var=unsupported
9016 whole_archive_flag_spec='-all_load $convenience'
9017 link_all_deplibs=yes
9023 echo "$as_me:$LINENO: result: $enable_shared" >&5
9024 echo "${ECHO_T}$enable_shared" >&6
9026 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9027 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9028 # Make sure either enable_shared or enable_static is yes.
9029 test "$enable_shared" = yes || enable_static=yes
9030 echo "$as_me:$LINENO: result: $enable_static" >&5
9031 echo "${ECHO_T}$enable_static" >&6
9033 # The else clause should only fire when bootstrapping the
9034 # libtool distribution, otherwise you forgot to ship ltmain.sh
9035 # with your package, and you will get complaints that there are
9036 # no rules to generate ltmain.sh.
9037 if test -f "$ltmain"; then
9038 # See if we are running on zsh, and set the options which allow our commands through
9039 # without removal of \ escapes.
9040 if test -n "${ZSH_VERSION+set}" ; then
9041 setopt NO_GLOB_SUBST
9043 # Now quote all the things that may contain metacharacters while being
9044 # careful not to overquote the AC_SUBSTed values. We take copies of the
9045 # variables and quote the copies for generation of the libtool script.
9046 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9048 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9049 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9050 deplibs_check_method reload_flag reload_cmds need_locks \
9051 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9052 lt_cv_sys_global_symbol_to_c_name_address \
9053 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9054 old_postinstall_cmds old_postuninstall_cmds \
9058 lt_prog_compiler_wl \
9059 lt_prog_compiler_pic \
9060 lt_prog_compiler_static \
9061 lt_prog_compiler_no_builtin_flag \
9062 export_dynamic_flag_spec \
9063 thread_safe_flag_spec \
9064 whole_archive_flag_spec \
9065 enable_shared_with_static_runtimes \
9067 old_archive_from_new_cmds \
9072 compiler_lib_search_path \
9074 archive_expsym_cmds \
9076 postuninstall_cmds \
9077 old_archive_from_expsyms_cmds \
9078 allow_undefined_flag \
9080 export_symbols_cmds \
9081 hardcode_libdir_flag_spec \
9082 hardcode_libdir_flag_spec_ld \
9083 hardcode_libdir_separator \
9084 hardcode_automatic \
9086 module_expsym_cmds \
9087 lt_cv_prog_compiler_c_o \
9092 old_archive_cmds | \
9093 old_archive_from_new_cmds | \
9095 archive_expsym_cmds | \
9097 module_expsym_cmds | \
9098 old_archive_from_expsyms_cmds | \
9099 export_symbols_cmds | \
9100 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9101 postinstall_cmds | postuninstall_cmds | \
9102 old_postinstall_cmds | old_postuninstall_cmds | \
9103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9104 # Double-quote double-evaled strings.
9105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9114 *'\$0 --fallback-echo"')
9115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9120 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9122 { echo "$as_me:$LINENO: creating $ofile" >&5
9123 echo "$as_me: creating $ofile" >&6;}
9125 cat <<__EOF__ >> "$cfgfile"
9128 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9129 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9130 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9132 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9133 # Free Software Foundation, Inc.
9135 # This file is part of GNU Libtool:
9136 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9138 # This program is free software; you can redistribute it and/or modify
9139 # it under the terms of the GNU General Public License as published by
9140 # the Free Software Foundation; either version 2 of the License, or
9141 # (at your option) any later version.
9143 # This program is distributed in the hope that it will be useful, but
9144 # WITHOUT ANY WARRANTY; without even the implied warranty of
9145 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9146 # General Public License for more details.
9148 # You should have received a copy of the GNU General Public License
9149 # along with this program; if not, write to the Free Software
9150 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9152 # As a special exception to the GNU General Public License, if you
9153 # distribute this file as part of a program that contains a
9154 # configuration script generated by Autoconf, you may include it under
9155 # the same distribution terms that you use for the rest of that program.
9157 # A sed program that does not truncate output.
9160 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9161 Xsed="$SED -e s/^X//"
9163 # The HP-UX ksh and POSIX shell print the target directory to stdout
9165 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9167 # The names of the tagged configurations supported by this script.
9170 # ### BEGIN LIBTOOL CONFIG
9172 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9174 # Shell to use when invoking shell scripts.
9177 # Whether or not to build shared libraries.
9178 build_libtool_libs=$enable_shared
9180 # Whether or not to build static libraries.
9181 build_old_libs=$enable_static
9183 # Whether or not to add -lc for building shared libraries.
9184 build_libtool_need_lc=$archive_cmds_need_lc
9186 # Whether or not to disallow shared libs when runtime libs are static
9187 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9189 # Whether or not to optimize for fast installation.
9190 fast_install=$enable_fast_install
9193 host_alias=$host_alias
9196 # An echo program that does not interpret backslashes.
9201 AR_FLAGS=$lt_AR_FLAGS
9206 # A language-specific compiler.
9209 # Is the compiler the GNU C compiler?
9215 # The linker used to build libraries.
9218 # Whether we need hard or soft links.
9221 # A BSD-compatible nm program.
9224 # A symbol stripping program
9227 # Used to examine libraries when file_magic_cmd begins "file"
9228 MAGIC_CMD=$MAGIC_CMD
9230 # Used on cygwin: DLL creation program.
9233 # Used on cygwin: object dumper.
9236 # Used on cygwin: assembler.
9239 # The name of the directory that contains temporary libtool files.
9242 # How to create reloadable object files.
9243 reload_flag=$lt_reload_flag
9244 reload_cmds=$lt_reload_cmds
9246 # How to pass a linker flag through the compiler.
9247 wl=$lt_lt_prog_compiler_wl
9249 # Object file suffix (normally "o").
9252 # Old archive suffix (normally "a").
9255 # Shared library suffix (normally ".so").
9256 shrext_cmds='$shrext_cmds'
9258 # Executable file suffix (normally "").
9261 # Additional compiler flags for building library objects.
9262 pic_flag=$lt_lt_prog_compiler_pic
9265 # What is the maximum length of a command?
9266 max_cmd_len=$lt_cv_sys_max_cmd_len
9268 # Does compiler simultaneously support -c and -o options?
9269 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9271 # Must we lock files when doing compilation ?
9272 need_locks=$lt_need_locks
9274 # Do we need the lib prefix for modules?
9275 need_lib_prefix=$need_lib_prefix
9277 # Do we need a version for libraries?
9278 need_version=$need_version
9280 # Whether dlopen is supported.
9281 dlopen_support=$enable_dlopen
9283 # Whether dlopen of programs is supported.
9284 dlopen_self=$enable_dlopen_self
9286 # Whether dlopen of statically linked programs is supported.
9287 dlopen_self_static=$enable_dlopen_self_static
9289 # Compiler flag to prevent dynamic linking.
9290 link_static_flag=$lt_lt_prog_compiler_static
9292 # Compiler flag to turn off builtin functions.
9293 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9295 # Compiler flag to allow reflexive dlopens.
9296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9298 # Compiler flag to generate shared objects directly from archives.
9299 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9301 # Compiler flag to generate thread-safe objects.
9302 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9304 # Library versioning type.
9305 version_type=$version_type
9307 # Format of library name prefix.
9308 libname_spec=$lt_libname_spec
9310 # List of archive names. First name is the real one, the rest are links.
9311 # The last name is the one that the linker finds with -lNAME.
9312 library_names_spec=$lt_library_names_spec
9314 # The coded name of the library, if different from the real name.
9315 soname_spec=$lt_soname_spec
9317 # Commands used to build and install an old-style archive.
9319 old_archive_cmds=$lt_old_archive_cmds
9320 old_postinstall_cmds=$lt_old_postinstall_cmds
9321 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9323 # Create an old-style archive from a shared archive.
9324 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9326 # Create a temporary old-style archive to link instead of a shared archive.
9327 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9329 # Commands used to build and install a shared archive.
9330 archive_cmds=$lt_archive_cmds
9331 archive_expsym_cmds=$lt_archive_expsym_cmds
9332 postinstall_cmds=$lt_postinstall_cmds
9333 postuninstall_cmds=$lt_postuninstall_cmds
9335 # Commands used to build a loadable module (assumed same as above if empty)
9336 module_cmds=$lt_module_cmds
9337 module_expsym_cmds=$lt_module_expsym_cmds
9339 # Commands to strip libraries.
9340 old_striplib=$lt_old_striplib
9341 striplib=$lt_striplib
9343 # Dependencies to place before the objects being linked to create a
9345 predep_objects=$lt_predep_objects
9347 # Dependencies to place after the objects being linked to create a
9349 postdep_objects=$lt_postdep_objects
9351 # Dependencies to place before the objects being linked to create a
9355 # Dependencies to place after the objects being linked to create a
9357 postdeps=$lt_postdeps
9359 # The library search path used internally by the compiler when linking
9361 compiler_lib_search_path=$lt_compiler_lib_search_path
9363 # Method to check whether dependent libraries are shared objects.
9364 deplibs_check_method=$lt_deplibs_check_method
9366 # Command to use when deplibs_check_method == file_magic.
9367 file_magic_cmd=$lt_file_magic_cmd
9369 # Flag that allows shared libraries with undefined symbols to be built.
9370 allow_undefined_flag=$lt_allow_undefined_flag
9372 # Flag that forces no undefined symbols.
9373 no_undefined_flag=$lt_no_undefined_flag
9375 # Commands used to finish a libtool library installation in a directory.
9376 finish_cmds=$lt_finish_cmds
9378 # Same as above, but a single script fragment to be evaled but not shown.
9379 finish_eval=$lt_finish_eval
9381 # Take the output of nm and produce a listing of raw symbols and C names.
9382 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9384 # Transform the output of nm in a proper C declaration
9385 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9387 # Transform the output of nm in a C name address pair
9388 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9390 # This is the shared library runtime path variable.
9391 runpath_var=$runpath_var
9393 # This is the shared library path variable.
9394 shlibpath_var=$shlibpath_var
9396 # Is shlibpath searched before the hard-coded library search path?
9397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9399 # How to hardcode a shared library path into an executable.
9400 hardcode_action=$hardcode_action
9402 # Whether we should hardcode library paths into libraries.
9403 hardcode_into_libs=$hardcode_into_libs
9405 # Flag to hardcode \$libdir into a binary during linking.
9406 # This must work even if \$libdir does not exist.
9407 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9409 # If ld is used when linking, flag to hardcode \$libdir into
9410 # a binary during linking. This must work even if \$libdir does
9412 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9414 # Whether we need a single -rpath flag with a separated argument.
9415 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9417 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9419 hardcode_direct=$hardcode_direct
9421 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9423 hardcode_minus_L=$hardcode_minus_L
9425 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9426 # the resulting binary.
9427 hardcode_shlibpath_var=$hardcode_shlibpath_var
9429 # Set to yes if building a shared library automatically hardcodes DIR into the library
9430 # and all subsequent libraries and executables linked against it.
9431 hardcode_automatic=$hardcode_automatic
9433 # Variables whose values should be saved in libtool wrapper scripts and
9434 # restored at relink time.
9435 variables_saved_for_relink="$variables_saved_for_relink"
9437 # Whether libtool must link a program against all its dependency libraries.
9438 link_all_deplibs=$link_all_deplibs
9440 # Compile-time system search path for libraries
9441 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9443 # Run-time system search path for libraries
9444 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9446 # Fix the shell variable \$srcfile for the compiler.
9447 fix_srcfile_path="$fix_srcfile_path"
9449 # Set to yes if exported symbols are required.
9450 always_export_symbols=$always_export_symbols
9452 # The commands to list exported symbols.
9453 export_symbols_cmds=$lt_export_symbols_cmds
9455 # The commands to extract the exported symbol list from a shared archive.
9456 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9458 # Symbols that should not be listed in the preloaded symbols.
9459 exclude_expsyms=$lt_exclude_expsyms
9461 # Symbols that must always be exported.
9462 include_expsyms=$lt_include_expsyms
9464 # ### END LIBTOOL CONFIG
9471 cat <<\EOF >> "$cfgfile"
9473 # AIX sometimes has problems with the GCC collect2 program. For some
9474 # reason, if we set the COLLECT_NAMES environment variable, the problems
9475 # vanish in a puff of smoke.
9476 if test "X${COLLECT_NAMES+set}" != Xset; then
9478 export COLLECT_NAMES
9484 # We use sed instead of cat because bash on DJGPP gets confused if
9485 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9486 # text mode, it properly converts lines to CR/LF. This bash problem
9487 # is reportedly fixed, but why not run on old versions too?
9488 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9490 mv -f "$cfgfile" "$ofile" || \
9491 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9495 # If there is no Makefile yet, we rely on a make rule to execute
9496 # `config.status --recheck' to rerun these tests and create the
9497 # libtool script then.
9498 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9499 if test -f "$ltmain_in"; then
9500 test -f Makefile && make "$ltmain"
9506 ac_cpp='$CPP $CPPFLAGS'
9507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9514 # Check whether --with-tags or --without-tags was given.
9515 if test "${with_tags+set}" = set; then
9516 withval="$with_tags"
9520 if test -f "$ltmain" && test -n "$tagnames"; then
9521 if test ! -f "${ofile}"; then
9522 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9523 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9526 if test -z "$LTCC"; then
9527 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9528 if test -z "$LTCC"; then
9529 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9530 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9533 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9537 # Extract list of available tagged configurations in $ofile.
9538 # Note that this assumes the entire list is on one line.
9539 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9542 for tagname in $tagnames; do
9544 # Check whether tagname contains only valid characters
9545 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9547 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9548 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9549 { (exit 1); exit 1; }; }
9553 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9555 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9556 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9557 { (exit 1); exit 1; }; }
9560 # Update the list of available tags.
9561 if test -n "$tagname"; then
9562 echo appending configuration tag \"$tagname\" to $ofile
9566 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9568 ac_cpp='$CXXCPP $CPPFLAGS'
9569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9576 archive_cmds_need_lc_CXX=no
9577 allow_undefined_flag_CXX=
9578 always_export_symbols_CXX=no
9579 archive_expsym_cmds_CXX=
9580 export_dynamic_flag_spec_CXX=
9581 hardcode_direct_CXX=no
9582 hardcode_libdir_flag_spec_CXX=
9583 hardcode_libdir_flag_spec_ld_CXX=
9584 hardcode_libdir_separator_CXX=
9585 hardcode_minus_L_CXX=no
9586 hardcode_automatic_CXX=no
9588 module_expsym_cmds_CXX=
9589 link_all_deplibs_CXX=unknown
9590 old_archive_cmds_CXX=$old_archive_cmds
9591 no_undefined_flag_CXX=
9592 whole_archive_flag_spec_CXX=
9593 enable_shared_with_static_runtimes_CXX=no
9595 # Dependencies to place before and after the object being linked:
9597 postdep_objects_CXX=
9600 compiler_lib_search_path_CXX=
9602 # Source file extension for C++ test sources.
9605 # Object file extension for compiled C++ test sources.
9609 # Code to be used in simple compile tests
9610 lt_simple_compile_test_code="int some_variable = 0;\n"
9612 # Code to be used in simple link tests
9613 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9617 # If no C compiler was specified, use CC.
9620 # Allow CC to be a program name with arguments.
9624 # Allow CC to be a program name with arguments.
9629 lt_save_with_gnu_ld=$with_gnu_ld
9630 lt_save_path_LD=$lt_cv_path_LD
9631 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9632 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9634 unset lt_cv_prog_gnu_ld
9636 if test -n "${lt_cv_path_LDCXX+set}"; then
9637 lt_cv_path_LD=$lt_cv_path_LDCXX
9641 test -z "${LDCXX+set}" || LD=$LDCXX
9645 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9647 # We don't want -fno-exception wen compiling C++ code, so set the
9648 # no_builtin_flag separately
9649 if test "$GXX" = yes; then
9650 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9652 lt_prog_compiler_no_builtin_flag_CXX=
9655 if test "$GXX" = yes; then
9656 # Set up default GNU C++ configuration
9659 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9660 if test "${with_gnu_ld+set}" = set; then
9661 withval="$with_gnu_ld"
9662 test "$withval" = no || with_gnu_ld=yes
9667 if test "$GCC" = yes; then
9668 # Check if gcc -print-prog-name=ld gives a path.
9669 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9670 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9673 # gcc leaves a trailing carriage return which upsets mingw
9674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9679 # Accept absolute paths.
9681 re_direlt='/[^/][^/]*/\.\./'
9682 # Canonicalize the pathname of ld
9683 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9684 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9685 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9687 test -z "$LD" && LD="$ac_prog"
9690 # If it fails, then pretend we aren't using GCC.
9694 # If it is relative, then search for the first ld in PATH.
9698 elif test "$with_gnu_ld" = yes; then
9699 echo "$as_me:$LINENO: checking for GNU ld" >&5
9700 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9702 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9703 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9705 if test "${lt_cv_path_LD+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 if test -z "$LD"; then
9709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9710 for ac_dir in $PATH; do
9712 test -z "$ac_dir" && ac_dir=.
9713 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9714 lt_cv_path_LD="$ac_dir/$ac_prog"
9715 # Check to see if the program is GNU ld. I'd rather use --version,
9716 # but apparently some GNU ld's only accept -v.
9717 # Break only if it was the GNU/non-GNU ld that we prefer.
9718 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9719 *GNU* | *'with BFD'*)
9720 test "$with_gnu_ld" != no && break
9723 test "$with_gnu_ld" != yes && break
9730 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9735 if test -n "$LD"; then
9736 echo "$as_me:$LINENO: result: $LD" >&5
9737 echo "${ECHO_T}$LD" >&6
9739 echo "$as_me:$LINENO: result: no" >&5
9740 echo "${ECHO_T}no" >&6
9742 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9743 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9744 { (exit 1); exit 1; }; }
9745 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9746 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9747 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9751 case `$LD -v 2>&1 </dev/null` in
9752 *GNU* | *'with BFD'*)
9753 lt_cv_prog_gnu_ld=yes
9756 lt_cv_prog_gnu_ld=no
9760 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9761 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9762 with_gnu_ld=$lt_cv_prog_gnu_ld
9766 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9767 # archiving commands below assume that GNU ld is being used.
9768 if test "$with_gnu_ld" = yes; then
9769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9770 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'
9772 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9775 # If archive_cmds runs LD, not CC, wlarc should be empty
9776 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9777 # investigate it a little bit more. (MM)
9780 # ancient GNU ld didn't support --whole-archive et. al.
9781 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9782 grep 'no-whole-archive' > /dev/null; then
9783 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9785 whole_archive_flag_spec_CXX=
9791 # A generic and very simple default shared library creation
9792 # command for GNU C++ for the case where it uses the native
9793 # linker, instead of GNU ld. If possible, this setting should
9794 # overridden to take advantage of the native linker features on
9795 # the platform it is being used on.
9796 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9799 # Commands to make compiler produce verbose output that lists
9800 # what "hidden" libraries, object files and flags are used when
9801 # linking a shared library.
9802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9810 # PORTME: fill in a description of your system's C++ link characteristics
9811 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9812 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9816 # FIXME: insert proper C++ library support
9820 if test "$host_cpu" = ia64; then
9821 # On IA64, the linker does run time linking by default, so we don't
9822 # have to do anything special.
9823 aix_use_runtimelinking=no
9824 exp_sym_flag='-Bexport'
9827 aix_use_runtimelinking=no
9829 # Test if we are trying to use run time linking or normal
9830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9831 # need to do runtime linking.
9832 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9833 for ld_flag in $LDFLAGS; do
9836 aix_use_runtimelinking=yes
9843 exp_sym_flag='-bexport'
9844 no_entry_flag='-bnoentry'
9847 # When large executables or shared objects are built, AIX ld can
9848 # have problems creating the table of contents. If linking a library
9849 # or program results in "error TOC overflow" add -mminimal-toc to
9850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9854 hardcode_direct_CXX=yes
9855 hardcode_libdir_separator_CXX=':'
9856 link_all_deplibs_CXX=yes
9858 if test "$GXX" = yes; then
9859 case $host_os in aix4.012|aix4.012.*)
9860 # We only want to do this on AIX 4.2 and lower, the check
9861 # below for broken collect2 doesn't work under 4.3+
9862 collect2name=`${CC} -print-prog-name=collect2`
9863 if test -f "$collect2name" && \
9864 strings "$collect2name" | grep resolve_lib_name >/dev/null
9866 # We have reworked collect2
9867 hardcode_direct_CXX=yes
9869 # We have old collect2
9870 hardcode_direct_CXX=unsupported
9871 # It fails to find uninstalled libraries when the uninstalled
9872 # path is not listed in the libpath. Setting hardcode_minus_L
9873 # to unsupported forces relinking
9874 hardcode_minus_L_CXX=yes
9875 hardcode_libdir_flag_spec_CXX='-L$libdir'
9876 hardcode_libdir_separator_CXX=
9879 shared_flag='-shared'
9882 if test "$host_cpu" = ia64; then
9883 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9884 # chokes on -Wl,-G. The following line is correct:
9887 if test "$aix_use_runtimelinking" = yes; then
9888 shared_flag='${wl}-G'
9890 shared_flag='${wl}-bM:SRE'
9895 # It seems that -bexpall does not export symbols beginning with
9896 # underscore (_), so it is better to generate a list of symbols to export.
9897 always_export_symbols_CXX=yes
9898 if test "$aix_use_runtimelinking" = yes; then
9899 # Warning - without using the other runtime loading flags (-brtl),
9900 # -berok will link without error, but may produce a broken library.
9901 allow_undefined_flag_CXX='-berok'
9902 # Determine the default libpath from the value encoded in an empty executable.
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; } &&
9933 { ac_try='test -s conftest$ac_exeext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9942 # Check for a 64-bit object if we didn't find anything.
9943 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; }
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9950 rm -f conftest.err conftest.$ac_objext \
9951 conftest$ac_exeext conftest.$ac_ext
9952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9954 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9956 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"
9958 if test "$host_cpu" = ia64; then
9959 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9960 allow_undefined_flag_CXX="-z nodefs"
9961 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"
9963 # Determine the default libpath from the value encoded in an empty executable.
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9981 (eval $ac_link) 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10003 # Check for a 64-bit object if we didn't find anything.
10004 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; }
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10011 rm -f conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10015 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10016 # Warning - without using the other run time loading flags,
10017 # -berok will link without error, but may produce a broken library.
10018 no_undefined_flag_CXX=' ${wl}-bernotok'
10019 allow_undefined_flag_CXX=' ${wl}-berok'
10020 # -bexpall does not export symbols beginning with underscore (_)
10021 always_export_symbols_CXX=yes
10022 # Exported symbols can be pulled into shared objects from archives
10023 whole_archive_flag_spec_CXX=' '
10024 archive_cmds_need_lc_CXX=yes
10025 # This is similar to how AIX traditionally builds it's shared libraries.
10026 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'
10031 case $cc_basename in
10033 # FIXME: insert proper C++ library support
10039 cygwin* | mingw* | pw32*)
10040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10041 # as there is no search path for DLLs.
10042 hardcode_libdir_flag_spec_CXX='-L$libdir'
10043 allow_undefined_flag_CXX=unsupported
10044 always_export_symbols_CXX=no
10045 enable_shared_with_static_runtimes_CXX=yes
10047 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10048 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'
10049 # If the export-symbols file already is a .def file (1st line
10050 # is EXPORTS), use it as is; otherwise, prepend...
10051 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10052 cp $export_symbols $output_objdir/$soname.def;
10054 echo EXPORTS > $output_objdir/$soname.def;
10055 cat $export_symbols >> $output_objdir/$soname.def;
10057 $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'
10063 darwin* | rhapsody*)
10064 if test "$GXX" = yes; then
10065 archive_cmds_need_lc_CXX=no
10067 rhapsody* | darwin1.[012])
10068 allow_undefined_flag_CXX='-undefined suppress'
10071 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10072 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10074 case ${MACOSX_DEPLOYMENT_TARGET} in
10076 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10079 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10085 lt_int_apple_cc_single_mod=no
10086 output_verbose_link_cmd='echo'
10087 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10088 lt_int_apple_cc_single_mod=yes
10090 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10091 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10093 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'
10095 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10097 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10098 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10099 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}'
10101 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}'
10103 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}'
10104 hardcode_direct_CXX=no
10105 hardcode_automatic_CXX=yes
10106 hardcode_shlibpath_var_CXX=unsupported
10107 whole_archive_flag_spec_CXX='-all_load $convenience'
10108 link_all_deplibs_CXX=yes
10115 case $cc_basename in
10117 # FIXME: insert proper C++ library support
10121 # Green Hills C++ Compiler
10122 # FIXME: insert proper C++ library support
10126 # FIXME: insert proper C++ library support
10132 # C++ shared libraries reported to be fairly broken before switch to ELF
10136 archive_cmds_need_lc_CXX=no
10138 freebsd* | kfreebsd*-gnu)
10139 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10146 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10147 hardcode_libdir_separator_CXX=:
10148 export_dynamic_flag_spec_CXX='${wl}-E'
10149 hardcode_direct_CXX=yes
10150 hardcode_minus_L_CXX=yes # Not in the search PATH,
10151 # but as the default
10152 # location of the library.
10154 case $cc_basename in
10156 # FIXME: insert proper C++ library support
10160 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'
10161 # Commands to make compiler produce verbose output that lists
10162 # what "hidden" libraries, object files and flags are used when
10163 # linking a shared library.
10165 # There doesn't appear to be a way to prevent this compiler from
10166 # explicitly linking system object files so we need to strip them
10167 # from the output so that they don't get included in the library
10169 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'
10172 if test "$GXX" = yes; then
10173 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'
10175 # FIXME: insert proper C++ library support
10182 if test $with_gnu_ld = no; then
10183 case "$host_cpu" in
10185 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10186 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10187 hardcode_libdir_separator_CXX=:
10190 hardcode_libdir_flag_spec_CXX='-L$libdir'
10193 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10194 hardcode_libdir_separator_CXX=:
10195 export_dynamic_flag_spec_CXX='${wl}-E'
10199 case "$host_cpu" in
10201 hardcode_direct_CXX=no
10202 hardcode_shlibpath_var_CXX=no
10205 hardcode_direct_CXX=no
10206 hardcode_shlibpath_var_CXX=no
10207 hardcode_minus_L_CXX=yes # Not in the search PATH,
10208 # but as the default
10209 # location of the library.
10212 hardcode_direct_CXX=yes
10213 hardcode_minus_L_CXX=yes # Not in the search PATH,
10214 # but as the default
10215 # location of the library.
10219 case $cc_basename in
10221 # FIXME: insert proper C++ library support
10225 case "$host_cpu" in
10227 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10230 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10233 # Commands to make compiler produce verbose output that lists
10234 # what "hidden" libraries, object files and flags are used when
10235 # linking a shared library.
10237 # There doesn't appear to be a way to prevent this compiler from
10238 # explicitly linking system object files so we need to strip them
10239 # from the output so that they don't get included in the library
10241 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'
10244 if test "$GXX" = yes; then
10245 if test $with_gnu_ld = no; then
10246 case "$host_cpu" in
10248 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10251 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'
10256 # FIXME: insert proper C++ library support
10263 case $cc_basename in
10266 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'
10268 # Archives containing C++ object files must be created using
10269 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10270 # necessary to make sure instantiated templates are included
10272 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10275 if test "$GXX" = yes; then
10276 if test "$with_gnu_ld" = no; then
10277 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'
10279 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'
10282 link_all_deplibs_CXX=yes
10285 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10286 hardcode_libdir_separator_CXX=:
10289 case $cc_basename in
10291 # Kuck and Associates, Inc. (KAI) C++ Compiler
10293 # KCC will only create a shared library if the output file
10294 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10295 # to its proper name (with version) after linking.
10296 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'
10297 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'
10298 # Commands to make compiler produce verbose output that lists
10299 # what "hidden" libraries, object files and flags are used when
10300 # linking a shared library.
10302 # There doesn't appear to be a way to prevent this compiler from
10303 # explicitly linking system object files so we need to strip them
10304 # from the output so that they don't get included in the library
10306 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'
10308 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10311 # Archives containing C++ object files must be created using
10312 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10313 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10318 archive_cmds_need_lc_CXX=no
10319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320 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'
10321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10327 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328 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'
10330 runpath_var=LD_RUN_PATH
10331 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10332 hardcode_libdir_separator_CXX=:
10334 # Commands to make compiler produce verbose output that lists
10335 # what "hidden" libraries, object files and flags are used when
10336 # linking a shared library.
10338 # There doesn't appear to be a way to prevent this compiler from
10339 # explicitly linking system object files so we need to strip them
10340 # from the output so that they don't get included in the library
10342 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'
10347 # FIXME: insert proper C++ library support
10351 # FIXME: insert proper C++ library support
10355 case $cc_basename in
10357 # FIXME: insert proper C++ library support
10361 # FIXME: insert proper C++ library support
10366 netbsd* | knetbsd*-gnu)
10367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10368 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10370 hardcode_libdir_flag_spec_CXX='-R$libdir'
10371 hardcode_direct_CXX=yes
10372 hardcode_shlibpath_var_CXX=no
10374 # Workaround some broken pre-1.5 toolchains
10375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10378 case $cc_basename in
10380 # Kuck and Associates, Inc. (KAI) C++ Compiler
10382 # KCC will only create a shared library if the output file
10383 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10384 # to its proper name (with version) after linking.
10385 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'
10387 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10388 hardcode_libdir_separator_CXX=:
10390 # Archives containing C++ object files must be created using
10391 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10392 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10396 # Rational C++ 2.4.1
10397 # FIXME: insert proper C++ library support
10401 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10402 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'
10404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10405 hardcode_libdir_separator_CXX=:
10407 # Commands to make compiler produce verbose output that lists
10408 # what "hidden" libraries, object files and flags are used when
10409 # linking a shared library.
10411 # There doesn't appear to be a way to prevent this compiler from
10412 # explicitly linking system object files so we need to strip them
10413 # from the output so that they don't get included in the library
10415 output_verbose_link_cmd='templist=`$CC -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'
10418 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10419 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10420 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'
10422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10423 hardcode_libdir_separator_CXX=:
10425 # Commands to make compiler produce verbose output that lists
10426 # what "hidden" libraries, object files and flags are used when
10427 # linking a shared library.
10428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10431 # FIXME: insert proper C++ library support
10438 case $cc_basename in
10440 # Kuck and Associates, Inc. (KAI) C++ Compiler
10442 # KCC will only create a shared library if the output file
10443 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10444 # to its proper name (with version) after linking.
10445 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'
10447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10448 hardcode_libdir_separator_CXX=:
10450 # Archives containing C++ object files must be created using
10451 # the KAI C++ compiler.
10452 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10455 # Rational C++ 2.4.1
10456 # FIXME: insert proper C++ library support
10460 allow_undefined_flag_CXX=' -expect_unresolved \*'
10461 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'
10462 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10463 echo "-hidden">> $lib.exp~
10464 $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~
10467 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10468 hardcode_libdir_separator_CXX=:
10470 # Commands to make compiler produce verbose output that lists
10471 # what "hidden" libraries, object files and flags are used when
10472 # linking a shared library.
10474 # There doesn't appear to be a way to prevent this compiler from
10475 # explicitly linking system object files so we need to strip them
10476 # from the output so that they don't get included in the library
10478 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'
10481 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10482 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10483 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'
10485 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10486 hardcode_libdir_separator_CXX=:
10488 # Commands to make compiler produce verbose output that lists
10489 # what "hidden" libraries, object files and flags are used when
10490 # linking a shared library.
10491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10494 # FIXME: insert proper C++ library support
10501 # FIXME: insert proper C++ library support
10505 archive_cmds_need_lc_CXX=no
10506 case $cc_basename in
10508 # FIXME: insert proper C++ library support
10512 # FIXME: insert proper C++ library support
10518 case $cc_basename in
10521 # FIXME: insert proper C++ library support
10526 # FIXME: insert proper C++ library support
10530 # FIXME: insert proper C++ library support
10536 case $cc_basename in
10538 # Sun C++ 4.2, 5.x and Centerline C++
10539 no_undefined_flag_CXX=' -zdefs'
10540 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10541 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10542 $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'
10544 hardcode_libdir_flag_spec_CXX='-R$libdir'
10545 hardcode_shlibpath_var_CXX=no
10547 solaris2.0-5 | solaris2.0-5.*) ;;
10549 # The C++ compiler is used as linker so we must use $wl
10550 # flag to pass the commands to the underlying system
10552 # Supported since Solaris 2.6 (maybe 2.5.1?)
10553 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10556 link_all_deplibs_CXX=yes
10558 # Commands to make compiler produce verbose output that lists
10559 # what "hidden" libraries, object files and flags are used when
10560 # linking a shared library.
10562 # There doesn't appear to be a way to prevent this compiler from
10563 # explicitly linking system object files so we need to strip them
10564 # from the output so that they don't get included in the library
10566 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'
10568 # Archives containing C++ object files must be created using
10569 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10570 # necessary to make sure instantiated templates are included
10572 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10575 # Green Hills C++ Compiler
10576 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10578 # The C++ compiler must be used to create the archive.
10579 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10582 # GNU C++ compiler with Solaris linker
10583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10584 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10585 if $CC --version | grep -v '^2\.7' > /dev/null; then
10586 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10587 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10588 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10590 # Commands to make compiler produce verbose output that lists
10591 # what "hidden" libraries, object files and flags are used when
10592 # linking a shared library.
10593 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10595 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10597 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10598 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10599 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10601 # Commands to make compiler produce verbose output that lists
10602 # what "hidden" libraries, object files and flags are used when
10603 # linking a shared library.
10604 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10607 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10613 archive_cmds_need_lc_CXX=no
10616 case $cc_basename in
10618 # NonStop-UX NCC 3.20
10619 # FIXME: insert proper C++ library support
10623 # FIXME: insert proper C++ library support
10629 # FIXME: insert proper C++ library support
10633 # FIXME: insert proper C++ library support
10637 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10638 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10639 test "$ld_shlibs_CXX" = no && can_build_shared=no
10645 cat > conftest.$ac_ext <<EOF
10649 Foo (void) { a = 0; }
10655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656 (eval $ac_compile) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; then
10660 # Parse the compiler output and extract the necessary
10661 # objects, libraries and library flags.
10663 # Sentinel used to keep track of whether or not we are before
10664 # the conftest object file.
10665 pre_test_object_deps_done=no
10667 # The `*' in the case matches for architectures that use `case' in
10668 # $output_verbose_cmd can trigger glob expansion during the loop
10669 # eval without this substitution.
10670 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10672 for p in `eval $output_verbose_link_cmd`; do
10676 # Some compilers place space between "-{L,R}" and the path.
10677 # Remove the space.
10678 if test $p = "-L" \
10679 || test $p = "-R"; then
10686 if test "$pre_test_object_deps_done" = no; then
10689 # Internal compiler library paths should come after those
10690 # provided the user. The postdeps already come after the
10691 # user supplied libs so there is no need to process them.
10692 if test -z "$compiler_lib_search_path_CXX"; then
10693 compiler_lib_search_path_CXX="${prev}${p}"
10695 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10698 # The "-l" case would never come before the object being
10699 # linked, so don't bother handling this case.
10702 if test -z "$postdeps_CXX"; then
10703 postdeps_CXX="${prev}${p}"
10705 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10711 # This assumes that the test object file only shows up
10712 # once in the compiler output.
10713 if test "$p" = "conftest.$objext"; then
10714 pre_test_object_deps_done=yes
10718 if test "$pre_test_object_deps_done" = no; then
10719 if test -z "$predep_objects_CXX"; then
10720 predep_objects_CXX="$p"
10722 predep_objects_CXX="$predep_objects_CXX $p"
10725 if test -z "$postdep_objects_CXX"; then
10726 postdep_objects_CXX="$p"
10728 postdep_objects_CXX="$postdep_objects_CXX $p"
10733 *) ;; # Ignore the rest.
10741 echo "libtool.m4: error: problem compiling CXX test program"
10744 $rm -f confest.$objext
10746 case " $postdeps_CXX " in
10747 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10750 lt_prog_compiler_wl_CXX=
10751 lt_prog_compiler_pic_CXX=
10752 lt_prog_compiler_static_CXX=
10754 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10755 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10757 # C++ specific cases for pic, static, wl, etc.
10758 if test "$GXX" = yes; then
10759 lt_prog_compiler_wl_CXX='-Wl,'
10760 lt_prog_compiler_static_CXX='-static'
10764 # All AIX code is PIC.
10765 if test "$host_cpu" = ia64; then
10766 # AIX 5 now supports IA64 processor
10767 lt_prog_compiler_static_CXX='-Bstatic'
10771 # FIXME: we need at least 68020 code to build shared libraries, but
10772 # adding the `-m68020' flag to GCC prevents building anything better,
10774 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10776 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10777 # PIC is the default for these OSes.
10779 mingw* | os2* | pw32*)
10780 # This hack is so that the source file can tell whether it is being
10781 # built for inclusion in a dll (and should export symbols for example).
10782 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10784 darwin* | rhapsody*)
10785 # PIC is the default on this platform
10786 # Common symbols not allowed in MH_DYLIB files
10787 lt_prog_compiler_pic_CXX='-fno-common'
10790 # DJGPP does not support shared libraries at all
10791 lt_prog_compiler_pic_CXX=
10794 if test -d /usr/nec; then
10795 lt_prog_compiler_pic_CXX=-Kconform_pic
10799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10800 # not for PA HP-UX.
10801 case "$host_cpu" in
10805 lt_prog_compiler_pic_CXX='-fPIC'
10810 lt_prog_compiler_pic_CXX='-fPIC'
10816 # All AIX code is PIC.
10817 if test "$host_cpu" = ia64; then
10818 # AIX 5 now supports IA64 processor
10819 lt_prog_compiler_static_CXX='-Bstatic'
10821 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10825 case $cc_basename in
10827 # Green Hills C++ Compiler
10828 # _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"
10833 case $cc_basename in
10835 lt_prog_compiler_pic_CXX='-KPIC'
10838 # Green Hills C++ Compiler
10839 lt_prog_compiler_pic_CXX='-pic'
10845 freebsd* | kfreebsd*-gnu)
10846 # FreeBSD uses GNU C++
10848 hpux9* | hpux10* | hpux11*)
10849 case $cc_basename in
10851 lt_prog_compiler_wl_CXX='-Wl,'
10852 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10853 if test "$host_cpu" != ia64; then
10854 lt_prog_compiler_pic_CXX='+Z'
10858 lt_prog_compiler_wl_CXX='-Wl,'
10859 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10860 case "$host_cpu" in
10865 lt_prog_compiler_pic_CXX='+Z'
10873 irix5* | irix6* | nonstopux*)
10874 case $cc_basename in
10876 lt_prog_compiler_wl_CXX='-Wl,'
10877 lt_prog_compiler_static_CXX='-non_shared'
10878 # CC pic flag -KPIC is the default.
10885 case $cc_basename in
10888 lt_prog_compiler_wl_CXX='--backend -Wl,'
10889 lt_prog_compiler_pic_CXX='-fPIC'
10893 lt_prog_compiler_wl_CXX='-Wl,'
10894 lt_prog_compiler_pic_CXX='-KPIC'
10895 lt_prog_compiler_static_CXX='-static'
10899 # Make sure the PIC flag is empty. It appears that all Alpha
10900 # Linux and Compaq Tru64 Unix objects are PIC.
10901 lt_prog_compiler_pic_CXX=
10902 lt_prog_compiler_static_CXX='-non_shared'
10913 case $cc_basename in
10915 lt_prog_compiler_pic_CXX='-W c,exportall'
10921 netbsd* | knetbsd*-gnu)
10923 osf3* | osf4* | osf5*)
10924 case $cc_basename in
10926 lt_prog_compiler_wl_CXX='--backend -Wl,'
10929 # Rational C++ 2.4.1
10930 lt_prog_compiler_pic_CXX='-pic'
10933 # Digital/Compaq C++
10934 lt_prog_compiler_wl_CXX='-Wl,'
10935 # Make sure the PIC flag is empty. It appears that all Alpha
10936 # Linux and Compaq Tru64 Unix objects are PIC.
10937 lt_prog_compiler_pic_CXX=
10938 lt_prog_compiler_static_CXX='-non_shared'
10947 case $cc_basename in
10949 lt_prog_compiler_pic_CXX='-fPIC'
10956 case $cc_basename in
10958 # Sun C++ 4.2, 5.x and Centerline C++
10959 lt_prog_compiler_pic_CXX='-KPIC'
10960 lt_prog_compiler_static_CXX='-Bstatic'
10961 lt_prog_compiler_wl_CXX='-Qoption ld '
10964 # Green Hills C++ Compiler
10965 lt_prog_compiler_pic_CXX='-PIC'
10972 case $cc_basename in
10975 lt_prog_compiler_pic_CXX='-pic'
10976 lt_prog_compiler_static_CXX='-Bstatic'
10980 lt_prog_compiler_pic_CXX='-pic'
10987 case $cc_basename in
10989 # NonStop-UX NCC 3.20
10990 lt_prog_compiler_pic_CXX='-KPIC'
11001 lt_prog_compiler_can_build_shared_CXX=no
11006 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11007 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11010 # Check to make sure the PIC flag actually works.
11012 if test -n "$lt_prog_compiler_pic_CXX"; then
11014 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11016 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 lt_prog_compiler_pic_works_CXX=no
11020 ac_outfile=conftest.$ac_objext
11021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11022 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11023 # Insert the option either (1) after the last *FLAGS variable, or
11024 # (2) before a word containing "conftest.", or (3) at the end.
11025 # Note that $ac_compile itself does not contain backslashes and begins
11026 # with a dollar sign (not a hyphen), so the echo should work correctly.
11027 # The option is referenced via a variable to avoid confusing sed.
11028 lt_compile=`echo "$ac_compile" | $SED \
11029 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11031 -e 's:$: $lt_compiler_flag:'`
11032 (eval echo "\"\$as_me:11032: $lt_compile\"" >&5)
11033 (eval "$lt_compile" 2>conftest.err)
11035 cat conftest.err >&5
11036 echo "$as_me:11036: \$? = $ac_status" >&5
11037 if (exit $ac_status) && test -s "$ac_outfile"; then
11038 # The compiler can only warn and ignore the option if not recognized
11039 # So say no if there are warnings
11040 if test ! -s conftest.err; then
11041 lt_prog_compiler_pic_works_CXX=yes
11047 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11048 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11050 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11051 case $lt_prog_compiler_pic_CXX in
11053 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11056 lt_prog_compiler_pic_CXX=
11057 lt_prog_compiler_can_build_shared_CXX=no
11062 # For platforms which do not support PIC, -DPIC is meaningless:
11064 lt_prog_compiler_pic_CXX=
11067 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11071 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11072 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11073 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 lt_cv_prog_compiler_c_o_CXX=no
11077 $rm -r conftest 2>/dev/null
11081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11083 lt_compiler_flag="-o out/conftest2.$ac_objext"
11084 # Insert the option either (1) after the last *FLAGS variable, or
11085 # (2) before a word containing "conftest.", or (3) at the end.
11086 # Note that $ac_compile itself does not contain backslashes and begins
11087 # with a dollar sign (not a hyphen), so the echo should work correctly.
11088 lt_compile=`echo "$ac_compile" | $SED \
11089 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11091 -e 's:$: $lt_compiler_flag:'`
11092 (eval echo "\"\$as_me:11092: $lt_compile\"" >&5)
11093 (eval "$lt_compile" 2>out/conftest.err)
11095 cat out/conftest.err >&5
11096 echo "$as_me:11096: \$? = $ac_status" >&5
11097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11099 # The compiler can only warn and ignore the option if not recognized
11100 # So say no if there are warnings
11101 if test ! -s out/conftest.err; then
11102 lt_cv_prog_compiler_c_o_CXX=yes
11107 # SGI C++ compiler will create directory out/ii_files/ for
11108 # template instantiation
11109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11110 $rm out/* && rmdir out
11116 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11117 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11120 hard_links="nottested"
11121 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11122 # do not overwrite the value of need_locks provided by the user
11123 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11124 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11129 ln conftest.a conftest.b 2>&5 || hard_links=no
11130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11131 echo "$as_me:$LINENO: result: $hard_links" >&5
11132 echo "${ECHO_T}$hard_links" >&6
11133 if test "$hard_links" = no; then
11134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11135 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11142 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11143 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11148 # If we're using GNU nm, then we don't want the "-C" option.
11149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11151 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'
11153 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'
11157 export_symbols_cmds_CXX="$ltdll_cmds"
11160 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11163 link_all_deplibs_CXX=no
11166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11170 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11171 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11172 test "$ld_shlibs_CXX" = no && can_build_shared=no
11174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11175 if test "$GCC" = yes; then
11176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11180 # Do we need to explicitly link libc?
11182 case "x$archive_cmds_need_lc_CXX" in
11184 # Assume -lc should be added
11185 archive_cmds_need_lc_CXX=yes
11187 if test "$enable_shared" = yes && test "$GCC" = yes; then
11188 case $archive_cmds_CXX in
11190 # FIXME: we may have to deal with multi-command sequences.
11193 # Test whether the compiler implicitly links with -lc since on some
11194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11195 # to ld, don't add -lc before -lgcc.
11196 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202 (eval $ac_compile) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } 2>conftest.err; then
11208 libobjs=conftest.$ac_objext
11210 wl=$lt_prog_compiler_wl_CXX
11216 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11217 allow_undefined_flag_CXX=
11218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11219 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }
11224 archive_cmds_need_lc_CXX=no
11226 archive_cmds_need_lc_CXX=yes
11228 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11230 cat conftest.err 1>&5
11233 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11234 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11241 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11243 library_names_spec=
11244 libname_spec='lib$name'
11248 postuninstall_cmds=
11252 shlibpath_overrides_runpath=unknown
11254 dynamic_linker="$host_os ld.so"
11255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11256 if test "$GCC" = yes; then
11257 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11258 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11259 # if the path contains ";" then we assume it to be the separator
11260 # otherwise default to the standard path separator (i.e. ":") - it is
11261 # assumed that no part of a normal pathname contains ";" but that should
11262 # okay in the real world where ";" in dirpaths is itself problematic.
11263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11265 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11270 need_lib_prefix=unknown
11271 hardcode_into_libs=no
11273 # when you set need_version to no, make sure it does not cause -set_version
11274 # flags to be left without arguments
11275 need_version=unknown
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11281 shlibpath_var=LIBPATH
11283 # AIX 3 has no versioning support, so we append a major version to the name.
11284 soname_spec='${libname}${release}${shared_ext}$major'
11291 hardcode_into_libs=yes
11292 if test "$host_cpu" = ia64; then
11293 # AIX 5 supports IA64
11294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11295 shlibpath_var=LD_LIBRARY_PATH
11297 # With GCC up to 2.95.x, collect2 would create an import file
11298 # for dependence libraries. The import file would start with
11299 # the line `#! .'. This would cause the generated library to
11300 # depend on `.', always an invalid library. This was fixed in
11301 # development snapshots of GCC prior to 3.0.
11303 aix4 | aix4.[01] | aix4.[01].*)
11304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11306 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11309 can_build_shared=no
11313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11314 # soname into executable. Probably we can add versioning support to
11315 # collect2, so additional links can be useful in future.
11316 if test "$aix_use_runtimelinking" = yes; then
11317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11318 # instead of lib<name>.a to let people know that these are not
11319 # typical AIX shared libraries.
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322 # We preserve .a as extension for shared libraries through AIX4.2
11323 # and later when we are not doing run time linking.
11324 library_names_spec='${libname}${release}.a $libname.a'
11325 soname_spec='${libname}${release}${shared_ext}$major'
11327 shlibpath_var=LIBPATH
11332 library_names_spec='$libname.ixlibrary $libname.a'
11333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11334 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'
11338 library_names_spec='${libname}${shared_ext}'
11339 dynamic_linker="$host_os ld.so"
11340 shlibpath_var=LIBRARY_PATH
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11351 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11352 # the default ld.so.conf also contains /usr/contrib/lib and
11353 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11354 # libtool to hard-code these into programs
11357 cygwin* | mingw* | pw32*)
11358 version_type=windows
11363 case $GCC,$host_os in
11364 yes,cygwin* | yes,mingw* | yes,pw32*)
11365 library_names_spec='$libname.dll.a'
11366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11367 postinstall_cmds='base_file=`basename \${file}`~
11368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11369 dldir=$destdir/`dirname \$dlpath`~
11370 test -d \$dldir || mkdir -p \$dldir~
11371 $install_prog $dir/$dlname \$dldir/$dlname'
11372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11373 dlpath=$dir/\$dldll~
11375 shlibpath_overrides_runpath=yes
11379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11380 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11381 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11384 # MinGW DLLs use traditional 'lib' prefix
11385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11387 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11388 # It is most probably a Windows format PATH printed by
11389 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11390 # path with ; separators, and with drive letters. We can handle the
11391 # drive letters (cygwin fileutils understands them), so leave them,
11392 # especially as we might pass files found there to a mingw objdump,
11393 # which wouldn't understand a cygwinified path. Ahh.
11394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11400 # pw32 DLLs use 'pw' prefix rather than 'lib'
11401 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11407 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11410 dynamic_linker='Win32 ld.exe'
11411 # FIXME: first we should search . and the directory the executable is in
11415 darwin* | rhapsody*)
11416 dynamic_linker="$host_os dyld"
11417 version_type=darwin
11420 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11421 soname_spec='${libname}${release}${major}$shared_ext'
11422 shlibpath_overrides_runpath=yes
11423 shlibpath_var=DYLD_LIBRARY_PATH
11424 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11425 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11426 if test "$GCC" = yes; then
11427 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"`
11429 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11452 soname_spec='${libname}${release}${shared_ext}$major'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=no
11455 hardcode_into_libs=yes
11456 dynamic_linker='GNU ld.so'
11460 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11461 version_type=freebsd-$objformat
11462 case $version_type in
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11473 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11478 freebsd3.01* | freebsdelf3.01*)
11479 shlibpath_overrides_runpath=yes
11480 hardcode_into_libs=yes
11483 shlibpath_overrides_runpath=no
11484 hardcode_into_libs=yes
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11494 soname_spec='${libname}${release}${shared_ext}$major'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 hardcode_into_libs=yes
11499 hpux9* | hpux10* | hpux11*)
11500 # Give a soname corresponding to the major version so that dld.sl refuses to
11501 # link against other versions.
11505 case "$host_cpu" in
11508 hardcode_into_libs=yes
11509 dynamic_linker="$host_os dld.so"
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 if test "X$HPUX_IA64_MODE" = X32; then
11515 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11517 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11523 hardcode_into_libs=yes
11524 dynamic_linker="$host_os dld.sl"
11525 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11526 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11534 dynamic_linker="$host_os dld.sl"
11535 shlibpath_var=SHLIB_PATH
11536 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11541 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11542 postinstall_cmds='chmod 555 $lib'
11545 irix5* | irix6* | nonstopux*)
11547 nonstopux*) version_type=nonstopux ;;
11549 if test "$lt_cv_prog_gnu_ld" = yes; then
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11560 irix5* | nonstopux*)
11561 libsuff= shlibsuff=
11564 case $LD in # libtool.m4 will add one of these switches to LD
11565 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11566 libsuff= shlibsuff= libmagic=32-bit;;
11567 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11568 libsuff=32 shlibsuff=N32 libmagic=N32;;
11569 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11570 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11571 *) libsuff= shlibsuff= libmagic=never-match;;
11575 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11576 shlibpath_overrides_runpath=no
11577 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11578 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11579 hardcode_into_libs=yes
11582 # No shared lib support for Linux oldld, aout, or coff.
11583 linux*oldld* | linux*aout* | linux*coff*)
11587 # This must be Linux ELF.
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597 # This implies no fast_install, which is unacceptable.
11598 # Some rework will be needed to allow for fast_install
11599 # before this can be enabled.
11600 hardcode_into_libs=yes
11602 # Append ld.so.conf contents to the search path
11603 if test -f /etc/ld.so.conf; then
11604 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11605 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11608 # We used to test for /lib/ld.so.1 and disable shared libraries on
11609 # powerpc, because MkLinux only supported shared libraries with the
11610 # GNU dynamic linker. Since this was broken with cross compilers,
11611 # most powerpc-linux boxes support dynamic linking these days and
11612 # people can always --disable-shared, the test was removed, and we
11613 # assume the GNU/Linux dynamic linker is in use.
11614 dynamic_linker='GNU/Linux ld.so'
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 shlibpath_overrides_runpath=no
11625 hardcode_into_libs=yes
11626 dynamic_linker='GNU ld.so'
11633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11636 dynamic_linker='NetBSD (a.out) ld.so'
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 dynamic_linker='NetBSD ld.elf_so'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=yes
11644 hardcode_into_libs=yes
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=yes
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=yes
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11673 openbsd2.[89] | openbsd2.[89].*)
11674 shlibpath_overrides_runpath=no
11677 shlibpath_overrides_runpath=yes
11681 shlibpath_overrides_runpath=yes
11686 libname_spec='$name'
11689 library_names_spec='$libname${shared_ext} $libname.a'
11690 dynamic_linker='OS/2 ld.exe'
11691 shlibpath_var=LIBPATH
11694 osf3* | osf4* | osf5*)
11698 soname_spec='${libname}${release}${shared_ext}$major'
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709 shlibpath_var=LD_LIBRARY_PATH
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=yes
11720 hardcode_into_libs=yes
11721 # ldd complains unless libraries are executable
11722 postinstall_cmds='chmod +x $lib'
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11728 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=yes
11731 if test "$with_gnu_ld" = yes; then
11737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 case $host_vendor in
11744 shlibpath_overrides_runpath=no
11746 export_dynamic_flag_spec='${wl}-Blargedynsym'
11747 runpath_var=LD_RUN_PATH
11755 shlibpath_overrides_runpath=no
11756 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11762 if test -d /usr/nec ;then
11764 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11765 soname_spec='$libname${shared_ext}.$major'
11766 shlibpath_var=LD_LIBRARY_PATH
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 shlibpath_var=LD_LIBRARY_PATH
11781 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11782 echo "${ECHO_T}$dynamic_linker" >&6
11783 test "$dynamic_linker" = no && can_build_shared=no
11785 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11786 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11787 hardcode_action_CXX=
11788 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11789 test -n "$runpath_var CXX" || \
11790 test "X$hardcode_automatic_CXX"="Xyes" ; then
11792 # We can hardcode non-existant directories.
11793 if test "$hardcode_direct_CXX" != no &&
11794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11795 # have to relink, otherwise we might link with an installed library
11796 # when we should be linking with a yet-to-be-installed one
11797 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11798 test "$hardcode_minus_L_CXX" != no; then
11799 # Linking always hardcodes the temporary library directory.
11800 hardcode_action_CXX=relink
11802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11803 hardcode_action_CXX=immediate
11806 # We cannot hardcode anything, or else we can only hardcode existing
11808 hardcode_action_CXX=unsupported
11810 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11811 echo "${ECHO_T}$hardcode_action_CXX" >&6
11813 if test "$hardcode_action_CXX" = relink; then
11814 # Fast installation is not supported
11815 enable_fast_install=no
11816 elif test "$shlibpath_overrides_runpath" = yes ||
11817 test "$enable_shared" = no; then
11818 # Fast installation is not necessary
11819 enable_fast_install=needless
11824 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11825 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11826 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11827 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11828 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11829 echo "$as_me:$LINENO: result: yes" >&5
11830 echo "${ECHO_T}yes" >&6
11832 # FIXME - insert some real tests, host_os isn't really good enough
11835 if test -n "$STRIP" ; then
11836 striplib="$STRIP -x"
11837 echo "$as_me:$LINENO: result: yes" >&5
11838 echo "${ECHO_T}yes" >&6
11840 echo "$as_me:$LINENO: result: no" >&5
11841 echo "${ECHO_T}no" >&6
11845 echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6
11851 if test "x$enable_dlopen" != xyes; then
11852 enable_dlopen=unknown
11853 enable_dlopen_self=unknown
11854 enable_dlopen_self_static=unknown
11861 lt_cv_dlopen="load_add_on"
11863 lt_cv_dlopen_self=yes
11867 lt_cv_dlopen="LoadLibrary"
11872 lt_cv_dlopen="dlopen"
11877 # if libdl is installed we need to link against it
11878 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11879 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 ac_check_lib_save_LIBS=$LIBS
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11892 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; } &&
11922 { ac_try='test -s conftest$ac_exeext'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 ac_cv_lib_dl_dlopen=yes
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ac_cv_lib_dl_dlopen=no
11935 rm -f conftest.err conftest.$ac_objext \
11936 conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11939 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11941 if test $ac_cv_lib_dl_dlopen = yes; then
11942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11945 lt_cv_dlopen="dyld"
11947 lt_cv_dlopen_self=yes
11954 echo "$as_me:$LINENO: checking for shl_load" >&5
11955 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11956 if test "${ac_cv_func_shl_load+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 cat >conftest.$ac_ext <<_ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11965 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11967 #define shl_load innocuous_shl_load
11969 /* System header to define __stub macros and hopefully few prototypes,
11970 which can conflict with char shl_load (); below.
11971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11972 <limits.h> exists even on freestanding compilers. */
11975 # include <limits.h>
11977 # include <assert.h>
11982 /* Override any gcc2 internal prototype to avoid an error. */
11987 /* We use char because int might match the return type of a gcc2
11988 builtin and then its argument prototype would still apply. */
11990 /* The GNU C library defines this for functions which it implements
11991 to always fail with ENOSYS. Some functions are actually named
11992 something starting with __ and the normal name is an alias. */
11993 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11996 char (*f) () = shl_load;
12005 return f != shl_load;
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012 (eval $ac_link) 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; } &&
12025 { ac_try='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_cv_func_shl_load=yes
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12036 ac_cv_func_shl_load=no
12038 rm -f conftest.err conftest.$ac_objext \
12039 conftest$ac_exeext conftest.$ac_ext
12041 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12042 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12043 if test $ac_cv_func_shl_load = yes; then
12044 lt_cv_dlopen="shl_load"
12046 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12047 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12048 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 ac_check_lib_save_LIBS=$LIBS
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12060 /* Override any gcc2 internal prototype to avoid an error. */
12064 /* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12075 rm -f conftest.$ac_objext conftest$ac_exeext
12076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12077 (eval $ac_link) 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest$ac_exeext'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_cv_lib_dld_shl_load=yes
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ac_cv_lib_dld_shl_load=no
12103 rm -f conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12107 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12108 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12109 if test $ac_cv_lib_dld_shl_load = yes; then
12110 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12112 echo "$as_me:$LINENO: checking for dlopen" >&5
12113 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12114 if test "${ac_cv_func_dlopen+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12125 #define dlopen innocuous_dlopen
12127 /* System header to define __stub macros and hopefully few prototypes,
12128 which can conflict with char dlopen (); below.
12129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130 <limits.h> exists even on freestanding compilers. */
12133 # include <limits.h>
12135 # include <assert.h>
12140 /* Override any gcc2 internal prototype to avoid an error. */
12145 /* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12148 /* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
12151 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12154 char (*f) () = dlopen;
12163 return f != dlopen;
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12170 (eval $ac_link) 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest$ac_exeext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_cv_func_dlopen=yes
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_cv_func_dlopen=no
12196 rm -f conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12199 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12200 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12201 if test $ac_cv_func_dlopen = yes; then
12202 lt_cv_dlopen="dlopen"
12204 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 ac_check_lib_save_LIBS=$LIBS
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12218 /* Override any gcc2 internal prototype to avoid an error. */
12222 /* We use char because int might match the return type of a gcc2
12223 builtin and then its argument prototype would still apply. */
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12235 (eval $ac_link) 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; } &&
12248 { ac_try='test -s conftest$ac_exeext'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_cv_lib_dl_dlopen=yes
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 ac_cv_lib_dl_dlopen=no
12261 rm -f conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12265 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12266 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12267 if test $ac_cv_lib_dl_dlopen = yes; then
12268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12270 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12271 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12272 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-lsvld $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 /* Override any gcc2 internal prototype to avoid an error. */
12288 /* We use char because int might match the return type of a gcc2
12289 builtin and then its argument prototype would still apply. */
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>conftest.er1
12303 grep -v '^ *+' conftest.er1 >conftest.err
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_lib_svld_dlopen=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_lib_svld_dlopen=no
12327 rm -f conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12331 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12332 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12333 if test $ac_cv_lib_svld_dlopen = yes; then
12334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12336 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12337 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12338 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_check_lib_save_LIBS=$LIBS
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12350 /* Override any gcc2 internal prototype to avoid an error. */
12354 /* We use char because int might match the return type of a gcc2
12355 builtin and then its argument prototype would still apply. */
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367 (eval $ac_link) 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest$ac_exeext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_lib_dld_dld_link=yes
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_cv_lib_dld_dld_link=no
12393 rm -f conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
12395 LIBS=$ac_check_lib_save_LIBS
12397 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12398 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12399 if test $ac_cv_lib_dld_dld_link = yes; then
12400 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12421 if test "x$lt_cv_dlopen" != xno; then
12427 case $lt_cv_dlopen in
12429 save_CPPFLAGS="$CPPFLAGS"
12430 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12432 save_LDFLAGS="$LDFLAGS"
12433 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12436 LIBS="$lt_cv_dlopen_libs $LIBS"
12438 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12439 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12440 if test "${lt_cv_dlopen_self+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 if test "$cross_compiling" = yes; then :
12444 lt_cv_dlopen_self=cross
12446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12447 lt_status=$lt_dlunknown
12448 cat > conftest.$ac_ext <<EOF
12449 #line 12449 "configure"
12450 #include "confdefs.h"
12459 # define LT_DLGLOBAL RTLD_GLOBAL
12462 # define LT_DLGLOBAL DL_GLOBAL
12464 # define LT_DLGLOBAL 0
12468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12469 find out it does not work in some platform. */
12470 #ifndef LT_DLLAZY_OR_NOW
12472 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12475 # define LT_DLLAZY_OR_NOW DL_LAZY
12478 # define LT_DLLAZY_OR_NOW RTLD_NOW
12481 # define LT_DLLAZY_OR_NOW DL_NOW
12483 # define LT_DLLAZY_OR_NOW 0
12491 extern "C" void exit (int);
12494 void fnord() { int i=42;}
12497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12498 int status = $lt_dlunknown;
12502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12504 /* dlclose (self); */
12510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511 (eval $ac_link) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12515 (./conftest; exit; ) 2>/dev/null
12517 case x$lt_status in
12518 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12519 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12520 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12523 # compilation failed
12524 lt_cv_dlopen_self=no
12531 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12532 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12534 if test "x$lt_cv_dlopen_self" = xyes; then
12535 LDFLAGS="$LDFLAGS $link_static_flag"
12536 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12537 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12538 if test "${lt_cv_dlopen_self_static+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 if test "$cross_compiling" = yes; then :
12542 lt_cv_dlopen_self_static=cross
12544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12545 lt_status=$lt_dlunknown
12546 cat > conftest.$ac_ext <<EOF
12547 #line 12547 "configure"
12548 #include "confdefs.h"
12557 # define LT_DLGLOBAL RTLD_GLOBAL
12560 # define LT_DLGLOBAL DL_GLOBAL
12562 # define LT_DLGLOBAL 0
12566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12567 find out it does not work in some platform. */
12568 #ifndef LT_DLLAZY_OR_NOW
12570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12573 # define LT_DLLAZY_OR_NOW DL_LAZY
12576 # define LT_DLLAZY_OR_NOW RTLD_NOW
12579 # define LT_DLLAZY_OR_NOW DL_NOW
12581 # define LT_DLLAZY_OR_NOW 0
12589 extern "C" void exit (int);
12592 void fnord() { int i=42;}
12595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12596 int status = $lt_dlunknown;
12600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12602 /* dlclose (self); */
12608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609 (eval $ac_link) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12613 (./conftest; exit; ) 2>/dev/null
12615 case x$lt_status in
12616 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12617 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12618 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12621 # compilation failed
12622 lt_cv_dlopen_self_static=no
12629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12630 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12633 CPPFLAGS="$save_CPPFLAGS"
12634 LDFLAGS="$save_LDFLAGS"
12639 case $lt_cv_dlopen_self in
12640 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12641 *) enable_dlopen_self=unknown ;;
12644 case $lt_cv_dlopen_self_static in
12645 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12646 *) enable_dlopen_self_static=unknown ;;
12651 # The else clause should only fire when bootstrapping the
12652 # libtool distribution, otherwise you forgot to ship ltmain.sh
12653 # with your package, and you will get complaints that there are
12654 # no rules to generate ltmain.sh.
12655 if test -f "$ltmain"; then
12656 # See if we are running on zsh, and set the options which allow our commands through
12657 # without removal of \ escapes.
12658 if test -n "${ZSH_VERSION+set}" ; then
12659 setopt NO_GLOB_SUBST
12661 # Now quote all the things that may contain metacharacters while being
12662 # careful not to overquote the AC_SUBSTed values. We take copies of the
12663 # variables and quote the copies for generation of the libtool script.
12664 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12666 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12667 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12668 deplibs_check_method reload_flag reload_cmds need_locks \
12669 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12670 lt_cv_sys_global_symbol_to_c_name_address \
12671 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12672 old_postinstall_cmds old_postuninstall_cmds \
12676 lt_prog_compiler_wl_CXX \
12677 lt_prog_compiler_pic_CXX \
12678 lt_prog_compiler_static_CXX \
12679 lt_prog_compiler_no_builtin_flag_CXX \
12680 export_dynamic_flag_spec_CXX \
12681 thread_safe_flag_spec_CXX \
12682 whole_archive_flag_spec_CXX \
12683 enable_shared_with_static_runtimes_CXX \
12684 old_archive_cmds_CXX \
12685 old_archive_from_new_cmds_CXX \
12686 predep_objects_CXX \
12687 postdep_objects_CXX \
12690 compiler_lib_search_path_CXX \
12692 archive_expsym_cmds_CXX \
12693 postinstall_cmds_CXX \
12694 postuninstall_cmds_CXX \
12695 old_archive_from_expsyms_cmds_CXX \
12696 allow_undefined_flag_CXX \
12697 no_undefined_flag_CXX \
12698 export_symbols_cmds_CXX \
12699 hardcode_libdir_flag_spec_CXX \
12700 hardcode_libdir_flag_spec_ld_CXX \
12701 hardcode_libdir_separator_CXX \
12702 hardcode_automatic_CXX \
12704 module_expsym_cmds_CXX \
12705 lt_cv_prog_compiler_c_o_CXX \
12706 exclude_expsyms_CXX \
12707 include_expsyms_CXX; do
12710 old_archive_cmds_CXX | \
12711 old_archive_from_new_cmds_CXX | \
12712 archive_cmds_CXX | \
12713 archive_expsym_cmds_CXX | \
12714 module_cmds_CXX | \
12715 module_expsym_cmds_CXX | \
12716 old_archive_from_expsyms_cmds_CXX | \
12717 export_symbols_cmds_CXX | \
12718 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12719 postinstall_cmds | postuninstall_cmds | \
12720 old_postinstall_cmds | old_postuninstall_cmds | \
12721 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12722 # Double-quote double-evaled strings.
12723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12726 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12732 *'\$0 --fallback-echo"')
12733 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12739 cat <<__EOF__ >> "$cfgfile"
12740 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12744 # Shell to use when invoking shell scripts.
12747 # Whether or not to build shared libraries.
12748 build_libtool_libs=$enable_shared
12750 # Whether or not to build static libraries.
12751 build_old_libs=$enable_static
12753 # Whether or not to add -lc for building shared libraries.
12754 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12756 # Whether or not to disallow shared libs when runtime libs are static
12757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12759 # Whether or not to optimize for fast installation.
12760 fast_install=$enable_fast_install
12763 host_alias=$host_alias
12766 # An echo program that does not interpret backslashes.
12771 AR_FLAGS=$lt_AR_FLAGS
12776 # A language-specific compiler.
12777 CC=$lt_compiler_CXX
12779 # Is the compiler the GNU C compiler?
12785 # The linker used to build libraries.
12788 # Whether we need hard or soft links.
12791 # A BSD-compatible nm program.
12794 # A symbol stripping program
12797 # Used to examine libraries when file_magic_cmd begins "file"
12798 MAGIC_CMD=$MAGIC_CMD
12800 # Used on cygwin: DLL creation program.
12803 # Used on cygwin: object dumper.
12806 # Used on cygwin: assembler.
12809 # The name of the directory that contains temporary libtool files.
12812 # How to create reloadable object files.
12813 reload_flag=$lt_reload_flag
12814 reload_cmds=$lt_reload_cmds
12816 # How to pass a linker flag through the compiler.
12817 wl=$lt_lt_prog_compiler_wl_CXX
12819 # Object file suffix (normally "o").
12820 objext="$ac_objext"
12822 # Old archive suffix (normally "a").
12825 # Shared library suffix (normally ".so").
12826 shrext_cmds='$shrext_cmds'
12828 # Executable file suffix (normally "").
12831 # Additional compiler flags for building library objects.
12832 pic_flag=$lt_lt_prog_compiler_pic_CXX
12835 # What is the maximum length of a command?
12836 max_cmd_len=$lt_cv_sys_max_cmd_len
12838 # Does compiler simultaneously support -c and -o options?
12839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12841 # Must we lock files when doing compilation ?
12842 need_locks=$lt_need_locks
12844 # Do we need the lib prefix for modules?
12845 need_lib_prefix=$need_lib_prefix
12847 # Do we need a version for libraries?
12848 need_version=$need_version
12850 # Whether dlopen is supported.
12851 dlopen_support=$enable_dlopen
12853 # Whether dlopen of programs is supported.
12854 dlopen_self=$enable_dlopen_self
12856 # Whether dlopen of statically linked programs is supported.
12857 dlopen_self_static=$enable_dlopen_self_static
12859 # Compiler flag to prevent dynamic linking.
12860 link_static_flag=$lt_lt_prog_compiler_static_CXX
12862 # Compiler flag to turn off builtin functions.
12863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12865 # Compiler flag to allow reflexive dlopens.
12866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12868 # Compiler flag to generate shared objects directly from archives.
12869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12871 # Compiler flag to generate thread-safe objects.
12872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12874 # Library versioning type.
12875 version_type=$version_type
12877 # Format of library name prefix.
12878 libname_spec=$lt_libname_spec
12880 # List of archive names. First name is the real one, the rest are links.
12881 # The last name is the one that the linker finds with -lNAME.
12882 library_names_spec=$lt_library_names_spec
12884 # The coded name of the library, if different from the real name.
12885 soname_spec=$lt_soname_spec
12887 # Commands used to build and install an old-style archive.
12889 old_archive_cmds=$lt_old_archive_cmds_CXX
12890 old_postinstall_cmds=$lt_old_postinstall_cmds
12891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12893 # Create an old-style archive from a shared archive.
12894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12896 # Create a temporary old-style archive to link instead of a shared archive.
12897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12899 # Commands used to build and install a shared archive.
12900 archive_cmds=$lt_archive_cmds_CXX
12901 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12902 postinstall_cmds=$lt_postinstall_cmds
12903 postuninstall_cmds=$lt_postuninstall_cmds
12905 # Commands used to build a loadable module (assumed same as above if empty)
12906 module_cmds=$lt_module_cmds_CXX
12907 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12909 # Commands to strip libraries.
12910 old_striplib=$lt_old_striplib
12911 striplib=$lt_striplib
12913 # Dependencies to place before the objects being linked to create a
12915 predep_objects=$lt_predep_objects_CXX
12917 # Dependencies to place after the objects being linked to create a
12919 postdep_objects=$lt_postdep_objects_CXX
12921 # Dependencies to place before the objects being linked to create a
12923 predeps=$lt_predeps_CXX
12925 # Dependencies to place after the objects being linked to create a
12927 postdeps=$lt_postdeps_CXX
12929 # The library search path used internally by the compiler when linking
12930 # a shared library.
12931 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12933 # Method to check whether dependent libraries are shared objects.
12934 deplibs_check_method=$lt_deplibs_check_method
12936 # Command to use when deplibs_check_method == file_magic.
12937 file_magic_cmd=$lt_file_magic_cmd
12939 # Flag that allows shared libraries with undefined symbols to be built.
12940 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12942 # Flag that forces no undefined symbols.
12943 no_undefined_flag=$lt_no_undefined_flag_CXX
12945 # Commands used to finish a libtool library installation in a directory.
12946 finish_cmds=$lt_finish_cmds
12948 # Same as above, but a single script fragment to be evaled but not shown.
12949 finish_eval=$lt_finish_eval
12951 # Take the output of nm and produce a listing of raw symbols and C names.
12952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12954 # Transform the output of nm in a proper C declaration
12955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12957 # Transform the output of nm in a C name address pair
12958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12960 # This is the shared library runtime path variable.
12961 runpath_var=$runpath_var
12963 # This is the shared library path variable.
12964 shlibpath_var=$shlibpath_var
12966 # Is shlibpath searched before the hard-coded library search path?
12967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12969 # How to hardcode a shared library path into an executable.
12970 hardcode_action=$hardcode_action_CXX
12972 # Whether we should hardcode library paths into libraries.
12973 hardcode_into_libs=$hardcode_into_libs
12975 # Flag to hardcode \$libdir into a binary during linking.
12976 # This must work even if \$libdir does not exist.
12977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12979 # If ld is used when linking, flag to hardcode \$libdir into
12980 # a binary during linking. This must work even if \$libdir does
12982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12984 # Whether we need a single -rpath flag with a separated argument.
12985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12988 # resulting binary.
12989 hardcode_direct=$hardcode_direct_CXX
12991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12992 # resulting binary.
12993 hardcode_minus_L=$hardcode_minus_L_CXX
12995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12996 # the resulting binary.
12997 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12999 # Set to yes if building a shared library automatically hardcodes DIR into the library
13000 # and all subsequent libraries and executables linked against it.
13001 hardcode_automatic=$hardcode_automatic_CXX
13003 # Variables whose values should be saved in libtool wrapper scripts and
13004 # restored at relink time.
13005 variables_saved_for_relink="$variables_saved_for_relink"
13007 # Whether libtool must link a program against all its dependency libraries.
13008 link_all_deplibs=$link_all_deplibs_CXX
13010 # Compile-time system search path for libraries
13011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13013 # Run-time system search path for libraries
13014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13016 # Fix the shell variable \$srcfile for the compiler.
13017 fix_srcfile_path="$fix_srcfile_path_CXX"
13019 # Set to yes if exported symbols are required.
13020 always_export_symbols=$always_export_symbols_CXX
13022 # The commands to list exported symbols.
13023 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13025 # The commands to extract the exported symbol list from a shared archive.
13026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13028 # Symbols that should not be listed in the preloaded symbols.
13029 exclude_expsyms=$lt_exclude_expsyms_CXX
13031 # Symbols that must always be exported.
13032 include_expsyms=$lt_include_expsyms_CXX
13034 # ### END LIBTOOL TAG CONFIG: $tagname
13040 # If there is no Makefile yet, we rely on a make rule to execute
13041 # `config.status --recheck' to rerun these tests and create the
13042 # libtool script then.
13043 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13044 if test -f "$ltmain_in"; then
13045 test -f Makefile && make "$ltmain"
13051 ac_cpp='$CPP $CPPFLAGS'
13052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13060 with_gnu_ldcxx=$with_gnu_ld
13061 with_gnu_ld=$lt_save_with_gnu_ld
13062 lt_cv_path_LDCXX=$lt_cv_path_LD
13063 lt_cv_path_LD=$lt_save_path_LD
13064 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13065 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13073 if test -n "$F77" && test "X$F77" != "Xno"; then
13076 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13077 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13078 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13081 archive_cmds_need_lc_F77=no
13082 allow_undefined_flag_F77=
13083 always_export_symbols_F77=no
13084 archive_expsym_cmds_F77=
13085 export_dynamic_flag_spec_F77=
13086 hardcode_direct_F77=no
13087 hardcode_libdir_flag_spec_F77=
13088 hardcode_libdir_flag_spec_ld_F77=
13089 hardcode_libdir_separator_F77=
13090 hardcode_minus_L_F77=no
13091 hardcode_automatic_F77=no
13093 module_expsym_cmds_F77=
13094 link_all_deplibs_F77=unknown
13095 old_archive_cmds_F77=$old_archive_cmds
13096 no_undefined_flag_F77=
13097 whole_archive_flag_spec_F77=
13098 enable_shared_with_static_runtimes_F77=no
13100 # Source file extension for f77 test sources.
13103 # Object file extension for compiled f77 test sources.
13107 # Code to be used in simple compile tests
13108 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13110 # Code to be used in simple link tests
13111 lt_simple_link_test_code=" program t\n end\n"
13113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13115 # If no C compiler was specified, use CC.
13118 # Allow CC to be a program name with arguments.
13122 # Allow CC to be a program name with arguments.
13127 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13129 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13130 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13131 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13132 echo "${ECHO_T}$can_build_shared" >&6
13134 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13135 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13136 test "$can_build_shared" = "no" && enable_shared=no
13138 # On AIX, shared libraries and static libraries use the same namespace, and
13139 # are all built from PIC.
13142 test "$enable_shared" = yes && enable_static=no
13143 if test -n "$RANLIB"; then
13144 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13145 postinstall_cmds='$RANLIB $lib'
13149 test "$enable_shared" = yes && enable_static=no
13152 echo "$as_me:$LINENO: result: $enable_shared" >&5
13153 echo "${ECHO_T}$enable_shared" >&6
13155 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13156 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13157 # Make sure either enable_shared or enable_static is yes.
13158 test "$enable_shared" = yes || enable_static=yes
13159 echo "$as_me:$LINENO: result: $enable_static" >&5
13160 echo "${ECHO_T}$enable_static" >&6
13162 test "$ld_shlibs_F77" = no && can_build_shared=no
13167 lt_prog_compiler_wl_F77=
13168 lt_prog_compiler_pic_F77=
13169 lt_prog_compiler_static_F77=
13171 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13172 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13174 if test "$GCC" = yes; then
13175 lt_prog_compiler_wl_F77='-Wl,'
13176 lt_prog_compiler_static_F77='-static'
13180 # All AIX code is PIC.
13181 if test "$host_cpu" = ia64; then
13182 # AIX 5 now supports IA64 processor
13183 lt_prog_compiler_static_F77='-Bstatic'
13188 # FIXME: we need at least 68020 code to build shared libraries, but
13189 # adding the `-m68020' flag to GCC prevents building anything better,
13191 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13194 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13195 # PIC is the default for these OSes.
13198 mingw* | pw32* | os2*)
13199 # This hack is so that the source file can tell whether it is being
13200 # built for inclusion in a dll (and should export symbols for example).
13201 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13204 darwin* | rhapsody*)
13205 # PIC is the default on this platform
13206 # Common symbols not allowed in MH_DYLIB files
13207 lt_prog_compiler_pic_F77='-fno-common'
13211 # Just because we use GCC doesn't mean we suddenly get shared libraries
13212 # on systems that don't support them.
13213 lt_prog_compiler_can_build_shared_F77=no
13218 if test -d /usr/nec; then
13219 lt_prog_compiler_pic_F77=-Kconform_pic
13224 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13225 # not for PA HP-UX.
13226 case "$host_cpu" in
13231 lt_prog_compiler_pic_F77='-fPIC'
13237 lt_prog_compiler_pic_F77='-fPIC'
13241 # PORTME Check for flag to pass linker flags through the system compiler.
13244 lt_prog_compiler_wl_F77='-Wl,'
13245 if test "$host_cpu" = ia64; then
13246 # AIX 5 now supports IA64 processor
13247 lt_prog_compiler_static_F77='-Bstatic'
13249 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13253 mingw* | pw32* | os2*)
13254 # This hack is so that the source file can tell whether it is being
13255 # built for inclusion in a dll (and should export symbols for example).
13256 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13259 hpux9* | hpux10* | hpux11*)
13260 lt_prog_compiler_wl_F77='-Wl,'
13261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13262 # not for PA HP-UX.
13263 case "$host_cpu" in
13268 lt_prog_compiler_pic_F77='+Z'
13271 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13272 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13275 irix5* | irix6* | nonstopux*)
13276 lt_prog_compiler_wl_F77='-Wl,'
13277 # PIC (with -KPIC) is the default.
13278 lt_prog_compiler_static_F77='-non_shared'
13282 lt_prog_compiler_pic_F77='-KPIC'
13283 lt_prog_compiler_static_F77='-Bstatic'
13289 lt_prog_compiler_wl_F77='-Wl,'
13290 lt_prog_compiler_pic_F77='-KPIC'
13291 lt_prog_compiler_static_F77='-static'
13294 lt_prog_compiler_wl_F77='-Wl,'
13295 # All Alpha code is PIC.
13296 lt_prog_compiler_static_F77='-non_shared'
13301 osf3* | osf4* | osf5*)
13302 lt_prog_compiler_wl_F77='-Wl,'
13303 # All OSF/1 code is PIC.
13304 lt_prog_compiler_static_F77='-non_shared'
13308 lt_prog_compiler_pic_F77='-Kpic'
13309 lt_prog_compiler_static_F77='-dn'
13313 lt_prog_compiler_wl_F77='-Wl,'
13314 lt_prog_compiler_pic_F77='-KPIC'
13315 lt_prog_compiler_static_F77='-Bstatic'
13319 lt_prog_compiler_wl_F77='-Qoption ld '
13320 lt_prog_compiler_pic_F77='-PIC'
13321 lt_prog_compiler_static_F77='-Bstatic'
13324 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13325 lt_prog_compiler_wl_F77='-Wl,'
13326 lt_prog_compiler_pic_F77='-KPIC'
13327 lt_prog_compiler_static_F77='-Bstatic'
13331 if test -d /usr/nec ;then
13332 lt_prog_compiler_pic_F77='-Kconform_pic'
13333 lt_prog_compiler_static_F77='-Bstatic'
13338 lt_prog_compiler_pic_F77='-pic'
13339 lt_prog_compiler_static_F77='-Bstatic'
13343 lt_prog_compiler_can_build_shared_F77=no
13348 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13349 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13352 # Check to make sure the PIC flag actually works.
13354 if test -n "$lt_prog_compiler_pic_F77"; then
13356 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13357 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13358 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 lt_prog_compiler_pic_works_F77=no
13362 ac_outfile=conftest.$ac_objext
13363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13364 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13365 # Insert the option either (1) after the last *FLAGS variable, or
13366 # (2) before a word containing "conftest.", or (3) at the end.
13367 # Note that $ac_compile itself does not contain backslashes and begins
13368 # with a dollar sign (not a hyphen), so the echo should work correctly.
13369 # The option is referenced via a variable to avoid confusing sed.
13370 lt_compile=`echo "$ac_compile" | $SED \
13371 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13373 -e 's:$: $lt_compiler_flag:'`
13374 (eval echo "\"\$as_me:13374: $lt_compile\"" >&5)
13375 (eval "$lt_compile" 2>conftest.err)
13377 cat conftest.err >&5
13378 echo "$as_me:13378: \$? = $ac_status" >&5
13379 if (exit $ac_status) && test -s "$ac_outfile"; then
13380 # The compiler can only warn and ignore the option if not recognized
13381 # So say no if there are warnings
13382 if test ! -s conftest.err; then
13383 lt_prog_compiler_pic_works_F77=yes
13389 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13390 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13392 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13393 case $lt_prog_compiler_pic_F77 in
13395 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13398 lt_prog_compiler_pic_F77=
13399 lt_prog_compiler_can_build_shared_F77=no
13404 # For platforms which do not support PIC, -DPIC is meaningless:
13406 lt_prog_compiler_pic_F77=
13409 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13413 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13414 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13415 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 lt_cv_prog_compiler_c_o_F77=no
13419 $rm -r conftest 2>/dev/null
13423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13425 lt_compiler_flag="-o out/conftest2.$ac_objext"
13426 # Insert the option either (1) after the last *FLAGS variable, or
13427 # (2) before a word containing "conftest.", or (3) at the end.
13428 # Note that $ac_compile itself does not contain backslashes and begins
13429 # with a dollar sign (not a hyphen), so the echo should work correctly.
13430 lt_compile=`echo "$ac_compile" | $SED \
13431 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13433 -e 's:$: $lt_compiler_flag:'`
13434 (eval echo "\"\$as_me:13434: $lt_compile\"" >&5)
13435 (eval "$lt_compile" 2>out/conftest.err)
13437 cat out/conftest.err >&5
13438 echo "$as_me:13438: \$? = $ac_status" >&5
13439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13441 # The compiler can only warn and ignore the option if not recognized
13442 # So say no if there are warnings
13443 if test ! -s out/conftest.err; then
13444 lt_cv_prog_compiler_c_o_F77=yes
13449 # SGI C++ compiler will create directory out/ii_files/ for
13450 # template instantiation
13451 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13452 $rm out/* && rmdir out
13458 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13459 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13462 hard_links="nottested"
13463 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13464 # do not overwrite the value of need_locks provided by the user
13465 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13466 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13471 ln conftest.a conftest.b 2>&5 || hard_links=no
13472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13473 echo "$as_me:$LINENO: result: $hard_links" >&5
13474 echo "${ECHO_T}$hard_links" >&6
13475 if test "$hard_links" = no; then
13476 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13477 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13484 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13485 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13488 allow_undefined_flag_F77=
13489 enable_shared_with_static_runtimes_F77=no
13491 archive_expsym_cmds_F77=
13492 old_archive_From_new_cmds_F77=
13493 old_archive_from_expsyms_cmds_F77=
13494 export_dynamic_flag_spec_F77=
13495 whole_archive_flag_spec_F77=
13496 thread_safe_flag_spec_F77=
13497 hardcode_libdir_flag_spec_F77=
13498 hardcode_libdir_flag_spec_ld_F77=
13499 hardcode_libdir_separator_F77=
13500 hardcode_direct_F77=no
13501 hardcode_minus_L_F77=no
13502 hardcode_shlibpath_var_F77=unsupported
13503 link_all_deplibs_F77=unknown
13504 hardcode_automatic_F77=no
13506 module_expsym_cmds_F77=
13507 always_export_symbols_F77=no
13508 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13509 # include_expsyms should be a list of space-separated symbols to be *always*
13510 # included in the symbol list
13511 include_expsyms_F77=
13512 # exclude_expsyms can be an extended regexp of symbols to exclude
13513 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13514 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13515 # as well as any symbol that contains `d'.
13516 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13517 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13518 # platforms (ab)use it in PIC code, but their linkers get confused if
13519 # the symbol is explicitly referenced. Since portable code cannot
13520 # rely on this symbol name, it's probably fine to never include it in
13521 # preloaded symbol tables.
13522 extract_expsyms_cmds=
13525 cygwin* | mingw* | pw32*)
13526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13527 # When not using gcc, we currently assume that we are using
13528 # Microsoft Visual C++.
13529 if test "$GCC" != yes; then
13539 if test "$with_gnu_ld" = yes; then
13540 # If archive_cmds runs LD, not CC, wlarc should be empty
13543 # See if GNU ld supports shared libraries.
13545 aix3* | aix4* | aix5*)
13546 # On AIX/PPC, the GNU linker is very broken
13547 if test "$host_cpu" != ia64; then
13551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13552 *** to be unable to reliably create shared libraries on AIX.
13553 *** Therefore, libtool is disabling shared libraries support. If you
13554 *** really care for shared libraries, you may want to modify your PATH
13555 *** so that a non-GNU linker is found, and then restart.
13562 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)'
13563 hardcode_libdir_flag_spec_F77='-L$libdir'
13564 hardcode_minus_L_F77=yes
13566 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13567 # that the semantics of dynamic libraries on AmigaOS, at least up
13568 # to version 4, is to share data among multiple programs linked
13569 # with the same dynamic library. Since this doesn't match the
13570 # behavior of shared libraries on other platforms, we can't use
13576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13577 allow_undefined_flag_F77=unsupported
13578 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13579 # support --undefined. This deserves some investigation. FIXME
13580 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13586 cygwin* | mingw* | pw32*)
13587 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13588 # as there is no search path for DLLs.
13589 hardcode_libdir_flag_spec_F77='-L$libdir'
13590 allow_undefined_flag_F77=unsupported
13591 always_export_symbols_F77=no
13592 enable_shared_with_static_runtimes_F77=yes
13593 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13595 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13596 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13597 # If the export-symbols file already is a .def file (1st line
13598 # is EXPORTS), use it as is; otherwise, prepend...
13599 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13600 cp $export_symbols $output_objdir/$soname.def;
13602 echo EXPORTS > $output_objdir/$soname.def;
13603 cat $export_symbols >> $output_objdir/$soname.def;
13605 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13611 netbsd* | knetbsd*-gnu)
13612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13613 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13616 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13617 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13622 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13627 *** create shared libraries on Solaris systems. Therefore, libtool
13628 *** is disabling shared libraries support. We urge you to upgrade GNU
13629 *** binutils to release 2.9.1 or newer. Another option is to modify
13630 *** your PATH or compiler configuration so that the native linker is
13631 *** used, and then restart.
13634 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13635 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13643 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13645 hardcode_direct_F77=yes
13646 hardcode_shlibpath_var_F77=no
13650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13651 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652 archive_cmds_F77="$tmp_archive_cmds"
13653 supports_anon_versioning=no
13654 case `$LD -v 2>/dev/null` in
13655 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13656 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13657 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13658 *\ 2.11.*) ;; # other 2.11 versions
13659 *) supports_anon_versioning=yes ;;
13661 if test $supports_anon_versioning = yes; then
13662 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13664 $echo "local: *; };" >> $output_objdir/$libname.ver~
13665 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13667 archive_expsym_cmds_F77="$tmp_archive_cmds"
13669 link_all_deplibs_F77=no
13676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13677 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13685 if test "$ld_shlibs_F77" = yes; then
13686 runpath_var=LD_RUN_PATH
13687 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13688 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13689 # ancient GNU ld didn't support --whole-archive et. al.
13690 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13691 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13693 whole_archive_flag_spec_F77=
13697 # PORTME fill in a description of your system's linker (not GNU ld)
13700 allow_undefined_flag_F77=unsupported
13701 always_export_symbols_F77=yes
13702 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'
13703 # Note: this linker hardcodes the directories in LIBPATH if there
13704 # are no directories specified by -L.
13705 hardcode_minus_L_F77=yes
13706 if test "$GCC" = yes && test -z "$link_static_flag"; then
13707 # Neither direct hardcoding nor static linking is supported with a
13709 hardcode_direct_F77=unsupported
13714 if test "$host_cpu" = ia64; then
13715 # On IA64, the linker does run time linking by default, so we don't
13716 # have to do anything special.
13717 aix_use_runtimelinking=no
13718 exp_sym_flag='-Bexport'
13721 # If we're using GNU nm, then we don't want the "-C" option.
13722 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13723 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13724 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'
13726 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'
13728 aix_use_runtimelinking=no
13730 # Test if we are trying to use run time linking or normal
13731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13732 # need to do runtime linking.
13733 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13734 for ld_flag in $LDFLAGS; do
13735 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13736 aix_use_runtimelinking=yes
13742 exp_sym_flag='-bexport'
13743 no_entry_flag='-bnoentry'
13746 # When large executables or shared objects are built, AIX ld can
13747 # have problems creating the table of contents. If linking a library
13748 # or program results in "error TOC overflow" add -mminimal-toc to
13749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13752 archive_cmds_F77=''
13753 hardcode_direct_F77=yes
13754 hardcode_libdir_separator_F77=':'
13755 link_all_deplibs_F77=yes
13757 if test "$GCC" = yes; then
13758 case $host_os in aix4.012|aix4.012.*)
13759 # We only want to do this on AIX 4.2 and lower, the check
13760 # below for broken collect2 doesn't work under 4.3+
13761 collect2name=`${CC} -print-prog-name=collect2`
13762 if test -f "$collect2name" && \
13763 strings "$collect2name" | grep resolve_lib_name >/dev/null
13765 # We have reworked collect2
13766 hardcode_direct_F77=yes
13768 # We have old collect2
13769 hardcode_direct_F77=unsupported
13770 # It fails to find uninstalled libraries when the uninstalled
13771 # path is not listed in the libpath. Setting hardcode_minus_L
13772 # to unsupported forces relinking
13773 hardcode_minus_L_F77=yes
13774 hardcode_libdir_flag_spec_F77='-L$libdir'
13775 hardcode_libdir_separator_F77=
13778 shared_flag='-shared'
13781 if test "$host_cpu" = ia64; then
13782 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13783 # chokes on -Wl,-G. The following line is correct:
13786 if test "$aix_use_runtimelinking" = yes; then
13787 shared_flag='${wl}-G'
13789 shared_flag='${wl}-bM:SRE'
13794 # It seems that -bexpall does not export symbols beginning with
13795 # underscore (_), so it is better to generate a list of symbols to export.
13796 always_export_symbols_F77=yes
13797 if test "$aix_use_runtimelinking" = yes; then
13798 # Warning - without using the other runtime loading flags (-brtl),
13799 # -berok will link without error, but may produce a broken library.
13800 allow_undefined_flag_F77='-berok'
13801 # Determine the default libpath from the value encoded in an empty executable.
13802 cat >conftest.$ac_ext <<_ACEOF
13807 rm -f conftest.$ac_objext conftest$ac_exeext
13808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13809 (eval $ac_link) 2>conftest.er1
13811 grep -v '^ *+' conftest.er1 >conftest.err
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13831 # Check for a 64-bit object if we didn't find anything.
13832 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; }
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13839 rm -f conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13843 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13844 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"
13846 if test "$host_cpu" = ia64; then
13847 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13848 allow_undefined_flag_F77="-z nodefs"
13849 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"
13851 # Determine the default libpath from the value encoded in an empty executable.
13852 cat >conftest.$ac_ext <<_ACEOF
13857 rm -f conftest.$ac_objext conftest$ac_exeext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859 (eval $ac_link) 2>conftest.er1
13861 grep -v '^ *+' conftest.er1 >conftest.err
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest$ac_exeext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13881 # Check for a 64-bit object if we didn't find anything.
13882 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13889 rm -f conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13893 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13894 # Warning - without using the other run time loading flags,
13895 # -berok will link without error, but may produce a broken library.
13896 no_undefined_flag_F77=' ${wl}-bernotok'
13897 allow_undefined_flag_F77=' ${wl}-berok'
13898 # -bexpall does not export symbols beginning with underscore (_)
13899 always_export_symbols_F77=yes
13900 # Exported symbols can be pulled into shared objects from archives
13901 whole_archive_flag_spec_F77=' '
13902 archive_cmds_need_lc_F77=yes
13903 # This is similar to how AIX traditionally builds it's shared libraries.
13904 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'
13910 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)'
13911 hardcode_libdir_flag_spec_F77='-L$libdir'
13912 hardcode_minus_L_F77=yes
13913 # see comment about different semantics on the GNU ld section
13918 export_dynamic_flag_spec_F77=-rdynamic
13921 cygwin* | mingw* | pw32*)
13922 # When not using gcc, we currently assume that we are using
13923 # Microsoft Visual C++.
13924 # hardcode_libdir_flag_spec is actually meaningless, as there is
13925 # no search path for DLLs.
13926 hardcode_libdir_flag_spec_F77=' '
13927 allow_undefined_flag_F77=unsupported
13928 # Tell ltmain to make .lib files, not .a files.
13930 # Tell ltmain to make .dll files, not .so files.
13932 # FIXME: Setting linknames here is a bad hack.
13933 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13934 # The linker will automatically build a .lib file if we build a DLL.
13935 old_archive_From_new_cmds_F77='true'
13936 # FIXME: Should let the user specify the lib program.
13937 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13938 fix_srcfile_path='`cygpath -w "$srcfile"`'
13939 enable_shared_with_static_runtimes_F77=yes
13942 darwin* | rhapsody*)
13943 if test "$GXX" = yes ; then
13944 archive_cmds_need_lc_F77=no
13946 rhapsody* | darwin1.[012])
13947 allow_undefined_flag_F77='-undefined suppress'
13950 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13951 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13953 case ${MACOSX_DEPLOYMENT_TARGET} in
13955 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13958 allow_undefined_flag_F77='-undefined dynamic_lookup'
13964 lt_int_apple_cc_single_mod=no
13965 output_verbose_link_cmd='echo'
13966 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13967 lt_int_apple_cc_single_mod=yes
13969 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13970 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13972 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'
13974 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13975 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13976 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13977 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}'
13979 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}'
13981 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}'
13982 hardcode_direct_F77=no
13983 hardcode_automatic_F77=yes
13984 hardcode_shlibpath_var_F77=unsupported
13985 whole_archive_flag_spec_F77='-all_load $convenience'
13986 link_all_deplibs_F77=yes
13993 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13994 hardcode_libdir_flag_spec_F77='-L$libdir'
13995 hardcode_shlibpath_var_F77=no
14002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14003 # support. Future versions do this automatically, but an explicit c++rt0.o
14004 # does not break anything, and helps significantly (at the cost of a little
14007 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14008 hardcode_libdir_flag_spec_F77='-R$libdir'
14009 hardcode_direct_F77=yes
14010 hardcode_shlibpath_var_F77=no
14013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14015 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14016 hardcode_direct_F77=yes
14017 hardcode_minus_L_F77=yes
14018 hardcode_shlibpath_var_F77=no
14021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14022 freebsd* | kfreebsd*-gnu)
14023 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14024 hardcode_libdir_flag_spec_F77='-R$libdir'
14025 hardcode_direct_F77=yes
14026 hardcode_shlibpath_var_F77=no
14030 if test "$GCC" = yes; then
14031 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'
14033 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'
14035 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14036 hardcode_libdir_separator_F77=:
14037 hardcode_direct_F77=yes
14039 # hardcode_minus_L: Not really in the search PATH,
14040 # but as the default location of the library.
14041 hardcode_minus_L_F77=yes
14042 export_dynamic_flag_spec_F77='${wl}-E'
14046 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14047 case "$host_cpu" in
14049 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14052 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14056 case "$host_cpu" in
14058 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14061 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14065 if test "$with_gnu_ld" = no; then
14066 case "$host_cpu" in
14068 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14069 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14070 hardcode_libdir_separator_F77=:
14071 hardcode_direct_F77=no
14072 hardcode_shlibpath_var_F77=no
14075 hardcode_libdir_flag_spec_F77='-L$libdir'
14076 hardcode_direct_F77=no
14077 hardcode_shlibpath_var_F77=no
14079 # hardcode_minus_L: Not really in the search PATH,
14080 # but as the default location of the library.
14081 hardcode_minus_L_F77=yes
14084 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14085 hardcode_libdir_separator_F77=:
14086 hardcode_direct_F77=yes
14087 export_dynamic_flag_spec_F77='${wl}-E'
14089 # hardcode_minus_L: Not really in the search PATH,
14090 # but as the default location of the library.
14091 hardcode_minus_L_F77=yes
14097 irix5* | irix6* | nonstopux*)
14098 if test "$GCC" = yes; then
14099 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'
14101 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'
14102 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14104 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14105 hardcode_libdir_separator_F77=:
14106 link_all_deplibs_F77=yes
14109 netbsd* | knetbsd*-gnu)
14110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14111 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14113 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14115 hardcode_libdir_flag_spec_F77='-R$libdir'
14116 hardcode_direct_F77=yes
14117 hardcode_shlibpath_var_F77=no
14121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14122 hardcode_direct_F77=yes
14123 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14124 hardcode_libdir_separator_F77=:
14125 hardcode_shlibpath_var_F77=no
14129 hardcode_direct_F77=yes
14130 hardcode_shlibpath_var_F77=no
14131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14132 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14133 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14134 export_dynamic_flag_spec_F77='${wl}-E'
14137 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14138 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14139 hardcode_libdir_flag_spec_F77='-R$libdir'
14142 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14143 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14150 hardcode_libdir_flag_spec_F77='-L$libdir'
14151 hardcode_minus_L_F77=yes
14152 allow_undefined_flag_F77=unsupported
14153 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'
14154 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14158 if test "$GCC" = yes; then
14159 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14160 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'
14162 allow_undefined_flag_F77=' -expect_unresolved \*'
14163 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'
14165 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14166 hardcode_libdir_separator_F77=:
14169 osf4* | osf5*) # as osf3* with the addition of -msym flag
14170 if test "$GCC" = yes; then
14171 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14172 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'
14173 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14175 allow_undefined_flag_F77=' -expect_unresolved \*'
14176 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'
14177 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~
14178 $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'
14180 # Both c and cxx compiler support -rpath directly
14181 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14183 hardcode_libdir_separator_F77=:
14187 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14188 hardcode_shlibpath_var_F77=no
14189 export_dynamic_flag_spec_F77='${wl}-Bexport'
14190 runpath_var=LD_RUN_PATH
14191 hardcode_runpath_var=yes
14195 no_undefined_flag_F77=' -z text'
14196 if test "$GCC" = yes; then
14197 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14198 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14199 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14201 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14202 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14203 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14205 hardcode_libdir_flag_spec_F77='-R$libdir'
14206 hardcode_shlibpath_var_F77=no
14208 solaris2.[0-5] | solaris2.[0-5].*) ;;
14209 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14210 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14212 link_all_deplibs_F77=yes
14216 if test "x$host_vendor" = xsequent; then
14217 # Use $CC to link under sequent, because it throws in some extra .o
14218 # files that make .init and .fini sections work.
14219 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14221 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14223 hardcode_libdir_flag_spec_F77='-L$libdir'
14224 hardcode_direct_F77=yes
14225 hardcode_minus_L_F77=yes
14226 hardcode_shlibpath_var_F77=no
14230 case $host_vendor in
14232 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14233 hardcode_direct_F77=yes # is this really true???
14236 ## LD is ld it makes a PLAMLIB
14237 ## CC just makes a GrossModule.
14238 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14239 reload_cmds_F77='$CC -r -o $output$reload_objs'
14240 hardcode_direct_F77=no
14243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14247 runpath_var='LD_RUN_PATH'
14248 hardcode_shlibpath_var_F77=no
14252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14253 hardcode_shlibpath_var_F77=no
14254 export_dynamic_flag_spec_F77='-Bexport'
14258 if test -d /usr/nec; then
14259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260 hardcode_shlibpath_var_F77=no
14261 runpath_var=LD_RUN_PATH
14262 hardcode_runpath_var=yes
14268 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14269 hardcode_direct_F77=yes
14270 hardcode_minus_L_F77=no
14271 hardcode_shlibpath_var_F77=no
14272 hardcode_runpath_var=yes
14273 runpath_var=LD_RUN_PATH
14276 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14277 no_undefined_flag_F77='${wl}-z ${wl}text'
14278 if test "$GCC" = yes; then
14279 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14281 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14283 runpath_var='LD_RUN_PATH'
14284 hardcode_shlibpath_var_F77=no
14288 no_undefined_flag_F77=' -z text'
14289 # $CC -shared without GNU ld will not create a library from C++
14290 # object files and a static libstdc++, better avoid it by now
14291 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14293 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14294 hardcode_libdir_flag_spec_F77=
14295 hardcode_shlibpath_var_F77=no
14296 runpath_var='LD_RUN_PATH'
14300 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_libdir_flag_spec_F77='-L$libdir'
14302 hardcode_shlibpath_var_F77=no
14311 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14312 echo "${ECHO_T}$ld_shlibs_F77" >&6
14313 test "$ld_shlibs_F77" = no && can_build_shared=no
14315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14316 if test "$GCC" = yes; then
14317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14321 # Do we need to explicitly link libc?
14323 case "x$archive_cmds_need_lc_F77" in
14325 # Assume -lc should be added
14326 archive_cmds_need_lc_F77=yes
14328 if test "$enable_shared" = yes && test "$GCC" = yes; then
14329 case $archive_cmds_F77 in
14331 # FIXME: we may have to deal with multi-command sequences.
14334 # Test whether the compiler implicitly links with -lc since on some
14335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14336 # to ld, don't add -lc before -lgcc.
14337 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } 2>conftest.err; then
14349 libobjs=conftest.$ac_objext
14351 wl=$lt_prog_compiler_wl_F77
14357 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14358 allow_undefined_flag_F77=
14359 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14360 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }
14365 archive_cmds_need_lc_F77=no
14367 archive_cmds_need_lc_F77=yes
14369 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14371 cat conftest.err 1>&5
14374 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14375 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14382 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14383 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14384 library_names_spec=
14385 libname_spec='lib$name'
14389 postuninstall_cmds=
14393 shlibpath_overrides_runpath=unknown
14395 dynamic_linker="$host_os ld.so"
14396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14397 if test "$GCC" = yes; then
14398 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14399 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14400 # if the path contains ";" then we assume it to be the separator
14401 # otherwise default to the standard path separator (i.e. ":") - it is
14402 # assumed that no part of a normal pathname contains ";" but that should
14403 # okay in the real world where ";" in dirpaths is itself problematic.
14404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14409 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14411 need_lib_prefix=unknown
14412 hardcode_into_libs=no
14414 # when you set need_version to no, make sure it does not cause -set_version
14415 # flags to be left without arguments
14416 need_version=unknown
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14422 shlibpath_var=LIBPATH
14424 # AIX 3 has no versioning support, so we append a major version to the name.
14425 soname_spec='${libname}${release}${shared_ext}$major'
14432 hardcode_into_libs=yes
14433 if test "$host_cpu" = ia64; then
14434 # AIX 5 supports IA64
14435 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14436 shlibpath_var=LD_LIBRARY_PATH
14438 # With GCC up to 2.95.x, collect2 would create an import file
14439 # for dependence libraries. The import file would start with
14440 # the line `#! .'. This would cause the generated library to
14441 # depend on `.', always an invalid library. This was fixed in
14442 # development snapshots of GCC prior to 3.0.
14444 aix4 | aix4.[01] | aix4.[01].*)
14445 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14447 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14450 can_build_shared=no
14454 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14455 # soname into executable. Probably we can add versioning support to
14456 # collect2, so additional links can be useful in future.
14457 if test "$aix_use_runtimelinking" = yes; then
14458 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14459 # instead of lib<name>.a to let people know that these are not
14460 # typical AIX shared libraries.
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 # We preserve .a as extension for shared libraries through AIX4.2
14464 # and later when we are not doing run time linking.
14465 library_names_spec='${libname}${release}.a $libname.a'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14468 shlibpath_var=LIBPATH
14473 library_names_spec='$libname.ixlibrary $libname.a'
14474 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14475 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'
14479 library_names_spec='${libname}${shared_ext}'
14480 dynamic_linker="$host_os ld.so"
14481 shlibpath_var=LIBRARY_PATH
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14490 shlibpath_var=LD_LIBRARY_PATH
14491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14493 # the default ld.so.conf also contains /usr/contrib/lib and
14494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14495 # libtool to hard-code these into programs
14498 cygwin* | mingw* | pw32*)
14499 version_type=windows
14504 case $GCC,$host_os in
14505 yes,cygwin* | yes,mingw* | yes,pw32*)
14506 library_names_spec='$libname.dll.a'
14507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14508 postinstall_cmds='base_file=`basename \${file}`~
14509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14510 dldir=$destdir/`dirname \$dlpath`~
14511 test -d \$dldir || mkdir -p \$dldir~
14512 $install_prog $dir/$dlname \$dldir/$dlname'
14513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14514 dlpath=$dir/\$dldll~
14516 shlibpath_overrides_runpath=yes
14520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14525 # MinGW DLLs use traditional 'lib' prefix
14526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14529 # It is most probably a Windows format PATH printed by
14530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14531 # path with ; separators, and with drive letters. We can handle the
14532 # drive letters (cygwin fileutils understands them), so leave them,
14533 # especially as we might pass files found there to a mingw objdump,
14534 # which wouldn't understand a cygwinified path. Ahh.
14535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14541 # pw32 DLLs use 'pw' prefix rather than 'lib'
14542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14551 dynamic_linker='Win32 ld.exe'
14552 # FIXME: first we should search . and the directory the executable is in
14556 darwin* | rhapsody*)
14557 dynamic_linker="$host_os dyld"
14558 version_type=darwin
14561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14562 soname_spec='${libname}${release}${major}$shared_ext'
14563 shlibpath_overrides_runpath=yes
14564 shlibpath_var=DYLD_LIBRARY_PATH
14565 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14567 if test "$GCC" = yes; then
14568 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"`
14570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=no
14596 hardcode_into_libs=yes
14597 dynamic_linker='GNU ld.so'
14601 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14602 version_type=freebsd-$objformat
14603 case $version_type in
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14614 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=yes
14619 freebsd3.01* | freebsdelf3.01*)
14620 shlibpath_overrides_runpath=yes
14621 hardcode_into_libs=yes
14624 shlibpath_overrides_runpath=no
14625 hardcode_into_libs=yes
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 hardcode_into_libs=yes
14640 hpux9* | hpux10* | hpux11*)
14641 # Give a soname corresponding to the major version so that dld.sl refuses to
14642 # link against other versions.
14646 case "$host_cpu" in
14649 hardcode_into_libs=yes
14650 dynamic_linker="$host_os dld.so"
14651 shlibpath_var=LD_LIBRARY_PATH
14652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 if test "X$HPUX_IA64_MODE" = X32; then
14656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14664 hardcode_into_libs=yes
14665 dynamic_linker="$host_os dld.sl"
14666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14675 dynamic_linker="$host_os dld.sl"
14676 shlibpath_var=SHLIB_PATH
14677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679 soname_spec='${libname}${release}${shared_ext}$major'
14682 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14683 postinstall_cmds='chmod 555 $lib'
14686 irix5* | irix6* | nonstopux*)
14688 nonstopux*) version_type=nonstopux ;;
14690 if test "$lt_cv_prog_gnu_ld" = yes; then
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14701 irix5* | nonstopux*)
14702 libsuff= shlibsuff=
14705 case $LD in # libtool.m4 will add one of these switches to LD
14706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14707 libsuff= shlibsuff= libmagic=32-bit;;
14708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14709 libsuff=32 shlibsuff=N32 libmagic=N32;;
14710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14711 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14712 *) libsuff= shlibsuff= libmagic=never-match;;
14716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14717 shlibpath_overrides_runpath=no
14718 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14719 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14720 hardcode_into_libs=yes
14723 # No shared lib support for Linux oldld, aout, or coff.
14724 linux*oldld* | linux*aout* | linux*coff*)
14728 # This must be Linux ELF.
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=no
14738 # This implies no fast_install, which is unacceptable.
14739 # Some rework will be needed to allow for fast_install
14740 # before this can be enabled.
14741 hardcode_into_libs=yes
14743 # Append ld.so.conf contents to the search path
14744 if test -f /etc/ld.so.conf; then
14745 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14749 # We used to test for /lib/ld.so.1 and disable shared libraries on
14750 # powerpc, because MkLinux only supported shared libraries with the
14751 # GNU dynamic linker. Since this was broken with cross compilers,
14752 # most powerpc-linux boxes support dynamic linking these days and
14753 # people can always --disable-shared, the test was removed, and we
14754 # assume the GNU/Linux dynamic linker is in use.
14755 dynamic_linker='GNU/Linux ld.so'
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 shlibpath_overrides_runpath=no
14766 hardcode_into_libs=yes
14767 dynamic_linker='GNU ld.so'
14774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14777 dynamic_linker='NetBSD (a.out) ld.so'
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 dynamic_linker='NetBSD ld.elf_so'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=yes
14785 hardcode_into_libs=yes
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath=yes
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800 soname_spec='${libname}${release}${shared_ext}$major'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 shlibpath_overrides_runpath=yes
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14811 shlibpath_var=LD_LIBRARY_PATH
14812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14814 openbsd2.[89] | openbsd2.[89].*)
14815 shlibpath_overrides_runpath=no
14818 shlibpath_overrides_runpath=yes
14822 shlibpath_overrides_runpath=yes
14827 libname_spec='$name'
14830 library_names_spec='$libname${shared_ext} $libname.a'
14831 dynamic_linker='OS/2 ld.exe'
14832 shlibpath_var=LIBPATH
14835 osf3* | osf4* | osf5*)
14839 soname_spec='${libname}${release}${shared_ext}$major'
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 shlibpath_var=LD_LIBRARY_PATH
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=yes
14861 hardcode_into_libs=yes
14862 # ldd complains unless libraries are executable
14863 postinstall_cmds='chmod +x $lib'
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=yes
14872 if test "$with_gnu_ld" = yes; then
14878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 case $host_vendor in
14885 shlibpath_overrides_runpath=no
14887 export_dynamic_flag_spec='${wl}-Blargedynsym'
14888 runpath_var=LD_RUN_PATH
14896 shlibpath_overrides_runpath=no
14897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14903 if test -d /usr/nec ;then
14905 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14906 soname_spec='$libname${shared_ext}.$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 shlibpath_var=LD_LIBRARY_PATH
14922 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14923 echo "${ECHO_T}$dynamic_linker" >&6
14924 test "$dynamic_linker" = no && can_build_shared=no
14926 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14927 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14928 hardcode_action_F77=
14929 if test -n "$hardcode_libdir_flag_spec_F77" || \
14930 test -n "$runpath_var F77" || \
14931 test "X$hardcode_automatic_F77"="Xyes" ; then
14933 # We can hardcode non-existant directories.
14934 if test "$hardcode_direct_F77" != no &&
14935 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14936 # have to relink, otherwise we might link with an installed library
14937 # when we should be linking with a yet-to-be-installed one
14938 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14939 test "$hardcode_minus_L_F77" != no; then
14940 # Linking always hardcodes the temporary library directory.
14941 hardcode_action_F77=relink
14943 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14944 hardcode_action_F77=immediate
14947 # We cannot hardcode anything, or else we can only hardcode existing
14949 hardcode_action_F77=unsupported
14951 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14952 echo "${ECHO_T}$hardcode_action_F77" >&6
14954 if test "$hardcode_action_F77" = relink; then
14955 # Fast installation is not supported
14956 enable_fast_install=no
14957 elif test "$shlibpath_overrides_runpath" = yes ||
14958 test "$enable_shared" = no; then
14959 # Fast installation is not necessary
14960 enable_fast_install=needless
14965 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14966 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14967 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14969 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14970 echo "$as_me:$LINENO: result: yes" >&5
14971 echo "${ECHO_T}yes" >&6
14973 # FIXME - insert some real tests, host_os isn't really good enough
14976 if test -n "$STRIP" ; then
14977 striplib="$STRIP -x"
14978 echo "$as_me:$LINENO: result: yes" >&5
14979 echo "${ECHO_T}yes" >&6
14981 echo "$as_me:$LINENO: result: no" >&5
14982 echo "${ECHO_T}no" >&6
14986 echo "$as_me:$LINENO: result: no" >&5
14987 echo "${ECHO_T}no" >&6
14994 # The else clause should only fire when bootstrapping the
14995 # libtool distribution, otherwise you forgot to ship ltmain.sh
14996 # with your package, and you will get complaints that there are
14997 # no rules to generate ltmain.sh.
14998 if test -f "$ltmain"; then
14999 # See if we are running on zsh, and set the options which allow our commands through
15000 # without removal of \ escapes.
15001 if test -n "${ZSH_VERSION+set}" ; then
15002 setopt NO_GLOB_SUBST
15004 # Now quote all the things that may contain metacharacters while being
15005 # careful not to overquote the AC_SUBSTed values. We take copies of the
15006 # variables and quote the copies for generation of the libtool script.
15007 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15009 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15010 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15011 deplibs_check_method reload_flag reload_cmds need_locks \
15012 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15013 lt_cv_sys_global_symbol_to_c_name_address \
15014 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15015 old_postinstall_cmds old_postuninstall_cmds \
15019 lt_prog_compiler_wl_F77 \
15020 lt_prog_compiler_pic_F77 \
15021 lt_prog_compiler_static_F77 \
15022 lt_prog_compiler_no_builtin_flag_F77 \
15023 export_dynamic_flag_spec_F77 \
15024 thread_safe_flag_spec_F77 \
15025 whole_archive_flag_spec_F77 \
15026 enable_shared_with_static_runtimes_F77 \
15027 old_archive_cmds_F77 \
15028 old_archive_from_new_cmds_F77 \
15029 predep_objects_F77 \
15030 postdep_objects_F77 \
15033 compiler_lib_search_path_F77 \
15035 archive_expsym_cmds_F77 \
15036 postinstall_cmds_F77 \
15037 postuninstall_cmds_F77 \
15038 old_archive_from_expsyms_cmds_F77 \
15039 allow_undefined_flag_F77 \
15040 no_undefined_flag_F77 \
15041 export_symbols_cmds_F77 \
15042 hardcode_libdir_flag_spec_F77 \
15043 hardcode_libdir_flag_spec_ld_F77 \
15044 hardcode_libdir_separator_F77 \
15045 hardcode_automatic_F77 \
15047 module_expsym_cmds_F77 \
15048 lt_cv_prog_compiler_c_o_F77 \
15049 exclude_expsyms_F77 \
15050 include_expsyms_F77; do
15053 old_archive_cmds_F77 | \
15054 old_archive_from_new_cmds_F77 | \
15055 archive_cmds_F77 | \
15056 archive_expsym_cmds_F77 | \
15057 module_cmds_F77 | \
15058 module_expsym_cmds_F77 | \
15059 old_archive_from_expsyms_cmds_F77 | \
15060 export_symbols_cmds_F77 | \
15061 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15062 postinstall_cmds | postuninstall_cmds | \
15063 old_postinstall_cmds | old_postuninstall_cmds | \
15064 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15065 # Double-quote double-evaled strings.
15066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15075 *'\$0 --fallback-echo"')
15076 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15082 cat <<__EOF__ >> "$cfgfile"
15083 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15085 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15087 # Shell to use when invoking shell scripts.
15090 # Whether or not to build shared libraries.
15091 build_libtool_libs=$enable_shared
15093 # Whether or not to build static libraries.
15094 build_old_libs=$enable_static
15096 # Whether or not to add -lc for building shared libraries.
15097 build_libtool_need_lc=$archive_cmds_need_lc_F77
15099 # Whether or not to disallow shared libs when runtime libs are static
15100 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15102 # Whether or not to optimize for fast installation.
15103 fast_install=$enable_fast_install
15106 host_alias=$host_alias
15109 # An echo program that does not interpret backslashes.
15114 AR_FLAGS=$lt_AR_FLAGS
15119 # A language-specific compiler.
15120 CC=$lt_compiler_F77
15122 # Is the compiler the GNU C compiler?
15128 # The linker used to build libraries.
15131 # Whether we need hard or soft links.
15134 # A BSD-compatible nm program.
15137 # A symbol stripping program
15140 # Used to examine libraries when file_magic_cmd begins "file"
15141 MAGIC_CMD=$MAGIC_CMD
15143 # Used on cygwin: DLL creation program.
15146 # Used on cygwin: object dumper.
15149 # Used on cygwin: assembler.
15152 # The name of the directory that contains temporary libtool files.
15155 # How to create reloadable object files.
15156 reload_flag=$lt_reload_flag
15157 reload_cmds=$lt_reload_cmds
15159 # How to pass a linker flag through the compiler.
15160 wl=$lt_lt_prog_compiler_wl_F77
15162 # Object file suffix (normally "o").
15163 objext="$ac_objext"
15165 # Old archive suffix (normally "a").
15168 # Shared library suffix (normally ".so").
15169 shrext_cmds='$shrext_cmds'
15171 # Executable file suffix (normally "").
15174 # Additional compiler flags for building library objects.
15175 pic_flag=$lt_lt_prog_compiler_pic_F77
15178 # What is the maximum length of a command?
15179 max_cmd_len=$lt_cv_sys_max_cmd_len
15181 # Does compiler simultaneously support -c and -o options?
15182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15184 # Must we lock files when doing compilation ?
15185 need_locks=$lt_need_locks
15187 # Do we need the lib prefix for modules?
15188 need_lib_prefix=$need_lib_prefix
15190 # Do we need a version for libraries?
15191 need_version=$need_version
15193 # Whether dlopen is supported.
15194 dlopen_support=$enable_dlopen
15196 # Whether dlopen of programs is supported.
15197 dlopen_self=$enable_dlopen_self
15199 # Whether dlopen of statically linked programs is supported.
15200 dlopen_self_static=$enable_dlopen_self_static
15202 # Compiler flag to prevent dynamic linking.
15203 link_static_flag=$lt_lt_prog_compiler_static_F77
15205 # Compiler flag to turn off builtin functions.
15206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15208 # Compiler flag to allow reflexive dlopens.
15209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15211 # Compiler flag to generate shared objects directly from archives.
15212 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15214 # Compiler flag to generate thread-safe objects.
15215 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15217 # Library versioning type.
15218 version_type=$version_type
15220 # Format of library name prefix.
15221 libname_spec=$lt_libname_spec
15223 # List of archive names. First name is the real one, the rest are links.
15224 # The last name is the one that the linker finds with -lNAME.
15225 library_names_spec=$lt_library_names_spec
15227 # The coded name of the library, if different from the real name.
15228 soname_spec=$lt_soname_spec
15230 # Commands used to build and install an old-style archive.
15232 old_archive_cmds=$lt_old_archive_cmds_F77
15233 old_postinstall_cmds=$lt_old_postinstall_cmds
15234 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15236 # Create an old-style archive from a shared archive.
15237 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15239 # Create a temporary old-style archive to link instead of a shared archive.
15240 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15242 # Commands used to build and install a shared archive.
15243 archive_cmds=$lt_archive_cmds_F77
15244 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15245 postinstall_cmds=$lt_postinstall_cmds
15246 postuninstall_cmds=$lt_postuninstall_cmds
15248 # Commands used to build a loadable module (assumed same as above if empty)
15249 module_cmds=$lt_module_cmds_F77
15250 module_expsym_cmds=$lt_module_expsym_cmds_F77
15252 # Commands to strip libraries.
15253 old_striplib=$lt_old_striplib
15254 striplib=$lt_striplib
15256 # Dependencies to place before the objects being linked to create a
15258 predep_objects=$lt_predep_objects_F77
15260 # Dependencies to place after the objects being linked to create a
15262 postdep_objects=$lt_postdep_objects_F77
15264 # Dependencies to place before the objects being linked to create a
15266 predeps=$lt_predeps_F77
15268 # Dependencies to place after the objects being linked to create a
15270 postdeps=$lt_postdeps_F77
15272 # The library search path used internally by the compiler when linking
15273 # a shared library.
15274 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15276 # Method to check whether dependent libraries are shared objects.
15277 deplibs_check_method=$lt_deplibs_check_method
15279 # Command to use when deplibs_check_method == file_magic.
15280 file_magic_cmd=$lt_file_magic_cmd
15282 # Flag that allows shared libraries with undefined symbols to be built.
15283 allow_undefined_flag=$lt_allow_undefined_flag_F77
15285 # Flag that forces no undefined symbols.
15286 no_undefined_flag=$lt_no_undefined_flag_F77
15288 # Commands used to finish a libtool library installation in a directory.
15289 finish_cmds=$lt_finish_cmds
15291 # Same as above, but a single script fragment to be evaled but not shown.
15292 finish_eval=$lt_finish_eval
15294 # Take the output of nm and produce a listing of raw symbols and C names.
15295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15297 # Transform the output of nm in a proper C declaration
15298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15300 # Transform the output of nm in a C name address pair
15301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15303 # This is the shared library runtime path variable.
15304 runpath_var=$runpath_var
15306 # This is the shared library path variable.
15307 shlibpath_var=$shlibpath_var
15309 # Is shlibpath searched before the hard-coded library search path?
15310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15312 # How to hardcode a shared library path into an executable.
15313 hardcode_action=$hardcode_action_F77
15315 # Whether we should hardcode library paths into libraries.
15316 hardcode_into_libs=$hardcode_into_libs
15318 # Flag to hardcode \$libdir into a binary during linking.
15319 # This must work even if \$libdir does not exist.
15320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15322 # If ld is used when linking, flag to hardcode \$libdir into
15323 # a binary during linking. This must work even if \$libdir does
15325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15327 # Whether we need a single -rpath flag with a separated argument.
15328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15331 # resulting binary.
15332 hardcode_direct=$hardcode_direct_F77
15334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15335 # resulting binary.
15336 hardcode_minus_L=$hardcode_minus_L_F77
15338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15339 # the resulting binary.
15340 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15342 # Set to yes if building a shared library automatically hardcodes DIR into the library
15343 # and all subsequent libraries and executables linked against it.
15344 hardcode_automatic=$hardcode_automatic_F77
15346 # Variables whose values should be saved in libtool wrapper scripts and
15347 # restored at relink time.
15348 variables_saved_for_relink="$variables_saved_for_relink"
15350 # Whether libtool must link a program against all its dependency libraries.
15351 link_all_deplibs=$link_all_deplibs_F77
15353 # Compile-time system search path for libraries
15354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15356 # Run-time system search path for libraries
15357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15359 # Fix the shell variable \$srcfile for the compiler.
15360 fix_srcfile_path="$fix_srcfile_path_F77"
15362 # Set to yes if exported symbols are required.
15363 always_export_symbols=$always_export_symbols_F77
15365 # The commands to list exported symbols.
15366 export_symbols_cmds=$lt_export_symbols_cmds_F77
15368 # The commands to extract the exported symbol list from a shared archive.
15369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15371 # Symbols that should not be listed in the preloaded symbols.
15372 exclude_expsyms=$lt_exclude_expsyms_F77
15374 # Symbols that must always be exported.
15375 include_expsyms=$lt_include_expsyms_F77
15377 # ### END LIBTOOL TAG CONFIG: $tagname
15383 # If there is no Makefile yet, we rely on a make rule to execute
15384 # `config.status --recheck' to rerun these tests and create the
15385 # libtool script then.
15386 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15387 if test -f "$ltmain_in"; then
15388 test -f Makefile && make "$ltmain"
15394 ac_cpp='$CPP $CPPFLAGS'
15395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15407 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15411 # Source file extension for Java test sources.
15414 # Object file extension for compiled Java test sources.
15418 # Code to be used in simple compile tests
15419 lt_simple_compile_test_code="class foo {}\n"
15421 # Code to be used in simple link tests
15422 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15426 # If no C compiler was specified, use CC.
15429 # Allow CC to be a program name with arguments.
15433 # Allow CC to be a program name with arguments.
15439 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15440 archive_cmds_need_lc_GCJ=no
15443 lt_prog_compiler_no_builtin_flag_GCJ=
15445 if test "$GCC" = yes; then
15446 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15449 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15450 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15451 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 lt_cv_prog_compiler_rtti_exceptions=no
15455 ac_outfile=conftest.$ac_objext
15456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15457 lt_compiler_flag="-fno-rtti -fno-exceptions"
15458 # Insert the option either (1) after the last *FLAGS variable, or
15459 # (2) before a word containing "conftest.", or (3) at the end.
15460 # Note that $ac_compile itself does not contain backslashes and begins
15461 # with a dollar sign (not a hyphen), so the echo should work correctly.
15462 # The option is referenced via a variable to avoid confusing sed.
15463 lt_compile=`echo "$ac_compile" | $SED \
15464 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15466 -e 's:$: $lt_compiler_flag:'`
15467 (eval echo "\"\$as_me:15467: $lt_compile\"" >&5)
15468 (eval "$lt_compile" 2>conftest.err)
15470 cat conftest.err >&5
15471 echo "$as_me:15471: \$? = $ac_status" >&5
15472 if (exit $ac_status) && test -s "$ac_outfile"; then
15473 # The compiler can only warn and ignore the option if not recognized
15474 # So say no if there are warnings
15475 if test ! -s conftest.err; then
15476 lt_cv_prog_compiler_rtti_exceptions=yes
15482 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15483 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15486 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15493 lt_prog_compiler_wl_GCJ=
15494 lt_prog_compiler_pic_GCJ=
15495 lt_prog_compiler_static_GCJ=
15497 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15500 if test "$GCC" = yes; then
15501 lt_prog_compiler_wl_GCJ='-Wl,'
15502 lt_prog_compiler_static_GCJ='-static'
15506 # All AIX code is PIC.
15507 if test "$host_cpu" = ia64; then
15508 # AIX 5 now supports IA64 processor
15509 lt_prog_compiler_static_GCJ='-Bstatic'
15514 # FIXME: we need at least 68020 code to build shared libraries, but
15515 # adding the `-m68020' flag to GCC prevents building anything better,
15517 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15521 # PIC is the default for these OSes.
15524 mingw* | pw32* | os2*)
15525 # This hack is so that the source file can tell whether it is being
15526 # built for inclusion in a dll (and should export symbols for example).
15527 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15530 darwin* | rhapsody*)
15531 # PIC is the default on this platform
15532 # Common symbols not allowed in MH_DYLIB files
15533 lt_prog_compiler_pic_GCJ='-fno-common'
15537 # Just because we use GCC doesn't mean we suddenly get shared libraries
15538 # on systems that don't support them.
15539 lt_prog_compiler_can_build_shared_GCJ=no
15544 if test -d /usr/nec; then
15545 lt_prog_compiler_pic_GCJ=-Kconform_pic
15550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15551 # not for PA HP-UX.
15552 case "$host_cpu" in
15557 lt_prog_compiler_pic_GCJ='-fPIC'
15563 lt_prog_compiler_pic_GCJ='-fPIC'
15567 # PORTME Check for flag to pass linker flags through the system compiler.
15570 lt_prog_compiler_wl_GCJ='-Wl,'
15571 if test "$host_cpu" = ia64; then
15572 # AIX 5 now supports IA64 processor
15573 lt_prog_compiler_static_GCJ='-Bstatic'
15575 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15579 mingw* | pw32* | os2*)
15580 # This hack is so that the source file can tell whether it is being
15581 # built for inclusion in a dll (and should export symbols for example).
15582 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15585 hpux9* | hpux10* | hpux11*)
15586 lt_prog_compiler_wl_GCJ='-Wl,'
15587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15588 # not for PA HP-UX.
15589 case "$host_cpu" in
15594 lt_prog_compiler_pic_GCJ='+Z'
15597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15598 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15601 irix5* | irix6* | nonstopux*)
15602 lt_prog_compiler_wl_GCJ='-Wl,'
15603 # PIC (with -KPIC) is the default.
15604 lt_prog_compiler_static_GCJ='-non_shared'
15608 lt_prog_compiler_pic_GCJ='-KPIC'
15609 lt_prog_compiler_static_GCJ='-Bstatic'
15615 lt_prog_compiler_wl_GCJ='-Wl,'
15616 lt_prog_compiler_pic_GCJ='-KPIC'
15617 lt_prog_compiler_static_GCJ='-static'
15620 lt_prog_compiler_wl_GCJ='-Wl,'
15621 # All Alpha code is PIC.
15622 lt_prog_compiler_static_GCJ='-non_shared'
15627 osf3* | osf4* | osf5*)
15628 lt_prog_compiler_wl_GCJ='-Wl,'
15629 # All OSF/1 code is PIC.
15630 lt_prog_compiler_static_GCJ='-non_shared'
15634 lt_prog_compiler_pic_GCJ='-Kpic'
15635 lt_prog_compiler_static_GCJ='-dn'
15639 lt_prog_compiler_wl_GCJ='-Wl,'
15640 lt_prog_compiler_pic_GCJ='-KPIC'
15641 lt_prog_compiler_static_GCJ='-Bstatic'
15645 lt_prog_compiler_wl_GCJ='-Qoption ld '
15646 lt_prog_compiler_pic_GCJ='-PIC'
15647 lt_prog_compiler_static_GCJ='-Bstatic'
15650 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15651 lt_prog_compiler_wl_GCJ='-Wl,'
15652 lt_prog_compiler_pic_GCJ='-KPIC'
15653 lt_prog_compiler_static_GCJ='-Bstatic'
15657 if test -d /usr/nec ;then
15658 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15659 lt_prog_compiler_static_GCJ='-Bstatic'
15664 lt_prog_compiler_pic_GCJ='-pic'
15665 lt_prog_compiler_static_GCJ='-Bstatic'
15669 lt_prog_compiler_can_build_shared_GCJ=no
15674 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15675 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15678 # Check to make sure the PIC flag actually works.
15680 if test -n "$lt_prog_compiler_pic_GCJ"; then
15682 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15683 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15684 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 lt_prog_compiler_pic_works_GCJ=no
15688 ac_outfile=conftest.$ac_objext
15689 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15690 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15691 # Insert the option either (1) after the last *FLAGS variable, or
15692 # (2) before a word containing "conftest.", or (3) at the end.
15693 # Note that $ac_compile itself does not contain backslashes and begins
15694 # with a dollar sign (not a hyphen), so the echo should work correctly.
15695 # The option is referenced via a variable to avoid confusing sed.
15696 lt_compile=`echo "$ac_compile" | $SED \
15697 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15699 -e 's:$: $lt_compiler_flag:'`
15700 (eval echo "\"\$as_me:15700: $lt_compile\"" >&5)
15701 (eval "$lt_compile" 2>conftest.err)
15703 cat conftest.err >&5
15704 echo "$as_me:15704: \$? = $ac_status" >&5
15705 if (exit $ac_status) && test -s "$ac_outfile"; then
15706 # The compiler can only warn and ignore the option if not recognized
15707 # So say no if there are warnings
15708 if test ! -s conftest.err; then
15709 lt_prog_compiler_pic_works_GCJ=yes
15715 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15716 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15718 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15719 case $lt_prog_compiler_pic_GCJ in
15721 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15724 lt_prog_compiler_pic_GCJ=
15725 lt_prog_compiler_can_build_shared_GCJ=no
15730 # For platforms which do not support PIC, -DPIC is meaningless:
15732 lt_prog_compiler_pic_GCJ=
15735 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15739 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15741 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 lt_cv_prog_compiler_c_o_GCJ=no
15745 $rm -r conftest 2>/dev/null
15749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751 lt_compiler_flag="-o out/conftest2.$ac_objext"
15752 # Insert the option either (1) after the last *FLAGS variable, or
15753 # (2) before a word containing "conftest.", or (3) at the end.
15754 # Note that $ac_compile itself does not contain backslashes and begins
15755 # with a dollar sign (not a hyphen), so the echo should work correctly.
15756 lt_compile=`echo "$ac_compile" | $SED \
15757 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15759 -e 's:$: $lt_compiler_flag:'`
15760 (eval echo "\"\$as_me:15760: $lt_compile\"" >&5)
15761 (eval "$lt_compile" 2>out/conftest.err)
15763 cat out/conftest.err >&5
15764 echo "$as_me:15764: \$? = $ac_status" >&5
15765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15767 # The compiler can only warn and ignore the option if not recognized
15768 # So say no if there are warnings
15769 if test ! -s out/conftest.err; then
15770 lt_cv_prog_compiler_c_o_GCJ=yes
15775 # SGI C++ compiler will create directory out/ii_files/ for
15776 # template instantiation
15777 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15778 $rm out/* && rmdir out
15784 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15785 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15788 hard_links="nottested"
15789 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15790 # do not overwrite the value of need_locks provided by the user
15791 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15792 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15797 ln conftest.a conftest.b 2>&5 || hard_links=no
15798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15799 echo "$as_me:$LINENO: result: $hard_links" >&5
15800 echo "${ECHO_T}$hard_links" >&6
15801 if test "$hard_links" = no; then
15802 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15803 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15810 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15811 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15814 allow_undefined_flag_GCJ=
15815 enable_shared_with_static_runtimes_GCJ=no
15817 archive_expsym_cmds_GCJ=
15818 old_archive_From_new_cmds_GCJ=
15819 old_archive_from_expsyms_cmds_GCJ=
15820 export_dynamic_flag_spec_GCJ=
15821 whole_archive_flag_spec_GCJ=
15822 thread_safe_flag_spec_GCJ=
15823 hardcode_libdir_flag_spec_GCJ=
15824 hardcode_libdir_flag_spec_ld_GCJ=
15825 hardcode_libdir_separator_GCJ=
15826 hardcode_direct_GCJ=no
15827 hardcode_minus_L_GCJ=no
15828 hardcode_shlibpath_var_GCJ=unsupported
15829 link_all_deplibs_GCJ=unknown
15830 hardcode_automatic_GCJ=no
15832 module_expsym_cmds_GCJ=
15833 always_export_symbols_GCJ=no
15834 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15835 # include_expsyms should be a list of space-separated symbols to be *always*
15836 # included in the symbol list
15837 include_expsyms_GCJ=
15838 # exclude_expsyms can be an extended regexp of symbols to exclude
15839 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15840 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15841 # as well as any symbol that contains `d'.
15842 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15843 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15844 # platforms (ab)use it in PIC code, but their linkers get confused if
15845 # the symbol is explicitly referenced. Since portable code cannot
15846 # rely on this symbol name, it's probably fine to never include it in
15847 # preloaded symbol tables.
15848 extract_expsyms_cmds=
15851 cygwin* | mingw* | pw32*)
15852 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15853 # When not using gcc, we currently assume that we are using
15854 # Microsoft Visual C++.
15855 if test "$GCC" != yes; then
15865 if test "$with_gnu_ld" = yes; then
15866 # If archive_cmds runs LD, not CC, wlarc should be empty
15869 # See if GNU ld supports shared libraries.
15871 aix3* | aix4* | aix5*)
15872 # On AIX/PPC, the GNU linker is very broken
15873 if test "$host_cpu" != ia64; then
15877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15878 *** to be unable to reliably create shared libraries on AIX.
15879 *** Therefore, libtool is disabling shared libraries support. If you
15880 *** really care for shared libraries, you may want to modify your PATH
15881 *** so that a non-GNU linker is found, and then restart.
15888 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)'
15889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15890 hardcode_minus_L_GCJ=yes
15892 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15893 # that the semantics of dynamic libraries on AmigaOS, at least up
15894 # to version 4, is to share data among multiple programs linked
15895 # with the same dynamic library. Since this doesn't match the
15896 # behavior of shared libraries on other platforms, we can't use
15902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15903 allow_undefined_flag_GCJ=unsupported
15904 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15905 # support --undefined. This deserves some investigation. FIXME
15906 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15912 cygwin* | mingw* | pw32*)
15913 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15914 # as there is no search path for DLLs.
15915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15916 allow_undefined_flag_GCJ=unsupported
15917 always_export_symbols_GCJ=no
15918 enable_shared_with_static_runtimes_GCJ=yes
15919 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15921 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15922 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15923 # If the export-symbols file already is a .def file (1st line
15924 # is EXPORTS), use it as is; otherwise, prepend...
15925 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15926 cp $export_symbols $output_objdir/$soname.def;
15928 echo EXPORTS > $output_objdir/$soname.def;
15929 cat $export_symbols >> $output_objdir/$soname.def;
15931 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15937 netbsd* | knetbsd*-gnu)
15938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15939 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15942 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15943 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15948 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15952 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15953 *** create shared libraries on Solaris systems. Therefore, libtool
15954 *** is disabling shared libraries support. We urge you to upgrade GNU
15955 *** binutils to release 2.9.1 or newer. Another option is to modify
15956 *** your PATH or compiler configuration so that the native linker is
15957 *** used, and then restart.
15960 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15969 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15971 hardcode_direct_GCJ=yes
15972 hardcode_shlibpath_var_GCJ=no
15976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15977 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15978 archive_cmds_GCJ="$tmp_archive_cmds"
15979 supports_anon_versioning=no
15980 case `$LD -v 2>/dev/null` in
15981 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15982 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15983 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15984 *\ 2.11.*) ;; # other 2.11 versions
15985 *) supports_anon_versioning=yes ;;
15987 if test $supports_anon_versioning = yes; then
15988 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15990 $echo "local: *; };" >> $output_objdir/$libname.ver~
15991 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15993 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15995 link_all_deplibs_GCJ=no
16002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16004 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16011 if test "$ld_shlibs_GCJ" = yes; then
16012 runpath_var=LD_RUN_PATH
16013 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16014 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16015 # ancient GNU ld didn't support --whole-archive et. al.
16016 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16017 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16019 whole_archive_flag_spec_GCJ=
16023 # PORTME fill in a description of your system's linker (not GNU ld)
16026 allow_undefined_flag_GCJ=unsupported
16027 always_export_symbols_GCJ=yes
16028 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'
16029 # Note: this linker hardcodes the directories in LIBPATH if there
16030 # are no directories specified by -L.
16031 hardcode_minus_L_GCJ=yes
16032 if test "$GCC" = yes && test -z "$link_static_flag"; then
16033 # Neither direct hardcoding nor static linking is supported with a
16035 hardcode_direct_GCJ=unsupported
16040 if test "$host_cpu" = ia64; then
16041 # On IA64, the linker does run time linking by default, so we don't
16042 # have to do anything special.
16043 aix_use_runtimelinking=no
16044 exp_sym_flag='-Bexport'
16047 # If we're using GNU nm, then we don't want the "-C" option.
16048 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16049 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16050 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'
16052 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'
16054 aix_use_runtimelinking=no
16056 # Test if we are trying to use run time linking or normal
16057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16058 # need to do runtime linking.
16059 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16060 for ld_flag in $LDFLAGS; do
16061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16062 aix_use_runtimelinking=yes
16068 exp_sym_flag='-bexport'
16069 no_entry_flag='-bnoentry'
16072 # When large executables or shared objects are built, AIX ld can
16073 # have problems creating the table of contents. If linking a library
16074 # or program results in "error TOC overflow" add -mminimal-toc to
16075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16078 archive_cmds_GCJ=''
16079 hardcode_direct_GCJ=yes
16080 hardcode_libdir_separator_GCJ=':'
16081 link_all_deplibs_GCJ=yes
16083 if test "$GCC" = yes; then
16084 case $host_os in aix4.012|aix4.012.*)
16085 # We only want to do this on AIX 4.2 and lower, the check
16086 # below for broken collect2 doesn't work under 4.3+
16087 collect2name=`${CC} -print-prog-name=collect2`
16088 if test -f "$collect2name" && \
16089 strings "$collect2name" | grep resolve_lib_name >/dev/null
16091 # We have reworked collect2
16092 hardcode_direct_GCJ=yes
16094 # We have old collect2
16095 hardcode_direct_GCJ=unsupported
16096 # It fails to find uninstalled libraries when the uninstalled
16097 # path is not listed in the libpath. Setting hardcode_minus_L
16098 # to unsupported forces relinking
16099 hardcode_minus_L_GCJ=yes
16100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101 hardcode_libdir_separator_GCJ=
16104 shared_flag='-shared'
16107 if test "$host_cpu" = ia64; then
16108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16109 # chokes on -Wl,-G. The following line is correct:
16112 if test "$aix_use_runtimelinking" = yes; then
16113 shared_flag='${wl}-G'
16115 shared_flag='${wl}-bM:SRE'
16120 # It seems that -bexpall does not export symbols beginning with
16121 # underscore (_), so it is better to generate a list of symbols to export.
16122 always_export_symbols_GCJ=yes
16123 if test "$aix_use_runtimelinking" = yes; then
16124 # Warning - without using the other runtime loading flags (-brtl),
16125 # -berok will link without error, but may produce a broken library.
16126 allow_undefined_flag_GCJ='-berok'
16127 # Determine the default libpath from the value encoded in an empty executable.
16128 cat >conftest.$ac_ext <<_ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16143 rm -f conftest.$ac_objext conftest$ac_exeext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16145 (eval $ac_link) 2>conftest.er1
16147 grep -v '^ *+' conftest.er1 >conftest.err
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } &&
16152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
16158 { ac_try='test -s conftest$ac_exeext'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16167 # Check for a 64-bit object if we didn't find anything.
16168 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; }
16171 echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16175 rm -f conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16179 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16180 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"
16182 if test "$host_cpu" = ia64; then
16183 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16184 allow_undefined_flag_GCJ="-z nodefs"
16185 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"
16187 # Determine the default libpath from the value encoded in an empty executable.
16188 cat >conftest.$ac_ext <<_ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16203 rm -f conftest.$ac_objext conftest$ac_exeext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16205 (eval $ac_link) 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest$ac_exeext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16227 # Check for a 64-bit object if we didn't find anything.
16228 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; }
16231 echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16235 rm -f conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16239 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16240 # Warning - without using the other run time loading flags,
16241 # -berok will link without error, but may produce a broken library.
16242 no_undefined_flag_GCJ=' ${wl}-bernotok'
16243 allow_undefined_flag_GCJ=' ${wl}-berok'
16244 # -bexpall does not export symbols beginning with underscore (_)
16245 always_export_symbols_GCJ=yes
16246 # Exported symbols can be pulled into shared objects from archives
16247 whole_archive_flag_spec_GCJ=' '
16248 archive_cmds_need_lc_GCJ=yes
16249 # This is similar to how AIX traditionally builds it's shared libraries.
16250 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'
16256 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)'
16257 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16258 hardcode_minus_L_GCJ=yes
16259 # see comment about different semantics on the GNU ld section
16264 export_dynamic_flag_spec_GCJ=-rdynamic
16267 cygwin* | mingw* | pw32*)
16268 # When not using gcc, we currently assume that we are using
16269 # Microsoft Visual C++.
16270 # hardcode_libdir_flag_spec is actually meaningless, as there is
16271 # no search path for DLLs.
16272 hardcode_libdir_flag_spec_GCJ=' '
16273 allow_undefined_flag_GCJ=unsupported
16274 # Tell ltmain to make .lib files, not .a files.
16276 # Tell ltmain to make .dll files, not .so files.
16278 # FIXME: Setting linknames here is a bad hack.
16279 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16280 # The linker will automatically build a .lib file if we build a DLL.
16281 old_archive_From_new_cmds_GCJ='true'
16282 # FIXME: Should let the user specify the lib program.
16283 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16284 fix_srcfile_path='`cygpath -w "$srcfile"`'
16285 enable_shared_with_static_runtimes_GCJ=yes
16288 darwin* | rhapsody*)
16289 if test "$GXX" = yes ; then
16290 archive_cmds_need_lc_GCJ=no
16292 rhapsody* | darwin1.[012])
16293 allow_undefined_flag_GCJ='-undefined suppress'
16296 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16297 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16299 case ${MACOSX_DEPLOYMENT_TARGET} in
16301 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16304 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16310 lt_int_apple_cc_single_mod=no
16311 output_verbose_link_cmd='echo'
16312 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16313 lt_int_apple_cc_single_mod=yes
16315 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16316 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16318 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'
16320 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16321 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16322 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16323 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}'
16325 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}'
16327 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}'
16328 hardcode_direct_GCJ=no
16329 hardcode_automatic_GCJ=yes
16330 hardcode_shlibpath_var_GCJ=unsupported
16331 whole_archive_flag_spec_GCJ='-all_load $convenience'
16332 link_all_deplibs_GCJ=yes
16339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16340 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16341 hardcode_shlibpath_var_GCJ=no
16348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16349 # support. Future versions do this automatically, but an explicit c++rt0.o
16350 # does not break anything, and helps significantly (at the cost of a little
16353 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16354 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16355 hardcode_direct_GCJ=yes
16356 hardcode_shlibpath_var_GCJ=no
16359 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16361 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_direct_GCJ=yes
16363 hardcode_minus_L_GCJ=yes
16364 hardcode_shlibpath_var_GCJ=no
16367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16368 freebsd* | kfreebsd*-gnu)
16369 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16370 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16371 hardcode_direct_GCJ=yes
16372 hardcode_shlibpath_var_GCJ=no
16376 if test "$GCC" = yes; then
16377 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'
16379 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'
16381 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16382 hardcode_libdir_separator_GCJ=:
16383 hardcode_direct_GCJ=yes
16385 # hardcode_minus_L: Not really in the search PATH,
16386 # but as the default location of the library.
16387 hardcode_minus_L_GCJ=yes
16388 export_dynamic_flag_spec_GCJ='${wl}-E'
16392 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16393 case "$host_cpu" in
16395 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16398 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16402 case "$host_cpu" in
16404 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16407 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16411 if test "$with_gnu_ld" = no; then
16412 case "$host_cpu" in
16414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16415 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16416 hardcode_libdir_separator_GCJ=:
16417 hardcode_direct_GCJ=no
16418 hardcode_shlibpath_var_GCJ=no
16421 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16422 hardcode_direct_GCJ=no
16423 hardcode_shlibpath_var_GCJ=no
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L_GCJ=yes
16430 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16431 hardcode_libdir_separator_GCJ=:
16432 hardcode_direct_GCJ=yes
16433 export_dynamic_flag_spec_GCJ='${wl}-E'
16435 # hardcode_minus_L: Not really in the search PATH,
16436 # but as the default location of the library.
16437 hardcode_minus_L_GCJ=yes
16443 irix5* | irix6* | nonstopux*)
16444 if test "$GCC" = yes; then
16445 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'
16447 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'
16448 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16451 hardcode_libdir_separator_GCJ=:
16452 link_all_deplibs_GCJ=yes
16455 netbsd* | knetbsd*-gnu)
16456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16457 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16459 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16461 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16462 hardcode_direct_GCJ=yes
16463 hardcode_shlibpath_var_GCJ=no
16467 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468 hardcode_direct_GCJ=yes
16469 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16470 hardcode_libdir_separator_GCJ=:
16471 hardcode_shlibpath_var_GCJ=no
16475 hardcode_direct_GCJ=yes
16476 hardcode_shlibpath_var_GCJ=no
16477 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16478 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16480 export_dynamic_flag_spec_GCJ='${wl}-E'
16483 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16484 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16485 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16488 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16496 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16497 hardcode_minus_L_GCJ=yes
16498 allow_undefined_flag_GCJ=unsupported
16499 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'
16500 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16504 if test "$GCC" = yes; then
16505 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16506 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'
16508 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16509 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'
16511 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16512 hardcode_libdir_separator_GCJ=:
16515 osf4* | osf5*) # as osf3* with the addition of -msym flag
16516 if test "$GCC" = yes; then
16517 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16518 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'
16519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16521 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16522 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'
16523 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~
16524 $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'
16526 # Both c and cxx compiler support -rpath directly
16527 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16529 hardcode_libdir_separator_GCJ=:
16533 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534 hardcode_shlibpath_var_GCJ=no
16535 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16536 runpath_var=LD_RUN_PATH
16537 hardcode_runpath_var=yes
16541 no_undefined_flag_GCJ=' -z text'
16542 if test "$GCC" = yes; then
16543 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16545 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16547 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16549 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16551 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16552 hardcode_shlibpath_var_GCJ=no
16554 solaris2.[0-5] | solaris2.[0-5].*) ;;
16555 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16556 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16558 link_all_deplibs_GCJ=yes
16562 if test "x$host_vendor" = xsequent; then
16563 # Use $CC to link under sequent, because it throws in some extra .o
16564 # files that make .init and .fini sections work.
16565 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16567 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16569 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16570 hardcode_direct_GCJ=yes
16571 hardcode_minus_L_GCJ=yes
16572 hardcode_shlibpath_var_GCJ=no
16576 case $host_vendor in
16578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579 hardcode_direct_GCJ=yes # is this really true???
16582 ## LD is ld it makes a PLAMLIB
16583 ## CC just makes a GrossModule.
16584 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16585 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16586 hardcode_direct_GCJ=no
16589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16593 runpath_var='LD_RUN_PATH'
16594 hardcode_shlibpath_var_GCJ=no
16598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 hardcode_shlibpath_var_GCJ=no
16600 export_dynamic_flag_spec_GCJ='-Bexport'
16604 if test -d /usr/nec; then
16605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_shlibpath_var_GCJ=no
16607 runpath_var=LD_RUN_PATH
16608 hardcode_runpath_var=yes
16614 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16615 hardcode_direct_GCJ=yes
16616 hardcode_minus_L_GCJ=no
16617 hardcode_shlibpath_var_GCJ=no
16618 hardcode_runpath_var=yes
16619 runpath_var=LD_RUN_PATH
16622 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16623 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16624 if test "$GCC" = yes; then
16625 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16627 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16629 runpath_var='LD_RUN_PATH'
16630 hardcode_shlibpath_var_GCJ=no
16634 no_undefined_flag_GCJ=' -z text'
16635 # $CC -shared without GNU ld will not create a library from C++
16636 # object files and a static libstdc++, better avoid it by now
16637 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16639 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16640 hardcode_libdir_flag_spec_GCJ=
16641 hardcode_shlibpath_var_GCJ=no
16642 runpath_var='LD_RUN_PATH'
16646 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16648 hardcode_shlibpath_var_GCJ=no
16657 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16658 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16659 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16662 if test "$GCC" = yes; then
16663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16667 # Do we need to explicitly link libc?
16669 case "x$archive_cmds_need_lc_GCJ" in
16671 # Assume -lc should be added
16672 archive_cmds_need_lc_GCJ=yes
16674 if test "$enable_shared" = yes && test "$GCC" = yes; then
16675 case $archive_cmds_GCJ in
16677 # FIXME: we may have to deal with multi-command sequences.
16680 # Test whether the compiler implicitly links with -lc since on some
16681 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16682 # to ld, don't add -lc before -lgcc.
16683 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16684 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16689 (eval $ac_compile) 2>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } 2>conftest.err; then
16695 libobjs=conftest.$ac_objext
16697 wl=$lt_prog_compiler_wl_GCJ
16703 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16704 allow_undefined_flag_GCJ=
16705 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16706 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }
16711 archive_cmds_need_lc_GCJ=no
16713 archive_cmds_need_lc_GCJ=yes
16715 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16717 cat conftest.err 1>&5
16720 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16721 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16728 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16729 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16730 library_names_spec=
16731 libname_spec='lib$name'
16735 postuninstall_cmds=
16739 shlibpath_overrides_runpath=unknown
16741 dynamic_linker="$host_os ld.so"
16742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16743 if test "$GCC" = yes; then
16744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16745 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16746 # if the path contains ";" then we assume it to be the separator
16747 # otherwise default to the standard path separator (i.e. ":") - it is
16748 # assumed that no part of a normal pathname contains ";" but that should
16749 # okay in the real world where ";" in dirpaths is itself problematic.
16750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16757 need_lib_prefix=unknown
16758 hardcode_into_libs=no
16760 # when you set need_version to no, make sure it does not cause -set_version
16761 # flags to be left without arguments
16762 need_version=unknown
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16768 shlibpath_var=LIBPATH
16770 # AIX 3 has no versioning support, so we append a major version to the name.
16771 soname_spec='${libname}${release}${shared_ext}$major'
16778 hardcode_into_libs=yes
16779 if test "$host_cpu" = ia64; then
16780 # AIX 5 supports IA64
16781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16782 shlibpath_var=LD_LIBRARY_PATH
16784 # With GCC up to 2.95.x, collect2 would create an import file
16785 # for dependence libraries. The import file would start with
16786 # the line `#! .'. This would cause the generated library to
16787 # depend on `.', always an invalid library. This was fixed in
16788 # development snapshots of GCC prior to 3.0.
16790 aix4 | aix4.[01] | aix4.[01].*)
16791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16793 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16796 can_build_shared=no
16800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16801 # soname into executable. Probably we can add versioning support to
16802 # collect2, so additional links can be useful in future.
16803 if test "$aix_use_runtimelinking" = yes; then
16804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16805 # instead of lib<name>.a to let people know that these are not
16806 # typical AIX shared libraries.
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809 # We preserve .a as extension for shared libraries through AIX4.2
16810 # and later when we are not doing run time linking.
16811 library_names_spec='${libname}${release}.a $libname.a'
16812 soname_spec='${libname}${release}${shared_ext}$major'
16814 shlibpath_var=LIBPATH
16819 library_names_spec='$libname.ixlibrary $libname.a'
16820 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16821 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'
16825 library_names_spec='${libname}${shared_ext}'
16826 dynamic_linker="$host_os ld.so"
16827 shlibpath_var=LIBRARY_PATH
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834 soname_spec='${libname}${release}${shared_ext}$major'
16835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16839 # the default ld.so.conf also contains /usr/contrib/lib and
16840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16841 # libtool to hard-code these into programs
16844 cygwin* | mingw* | pw32*)
16845 version_type=windows
16850 case $GCC,$host_os in
16851 yes,cygwin* | yes,mingw* | yes,pw32*)
16852 library_names_spec='$libname.dll.a'
16853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16854 postinstall_cmds='base_file=`basename \${file}`~
16855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16856 dldir=$destdir/`dirname \$dlpath`~
16857 test -d \$dldir || mkdir -p \$dldir~
16858 $install_prog $dir/$dlname \$dldir/$dlname'
16859 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16860 dlpath=$dir/\$dldll~
16862 shlibpath_overrides_runpath=yes
16866 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16867 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16868 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16871 # MinGW DLLs use traditional 'lib' prefix
16872 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16874 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16875 # It is most probably a Windows format PATH printed by
16876 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16877 # path with ; separators, and with drive letters. We can handle the
16878 # drive letters (cygwin fileutils understands them), so leave them,
16879 # especially as we might pass files found there to a mingw objdump,
16880 # which wouldn't understand a cygwinified path. Ahh.
16881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16887 # pw32 DLLs use 'pw' prefix rather than 'lib'
16888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16897 dynamic_linker='Win32 ld.exe'
16898 # FIXME: first we should search . and the directory the executable is in
16902 darwin* | rhapsody*)
16903 dynamic_linker="$host_os dyld"
16904 version_type=darwin
16907 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16908 soname_spec='${libname}${release}${major}$shared_ext'
16909 shlibpath_overrides_runpath=yes
16910 shlibpath_var=DYLD_LIBRARY_PATH
16911 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16912 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16913 if test "$GCC" = yes; then
16914 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"`
16916 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 shlibpath_var=LD_LIBRARY_PATH
16941 shlibpath_overrides_runpath=no
16942 hardcode_into_libs=yes
16943 dynamic_linker='GNU ld.so'
16947 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16948 version_type=freebsd-$objformat
16949 case $version_type in
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16960 shlibpath_var=LD_LIBRARY_PATH
16963 shlibpath_overrides_runpath=yes
16965 freebsd3.01* | freebsdelf3.01*)
16966 shlibpath_overrides_runpath=yes
16967 hardcode_into_libs=yes
16970 shlibpath_overrides_runpath=no
16971 hardcode_into_libs=yes
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16981 soname_spec='${libname}${release}${shared_ext}$major'
16982 shlibpath_var=LD_LIBRARY_PATH
16983 hardcode_into_libs=yes
16986 hpux9* | hpux10* | hpux11*)
16987 # Give a soname corresponding to the major version so that dld.sl refuses to
16988 # link against other versions.
16992 case "$host_cpu" in
16995 hardcode_into_libs=yes
16996 dynamic_linker="$host_os dld.so"
16997 shlibpath_var=LD_LIBRARY_PATH
16998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000 soname_spec='${libname}${release}${shared_ext}$major'
17001 if test "X$HPUX_IA64_MODE" = X32; then
17002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17010 hardcode_into_libs=yes
17011 dynamic_linker="$host_os dld.sl"
17012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17021 dynamic_linker="$host_os dld.sl"
17022 shlibpath_var=SHLIB_PATH
17023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17028 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17029 postinstall_cmds='chmod 555 $lib'
17032 irix5* | irix6* | nonstopux*)
17034 nonstopux*) version_type=nonstopux ;;
17036 if test "$lt_cv_prog_gnu_ld" = yes; then
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17047 irix5* | nonstopux*)
17048 libsuff= shlibsuff=
17051 case $LD in # libtool.m4 will add one of these switches to LD
17052 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17053 libsuff= shlibsuff= libmagic=32-bit;;
17054 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17055 libsuff=32 shlibsuff=N32 libmagic=N32;;
17056 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17057 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17058 *) libsuff= shlibsuff= libmagic=never-match;;
17062 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17063 shlibpath_overrides_runpath=no
17064 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17065 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17066 hardcode_into_libs=yes
17069 # No shared lib support for Linux oldld, aout, or coff.
17070 linux*oldld* | linux*aout* | linux*coff*)
17074 # This must be Linux ELF.
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080 soname_spec='${libname}${release}${shared_ext}$major'
17081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17082 shlibpath_var=LD_LIBRARY_PATH
17083 shlibpath_overrides_runpath=no
17084 # This implies no fast_install, which is unacceptable.
17085 # Some rework will be needed to allow for fast_install
17086 # before this can be enabled.
17087 hardcode_into_libs=yes
17089 # Append ld.so.conf contents to the search path
17090 if test -f /etc/ld.so.conf; then
17091 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17092 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17095 # We used to test for /lib/ld.so.1 and disable shared libraries on
17096 # powerpc, because MkLinux only supported shared libraries with the
17097 # GNU dynamic linker. Since this was broken with cross compilers,
17098 # most powerpc-linux boxes support dynamic linking these days and
17099 # people can always --disable-shared, the test was removed, and we
17100 # assume the GNU/Linux dynamic linker is in use.
17101 dynamic_linker='GNU/Linux ld.so'
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=no
17112 hardcode_into_libs=yes
17113 dynamic_linker='GNU ld.so'
17120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17123 dynamic_linker='NetBSD (a.out) ld.so'
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 dynamic_linker='NetBSD ld.elf_so'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 shlibpath_overrides_runpath=yes
17131 hardcode_into_libs=yes
17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath=yes
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 shlibpath_overrides_runpath=yes
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17160 openbsd2.[89] | openbsd2.[89].*)
17161 shlibpath_overrides_runpath=no
17164 shlibpath_overrides_runpath=yes
17168 shlibpath_overrides_runpath=yes
17173 libname_spec='$name'
17176 library_names_spec='$libname${shared_ext} $libname.a'
17177 dynamic_linker='OS/2 ld.exe'
17178 shlibpath_var=LIBPATH
17181 osf3* | osf4* | osf5*)
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 shlibpath_var=LD_LIBRARY_PATH
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17204 soname_spec='${libname}${release}${shared_ext}$major'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 shlibpath_overrides_runpath=yes
17207 hardcode_into_libs=yes
17208 # ldd complains unless libraries are executable
17209 postinstall_cmds='chmod +x $lib'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=yes
17218 if test "$with_gnu_ld" = yes; then
17224 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 shlibpath_var=LD_LIBRARY_PATH
17229 case $host_vendor in
17231 shlibpath_overrides_runpath=no
17233 export_dynamic_flag_spec='${wl}-Blargedynsym'
17234 runpath_var=LD_RUN_PATH
17242 shlibpath_overrides_runpath=no
17243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17249 if test -d /usr/nec ;then
17251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17252 soname_spec='$libname${shared_ext}.$major'
17253 shlibpath_var=LD_LIBRARY_PATH
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 shlibpath_var=LD_LIBRARY_PATH
17268 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17269 echo "${ECHO_T}$dynamic_linker" >&6
17270 test "$dynamic_linker" = no && can_build_shared=no
17272 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17273 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17274 hardcode_action_GCJ=
17275 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17276 test -n "$runpath_var GCJ" || \
17277 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17279 # We can hardcode non-existant directories.
17280 if test "$hardcode_direct_GCJ" != no &&
17281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17282 # have to relink, otherwise we might link with an installed library
17283 # when we should be linking with a yet-to-be-installed one
17284 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17285 test "$hardcode_minus_L_GCJ" != no; then
17286 # Linking always hardcodes the temporary library directory.
17287 hardcode_action_GCJ=relink
17289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17290 hardcode_action_GCJ=immediate
17293 # We cannot hardcode anything, or else we can only hardcode existing
17295 hardcode_action_GCJ=unsupported
17297 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17298 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17300 if test "$hardcode_action_GCJ" = relink; then
17301 # Fast installation is not supported
17302 enable_fast_install=no
17303 elif test "$shlibpath_overrides_runpath" = yes ||
17304 test "$enable_shared" = no; then
17305 # Fast installation is not necessary
17306 enable_fast_install=needless
17311 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17312 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17313 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17314 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17315 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17316 echo "$as_me:$LINENO: result: yes" >&5
17317 echo "${ECHO_T}yes" >&6
17319 # FIXME - insert some real tests, host_os isn't really good enough
17322 if test -n "$STRIP" ; then
17323 striplib="$STRIP -x"
17324 echo "$as_me:$LINENO: result: yes" >&5
17325 echo "${ECHO_T}yes" >&6
17327 echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6
17332 echo "$as_me:$LINENO: result: no" >&5
17333 echo "${ECHO_T}no" >&6
17338 if test "x$enable_dlopen" != xyes; then
17339 enable_dlopen=unknown
17340 enable_dlopen_self=unknown
17341 enable_dlopen_self_static=unknown
17348 lt_cv_dlopen="load_add_on"
17350 lt_cv_dlopen_self=yes
17354 lt_cv_dlopen="LoadLibrary"
17359 lt_cv_dlopen="dlopen"
17364 # if libdl is installed we need to link against it
17365 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17366 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17367 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 ac_check_lib_save_LIBS=$LIBS
17372 cat >conftest.$ac_ext <<_ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17379 /* Override any gcc2 internal prototype to avoid an error. */
17383 /* We use char because int might match the return type of a gcc2
17384 builtin and then its argument prototype would still apply. */
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396 (eval $ac_link) 2>conftest.er1
17398 grep -v '^ *+' conftest.er1 >conftest.err
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
17403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest$ac_exeext'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_cv_lib_dl_dlopen=yes
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 ac_cv_lib_dl_dlopen=no
17422 rm -f conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17424 LIBS=$ac_check_lib_save_LIBS
17426 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17427 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17428 if test $ac_cv_lib_dl_dlopen = yes; then
17429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17432 lt_cv_dlopen="dyld"
17434 lt_cv_dlopen_self=yes
17441 echo "$as_me:$LINENO: checking for shl_load" >&5
17442 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17443 if test "${ac_cv_func_shl_load+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17454 #define shl_load innocuous_shl_load
17456 /* System header to define __stub macros and hopefully few prototypes,
17457 which can conflict with char shl_load (); below.
17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459 <limits.h> exists even on freestanding compilers. */
17462 # include <limits.h>
17464 # include <assert.h>
17469 /* Override any gcc2 internal prototype to avoid an error. */
17474 /* We use char because int might match the return type of a gcc2
17475 builtin and then its argument prototype would still apply. */
17477 /* The GNU C library defines this for functions which it implements
17478 to always fail with ENOSYS. Some functions are actually named
17479 something starting with __ and the normal name is an alias. */
17480 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17483 char (*f) () = shl_load;
17492 return f != shl_load;
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499 (eval $ac_link) 2>conftest.er1
17501 grep -v '^ *+' conftest.er1 >conftest.err
17503 cat conftest.err >&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest$ac_exeext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_cv_func_shl_load=yes
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 ac_cv_func_shl_load=no
17525 rm -f conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17528 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17529 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17530 if test $ac_cv_func_shl_load = yes; then
17531 lt_cv_dlopen="shl_load"
17533 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17534 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17535 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 ac_check_lib_save_LIBS=$LIBS
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17547 /* Override any gcc2 internal prototype to avoid an error. */
17551 /* We use char because int might match the return type of a gcc2
17552 builtin and then its argument prototype would still apply. */
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17564 (eval $ac_link) 2>conftest.er1
17566 grep -v '^ *+' conftest.er1 >conftest.err
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_lib_dld_shl_load=yes
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ac_cv_lib_dld_shl_load=no
17590 rm -f conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
17592 LIBS=$ac_check_lib_save_LIBS
17594 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17595 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17596 if test $ac_cv_lib_dld_shl_load = yes; then
17597 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17599 echo "$as_me:$LINENO: checking for dlopen" >&5
17600 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17601 if test "${ac_cv_func_dlopen+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17604 cat >conftest.$ac_ext <<_ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17610 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17612 #define dlopen innocuous_dlopen
17614 /* System header to define __stub macros and hopefully few prototypes,
17615 which can conflict with char dlopen (); below.
17616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17617 <limits.h> exists even on freestanding compilers. */
17620 # include <limits.h>
17622 # include <assert.h>
17627 /* Override any gcc2 internal prototype to avoid an error. */
17632 /* We use char because int might match the return type of a gcc2
17633 builtin and then its argument prototype would still apply. */
17635 /* The GNU C library defines this for functions which it implements
17636 to always fail with ENOSYS. Some functions are actually named
17637 something starting with __ and the normal name is an alias. */
17638 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17641 char (*f) () = dlopen;
17650 return f != dlopen;
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17657 (eval $ac_link) 2>conftest.er1
17659 grep -v '^ *+' conftest.er1 >conftest.err
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest$ac_exeext'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_func_dlopen=yes
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 ac_cv_func_dlopen=no
17683 rm -f conftest.err conftest.$ac_objext \
17684 conftest$ac_exeext conftest.$ac_ext
17686 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17687 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17688 if test $ac_cv_func_dlopen = yes; then
17689 lt_cv_dlopen="dlopen"
17691 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17692 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 ac_check_lib_save_LIBS=$LIBS
17698 cat >conftest.$ac_ext <<_ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17705 /* Override any gcc2 internal prototype to avoid an error. */
17709 /* We use char because int might match the return type of a gcc2
17710 builtin and then its argument prototype would still apply. */
17720 rm -f conftest.$ac_objext conftest$ac_exeext
17721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17722 (eval $ac_link) 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } &&
17729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest$ac_exeext'
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_lib_dl_dlopen=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_lib_dl_dlopen=no
17748 rm -f conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext conftest.$ac_ext
17750 LIBS=$ac_check_lib_save_LIBS
17752 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17753 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17754 if test $ac_cv_lib_dl_dlopen = yes; then
17755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17757 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17758 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17759 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 ac_check_lib_save_LIBS=$LIBS
17763 LIBS="-lsvld $LIBS"
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17771 /* Override any gcc2 internal prototype to avoid an error. */
17775 /* We use char because int might match the return type of a gcc2
17776 builtin and then its argument prototype would still apply. */
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; } &&
17801 { ac_try='test -s conftest$ac_exeext'
17802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803 (eval $ac_try) 2>&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 ac_cv_lib_svld_dlopen=yes
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_cv_lib_svld_dlopen=no
17814 rm -f conftest.err conftest.$ac_objext \
17815 conftest$ac_exeext conftest.$ac_ext
17816 LIBS=$ac_check_lib_save_LIBS
17818 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17819 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17820 if test $ac_cv_lib_svld_dlopen = yes; then
17821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17823 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17824 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17825 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 ac_check_lib_save_LIBS=$LIBS
17830 cat >conftest.$ac_ext <<_ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17837 /* Override any gcc2 internal prototype to avoid an error. */
17841 /* We use char because int might match the return type of a gcc2
17842 builtin and then its argument prototype would still apply. */
17852 rm -f conftest.$ac_objext conftest$ac_exeext
17853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17854 (eval $ac_link) 2>conftest.er1
17856 grep -v '^ *+' conftest.er1 >conftest.err
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } &&
17861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; } &&
17867 { ac_try='test -s conftest$ac_exeext'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ac_cv_lib_dld_dld_link=yes
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_cv_lib_dld_dld_link=no
17880 rm -f conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17882 LIBS=$ac_check_lib_save_LIBS
17884 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17885 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17886 if test $ac_cv_lib_dld_dld_link = yes; then
17887 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17908 if test "x$lt_cv_dlopen" != xno; then
17914 case $lt_cv_dlopen in
17916 save_CPPFLAGS="$CPPFLAGS"
17917 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17919 save_LDFLAGS="$LDFLAGS"
17920 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17923 LIBS="$lt_cv_dlopen_libs $LIBS"
17925 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17926 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17927 if test "${lt_cv_dlopen_self+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 if test "$cross_compiling" = yes; then :
17931 lt_cv_dlopen_self=cross
17933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17934 lt_status=$lt_dlunknown
17935 cat > conftest.$ac_ext <<EOF
17936 #line 17936 "configure"
17937 #include "confdefs.h"
17946 # define LT_DLGLOBAL RTLD_GLOBAL
17949 # define LT_DLGLOBAL DL_GLOBAL
17951 # define LT_DLGLOBAL 0
17955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17956 find out it does not work in some platform. */
17957 #ifndef LT_DLLAZY_OR_NOW
17959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17962 # define LT_DLLAZY_OR_NOW DL_LAZY
17965 # define LT_DLLAZY_OR_NOW RTLD_NOW
17968 # define LT_DLLAZY_OR_NOW DL_NOW
17970 # define LT_DLLAZY_OR_NOW 0
17978 extern "C" void exit (int);
17981 void fnord() { int i=42;}
17984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17985 int status = $lt_dlunknown;
17989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17990 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17991 /* dlclose (self); */
17997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17998 (eval $ac_link) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18002 (./conftest; exit; ) 2>/dev/null
18004 case x$lt_status in
18005 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18006 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18007 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18010 # compilation failed
18011 lt_cv_dlopen_self=no
18018 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18019 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18021 if test "x$lt_cv_dlopen_self" = xyes; then
18022 LDFLAGS="$LDFLAGS $link_static_flag"
18023 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18024 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18025 if test "${lt_cv_dlopen_self_static+set}" = set; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 if test "$cross_compiling" = yes; then :
18029 lt_cv_dlopen_self_static=cross
18031 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18032 lt_status=$lt_dlunknown
18033 cat > conftest.$ac_ext <<EOF
18034 #line 18034 "configure"
18035 #include "confdefs.h"
18044 # define LT_DLGLOBAL RTLD_GLOBAL
18047 # define LT_DLGLOBAL DL_GLOBAL
18049 # define LT_DLGLOBAL 0
18053 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18054 find out it does not work in some platform. */
18055 #ifndef LT_DLLAZY_OR_NOW
18057 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18060 # define LT_DLLAZY_OR_NOW DL_LAZY
18063 # define LT_DLLAZY_OR_NOW RTLD_NOW
18066 # define LT_DLLAZY_OR_NOW DL_NOW
18068 # define LT_DLLAZY_OR_NOW 0
18076 extern "C" void exit (int);
18079 void fnord() { int i=42;}
18082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18083 int status = $lt_dlunknown;
18087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18088 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18089 /* dlclose (self); */
18095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18096 (eval $ac_link) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18100 (./conftest; exit; ) 2>/dev/null
18102 case x$lt_status in
18103 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18104 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18105 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18108 # compilation failed
18109 lt_cv_dlopen_self_static=no
18116 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18117 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18120 CPPFLAGS="$save_CPPFLAGS"
18121 LDFLAGS="$save_LDFLAGS"
18126 case $lt_cv_dlopen_self in
18127 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18128 *) enable_dlopen_self=unknown ;;
18131 case $lt_cv_dlopen_self_static in
18132 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18133 *) enable_dlopen_self_static=unknown ;;
18138 # The else clause should only fire when bootstrapping the
18139 # libtool distribution, otherwise you forgot to ship ltmain.sh
18140 # with your package, and you will get complaints that there are
18141 # no rules to generate ltmain.sh.
18142 if test -f "$ltmain"; then
18143 # See if we are running on zsh, and set the options which allow our commands through
18144 # without removal of \ escapes.
18145 if test -n "${ZSH_VERSION+set}" ; then
18146 setopt NO_GLOB_SUBST
18148 # Now quote all the things that may contain metacharacters while being
18149 # careful not to overquote the AC_SUBSTed values. We take copies of the
18150 # variables and quote the copies for generation of the libtool script.
18151 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18153 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18154 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18155 deplibs_check_method reload_flag reload_cmds need_locks \
18156 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18157 lt_cv_sys_global_symbol_to_c_name_address \
18158 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18159 old_postinstall_cmds old_postuninstall_cmds \
18163 lt_prog_compiler_wl_GCJ \
18164 lt_prog_compiler_pic_GCJ \
18165 lt_prog_compiler_static_GCJ \
18166 lt_prog_compiler_no_builtin_flag_GCJ \
18167 export_dynamic_flag_spec_GCJ \
18168 thread_safe_flag_spec_GCJ \
18169 whole_archive_flag_spec_GCJ \
18170 enable_shared_with_static_runtimes_GCJ \
18171 old_archive_cmds_GCJ \
18172 old_archive_from_new_cmds_GCJ \
18173 predep_objects_GCJ \
18174 postdep_objects_GCJ \
18177 compiler_lib_search_path_GCJ \
18179 archive_expsym_cmds_GCJ \
18180 postinstall_cmds_GCJ \
18181 postuninstall_cmds_GCJ \
18182 old_archive_from_expsyms_cmds_GCJ \
18183 allow_undefined_flag_GCJ \
18184 no_undefined_flag_GCJ \
18185 export_symbols_cmds_GCJ \
18186 hardcode_libdir_flag_spec_GCJ \
18187 hardcode_libdir_flag_spec_ld_GCJ \
18188 hardcode_libdir_separator_GCJ \
18189 hardcode_automatic_GCJ \
18191 module_expsym_cmds_GCJ \
18192 lt_cv_prog_compiler_c_o_GCJ \
18193 exclude_expsyms_GCJ \
18194 include_expsyms_GCJ; do
18197 old_archive_cmds_GCJ | \
18198 old_archive_from_new_cmds_GCJ | \
18199 archive_cmds_GCJ | \
18200 archive_expsym_cmds_GCJ | \
18201 module_cmds_GCJ | \
18202 module_expsym_cmds_GCJ | \
18203 old_archive_from_expsyms_cmds_GCJ | \
18204 export_symbols_cmds_GCJ | \
18205 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18206 postinstall_cmds | postuninstall_cmds | \
18207 old_postinstall_cmds | old_postuninstall_cmds | \
18208 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18209 # Double-quote double-evaled strings.
18210 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18219 *'\$0 --fallback-echo"')
18220 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18226 cat <<__EOF__ >> "$cfgfile"
18227 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18231 # Shell to use when invoking shell scripts.
18234 # Whether or not to build shared libraries.
18235 build_libtool_libs=$enable_shared
18237 # Whether or not to build static libraries.
18238 build_old_libs=$enable_static
18240 # Whether or not to add -lc for building shared libraries.
18241 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18243 # Whether or not to disallow shared libs when runtime libs are static
18244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18246 # Whether or not to optimize for fast installation.
18247 fast_install=$enable_fast_install
18250 host_alias=$host_alias
18253 # An echo program that does not interpret backslashes.
18258 AR_FLAGS=$lt_AR_FLAGS
18263 # A language-specific compiler.
18264 CC=$lt_compiler_GCJ
18266 # Is the compiler the GNU C compiler?
18272 # The linker used to build libraries.
18275 # Whether we need hard or soft links.
18278 # A BSD-compatible nm program.
18281 # A symbol stripping program
18284 # Used to examine libraries when file_magic_cmd begins "file"
18285 MAGIC_CMD=$MAGIC_CMD
18287 # Used on cygwin: DLL creation program.
18290 # Used on cygwin: object dumper.
18293 # Used on cygwin: assembler.
18296 # The name of the directory that contains temporary libtool files.
18299 # How to create reloadable object files.
18300 reload_flag=$lt_reload_flag
18301 reload_cmds=$lt_reload_cmds
18303 # How to pass a linker flag through the compiler.
18304 wl=$lt_lt_prog_compiler_wl_GCJ
18306 # Object file suffix (normally "o").
18307 objext="$ac_objext"
18309 # Old archive suffix (normally "a").
18312 # Shared library suffix (normally ".so").
18313 shrext_cmds='$shrext_cmds'
18315 # Executable file suffix (normally "").
18318 # Additional compiler flags for building library objects.
18319 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18322 # What is the maximum length of a command?
18323 max_cmd_len=$lt_cv_sys_max_cmd_len
18325 # Does compiler simultaneously support -c and -o options?
18326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18328 # Must we lock files when doing compilation ?
18329 need_locks=$lt_need_locks
18331 # Do we need the lib prefix for modules?
18332 need_lib_prefix=$need_lib_prefix
18334 # Do we need a version for libraries?
18335 need_version=$need_version
18337 # Whether dlopen is supported.
18338 dlopen_support=$enable_dlopen
18340 # Whether dlopen of programs is supported.
18341 dlopen_self=$enable_dlopen_self
18343 # Whether dlopen of statically linked programs is supported.
18344 dlopen_self_static=$enable_dlopen_self_static
18346 # Compiler flag to prevent dynamic linking.
18347 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18349 # Compiler flag to turn off builtin functions.
18350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18352 # Compiler flag to allow reflexive dlopens.
18353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18355 # Compiler flag to generate shared objects directly from archives.
18356 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18358 # Compiler flag to generate thread-safe objects.
18359 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18361 # Library versioning type.
18362 version_type=$version_type
18364 # Format of library name prefix.
18365 libname_spec=$lt_libname_spec
18367 # List of archive names. First name is the real one, the rest are links.
18368 # The last name is the one that the linker finds with -lNAME.
18369 library_names_spec=$lt_library_names_spec
18371 # The coded name of the library, if different from the real name.
18372 soname_spec=$lt_soname_spec
18374 # Commands used to build and install an old-style archive.
18376 old_archive_cmds=$lt_old_archive_cmds_GCJ
18377 old_postinstall_cmds=$lt_old_postinstall_cmds
18378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18380 # Create an old-style archive from a shared archive.
18381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18383 # Create a temporary old-style archive to link instead of a shared archive.
18384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18386 # Commands used to build and install a shared archive.
18387 archive_cmds=$lt_archive_cmds_GCJ
18388 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18389 postinstall_cmds=$lt_postinstall_cmds
18390 postuninstall_cmds=$lt_postuninstall_cmds
18392 # Commands used to build a loadable module (assumed same as above if empty)
18393 module_cmds=$lt_module_cmds_GCJ
18394 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18396 # Commands to strip libraries.
18397 old_striplib=$lt_old_striplib
18398 striplib=$lt_striplib
18400 # Dependencies to place before the objects being linked to create a
18402 predep_objects=$lt_predep_objects_GCJ
18404 # Dependencies to place after the objects being linked to create a
18406 postdep_objects=$lt_postdep_objects_GCJ
18408 # Dependencies to place before the objects being linked to create a
18410 predeps=$lt_predeps_GCJ
18412 # Dependencies to place after the objects being linked to create a
18414 postdeps=$lt_postdeps_GCJ
18416 # The library search path used internally by the compiler when linking
18417 # a shared library.
18418 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18420 # Method to check whether dependent libraries are shared objects.
18421 deplibs_check_method=$lt_deplibs_check_method
18423 # Command to use when deplibs_check_method == file_magic.
18424 file_magic_cmd=$lt_file_magic_cmd
18426 # Flag that allows shared libraries with undefined symbols to be built.
18427 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18429 # Flag that forces no undefined symbols.
18430 no_undefined_flag=$lt_no_undefined_flag_GCJ
18432 # Commands used to finish a libtool library installation in a directory.
18433 finish_cmds=$lt_finish_cmds
18435 # Same as above, but a single script fragment to be evaled but not shown.
18436 finish_eval=$lt_finish_eval
18438 # Take the output of nm and produce a listing of raw symbols and C names.
18439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18441 # Transform the output of nm in a proper C declaration
18442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18444 # Transform the output of nm in a C name address pair
18445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18447 # This is the shared library runtime path variable.
18448 runpath_var=$runpath_var
18450 # This is the shared library path variable.
18451 shlibpath_var=$shlibpath_var
18453 # Is shlibpath searched before the hard-coded library search path?
18454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18456 # How to hardcode a shared library path into an executable.
18457 hardcode_action=$hardcode_action_GCJ
18459 # Whether we should hardcode library paths into libraries.
18460 hardcode_into_libs=$hardcode_into_libs
18462 # Flag to hardcode \$libdir into a binary during linking.
18463 # This must work even if \$libdir does not exist.
18464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18466 # If ld is used when linking, flag to hardcode \$libdir into
18467 # a binary during linking. This must work even if \$libdir does
18469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18471 # Whether we need a single -rpath flag with a separated argument.
18472 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18474 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18475 # resulting binary.
18476 hardcode_direct=$hardcode_direct_GCJ
18478 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18479 # resulting binary.
18480 hardcode_minus_L=$hardcode_minus_L_GCJ
18482 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18483 # the resulting binary.
18484 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18486 # Set to yes if building a shared library automatically hardcodes DIR into the library
18487 # and all subsequent libraries and executables linked against it.
18488 hardcode_automatic=$hardcode_automatic_GCJ
18490 # Variables whose values should be saved in libtool wrapper scripts and
18491 # restored at relink time.
18492 variables_saved_for_relink="$variables_saved_for_relink"
18494 # Whether libtool must link a program against all its dependency libraries.
18495 link_all_deplibs=$link_all_deplibs_GCJ
18497 # Compile-time system search path for libraries
18498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18500 # Run-time system search path for libraries
18501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18503 # Fix the shell variable \$srcfile for the compiler.
18504 fix_srcfile_path="$fix_srcfile_path_GCJ"
18506 # Set to yes if exported symbols are required.
18507 always_export_symbols=$always_export_symbols_GCJ
18509 # The commands to list exported symbols.
18510 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18512 # The commands to extract the exported symbol list from a shared archive.
18513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18515 # Symbols that should not be listed in the preloaded symbols.
18516 exclude_expsyms=$lt_exclude_expsyms_GCJ
18518 # Symbols that must always be exported.
18519 include_expsyms=$lt_include_expsyms_GCJ
18521 # ### END LIBTOOL TAG CONFIG: $tagname
18527 # If there is no Makefile yet, we rely on a make rule to execute
18528 # `config.status --recheck' to rerun these tests and create the
18529 # libtool script then.
18530 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18531 if test -f "$ltmain_in"; then
18532 test -f Makefile && make "$ltmain"
18538 ac_cpp='$CPP $CPPFLAGS'
18539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18554 # Source file extension for RC test sources.
18557 # Object file extension for compiled RC test sources.
18561 # Code to be used in simple compile tests
18562 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18564 # Code to be used in simple link tests
18565 lt_simple_link_test_code="$lt_simple_compile_test_code"
18567 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18569 # If no C compiler was specified, use CC.
18572 # Allow CC to be a program name with arguments.
18576 # Allow CC to be a program name with arguments.
18581 lt_cv_prog_compiler_c_o_RC=yes
18583 # The else clause should only fire when bootstrapping the
18584 # libtool distribution, otherwise you forgot to ship ltmain.sh
18585 # with your package, and you will get complaints that there are
18586 # no rules to generate ltmain.sh.
18587 if test -f "$ltmain"; then
18588 # See if we are running on zsh, and set the options which allow our commands through
18589 # without removal of \ escapes.
18590 if test -n "${ZSH_VERSION+set}" ; then
18591 setopt NO_GLOB_SUBST
18593 # Now quote all the things that may contain metacharacters while being
18594 # careful not to overquote the AC_SUBSTed values. We take copies of the
18595 # variables and quote the copies for generation of the libtool script.
18596 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18598 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18599 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18600 deplibs_check_method reload_flag reload_cmds need_locks \
18601 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18602 lt_cv_sys_global_symbol_to_c_name_address \
18603 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18604 old_postinstall_cmds old_postuninstall_cmds \
18608 lt_prog_compiler_wl_RC \
18609 lt_prog_compiler_pic_RC \
18610 lt_prog_compiler_static_RC \
18611 lt_prog_compiler_no_builtin_flag_RC \
18612 export_dynamic_flag_spec_RC \
18613 thread_safe_flag_spec_RC \
18614 whole_archive_flag_spec_RC \
18615 enable_shared_with_static_runtimes_RC \
18616 old_archive_cmds_RC \
18617 old_archive_from_new_cmds_RC \
18618 predep_objects_RC \
18619 postdep_objects_RC \
18622 compiler_lib_search_path_RC \
18624 archive_expsym_cmds_RC \
18625 postinstall_cmds_RC \
18626 postuninstall_cmds_RC \
18627 old_archive_from_expsyms_cmds_RC \
18628 allow_undefined_flag_RC \
18629 no_undefined_flag_RC \
18630 export_symbols_cmds_RC \
18631 hardcode_libdir_flag_spec_RC \
18632 hardcode_libdir_flag_spec_ld_RC \
18633 hardcode_libdir_separator_RC \
18634 hardcode_automatic_RC \
18636 module_expsym_cmds_RC \
18637 lt_cv_prog_compiler_c_o_RC \
18638 exclude_expsyms_RC \
18639 include_expsyms_RC; do
18642 old_archive_cmds_RC | \
18643 old_archive_from_new_cmds_RC | \
18644 archive_cmds_RC | \
18645 archive_expsym_cmds_RC | \
18647 module_expsym_cmds_RC | \
18648 old_archive_from_expsyms_cmds_RC | \
18649 export_symbols_cmds_RC | \
18650 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18651 postinstall_cmds | postuninstall_cmds | \
18652 old_postinstall_cmds | old_postuninstall_cmds | \
18653 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18654 # Double-quote double-evaled strings.
18655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18658 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18664 *'\$0 --fallback-echo"')
18665 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18671 cat <<__EOF__ >> "$cfgfile"
18672 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18676 # Shell to use when invoking shell scripts.
18679 # Whether or not to build shared libraries.
18680 build_libtool_libs=$enable_shared
18682 # Whether or not to build static libraries.
18683 build_old_libs=$enable_static
18685 # Whether or not to add -lc for building shared libraries.
18686 build_libtool_need_lc=$archive_cmds_need_lc_RC
18688 # Whether or not to disallow shared libs when runtime libs are static
18689 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18691 # Whether or not to optimize for fast installation.
18692 fast_install=$enable_fast_install
18695 host_alias=$host_alias
18698 # An echo program that does not interpret backslashes.
18703 AR_FLAGS=$lt_AR_FLAGS
18708 # A language-specific compiler.
18711 # Is the compiler the GNU C compiler?
18717 # The linker used to build libraries.
18720 # Whether we need hard or soft links.
18723 # A BSD-compatible nm program.
18726 # A symbol stripping program
18729 # Used to examine libraries when file_magic_cmd begins "file"
18730 MAGIC_CMD=$MAGIC_CMD
18732 # Used on cygwin: DLL creation program.
18735 # Used on cygwin: object dumper.
18738 # Used on cygwin: assembler.
18741 # The name of the directory that contains temporary libtool files.
18744 # How to create reloadable object files.
18745 reload_flag=$lt_reload_flag
18746 reload_cmds=$lt_reload_cmds
18748 # How to pass a linker flag through the compiler.
18749 wl=$lt_lt_prog_compiler_wl_RC
18751 # Object file suffix (normally "o").
18752 objext="$ac_objext"
18754 # Old archive suffix (normally "a").
18757 # Shared library suffix (normally ".so").
18758 shrext_cmds='$shrext_cmds'
18760 # Executable file suffix (normally "").
18763 # Additional compiler flags for building library objects.
18764 pic_flag=$lt_lt_prog_compiler_pic_RC
18767 # What is the maximum length of a command?
18768 max_cmd_len=$lt_cv_sys_max_cmd_len
18770 # Does compiler simultaneously support -c and -o options?
18771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18773 # Must we lock files when doing compilation ?
18774 need_locks=$lt_need_locks
18776 # Do we need the lib prefix for modules?
18777 need_lib_prefix=$need_lib_prefix
18779 # Do we need a version for libraries?
18780 need_version=$need_version
18782 # Whether dlopen is supported.
18783 dlopen_support=$enable_dlopen
18785 # Whether dlopen of programs is supported.
18786 dlopen_self=$enable_dlopen_self
18788 # Whether dlopen of statically linked programs is supported.
18789 dlopen_self_static=$enable_dlopen_self_static
18791 # Compiler flag to prevent dynamic linking.
18792 link_static_flag=$lt_lt_prog_compiler_static_RC
18794 # Compiler flag to turn off builtin functions.
18795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18797 # Compiler flag to allow reflexive dlopens.
18798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18800 # Compiler flag to generate shared objects directly from archives.
18801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18803 # Compiler flag to generate thread-safe objects.
18804 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18806 # Library versioning type.
18807 version_type=$version_type
18809 # Format of library name prefix.
18810 libname_spec=$lt_libname_spec
18812 # List of archive names. First name is the real one, the rest are links.
18813 # The last name is the one that the linker finds with -lNAME.
18814 library_names_spec=$lt_library_names_spec
18816 # The coded name of the library, if different from the real name.
18817 soname_spec=$lt_soname_spec
18819 # Commands used to build and install an old-style archive.
18821 old_archive_cmds=$lt_old_archive_cmds_RC
18822 old_postinstall_cmds=$lt_old_postinstall_cmds
18823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18825 # Create an old-style archive from a shared archive.
18826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18828 # Create a temporary old-style archive to link instead of a shared archive.
18829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18831 # Commands used to build and install a shared archive.
18832 archive_cmds=$lt_archive_cmds_RC
18833 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18834 postinstall_cmds=$lt_postinstall_cmds
18835 postuninstall_cmds=$lt_postuninstall_cmds
18837 # Commands used to build a loadable module (assumed same as above if empty)
18838 module_cmds=$lt_module_cmds_RC
18839 module_expsym_cmds=$lt_module_expsym_cmds_RC
18841 # Commands to strip libraries.
18842 old_striplib=$lt_old_striplib
18843 striplib=$lt_striplib
18845 # Dependencies to place before the objects being linked to create a
18847 predep_objects=$lt_predep_objects_RC
18849 # Dependencies to place after the objects being linked to create a
18851 postdep_objects=$lt_postdep_objects_RC
18853 # Dependencies to place before the objects being linked to create a
18855 predeps=$lt_predeps_RC
18857 # Dependencies to place after the objects being linked to create a
18859 postdeps=$lt_postdeps_RC
18861 # The library search path used internally by the compiler when linking
18862 # a shared library.
18863 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18865 # Method to check whether dependent libraries are shared objects.
18866 deplibs_check_method=$lt_deplibs_check_method
18868 # Command to use when deplibs_check_method == file_magic.
18869 file_magic_cmd=$lt_file_magic_cmd
18871 # Flag that allows shared libraries with undefined symbols to be built.
18872 allow_undefined_flag=$lt_allow_undefined_flag_RC
18874 # Flag that forces no undefined symbols.
18875 no_undefined_flag=$lt_no_undefined_flag_RC
18877 # Commands used to finish a libtool library installation in a directory.
18878 finish_cmds=$lt_finish_cmds
18880 # Same as above, but a single script fragment to be evaled but not shown.
18881 finish_eval=$lt_finish_eval
18883 # Take the output of nm and produce a listing of raw symbols and C names.
18884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18886 # Transform the output of nm in a proper C declaration
18887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18889 # Transform the output of nm in a C name address pair
18890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18892 # This is the shared library runtime path variable.
18893 runpath_var=$runpath_var
18895 # This is the shared library path variable.
18896 shlibpath_var=$shlibpath_var
18898 # Is shlibpath searched before the hard-coded library search path?
18899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18901 # How to hardcode a shared library path into an executable.
18902 hardcode_action=$hardcode_action_RC
18904 # Whether we should hardcode library paths into libraries.
18905 hardcode_into_libs=$hardcode_into_libs
18907 # Flag to hardcode \$libdir into a binary during linking.
18908 # This must work even if \$libdir does not exist.
18909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18911 # If ld is used when linking, flag to hardcode \$libdir into
18912 # a binary during linking. This must work even if \$libdir does
18914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18916 # Whether we need a single -rpath flag with a separated argument.
18917 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18920 # resulting binary.
18921 hardcode_direct=$hardcode_direct_RC
18923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18924 # resulting binary.
18925 hardcode_minus_L=$hardcode_minus_L_RC
18927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18928 # the resulting binary.
18929 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18931 # Set to yes if building a shared library automatically hardcodes DIR into the library
18932 # and all subsequent libraries and executables linked against it.
18933 hardcode_automatic=$hardcode_automatic_RC
18935 # Variables whose values should be saved in libtool wrapper scripts and
18936 # restored at relink time.
18937 variables_saved_for_relink="$variables_saved_for_relink"
18939 # Whether libtool must link a program against all its dependency libraries.
18940 link_all_deplibs=$link_all_deplibs_RC
18942 # Compile-time system search path for libraries
18943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18945 # Run-time system search path for libraries
18946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18948 # Fix the shell variable \$srcfile for the compiler.
18949 fix_srcfile_path="$fix_srcfile_path_RC"
18951 # Set to yes if exported symbols are required.
18952 always_export_symbols=$always_export_symbols_RC
18954 # The commands to list exported symbols.
18955 export_symbols_cmds=$lt_export_symbols_cmds_RC
18957 # The commands to extract the exported symbol list from a shared archive.
18958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18960 # Symbols that should not be listed in the preloaded symbols.
18961 exclude_expsyms=$lt_exclude_expsyms_RC
18963 # Symbols that must always be exported.
18964 include_expsyms=$lt_include_expsyms_RC
18966 # ### END LIBTOOL TAG CONFIG: $tagname
18972 # If there is no Makefile yet, we rely on a make rule to execute
18973 # `config.status --recheck' to rerun these tests and create the
18974 # libtool script then.
18975 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18976 if test -f "$ltmain_in"; then
18977 test -f Makefile && make "$ltmain"
18983 ac_cpp='$CPP $CPPFLAGS'
18984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18993 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18994 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18995 { (exit 1); exit 1; }; }
18999 # Append the new tag name to the list of available tags.
19000 if test -n "$tagname" ; then
19001 available_tags="$available_tags $tagname"
19007 # Now substitute the updated list of available tags.
19008 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19009 mv "${ofile}T" "$ofile"
19013 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19014 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19015 { (exit 1); exit 1; }; }
19021 # This can be used to rebuild libtool when needed
19022 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19024 # Always use our own libtool.
19025 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19027 # Prevent multiple expansion
19049 # declare the modules (no optional module)
19051 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19052 ACLOCAL="$ACLOCAL -I acmacro"
19056 ac_cpp='$CPP $CPPFLAGS'
19057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19060 if test -n "$ac_tool_prefix"; then
19061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19063 echo "$as_me:$LINENO: checking for $ac_word" >&5
19064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19065 if test "${ac_cv_prog_CC+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 if test -n "$CC"; then
19069 ac_cv_prog_CC="$CC" # Let the user override the test.
19071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19072 for as_dir in $PATH
19075 test -z "$as_dir" && as_dir=.
19076 for ac_exec_ext in '' $ac_executable_extensions; do
19077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19078 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19088 if test -n "$CC"; then
19089 echo "$as_me:$LINENO: result: $CC" >&5
19090 echo "${ECHO_T}$CC" >&6
19092 echo "$as_me:$LINENO: result: no" >&5
19093 echo "${ECHO_T}no" >&6
19097 if test -z "$ac_cv_prog_CC"; then
19099 # Extract the first word of "gcc", so it can be a program name with args.
19100 set dummy gcc; ac_word=$2
19101 echo "$as_me:$LINENO: checking for $ac_word" >&5
19102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 if test -n "$ac_ct_CC"; then
19107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19110 for as_dir in $PATH
19113 test -z "$as_dir" && as_dir=.
19114 for ac_exec_ext in '' $ac_executable_extensions; do
19115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19116 ac_cv_prog_ac_ct_CC="gcc"
19117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19126 if test -n "$ac_ct_CC"; then
19127 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19128 echo "${ECHO_T}$ac_ct_CC" >&6
19130 echo "$as_me:$LINENO: result: no" >&5
19131 echo "${ECHO_T}no" >&6
19136 CC="$ac_cv_prog_CC"
19139 if test -z "$CC"; then
19140 if test -n "$ac_tool_prefix"; then
19141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19142 set dummy ${ac_tool_prefix}cc; ac_word=$2
19143 echo "$as_me:$LINENO: checking for $ac_word" >&5
19144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19145 if test "${ac_cv_prog_CC+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 if test -n "$CC"; then
19149 ac_cv_prog_CC="$CC" # Let the user override the test.
19151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19152 for as_dir in $PATH
19155 test -z "$as_dir" && as_dir=.
19156 for ac_exec_ext in '' $ac_executable_extensions; do
19157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19158 ac_cv_prog_CC="${ac_tool_prefix}cc"
19159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19168 if test -n "$CC"; then
19169 echo "$as_me:$LINENO: result: $CC" >&5
19170 echo "${ECHO_T}$CC" >&6
19172 echo "$as_me:$LINENO: result: no" >&5
19173 echo "${ECHO_T}no" >&6
19177 if test -z "$ac_cv_prog_CC"; then
19179 # Extract the first word of "cc", so it can be a program name with args.
19180 set dummy cc; ac_word=$2
19181 echo "$as_me:$LINENO: checking for $ac_word" >&5
19182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 if test -n "$ac_ct_CC"; then
19187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19190 for as_dir in $PATH
19193 test -z "$as_dir" && as_dir=.
19194 for ac_exec_ext in '' $ac_executable_extensions; do
19195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19196 ac_cv_prog_ac_ct_CC="cc"
19197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19206 if test -n "$ac_ct_CC"; then
19207 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19208 echo "${ECHO_T}$ac_ct_CC" >&6
19210 echo "$as_me:$LINENO: result: no" >&5
19211 echo "${ECHO_T}no" >&6
19216 CC="$ac_cv_prog_CC"
19220 if test -z "$CC"; then
19221 # Extract the first word of "cc", so it can be a program name with args.
19222 set dummy cc; ac_word=$2
19223 echo "$as_me:$LINENO: checking for $ac_word" >&5
19224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19225 if test "${ac_cv_prog_CC+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 if test -n "$CC"; then
19229 ac_cv_prog_CC="$CC" # Let the user override the test.
19231 ac_prog_rejected=no
19232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19233 for as_dir in $PATH
19236 test -z "$as_dir" && as_dir=.
19237 for ac_exec_ext in '' $ac_executable_extensions; do
19238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19240 ac_prog_rejected=yes
19244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19250 if test $ac_prog_rejected = yes; then
19251 # We found a bogon in the path, so make sure we never use it.
19252 set dummy $ac_cv_prog_CC
19254 if test $# != 0; then
19255 # We chose a different compiler from the bogus one.
19256 # However, it has the same basename, so the bogon will be chosen
19257 # first if we set CC to just the basename; use the full file name.
19259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19265 if test -n "$CC"; then
19266 echo "$as_me:$LINENO: result: $CC" >&5
19267 echo "${ECHO_T}$CC" >&6
19269 echo "$as_me:$LINENO: result: no" >&5
19270 echo "${ECHO_T}no" >&6
19274 if test -z "$CC"; then
19275 if test -n "$ac_tool_prefix"; then
19278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19280 echo "$as_me:$LINENO: checking for $ac_word" >&5
19281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19282 if test "${ac_cv_prog_CC+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19285 if test -n "$CC"; then
19286 ac_cv_prog_CC="$CC" # Let the user override the test.
19288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19289 for as_dir in $PATH
19292 test -z "$as_dir" && as_dir=.
19293 for ac_exec_ext in '' $ac_executable_extensions; do
19294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19295 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19305 if test -n "$CC"; then
19306 echo "$as_me:$LINENO: result: $CC" >&5
19307 echo "${ECHO_T}$CC" >&6
19309 echo "$as_me:$LINENO: result: no" >&5
19310 echo "${ECHO_T}no" >&6
19313 test -n "$CC" && break
19316 if test -z "$CC"; then
19320 # Extract the first word of "$ac_prog", so it can be a program name with args.
19321 set dummy $ac_prog; ac_word=$2
19322 echo "$as_me:$LINENO: checking for $ac_word" >&5
19323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 if test -n "$ac_ct_CC"; then
19328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19331 for as_dir in $PATH
19334 test -z "$as_dir" && as_dir=.
19335 for ac_exec_ext in '' $ac_executable_extensions; do
19336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19337 ac_cv_prog_ac_ct_CC="$ac_prog"
19338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19347 if test -n "$ac_ct_CC"; then
19348 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19349 echo "${ECHO_T}$ac_ct_CC" >&6
19351 echo "$as_me:$LINENO: result: no" >&5
19352 echo "${ECHO_T}no" >&6
19355 test -n "$ac_ct_CC" && break
19364 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19365 See \`config.log' for more details." >&5
19366 echo "$as_me: error: no acceptable C compiler found in \$PATH
19367 See \`config.log' for more details." >&2;}
19368 { (exit 1); exit 1; }; }
19370 # Provide some information about the compiler.
19371 echo "$as_me:$LINENO:" \
19372 "checking for C compiler version" >&5
19373 ac_compiler=`set X $ac_compile; echo $2`
19374 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19375 (eval $ac_compiler --version </dev/null >&5) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }
19379 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19380 (eval $ac_compiler -v </dev/null >&5) 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }
19384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19385 (eval $ac_compiler -V </dev/null >&5) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }
19390 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19391 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19413 rm -f conftest.$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest.$ac_objext'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_compiler_gnu=yes
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19445 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19446 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19447 GCC=`test $ac_compiler_gnu = yes && echo yes`
19448 ac_test_CFLAGS=${CFLAGS+set}
19449 ac_save_CFLAGS=$CFLAGS
19451 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19452 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19453 if test "${ac_cv_prog_cc_g+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 cat >conftest.$ac_ext <<_ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19471 rm -f conftest.$ac_objext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19473 (eval $ac_compile) 2>conftest.er1
19475 grep -v '^ *+' conftest.er1 >conftest.err
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
19480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest.$ac_objext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_prog_cc_g=yes
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19501 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19502 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19503 if test "$ac_test_CFLAGS" = set; then
19504 CFLAGS=$ac_save_CFLAGS
19505 elif test $ac_cv_prog_cc_g = yes; then
19506 if test "$GCC" = yes; then
19512 if test "$GCC" = yes; then
19518 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19519 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19520 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 ac_cv_prog_cc_stdc=no
19525 cat >conftest.$ac_ext <<_ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531 #include <stdarg.h>
19533 #include <sys/types.h>
19534 #include <sys/stat.h>
19535 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19536 struct buf { int x; };
19537 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19538 static char *e (p, i)
19544 static char *f (char * (*g) (char **, int), char **p, ...)
19549 s = g (p, va_arg (v,int));
19554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19555 function prototypes and stuff, but not '\xHH' hex character constants.
19556 These don't provoke an error unfortunately, instead are silently treated
19557 as 'x'. The following induces an error, until -std1 is added to get
19558 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19559 array size at least. It's necessary to write '\x00'==0 to get something
19560 that's true only with -std1. */
19561 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19563 int test (int i, double x);
19564 struct s1 {int (*f) (int a);};
19565 struct s2 {int (*f) (double a);};
19566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19577 # Don't try gcc -ansi; that turns off useful extensions and
19578 # breaks some systems' header files.
19579 # AIX -qlanglvl=ansi
19580 # Ultrix and OSF/1 -std1
19581 # HP-UX 10.20 and later -Ae
19582 # HP-UX older versions -Aa -D_HPUX_SOURCE
19583 # SVR4 -Xc -D__EXTENSIONS__
19584 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19586 CC="$ac_save_CC $ac_arg"
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_cv_prog_cc_stdc=$ac_arg
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19615 rm -f conftest.err conftest.$ac_objext
19617 rm -f conftest.$ac_ext conftest.$ac_objext
19622 case "x$ac_cv_prog_cc_stdc" in
19624 echo "$as_me:$LINENO: result: none needed" >&5
19625 echo "${ECHO_T}none needed" >&6 ;;
19627 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19628 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19629 CC="$CC $ac_cv_prog_cc_stdc" ;;
19632 # Some people use a C++ compiler to compile C. Since we use `exit',
19633 # in C++ we need to declare it. In case someone uses the same compiler
19634 # for both compiling C and C++ we need to have the C++ compiler decide
19635 # the declaration of exit, since it's the most demanding environment.
19636 cat >conftest.$ac_ext <<_ACEOF
19637 #ifndef __cplusplus
19641 rm -f conftest.$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>conftest.er1
19645 grep -v '^ *+' conftest.er1 >conftest.err
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 for ac_declaration in \
19664 'extern "C" void std::exit (int) throw (); using std::exit;' \
19665 'extern "C" void std::exit (int); using std::exit;' \
19666 'extern "C" void exit (int) throw ();' \
19667 'extern "C" void exit (int);' \
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19677 #include <stdlib.h>
19686 rm -f conftest.$ac_objext
19687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19688 (eval $ac_compile) 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
19695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; } &&
19701 { ac_try='test -s conftest.$ac_objext'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732 (eval $ac_compile) 2>conftest.er1
19734 grep -v '^ *+' conftest.er1 >conftest.err
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
19739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest.$ac_objext'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; }; then
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19760 if test -n "$ac_declaration"; then
19761 echo '#ifdef __cplusplus' >>confdefs.h
19762 echo $ac_declaration >>confdefs.h
19763 echo '#endif' >>confdefs.h
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19778 depcc="$CC" am_compiler_list=
19780 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19781 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19782 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19786 # We make a subdir and do the tests there. Otherwise we can end up
19787 # making bogus files that we don't know about and never remove. For
19788 # instance it was reported that on HP-UX the gcc test will end up
19789 # making a dummy file named `D' -- because `-MD' means `put the output
19792 # Copy depcomp to subdir because otherwise we won't find it if we're
19793 # using a relative directory.
19794 cp "$am_depcomp" conftest.dir
19796 # We will build objects and dependencies in a subdirectory because
19797 # it helps to detect inapplicable dependency modes. For instance
19798 # both Tru64's cc and ICC support -MD to output dependencies as a
19799 # side effect of compilation, but ICC will put the dependencies in
19800 # the current directory while Tru64 will put them in the object
19804 am_cv_CC_dependencies_compiler_type=none
19805 if test "$am_compiler_list" = ""; then
19806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19808 for depmode in $am_compiler_list; do
19809 # Setup a source with many dependencies, because some compilers
19810 # like to wrap large dependency lists on column 80 (with \), and
19811 # we should not choose a depcomp mode which is confused by this.
19813 # We need to recreate these files for each test, as the compiler may
19814 # overwrite some of them when testing with obscure command lines.
19815 # This happens at least with the AIX C compiler.
19817 for i in 1 2 3 4 5 6; do
19818 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19820 # Solaris 8's {/usr,}/bin/sh.
19821 touch sub/conftst$i.h
19823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19827 # after this tag, mechanisms are not by side-effect, so they'll
19828 # only be used when explicitly requested
19829 if test "x$enable_dependency_tracking" = xyes; then
19837 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19838 # mode. It turns out that the SunPro C++ compiler does not properly
19839 # handle `-M -o', and we need to detect this.
19840 if depmode=$depmode \
19841 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19843 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19844 >/dev/null 2>conftest.err &&
19845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19846 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19848 # icc doesn't choke on unknown options, it will just issue warnings
19849 # or remarks (even with -Werror). So we grep stderr for any message
19850 # that says an option was ignored or not supported.
19851 # When given -MP, icc 7.0 and 7.1 complain thusly:
19852 # icc: Command line warning: ignoring option '-M'; no argument required
19853 # The diagnosis changed in icc 8.0:
19854 # icc: Command line remark: option '-MP' not supported
19855 if (grep 'ignoring option' conftest.err ||
19856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19857 am_cv_CC_dependencies_compiler_type=$depmode
19864 rm -rf conftest.dir
19866 am_cv_CC_dependencies_compiler_type=none
19870 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19871 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19877 test "x$enable_dependency_tracking" != xno \
19878 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19879 am__fastdepCC_TRUE=
19880 am__fastdepCC_FALSE='#'
19882 am__fastdepCC_TRUE='#'
19883 am__fastdepCC_FALSE=
19887 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19888 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19891 echo timestamp > conftest.file
19892 # Do `set' in a subshell so we don't clobber the current shell's
19893 # arguments. Must try -L first in case configure is actually a
19894 # symlink; some systems play weird games with the mod time of symlinks
19895 # (eg FreeBSD returns the mod time of the symlink's containing
19898 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19899 if test "$*" = "X"; then
19901 set X `ls -t $srcdir/configure conftest.file`
19903 rm -f conftest.file
19904 if test "$*" != "X $srcdir/configure conftest.file" \
19905 && test "$*" != "X conftest.file $srcdir/configure"; then
19907 # If neither matched, then we have a broken ls. This can happen
19908 # if, for instance, CONFIG_SHELL is bash and it inherits a
19909 # broken ls alias from the environment. This has actually
19910 # happened. Such a system could not be considered "sane".
19911 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19912 alias in your environment" >&5
19913 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19914 alias in your environment" >&2;}
19915 { (exit 1); exit 1; }; }
19918 test "$2" = conftest.file
19924 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19925 Check your system clock" >&5
19926 echo "$as_me: error: newly created file is older than distributed files!
19927 Check your system clock" >&2;}
19928 { (exit 1); exit 1; }; }
19930 echo "$as_me:$LINENO: result: yes" >&5
19931 echo "${ECHO_T}yes" >&6
19932 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19933 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19934 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19935 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 cat >conftest.make <<\_ACEOF
19940 @echo 'ac_maketemp="$(MAKE)"'
19942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19943 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19944 if test -n "$ac_maketemp"; then
19945 eval ac_cv_prog_make_${ac_make}_set=yes
19947 eval ac_cv_prog_make_${ac_make}_set=no
19949 rm -f conftest.make
19951 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19952 echo "$as_me:$LINENO: result: yes" >&5
19953 echo "${ECHO_T}yes" >&6
19956 echo "$as_me:$LINENO: result: no" >&5
19957 echo "${ECHO_T}no" >&6
19958 SET_MAKE="MAKE=${MAKE-make}"
19962 # Check architecture signature begin
19964 # Check for the architecture
19965 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19966 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19967 if test "${ac_cv_c_bigendian+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 # See if sys/param.h defines the BYTE_ORDER macro.
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19977 #include <sys/types.h>
19978 #include <sys/param.h>
19983 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19984 bogus endian macros
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 # It does; now see whether it defined to BIG_ENDIAN or not.
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20019 #include <sys/types.h>
20020 #include <sys/param.h>
20025 #if BYTE_ORDER != BIG_ENDIAN
20033 rm -f conftest.$ac_objext
20034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20035 (eval $ac_compile) 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_c_bigendian=yes
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 ac_cv_c_bigendian=no
20061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 # It does not; compile a test program.
20067 if test "$cross_compiling" = yes; then
20068 # try to guess the endianness by grepping values into an object file
20069 ac_cv_c_bigendian=unknown
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20077 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20078 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20079 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20080 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20081 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20085 _ascii (); _ebcdic ();
20090 rm -f conftest.$ac_objext
20091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20092 (eval $ac_compile) 2>conftest.er1
20094 grep -v '^ *+' conftest.er1 >conftest.err
20096 cat conftest.err >&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
20099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20112 ac_cv_c_bigendian=yes
20114 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20115 if test "$ac_cv_c_bigendian" = unknown; then
20116 ac_cv_c_bigendian=no
20118 # finding both strings is unlikely to happen, but who knows?
20119 ac_cv_c_bigendian=unknown
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20138 /* Are we little or big endian? From Harbison&Steele. */
20142 char c[sizeof (long)];
20145 exit (u.c[sizeof (long) - 1] == 1);
20148 rm -f conftest$ac_exeext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20150 (eval $ac_link) 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 ac_cv_c_bigendian=no
20161 echo "$as_me: program exited with status $ac_status" >&5
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ( exit $ac_status )
20166 ac_cv_c_bigendian=yes
20168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20173 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20174 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20175 case $ac_cv_c_bigendian in
20181 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20182 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20183 { (exit 1); exit 1; }; } ;;
20187 cat >>confdefs.h <<_ACEOF
20188 #define GRAS_BIGENDIAN $endian
20192 echo "$as_me:$LINENO: checking size of char" >&5
20193 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20194 if test "${ac_cv_sizeof_char+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 #include "confdefs.h"
20205 #include <sys/types.h>
20211 switch (0) case 0: case (sizeof (char) == $ac_size):;
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218 (eval $ac_compile) 2>conftest.er1
20220 grep -v '^ *+' conftest.er1 >conftest.err
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
20225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest.$ac_objext'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237 ac_cv_sizeof_char=$ac_size
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20244 if test x$ac_cv_sizeof_char != x ; then break; fi
20250 unspecif=$ac_cv_sizeof_char
20251 if test x$unspecif = x ; then
20252 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20253 echo "$as_me: error: cannot determine a size for char" >&2;}
20254 { (exit 1); exit 1; }; }
20257 if test "${ac_cv_sizeof_signed_char+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20261 cat >conftest.$ac_ext <<_ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20267 #include "confdefs.h"
20268 #include <sys/types.h>
20274 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20279 rm -f conftest.$ac_objext
20280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20281 (eval $ac_compile) 2>conftest.er1
20283 grep -v '^ *+' conftest.er1 >conftest.err
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
20288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; } &&
20294 { ac_try='test -s conftest.$ac_objext'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; }; then
20300 ac_cv_sizeof_signed_char=$ac_size
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20313 signed=$ac_cv_sizeof_signed_char
20314 if test x$signed = x ; then
20315 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20316 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20317 { (exit 1); exit 1; }; }
20319 if test x$unspecif != x$signed ; then
20320 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20321 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20322 { (exit 1); exit 1; }; }
20325 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20329 cat >conftest.$ac_ext <<_ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20335 #include "confdefs.h"
20336 #include <sys/types.h>
20342 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349 (eval $ac_compile) 2>conftest.er1
20351 grep -v '^ *+' conftest.er1 >conftest.err
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 ac_cv_sizeof_unsigned_char=$ac_size
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20381 unsigned=$ac_cv_sizeof_unsigned_char
20382 if test x$unsigned = x ; then
20383 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20384 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20385 { (exit 1); exit 1; }; }
20387 if test x$unsigned != x$signed ; then
20388 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20389 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20390 { (exit 1); exit 1; }; }
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 #include "confdefs.h"
20402 signed char testInt;
20403 unsigned char bytes[sizeof(char)];
20410 intTester.testInt = -2;
20411 return ((unsigned int)intTester.bytes[0] +
20412 (unsigned int)intTester.bytes[sizeof(char) - 1]) != 509;
20418 rm -f conftest.$ac_objext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420 (eval $ac_compile) 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
20427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
20445 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
20446 { (exit 1); exit 1; }; }
20448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20451 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20453 cat >>confdefs.h <<_ACEOF
20454 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20458 echo "$as_me:$LINENO: checking size of short int" >&5
20459 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20460 if test "${ac_cv_sizeof_short_int+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20464 cat >conftest.$ac_ext <<_ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470 #include "confdefs.h"
20471 #include <sys/types.h>
20477 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20482 rm -f conftest.$ac_objext
20483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484 (eval $ac_compile) 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest.$ac_objext'
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ac_cv_sizeof_short_int=$ac_size
20505 echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20510 if test x$ac_cv_sizeof_short_int != x ; then break; fi
20516 unspecif=$ac_cv_sizeof_short_int
20517 if test x$unspecif = x ; then
20518 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20519 echo "$as_me: error: cannot determine a size for short int" >&2;}
20520 { (exit 1); exit 1; }; }
20523 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include "confdefs.h"
20534 #include <sys/types.h>
20540 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20545 rm -f conftest.$ac_objext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547 (eval $ac_compile) 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; } &&
20560 { ac_try='test -s conftest.$ac_objext'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ac_cv_sizeof_signed_short_int=$ac_size
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20573 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20579 signed=$ac_cv_sizeof_signed_short_int
20580 if test x$signed = x ; then
20581 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20582 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20583 { (exit 1); exit 1; }; }
20585 if test x$unspecif != x$signed ; then
20586 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20587 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20588 { (exit 1); exit 1; }; }
20591 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20594 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20595 cat >conftest.$ac_ext <<_ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 #include "confdefs.h"
20602 #include <sys/types.h>
20608 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20613 rm -f conftest.$ac_objext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615 (eval $ac_compile) 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; } &&
20628 { ac_try='test -s conftest.$ac_objext'
20629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630 (eval $ac_try) 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; }; then
20634 ac_cv_sizeof_unsigned_short_int=$ac_size
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20647 unsigned=$ac_cv_sizeof_unsigned_short_int
20648 if test x$unsigned = x ; then
20649 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20650 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20651 { (exit 1); exit 1; }; }
20653 if test x$unsigned != x$signed ; then
20654 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20655 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20656 { (exit 1); exit 1; }; }
20660 cat >conftest.$ac_ext <<_ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20666 #include "confdefs.h"
20668 signed short int testInt;
20669 unsigned char bytes[sizeof(short int)];
20676 intTester.testInt = -2;
20677 return ((unsigned int)intTester.bytes[0] +
20678 (unsigned int)intTester.bytes[sizeof(short int) - 1]) != 509;
20684 rm -f conftest.$ac_objext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686 (eval $ac_compile) 2>conftest.er1
20688 grep -v '^ *+' conftest.er1 >conftest.err
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; } &&
20699 { ac_try='test -s conftest.$ac_objext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20710 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
20711 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
20712 { (exit 1); exit 1; }; }
20714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20716 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20717 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20719 cat >>confdefs.h <<_ACEOF
20720 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20724 echo "$as_me:$LINENO: checking size of int" >&5
20725 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20726 if test "${ac_cv_sizeof_int+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20729 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 #include "confdefs.h"
20737 #include <sys/types.h>
20743 switch (0) case 0: case (sizeof (int) == $ac_size):;
20748 rm -f conftest.$ac_objext
20749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20750 (eval $ac_compile) 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } &&
20757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759 (eval $ac_try) 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; } &&
20763 { ac_try='test -s conftest.$ac_objext'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 ac_cv_sizeof_int=$ac_size
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776 if test x$ac_cv_sizeof_int != x ; then break; fi
20782 unspecif=$ac_cv_sizeof_int
20783 if test x$unspecif = x ; then
20784 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20785 echo "$as_me: error: cannot determine a size for int" >&2;}
20786 { (exit 1); exit 1; }; }
20789 if test "${ac_cv_sizeof_signed_int+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 #include "confdefs.h"
20800 #include <sys/types.h>
20806 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20811 rm -f conftest.$ac_objext
20812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20813 (eval $ac_compile) 2>conftest.er1
20815 grep -v '^ *+' conftest.er1 >conftest.err
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } &&
20820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_sizeof_signed_int=$ac_size
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20839 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20845 signed=$ac_cv_sizeof_signed_int
20846 if test x$signed = x ; then
20847 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20848 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20849 { (exit 1); exit 1; }; }
20851 if test x$unspecif != x$signed ; then
20852 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20853 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20854 { (exit 1); exit 1; }; }
20857 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 #include "confdefs.h"
20868 #include <sys/types.h>
20874 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20879 rm -f conftest.$ac_objext
20880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20881 (eval $ac_compile) 2>conftest.er1
20883 grep -v '^ *+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } &&
20888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_cv_sizeof_unsigned_int=$ac_size
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20907 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20913 unsigned=$ac_cv_sizeof_unsigned_int
20914 if test x$unsigned = x ; then
20915 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20916 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20917 { (exit 1); exit 1; }; }
20919 if test x$unsigned != x$signed ; then
20920 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20921 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20922 { (exit 1); exit 1; }; }
20926 cat >conftest.$ac_ext <<_ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include "confdefs.h"
20934 signed int testInt;
20935 unsigned char bytes[sizeof(int)];
20942 intTester.testInt = -2;
20943 return ((unsigned int)intTester.bytes[0] +
20944 (unsigned int)intTester.bytes[sizeof(int) - 1]) != 509;
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952 (eval $ac_compile) 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest.$ac_objext'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
20977 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
20978 { (exit 1); exit 1; }; }
20980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20982 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20983 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20985 cat >>confdefs.h <<_ACEOF
20986 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20990 echo "$as_me:$LINENO: checking size of long int" >&5
20991 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20992 if test "${ac_cv_sizeof_long_int+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21002 #include "confdefs.h"
21003 #include <sys/types.h>
21009 switch (0) case 0: case (sizeof (long int) == $ac_size):;
21014 rm -f conftest.$ac_objext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016 (eval $ac_compile) 2>conftest.er1
21018 grep -v '^ *+' conftest.er1 >conftest.err
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
21023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_sizeof_long_int=$ac_size
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21042 if test x$ac_cv_sizeof_long_int != x ; then break; fi
21048 unspecif=$ac_cv_sizeof_long_int
21049 if test x$unspecif = x ; then
21050 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
21051 echo "$as_me: error: cannot determine a size for long int" >&2;}
21052 { (exit 1); exit 1; }; }
21055 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21059 cat >conftest.$ac_ext <<_ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 #include "confdefs.h"
21066 #include <sys/types.h>
21072 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
21077 rm -f conftest.$ac_objext
21078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21079 (eval $ac_compile) 2>conftest.er1
21081 grep -v '^ *+' conftest.er1 >conftest.err
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
21086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_sizeof_signed_long_int=$ac_size
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21105 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
21111 signed=$ac_cv_sizeof_signed_long_int
21112 if test x$signed = x ; then
21113 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
21114 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
21115 { (exit 1); exit 1; }; }
21117 if test x$unspecif != x$signed ; then
21118 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
21119 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
21120 { (exit 1); exit 1; }; }
21123 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 #include "confdefs.h"
21134 #include <sys/types.h>
21140 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
21145 rm -f conftest.$ac_objext
21146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21147 (eval $ac_compile) 2>conftest.er1
21149 grep -v '^ *+' conftest.er1 >conftest.err
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
21154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; } &&
21160 { ac_try='test -s conftest.$ac_objext'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_cv_sizeof_unsigned_long_int=$ac_size
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21173 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
21179 unsigned=$ac_cv_sizeof_unsigned_long_int
21180 if test x$unsigned = x ; then
21181 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
21182 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
21183 { (exit 1); exit 1; }; }
21185 if test x$unsigned != x$signed ; then
21186 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
21187 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
21188 { (exit 1); exit 1; }; }
21192 cat >conftest.$ac_ext <<_ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 #include "confdefs.h"
21200 signed long int testInt;
21201 unsigned char bytes[sizeof(long int)];
21208 intTester.testInt = -2;
21209 return ((unsigned int)intTester.bytes[0] +
21210 (unsigned int)intTester.bytes[sizeof(long int) - 1]) != 509;
21216 rm -f conftest.$ac_objext
21217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21218 (eval $ac_compile) 2>conftest.er1
21220 grep -v '^ *+' conftest.er1 >conftest.err
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
21225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest.$ac_objext'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
21243 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
21244 { (exit 1); exit 1; }; }
21246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21248 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
21249 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
21251 cat >>confdefs.h <<_ACEOF
21252 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
21256 echo "$as_me:$LINENO: checking size of long long int" >&5
21257 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
21258 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21262 cat >conftest.$ac_ext <<_ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 #include "confdefs.h"
21269 #include <sys/types.h>
21275 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21280 rm -f conftest.$ac_objext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21282 (eval $ac_compile) 2>conftest.er1
21284 grep -v '^ *+' conftest.er1 >conftest.err
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
21289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; } &&
21295 { ac_try='test -s conftest.$ac_objext'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; }; then
21301 ac_cv_sizeof_long_long_int=$ac_size
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21308 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21314 unspecif=$ac_cv_sizeof_long_long_int
21315 if test x$unspecif = x ; then
21316 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21317 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21318 { (exit 1); exit 1; }; }
21321 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21325 cat >conftest.$ac_ext <<_ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 #include "confdefs.h"
21332 #include <sys/types.h>
21338 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345 (eval $ac_compile) 2>conftest.er1
21347 grep -v '^ *+' conftest.er1 >conftest.err
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; } &&
21358 { ac_try='test -s conftest.$ac_objext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_sizeof_signed_long_long_int=$ac_size
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21371 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21377 signed=$ac_cv_sizeof_signed_long_long_int
21378 if test x$signed = x ; then
21379 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21380 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21381 { (exit 1); exit 1; }; }
21383 if test x$unspecif != x$signed ; then
21384 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21385 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21386 { (exit 1); exit 1; }; }
21389 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21393 cat >conftest.$ac_ext <<_ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include "confdefs.h"
21400 #include <sys/types.h>
21406 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21411 rm -f conftest.$ac_objext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21413 (eval $ac_compile) 2>conftest.er1
21415 grep -v '^ *+' conftest.er1 >conftest.err
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; } &&
21426 { ac_try='test -s conftest.$ac_objext'
21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 ac_cv_sizeof_unsigned_long_long_int=$ac_size
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21445 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21446 if test x$unsigned = x ; then
21447 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21448 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21449 { (exit 1); exit 1; }; }
21451 if test x$unsigned != x$signed ; then
21452 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21453 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21454 { (exit 1); exit 1; }; }
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464 #include "confdefs.h"
21466 signed long long int testInt;
21467 unsigned char bytes[sizeof(long long int)];
21474 intTester.testInt = -2;
21475 return ((unsigned int)intTester.bytes[0] +
21476 (unsigned int)intTester.bytes[sizeof(long long int) - 1]) != 509;
21482 rm -f conftest.$ac_objext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484 (eval $ac_compile) 2>conftest.er1
21486 grep -v '^ *+' conftest.er1 >conftest.err
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
21491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; } &&
21497 { ac_try='test -s conftest.$ac_objext'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
21509 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
21510 { (exit 1); exit 1; }; }
21512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21514 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21515 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21517 cat >>confdefs.h <<_ACEOF
21518 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21524 echo "$as_me:$LINENO: checking size of void *" >&5
21525 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21526 if test "${ac_cv_sizeof_void_p+set}" = set; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21530 cat >conftest.$ac_ext <<_ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 #include "confdefs.h"
21537 #include <sys/types.h>
21543 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21548 rm -f conftest.$ac_objext
21549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21550 (eval $ac_compile) 2>conftest.er1
21552 grep -v '^ *+' conftest.er1 >conftest.err
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } &&
21557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; } &&
21563 { ac_try='test -s conftest.$ac_objext'
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ac_cv_sizeof_void_p=$ac_size
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21576 if test x$ac_cv_sizeof_void_p != x ; then break; fi
21582 if test x$ac_cv_sizeof_void_p = x ; then
21583 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21584 echo "$as_me: error: cannot determine a size for void *" >&2;}
21585 { (exit 1); exit 1; }; }
21587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21588 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21590 cat >>confdefs.h <<_ACEOF
21591 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21595 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21596 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21597 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21601 cat >conftest.$ac_ext <<_ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 #include "confdefs.h"
21608 #include <sys/types.h>
21614 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21619 rm -f conftest.$ac_objext
21620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21621 (eval $ac_compile) 2>conftest.er1
21623 grep -v '^ *+' conftest.er1 >conftest.err
21625 cat conftest.err >&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } &&
21628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest.$ac_objext'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21642 echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21647 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21653 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21654 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21655 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21656 { (exit 1); exit 1; }; }
21658 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21659 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21661 cat >>confdefs.h <<_ACEOF
21662 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21667 echo "$as_me:$LINENO: checking size of float" >&5
21668 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21669 if test "${ac_cv_sizeof_float+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21673 cat >conftest.$ac_ext <<_ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h. */
21679 #include "confdefs.h"
21680 #include <sys/types.h>
21686 switch (0) case 0: case (sizeof (float) == $ac_size):;
21691 rm -f conftest.$ac_objext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21693 (eval $ac_compile) 2>conftest.er1
21695 grep -v '^ *+' conftest.er1 >conftest.err
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } &&
21700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; } &&
21706 { ac_try='test -s conftest.$ac_objext'
21707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708 (eval $ac_try) 2>&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21712 ac_cv_sizeof_float=$ac_size
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21719 if test x$ac_cv_sizeof_float != x ; then break; fi
21725 if test x$ac_cv_sizeof_float = x ; then
21726 { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21727 echo "$as_me: error: cannot determine a size for float" >&2;}
21728 { (exit 1); exit 1; }; }
21730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21731 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21733 cat >>confdefs.h <<_ACEOF
21734 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21738 echo "$as_me:$LINENO: checking size of double" >&5
21739 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21740 if test "${ac_cv_sizeof_double+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21744 cat >conftest.$ac_ext <<_ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21750 #include "confdefs.h"
21751 #include <sys/types.h>
21757 switch (0) case 0: case (sizeof (double) == $ac_size):;
21762 rm -f conftest.$ac_objext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21764 (eval $ac_compile) 2>conftest.er1
21766 grep -v '^ *+' conftest.er1 >conftest.err
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
21771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest.$ac_objext'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 ac_cv_sizeof_double=$ac_size
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21790 if test x$ac_cv_sizeof_double != x ; then break; fi
21796 if test x$ac_cv_sizeof_double = x ; then
21797 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21798 echo "$as_me: error: cannot determine a size for double" >&2;}
21799 { (exit 1); exit 1; }; }
21801 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21802 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21804 cat >>confdefs.h <<_ACEOF
21805 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21809 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21810 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21811 cat >conftest.$ac_ext <<_ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 #include "confdefs.h"
21820 unsigned char bytes[sizeof(double)];
21824 unsigned char bytes[sizeof(float)];
21831 if (sizeof(double) != 8 || sizeof(float) != 4)
21834 memset(&doubleTester, 0, sizeof(doubleTester));
21835 memset(&floatTester, 0, sizeof(floatTester));
21837 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21838 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21839 (sizeof(double) == 4) ? 128 :
21840 (sizeof(double) == 8) ? 16 :
21841 (sizeof(double) == 16) ? 1 : 0;
21842 if (doubleTester.testFP != -4.0) return 1;
21844 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21845 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21846 (sizeof(float) == 4) ? 128 :
21847 (sizeof(float) == 8) ? 16 :
21848 (sizeof(float) == 16) ? 1 : 0;
21849 if (floatTester.testFP != -4.0) return 1;
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858 (eval $ac_compile) 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } &&
21865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest.$ac_objext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21879 cat >>confdefs.h <<\_ACEOF
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21889 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21890 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21891 { (exit 1); exit 1; }; }
21893 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21894 echo "${ECHO_T}$IEEE_FP" >&6
21897 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21898 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21899 if test x$endian = x1 ; then
21905 trace="$trace_endian"
21906 trace="${trace}:${ac_cv_sizeof_char}.${ac_cv_sizeof_short_int}.${ac_cv_sizeof_int}.${ac_cv_sizeof_long_int}.${ac_cv_sizeof_long_long_int}"
21907 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21908 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21910 l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=little32;;
21911 l:1.2.4.8.8:8.8:4.8) gras_arch=1; gras_arch_name=little64;;
21912 B:1.2.4.4.8:4.4:4.8) gras_arch=2; gras_arch_name=big32;;
21913 B:1.2.4.8.8:8.8:4.8) gras_arch=3; gras_arch_name=big64;;
21915 if test x$gras_arch = xunknown ; then
21916 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21917 echo "${ECHO_T}damnit ($trace)" >&6
21918 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21919 Please report this architecture trace ($trace) and what it corresponds to." >&5
21920 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21921 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21922 { (exit 1); exit 1; }; }
21924 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21926 cat >>confdefs.h <<_ACEOF
21927 #define GRAS_THISARCH_NAME "$gras_arch_name"
21931 cat >>confdefs.h <<_ACEOF
21932 #define GRAS_THISARCH $gras_arch
21935 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21936 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21938 # Check architecture signature end
21940 # Checks for header files.
21941 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21942 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21943 if test "${ac_cv_header_stdc+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #include <stdlib.h>
21953 #include <stdarg.h>
21954 #include <string.h>
21965 rm -f conftest.$ac_objext
21966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21967 (eval $ac_compile) 2>conftest.er1
21969 grep -v '^ *+' conftest.er1 >conftest.err
21971 cat conftest.err >&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } &&
21974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try='test -s conftest.$ac_objext'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21986 ac_cv_header_stdc=yes
21988 echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ac_cv_header_stdc=no
21993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21995 if test $ac_cv_header_stdc = yes; then
21996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 #include <string.h>
22006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22007 $EGREP "memchr" >/dev/null 2>&1; then
22010 ac_cv_header_stdc=no
22016 if test $ac_cv_header_stdc = yes; then
22017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22018 cat >conftest.$ac_ext <<_ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 #include <stdlib.h>
22027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22028 $EGREP "free" >/dev/null 2>&1; then
22031 ac_cv_header_stdc=no
22037 if test $ac_cv_header_stdc = yes; then
22038 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22039 if test "$cross_compiling" = yes; then
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22049 #if ((' ' & 0x0FF) == 0x020)
22050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22053 # define ISLOWER(c) \
22054 (('a' <= (c) && (c) <= 'i') \
22055 || ('j' <= (c) && (c) <= 'r') \
22056 || ('s' <= (c) && (c) <= 'z'))
22057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22065 for (i = 0; i < 256; i++)
22066 if (XOR (islower (i), ISLOWER (i))
22067 || toupper (i) != TOUPPER (i))
22072 rm -f conftest$ac_exeext
22073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22074 (eval $ac_link) 2>&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22085 echo "$as_me: program exited with status $ac_status" >&5
22086 echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22089 ( exit $ac_status )
22090 ac_cv_header_stdc=no
22092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
22098 if test $ac_cv_header_stdc = yes; then
22100 cat >>confdefs.h <<\_ACEOF
22101 #define STDC_HEADERS 1
22110 for ac_header in stddef.h stdlib.h string.h unistd.h
22112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22114 echo "$as_me:$LINENO: checking for $ac_header" >&5
22115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22122 # Is the header compilable?
22123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 $ac_includes_default
22132 #include <$ac_header>
22134 rm -f conftest.$ac_objext
22135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22136 (eval $ac_compile) 2>conftest.er1
22138 grep -v '^ *+' conftest.er1 >conftest.err
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } &&
22143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145 (eval $ac_try) 2>&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; } &&
22149 { ac_try='test -s conftest.$ac_objext'
22150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151 (eval $ac_try) 2>&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; }; then
22155 ac_header_compiler=yes
22157 echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22160 ac_header_compiler=no
22162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22164 echo "${ECHO_T}$ac_header_compiler" >&6
22166 # Is the header present?
22167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22169 cat >conftest.$ac_ext <<_ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 #include <$ac_header>
22177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22180 grep -v '^ *+' conftest.er1 >conftest.err
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } >/dev/null; then
22185 if test -s conftest.err; then
22186 ac_cpp_err=$ac_c_preproc_warn_flag
22187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22194 if test -z "$ac_cpp_err"; then
22195 ac_header_preproc=yes
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22200 ac_header_preproc=no
22202 rm -f conftest.err conftest.$ac_ext
22203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22204 echo "${ECHO_T}$ac_header_preproc" >&6
22206 # So? What about this header?
22207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22213 ac_header_preproc=yes
22216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22230 ## ----------------------------------------- ##
22231 ## Report this to martin.quinson@ens-lyon.fr ##
22232 ## ----------------------------------------- ##
22235 sed "s/^/$as_me: WARNING: /" >&2
22238 echo "$as_me:$LINENO: checking for $ac_header" >&5
22239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 eval "$as_ac_Header=\$ac_header_preproc"
22245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22250 cat >>confdefs.h <<_ACEOF
22251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22259 # Checks for typedefs, structures, and compiler characteristics.
22260 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22261 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22262 if test "${ac_cv_c_const+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22265 cat >conftest.$ac_ext <<_ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22275 /* FIXME: Include the comments suggested by Paul. */
22276 #ifndef __cplusplus
22277 /* Ultrix mips cc rejects this. */
22278 typedef int charset[2];
22280 /* SunOS 4.1.1 cc rejects this. */
22281 char const *const *ccp;
22283 /* NEC SVR4.0.2 mips cc rejects this. */
22284 struct point {int x, y;};
22285 static struct point const zero = {0,0};
22286 /* AIX XL C 1.02.0.0 rejects this.
22287 It does not let you subtract one const X* pointer from another in
22288 an arm of an if-expression whose if-part is not a constant
22290 const char *g = "string";
22291 ccp = &g + (g ? g-g : 0);
22292 /* HPUX 7.0 cc rejects these. */
22295 ccp = (char const *const *) p;
22296 { /* SCO 3.2v4 cc rejects this. */
22298 char const *s = 0 ? (char *) 0 : (char const *) 0;
22302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22303 int x[] = {25, 17};
22304 const int *foo = &x[0];
22307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22308 typedef const int *iptr;
22312 { /* AIX XL C 1.02.0.0 rejects this saying
22313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22314 struct s { int j; const int *ap[3]; };
22315 struct s *b; b->j = 5;
22317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22318 const int foo = 10;
22326 rm -f conftest.$ac_objext
22327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22328 (eval $ac_compile) 2>conftest.er1
22330 grep -v '^ *+' conftest.er1 >conftest.err
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } &&
22335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; } &&
22341 { ac_try='test -s conftest.$ac_objext'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22349 echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22356 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22357 echo "${ECHO_T}$ac_cv_c_const" >&6
22358 if test $ac_cv_c_const = no; then
22360 cat >>confdefs.h <<\_ACEOF
22366 echo "$as_me:$LINENO: checking for inline" >&5
22367 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22368 if test "${ac_cv_c_inline+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22372 for ac_kw in inline __inline__ __inline; do
22373 cat >conftest.$ac_ext <<_ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 #ifndef __cplusplus
22381 static $ac_kw foo_t static_foo () {return 0; }
22382 $ac_kw foo_t foo () {return 0; }
22386 rm -f conftest.$ac_objext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22388 (eval $ac_compile) 2>conftest.er1
22390 grep -v '^ *+' conftest.er1 >conftest.err
22392 cat conftest.err >&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; } &&
22401 { ac_try='test -s conftest.$ac_objext'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 ac_cv_c_inline=$ac_kw; break
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22417 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22418 echo "${ECHO_T}$ac_cv_c_inline" >&6
22421 case $ac_cv_c_inline in
22424 case $ac_cv_c_inline in
22426 *) ac_val=$ac_cv_c_inline;;
22428 cat >>confdefs.h <<_ACEOF
22429 #ifndef __cplusplus
22430 #define inline $ac_val
22436 echo "$as_me:$LINENO: checking for size_t" >&5
22437 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22438 if test "${ac_cv_type_size_t+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 $ac_includes_default
22453 if (sizeof (size_t))
22459 rm -f conftest.$ac_objext
22460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22461 (eval $ac_compile) 2>conftest.er1
22463 grep -v '^ *+' conftest.er1 >conftest.err
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } &&
22468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; } &&
22474 { ac_try='test -s conftest.$ac_objext'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; }; then
22480 ac_cv_type_size_t=yes
22482 echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22485 ac_cv_type_size_t=no
22487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22489 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22490 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22491 if test $ac_cv_type_size_t = yes; then
22495 cat >>confdefs.h <<_ACEOF
22496 #define size_t unsigned
22502 # Checks for library functions.
22504 for ac_header in stdlib.h
22506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22508 echo "$as_me:$LINENO: checking for $ac_header" >&5
22509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22516 # Is the header compilable?
22517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22519 cat >conftest.$ac_ext <<_ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h. */
22525 $ac_includes_default
22526 #include <$ac_header>
22528 rm -f conftest.$ac_objext
22529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22530 (eval $ac_compile) 2>conftest.er1
22532 grep -v '^ *+' conftest.er1 >conftest.err
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } &&
22537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; } &&
22543 { ac_try='test -s conftest.$ac_objext'
22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545 (eval $ac_try) 2>&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549 ac_header_compiler=yes
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 ac_header_compiler=no
22556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22558 echo "${ECHO_T}$ac_header_compiler" >&6
22560 # Is the header present?
22561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22563 cat >conftest.$ac_ext <<_ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22569 #include <$ac_header>
22571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22574 grep -v '^ *+' conftest.er1 >conftest.err
22576 cat conftest.err >&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } >/dev/null; then
22579 if test -s conftest.err; then
22580 ac_cpp_err=$ac_c_preproc_warn_flag
22581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22588 if test -z "$ac_cpp_err"; then
22589 ac_header_preproc=yes
22591 echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ac_header_preproc=no
22596 rm -f conftest.err conftest.$ac_ext
22597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22598 echo "${ECHO_T}$ac_header_preproc" >&6
22600 # So? What about this header?
22601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22607 ac_header_preproc=yes
22610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22624 ## ----------------------------------------- ##
22625 ## Report this to martin.quinson@ens-lyon.fr ##
22626 ## ----------------------------------------- ##
22629 sed "s/^/$as_me: WARNING: /" >&2
22632 echo "$as_me:$LINENO: checking for $ac_header" >&5
22633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 eval "$as_ac_Header=\$ac_header_preproc"
22639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22644 cat >>confdefs.h <<_ACEOF
22645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22652 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22653 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22654 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 if test "$cross_compiling" = yes; then
22658 ac_cv_func_malloc_0_nonnull=no
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 #if STDC_HEADERS || HAVE_STDLIB_H
22667 # include <stdlib.h>
22675 exit (malloc (0) ? 0 : 1);
22680 rm -f conftest$ac_exeext
22681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22682 (eval $ac_link) 2>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687 (eval $ac_try) 2>&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); }; }; then
22691 ac_cv_func_malloc_0_nonnull=yes
22693 echo "$as_me: program exited with status $ac_status" >&5
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22697 ( exit $ac_status )
22698 ac_cv_func_malloc_0_nonnull=no
22700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22703 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22704 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22705 if test $ac_cv_func_malloc_0_nonnull = yes; then
22707 cat >>confdefs.h <<\_ACEOF
22708 #define HAVE_MALLOC 1
22712 cat >>confdefs.h <<\_ACEOF
22713 #define HAVE_MALLOC 0
22717 "malloc.$ac_objext" | \
22718 *" malloc.$ac_objext" | \
22719 "malloc.$ac_objext "* | \
22720 *" malloc.$ac_objext "* ) ;;
22721 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22725 cat >>confdefs.h <<\_ACEOF
22726 #define malloc rpl_malloc
22733 echo "$as_me:$LINENO: checking for working memcmp" >&5
22734 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22735 if test "${ac_cv_func_memcmp_working+set}" = set; then
22736 echo $ECHO_N "(cached) $ECHO_C" >&6
22738 if test "$cross_compiling" = yes; then
22739 ac_cv_func_memcmp_working=no
22741 cat >conftest.$ac_ext <<_ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22747 $ac_includes_default
22752 /* Some versions of memcmp are not 8-bit clean. */
22753 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22754 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22757 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22758 or more and with at least one buffer not starting on a 4-byte boundary.
22759 William Lewis provided this test program. */
22764 for (i = 0; i < 4; i++)
22768 strcpy (a, "--------01111111");
22769 strcpy (b, "--------10000000");
22770 if (memcmp (a, b, 16) >= 0)
22780 rm -f conftest$ac_exeext
22781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22782 (eval $ac_link) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787 (eval $ac_try) 2>&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; }; then
22791 ac_cv_func_memcmp_working=yes
22793 echo "$as_me: program exited with status $ac_status" >&5
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 ( exit $ac_status )
22798 ac_cv_func_memcmp_working=no
22800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22803 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22804 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22805 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22806 "memcmp.$ac_objext" | \
22807 *" memcmp.$ac_objext" | \
22808 "memcmp.$ac_objext "* | \
22809 *" memcmp.$ac_objext "* ) ;;
22810 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22818 for ac_func in memset strchr strerror usleep
22820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22821 echo "$as_me:$LINENO: checking for $ac_func" >&5
22822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22823 if eval "test \"\${$as_ac_var+set}\" = set"; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 cat >conftest.$ac_ext <<_ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22834 #define $ac_func innocuous_$ac_func
22836 /* System header to define __stub macros and hopefully few prototypes,
22837 which can conflict with char $ac_func (); below.
22838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22839 <limits.h> exists even on freestanding compilers. */
22842 # include <limits.h>
22844 # include <assert.h>
22849 /* Override any gcc2 internal prototype to avoid an error. */
22854 /* We use char because int might match the return type of a gcc2
22855 builtin and then its argument prototype would still apply. */
22857 /* The GNU C library defines this for functions which it implements
22858 to always fail with ENOSYS. Some functions are actually named
22859 something starting with __ and the normal name is an alias. */
22860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22863 char (*f) () = $ac_func;
22872 return f != $ac_func;
22877 rm -f conftest.$ac_objext conftest$ac_exeext
22878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22879 (eval $ac_link) 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
22886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; } &&
22892 { ac_try='test -s conftest$ac_exeext'
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 eval "$as_ac_var=yes"
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22903 eval "$as_ac_var=no"
22905 rm -f conftest.err conftest.$ac_objext \
22906 conftest$ac_exeext conftest.$ac_ext
22908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22910 if test `eval echo '${'$as_ac_var'}'` = yes; then
22911 cat >>confdefs.h <<_ACEOF
22912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22919 # Can we rebuild the documentation?
22922 # Check whether --with-html-dir or --without-html-dir was given.
22923 if test "${with_html_dir+set}" = set; then
22924 withval="$with_html_dir"
22927 with_html_dir='${datadir}/gtk-doc/html'
22929 HTML_DIR="$with_html_dir"
22932 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22933 if test "${enable_gtk_doc+set}" = set; then
22934 enableval="$enable_gtk_doc"
22941 if test x$enable_gtk_doc = xyes; then
22942 if test -z "$PKG_CONFIG"; then
22943 # Extract the first word of "pkg-config", so it can be a program name with args.
22944 set dummy pkg-config; ac_word=$2
22945 echo "$as_me:$LINENO: checking for $ac_word" >&5
22946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22947 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22948 echo $ECHO_N "(cached) $ECHO_C" >&6
22950 case $PKG_CONFIG in
22952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22956 for as_dir in $PATH
22959 test -z "$as_dir" && as_dir=.
22960 for ac_exec_ext in '' $ac_executable_extensions; do
22961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22962 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22975 if test -n "$PKG_CONFIG"; then
22976 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22977 echo "${ECHO_T}$PKG_CONFIG" >&6
22979 echo "$as_me:$LINENO: result: no" >&5
22980 echo "${ECHO_T}no" >&6
22984 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22989 if test "$have_gtk_doc" != yes; then
22996 if test x$enable_gtk_doc = xyes; then
22997 ENABLE_GTK_DOC_TRUE=
22998 ENABLE_GTK_DOC_FALSE='#'
23000 ENABLE_GTK_DOC_TRUE='#'
23001 ENABLE_GTK_DOC_FALSE=
23006 if test -n "$LIBTOOL"; then
23007 GTK_DOC_USE_LIBTOOL_TRUE=
23008 GTK_DOC_USE_LIBTOOL_FALSE='#'
23010 GTK_DOC_USE_LIBTOOL_TRUE='#'
23011 GTK_DOC_USE_LIBTOOL_FALSE=
23025 aci_nameok=`echo SimGrid|sed 'y/-/./'`
23026 if test "xSimGrid" != "x$aci_nameok" ; then
23027 { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
23028 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
23029 { (exit 1); exit 1; }; }
23031 echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
23032 aci_module_desc_SimGrid="the SimGrid simulator"
23033 aci_packages="$aci_packages SimGrid"
23036 # Check whether --with-SimGrid or --without-SimGrid was given.
23037 if test "${with_SimGrid+set}" = set; then
23038 withval="$with_SimGrid"
23039 with_SimGrid=$withval
23041 if test "$withval" = yes ; then good=no; fi
23042 if test "$withval" = no ; then good=no; fi
23043 if test $good = no ; then
23044 { { echo "$as_me:$LINENO: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&5
23045 echo "$as_me: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&2;}
23046 { (exit 1); exit 1; }; }
23048 aci_pkg_prefix_SimGrid="$withval"
23049 CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
23050 LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
23055 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
23056 if test "${with_SimGrid_includes+set}" = set; then
23057 withval="$with_SimGrid_includes"
23058 CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
23059 aci_pkg_inc_SimGrid="$withval"
23064 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
23065 if test "${with_SimGrid_libraries+set}" = set; then
23066 withval="$with_SimGrid_libraries"
23067 LIBS_SimGrid="-L$withval $LIBS_SimGrid"
23068 aci_pkg_lib_SimGrid="$withval"
23072 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
23073 if test "${with_SimGrid_extra+set}" = set; then
23074 withval="$with_SimGrid_extra"
23075 LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
23076 aci_pkg_extra_SimGrid="$withval"
23080 OLD_LDFLAGS=$LDFLAGS
23082 OLD_CPPFLAGS=$CPPFLAGS
23084 i=`echo -lsimgrid|wc -l`
23085 if test $i != 1 && test $i != 0 ; then
23086 { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
23087 please no newline and no tab." >&5
23088 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
23089 please no newline and no tab." >&2;}
23090 { (exit 1); exit 1; }; }
23093 ac_func_search_save_LIBS="$LIBS"
23094 ac_func_search_save_this_LIBS="$LIBS_SimGrid"
23096 echo "----------------------------------------" >&5
23097 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
23098 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23106 /* Override any gcc2 internal prototype to avoid an error. */
23110 /* We use char because int might match the return type of a gcc2
23111 builtin and then its argument prototype would still apply. */
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123 (eval $ac_link) 2>conftest.er1
23125 grep -v '^ *+' conftest.er1 >conftest.err
23127 cat conftest.err >&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
23130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest$ac_exeext'
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 echo "$as_me:$LINENO: result: yes" >&5
23143 echo "${ECHO_T}yes" >&6 aci_found="yes"
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 echo "$as_me:$LINENO: result: no" >&5
23149 echo "${ECHO_T}no" >&6
23151 rm -f conftest.err conftest.$ac_objext \
23152 conftest$ac_exeext conftest.$ac_ext
23153 if test "$aci_found" = "no"; then
23154 if test -n "$LIBS_SimGrid" ; then
23155 LIBS="$LIBS_SimGrid"
23156 echo "----------------------------------------" >&5
23157 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
23158 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
23159 cat >conftest.$ac_ext <<_ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23166 /* Override any gcc2 internal prototype to avoid an error. */
23170 /* We use char because int might match the return type of a gcc2
23171 builtin and then its argument prototype would still apply. */
23181 rm -f conftest.$ac_objext conftest$ac_exeext
23182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23183 (eval $ac_link) 2>conftest.er1
23185 grep -v '^ *+' conftest.er1 >conftest.err
23187 cat conftest.err >&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } &&
23190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; } &&
23196 { ac_try='test -s conftest$ac_exeext'
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; }; then
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23209 rm -f conftest.err conftest.$ac_objext \
23210 conftest$ac_exeext conftest.$ac_ext
23211 echo "$as_me:$LINENO: result: $aci_found" >&5
23212 echo "${ECHO_T}$aci_found" >&6
23217 if test "x$aci_found" = "xno"; then
23218 LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
23219 LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
23220 echo "----------------------------------------" >&5
23221 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
23222 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
23223 cat >conftest.$ac_ext <<_ACEOF
23226 cat confdefs.h >>conftest.$ac_ext
23227 cat >>conftest.$ac_ext <<_ACEOF
23228 /* end confdefs.h. */
23230 /* Override any gcc2 internal prototype to avoid an error. */
23234 /* We use char because int might match the return type of a gcc2
23235 builtin and then its argument prototype would still apply. */
23245 rm -f conftest.$ac_objext conftest$ac_exeext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23247 (eval $ac_link) 2>conftest.er1
23249 grep -v '^ *+' conftest.er1 >conftest.err
23251 cat conftest.err >&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); } &&
23254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; } &&
23260 { ac_try='test -s conftest$ac_exeext'
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; }; then
23268 echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23273 rm -f conftest.err conftest.$ac_objext \
23274 conftest$ac_exeext conftest.$ac_ext
23275 echo "$as_me:$LINENO: result: $aci_found" >&5
23276 echo "${ECHO_T}$aci_found" >&6
23279 LIBS="$ac_func_search_save_LIBS"
23281 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23282 CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23283 echo "CPPFLAGS=$CPPFLAGS">&5;
23284 if test "${ac_cv_header_simgrid_h+set}" = set; then
23285 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23286 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23287 if test "${ac_cv_header_simgrid_h+set}" = set; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23291 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23293 # Is the header compilable?
23294 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23295 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23296 cat >conftest.$ac_ext <<_ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302 $ac_includes_default
23303 #include <simgrid.h>
23305 rm -f conftest.$ac_objext
23306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23307 (eval $ac_compile) 2>conftest.er1
23309 grep -v '^ *+' conftest.er1 >conftest.err
23311 cat conftest.err >&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
23314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; } &&
23320 { ac_try='test -s conftest.$ac_objext'
23321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322 (eval $ac_try) 2>&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; }; then
23326 ac_header_compiler=yes
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 ac_header_compiler=no
23333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23335 echo "${ECHO_T}$ac_header_compiler" >&6
23337 # Is the header present?
23338 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23339 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23340 cat >conftest.$ac_ext <<_ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h. */
23346 #include <simgrid.h>
23348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23351 grep -v '^ *+' conftest.er1 >conftest.err
23353 cat conftest.err >&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } >/dev/null; then
23356 if test -s conftest.err; then
23357 ac_cpp_err=$ac_c_preproc_warn_flag
23358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23365 if test -z "$ac_cpp_err"; then
23366 ac_header_preproc=yes
23368 echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23371 ac_header_preproc=no
23373 rm -f conftest.err conftest.$ac_ext
23374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23375 echo "${ECHO_T}$ac_header_preproc" >&6
23377 # So? What about this header?
23378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23380 { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23381 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23382 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23383 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23384 ac_header_preproc=yes
23387 { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23388 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23389 { echo "$as_me:$LINENO: WARNING: simgrid.h: check for missing prerequisite headers?" >&5
23390 echo "$as_me: WARNING: simgrid.h: check for missing prerequisite headers?" >&2;}
23391 { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23392 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23393 { echo "$as_me:$LINENO: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&5
23394 echo "$as_me: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23395 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23396 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23397 { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23398 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23401 ## ----------------------------------------- ##
23402 ## Report this to martin.quinson@ens-lyon.fr ##
23403 ## ----------------------------------------- ##
23406 sed "s/^/$as_me: WARNING: /" >&2
23409 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23410 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23411 if test "${ac_cv_header_simgrid_h+set}" = set; then
23412 echo $ECHO_N "(cached) $ECHO_C" >&6
23414 ac_cv_header_simgrid_h=$ac_header_preproc
23416 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23417 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23420 if test $ac_cv_header_simgrid_h = yes; then
23428 if test "x$aci_found" = "xno" ; then
23434 if test "x$HAVE_SimGrid" != "xyes" ; then
23442 echo "END OF ACI-PACKAGE(SimGrid)">&5;
23443 LDFLAGS=$OLDLDFLAGS
23444 CPPFLAGS=$OLDCPPFLAGS
23449 if test x$HAVE_SimGrid = xyes; then
23458 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23459 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23460 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23463 ac_check_lib_save_LIBS=$LIBS
23465 cat >conftest.$ac_ext <<_ACEOF
23468 cat confdefs.h >>conftest.$ac_ext
23469 cat >>conftest.$ac_ext <<_ACEOF
23470 /* end confdefs.h. */
23472 /* Override any gcc2 internal prototype to avoid an error. */
23476 /* We use char because int might match the return type of a gcc2
23477 builtin and then its argument prototype would still apply. */
23478 char gethostbyname ();
23487 rm -f conftest.$ac_objext conftest$ac_exeext
23488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23489 (eval $ac_link) 2>conftest.er1
23491 grep -v '^ *+' conftest.er1 >conftest.err
23493 cat conftest.err >&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } &&
23496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); }; } &&
23502 { ac_try='test -s conftest$ac_exeext'
23503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23504 (eval $ac_try) 2>&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); }; }; then
23508 ac_cv_lib_nsl_gethostbyname=yes
23510 echo "$as_me: failed program was:" >&5
23511 sed 's/^/| /' conftest.$ac_ext >&5
23513 ac_cv_lib_nsl_gethostbyname=no
23515 rm -f conftest.err conftest.$ac_objext \
23516 conftest$ac_exeext conftest.$ac_ext
23517 LIBS=$ac_check_lib_save_LIBS
23519 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23520 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23521 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23525 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23526 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23527 if test "${ac_cv_lib_socket_connect+set}" = set; then
23528 echo $ECHO_N "(cached) $ECHO_C" >&6
23530 ac_check_lib_save_LIBS=$LIBS
23531 LIBS="-lsocket $LIBS"
23532 cat >conftest.$ac_ext <<_ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h. */
23539 /* Override any gcc2 internal prototype to avoid an error. */
23543 /* We use char because int might match the return type of a gcc2
23544 builtin and then its argument prototype would still apply. */
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556 (eval $ac_link) 2>conftest.er1
23558 grep -v '^ *+' conftest.er1 >conftest.err
23560 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
23563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; } &&
23569 { ac_try='test -s conftest$ac_exeext'
23570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; }; then
23575 ac_cv_lib_socket_connect=yes
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23580 ac_cv_lib_socket_connect=no
23582 rm -f conftest.err conftest.$ac_objext \
23583 conftest$ac_exeext conftest.$ac_ext
23584 LIBS=$ac_check_lib_save_LIBS
23586 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23587 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23588 if test $ac_cv_lib_socket_connect = yes; then
23589 LIBS="$LIBS -lsocket"
23593 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23594 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23595 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23596 if test "${enable_maintainer_mode+set}" = set; then
23597 enableval="$enable_maintainer_mode"
23598 USE_MAINTAINER_MODE=$enableval
23600 USE_MAINTAINER_MODE=no
23602 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23603 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23606 if test $USE_MAINTAINER_MODE = yes; then
23607 MAINTAINER_MODE_TRUE=
23608 MAINTAINER_MODE_FALSE='#'
23610 MAINTAINER_MODE_TRUE='#'
23611 MAINTAINER_MODE_FALSE=
23614 MAINT=$MAINTAINER_MODE_TRUE
23617 if test x$USE_MAINTAINER_MODE = xyes
23620 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23621 if test "${enable_compile_warnings+set}" = set; then
23622 enableval="$enable_compile_warnings"
23625 enable_compile_warnings=yes
23628 echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23629 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23631 if test "x$GCC" != xyes; then
23632 enable_compile_warnings=no
23635 if test "x$enable_compile_warnings" != "xno"; then
23636 if test "x$GCC" = "xyes"; then
23637 case " $CFLAGS " in
23639 *) warnCFLAGS="-g -Wall -Wunused" ;;
23642 ## -W is not all that useful. And it cannot be controlled
23643 ## with individual -Wno-xxx flags, unlike -Wall
23644 if test "x$enable_compile_warnings" = "xyes"; then
23645 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations\
23646 -finline-functions -Wshadow -Wpointer-arith \
23647 -Wwrite-strings -Wno-unused-function -Werror"
23651 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23652 echo "${ECHO_T}$warnCFLAGS" >&6
23654 # Check whether --enable-iso-c or --disable-iso-c was given.
23655 if test "${enable_iso_c+set}" = set; then
23656 enableval="$enable_iso_c"
23662 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23663 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23665 if test "x$enable_iso_c" != "xno"; then
23666 if test "x$GCC" = "xyes"; then
23667 case " $CFLAGS " in
23669 *) complCFLAGS="$complCFLAGS -ansi" ;;
23672 case " $CFLAGS " in
23674 *) complCFLAGS="$complCFLAGS -pedantic" ;;
23678 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23679 echo "${ECHO_T}$complCFLAGS" >&6
23680 if test "x$cflags_set" != "xyes"; then
23681 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23692 # Extract the first word of "bash", so it can be a program name with args.
23693 set dummy bash; ac_word=$2
23694 echo "$as_me:$LINENO: checking for $ac_word" >&5
23695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23696 if test "${ac_cv_prog_BASH+set}" = set; then
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
23699 if test -n "$BASH"; then
23700 ac_cv_prog_BASH="$BASH" # Let the user override the test.
23702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23703 for as_dir in $PATH
23706 test -z "$as_dir" && as_dir=.
23707 for ac_exec_ext in '' $ac_executable_extensions; do
23708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23709 ac_cv_prog_BASH="`which bash`"
23710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23716 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23719 BASH=$ac_cv_prog_BASH
23720 if test -n "$BASH"; then
23721 echo "$as_me:$LINENO: result: $BASH" >&5
23722 echo "${ECHO_T}$BASH" >&6
23724 echo "$as_me:$LINENO: result: no" >&5
23725 echo "${ECHO_T}no" >&6
23728 WARNING="This file is generated, do not edit"
23733 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/examples/Makefile src/examples/ping/Makefile doc/Makefile"
23736 # src/modules/Makefile
23737 # src/examples/bandwidth/Makefile src/examples/saturate/Makefile
23738 # src/examples/alnem/Makefile
23740 cat >confcache <<\_ACEOF
23741 # This file is a shell script that caches the results of configure
23742 # tests run on this system so they can be shared between configure
23743 # scripts and configure runs, see configure's option --config-cache.
23744 # It is not useful on other systems. If it contains results you don't
23745 # want to keep, you may remove or edit it.
23747 # config.status only pays attention to the cache file if you give it
23748 # the --recheck option to rerun configure.
23750 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23751 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23752 # following values.
23756 # The following way of writing the cache mishandles newlines in values,
23757 # but we know of no workaround that is simple, portable, and efficient.
23758 # So, don't put newlines in cache variables' values.
23759 # Ultrix sh set writes to stderr and can't be redirected directly,
23760 # and sets the high bit in the cache file unless we assign to the vars.
23763 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23765 # `set' does not quote correctly, so add quotes (double-quote
23766 # substitution turns \\\\ into \\, and sed turns \\ into \).
23769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23772 # `set' quotes correctly as required by POSIX, so do not add quotes.
23774 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23783 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23785 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23786 if test -w $cache_file; then
23787 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23788 cat confcache >$cache_file
23790 echo "not updating unwritable cache $cache_file"
23795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23796 # Let make expand exec_prefix.
23797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23799 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23800 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23801 # trailing colons and then remove the whole line if VPATH becomes empty
23802 # (actually we leave an empty line to preserve line numbers).
23803 if test "x$srcdir" = x.; then
23804 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23805 s/:*\$(srcdir):*/:/;
23806 s/:*\${srcdir}:*/:/;
23808 s/^\([^=]*=[ ]*\):*/\1/;
23814 DEFS=-DHAVE_CONFIG_H
23818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23819 # 1. Remove the extension, and $U if already installed.
23820 ac_i=`echo "$ac_i" |
23821 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23823 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23824 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23826 LIBOBJS=$ac_libobjs
23828 LTLIBOBJS=$ac_ltlibobjs
23831 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23832 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23833 Usually this means the macro was only invoked conditionally." >&5
23834 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23835 Usually this means the macro was only invoked conditionally." >&2;}
23836 { (exit 1); exit 1; }; }
23838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23839 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23840 Usually this means the macro was only invoked conditionally." >&5
23841 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23842 Usually this means the macro was only invoked conditionally." >&2;}
23843 { (exit 1); exit 1; }; }
23845 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23846 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23847 Usually this means the macro was only invoked conditionally." >&5
23848 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23849 Usually this means the macro was only invoked conditionally." >&2;}
23850 { (exit 1); exit 1; }; }
23852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23853 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23854 Usually this means the macro was only invoked conditionally." >&5
23855 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23856 Usually this means the macro was only invoked conditionally." >&2;}
23857 { (exit 1); exit 1; }; }
23859 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23860 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23861 Usually this means the macro was only invoked conditionally." >&5
23862 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23863 Usually this means the macro was only invoked conditionally." >&2;}
23864 { (exit 1); exit 1; }; }
23866 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23867 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23868 Usually this means the macro was only invoked conditionally." >&5
23869 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23870 Usually this means the macro was only invoked conditionally." >&2;}
23871 { (exit 1); exit 1; }; }
23873 if test -z "${HAVE_SG_TRUE}" && test -z "${HAVE_SG_FALSE}"; then
23874 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SG\" was never defined.
23875 Usually this means the macro was only invoked conditionally." >&5
23876 echo "$as_me: error: conditional \"HAVE_SG\" was never defined.
23877 Usually this means the macro was only invoked conditionally." >&2;}
23878 { (exit 1); exit 1; }; }
23880 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23881 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23882 Usually this means the macro was only invoked conditionally." >&5
23883 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23884 Usually this means the macro was only invoked conditionally." >&2;}
23885 { (exit 1); exit 1; }; }
23888 : ${CONFIG_STATUS=./config.status}
23889 ac_clean_files_save=$ac_clean_files
23890 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23891 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23892 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23893 cat >$CONFIG_STATUS <<_ACEOF
23895 # Generated by $as_me.
23896 # Run this file to recreate the current configuration.
23897 # Compiler output produced by configure, useful for debugging
23898 # configure, is in config.log if it exists.
23901 ac_cs_recheck=false
23903 SHELL=\${CONFIG_SHELL-$SHELL}
23906 cat >>$CONFIG_STATUS <<\_ACEOF
23907 ## --------------------- ##
23908 ## M4sh Initialization. ##
23909 ## --------------------- ##
23911 # Be Bourne compatible
23912 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23915 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23916 # is contrary to our usage. Disable this feature.
23917 alias -g '${1+"$@"}'='"$@"'
23918 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23921 DUALCASE=1; export DUALCASE # for MKS sh
23923 # Support unset when possible.
23924 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23931 # Work around bugs in pre-3.0 UWIN ksh.
23932 $as_unset ENV MAIL MAILPATH
23939 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23940 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23941 LC_TELEPHONE LC_TIME
23943 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23944 eval $as_var=C; export $as_var
23950 # Required to use basename.
23951 if expr a : '\(a\)' >/dev/null 2>&1; then
23957 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23958 as_basename=basename
23964 # Name of the executable.
23965 as_me=`$as_basename "$0" ||
23966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23967 X"$0" : 'X\(//\)$' \| \
23968 X"$0" : 'X\(/\)$' \| \
23969 . : '\(.\)' 2>/dev/null ||
23971 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23972 /^X\/\(\/\/\)$/{ s//\1/; q; }
23973 /^X\/\(\/\).*/{ s//\1/; q; }
23977 # PATH needs CR, and LINENO needs CR and PATH.
23978 # Avoid depending upon Character Ranges.
23979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23982 as_cr_digits='0123456789'
23983 as_cr_alnum=$as_cr_Letters$as_cr_digits
23985 # The user is always right.
23986 if test "${PATH_SEPARATOR+set}" != set; then
23987 echo "#! /bin/sh" >conf$$.sh
23988 echo "exit 0" >>conf$$.sh
23990 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23999 as_lineno_1=$LINENO
24000 as_lineno_2=$LINENO
24001 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24002 test "x$as_lineno_1" != "x$as_lineno_2" &&
24003 test "x$as_lineno_3" = "x$as_lineno_2" || {
24004 # Find who we are. Look in the path if we contain no path at all
24007 *[\\/]* ) as_myself=$0 ;;
24008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24009 for as_dir in $PATH
24012 test -z "$as_dir" && as_dir=.
24013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24018 # We did not find ourselves, most probably we were run as `sh COMMAND'
24019 # in which case we are not to be found in the path.
24020 if test "x$as_myself" = x; then
24023 if test ! -f "$as_myself"; then
24024 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24025 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24026 { (exit 1); exit 1; }; }
24028 case $CONFIG_SHELL in
24030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24031 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24034 test -z "$as_dir" && as_dir=.
24035 for as_base in sh bash ksh sh5; do
24038 if ("$as_dir/$as_base" -c '
24039 as_lineno_1=$LINENO
24040 as_lineno_2=$LINENO
24041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24042 test "x$as_lineno_1" != "x$as_lineno_2" &&
24043 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24044 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24045 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24046 CONFIG_SHELL=$as_dir/$as_base
24047 export CONFIG_SHELL
24048 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24056 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24057 # uniformly replaced by the line number. The first 'sed' inserts a
24058 # line-number line before each line; the second 'sed' does the real
24059 # work. The second script uses 'N' to pair each line-number line
24060 # with the numbered line, and appends trailing '-' during
24061 # substitution so that $LINENO is not a special case at line end.
24062 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24063 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24064 sed '=' <$as_myself |
24069 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24072 s,^['$as_cr_digits']*\n,,
24073 ' >$as_me.lineno &&
24074 chmod +x $as_me.lineno ||
24075 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24076 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24077 { (exit 1); exit 1; }; }
24079 # Don't try to exec as it changes $[0], causing all sort of problems
24080 # (the dirname of $[0] is not the place where we might find the
24081 # original and so on. Autoconf is especially sensible to this).
24083 # Exit status is that of the last command.
24088 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24089 *c*,-n*) ECHO_N= ECHO_C='
24091 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24092 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24095 if expr a : '\(a\)' >/dev/null 2>&1; then
24101 rm -f conf$$ conf$$.exe conf$$.file
24103 if ln -s conf$$.file conf$$ 2>/dev/null; then
24104 # We could just check for DJGPP; but this test a) works b) is more generic
24105 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24106 if test -f conf$$.exe; then
24107 # Don't use ln at all; we don't have any links
24112 elif ln conf$$.file conf$$ 2>/dev/null; then
24117 rm -f conf$$ conf$$.exe conf$$.file
24119 if mkdir -p . 2>/dev/null; then
24122 test -d ./-p && rmdir ./-p
24126 as_executable_p="test -f"
24128 # Sed expression to map a string onto a valid CPP name.
24129 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24131 # Sed expression to map a string onto a valid variable name.
24132 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24136 # We need space, tab and new line, in precisely that order.
24146 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24147 # report actual input values of CONFIG_FILES etc. instead of their
24148 # values after options handling. Logging --version etc. is OK.
24152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24153 ## Running $as_me. ##
24158 This file was extended by GRAS $as_me 0.0.2, which was
24159 generated by GNU Autoconf 2.59. Invocation command line was
24161 CONFIG_FILES = $CONFIG_FILES
24162 CONFIG_HEADERS = $CONFIG_HEADERS
24163 CONFIG_LINKS = $CONFIG_LINKS
24164 CONFIG_COMMANDS = $CONFIG_COMMANDS
24168 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24172 # Files that config.status was made for.
24173 if test -n "$ac_config_files"; then
24174 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24177 if test -n "$ac_config_headers"; then
24178 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24181 if test -n "$ac_config_links"; then
24182 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24185 if test -n "$ac_config_commands"; then
24186 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24189 cat >>$CONFIG_STATUS <<\_ACEOF
24192 \`$as_me' instantiates files from templates according to the
24193 current configuration.
24195 Usage: $0 [OPTIONS] [FILE]...
24197 -h, --help print this help, then exit
24198 -V, --version print version number, then exit
24199 -q, --quiet do not print progress messages
24200 -d, --debug don't remove temporary files
24201 --recheck update $as_me by reconfiguring in the same conditions
24202 --file=FILE[:TEMPLATE]
24203 instantiate the configuration file FILE
24204 --header=FILE[:TEMPLATE]
24205 instantiate the configuration header FILE
24207 Configuration files:
24210 Configuration headers:
24213 Configuration commands:
24216 Report bugs to <bug-autoconf@gnu.org>."
24219 cat >>$CONFIG_STATUS <<_ACEOF
24221 GRAS config.status 0.0.2
24222 configured by $0, generated by GNU Autoconf 2.59,
24223 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24225 Copyright (C) 2003 Free Software Foundation, Inc.
24226 This config.status script is free software; the Free Software Foundation
24227 gives unlimited permission to copy, distribute and modify it."
24232 cat >>$CONFIG_STATUS <<\_ACEOF
24233 # If no file are specified by the user, then we need to provide default
24234 # value. By we need to know if files were specified by the user.
24240 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24241 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24249 *) # This is not an option, so the user has probably given explicit
24252 ac_need_defaults=false;;
24256 # Handling of the options.
24258 cat >>$CONFIG_STATUS <<\_ACEOF
24259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24261 --version | --vers* | -V )
24262 echo "$ac_cs_version"; exit 0 ;;
24264 # Conflict between --help and --header
24265 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24266 Try \`$0 --help' for more information." >&5
24267 echo "$as_me: error: ambiguous option: $1
24268 Try \`$0 --help' for more information." >&2;}
24269 { (exit 1); exit 1; }; };;
24270 --help | --hel | -h )
24271 echo "$ac_cs_usage"; exit 0 ;;
24272 --debug | --d* | -d )
24274 --file | --fil | --fi | --f )
24276 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24277 ac_need_defaults=false;;
24278 --header | --heade | --head | --hea )
24280 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24281 ac_need_defaults=false;;
24282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24286 # This is an error.
24287 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24288 Try \`$0 --help' for more information." >&5
24289 echo "$as_me: error: unrecognized option: $1
24290 Try \`$0 --help' for more information." >&2;}
24291 { (exit 1); exit 1; }; } ;;
24293 *) ac_config_targets="$ac_config_targets $1" ;;
24299 ac_configure_extra_args=
24301 if $ac_cs_silent; then
24303 ac_configure_extra_args="$ac_configure_extra_args --silent"
24307 cat >>$CONFIG_STATUS <<_ACEOF
24308 if \$ac_cs_recheck; then
24309 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24310 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24315 cat >>$CONFIG_STATUS <<_ACEOF
24317 # INIT-COMMANDS section.
24320 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24326 cat >>$CONFIG_STATUS <<\_ACEOF
24327 for ac_config_target in $ac_config_targets
24329 case "$ac_config_target" in
24330 # Handling of arguments.
24331 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24332 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24333 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
24334 "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
24335 "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
24336 "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
24337 "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
24338 "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
24339 "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
24340 "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
24341 "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
24342 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24343 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24344 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
24345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24347 { (exit 1); exit 1; }; };;
24351 # If the user did not use the arguments to specify the items to instantiate,
24352 # then the envvar interface is used. Set only those that are not.
24353 # We use the long form for the default assignment because of an extremely
24354 # bizarre bug on SunOS 4.1.3.
24355 if $ac_need_defaults; then
24356 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24357 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24358 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24361 # Have a temporary directory for convenience. Make it in the build tree
24362 # simply because there is no reason to put it here, and in addition,
24363 # creating and moving files from /tmp can sometimes cause problems.
24364 # Create a temporary directory, and hook for its removal unless debugging.
24367 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24368 trap '{ (exit 1); exit 1; }' 1 2 13 15
24371 # Create a (secure) tmp directory for tmp files.
24374 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24375 test -n "$tmp" && test -d "$tmp"
24378 tmp=./confstat$$-$RANDOM
24379 (umask 077 && mkdir $tmp)
24382 echo "$me: cannot create a temporary directory in ." >&2
24383 { (exit 1); exit 1; }
24388 cat >>$CONFIG_STATUS <<_ACEOF
24391 # CONFIG_FILES section.
24394 # No need to generate the scripts if there are no CONFIG_FILES.
24395 # This happens for instance when ./config.status config.h
24396 if test -n "\$CONFIG_FILES"; then
24397 # Protect against being on the right side of a sed subst in config.status.
24398 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24399 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24400 s,@SHELL@,$SHELL,;t t
24401 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24402 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24403 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24404 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24405 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24406 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24407 s,@exec_prefix@,$exec_prefix,;t t
24408 s,@prefix@,$prefix,;t t
24409 s,@program_transform_name@,$program_transform_name,;t t
24410 s,@bindir@,$bindir,;t t
24411 s,@sbindir@,$sbindir,;t t
24412 s,@libexecdir@,$libexecdir,;t t
24413 s,@datadir@,$datadir,;t t
24414 s,@sysconfdir@,$sysconfdir,;t t
24415 s,@sharedstatedir@,$sharedstatedir,;t t
24416 s,@localstatedir@,$localstatedir,;t t
24417 s,@libdir@,$libdir,;t t
24418 s,@includedir@,$includedir,;t t
24419 s,@oldincludedir@,$oldincludedir,;t t
24420 s,@infodir@,$infodir,;t t
24421 s,@mandir@,$mandir,;t t
24422 s,@build_alias@,$build_alias,;t t
24423 s,@host_alias@,$host_alias,;t t
24424 s,@target_alias@,$target_alias,;t t
24425 s,@DEFS@,$DEFS,;t t
24426 s,@ECHO_C@,$ECHO_C,;t t
24427 s,@ECHO_N@,$ECHO_N,;t t
24428 s,@ECHO_T@,$ECHO_T,;t t
24429 s,@LIBS@,$LIBS,;t t
24430 s,@build@,$build,;t t
24431 s,@build_cpu@,$build_cpu,;t t
24432 s,@build_vendor@,$build_vendor,;t t
24433 s,@build_os@,$build_os,;t t
24434 s,@host@,$host,;t t
24435 s,@host_cpu@,$host_cpu,;t t
24436 s,@host_vendor@,$host_vendor,;t t
24437 s,@host_os@,$host_os,;t t
24438 s,@target@,$target,;t t
24439 s,@target_cpu@,$target_cpu,;t t
24440 s,@target_vendor@,$target_vendor,;t t
24441 s,@target_os@,$target_os,;t t
24442 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24443 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24444 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24445 s,@CYGPATH_W@,$CYGPATH_W,;t t
24446 s,@PACKAGE@,$PACKAGE,;t t
24447 s,@VERSION@,$VERSION,;t t
24448 s,@ACLOCAL@,$ACLOCAL,;t t
24449 s,@AUTOCONF@,$AUTOCONF,;t t
24450 s,@AUTOMAKE@,$AUTOMAKE,;t t
24451 s,@AUTOHEADER@,$AUTOHEADER,;t t
24452 s,@MAKEINFO@,$MAKEINFO,;t t
24453 s,@AMTAR@,$AMTAR,;t t
24454 s,@install_sh@,$install_sh,;t t
24455 s,@STRIP@,$STRIP,;t t
24456 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24457 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24458 s,@mkdir_p@,$mkdir_p,;t t
24460 s,@SET_MAKE@,$SET_MAKE,;t t
24461 s,@am__leading_dot@,$am__leading_dot,;t t
24463 s,@CFLAGS@,$CFLAGS,;t t
24464 s,@LDFLAGS@,$LDFLAGS,;t t
24465 s,@CPPFLAGS@,$CPPFLAGS,;t t
24466 s,@ac_ct_CC@,$ac_ct_CC,;t t
24467 s,@EXEEXT@,$EXEEXT,;t t
24468 s,@OBJEXT@,$OBJEXT,;t t
24469 s,@DEPDIR@,$DEPDIR,;t t
24470 s,@am__include@,$am__include,;t t
24471 s,@am__quote@,$am__quote,;t t
24472 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24473 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24474 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24475 s,@CCDEPMODE@,$CCDEPMODE,;t t
24476 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24477 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24478 s,@EGREP@,$EGREP,;t t
24479 s,@LN_S@,$LN_S,;t t
24480 s,@ECHO@,$ECHO,;t t
24482 s,@ac_ct_AR@,$ac_ct_AR,;t t
24483 s,@RANLIB@,$RANLIB,;t t
24484 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24487 s,@CXXFLAGS@,$CXXFLAGS,;t t
24488 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24489 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24490 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24491 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24492 s,@CXXCPP@,$CXXCPP,;t t
24494 s,@FFLAGS@,$FFLAGS,;t t
24495 s,@ac_ct_F77@,$ac_ct_F77,;t t
24496 s,@LIBTOOL@,$LIBTOOL,;t t
24497 s,@LIBOBJS@,$LIBOBJS,;t t
24498 s,@HTML_DIR@,$HTML_DIR,;t t
24499 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24500 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24501 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24502 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24503 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24504 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24505 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24506 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24507 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24508 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24509 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24510 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24511 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24512 s,@HAVE_SG_TRUE@,$HAVE_SG_TRUE,;t t
24513 s,@HAVE_SG_FALSE@,$HAVE_SG_FALSE,;t t
24514 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24515 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24516 s,@MAINT@,$MAINT,;t t
24517 s,@cflags_set@,$cflags_set,;t t
24518 s,@BASH@,$BASH,;t t
24519 s,@WARNING@,$WARNING,;t t
24521 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24526 cat >>$CONFIG_STATUS <<\_ACEOF
24527 # Split the substitutions into bite-sized pieces for seds with
24528 # small command number limits, like on Digital OSF/1 and HP-UX.
24529 ac_max_sed_lines=48
24530 ac_sed_frag=1 # Number of current file.
24531 ac_beg=1 # First line for current file.
24532 ac_end=$ac_max_sed_lines # Line after last line for current file.
24535 while $ac_more_lines; do
24536 if test $ac_beg -gt 1; then
24537 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24539 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24541 if test ! -s $tmp/subs.frag; then
24542 ac_more_lines=false
24544 # The purpose of the label and of the branching condition is to
24545 # speed up the sed processing (if there are no `@' at all, there
24546 # is no need to browse any of the substitutions).
24547 # These are the two extra sed commands mentioned above.
24549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24550 if test -z "$ac_sed_cmds"; then
24551 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24553 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24555 ac_sed_frag=`expr $ac_sed_frag + 1`
24557 ac_end=`expr $ac_end + $ac_max_sed_lines`
24560 if test -z "$ac_sed_cmds"; then
24563 fi # test -n "$CONFIG_FILES"
24566 cat >>$CONFIG_STATUS <<\_ACEOF
24567 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24568 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24570 - | *:- | *:-:* ) # input from stdin
24572 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24574 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24575 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24576 * ) ac_file_in=$ac_file.in ;;
24579 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24580 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24582 X"$ac_file" : 'X\(//\)[^/]' \| \
24583 X"$ac_file" : 'X\(//\)$' \| \
24584 X"$ac_file" : 'X\(/\)' \| \
24585 . : '\(.\)' 2>/dev/null ||
24587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24589 /^X\(\/\/\)$/{ s//\1/; q; }
24590 /^X\(\/\).*/{ s//\1/; q; }
24592 { if $as_mkdir_p; then
24597 while test ! -d "$as_dir"; do
24598 as_dirs="$as_dir $as_dirs"
24599 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24601 X"$as_dir" : 'X\(//\)[^/]' \| \
24602 X"$as_dir" : 'X\(//\)$' \| \
24603 X"$as_dir" : 'X\(/\)' \| \
24604 . : '\(.\)' 2>/dev/null ||
24606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24608 /^X\(\/\/\)$/{ s//\1/; q; }
24609 /^X\(\/\).*/{ s//\1/; q; }
24612 test ! -n "$as_dirs" || mkdir $as_dirs
24613 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24615 { (exit 1); exit 1; }; }; }
24619 if test "$ac_dir" != .; then
24620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24621 # A "../" for each directory in $ac_dir_suffix.
24622 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24624 ac_dir_suffix= ac_top_builddir=
24628 .) # No --srcdir option. We are building in place.
24630 if test -z "$ac_top_builddir"; then
24633 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24635 [\\/]* | ?:[\\/]* ) # Absolute path.
24636 ac_srcdir=$srcdir$ac_dir_suffix;
24637 ac_top_srcdir=$srcdir ;;
24638 *) # Relative path.
24639 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24640 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24643 # Do not use `cd foo && pwd` to compute absolute paths, because
24644 # the directories may not exist.
24646 .) ac_abs_builddir="$ac_dir";;
24649 .) ac_abs_builddir=`pwd`;;
24650 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24651 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24654 case $ac_abs_builddir in
24655 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24657 case ${ac_top_builddir}. in
24658 .) ac_abs_top_builddir=$ac_abs_builddir;;
24659 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24660 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24663 case $ac_abs_builddir in
24664 .) ac_abs_srcdir=$ac_srcdir;;
24667 .) ac_abs_srcdir=$ac_abs_builddir;;
24668 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24669 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24672 case $ac_abs_builddir in
24673 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24675 case $ac_top_srcdir in
24676 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24677 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24678 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24684 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24685 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24688 # Let's still pretend it is `configure' which instantiates (i.e., don't
24689 # use $as_me), people would be surprised to read:
24690 # /* config.h. Generated by config.status. */
24691 if test x"$ac_file" = x-; then
24694 configure_input="$ac_file. "
24696 configure_input=$configure_input"Generated from `echo $ac_file_in |
24697 sed 's,.*/,,'` by configure."
24699 # First look for the input files in the build tree, otherwise in the
24701 ac_file_inputs=`IFS=:
24702 for f in $ac_file_in; do
24704 -) echo $tmp/stdin ;;
24706 # Absolute (can't be DOS-style, as IFS=:)
24707 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24708 echo "$as_me: error: cannot find input file: $f" >&2;}
24709 { (exit 1); exit 1; }; }
24712 if test -f "$f"; then
24715 elif test -f "$srcdir/$f"; then
24720 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24721 echo "$as_me: error: cannot find input file: $f" >&2;}
24722 { (exit 1); exit 1; }; }
24725 done` || { (exit 1); exit 1; }
24727 if test x"$ac_file" != x-; then
24728 { echo "$as_me:$LINENO: creating $ac_file" >&5
24729 echo "$as_me: creating $ac_file" >&6;}
24733 cat >>$CONFIG_STATUS <<_ACEOF
24737 cat >>$CONFIG_STATUS <<\_ACEOF
24739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24740 s,@configure_input@,$configure_input,;t t
24741 s,@srcdir@,$ac_srcdir,;t t
24742 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24743 s,@top_srcdir@,$ac_top_srcdir,;t t
24744 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24745 s,@builddir@,$ac_builddir,;t t
24746 s,@abs_builddir@,$ac_abs_builddir,;t t
24747 s,@top_builddir@,$ac_top_builddir,;t t
24748 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24749 s,@INSTALL@,$ac_INSTALL,;t t
24750 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24752 if test x"$ac_file" != x-; then
24753 mv $tmp/out $ac_file
24759 # Run the commands associated with the file.
24761 Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24762 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24763 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24764 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24765 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24766 src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24767 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24768 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24769 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24770 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24771 src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24772 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24773 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24774 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24775 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24776 src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24777 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24778 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24779 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24780 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24781 src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24782 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24783 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24784 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24785 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24786 src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24787 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24788 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24789 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24790 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24791 src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24792 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24793 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24794 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24795 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24796 src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24797 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24798 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24799 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24800 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24801 src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24802 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24803 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24804 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24805 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24806 src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24807 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24808 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24809 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24810 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24811 src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24812 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24813 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24814 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24815 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24816 doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24817 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24818 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24819 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
24820 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24824 cat >>$CONFIG_STATUS <<\_ACEOF
24827 # CONFIG_HEADER section.
24830 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24831 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24833 # ac_d sets the value in "#define NAME VALUE" lines.
24834 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24835 ac_dB='[ ].*$,\1#\2'
24838 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24839 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24840 ac_uB='$,\1#\2define\3'
24844 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24847 - | *:- | *:-:* ) # input from stdin
24849 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24851 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24853 * ) ac_file_in=$ac_file.in ;;
24856 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24857 echo "$as_me: creating $ac_file" >&6;}
24859 # First look for the input files in the build tree, otherwise in the
24861 ac_file_inputs=`IFS=:
24862 for f in $ac_file_in; do
24864 -) echo $tmp/stdin ;;
24866 # Absolute (can't be DOS-style, as IFS=:)
24867 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24868 echo "$as_me: error: cannot find input file: $f" >&2;}
24869 { (exit 1); exit 1; }; }
24870 # Do quote $f, to prevent DOS paths from being IFS'd.
24873 if test -f "$f"; then
24876 elif test -f "$srcdir/$f"; then
24881 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24882 echo "$as_me: error: cannot find input file: $f" >&2;}
24883 { (exit 1); exit 1; }; }
24886 done` || { (exit 1); exit 1; }
24887 # Remove the trailing spaces.
24888 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24892 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24893 # `conftest.undefs', that substitutes the proper values into
24894 # config.h.in to produce config.h. The first handles `#define'
24895 # templates, and the second `#undef' templates.
24896 # And first: Protect against being on the right side of a sed subst in
24897 # config.status. Protect against being in an unquoted here document
24898 # in config.status.
24899 rm -f conftest.defines conftest.undefs
24900 # Using a here document instead of a string reduces the quoting nightmare.
24901 # Putting comments in sed scripts is not portable.
24903 # `end' is used to avoid that the second main sed command (meant for
24904 # 0-ary CPP macros) applies to n-ary macro definitions.
24905 # See the Autoconf documentation for `clear'.
24906 cat >confdef2sed.sed <<\_ACEOF
24911 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24913 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24916 # If some macros were called several times there might be several times
24917 # the same #defines, which is useless. Nevertheless, we may not want to
24918 # sort them, since we want the *last* AC-DEFINE to be honored.
24919 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24920 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24921 rm -f confdef2sed.sed
24923 # This sed command replaces #undef with comments. This is necessary, for
24924 # example, in the case of _POSIX_SOURCE, which is predefined and required
24925 # on some systems where configure will not decide to define it.
24926 cat >>conftest.undefs <<\_ACEOF
24927 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24930 # Break up conftest.defines because some shells have a limit on the size
24931 # of here documents, and old seds have small limits too (100 cmds).
24932 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24933 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24934 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24935 echo ' :' >>$CONFIG_STATUS
24936 rm -f conftest.tail
24937 while grep . conftest.defines >/dev/null
24939 # Write a limited-size here document to $tmp/defines.sed.
24940 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24941 # Speed up: don't consider the non `#define' lines.
24942 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24943 # Work around the forget-to-reset-the-flag bug.
24944 echo 't clr' >>$CONFIG_STATUS
24945 echo ': clr' >>$CONFIG_STATUS
24946 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24948 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24950 mv $tmp/out $tmp/in
24952 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24953 rm -f conftest.defines
24954 mv conftest.tail conftest.defines
24956 rm -f conftest.defines
24957 echo ' fi # grep' >>$CONFIG_STATUS
24958 echo >>$CONFIG_STATUS
24960 # Break up conftest.undefs because some shells have a limit on the size
24961 # of here documents, and old seds have small limits too (100 cmds).
24962 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24963 rm -f conftest.tail
24964 while grep . conftest.undefs >/dev/null
24966 # Write a limited-size here document to $tmp/undefs.sed.
24967 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24968 # Speed up: don't consider the non `#undef'
24969 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24970 # Work around the forget-to-reset-the-flag bug.
24971 echo 't clr' >>$CONFIG_STATUS
24972 echo ': clr' >>$CONFIG_STATUS
24973 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24975 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24977 mv $tmp/out $tmp/in
24979 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24980 rm -f conftest.undefs
24981 mv conftest.tail conftest.undefs
24983 rm -f conftest.undefs
24985 cat >>$CONFIG_STATUS <<\_ACEOF
24986 # Let's still pretend it is `configure' which instantiates (i.e., don't
24987 # use $as_me), people would be surprised to read:
24988 # /* config.h. Generated by config.status. */
24989 if test x"$ac_file" = x-; then
24990 echo "/* Generated by configure. */" >$tmp/config.h
24992 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24994 cat $tmp/in >>$tmp/config.h
24996 if test x"$ac_file" != x-; then
24997 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24998 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24999 echo "$as_me: $ac_file is unchanged" >&6;}
25001 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25003 X"$ac_file" : 'X\(//\)[^/]' \| \
25004 X"$ac_file" : 'X\(//\)$' \| \
25005 X"$ac_file" : 'X\(/\)' \| \
25006 . : '\(.\)' 2>/dev/null ||
25008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25010 /^X\(\/\/\)$/{ s//\1/; q; }
25011 /^X\(\/\).*/{ s//\1/; q; }
25013 { if $as_mkdir_p; then
25018 while test ! -d "$as_dir"; do
25019 as_dirs="$as_dir $as_dirs"
25020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022 X"$as_dir" : 'X\(//\)[^/]' \| \
25023 X"$as_dir" : 'X\(//\)$' \| \
25024 X"$as_dir" : 'X\(/\)' \| \
25025 . : '\(.\)' 2>/dev/null ||
25027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25029 /^X\(\/\/\)$/{ s//\1/; q; }
25030 /^X\(\/\).*/{ s//\1/; q; }
25033 test ! -n "$as_dirs" || mkdir $as_dirs
25034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25036 { (exit 1); exit 1; }; }; }
25039 mv $tmp/config.h $ac_file
25043 rm -f $tmp/config.h
25045 # Compute $ac_file's index in $config_headers.
25047 for _am_header in $config_headers :; do
25048 case $_am_header in
25049 $ac_file | $ac_file:* )
25052 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25055 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25056 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25057 X$ac_file : 'X\(//\)[^/]' \| \
25058 X$ac_file : 'X\(//\)$' \| \
25059 X$ac_file : 'X\(/\)' \| \
25060 . : '\(.\)' 2>/dev/null ||
25062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25064 /^X\(\/\/\)$/{ s//\1/; q; }
25065 /^X\(\/\).*/{ s//\1/; q; }
25066 s/.*/./; q'`/stamp-h$_am_stamp_count
25069 cat >>$CONFIG_STATUS <<\_ACEOF
25072 # CONFIG_COMMANDS section.
25074 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25075 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25076 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25077 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25078 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25079 X"$ac_dest" : 'X\(//\)[^/]' \| \
25080 X"$ac_dest" : 'X\(//\)$' \| \
25081 X"$ac_dest" : 'X\(/\)' \| \
25082 . : '\(.\)' 2>/dev/null ||
25084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25086 /^X\(\/\/\)$/{ s//\1/; q; }
25087 /^X\(\/\).*/{ s//\1/; q; }
25089 { if $as_mkdir_p; then
25094 while test ! -d "$as_dir"; do
25095 as_dirs="$as_dir $as_dirs"
25096 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25098 X"$as_dir" : 'X\(//\)[^/]' \| \
25099 X"$as_dir" : 'X\(//\)$' \| \
25100 X"$as_dir" : 'X\(/\)' \| \
25101 . : '\(.\)' 2>/dev/null ||
25103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25105 /^X\(\/\/\)$/{ s//\1/; q; }
25106 /^X\(\/\).*/{ s//\1/; q; }
25109 test ! -n "$as_dirs" || mkdir $as_dirs
25110 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25111 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25112 { (exit 1); exit 1; }; }; }
25116 if test "$ac_dir" != .; then
25117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25118 # A "../" for each directory in $ac_dir_suffix.
25119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25121 ac_dir_suffix= ac_top_builddir=
25125 .) # No --srcdir option. We are building in place.
25127 if test -z "$ac_top_builddir"; then
25130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25132 [\\/]* | ?:[\\/]* ) # Absolute path.
25133 ac_srcdir=$srcdir$ac_dir_suffix;
25134 ac_top_srcdir=$srcdir ;;
25135 *) # Relative path.
25136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25140 # Do not use `cd foo && pwd` to compute absolute paths, because
25141 # the directories may not exist.
25143 .) ac_abs_builddir="$ac_dir";;
25146 .) ac_abs_builddir=`pwd`;;
25147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25151 case $ac_abs_builddir in
25152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25154 case ${ac_top_builddir}. in
25155 .) ac_abs_top_builddir=$ac_abs_builddir;;
25156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25160 case $ac_abs_builddir in
25161 .) ac_abs_srcdir=$ac_srcdir;;
25164 .) ac_abs_srcdir=$ac_abs_builddir;;
25165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25169 case $ac_abs_builddir in
25170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25172 case $ac_top_srcdir in
25173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25180 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25181 echo "$as_me: executing $ac_dest commands" >&6;}
25183 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25184 # Strip MF so we end up with the name of the file.
25185 mf=`echo "$mf" | sed -e 's/:.*$//'`
25186 # Check whether this is an Automake generated Makefile or not.
25187 # We used to match only the files named `Makefile.in', but
25188 # some people rename them; so instead we look at the file content.
25189 # Grep'ing the first line is not enough: some people post-process
25190 # each Makefile.in and add a new line on top of each file to say so.
25191 # So let's grep whole file.
25192 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25193 dirpart=`(dirname "$mf") 2>/dev/null ||
25194 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25195 X"$mf" : 'X\(//\)[^/]' \| \
25196 X"$mf" : 'X\(//\)$' \| \
25197 X"$mf" : 'X\(/\)' \| \
25198 . : '\(.\)' 2>/dev/null ||
25200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25202 /^X\(\/\/\)$/{ s//\1/; q; }
25203 /^X\(\/\).*/{ s//\1/; q; }
25208 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25209 # Extract the definition of DEP_FILES from the Makefile without
25211 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25212 test -z "$DEPDIR" && continue
25213 # When using ansi2knr, U may be empty or an underscore; expand it
25214 U=`sed -n 's/^U = //p' < "$mf"`
25215 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25216 # We invoke sed twice because it is the simplest approach to
25217 # changing $(DEPDIR) to its actual value in the expansion.
25218 for file in `sed -n '
25219 /^DEP_FILES = .*\\\\$/ {
25228 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25229 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25230 # Make sure the directory exists.
25231 test -f "$dirpart/$file" && continue
25232 fdir=`(dirname "$file") 2>/dev/null ||
25233 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25234 X"$file" : 'X\(//\)[^/]' \| \
25235 X"$file" : 'X\(//\)$' \| \
25236 X"$file" : 'X\(/\)' \| \
25237 . : '\(.\)' 2>/dev/null ||
25239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25241 /^X\(\/\/\)$/{ s//\1/; q; }
25242 /^X\(\/\).*/{ s//\1/; q; }
25244 { if $as_mkdir_p; then
25245 mkdir -p $dirpart/$fdir
25247 as_dir=$dirpart/$fdir
25249 while test ! -d "$as_dir"; do
25250 as_dirs="$as_dir $as_dirs"
25251 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25253 X"$as_dir" : 'X\(//\)[^/]' \| \
25254 X"$as_dir" : 'X\(//\)$' \| \
25255 X"$as_dir" : 'X\(/\)' \| \
25256 . : '\(.\)' 2>/dev/null ||
25258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25260 /^X\(\/\/\)$/{ s//\1/; q; }
25261 /^X\(\/\).*/{ s//\1/; q; }
25264 test ! -n "$as_dirs" || mkdir $as_dirs
25265 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25266 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25267 { (exit 1); exit 1; }; }; }
25269 # echo "creating $dirpart/$file"
25270 echo '# dummy' > "$dirpart/$file"
25278 cat >>$CONFIG_STATUS <<\_ACEOF
25280 { (exit 0); exit 0; }
25282 chmod +x $CONFIG_STATUS
25283 ac_clean_files=$ac_clean_files_save
25286 # configure is writing to config.log, and then calls config.status.
25287 # config.status does its own redirection, appending to config.log.
25288 # Unfortunately, on DOS this fails, as config.log is still kept open
25289 # by configure, so config.status won't be able to write to it; its
25290 # output is simply discarded. So we exec the FD to /dev/null,
25291 # effectively closing config.log, so it can be properly (re)opened and
25292 # appended to by config.status. When coming back to configure, we
25293 # need to make the FD available again.
25294 if test "$no_create" != yes; then
25296 ac_config_status_args=
25297 test "$silent" = yes &&
25298 ac_config_status_args="$ac_config_status_args --quiet"
25300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25303 # would make configure fail if this is the last instruction.
25304 $ac_cs_success || { (exit 1); exit 1; }
25310 Configuration of package \`${PACKAGE}' on $gras_arch_name (=$gras_arch):
25315 LDFlags: ${LDFLAGS}