2 # From configure.ac Revision: 1.146 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for simgrid 3.2-cvs.
6 # Report bugs to <simgrid-devel@lists.gforge.inria.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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
425 PACKAGE_NAME='simgrid'
426 PACKAGE_TARNAME='simgrid'
427 PACKAGE_VERSION='3.2-cvs'
428 PACKAGE_STRING='simgrid 3.2-cvs'
429 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
431 ac_unique_file="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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS PTH_STACK_GROWTH pth_skaddr_makecontext pth_sksize_makecontext USE_SIMIX_TRUE USE_SIMIX_FALSE HAVE_SDP_TRUE HAVE_SDP_FALSE SIMGRID_DEP AM_CFLAGS GRAS_DEP GRAMINE_MODE_TRUE GRAMINE_MODE_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LD_DYNAMIC_FLAGS abs_builddir abs_srcdir abs_top_builddir abs_top_srcdir BASH WARNING LEX LEXLIB LEX_OUTPUT_ROOT FLEXML HAVE_FLEXML_TRUE HAVE_FLEXML_FALSE DOXYGEN ADDR2LINE ac_configure_args MD5SUM build_id 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 simgrid 3.2-cvs 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 simgrid 3.2-cvs:";;
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-simix Use the new SimIX module (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
1045 use compiler warnings (default=no, unless in
1047 --disable-compile-optimizations
1048 use compiler optimizations (default=yes, unless if
1049 CFLAGS is explicitly set)
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1058 include additional configurations [automatic]
1059 --with-pthread Use pthread instead of ucontext.
1060 --with-pthreads Use pthread instead of ucontext.
1061 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1063 Some influential environment variables:
1064 CC C compiler command
1065 CFLAGS C compiler flags
1066 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1067 nonstandard directory <lib dir>
1068 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069 headers in a nonstandard directory <include dir>
1071 CXX C++ compiler command
1072 CXXFLAGS C++ compiler flags
1073 CXXCPP C++ preprocessor
1074 F77 Fortran 77 compiler command
1075 FFLAGS Fortran 77 compiler flags
1077 Use these variables to override the choices made by `configure' or to help
1078 it to find libraries and programs with nonstandard names/locations.
1080 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1084 if test "$ac_init_help" = "recursive"; then
1085 # If there are subdirs, report their specific --help.
1087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088 test -d $ac_dir || continue
1091 if test "$ac_dir" != .; then
1092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093 # A "../" for each directory in $ac_dir_suffix.
1094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096 ac_dir_suffix= ac_top_builddir=
1100 .) # No --srcdir option. We are building in place.
1102 if test -z "$ac_top_builddir"; then
1105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107 [\\/]* | ?:[\\/]* ) # Absolute path.
1108 ac_srcdir=$srcdir$ac_dir_suffix;
1109 ac_top_srcdir=$srcdir ;;
1111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 # Do not use `cd foo && pwd` to compute absolute paths, because
1116 # the directories may not exist.
1118 .) ac_abs_builddir="$ac_dir";;
1121 .) ac_abs_builddir=`pwd`;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 case ${ac_top_builddir}. in
1130 .) ac_abs_top_builddir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135 case $ac_abs_builddir in
1136 .) ac_abs_srcdir=$ac_srcdir;;
1139 .) ac_abs_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 case $ac_top_srcdir in
1148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1155 # Check for guested configure; otherwise get Cygnus style configure.
1156 if test -f $ac_srcdir/configure.gnu; then
1158 $SHELL $ac_srcdir/configure.gnu --help=recursive
1159 elif test -f $ac_srcdir/configure; then
1161 $SHELL $ac_srcdir/configure --help=recursive
1162 elif test -f $ac_srcdir/configure.ac ||
1163 test -f $ac_srcdir/configure.in; then
1165 $ac_configure --help
1167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 test -n "$ac_init_help" && exit 0
1174 if $ac_init_version; then
1176 simgrid configure 3.2-cvs
1177 generated by GNU Autoconf 2.59
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1190 It was created by simgrid $as_me 3.2-cvs, which was
1191 generated by GNU Autoconf 2.59. Invocation command line was
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_must_keep_next=false
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
1268 ac_must_keep_next=false # Got value, back to normal.
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 -* ) ac_must_keep_next=true ;;
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log. We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1308 # The following way of writing the cache mishandles newlines in values,
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1331 for ac_var in $ac_subst_vars
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -n "$ac_subst_files"; then
1345 for ac_var in $ac_subst_files
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1353 if test -s confdefs.h; then
1360 sed "/^$/d" confdefs.h | sort
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1367 rm -f core *.core &&
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 # Predefined preprocessor variables.
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1426 if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1443 # Check that the precious variables saved in the cache have kept the same
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467 echo "$as_me: former value: $ac_old_val" >&2;}
1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469 echo "$as_me: current value: $ac_new_val" >&2;}
1470 ac_cache_corrupted=:
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 ac_config_headers="$ac_config_headers src/gras_config.h"
1529 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
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 am__api_version="1.9"
1647 # Find a good install program. We prefer a C program (faster),
1648 # so one script is as good as another. But avoid the broken or
1649 # incompatible versions:
1650 # SysV /etc/install, /usr/sbin/install
1651 # SunOS /usr/etc/install
1652 # IRIX /sbin/install
1654 # AmigaOS /C/install, which installs bootblocks on floppy discs
1655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1658 # OS/2's system install, which has a completely different semantic
1659 # ./install, which can be erroneously created by make from ./install.sh.
1660 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1662 if test -z "$INSTALL"; then
1663 if test "${ac_cv_path_install+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 # Account for people who put trailing slashes in PATH elements.
1673 ./ | .// | /cC/* | \
1674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1678 # OSF1 and SCO ODT 3.0 have their own names for install.
1679 # Don't use installbsd from OSF since it installs stuff as root
1681 for ac_prog in ginstall scoinst install; do
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1684 if test $ac_prog = install &&
1685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686 # AIX install. It has an incompatible calling convention.
1688 elif test $ac_prog = install &&
1689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # program-specific install script used by HP pwplus--don't use.
1693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1705 if test "${ac_cv_path_install+set}" = set; then
1706 INSTALL=$ac_cv_path_install
1708 # As a last resort, use the slow shell script. We don't cache a
1709 # path for INSTALL within a source directory, because that will
1710 # break other packages using the cache if that directory is
1711 # removed, or if the path is relative.
1712 INSTALL=$ac_install_sh
1715 echo "$as_me:$LINENO: result: $INSTALL" >&5
1716 echo "${ECHO_T}$INSTALL" >&6
1718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1719 # It thinks the first close brace ends the variable substitution.
1720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1726 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1727 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1730 echo timestamp > conftest.file
1731 # Do `set' in a subshell so we don't clobber the current shell's
1732 # arguments. Must try -L first in case configure is actually a
1733 # symlink; some systems play weird games with the mod time of symlinks
1734 # (eg FreeBSD returns the mod time of the symlink's containing
1737 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1738 if test "$*" = "X"; then
1740 set X `ls -t $srcdir/configure conftest.file`
1743 if test "$*" != "X $srcdir/configure conftest.file" \
1744 && test "$*" != "X conftest.file $srcdir/configure"; then
1746 # If neither matched, then we have a broken ls. This can happen
1747 # if, for instance, CONFIG_SHELL is bash and it inherits a
1748 # broken ls alias from the environment. This has actually
1749 # happened. Such a system could not be considered "sane".
1750 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1751 alias in your environment" >&5
1752 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1753 alias in your environment" >&2;}
1754 { (exit 1); exit 1; }; }
1757 test "$2" = conftest.file
1763 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1764 Check your system clock" >&5
1765 echo "$as_me: error: newly created file is older than distributed files!
1766 Check your system clock" >&2;}
1767 { (exit 1); exit 1; }; }
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771 test "$program_prefix" != NONE &&
1772 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1773 # Use a double $ so make ignores it.
1774 test "$program_suffix" != NONE &&
1775 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1776 # Double any \ or $. echo might interpret backslashes.
1777 # By default was `s,x,x', remove it if useless.
1778 cat <<\_ACEOF >conftest.sed
1779 s/[\\$]/&&/g;s/;s,x,x,$//
1781 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1784 # expand $ac_aux_dir to an absolute path
1785 am_aux_dir=`cd $ac_aux_dir && pwd`
1787 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1788 # Use eval to expand $SHELL
1789 if eval "$MISSING --run true"; then
1790 am_missing_run="$MISSING --run "
1793 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1794 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1797 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1798 # We used to keeping the `.' as first argument, in order to
1799 # allow $(mkdir_p) to be used without argument. As in
1800 # $(mkdir_p) $(somedir)
1801 # where $(somedir) is conditionally defined. However this is wrong
1803 # 1. if the package is installed by a user who cannot write `.'
1804 # make install will fail,
1805 # 2. the above comment should most certainly read
1806 # $(mkdir_p) $(DESTDIR)$(somedir)
1807 # so it does not work when $(somedir) is undefined and
1808 # $(DESTDIR) is not.
1809 # To support the latter case, we have to write
1810 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1811 # so the `.' trick is pointless.
1812 mkdir_p='mkdir -p --'
1814 # On NextStep and OpenStep, the `mkdir' command does not
1815 # recognize any option. It will interpret all options as
1816 # directories to create, and then abort because `.' already
1818 for d in ./-p ./--version;
1820 test -d $d && rmdir $d
1822 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1823 if test -f "$ac_aux_dir/mkinstalldirs"; then
1824 mkdir_p='$(mkinstalldirs)'
1826 mkdir_p='$(install_sh) -d'
1830 for ac_prog in gawk mawk nawk awk
1832 # Extract the first word of "$ac_prog", so it can be a program name with args.
1833 set dummy $ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_AWK+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 if test -n "$AWK"; then
1840 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_AWK="$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 if test -n "$AWK"; then
1860 echo "$as_me:$LINENO: result: $AWK" >&5
1861 echo "${ECHO_T}$AWK" >&6
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1867 test -n "$AWK" && break
1870 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1871 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1872 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1873 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 cat >conftest.make <<\_ACEOF
1878 @echo 'ac_maketemp="$(MAKE)"'
1880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1881 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1882 if test -n "$ac_maketemp"; then
1883 eval ac_cv_prog_make_${ac_make}_set=yes
1885 eval ac_cv_prog_make_${ac_make}_set=no
1889 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1890 echo "$as_me:$LINENO: result: yes" >&5
1891 echo "${ECHO_T}yes" >&6
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 SET_MAKE="MAKE=${MAKE-make}"
1899 rm -rf .tst 2>/dev/null
1900 mkdir .tst 2>/dev/null
1901 if test -d .tst; then
1906 rmdir .tst 2>/dev/null
1908 # test to see if srcdir already configured
1909 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1910 test -f $srcdir/config.status; then
1911 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1912 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1913 { (exit 1); exit 1; }; }
1916 # test whether we have cygpath
1917 if test -z "$CYGPATH_W"; then
1918 if (cygpath --version) >/dev/null 2>/dev/null; then
1919 CYGPATH_W='cygpath -w'
1926 # Define the identity of the package.
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE "$PACKAGE"
1936 cat >>confdefs.h <<_ACEOF
1937 #define VERSION "$VERSION"
1940 # Some tools Automake needs.
1942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1956 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1958 # Installed binaries are usually stripped using `strip' when the user
1959 # run `make install-strip'. However `strip' might not be the right
1960 # tool to use in cross-compilation environments, therefore Automake
1961 # will honor the `STRIP' environment variable to overrule this program.
1962 if test "$cross_compiling" != no; then
1963 if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}strip; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_STRIP+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 if test -n "$STRIP"; then
1972 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 STRIP=$ac_cv_prog_STRIP
1991 if test -n "$STRIP"; then
1992 echo "$as_me:$LINENO: result: $STRIP" >&5
1993 echo "${ECHO_T}$STRIP" >&6
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
2000 if test -z "$ac_cv_prog_STRIP"; then
2002 # Extract the first word of "strip", so it can be a program name with args.
2003 set dummy strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$ac_ct_STRIP"; then
2010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_ac_ct_STRIP="strip"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2030 if test -n "$ac_ct_STRIP"; then
2031 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2032 echo "${ECHO_T}$ac_ct_STRIP" >&6
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2040 STRIP="$ac_cv_prog_STRIP"
2044 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2046 # We need awk for the "check" target. The system "awk" is bad on
2048 # Always define AMTAR for backward compatibility.
2050 AMTAR=${AMTAR-"${am_missing_run}tar"}
2052 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2059 [\\/]* | ?:[\\/]* ) ac_macro_dir=acmacro ;;
2060 *) ac_macro_dir=$srcdir/acmacro ;;
2062 if test -d "$ac_macro_dir"; then :
2064 { { echo "$as_me:$LINENO: error: cannot find macro directory \`acmacro'" >&5
2065 echo "$as_me: error: cannot find macro directory \`acmacro'" >&2;}
2066 { (exit 1); exit 1; }; }
2069 ACLOCAL="$ACLOCAL -I acmacro"
2072 # Check whether --enable-shared or --disable-shared was given.
2073 if test "${enable_shared+set}" = set; then
2074 enableval="$enable_shared"
2075 p=${PACKAGE-default}
2077 yes) enable_shared=yes ;;
2078 no) enable_shared=no ;;
2081 # Look at the argument we got. We use all the common list separators.
2082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2083 for pkg in $enableval; do
2085 if test "X$pkg" = "X$p"; then
2096 # Check whether --enable-static or --disable-static was given.
2097 if test "${enable_static+set}" = set; then
2098 enableval="$enable_static"
2099 p=${PACKAGE-default}
2101 yes) enable_static=yes ;;
2102 no) enable_static=no ;;
2105 # Look at the argument we got. We use all the common list separators.
2106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2107 for pkg in $enableval; do
2109 if test "X$pkg" = "X$p"; then
2120 # Check whether --enable-fast-install or --disable-fast-install was given.
2121 if test "${enable_fast_install+set}" = set; then
2122 enableval="$enable_fast_install"
2123 p=${PACKAGE-default}
2125 yes) enable_fast_install=yes ;;
2126 no) enable_fast_install=no ;;
2128 enable_fast_install=no
2129 # Look at the argument we got. We use all the common list separators.
2130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2131 for pkg in $enableval; do
2133 if test "X$pkg" = "X$p"; then
2134 enable_fast_install=yes
2141 enable_fast_install=yes
2144 DEPDIR="${am__leading_dot}deps"
2146 ac_config_commands="$ac_config_commands depfiles"
2149 am_make=${MAKE-make}
2150 cat > confinc << 'END'
2155 # If we don't find an include directive, just comment out the code.
2156 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2157 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2161 # First try GNU make style include.
2162 echo "include confinc" > confmf
2163 # We grep out `Entering directory' and `Leaving directory'
2164 # messages which can occur if `w' ends up in MAKEFLAGS.
2165 # In particular we don't look at `^make:' because GNU make might
2166 # be invoked under some other name (usually "gmake"), in which
2167 # case it prints its new name instead of `make'.
2168 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2173 # Now try BSD make style include.
2174 if test "$am__include" = "#"; then
2175 echo '.include "confinc"' > confmf
2176 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2177 am__include=.include
2184 echo "$as_me:$LINENO: result: $_am_result" >&5
2185 echo "${ECHO_T}$_am_result" >&6
2186 rm -f confinc confmf
2188 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2189 if test "${enable_dependency_tracking+set}" = set; then
2190 enableval="$enable_dependency_tracking"
2193 if test "x$enable_dependency_tracking" != xno; then
2194 am_depcomp="$ac_aux_dir/depcomp"
2199 if test "x$enable_dependency_tracking" != xno; then
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 if test -n "$ac_tool_prefix"; then
2215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2217 echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$CC"; then
2243 echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6
2246 echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2251 if test -z "$ac_cv_prog_CC"; then
2253 # Extract the first word of "gcc", so it can be a program name with args.
2254 set dummy gcc; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 ac_cv_prog_ac_ct_CC="gcc"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280 if test -n "$ac_ct_CC"; then
2281 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282 echo "${ECHO_T}$ac_ct_CC" >&6
2284 echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2293 if test -z "$CC"; then
2294 if test -n "$ac_tool_prefix"; then
2295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}cc; ac_word=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_CC+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$CC"; then
2303 ac_cv_prog_CC="$CC" # Let the user override the test.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 ac_cv_prog_CC="${ac_tool_prefix}cc"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 if test -n "$CC"; then
2323 echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6
2326 echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2331 if test -z "$ac_cv_prog_CC"; then
2333 # Extract the first word of "cc", so it can be a program name with args.
2334 set dummy cc; ac_word=$2
2335 echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$ac_ct_CC"; then
2341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_ac_ct_CC="cc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2360 if test -n "$ac_ct_CC"; then
2361 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2362 echo "${ECHO_T}$ac_ct_CC" >&6
2364 echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6
2374 if test -z "$CC"; then
2375 # Extract the first word of "cc", so it can be a program name with args.
2376 set dummy cc; ac_word=$2
2377 echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2379 if test "${ac_cv_prog_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$CC"; then
2383 ac_cv_prog_CC="$CC" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2394 ac_prog_rejected=yes
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 if test $ac_prog_rejected = yes; then
2405 # We found a bogon in the path, so make sure we never use it.
2406 set dummy $ac_cv_prog_CC
2408 if test $# != 0; then
2409 # We chose a different compiler from the bogus one.
2410 # However, it has the same basename, so the bogon will be chosen
2411 # first if we set CC to just the basename; use the full file name.
2413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2419 if test -n "$CC"; then
2420 echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6
2423 echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2434 echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 if test -n "$CC"; then
2460 echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6
2463 echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6
2467 test -n "$CC" && break
2470 if test -z "$CC"; then
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy $ac_prog; ac_word=$2
2476 echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$ac_ct_CC"; then
2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_ac_ct_CC="$ac_prog"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501 if test -n "$ac_ct_CC"; then
2502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503 echo "${ECHO_T}$ac_ct_CC" >&6
2505 echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6
2509 test -n "$ac_ct_CC" && break
2518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: no acceptable C compiler found in \$PATH
2521 See \`config.log' for more details." >&2;}
2522 { (exit 1); exit 1; }; }
2524 # Provide some information about the compiler.
2525 echo "$as_me:$LINENO:" \
2526 "checking for C compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2529 (eval $ac_compiler --version </dev/null >&5) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2534 (eval $ac_compiler -v </dev/null >&5) 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2539 (eval $ac_compiler -V </dev/null >&5) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 ac_clean_files_save=$ac_clean_files
2560 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2561 # Try to create an executable without -o first, disregard a.out.
2562 # It will help us diagnose broken compilers, and finding out an intuition
2564 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2565 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2566 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2567 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2568 (eval $ac_link_default) 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; then
2572 # Find the output, starting from the most likely. This scheme is
2573 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2576 # Be careful to initialize this variable, since it used to be cached.
2577 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2579 # b.out is created by i960 compilers.
2580 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2582 test -f "$ac_file" || continue
2584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2587 # This is the source file.
2590 # We found the default executable, but exeext='' is most
2594 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2595 # FIXME: I believe we export ac_cv_exeext for Libtool,
2596 # but it would be cool to find out if it's true. Does anybody
2597 # maintain Libtool? --akim.
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2608 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: C compiler cannot create executables
2611 See \`config.log' for more details." >&2;}
2612 { (exit 77); exit 77; }; }
2615 ac_exeext=$ac_cv_exeext
2616 echo "$as_me:$LINENO: result: $ac_file" >&5
2617 echo "${ECHO_T}$ac_file" >&6
2619 # Check the compiler produces executables we can run. If not, either
2620 # the compiler is broken, or we cross compile.
2621 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2622 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2623 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2624 # If not cross compiling, check that we can run a simple program.
2625 if test "$cross_compiling" != yes; then
2626 if { ac_try='./$ac_file'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2634 if test "$cross_compiling" = maybe; then
2637 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'.
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2647 echo "$as_me:$LINENO: result: yes" >&5
2648 echo "${ECHO_T}yes" >&6
2650 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2651 ac_clean_files=$ac_clean_files_save
2652 # Check the compiler produces executables we can run. If not, either
2653 # the compiler is broken, or we cross compile.
2654 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2655 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2656 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2657 echo "${ECHO_T}$cross_compiling" >&6
2659 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2660 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2662 (eval $ac_link) 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; then
2666 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2667 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2668 # work properly (i.e., refer to `conftest.exe'), while it won't with
2670 for ac_file in conftest.exe conftest conftest.*; do
2671 test -f "$ac_file" || continue
2673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2674 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2681 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2684 See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2688 rm -f conftest$ac_cv_exeext
2689 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2690 echo "${ECHO_T}$ac_cv_exeext" >&6
2692 rm -f conftest.$ac_ext
2693 EXEEXT=$ac_cv_exeext
2695 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2696 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2697 if test "${ac_cv_objext+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2715 rm -f conftest.o conftest.obj
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717 (eval $ac_compile) 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; then
2721 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2724 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2732 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2735 See \`config.log' for more details." >&2;}
2736 { (exit 1); exit 1; }; }
2739 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2741 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2742 echo "${ECHO_T}$ac_cv_objext" >&6
2743 OBJEXT=$ac_cv_objext
2745 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2746 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2747 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2772 grep -v '^ *+' conftest.er1 >conftest.err
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2800 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2801 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2802 GCC=`test $ac_compiler_gnu = yes && echo yes`
2803 ac_test_CFLAGS=${CFLAGS+set}
2804 ac_save_CFLAGS=$CFLAGS
2806 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2807 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2808 if test "${ac_cv_prog_cc_g+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 cat >conftest.$ac_ext <<_ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2858 if test "$ac_test_CFLAGS" = set; then
2859 CFLAGS=$ac_save_CFLAGS
2860 elif test $ac_cv_prog_cc_g = yes; then
2861 if test "$GCC" = yes; then
2867 if test "$GCC" = yes; then
2873 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2874 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2875 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 ac_cv_prog_cc_stdc=no
2880 cat >conftest.$ac_ext <<_ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2888 #include <sys/types.h>
2889 #include <sys/stat.h>
2890 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2891 struct buf { int x; };
2892 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2893 static char *e (p, i)
2899 static char *f (char * (*g) (char **, int), char **p, ...)
2904 s = g (p, va_arg (v,int));
2909 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2910 function prototypes and stuff, but not '\xHH' hex character constants.
2911 These don't provoke an error unfortunately, instead are silently treated
2912 as 'x'. The following induces an error, until -std1 is added to get
2913 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2914 array size at least. It's necessary to write '\x00'==0 to get something
2915 that's true only with -std1. */
2916 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2918 int test (int i, double x);
2919 struct s1 {int (*f) (int a);};
2920 struct s2 {int (*f) (double a);};
2921 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2927 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2932 # Don't try gcc -ansi; that turns off useful extensions and
2933 # breaks some systems' header files.
2934 # AIX -qlanglvl=ansi
2935 # Ultrix and OSF/1 -std1
2936 # HP-UX 10.20 and later -Ae
2937 # HP-UX older versions -Aa -D_HPUX_SOURCE
2938 # SVR4 -Xc -D__EXTENSIONS__
2939 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2941 CC="$ac_save_CC $ac_arg"
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 ac_cv_prog_cc_stdc=$ac_arg
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f conftest.err conftest.$ac_objext
2972 rm -f conftest.$ac_ext conftest.$ac_objext
2977 case "x$ac_cv_prog_cc_stdc" in
2979 echo "$as_me:$LINENO: result: none needed" >&5
2980 echo "${ECHO_T}none needed" >&6 ;;
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2984 CC="$CC $ac_cv_prog_cc_stdc" ;;
2987 # Some people use a C++ compiler to compile C. Since we use `exit',
2988 # in C++ we need to declare it. In case someone uses the same compiler
2989 # for both compiling C and C++ we need to have the C++ compiler decide
2990 # the declaration of exit, since it's the most demanding environment.
2991 cat >conftest.$ac_ext <<_ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 for ac_declaration in \
3019 'extern "C" void std::exit (int) throw (); using std::exit;' \
3020 'extern "C" void std::exit (int); using std::exit;' \
3021 'extern "C" void exit (int) throw ();' \
3022 'extern "C" void exit (int);' \
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; } &&
3056 { ac_try='test -s conftest.$ac_objext'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3085 rm -f conftest.$ac_objext
3086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3087 (eval $ac_compile) 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115 if test -n "$ac_declaration"; then
3116 echo '#ifdef __cplusplus' >>confdefs.h
3117 echo $ac_declaration >>confdefs.h
3118 echo '#endif' >>confdefs.h
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 depcc="$CC" am_compiler_list=
3135 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3136 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3137 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3141 # We make a subdir and do the tests there. Otherwise we can end up
3142 # making bogus files that we don't know about and never remove. For
3143 # instance it was reported that on HP-UX the gcc test will end up
3144 # making a dummy file named `D' -- because `-MD' means `put the output
3147 # Copy depcomp to subdir because otherwise we won't find it if we're
3148 # using a relative directory.
3149 cp "$am_depcomp" conftest.dir
3151 # We will build objects and dependencies in a subdirectory because
3152 # it helps to detect inapplicable dependency modes. For instance
3153 # both Tru64's cc and ICC support -MD to output dependencies as a
3154 # side effect of compilation, but ICC will put the dependencies in
3155 # the current directory while Tru64 will put them in the object
3159 am_cv_CC_dependencies_compiler_type=none
3160 if test "$am_compiler_list" = ""; then
3161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3163 for depmode in $am_compiler_list; do
3164 # Setup a source with many dependencies, because some compilers
3165 # like to wrap large dependency lists on column 80 (with \), and
3166 # we should not choose a depcomp mode which is confused by this.
3168 # We need to recreate these files for each test, as the compiler may
3169 # overwrite some of them when testing with obscure command lines.
3170 # This happens at least with the AIX C compiler.
3172 for i in 1 2 3 4 5 6; do
3173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3174 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3175 # Solaris 8's {/usr,}/bin/sh.
3176 touch sub/conftst$i.h
3178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3182 # after this tag, mechanisms are not by side-effect, so they'll
3183 # only be used when explicitly requested
3184 if test "x$enable_dependency_tracking" = xyes; then
3192 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3193 # mode. It turns out that the SunPro C++ compiler does not properly
3194 # handle `-M -o', and we need to detect this.
3195 if depmode=$depmode \
3196 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3197 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3198 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3199 >/dev/null 2>conftest.err &&
3200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3201 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3203 # icc doesn't choke on unknown options, it will just issue warnings
3204 # or remarks (even with -Werror). So we grep stderr for any message
3205 # that says an option was ignored or not supported.
3206 # When given -MP, icc 7.0 and 7.1 complain thusly:
3207 # icc: Command line warning: ignoring option '-M'; no argument required
3208 # The diagnosis changed in icc 8.0:
3209 # icc: Command line remark: option '-MP' not supported
3210 if (grep 'ignoring option' conftest.err ||
3211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3212 am_cv_CC_dependencies_compiler_type=$depmode
3221 am_cv_CC_dependencies_compiler_type=none
3225 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3226 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3227 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3232 test "x$enable_dependency_tracking" != xno \
3233 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3235 am__fastdepCC_FALSE='#'
3237 am__fastdepCC_TRUE='#'
3238 am__fastdepCC_FALSE=
3242 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3243 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3244 if test "${lt_cv_path_SED+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 # Loop through the user's path and test for sed and gsed.
3248 # Then use that list of sed's as ones to test for truncation.
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir=.
3254 for lt_ac_prog in sed gsed; do
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3257 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3264 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3265 # along with /bin/sed that truncates output.
3266 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3267 test ! -f $lt_ac_sed && continue
3268 cat /dev/null > conftest.in
3270 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3271 # Check for GNU sed and select it if it is found.
3272 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3273 lt_cv_path_SED=$lt_ac_sed
3277 cat conftest.in conftest.in >conftest.tmp
3278 mv conftest.tmp conftest.in
3279 cp conftest.in conftest.nl
3281 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3282 cmp -s conftest.out conftest.nl || break
3283 # 10000 chars as input seems more than enough
3284 test $lt_ac_count -gt 10 && break
3285 lt_ac_count=`expr $lt_ac_count + 1`
3286 if test $lt_ac_count -gt $lt_ac_max; then
3287 lt_ac_max=$lt_ac_count
3288 lt_cv_path_SED=$lt_ac_sed
3296 echo "$as_me:$LINENO: result: $SED" >&5
3297 echo "${ECHO_T}$SED" >&6
3299 echo "$as_me:$LINENO: checking for egrep" >&5
3300 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3301 if test "${ac_cv_prog_egrep+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3305 then ac_cv_prog_egrep='grep -E'
3306 else ac_cv_prog_egrep='egrep'
3309 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3310 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3311 EGREP=$ac_cv_prog_egrep
3315 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3316 if test "${with_gnu_ld+set}" = set; then
3317 withval="$with_gnu_ld"
3318 test "$withval" = no || with_gnu_ld=yes
3323 if test "$GCC" = yes; then
3324 # Check if gcc -print-prog-name=ld gives a path.
3325 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3326 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3329 # gcc leaves a trailing carriage return which upsets mingw
3330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3335 # Accept absolute paths.
3337 re_direlt='/[^/][^/]*/\.\./'
3338 # Canonicalize the pathname of ld
3339 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3340 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3341 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3343 test -z "$LD" && LD="$ac_prog"
3346 # If it fails, then pretend we aren't using GCC.
3350 # If it is relative, then search for the first ld in PATH.
3354 elif test "$with_gnu_ld" = yes; then
3355 echo "$as_me:$LINENO: checking for GNU ld" >&5
3356 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3358 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3359 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3361 if test "${lt_cv_path_LD+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 if test -z "$LD"; then
3365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3366 for ac_dir in $PATH; do
3368 test -z "$ac_dir" && ac_dir=.
3369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3370 lt_cv_path_LD="$ac_dir/$ac_prog"
3371 # Check to see if the program is GNU ld. I'd rather use --version,
3372 # but apparently some variants of GNU ld only accept -v.
3373 # Break only if it was the GNU/non-GNU ld that we prefer.
3374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3375 *GNU* | *'with BFD'*)
3376 test "$with_gnu_ld" != no && break
3379 test "$with_gnu_ld" != yes && break
3386 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3391 if test -n "$LD"; then
3392 echo "$as_me:$LINENO: result: $LD" >&5
3393 echo "${ECHO_T}$LD" >&6
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3398 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3399 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3400 { (exit 1); exit 1; }; }
3401 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3402 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3403 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3407 case `$LD -v 2>&1 </dev/null` in
3408 *GNU* | *'with BFD'*)
3409 lt_cv_prog_gnu_ld=yes
3412 lt_cv_prog_gnu_ld=no
3416 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3417 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3418 with_gnu_ld=$lt_cv_prog_gnu_ld
3421 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3422 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3423 if test "${lt_cv_ld_reload_flag+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 lt_cv_ld_reload_flag='-r'
3428 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3429 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3430 reload_flag=$lt_cv_ld_reload_flag
3431 case $reload_flag in
3433 *) reload_flag=" $reload_flag" ;;
3435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3438 if test "$GCC" = yes; then
3439 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3441 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3446 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3447 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3448 if test "${lt_cv_path_NM+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 if test -n "$NM"; then
3452 # Let the user override the test.
3455 lt_nm_to_check="${ac_tool_prefix}nm"
3456 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3457 lt_nm_to_check="$lt_nm_to_check nm"
3459 for lt_tmp_nm in $lt_nm_to_check; do
3460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3461 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3463 test -z "$ac_dir" && ac_dir=.
3464 tmp_nm="$ac_dir/$lt_tmp_nm"
3465 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3466 # Check to see if the nm accepts a BSD-compat flag.
3467 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3468 # nm: unknown option "B" ignored
3469 # Tru64's nm complains that /dev/null is an invalid object file
3470 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3471 */dev/null* | *'Invalid file or object type'*)
3472 lt_cv_path_NM="$tmp_nm -B"
3476 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3478 lt_cv_path_NM="$tmp_nm -p"
3482 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3483 continue # so that we can try to find one that supports BSD flags
3492 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3495 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3496 echo "${ECHO_T}$lt_cv_path_NM" >&6
3499 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3500 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3502 if test "$LN_S" = "ln -s"; then
3503 echo "$as_me:$LINENO: result: yes" >&5
3504 echo "${ECHO_T}yes" >&6
3506 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3507 echo "${ECHO_T}no, using $LN_S" >&6
3510 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3511 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3512 if test "${lt_cv_deplibs_check_method+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 lt_cv_file_magic_cmd='$MAGIC_CMD'
3516 lt_cv_file_magic_test_file=
3517 lt_cv_deplibs_check_method='unknown'
3518 # Need to set the preceding variable on all platforms that support
3519 # interlibrary dependencies.
3520 # 'none' -- dependencies not supported.
3521 # `unknown' -- same as none, but documents that we really don't know.
3522 # 'pass_all' -- all dependencies passed with no checks.
3523 # 'test_compile' -- check by making test program.
3524 # 'file_magic [[regex]]' -- check by looking for files in library path
3525 # which responds to the $file_magic_cmd with a given extended regex.
3526 # If you have `file' or equivalent on your system and you're not sure
3527 # whether `pass_all' will *always* work, you probably want this one.
3531 lt_cv_deplibs_check_method=pass_all
3535 lt_cv_deplibs_check_method=pass_all
3539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3540 lt_cv_file_magic_cmd='/usr/bin/file -L'
3541 lt_cv_file_magic_test_file=/shlib/libc.so
3545 # func_win32_libid is a shell function defined in ltmain.sh
3546 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3547 lt_cv_file_magic_cmd='func_win32_libid'
3551 # Base MSYS/MinGW do not provide the 'file' command needed by
3552 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3553 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3554 lt_cv_file_magic_cmd='$OBJDUMP -f'
3557 darwin* | rhapsody*)
3558 lt_cv_deplibs_check_method=pass_all
3561 freebsd* | kfreebsd*-gnu | dragonfly*)
3562 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3565 # Not sure whether the presence of OpenBSD here was a mistake.
3566 # Let's accept both of them until this is cleared up.
3567 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3568 lt_cv_file_magic_cmd=/usr/bin/file
3569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3573 lt_cv_deplibs_check_method=pass_all
3578 lt_cv_deplibs_check_method=pass_all
3581 hpux10.20* | hpux11*)
3582 lt_cv_file_magic_cmd=/usr/bin/file
3585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3586 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3589 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]'
3590 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3593 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3594 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3600 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3604 irix5* | irix6* | nonstopux*)
3606 *-32|*"-32 ") libmagic=32-bit;;
3607 *-n32|*"-n32 ") libmagic=N32;;
3608 *-64|*"-64 ") libmagic=64-bit;;
3609 *) libmagic=never-match;;
3611 lt_cv_deplibs_check_method=pass_all
3614 # This must be Linux ELF.
3616 lt_cv_deplibs_check_method=pass_all
3619 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3620 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3629 lt_cv_file_magic_cmd=/usr/bin/file
3630 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3634 lt_cv_deplibs_check_method=unknown
3638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3645 osf3* | osf4* | osf5*)
3646 lt_cv_deplibs_check_method=pass_all
3650 lt_cv_deplibs_check_method=pass_all
3654 case $host_vendor in
3656 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]'
3657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3660 lt_cv_deplibs_check_method=pass_all
3663 lt_cv_file_magic_cmd='/bin/file'
3664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3667 lt_cv_file_magic_cmd='/bin/file'
3668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3669 lt_cv_file_magic_test_file=/lib/libc.so
3672 lt_cv_deplibs_check_method=pass_all
3675 lt_cv_deplibs_check_method=pass_all
3680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3681 lt_cv_deplibs_check_method=pass_all
3686 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3687 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3688 file_magic_cmd=$lt_cv_file_magic_cmd
3689 deplibs_check_method=$lt_cv_deplibs_check_method
3690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3695 # If no C compiler was specified, use CC.
3698 # If no C compiler flags were specified, use CFLAGS.
3699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3701 # Allow CC to be a program name with arguments.
3705 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3706 if test "${enable_libtool_lock+set}" = set; then
3707 enableval="$enable_libtool_lock"
3710 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3712 # Some flags need to be propagated to the compiler or linker for good
3716 # Find out which ABI we are using.
3717 echo 'int i;' > conftest.$ac_ext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; then
3723 case `/usr/bin/file conftest.$ac_objext` in
3735 # Find out which ABI we are using.
3736 echo '#line 3736 "configure"' > conftest.$ac_ext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 if test "$lt_cv_prog_gnu_ld" = yes; then
3743 case `/usr/bin/file conftest.$ac_objext` in
3745 LD="${LD-ld} -melf32bsmip"
3748 LD="${LD-ld} -melf32bmipn32"
3751 LD="${LD-ld} -melf64bmip"
3755 case `/usr/bin/file conftest.$ac_objext` in
3771 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3772 # Find out which ABI we are using.
3773 echo 'int i;' > conftest.$ac_ext
3774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3775 (eval $ac_compile) 2>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; then
3779 case `/usr/bin/file conftest.o` in
3783 LD="${LD-ld} -m elf_i386"
3785 ppc64-*linux*|powerpc64-*linux*)
3786 LD="${LD-ld} -m elf32ppclinux"
3789 LD="${LD-ld} -m elf_s390"
3792 LD="${LD-ld} -m elf32_sparc"
3799 LD="${LD-ld} -m elf_x86_64"
3801 ppc*-*linux*|powerpc*-*linux*)
3802 LD="${LD-ld} -m elf64ppc"
3805 LD="${LD-ld} -m elf64_s390"
3808 LD="${LD-ld} -m elf64_sparc"
3818 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3819 SAVE_CFLAGS="$CFLAGS"
3820 CFLAGS="$CFLAGS -belf"
3821 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3822 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3823 if test "${lt_cv_cc_needs_belf+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3849 (eval $ac_link) 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest$ac_exeext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 lt_cv_cc_needs_belf=yes
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 lt_cv_cc_needs_belf=no
3875 rm -f conftest.err conftest.$ac_objext \
3876 conftest$ac_exeext conftest.$ac_ext
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3885 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3886 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3887 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3888 CFLAGS="$SAVE_CFLAGS"
3892 # Find out which ABI we are using.
3893 echo 'int i;' > conftest.$ac_ext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895 (eval $ac_compile) 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; then
3899 case `/usr/bin/file conftest.o` in
3901 case $lt_cv_prog_gnu_ld in
3902 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3903 *) LD="${LD-ld} -64" ;;
3911 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3915 echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 if test -n "$DLLTOOL"; then
3921 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 DLLTOOL=$ac_cv_prog_DLLTOOL
3940 if test -n "$DLLTOOL"; then
3941 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3942 echo "${ECHO_T}$DLLTOOL" >&6
3944 echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3949 if test -z "$ac_cv_prog_DLLTOOL"; then
3950 ac_ct_DLLTOOL=$DLLTOOL
3951 # Extract the first word of "dlltool", so it can be a program name with args.
3952 set dummy dlltool; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$ac_ct_DLLTOOL"; then
3959 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3978 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3979 if test -n "$ac_ct_DLLTOOL"; then
3980 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3981 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3983 echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3987 DLLTOOL=$ac_ct_DLLTOOL
3989 DLLTOOL="$ac_cv_prog_DLLTOOL"
3992 if test -n "$ac_tool_prefix"; then
3993 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}as; ac_word=$2
3995 echo "$as_me:$LINENO: checking for $ac_word" >&5
3996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997 if test "${ac_cv_prog_AS+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 if test -n "$AS"; then
4001 ac_cv_prog_AS="$AS" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_AS="${ac_tool_prefix}as"
4011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 if test -n "$AS"; then
4021 echo "$as_me:$LINENO: result: $AS" >&5
4022 echo "${ECHO_T}$AS" >&6
4024 echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4029 if test -z "$ac_cv_prog_AS"; then
4031 # Extract the first word of "as", so it can be a program name with args.
4032 set dummy as; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if test -n "$ac_ct_AS"; then
4039 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 ac_cv_prog_ac_ct_AS="as"
4049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4058 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4059 if test -n "$ac_ct_AS"; then
4060 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4061 echo "${ECHO_T}$ac_ct_AS" >&6
4063 echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$OBJDUMP"; then
4081 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 OBJDUMP=$ac_cv_prog_OBJDUMP
4100 if test -n "$OBJDUMP"; then
4101 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4102 echo "${ECHO_T}$OBJDUMP" >&6
4104 echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4109 if test -z "$ac_cv_prog_OBJDUMP"; then
4110 ac_ct_OBJDUMP=$OBJDUMP
4111 # Extract the first word of "objdump", so it can be a program name with args.
4112 set dummy objdump; ac_word=$2
4113 echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$ac_ct_OBJDUMP"; then
4119 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4138 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4139 if test -n "$ac_ct_OBJDUMP"; then
4140 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4141 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4143 echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4147 OBJDUMP=$ac_ct_OBJDUMP
4149 OBJDUMP="$ac_cv_prog_OBJDUMP"
4156 need_locks="$enable_libtool_lock"
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4166 # On Suns, sometimes $CPP names a directory.
4167 if test -n "$CPP" && test -d "$CPP"; then
4170 if test -z "$CPP"; then
4171 if test "${ac_cv_prog_CPP+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 # Double quotes because CPP needs to be expanded
4175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4178 for ac_c_preproc_warn_flag in '' yes
4180 # Use a header file that comes with gcc, so configuring glibc
4181 # with a fresh cross-compiler works.
4182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 # <limits.h> exists even on freestanding compilers.
4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4185 # not just through cpp. "Syntax error" is here to catch this case.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4193 # include <limits.h>
4195 # include <assert.h>
4199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4202 grep -v '^ *+' conftest.er1 >conftest.err
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } >/dev/null; then
4207 if test -s conftest.err; then
4208 ac_cpp_err=$ac_c_preproc_warn_flag
4209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4216 if test -z "$ac_cpp_err"; then
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 # Broken: fails on valid input.
4225 rm -f conftest.err conftest.$ac_ext
4227 # OK, works on sane cases. Now check whether non-existent headers
4228 # can be detected and how.
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <ac_nonexistent.h>
4237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null; then
4245 if test -s conftest.err; then
4246 ac_cpp_err=$ac_c_preproc_warn_flag
4247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4254 if test -z "$ac_cpp_err"; then
4255 # Broken: success on invalid input.
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 # Passes both tests.
4265 rm -f conftest.err conftest.$ac_ext
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.err conftest.$ac_ext
4270 if $ac_preproc_ok; then
4282 echo "$as_me:$LINENO: result: $CPP" >&5
4283 echo "${ECHO_T}$CPP" >&6
4285 for ac_c_preproc_warn_flag in '' yes
4287 # Use a header file that comes with gcc, so configuring glibc
4288 # with a fresh cross-compiler works.
4289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4290 # <limits.h> exists even on freestanding compilers.
4291 # On the NeXT, cc -E runs the code through the compiler's parser,
4292 # not just through cpp. "Syntax error" is here to catch this case.
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4300 # include <limits.h>
4302 # include <assert.h>
4306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } >/dev/null; then
4314 if test -s conftest.err; then
4315 ac_cpp_err=$ac_c_preproc_warn_flag
4316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4323 if test -z "$ac_cpp_err"; then
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 # Broken: fails on valid input.
4332 rm -f conftest.err conftest.$ac_ext
4334 # OK, works on sane cases. Now check whether non-existent headers
4335 # can be detected and how.
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } >/dev/null; then
4352 if test -s conftest.err; then
4353 ac_cpp_err=$ac_c_preproc_warn_flag
4354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4361 if test -z "$ac_cpp_err"; then
4362 # Broken: success on invalid input.
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 # Passes both tests.
4372 rm -f conftest.err conftest.$ac_ext
4375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4376 rm -f conftest.err conftest.$ac_ext
4377 if $ac_preproc_ok; then
4380 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4381 See \`config.log' for more details." >&5
4382 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4383 See \`config.log' for more details." >&2;}
4384 { (exit 1); exit 1; }; }
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4396 if test "${ac_cv_header_stdc+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_cv_header_stdc=yes
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 ac_cv_header_stdc=no
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 if test $ac_cv_header_stdc = yes; then
4449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "memchr" >/dev/null 2>&1; then
4463 ac_cv_header_stdc=no
4469 if test $ac_cv_header_stdc = yes; then
4470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481 $EGREP "free" >/dev/null 2>&1; then
4484 ac_cv_header_stdc=no
4490 if test $ac_cv_header_stdc = yes; then
4491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4492 if test "$cross_compiling" = yes; then
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4502 #if ((' ' & 0x0FF) == 0x020)
4503 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4504 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4506 # define ISLOWER(c) \
4507 (('a' <= (c) && (c) <= 'i') \
4508 || ('j' <= (c) && (c) <= 'r') \
4509 || ('s' <= (c) && (c) <= 'z'))
4510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4513 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4518 for (i = 0; i < 256; i++)
4519 if (XOR (islower (i), ISLOWER (i))
4520 || toupper (i) != TOUPPER (i))
4525 rm -f conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527 (eval $ac_link) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4538 echo "$as_me: program exited with status $ac_status" >&5
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4543 ac_cv_header_stdc=no
4545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4550 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4551 if test $ac_cv_header_stdc = yes; then
4553 cat >>confdefs.h <<\_ACEOF
4554 #define STDC_HEADERS 1
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 echo "$as_me:$LINENO: checking for $ac_header" >&5
4574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4586 #include <$ac_header>
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>conftest.er1
4592 grep -v '^ *+' conftest.er1 >conftest.err
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 eval "$as_ac_Header=yes"
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 eval "$as_ac_Header=no"
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4621 cat >>confdefs.h <<_ACEOF
4622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4631 for ac_header in dlfcn.h
4633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635 echo "$as_me:$LINENO: checking for $ac_header" >&5
4636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4643 # Is the header compilable?
4644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 $ac_includes_default
4653 #include <$ac_header>
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657 (eval $ac_compile) 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_header_compiler=yes
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 ac_header_compiler=no
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4685 echo "${ECHO_T}$ac_header_compiler" >&6
4687 # Is the header present?
4688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 #include <$ac_header>
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701 grep -v '^ *+' conftest.er1 >conftest.err
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_c_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4715 if test -z "$ac_cpp_err"; then
4716 ac_header_preproc=yes
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 ac_header_preproc=no
4723 rm -f conftest.err conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4727 # So? What about this header?
4728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4734 ac_header_preproc=yes
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4751 ## -------------------------------------------------- ##
4752 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
4753 ## -------------------------------------------------- ##
4756 sed "s/^/$as_me: WARNING: /" >&2
4759 echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 eval "$as_ac_Header=\$ac_header_preproc"
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771 cat >>confdefs.h <<_ACEOF
4772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780 ac_cpp='$CXXCPP $CPPFLAGS'
4781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4784 if test -n "$ac_tool_prefix"; then
4785 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4789 echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4791 if test "${ac_cv_prog_CXX+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 if test -n "$CXX"; then
4795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 if test -n "$CXX"; then
4815 echo "$as_me:$LINENO: result: $CXX" >&5
4816 echo "${ECHO_T}$CXX" >&6
4818 echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6
4822 test -n "$CXX" && break
4825 if test -z "$CXX"; then
4827 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4829 # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 if test -n "$ac_ct_CXX"; then
4837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_ac_ct_CXX="$ac_prog"
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4856 if test -n "$ac_ct_CXX"; then
4857 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4858 echo "${ECHO_T}$ac_ct_CXX" >&6
4860 echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4864 test -n "$ac_ct_CXX" && break
4866 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4872 # Provide some information about the compiler.
4873 echo "$as_me:$LINENO:" \
4874 "checking for C++ compiler version" >&5
4875 ac_compiler=`set X $ac_compile; echo $2`
4876 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4877 (eval $ac_compiler --version </dev/null >&5) 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }
4881 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4882 (eval $ac_compiler -v </dev/null >&5) 2>&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }
4886 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4887 (eval $ac_compiler -V </dev/null >&5) 2>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }
4892 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4893 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4894 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest.$ac_objext'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4944 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4947 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4948 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4949 GXX=`test $ac_compiler_gnu = yes && echo yes`
4950 ac_test_CXXFLAGS=${CXXFLAGS+set}
4951 ac_save_CXXFLAGS=$CXXFLAGS
4953 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4954 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4955 if test "${ac_cv_prog_cxx_g+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>conftest.er1
4977 grep -v '^ *+' conftest.er1 >conftest.err
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_prog_cxx_g=yes
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
5001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5004 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5005 if test "$ac_test_CXXFLAGS" = set; then
5006 CXXFLAGS=$ac_save_CXXFLAGS
5007 elif test $ac_cv_prog_cxx_g = yes; then
5008 if test "$GXX" = yes; then
5014 if test "$GXX" = yes; then
5020 for ac_declaration in \
5022 'extern "C" void std::exit (int) throw (); using std::exit;' \
5023 'extern "C" void std::exit (int); using std::exit;' \
5024 'extern "C" void exit (int) throw ();' \
5025 'extern "C" void exit (int);' \
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5044 rm -f conftest.$ac_objext
5045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5046 (eval $ac_compile) 2>conftest.er1
5048 grep -v '^ *+' conftest.er1 >conftest.err
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } &&
5053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; } &&
5059 { ac_try='test -s conftest.$ac_objext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118 if test -n "$ac_declaration"; then
5119 echo '#ifdef __cplusplus' >>confdefs.h
5120 echo $ac_declaration >>confdefs.h
5121 echo '#endif' >>confdefs.h
5125 ac_cpp='$CXXCPP $CPPFLAGS'
5126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5130 depcc="$CXX" am_compiler_list=
5132 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5133 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5134 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5138 # We make a subdir and do the tests there. Otherwise we can end up
5139 # making bogus files that we don't know about and never remove. For
5140 # instance it was reported that on HP-UX the gcc test will end up
5141 # making a dummy file named `D' -- because `-MD' means `put the output
5144 # Copy depcomp to subdir because otherwise we won't find it if we're
5145 # using a relative directory.
5146 cp "$am_depcomp" conftest.dir
5148 # We will build objects and dependencies in a subdirectory because
5149 # it helps to detect inapplicable dependency modes. For instance
5150 # both Tru64's cc and ICC support -MD to output dependencies as a
5151 # side effect of compilation, but ICC will put the dependencies in
5152 # the current directory while Tru64 will put them in the object
5156 am_cv_CXX_dependencies_compiler_type=none
5157 if test "$am_compiler_list" = ""; then
5158 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5160 for depmode in $am_compiler_list; do
5161 # Setup a source with many dependencies, because some compilers
5162 # like to wrap large dependency lists on column 80 (with \), and
5163 # we should not choose a depcomp mode which is confused by this.
5165 # We need to recreate these files for each test, as the compiler may
5166 # overwrite some of them when testing with obscure command lines.
5167 # This happens at least with the AIX C compiler.
5169 for i in 1 2 3 4 5 6; do
5170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5171 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5172 # Solaris 8's {/usr,}/bin/sh.
5173 touch sub/conftst$i.h
5175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5179 # after this tag, mechanisms are not by side-effect, so they'll
5180 # only be used when explicitly requested
5181 if test "x$enable_dependency_tracking" = xyes; then
5189 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5190 # mode. It turns out that the SunPro C++ compiler does not properly
5191 # handle `-M -o', and we need to detect this.
5192 if depmode=$depmode \
5193 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5195 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5196 >/dev/null 2>conftest.err &&
5197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5198 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5200 # icc doesn't choke on unknown options, it will just issue warnings
5201 # or remarks (even with -Werror). So we grep stderr for any message
5202 # that says an option was ignored or not supported.
5203 # When given -MP, icc 7.0 and 7.1 complain thusly:
5204 # icc: Command line warning: ignoring option '-M'; no argument required
5205 # The diagnosis changed in icc 8.0:
5206 # icc: Command line remark: option '-MP' not supported
5207 if (grep 'ignoring option' conftest.err ||
5208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5209 am_cv_CXX_dependencies_compiler_type=$depmode
5218 am_cv_CXX_dependencies_compiler_type=none
5222 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5223 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5224 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5229 test "x$enable_dependency_tracking" != xno \
5230 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5231 am__fastdepCXX_TRUE=
5232 am__fastdepCXX_FALSE='#'
5234 am__fastdepCXX_TRUE='#'
5235 am__fastdepCXX_FALSE=
5241 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5242 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5243 (test "X$CXX" != "Xg++"))) ; then
5245 ac_cpp='$CXXCPP $CPPFLAGS'
5246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5249 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5250 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5251 if test -z "$CXXCPP"; then
5252 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 # Double quotes because CXXCPP needs to be expanded
5256 for CXXCPP in "$CXX -E" "/lib/cpp"
5259 for ac_cxx_preproc_warn_flag in '' yes
5261 # Use a header file that comes with gcc, so configuring glibc
5262 # with a fresh cross-compiler works.
5263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5264 # <limits.h> exists even on freestanding compilers.
5265 # On the NeXT, cc -E runs the code through the compiler's parser,
5266 # not just through cpp. "Syntax error" is here to catch this case.
5267 cat >conftest.$ac_ext <<_ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5274 # include <limits.h>
5276 # include <assert.h>
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null; then
5288 if test -s conftest.err; then
5289 ac_cpp_err=$ac_cxx_preproc_warn_flag
5290 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5297 if test -z "$ac_cpp_err"; then
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 # Broken: fails on valid input.
5306 rm -f conftest.err conftest.$ac_ext
5308 # OK, works on sane cases. Now check whether non-existent headers
5309 # can be detected and how.
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <ac_nonexistent.h>
5318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_cxx_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5335 if test -z "$ac_cpp_err"; then
5336 # Broken: success on invalid input.
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 # Passes both tests.
5346 rm -f conftest.err conftest.$ac_ext
5349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350 rm -f conftest.err conftest.$ac_ext
5351 if $ac_preproc_ok; then
5356 ac_cv_prog_CXXCPP=$CXXCPP
5359 CXXCPP=$ac_cv_prog_CXXCPP
5361 ac_cv_prog_CXXCPP=$CXXCPP
5363 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5364 echo "${ECHO_T}$CXXCPP" >&6
5366 for ac_cxx_preproc_warn_flag in '' yes
5368 # Use a header file that comes with gcc, so configuring glibc
5369 # with a fresh cross-compiler works.
5370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 # <limits.h> exists even on freestanding compilers.
5372 # On the NeXT, cc -E runs the code through the compiler's parser,
5373 # not just through cpp. "Syntax error" is here to catch this case.
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5381 # include <limits.h>
5383 # include <assert.h>
5387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } >/dev/null; then
5395 if test -s conftest.err; then
5396 ac_cpp_err=$ac_cxx_preproc_warn_flag
5397 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5404 if test -z "$ac_cpp_err"; then
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 # Broken: fails on valid input.
5413 rm -f conftest.err conftest.$ac_ext
5415 # OK, works on sane cases. Now check whether non-existent headers
5416 # can be detected and how.
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <ac_nonexistent.h>
5425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5428 grep -v '^ *+' conftest.er1 >conftest.err
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } >/dev/null; then
5433 if test -s conftest.err; then
5434 ac_cpp_err=$ac_cxx_preproc_warn_flag
5435 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5442 if test -z "$ac_cpp_err"; then
5443 # Broken: success on invalid input.
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 # Passes both tests.
5453 rm -f conftest.err conftest.$ac_ext
5456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5457 rm -f conftest.err conftest.$ac_ext
5458 if $ac_preproc_ok; then
5461 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5462 See \`config.log' for more details." >&5
5463 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5464 See \`config.log' for more details." >&2;}
5465 { (exit 1); exit 1; }; }
5469 ac_cpp='$CXXCPP $CPPFLAGS'
5470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5478 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5479 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5481 if test -n "$ac_tool_prefix"; then
5482 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486 echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5488 if test "${ac_cv_prog_F77+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 if test -n "$F77"; then
5492 ac_cv_prog_F77="$F77" # Let the user override the test.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 if test -n "$F77"; then
5512 echo "$as_me:$LINENO: result: $F77" >&5
5513 echo "${ECHO_T}$F77" >&6
5515 echo "$as_me:$LINENO: result: no" >&5
5516 echo "${ECHO_T}no" >&6
5519 test -n "$F77" && break
5522 if test -z "$F77"; then
5524 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5526 # Extract the first word of "$ac_prog", so it can be a program name with args.
5527 set dummy $ac_prog; ac_word=$2
5528 echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 if test -n "$ac_ct_F77"; then
5534 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_ac_ct_F77="$ac_prog"
5544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5553 if test -n "$ac_ct_F77"; then
5554 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5555 echo "${ECHO_T}$ac_ct_F77" >&6
5557 echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5561 test -n "$ac_ct_F77" && break
5568 # Provide some information about the compiler.
5569 echo "$as_me:5569:" \
5570 "checking for Fortran 77 compiler version" >&5
5571 ac_compiler=`set X $ac_compile; echo $2`
5572 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5573 (eval $ac_compiler --version </dev/null >&5) 2>&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }
5577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5578 (eval $ac_compiler -v </dev/null >&5) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }
5582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5583 (eval $ac_compiler -V </dev/null >&5) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }
5589 # If we don't use `.F' as extension, the preprocessor is not run on the
5590 # input file. (Note that this only needs to work for GNU compilers.)
5593 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5594 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5595 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try='test -s conftest.$ac_objext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5638 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5639 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5641 ac_test_FFLAGS=${FFLAGS+set}
5642 ac_save_FFLAGS=$FFLAGS
5644 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5645 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5646 if test "${ac_cv_prog_f77_g+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 cat >conftest.$ac_ext <<_ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest.$ac_objext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_prog_f77_g=yes
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5687 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5688 if test "$ac_test_FFLAGS" = set; then
5689 FFLAGS=$ac_save_FFLAGS
5690 elif test $ac_cv_prog_f77_g = yes; then
5691 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5697 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5704 G77=`test $ac_compiler_gnu = yes && echo yes`
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5715 # find the maximum length of command line arguments
5716 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5717 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5718 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 # On DJGPP, this test can blow up pretty badly due to problems in libc
5727 # (any single argument exceeding 2000 bytes causes a buffer overrun
5728 # during glob expansion). Even if it were fixed, the result of this
5729 # check would be larger than it should be.
5730 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5734 # Under GNU Hurd, this test is not required because there is
5735 # no limit to the length of command line arguments.
5736 # Libtool will interpret -1 as no limit whatsoever
5737 lt_cv_sys_max_cmd_len=-1;
5741 # On Win9x/ME, this test blows up -- it succeeds, but takes
5742 # about 5 minutes as the teststring grows exponentially.
5743 # Worse, since 9x/ME are not pre-emptively multitasking,
5744 # you end up with a "frozen" computer, even though with patience
5745 # the test eventually succeeds (with a max line length of 256k).
5746 # Instead, let's just punt: use the minimum linelength reported by
5747 # all of the supported platforms: 8192 (on NT/2K/XP).
5748 lt_cv_sys_max_cmd_len=8192;
5752 # On AmigaOS with pdksh, this test takes hours, literally.
5753 # So we just punt and use a minimum line length of 8192.
5754 lt_cv_sys_max_cmd_len=8192;
5757 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5758 # This has been around since 386BSD, at least. Likely further.
5759 if test -x /sbin/sysctl; then
5760 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5761 elif test -x /usr/sbin/sysctl; then
5762 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5764 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5766 # And add a safety zone
5767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5772 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5773 lt_cv_sys_max_cmd_len=196608
5777 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5778 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5779 # nice to cause kernel panics so lets avoid the loop below.
5780 # First set a reasonable default.
5781 lt_cv_sys_max_cmd_len=16384
5783 if test -x /sbin/sysconfig; then
5784 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5785 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5790 lt_cv_sys_max_cmd_len=102400
5792 sysv5* | sco5v6* | sysv4.2uw2*)
5793 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5794 if test -n "$kargmax"; then
5795 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5797 lt_cv_sys_max_cmd_len=32768
5801 # If test is not a shell built-in, we'll probably end up computing a
5802 # maximum length that is only half of the actual maximum length, but
5804 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5805 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5806 = "XX$teststring") >/dev/null 2>&1 &&
5807 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5808 lt_cv_sys_max_cmd_len=$new_result &&
5809 test $i != 17 # 1/2 MB should be enough
5812 teststring=$teststring$teststring
5815 # Add a significant safety factor because C++ compilers can tack on massive
5816 # amounts of additional arguments before passing them to the linker.
5817 # It appears as though 1/2 is a usable value.
5818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5824 if test -n $lt_cv_sys_max_cmd_len ; then
5825 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5826 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5828 echo "$as_me:$LINENO: result: none" >&5
5829 echo "${ECHO_T}none" >&6
5835 # Check for command to grab the raw symbol name followed by C symbol from nm.
5836 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5837 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5838 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 # These are sane defaults that work on at least a few old systems.
5843 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5845 # Character class describing NM global symbol codes.
5846 symcode='[BCDEGRST]'
5848 # Regexp to match symbols that can be accessed directly from C.
5849 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5851 # Transform an extracted symbol line into a proper C declaration
5852 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5854 # Transform an extracted symbol line into symbol name and symbol address
5855 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'"
5857 # Define system-specific variables.
5862 cygwin* | mingw* | pw32*)
5863 symcode='[ABCDGISTW]'
5865 hpux*) # Its linker distinguishes data from code symbols
5866 if test "$host_cpu" = ia64; then
5867 symcode='[ABCDEGRST]'
5869 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5870 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'"
5873 if test "$host_cpu" = ia64; then
5874 symcode='[ABCDGIRSTW]'
5875 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5876 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'"
5880 symcode='[BCDEGRST]'
5883 symcode='[BCDEGQRST]'
5894 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5902 # Handle CRLF in mingw tool chain
5906 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5910 # If we're using GNU nm, then use its standard symbol codes.
5911 case `$NM -V 2>&1` in
5912 *GNU* | *'with BFD'*)
5913 symcode='[ABCDGIRSTW]' ;;
5916 # Try without a prefix undercore, then with it.
5917 for ac_symprfx in "" "_"; do
5919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5920 symxfrm="\\1 $ac_symprfx\\2 \\2"
5922 # Write the raw and C identifiers.
5923 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5925 # Check to see that the pipe works correctly.
5929 cat > conftest.$ac_ext <<EOF
5934 void nm_test_func(){}
5938 int main(){nm_test_var='a';nm_test_func();return(0);}
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; then
5946 # Now try to grab the symbols.
5948 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5949 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && test -s "$nlist"; then
5953 # Try sorting and uniquifying the output.
5954 if sort "$nlist" | uniq > "$nlist"T; then
5955 mv -f "$nlist"T "$nlist"
5960 # Make sure that we snagged all the symbols we need.
5961 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5962 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5963 cat <<EOF > conftest.$ac_ext
5969 # Now generate the symbol file.
5970 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5972 cat <<EOF >> conftest.$ac_ext
5973 #if defined (__STDC__) && __STDC__
5974 # define lt_ptr_t void *
5976 # define lt_ptr_t char *
5980 /* The mapping between symbol names and symbols. */
5985 lt_preloaded_symbols[] =
5988 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5989 cat <<\EOF >> conftest.$ac_ext
5997 # Now try linking the two files.
5998 mv conftest.$ac_objext conftstm.$ac_objext
5999 lt_save_LIBS="$LIBS"
6000 lt_save_CFLAGS="$CFLAGS"
6001 LIBS="conftstm.$ac_objext"
6002 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004 (eval $ac_link) 2>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6010 LIBS="$lt_save_LIBS"
6011 CFLAGS="$lt_save_CFLAGS"
6013 echo "cannot find nm_test_func in $nlist" >&5
6016 echo "cannot find nm_test_var in $nlist" >&5
6019 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6022 echo "$progname: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 rm -f conftest* conftst*
6027 # Do not use the global_symbol_pipe unless it works.
6028 if test "$pipe_works" = yes; then
6031 lt_cv_sys_global_symbol_pipe=
6037 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6038 lt_cv_sys_global_symbol_to_cdecl=
6040 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6041 echo "$as_me:$LINENO: result: failed" >&5
6042 echo "${ECHO_T}failed" >&6
6044 echo "$as_me:$LINENO: result: ok" >&5
6045 echo "${ECHO_T}ok" >&6
6048 echo "$as_me:$LINENO: checking for objdir" >&5
6049 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6050 if test "${lt_cv_objdir+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 rm -f .libs 2>/dev/null
6054 mkdir .libs 2>/dev/null
6055 if test -d .libs; then
6058 # MS-DOS does not allow filenames that begin with a dot.
6061 rmdir .libs 2>/dev/null
6063 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6064 echo "${ECHO_T}$lt_cv_objdir" >&6
6065 objdir=$lt_cv_objdir
6073 # AIX sometimes has problems with the GCC collect2 program. For some
6074 # reason, if we set the COLLECT_NAMES environment variable, the problems
6075 # vanish in a puff of smoke.
6076 if test "X${COLLECT_NAMES+set}" != Xset; then
6078 export COLLECT_NAMES
6083 # Sed substitution that helps us do robust quoting. It backslashifies
6084 # metacharacters that are still active within double-quoted strings.
6085 Xsed='sed -e 1s/^X//'
6086 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6088 # Same as above, but do not quote variable references.
6089 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6091 # Sed substitution to delay expansion of an escaped shell variable in a
6092 # double_quote_subst'ed string.
6093 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6095 # Sed substitution to avoid accidental globbing in evaled expressions
6096 no_glob_subst='s/\*/\\\*/g'
6102 default_ofile=libtool
6103 can_build_shared=yes
6105 # All known linkers require a `.a' archive for static linking (except MSVC,
6106 # which needs '.lib').
6108 ltmain="$ac_aux_dir/ltmain.sh"
6109 ofile="$default_ofile"
6110 with_gnu_ld="$lt_cv_prog_gnu_ld"
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ar; ac_word=$2
6115 echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6117 if test "${ac_cv_prog_AR+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 if test -n "$AR"; then
6121 ac_cv_prog_AR="$AR" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_AR="${ac_tool_prefix}ar"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 if test -n "$AR"; then
6141 echo "$as_me:$LINENO: result: $AR" >&5
6142 echo "${ECHO_T}$AR" >&6
6144 echo "$as_me:$LINENO: result: no" >&5
6145 echo "${ECHO_T}no" >&6
6149 if test -z "$ac_cv_prog_AR"; then
6151 # Extract the first word of "ar", so it can be a program name with args.
6152 set dummy ar; ac_word=$2
6153 echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6155 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 if test -n "$ac_ct_AR"; then
6159 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_ac_ct_AR="ar"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6179 if test -n "$ac_ct_AR"; then
6180 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6181 echo "${ECHO_T}$ac_ct_AR" >&6
6183 echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6195 echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6197 if test "${ac_cv_prog_RANLIB+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test -n "$RANLIB"; then
6201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 RANLIB=$ac_cv_prog_RANLIB
6220 if test -n "$RANLIB"; then
6221 echo "$as_me:$LINENO: result: $RANLIB" >&5
6222 echo "${ECHO_T}$RANLIB" >&6
6224 echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6
6229 if test -z "$ac_cv_prog_RANLIB"; then
6230 ac_ct_RANLIB=$RANLIB
6231 # Extract the first word of "ranlib", so it can be a program name with args.
6232 set dummy ranlib; ac_word=$2
6233 echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6235 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 if test -n "$ac_ct_RANLIB"; then
6239 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_ac_ct_RANLIB="ranlib"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6259 if test -n "$ac_ct_RANLIB"; then
6260 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6261 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6263 echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6
6267 RANLIB=$ac_ct_RANLIB
6269 RANLIB="$ac_cv_prog_RANLIB"
6272 if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}strip; ac_word=$2
6275 echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6277 if test "${ac_cv_prog_STRIP+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 if test -n "$STRIP"; then
6281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 STRIP=$ac_cv_prog_STRIP
6300 if test -n "$STRIP"; then
6301 echo "$as_me:$LINENO: result: $STRIP" >&5
6302 echo "${ECHO_T}$STRIP" >&6
6304 echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6
6309 if test -z "$ac_cv_prog_STRIP"; then
6311 # Extract the first word of "strip", so it can be a program name with args.
6312 set dummy strip; ac_word=$2
6313 echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 if test -n "$ac_ct_STRIP"; then
6319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_ac_ct_STRIP="strip"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6339 if test -n "$ac_ct_STRIP"; then
6340 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6341 echo "${ECHO_T}$ac_ct_STRIP" >&6
6343 echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6349 STRIP="$ac_cv_prog_STRIP"
6354 old_CFLAGS="$CFLAGS"
6356 # Set sane defaults for various variables
6357 test -z "$AR" && AR=ar
6358 test -z "$AR_FLAGS" && AR_FLAGS=cru
6359 test -z "$AS" && AS=as
6360 test -z "$CC" && CC=cc
6361 test -z "$LTCC" && LTCC=$CC
6362 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6363 test -z "$DLLTOOL" && DLLTOOL=dlltool
6364 test -z "$LD" && LD=ld
6365 test -z "$LN_S" && LN_S="ln -s"
6366 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6367 test -z "$NM" && NM=nm
6368 test -z "$SED" && SED=sed
6369 test -z "$OBJDUMP" && OBJDUMP=objdump
6370 test -z "$RANLIB" && RANLIB=:
6371 test -z "$STRIP" && STRIP=:
6372 test -z "$ac_objext" && ac_objext=o
6374 # Determine commands to create old-style static archives.
6375 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6376 old_postinstall_cmds='chmod 644 $oldlib'
6377 old_postuninstall_cmds=
6379 if test -n "$RANLIB"; then
6382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6391 for cc_temp in $compiler""; do
6393 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6394 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6402 # Only perform the check for file, if the check method requires it
6403 case $deplibs_check_method in
6405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6406 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6407 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6408 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6416 lt_save_MAGIC_CMD="$MAGIC_CMD"
6417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6418 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6419 for ac_dir in $ac_dummy; do
6421 test -z "$ac_dir" && ac_dir=.
6422 if test -f $ac_dir/${ac_tool_prefix}file; then
6423 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6424 if test -n "$file_magic_test_file"; then
6425 case $deplibs_check_method in
6427 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6429 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6430 $EGREP "$file_magic_regex" > /dev/null; then
6435 *** Warning: the command libtool uses to detect shared libraries,
6436 *** $file_magic_cmd, produces output that libtool cannot recognize.
6437 *** The result is that libtool may fail to recognize shared libraries
6438 *** as such. This will affect the creation of libtool libraries that
6439 *** depend on shared libraries, but programs linked with such libtool
6440 *** libraries will work regardless of this problem. Nevertheless, you
6441 *** may want to report the problem to your system manager and/or to
6442 *** bug-libtool@gnu.org
6452 MAGIC_CMD="$lt_save_MAGIC_CMD"
6457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6458 if test -n "$MAGIC_CMD"; then
6459 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6460 echo "${ECHO_T}$MAGIC_CMD" >&6
6462 echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6
6466 if test -z "$lt_cv_path_MAGIC_CMD"; then
6467 if test -n "$ac_tool_prefix"; then
6468 echo "$as_me:$LINENO: checking for file" >&5
6469 echo $ECHO_N "checking for file... $ECHO_C" >&6
6470 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6478 lt_save_MAGIC_CMD="$MAGIC_CMD"
6479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6481 for ac_dir in $ac_dummy; do
6483 test -z "$ac_dir" && ac_dir=.
6484 if test -f $ac_dir/file; then
6485 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6486 if test -n "$file_magic_test_file"; then
6487 case $deplibs_check_method in
6489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6492 $EGREP "$file_magic_regex" > /dev/null; then
6497 *** Warning: the command libtool uses to detect shared libraries,
6498 *** $file_magic_cmd, produces output that libtool cannot recognize.
6499 *** The result is that libtool may fail to recognize shared libraries
6500 *** as such. This will affect the creation of libtool libraries that
6501 *** depend on shared libraries, but programs linked with such libtool
6502 *** libraries will work regardless of this problem. Nevertheless, you
6503 *** may want to report the problem to your system manager and/or to
6504 *** bug-libtool@gnu.org
6514 MAGIC_CMD="$lt_save_MAGIC_CMD"
6519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6520 if test -n "$MAGIC_CMD"; then
6521 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6522 echo "${ECHO_T}$MAGIC_CMD" >&6
6524 echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6
6538 enable_win32_dll=yes
6540 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6541 if test "${enable_libtool_lock+set}" = set; then
6542 enableval="$enable_libtool_lock"
6545 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6548 # Check whether --with-pic or --without-pic was given.
6549 if test "${with_pic+set}" = set; then
6555 test -z "$pic_mode" && pic_mode=default
6557 # Use C for the default configuration in the libtool script
6561 ac_cpp='$CPP $CPPFLAGS'
6562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6567 # Source file extension for C test sources.
6570 # Object file extension for compiled C test sources.
6574 # Code to be used in simple compile tests
6575 lt_simple_compile_test_code="int some_variable = 0;\n"
6577 # Code to be used in simple link tests
6578 lt_simple_link_test_code='int main(){return(0);}\n'
6581 # If no C compiler was specified, use CC.
6584 # If no C compiler flags were specified, use CFLAGS.
6585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6587 # Allow CC to be a program name with arguments.
6591 # save warnings/boilerplate of simple test code
6592 ac_outfile=conftest.$ac_objext
6593 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6595 _lt_compiler_boilerplate=`cat conftest.err`
6598 ac_outfile=conftest.$ac_objext
6599 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6601 _lt_linker_boilerplate=`cat conftest.err`
6606 lt_prog_compiler_no_builtin_flag=
6608 if test "$GCC" = yes; then
6609 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6612 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6613 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6614 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 lt_cv_prog_compiler_rtti_exceptions=no
6618 ac_outfile=conftest.$ac_objext
6619 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6620 lt_compiler_flag="-fno-rtti -fno-exceptions"
6621 # Insert the option either (1) after the last *FLAGS variable, or
6622 # (2) before a word containing "conftest.", or (3) at the end.
6623 # Note that $ac_compile itself does not contain backslashes and begins
6624 # with a dollar sign (not a hyphen), so the echo should work correctly.
6625 # The option is referenced via a variable to avoid confusing sed.
6626 lt_compile=`echo "$ac_compile" | $SED \
6627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6629 -e 's:$: $lt_compiler_flag:'`
6630 (eval echo "\"\$as_me:6630: $lt_compile\"" >&5)
6631 (eval "$lt_compile" 2>conftest.err)
6633 cat conftest.err >&5
6634 echo "$as_me:6634: \$? = $ac_status" >&5
6635 if (exit $ac_status) && test -s "$ac_outfile"; then
6636 # The compiler can only warn and ignore the option if not recognized
6637 # So say no if there are warnings other than the usual output.
6638 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6641 lt_cv_prog_compiler_rtti_exceptions=yes
6647 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6648 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6651 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6658 lt_prog_compiler_wl=
6659 lt_prog_compiler_pic=
6660 lt_prog_compiler_static=
6662 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6663 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6665 if test "$GCC" = yes; then
6666 lt_prog_compiler_wl='-Wl,'
6667 lt_prog_compiler_static='-static'
6671 # All AIX code is PIC.
6672 if test "$host_cpu" = ia64; then
6673 # AIX 5 now supports IA64 processor
6674 lt_prog_compiler_static='-Bstatic'
6679 # FIXME: we need at least 68020 code to build shared libraries, but
6680 # adding the `-m68020' flag to GCC prevents building anything better,
6682 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6685 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6686 # PIC is the default for these OSes.
6689 mingw* | pw32* | os2*)
6690 # This hack is so that the source file can tell whether it is being
6691 # built for inclusion in a dll (and should export symbols for example).
6692 lt_prog_compiler_pic='-DDLL_EXPORT'
6695 darwin* | rhapsody*)
6696 # PIC is the default on this platform
6697 # Common symbols not allowed in MH_DYLIB files
6698 lt_prog_compiler_pic='-fno-common'
6702 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6703 # Instead, we relocate shared libraries at runtime.
6707 # Just because we use GCC doesn't mean we suddenly get shared libraries
6708 # on systems that don't support them.
6709 lt_prog_compiler_can_build_shared=no
6714 if test -d /usr/nec; then
6715 lt_prog_compiler_pic=-Kconform_pic
6720 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6727 lt_prog_compiler_pic='-fPIC'
6733 lt_prog_compiler_pic='-fPIC'
6737 # PORTME Check for flag to pass linker flags through the system compiler.
6740 lt_prog_compiler_wl='-Wl,'
6741 if test "$host_cpu" = ia64; then
6742 # AIX 5 now supports IA64 processor
6743 lt_prog_compiler_static='-Bstatic'
6745 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6749 # PIC is the default on this platform
6750 # Common symbols not allowed in MH_DYLIB files
6751 case $cc_basename in
6753 lt_prog_compiler_pic='-qnocommon'
6754 lt_prog_compiler_wl='-Wl,'
6759 mingw* | pw32* | os2*)
6760 # This hack is so that the source file can tell whether it is being
6761 # built for inclusion in a dll (and should export symbols for example).
6762 lt_prog_compiler_pic='-DDLL_EXPORT'
6765 hpux9* | hpux10* | hpux11*)
6766 lt_prog_compiler_wl='-Wl,'
6767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6774 lt_prog_compiler_pic='+Z'
6777 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6778 lt_prog_compiler_static='${wl}-a ${wl}archive'
6781 irix5* | irix6* | nonstopux*)
6782 lt_prog_compiler_wl='-Wl,'
6783 # PIC (with -KPIC) is the default.
6784 lt_prog_compiler_static='-non_shared'
6788 lt_prog_compiler_pic='-KPIC'
6789 lt_prog_compiler_static='-Bstatic'
6793 case $cc_basename in
6795 lt_prog_compiler_wl='-Wl,'
6796 lt_prog_compiler_pic='-KPIC'
6797 lt_prog_compiler_static='-static'
6799 pgcc* | pgf77* | pgf90* | pgf95*)
6800 # Portland Group compilers (*not* the Pentium gcc compiler,
6801 # which looks to be a dead project)
6802 lt_prog_compiler_wl='-Wl,'
6803 lt_prog_compiler_pic='-fpic'
6804 lt_prog_compiler_static='-Bstatic'
6807 lt_prog_compiler_wl='-Wl,'
6808 # All Alpha code is PIC.
6809 lt_prog_compiler_static='-non_shared'
6814 osf3* | osf4* | osf5*)
6815 lt_prog_compiler_wl='-Wl,'
6816 # All OSF/1 code is PIC.
6817 lt_prog_compiler_static='-non_shared'
6821 lt_prog_compiler_pic='-KPIC'
6822 lt_prog_compiler_static='-Bstatic'
6823 case $cc_basename in
6825 lt_prog_compiler_wl='-Qoption ld ';;
6827 lt_prog_compiler_wl='-Wl,';;
6832 lt_prog_compiler_wl='-Qoption ld '
6833 lt_prog_compiler_pic='-PIC'
6834 lt_prog_compiler_static='-Bstatic'
6837 sysv4 | sysv4.2uw2* | sysv4.3*)
6838 lt_prog_compiler_wl='-Wl,'
6839 lt_prog_compiler_pic='-KPIC'
6840 lt_prog_compiler_static='-Bstatic'
6844 if test -d /usr/nec ;then
6845 lt_prog_compiler_pic='-Kconform_pic'
6846 lt_prog_compiler_static='-Bstatic'
6850 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6851 lt_prog_compiler_wl='-Wl,'
6852 lt_prog_compiler_pic='-KPIC'
6853 lt_prog_compiler_static='-Bstatic'
6857 lt_prog_compiler_wl='-Wl,'
6858 lt_prog_compiler_can_build_shared=no
6862 lt_prog_compiler_pic='-pic'
6863 lt_prog_compiler_static='-Bstatic'
6867 lt_prog_compiler_can_build_shared=no
6872 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6873 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6876 # Check to make sure the PIC flag actually works.
6878 if test -n "$lt_prog_compiler_pic"; then
6880 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6881 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6882 if test "${lt_prog_compiler_pic_works+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 lt_prog_compiler_pic_works=no
6886 ac_outfile=conftest.$ac_objext
6887 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6888 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6889 # Insert the option either (1) after the last *FLAGS variable, or
6890 # (2) before a word containing "conftest.", or (3) at the end.
6891 # Note that $ac_compile itself does not contain backslashes and begins
6892 # with a dollar sign (not a hyphen), so the echo should work correctly.
6893 # The option is referenced via a variable to avoid confusing sed.
6894 lt_compile=`echo "$ac_compile" | $SED \
6895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6897 -e 's:$: $lt_compiler_flag:'`
6898 (eval echo "\"\$as_me:6898: $lt_compile\"" >&5)
6899 (eval "$lt_compile" 2>conftest.err)
6901 cat conftest.err >&5
6902 echo "$as_me:6902: \$? = $ac_status" >&5
6903 if (exit $ac_status) && test -s "$ac_outfile"; then
6904 # The compiler can only warn and ignore the option if not recognized
6905 # So say no if there are warnings other than the usual output.
6906 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6909 lt_prog_compiler_pic_works=yes
6915 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6916 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6918 if test x"$lt_prog_compiler_pic_works" = xyes; then
6919 case $lt_prog_compiler_pic in
6921 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6924 lt_prog_compiler_pic=
6925 lt_prog_compiler_can_build_shared=no
6930 # For platforms which do not support PIC, -DPIC is meaningless:
6932 lt_prog_compiler_pic=
6935 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6940 # Check to make sure the static flag actually works.
6942 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6943 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6944 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6945 if test "${lt_prog_compiler_static_works+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 lt_prog_compiler_static_works=no
6949 save_LDFLAGS="$LDFLAGS"
6950 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6951 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6953 # The linker can only warn and ignore the option if not recognized
6954 # So say no if there are warnings
6955 if test -s conftest.err; then
6956 # Append any errors to the config.log.
6957 cat conftest.err 1>&5
6958 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6960 if diff conftest.exp conftest.er2 >/dev/null; then
6961 lt_prog_compiler_static_works=yes
6964 lt_prog_compiler_static_works=yes
6968 LDFLAGS="$save_LDFLAGS"
6971 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6972 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6974 if test x"$lt_prog_compiler_static_works" = xyes; then
6977 lt_prog_compiler_static=
6981 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6982 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 lt_cv_prog_compiler_c_o=no
6987 $rm -r conftest 2>/dev/null
6991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6993 lt_compiler_flag="-o out/conftest2.$ac_objext"
6994 # Insert the option either (1) after the last *FLAGS variable, or
6995 # (2) before a word containing "conftest.", or (3) at the end.
6996 # Note that $ac_compile itself does not contain backslashes and begins
6997 # with a dollar sign (not a hyphen), so the echo should work correctly.
6998 lt_compile=`echo "$ac_compile" | $SED \
6999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001 -e 's:$: $lt_compiler_flag:'`
7002 (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003 (eval "$lt_compile" 2>out/conftest.err)
7005 cat out/conftest.err >&5
7006 echo "$as_me:7006: \$? = $ac_status" >&5
7007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7009 # The compiler can only warn and ignore the option if not recognized
7010 # So say no if there are warnings
7011 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7014 lt_cv_prog_compiler_c_o=yes
7019 # SGI C++ compiler will create directory out/ii_files/ for
7020 # template instantiation
7021 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7022 $rm out/* && rmdir out
7028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7032 hard_links="nottested"
7033 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7034 # do not overwrite the value of need_locks provided by the user
7035 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7036 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7041 ln conftest.a conftest.b 2>&5 || hard_links=no
7042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7043 echo "$as_me:$LINENO: result: $hard_links" >&5
7044 echo "${ECHO_T}$hard_links" >&6
7045 if test "$hard_links" = no; then
7046 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7047 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7054 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7055 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7058 allow_undefined_flag=
7059 enable_shared_with_static_runtimes=no
7061 archive_expsym_cmds=
7062 old_archive_From_new_cmds=
7063 old_archive_from_expsyms_cmds=
7064 export_dynamic_flag_spec=
7065 whole_archive_flag_spec=
7066 thread_safe_flag_spec=
7067 hardcode_libdir_flag_spec=
7068 hardcode_libdir_flag_spec_ld=
7069 hardcode_libdir_separator=
7072 hardcode_shlibpath_var=unsupported
7073 link_all_deplibs=unknown
7074 hardcode_automatic=no
7077 always_export_symbols=no
7078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7079 # include_expsyms should be a list of space-separated symbols to be *always*
7080 # included in the symbol list
7082 # exclude_expsyms can be an extended regexp of symbols to exclude
7083 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7084 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7085 # as well as any symbol that contains `d'.
7086 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7087 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7088 # platforms (ab)use it in PIC code, but their linkers get confused if
7089 # the symbol is explicitly referenced. Since portable code cannot
7090 # rely on this symbol name, it's probably fine to never include it in
7091 # preloaded symbol tables.
7092 extract_expsyms_cmds=
7093 # Just being paranoid about ensuring that cc_basename is set.
7094 for cc_temp in $compiler""; do
7096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7105 cygwin* | mingw* | pw32*)
7106 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7107 # When not using gcc, we currently assume that we are using
7108 # Microsoft Visual C++.
7109 if test "$GCC" != yes; then
7114 # we just hope/assume this is gcc and not c89 (= MSVC++)
7123 if test "$with_gnu_ld" = yes; then
7124 # If archive_cmds runs LD, not CC, wlarc should be empty
7127 # Set some defaults for GNU ld with shared library support. These
7128 # are reset later if shared libraries are not supported. Putting them
7129 # here allows them to be overridden if necessary.
7130 runpath_var=LD_RUN_PATH
7131 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7132 export_dynamic_flag_spec='${wl}--export-dynamic'
7133 # ancient GNU ld didn't support --whole-archive et. al.
7134 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7137 whole_archive_flag_spec=
7139 supports_anon_versioning=no
7140 case `$LD -v 2>/dev/null` in
7141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7144 *\ 2.11.*) ;; # other 2.11 versions
7145 *) supports_anon_versioning=yes ;;
7148 # See if GNU ld supports shared libraries.
7150 aix3* | aix4* | aix5*)
7151 # On AIX/PPC, the GNU linker is very broken
7152 if test "$host_cpu" != ia64; then
7156 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7157 *** to be unable to reliably create shared libraries on AIX.
7158 *** Therefore, libtool is disabling shared libraries support. If you
7159 *** really care for shared libraries, you may want to modify your PATH
7160 *** so that a non-GNU linker is found, and then restart.
7167 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)'
7168 hardcode_libdir_flag_spec='-L$libdir'
7169 hardcode_minus_L=yes
7171 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7172 # that the semantics of dynamic libraries on AmigaOS, at least up
7173 # to version 4, is to share data among multiple programs linked
7174 # with the same dynamic library. Since this doesn't match the
7175 # behavior of shared libraries on other platforms, we can't use
7181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7182 allow_undefined_flag=unsupported
7183 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7184 # support --undefined. This deserves some investigation. FIXME
7185 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7191 cygwin* | mingw* | pw32*)
7192 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7193 # as there is no search path for DLLs.
7194 hardcode_libdir_flag_spec='-L$libdir'
7195 allow_undefined_flag=unsupported
7196 always_export_symbols=no
7197 enable_shared_with_static_runtimes=yes
7198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7200 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7202 # If the export-symbols file already is a .def file (1st line
7203 # is EXPORTS), use it as is; otherwise, prepend...
7204 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7205 cp $export_symbols $output_objdir/$soname.def;
7207 echo EXPORTS > $output_objdir/$soname.def;
7208 cat $export_symbols >> $output_objdir/$soname.def;
7210 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7218 hardcode_shlibpath_var=no
7219 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7220 export_dynamic_flag_spec='${wl}-E'
7221 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7222 # Instead, shared libraries are loaded at an image base (0x10000000 by
7223 # default) and relocated if they conflict, which is a slow very memory
7224 # consuming and fragmenting process. To avoid this, we pick a random,
7225 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7226 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7227 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7228 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7234 case $cc_basename,$host_cpu in
7235 pgcc*) # Portland Group C compiler
7236 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7237 tmp_addflag=' $pic_flag'
7239 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7240 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7241 tmp_addflag=' $pic_flag -Mnomain' ;;
7242 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7243 tmp_addflag=' -i_dynamic' ;;
7244 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7245 tmp_addflag=' -i_dynamic -nofor_main' ;;
7246 ifc* | ifort*) # Intel Fortran compiler
7247 tmp_addflag=' -nofor_main' ;;
7249 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251 if test $supports_anon_versioning = yes; then
7252 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7254 $echo "local: *; };" >> $output_objdir/$libname.ver~
7255 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7263 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7265 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7274 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7279 *** create shared libraries on Solaris systems. Therefore, libtool
7280 *** is disabling shared libraries support. We urge you to upgrade GNU
7281 *** binutils to release 2.9.1 or newer. Another option is to modify
7282 *** your PATH or compiler configuration so that the native linker is
7283 *** used, and then restart.
7286 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7295 case `$LD -v 2>&1` in
7296 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7300 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7301 *** reliably create shared libraries on SCO systems. Therefore, libtool
7302 *** is disabling shared libraries support. We urge you to upgrade GNU
7303 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7304 *** your PATH or compiler configuration so that the native linker is
7305 *** used, and then restart.
7310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7311 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7322 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7325 hardcode_shlibpath_var=no
7329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7338 if test "$ld_shlibs" = no; then
7340 hardcode_libdir_flag_spec=
7341 export_dynamic_flag_spec=
7342 whole_archive_flag_spec=
7345 # PORTME fill in a description of your system's linker (not GNU ld)
7348 allow_undefined_flag=unsupported
7349 always_export_symbols=yes
7350 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'
7351 # Note: this linker hardcodes the directories in LIBPATH if there
7352 # are no directories specified by -L.
7353 hardcode_minus_L=yes
7354 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7355 # Neither direct hardcoding nor static linking is supported with a
7357 hardcode_direct=unsupported
7362 if test "$host_cpu" = ia64; then
7363 # On IA64, the linker does run time linking by default, so we don't
7364 # have to do anything special.
7365 aix_use_runtimelinking=no
7366 exp_sym_flag='-Bexport'
7369 # If we're using GNU nm, then we don't want the "-C" option.
7370 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7371 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7372 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'
7374 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'
7376 aix_use_runtimelinking=no
7378 # Test if we are trying to use run time linking or normal
7379 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7380 # need to do runtime linking.
7381 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7382 for ld_flag in $LDFLAGS; do
7383 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7384 aix_use_runtimelinking=yes
7391 exp_sym_flag='-bexport'
7392 no_entry_flag='-bnoentry'
7395 # When large executables or shared objects are built, AIX ld can
7396 # have problems creating the table of contents. If linking a library
7397 # or program results in "error TOC overflow" add -mminimal-toc to
7398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7403 hardcode_libdir_separator=':'
7404 link_all_deplibs=yes
7406 if test "$GCC" = yes; then
7407 case $host_os in aix4.[012]|aix4.[012].*)
7408 # We only want to do this on AIX 4.2 and lower, the check
7409 # below for broken collect2 doesn't work under 4.3+
7410 collect2name=`${CC} -print-prog-name=collect2`
7411 if test -f "$collect2name" && \
7412 strings "$collect2name" | grep resolve_lib_name >/dev/null
7414 # We have reworked collect2
7417 # We have old collect2
7418 hardcode_direct=unsupported
7419 # It fails to find uninstalled libraries when the uninstalled
7420 # path is not listed in the libpath. Setting hardcode_minus_L
7421 # to unsupported forces relinking
7422 hardcode_minus_L=yes
7423 hardcode_libdir_flag_spec='-L$libdir'
7424 hardcode_libdir_separator=
7428 shared_flag='-shared'
7429 if test "$aix_use_runtimelinking" = yes; then
7430 shared_flag="$shared_flag "'${wl}-G'
7434 if test "$host_cpu" = ia64; then
7435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7436 # chokes on -Wl,-G. The following line is correct:
7439 if test "$aix_use_runtimelinking" = yes; then
7440 shared_flag='${wl}-G'
7442 shared_flag='${wl}-bM:SRE'
7447 # It seems that -bexpall does not export symbols beginning with
7448 # underscore (_), so it is better to generate a list of symbols to export.
7449 always_export_symbols=yes
7450 if test "$aix_use_runtimelinking" = yes; then
7451 # Warning - without using the other runtime loading flags (-brtl),
7452 # -berok will link without error, but may produce a broken library.
7453 allow_undefined_flag='-berok'
7454 # Determine the default libpath from the value encoded in an empty executable.
7455 cat >conftest.$ac_ext <<_ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7470 rm -f conftest.$ac_objext conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>conftest.er1
7474 grep -v '^ *+' conftest.er1 >conftest.err
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } &&
7479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; } &&
7485 { ac_try='test -s conftest$ac_exeext'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; }; then
7492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7494 # Check for a 64-bit object if we didn't find anything.
7495 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; }
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7502 rm -f conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7507 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7509 if test "$host_cpu" = ia64; then
7510 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7511 allow_undefined_flag="-z nodefs"
7512 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7514 # Determine the default libpath from the value encoded in an empty executable.
7515 cat >conftest.$ac_ext <<_ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7530 rm -f conftest.$ac_objext conftest$ac_exeext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7532 (eval $ac_link) 2>conftest.er1
7534 grep -v '^ *+' conftest.er1 >conftest.err
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; } &&
7545 { ac_try='test -s conftest$ac_exeext'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; }; then
7552 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7554 # Check for a 64-bit object if we didn't find anything.
7555 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; }
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7562 rm -f conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
7564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7567 # Warning - without using the other run time loading flags,
7568 # -berok will link without error, but may produce a broken library.
7569 no_undefined_flag=' ${wl}-bernotok'
7570 allow_undefined_flag=' ${wl}-berok'
7571 # Exported symbols can be pulled into shared objects from archives
7572 whole_archive_flag_spec='$convenience'
7573 archive_cmds_need_lc=yes
7574 # This is similar to how AIX traditionally builds its shared libraries.
7575 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7581 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)'
7582 hardcode_libdir_flag_spec='-L$libdir'
7583 hardcode_minus_L=yes
7584 # see comment about different semantics on the GNU ld section
7589 export_dynamic_flag_spec=-rdynamic
7592 cygwin* | mingw* | pw32*)
7593 # When not using gcc, we currently assume that we are using
7594 # Microsoft Visual C++.
7595 # hardcode_libdir_flag_spec is actually meaningless, as there is
7596 # no search path for DLLs.
7597 hardcode_libdir_flag_spec=' '
7598 allow_undefined_flag=unsupported
7599 # Tell ltmain to make .lib files, not .a files.
7601 # Tell ltmain to make .dll files, not .so files.
7603 # FIXME: Setting linknames here is a bad hack.
7604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7605 # The linker will automatically build a .lib file if we build a DLL.
7606 old_archive_From_new_cmds='true'
7607 # FIXME: Should let the user specify the lib program.
7608 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7609 fix_srcfile_path='`cygpath -w "$srcfile"`'
7610 enable_shared_with_static_runtimes=yes
7613 darwin* | rhapsody*)
7615 rhapsody* | darwin1.[012])
7616 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7619 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7620 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7622 case ${MACOSX_DEPLOYMENT_TARGET} in
7624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7627 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7633 archive_cmds_need_lc=no
7635 hardcode_automatic=yes
7636 hardcode_shlibpath_var=unsupported
7637 whole_archive_flag_spec=''
7638 link_all_deplibs=yes
7639 if test "$GCC" = yes ; then
7640 output_verbose_link_cmd='echo'
7641 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7642 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7644 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}'
7645 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}'
7647 case $cc_basename in
7649 output_verbose_link_cmd='echo'
7650 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7651 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7652 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7653 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7654 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}'
7664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665 hardcode_libdir_flag_spec='-L$libdir'
7666 hardcode_shlibpath_var=no
7673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7674 # support. Future versions do this automatically, but an explicit c++rt0.o
7675 # does not break anything, and helps significantly (at the cost of a little
7678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7679 hardcode_libdir_flag_spec='-R$libdir'
7681 hardcode_shlibpath_var=no
7684 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7688 hardcode_minus_L=yes
7689 hardcode_shlibpath_var=no
7692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7693 freebsd* | dragonfly*)
7694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7695 hardcode_libdir_flag_spec='-R$libdir'
7697 hardcode_shlibpath_var=no
7700 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7702 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7703 hardcode_libdir_flag_spec='-R$libdir'
7705 hardcode_shlibpath_var=no
7710 if test "$GCC" = yes; then
7711 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'
7713 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'
7715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7716 hardcode_libdir_separator=:
7719 # hardcode_minus_L: Not really in the search PATH,
7720 # but as the default location of the library.
7721 hardcode_minus_L=yes
7722 export_dynamic_flag_spec='${wl}-E'
7726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7731 if test "$with_gnu_ld" = no; then
7732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7733 hardcode_libdir_separator=:
7736 export_dynamic_flag_spec='${wl}-E'
7738 # hardcode_minus_L: Not really in the search PATH,
7739 # but as the default location of the library.
7740 hardcode_minus_L=yes
7745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7760 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7770 if test "$with_gnu_ld" = no; then
7771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7772 hardcode_libdir_separator=:
7776 hardcode_libdir_flag_spec_ld='+b $libdir'
7778 hardcode_shlibpath_var=no
7782 export_dynamic_flag_spec='${wl}-E'
7784 # hardcode_minus_L: Not really in the search PATH,
7785 # but as the default location of the library.
7786 hardcode_minus_L=yes
7792 irix5* | irix6* | nonstopux*)
7793 if test "$GCC" = yes; then
7794 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'
7796 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'
7797 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7800 hardcode_libdir_separator=:
7801 link_all_deplibs=yes
7804 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7808 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7810 hardcode_libdir_flag_spec='-R$libdir'
7812 hardcode_shlibpath_var=no
7816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7819 hardcode_libdir_separator=:
7820 hardcode_shlibpath_var=no
7825 hardcode_shlibpath_var=no
7826 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7828 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7830 export_dynamic_flag_spec='${wl}-E'
7833 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7835 hardcode_libdir_flag_spec='-R$libdir'
7838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7846 hardcode_libdir_flag_spec='-L$libdir'
7847 hardcode_minus_L=yes
7848 allow_undefined_flag=unsupported
7849 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'
7850 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7854 if test "$GCC" = yes; then
7855 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7856 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'
7858 allow_undefined_flag=' -expect_unresolved \*'
7859 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'
7861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7862 hardcode_libdir_separator=:
7865 osf4* | osf5*) # as osf3* with the addition of -msym flag
7866 if test "$GCC" = yes; then
7867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7868 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'
7869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7871 allow_undefined_flag=' -expect_unresolved \*'
7872 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'
7873 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7874 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7876 # Both c and cxx compiler support -rpath directly
7877 hardcode_libdir_flag_spec='-rpath $libdir'
7879 hardcode_libdir_separator=:
7883 no_undefined_flag=' -z text'
7884 if test "$GCC" = yes; then
7886 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7887 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7888 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7891 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7892 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7893 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7895 hardcode_libdir_flag_spec='-R$libdir'
7896 hardcode_shlibpath_var=no
7898 solaris2.[0-5] | solaris2.[0-5].*) ;;
7900 # The compiler driver will combine linker options so we
7901 # cannot just pass the convience library names through
7902 # without $wl, iff we do not link with $LD.
7903 # Luckily, gcc supports the same syntax we need for Sun Studio.
7904 # Supported since Solaris 2.6 (maybe 2.5.1?)
7907 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7909 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7912 link_all_deplibs=yes
7916 if test "x$host_vendor" = xsequent; then
7917 # Use $CC to link under sequent, because it throws in some extra .o
7918 # files that make .init and .fini sections work.
7919 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7921 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7923 hardcode_libdir_flag_spec='-L$libdir'
7925 hardcode_minus_L=yes
7926 hardcode_shlibpath_var=no
7930 case $host_vendor in
7932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7933 hardcode_direct=yes # is this really true???
7936 ## LD is ld it makes a PLAMLIB
7937 ## CC just makes a GrossModule.
7938 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7939 reload_cmds='$CC -r -o $output$reload_objs'
7943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7944 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7947 runpath_var='LD_RUN_PATH'
7948 hardcode_shlibpath_var=no
7952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7953 hardcode_shlibpath_var=no
7954 export_dynamic_flag_spec='-Bexport'
7958 if test -d /usr/nec; then
7959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7960 hardcode_shlibpath_var=no
7961 runpath_var=LD_RUN_PATH
7962 hardcode_runpath_var=yes
7967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7968 no_undefined_flag='${wl}-z,text'
7969 archive_cmds_need_lc=no
7970 hardcode_shlibpath_var=no
7971 runpath_var='LD_RUN_PATH'
7973 if test "$GCC" = yes; then
7974 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7975 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7978 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7982 sysv5* | sco3.2v5* | sco5v6*)
7983 # Note: We can NOT use -z defs as we might desire, because we do not
7984 # link with -lc, and that would cause any symbols used from libc to
7985 # always be unresolved, which means just about no library would
7986 # ever link correctly. If we're not using GNU ld we use -z text
7987 # though, which does catch some bad symbols but isn't as heavy-handed
7989 no_undefined_flag='${wl}-z,text'
7990 allow_undefined_flag='${wl}-z,nodefs'
7991 archive_cmds_need_lc=no
7992 hardcode_shlibpath_var=no
7993 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7994 hardcode_libdir_separator=':'
7995 link_all_deplibs=yes
7996 export_dynamic_flag_spec='${wl}-Bexport'
7997 runpath_var='LD_RUN_PATH'
7999 if test "$GCC" = yes; then
8000 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8010 hardcode_libdir_flag_spec='-L$libdir'
8011 hardcode_shlibpath_var=no
8020 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8021 echo "${ECHO_T}$ld_shlibs" >&6
8022 test "$ld_shlibs" = no && can_build_shared=no
8025 # Do we need to explicitly link libc?
8027 case "x$archive_cmds_need_lc" in
8029 # Assume -lc should be added
8030 archive_cmds_need_lc=yes
8032 if test "$enable_shared" = yes && test "$GCC" = yes; then
8033 case $archive_cmds in
8035 # FIXME: we may have to deal with multi-command sequences.
8038 # Test whether the compiler implicitly links with -lc since on some
8039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8040 # to ld, don't add -lc before -lgcc.
8041 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8042 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047 (eval $ac_compile) 2>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } 2>conftest.err; then
8053 libobjs=conftest.$ac_objext
8055 wl=$lt_prog_compiler_wl
8056 pic_flag=$lt_prog_compiler_pic
8062 lt_save_allow_undefined_flag=$allow_undefined_flag
8063 allow_undefined_flag=
8064 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8065 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }
8070 archive_cmds_need_lc=no
8072 archive_cmds_need_lc=yes
8074 allow_undefined_flag=$lt_save_allow_undefined_flag
8076 cat conftest.err 1>&5
8079 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8080 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8087 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8088 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8090 libname_spec='lib$name'
8098 shlibpath_overrides_runpath=unknown
8100 dynamic_linker="$host_os ld.so"
8101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8102 if test "$GCC" = yes; then
8103 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8104 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8105 # if the path contains ";" then we assume it to be the separator
8106 # otherwise default to the standard path separator (i.e. ":") - it is
8107 # assumed that no part of a normal pathname contains ";" but that should
8108 # okay in the real world where ";" in dirpaths is itself problematic.
8109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8116 need_lib_prefix=unknown
8117 hardcode_into_libs=no
8119 # when you set need_version to no, make sure it does not cause -set_version
8120 # flags to be left without arguments
8121 need_version=unknown
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8127 shlibpath_var=LIBPATH
8129 # AIX 3 has no versioning support, so we append a major version to the name.
8130 soname_spec='${libname}${release}${shared_ext}$major'
8137 hardcode_into_libs=yes
8138 if test "$host_cpu" = ia64; then
8139 # AIX 5 supports IA64
8140 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8141 shlibpath_var=LD_LIBRARY_PATH
8143 # With GCC up to 2.95.x, collect2 would create an import file
8144 # for dependence libraries. The import file would start with
8145 # the line `#! .'. This would cause the generated library to
8146 # depend on `.', always an invalid library. This was fixed in
8147 # development snapshots of GCC prior to 3.0.
8149 aix4 | aix4.[01] | aix4.[01].*)
8150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8152 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8159 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8160 # soname into executable. Probably we can add versioning support to
8161 # collect2, so additional links can be useful in future.
8162 if test "$aix_use_runtimelinking" = yes; then
8163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8164 # instead of lib<name>.a to let people know that these are not
8165 # typical AIX shared libraries.
8166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8168 # We preserve .a as extension for shared libraries through AIX4.2
8169 # and later when we are not doing run time linking.
8170 library_names_spec='${libname}${release}.a $libname.a'
8171 soname_spec='${libname}${release}${shared_ext}$major'
8173 shlibpath_var=LIBPATH
8178 library_names_spec='$libname.ixlibrary $libname.a'
8179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8180 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'
8184 library_names_spec='${libname}${shared_ext}'
8185 dynamic_linker="$host_os ld.so"
8186 shlibpath_var=LIBRARY_PATH
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193 soname_spec='${libname}${release}${shared_ext}$major'
8194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8195 shlibpath_var=LD_LIBRARY_PATH
8196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8198 # the default ld.so.conf also contains /usr/contrib/lib and
8199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8200 # libtool to hard-code these into programs
8203 cygwin* | mingw* | pw32*)
8204 version_type=windows
8209 case $GCC,$host_os in
8210 yes,cygwin* | yes,mingw* | yes,pw32*)
8211 library_names_spec='$libname.dll.a'
8212 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8213 postinstall_cmds='base_file=`basename \${file}`~
8214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8215 dldir=$destdir/`dirname \$dlpath`~
8216 test -d \$dldir || mkdir -p \$dldir~
8217 $install_prog $dir/$dlname \$dldir/$dlname~
8218 chmod a+x \$dldir/$dlname'
8219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8220 dlpath=$dir/\$dldll~
8222 shlibpath_overrides_runpath=yes
8226 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8228 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8231 # MinGW DLLs use traditional 'lib' prefix
8232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8234 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8235 # It is most probably a Windows format PATH printed by
8236 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8237 # path with ; separators, and with drive letters. We can handle the
8238 # drive letters (cygwin fileutils understands them), so leave them,
8239 # especially as we might pass files found there to a mingw objdump,
8240 # which wouldn't understand a cygwinified path. Ahh.
8241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8247 # pw32 DLLs use 'pw' prefix rather than 'lib'
8248 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8257 dynamic_linker='Win32 ld.exe'
8258 # FIXME: first we should search . and the directory the executable is in
8262 darwin* | rhapsody*)
8263 dynamic_linker="$host_os dyld"
8267 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8268 soname_spec='${libname}${release}${major}$shared_ext'
8269 shlibpath_overrides_runpath=yes
8270 shlibpath_var=DYLD_LIBRARY_PATH
8271 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8272 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8273 if test "$GCC" = yes; then
8274 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"`
8276 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8286 soname_spec='${libname}${release}${shared_ext}$major'
8287 shlibpath_var=LD_LIBRARY_PATH
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LD_LIBRARY_PATH
8301 shlibpath_overrides_runpath=no
8302 hardcode_into_libs=yes
8303 dynamic_linker='GNU ld.so'
8306 freebsd* | dragonfly*)
8307 # DragonFly does not have aout. When/if they implement a new
8308 # versioning mechanism, adjust this.
8309 if test -x /usr/bin/objformat; then
8310 objformat=`/usr/bin/objformat`
8313 freebsd[123]*) objformat=aout ;;
8317 version_type=freebsd-$objformat
8318 case $version_type in
8320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8329 shlibpath_var=LD_LIBRARY_PATH
8332 shlibpath_overrides_runpath=yes
8334 freebsd3.[01]* | freebsdelf3.[01]*)
8335 shlibpath_overrides_runpath=yes
8336 hardcode_into_libs=yes
8338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8340 shlibpath_overrides_runpath=no
8341 hardcode_into_libs=yes
8343 freebsd*) # from 4.6 on
8344 shlibpath_overrides_runpath=yes
8345 hardcode_into_libs=yes
8354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8355 soname_spec='${libname}${release}${shared_ext}$major'
8356 shlibpath_var=LD_LIBRARY_PATH
8357 hardcode_into_libs=yes
8360 hpux9* | hpux10* | hpux11*)
8361 # Give a soname corresponding to the major version so that dld.sl refuses to
8362 # link against other versions.
8369 hardcode_into_libs=yes
8370 dynamic_linker="$host_os dld.so"
8371 shlibpath_var=LD_LIBRARY_PATH
8372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8374 soname_spec='${libname}${release}${shared_ext}$major'
8375 if test "X$HPUX_IA64_MODE" = X32; then
8376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8384 hardcode_into_libs=yes
8385 dynamic_linker="$host_os dld.sl"
8386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389 soname_spec='${libname}${release}${shared_ext}$major'
8390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8395 dynamic_linker="$host_os dld.sl"
8396 shlibpath_var=SHLIB_PATH
8397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8402 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8403 postinstall_cmds='chmod 555 $lib'
8410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8411 soname_spec='${libname}${release}${shared_ext}$major'
8412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8413 shlibpath_var=LD_LIBRARY_PATH
8414 shlibpath_overrides_runpath=no
8415 hardcode_into_libs=yes
8418 irix5* | irix6* | nonstopux*)
8420 nonstopux*) version_type=nonstopux ;;
8422 if test "$lt_cv_prog_gnu_ld" = yes; then
8430 soname_spec='${libname}${release}${shared_ext}$major'
8431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8433 irix5* | nonstopux*)
8437 case $LD in # libtool.m4 will add one of these switches to LD
8438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8439 libsuff= shlibsuff= libmagic=32-bit;;
8440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8441 libsuff=32 shlibsuff=N32 libmagic=N32;;
8442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8443 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8444 *) libsuff= shlibsuff= libmagic=never-match;;
8448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8449 shlibpath_overrides_runpath=no
8450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8452 hardcode_into_libs=yes
8455 # No shared lib support for Linux oldld, aout, or coff.
8456 linux*oldld* | linux*aout* | linux*coff*)
8460 # This must be Linux ELF.
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8468 shlibpath_var=LD_LIBRARY_PATH
8469 shlibpath_overrides_runpath=no
8470 # This implies no fast_install, which is unacceptable.
8471 # Some rework will be needed to allow for fast_install
8472 # before this can be enabled.
8473 hardcode_into_libs=yes
8475 # Append ld.so.conf contents to the search path
8476 if test -f /etc/ld.so.conf; then
8477 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8481 # We used to test for /lib/ld.so.1 and disable shared libraries on
8482 # powerpc, because MkLinux only supported shared libraries with the
8483 # GNU dynamic linker. Since this was broken with cross compilers,
8484 # most powerpc-linux boxes support dynamic linking these days and
8485 # people can always --disable-shared, the test was removed, and we
8486 # assume the GNU/Linux dynamic linker is in use.
8487 dynamic_linker='GNU/Linux ld.so'
8494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8495 soname_spec='${libname}${release}${shared_ext}$major'
8496 shlibpath_var=LD_LIBRARY_PATH
8497 shlibpath_overrides_runpath=no
8498 hardcode_into_libs=yes
8499 dynamic_linker='NetBSD ld.elf_so'
8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8507 soname_spec='${libname}${release}${shared_ext}$major'
8508 shlibpath_var=LD_LIBRARY_PATH
8509 shlibpath_overrides_runpath=no
8510 hardcode_into_libs=yes
8511 dynamic_linker='GNU ld.so'
8518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8521 dynamic_linker='NetBSD (a.out) ld.so'
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8524 soname_spec='${libname}${release}${shared_ext}$major'
8525 dynamic_linker='NetBSD ld.elf_so'
8527 shlibpath_var=LD_LIBRARY_PATH
8528 shlibpath_overrides_runpath=yes
8529 hardcode_into_libs=yes
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535 shlibpath_var=LD_LIBRARY_PATH
8536 shlibpath_overrides_runpath=yes
8543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8544 soname_spec='${libname}${release}${shared_ext}$major'
8545 shlibpath_var=LD_LIBRARY_PATH
8546 shlibpath_overrides_runpath=yes
8551 sys_lib_dlsearch_path_spec="/usr/lib"
8553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8556 *) need_version=no ;;
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8563 openbsd2.[89] | openbsd2.[89].*)
8564 shlibpath_overrides_runpath=no
8567 shlibpath_overrides_runpath=yes
8571 shlibpath_overrides_runpath=yes
8576 libname_spec='$name'
8579 library_names_spec='$libname${shared_ext} $libname.a'
8580 dynamic_linker='OS/2 ld.exe'
8581 shlibpath_var=LIBPATH
8584 osf3* | osf4* | osf5*)
8588 soname_spec='${libname}${release}${shared_ext}$major'
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8590 shlibpath_var=LD_LIBRARY_PATH
8591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8600 soname_spec='${libname}${release}${shared_ext}$major'
8601 shlibpath_var=LD_LIBRARY_PATH
8602 shlibpath_overrides_runpath=yes
8603 hardcode_into_libs=yes
8604 # ldd complains unless libraries are executable
8605 postinstall_cmds='chmod +x $lib'
8610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8612 shlibpath_var=LD_LIBRARY_PATH
8613 shlibpath_overrides_runpath=yes
8614 if test "$with_gnu_ld" = yes; then
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 soname_spec='${libname}${release}${shared_ext}$major'
8624 shlibpath_var=LD_LIBRARY_PATH
8625 case $host_vendor in
8627 shlibpath_overrides_runpath=no
8629 export_dynamic_flag_spec='${wl}-Blargedynsym'
8630 runpath_var=LD_RUN_PATH
8638 shlibpath_overrides_runpath=no
8639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8645 if test -d /usr/nec ;then
8647 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8648 soname_spec='$libname${shared_ext}.$major'
8649 shlibpath_var=LD_LIBRARY_PATH
8653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8654 version_type=freebsd-elf
8657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8658 soname_spec='${libname}${release}${shared_ext}$major'
8659 shlibpath_var=LD_LIBRARY_PATH
8660 hardcode_into_libs=yes
8661 if test "$with_gnu_ld" = yes; then
8662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8663 shlibpath_overrides_runpath=no
8665 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8666 shlibpath_overrides_runpath=yes
8669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8673 sys_lib_dlsearch_path_spec='/usr/lib'
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679 soname_spec='${libname}${release}${shared_ext}$major'
8680 shlibpath_var=LD_LIBRARY_PATH
8687 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8688 echo "${ECHO_T}$dynamic_linker" >&6
8689 test "$dynamic_linker" = no && can_build_shared=no
8691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8692 if test "$GCC" = yes; then
8693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8696 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8697 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8699 if test -n "$hardcode_libdir_flag_spec" || \
8700 test -n "$runpath_var" || \
8701 test "X$hardcode_automatic" = "Xyes" ; then
8703 # We can hardcode non-existant directories.
8704 if test "$hardcode_direct" != no &&
8705 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8706 # have to relink, otherwise we might link with an installed library
8707 # when we should be linking with a yet-to-be-installed one
8708 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8709 test "$hardcode_minus_L" != no; then
8710 # Linking always hardcodes the temporary library directory.
8711 hardcode_action=relink
8713 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8714 hardcode_action=immediate
8717 # We cannot hardcode anything, or else we can only hardcode existing
8719 hardcode_action=unsupported
8721 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8722 echo "${ECHO_T}$hardcode_action" >&6
8724 if test "$hardcode_action" = relink; then
8725 # Fast installation is not supported
8726 enable_fast_install=no
8727 elif test "$shlibpath_overrides_runpath" = yes ||
8728 test "$enable_shared" = no; then
8729 # Fast installation is not necessary
8730 enable_fast_install=needless
8735 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8736 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8737 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8740 echo "$as_me:$LINENO: result: yes" >&5
8741 echo "${ECHO_T}yes" >&6
8743 # FIXME - insert some real tests, host_os isn't really good enough
8746 if test -n "$STRIP" ; then
8747 striplib="$STRIP -x"
8748 echo "$as_me:$LINENO: result: yes" >&5
8749 echo "${ECHO_T}yes" >&6
8751 echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6
8756 echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8762 if test "x$enable_dlopen" != xyes; then
8763 enable_dlopen=unknown
8764 enable_dlopen_self=unknown
8765 enable_dlopen_self_static=unknown
8772 lt_cv_dlopen="load_add_on"
8774 lt_cv_dlopen_self=yes
8778 lt_cv_dlopen="LoadLibrary"
8783 lt_cv_dlopen="dlopen"
8788 # if libdl is installed we need to link against it
8789 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 ac_check_lib_save_LIBS=$LIBS
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8803 /* Override any gcc2 internal prototype to avoid an error. */
8807 /* We use char because int might match the return type of a gcc2
8808 builtin and then its argument prototype would still apply. */
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>conftest.er1
8822 grep -v '^ *+' conftest.er1 >conftest.err
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_lib_dl_dlopen=yes
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_lib_dl_dlopen=no
8846 rm -f conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8850 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8851 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8852 if test $ac_cv_lib_dl_dlopen = yes; then
8853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8858 lt_cv_dlopen_self=yes
8865 echo "$as_me:$LINENO: checking for shl_load" >&5
8866 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8867 if test "${ac_cv_func_shl_load+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 cat >conftest.$ac_ext <<_ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8878 #define shl_load innocuous_shl_load
8880 /* System header to define __stub macros and hopefully few prototypes,
8881 which can conflict with char shl_load (); below.
8882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8883 <limits.h> exists even on freestanding compilers. */
8886 # include <limits.h>
8888 # include <assert.h>
8893 /* Override any gcc2 internal prototype to avoid an error. */
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8901 /* The GNU C library defines this for functions which it implements
8902 to always fail with ENOSYS. Some functions are actually named
8903 something starting with __ and the normal name is an alias. */
8904 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8907 char (*f) () = shl_load;
8916 return f != shl_load;
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923 (eval $ac_link) 2>conftest.er1
8925 grep -v '^ *+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_func_shl_load=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_cv_func_shl_load=no
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8953 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8954 if test $ac_cv_func_shl_load = yes; then
8955 lt_cv_dlopen="shl_load"
8957 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8958 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8959 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 ac_check_lib_save_LIBS=$LIBS
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8971 /* Override any gcc2 internal prototype to avoid an error. */
8975 /* We use char because int might match the return type of a gcc2
8976 builtin and then its argument prototype would still apply. */
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>conftest.er1
8990 grep -v '^ *+' conftest.er1 >conftest.err
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 ac_cv_lib_dld_shl_load=yes
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 ac_cv_lib_dld_shl_load=no
9014 rm -f conftest.err conftest.$ac_objext \
9015 conftest$ac_exeext conftest.$ac_ext
9016 LIBS=$ac_check_lib_save_LIBS
9018 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9019 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9020 if test $ac_cv_lib_dld_shl_load = yes; then
9021 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9023 echo "$as_me:$LINENO: checking for dlopen" >&5
9024 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9025 if test "${ac_cv_func_dlopen+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9036 #define dlopen innocuous_dlopen
9038 /* System header to define __stub macros and hopefully few prototypes,
9039 which can conflict with char dlopen (); below.
9040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9041 <limits.h> exists even on freestanding compilers. */
9044 # include <limits.h>
9046 # include <assert.h>
9051 /* Override any gcc2 internal prototype to avoid an error. */
9056 /* We use char because int might match the return type of a gcc2
9057 builtin and then its argument prototype would still apply. */
9059 /* The GNU C library defines this for functions which it implements
9060 to always fail with ENOSYS. Some functions are actually named
9061 something starting with __ and the normal name is an alias. */
9062 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9065 char (*f) () = dlopen;
9079 rm -f conftest.$ac_objext conftest$ac_exeext
9080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9081 (eval $ac_link) 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_func_dlopen=yes
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_cv_func_dlopen=no
9107 rm -f conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9110 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9111 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9112 if test $ac_cv_func_dlopen = yes; then
9113 lt_cv_dlopen="dlopen"
9115 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 ac_check_lib_save_LIBS=$LIBS
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9129 /* Override any gcc2 internal prototype to avoid an error. */
9133 /* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146 (eval $ac_link) 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
9159 { ac_try='test -s conftest$ac_exeext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_lib_dl_dlopen=yes
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 ac_cv_lib_dl_dlopen=no
9172 rm -f conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174 LIBS=$ac_check_lib_save_LIBS
9176 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9177 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9178 if test $ac_cv_lib_dl_dlopen = yes; then
9179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9181 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9182 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9183 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 ac_check_lib_save_LIBS=$LIBS
9188 cat >conftest.$ac_ext <<_ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9195 /* Override any gcc2 internal prototype to avoid an error. */
9199 /* We use char because int might match the return type of a gcc2
9200 builtin and then its argument prototype would still apply. */
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9212 (eval $ac_link) 2>conftest.er1
9214 grep -v '^ *+' conftest.er1 >conftest.err
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_lib_svld_dlopen=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_cv_lib_svld_dlopen=no
9238 rm -f conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240 LIBS=$ac_check_lib_save_LIBS
9242 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9244 if test $ac_cv_lib_svld_dlopen = yes; then
9245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9247 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9248 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 ac_check_lib_save_LIBS=$LIBS
9254 cat >conftest.$ac_ext <<_ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9261 /* Override any gcc2 internal prototype to avoid an error. */
9265 /* We use char because int might match the return type of a gcc2
9266 builtin and then its argument prototype would still apply. */
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278 (eval $ac_link) 2>conftest.er1
9280 grep -v '^ *+' conftest.er1 >conftest.err
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 ac_cv_lib_dld_dld_link=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_lib_dld_dld_link=no
9304 rm -f conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9309 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9310 if test $ac_cv_lib_dld_dld_link = yes; then
9311 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9332 if test "x$lt_cv_dlopen" != xno; then
9338 case $lt_cv_dlopen in
9340 save_CPPFLAGS="$CPPFLAGS"
9341 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9343 save_LDFLAGS="$LDFLAGS"
9344 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9347 LIBS="$lt_cv_dlopen_libs $LIBS"
9349 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9350 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9351 if test "${lt_cv_dlopen_self+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 if test "$cross_compiling" = yes; then :
9355 lt_cv_dlopen_self=cross
9357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9358 lt_status=$lt_dlunknown
9359 cat > conftest.$ac_ext <<EOF
9360 #line 9360 "configure"
9361 #include "confdefs.h"
9370 # define LT_DLGLOBAL RTLD_GLOBAL
9373 # define LT_DLGLOBAL DL_GLOBAL
9375 # define LT_DLGLOBAL 0
9379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9380 find out it does not work in some platform. */
9381 #ifndef LT_DLLAZY_OR_NOW
9383 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9386 # define LT_DLLAZY_OR_NOW DL_LAZY
9389 # define LT_DLLAZY_OR_NOW RTLD_NOW
9392 # define LT_DLLAZY_OR_NOW DL_NOW
9394 # define LT_DLLAZY_OR_NOW 0
9402 extern "C" void exit (int);
9405 void fnord() { int i=42;}
9408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9409 int status = $lt_dlunknown;
9413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9414 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9415 /* dlclose (self); */
9423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9424 (eval $ac_link) 2>&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9428 (./conftest; exit; ) >&5 2>/dev/null
9431 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9432 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9433 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9436 # compilation failed
9437 lt_cv_dlopen_self=no
9444 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9445 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9447 if test "x$lt_cv_dlopen_self" = xyes; then
9448 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9449 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9450 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9451 if test "${lt_cv_dlopen_self_static+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 if test "$cross_compiling" = yes; then :
9455 lt_cv_dlopen_self_static=cross
9457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9458 lt_status=$lt_dlunknown
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9460 "configure"
9461 #include "confdefs.h"
9470 # define LT_DLGLOBAL RTLD_GLOBAL
9473 # define LT_DLGLOBAL DL_GLOBAL
9475 # define LT_DLGLOBAL 0
9479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9480 find out it does not work in some platform. */
9481 #ifndef LT_DLLAZY_OR_NOW
9483 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9486 # define LT_DLLAZY_OR_NOW DL_LAZY
9489 # define LT_DLLAZY_OR_NOW RTLD_NOW
9492 # define LT_DLLAZY_OR_NOW DL_NOW
9494 # define LT_DLLAZY_OR_NOW 0
9502 extern "C" void exit (int);
9505 void fnord() { int i=42;}
9508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9509 int status = $lt_dlunknown;
9513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9514 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9515 /* dlclose (self); */
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9528 (./conftest; exit; ) >&5 2>/dev/null
9531 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9532 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9533 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9536 # compilation failed
9537 lt_cv_dlopen_self_static=no
9544 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9545 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9548 CPPFLAGS="$save_CPPFLAGS"
9549 LDFLAGS="$save_LDFLAGS"
9554 case $lt_cv_dlopen_self in
9555 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9556 *) enable_dlopen_self=unknown ;;
9559 case $lt_cv_dlopen_self_static in
9560 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9561 *) enable_dlopen_self_static=unknown ;;
9566 # Report which library types will actually be built
9567 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9568 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9569 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9570 echo "${ECHO_T}$can_build_shared" >&6
9572 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9573 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9574 test "$can_build_shared" = "no" && enable_shared=no
9576 # On AIX, shared libraries and static libraries use the same namespace, and
9577 # are all built from PIC.
9580 test "$enable_shared" = yes && enable_static=no
9581 if test -n "$RANLIB"; then
9582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9583 postinstall_cmds='$RANLIB $lib'
9588 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9589 test "$enable_shared" = yes && enable_static=no
9593 echo "$as_me:$LINENO: result: $enable_shared" >&5
9594 echo "${ECHO_T}$enable_shared" >&6
9596 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9597 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9598 # Make sure either enable_shared or enable_static is yes.
9599 test "$enable_shared" = yes || enable_static=yes
9600 echo "$as_me:$LINENO: result: $enable_static" >&5
9601 echo "${ECHO_T}$enable_static" >&6
9603 # The else clause should only fire when bootstrapping the
9604 # libtool distribution, otherwise you forgot to ship ltmain.sh
9605 # with your package, and you will get complaints that there are
9606 # no rules to generate ltmain.sh.
9607 if test -f "$ltmain"; then
9608 # See if we are running on zsh, and set the options which allow our commands through
9609 # without removal of \ escapes.
9610 if test -n "${ZSH_VERSION+set}" ; then
9611 setopt NO_GLOB_SUBST
9613 # Now quote all the things that may contain metacharacters while being
9614 # careful not to overquote the AC_SUBSTed values. We take copies of the
9615 # variables and quote the copies for generation of the libtool script.
9616 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9618 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9619 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9620 deplibs_check_method reload_flag reload_cmds need_locks \
9621 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9622 lt_cv_sys_global_symbol_to_c_name_address \
9623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9624 old_postinstall_cmds old_postuninstall_cmds \
9628 lt_prog_compiler_wl \
9629 lt_prog_compiler_pic \
9630 lt_prog_compiler_static \
9631 lt_prog_compiler_no_builtin_flag \
9632 export_dynamic_flag_spec \
9633 thread_safe_flag_spec \
9634 whole_archive_flag_spec \
9635 enable_shared_with_static_runtimes \
9637 old_archive_from_new_cmds \
9642 compiler_lib_search_path \
9644 archive_expsym_cmds \
9646 postuninstall_cmds \
9647 old_archive_from_expsyms_cmds \
9648 allow_undefined_flag \
9650 export_symbols_cmds \
9651 hardcode_libdir_flag_spec \
9652 hardcode_libdir_flag_spec_ld \
9653 hardcode_libdir_separator \
9654 hardcode_automatic \
9656 module_expsym_cmds \
9657 lt_cv_prog_compiler_c_o \
9662 old_archive_cmds | \
9663 old_archive_from_new_cmds | \
9665 archive_expsym_cmds | \
9667 module_expsym_cmds | \
9668 old_archive_from_expsyms_cmds | \
9669 export_symbols_cmds | \
9670 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9671 postinstall_cmds | postuninstall_cmds | \
9672 old_postinstall_cmds | old_postuninstall_cmds | \
9673 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9674 # Double-quote double-evaled strings.
9675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9684 *'\$0 --fallback-echo"')
9685 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9690 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9692 { echo "$as_me:$LINENO: creating $ofile" >&5
9693 echo "$as_me: creating $ofile" >&6;}
9695 cat <<__EOF__ >> "$cfgfile"
9698 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9699 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9702 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9703 # Free Software Foundation, Inc.
9705 # This file is part of GNU Libtool:
9706 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9708 # This program is free software; you can redistribute it and/or modify
9709 # it under the terms of the GNU General Public License as published by
9710 # the Free Software Foundation; either version 2 of the License, or
9711 # (at your option) any later version.
9713 # This program is distributed in the hope that it will be useful, but
9714 # WITHOUT ANY WARRANTY; without even the implied warranty of
9715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9716 # General Public License for more details.
9718 # You should have received a copy of the GNU General Public License
9719 # along with this program; if not, write to the Free Software
9720 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9722 # As a special exception to the GNU General Public License, if you
9723 # distribute this file as part of a program that contains a
9724 # configuration script generated by Autoconf, you may include it under
9725 # the same distribution terms that you use for the rest of that program.
9727 # A sed program that does not truncate output.
9730 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9731 Xsed="$SED -e 1s/^X//"
9733 # The HP-UX ksh and POSIX shell print the target directory to stdout
9735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9737 # The names of the tagged configurations supported by this script.
9740 # ### BEGIN LIBTOOL CONFIG
9742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9744 # Shell to use when invoking shell scripts.
9747 # Whether or not to build shared libraries.
9748 build_libtool_libs=$enable_shared
9750 # Whether or not to build static libraries.
9751 build_old_libs=$enable_static
9753 # Whether or not to add -lc for building shared libraries.
9754 build_libtool_need_lc=$archive_cmds_need_lc
9756 # Whether or not to disallow shared libs when runtime libs are static
9757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9759 # Whether or not to optimize for fast installation.
9760 fast_install=$enable_fast_install
9763 host_alias=$host_alias
9768 build_alias=$build_alias
9772 # An echo program that does not interpret backslashes.
9777 AR_FLAGS=$lt_AR_FLAGS
9782 # LTCC compiler flags.
9783 LTCFLAGS=$lt_LTCFLAGS
9785 # A language-specific compiler.
9788 # Is the compiler the GNU C compiler?
9794 # The linker used to build libraries.
9797 # Whether we need hard or soft links.
9800 # A BSD-compatible nm program.
9803 # A symbol stripping program
9806 # Used to examine libraries when file_magic_cmd begins "file"
9807 MAGIC_CMD=$MAGIC_CMD
9809 # Used on cygwin: DLL creation program.
9812 # Used on cygwin: object dumper.
9815 # Used on cygwin: assembler.
9818 # The name of the directory that contains temporary libtool files.
9821 # How to create reloadable object files.
9822 reload_flag=$lt_reload_flag
9823 reload_cmds=$lt_reload_cmds
9825 # How to pass a linker flag through the compiler.
9826 wl=$lt_lt_prog_compiler_wl
9828 # Object file suffix (normally "o").
9831 # Old archive suffix (normally "a").
9834 # Shared library suffix (normally ".so").
9835 shrext_cmds='$shrext_cmds'
9837 # Executable file suffix (normally "").
9840 # Additional compiler flags for building library objects.
9841 pic_flag=$lt_lt_prog_compiler_pic
9844 # What is the maximum length of a command?
9845 max_cmd_len=$lt_cv_sys_max_cmd_len
9847 # Does compiler simultaneously support -c and -o options?
9848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9850 # Must we lock files when doing compilation?
9851 need_locks=$lt_need_locks
9853 # Do we need the lib prefix for modules?
9854 need_lib_prefix=$need_lib_prefix
9856 # Do we need a version for libraries?
9857 need_version=$need_version
9859 # Whether dlopen is supported.
9860 dlopen_support=$enable_dlopen
9862 # Whether dlopen of programs is supported.
9863 dlopen_self=$enable_dlopen_self
9865 # Whether dlopen of statically linked programs is supported.
9866 dlopen_self_static=$enable_dlopen_self_static
9868 # Compiler flag to prevent dynamic linking.
9869 link_static_flag=$lt_lt_prog_compiler_static
9871 # Compiler flag to turn off builtin functions.
9872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9874 # Compiler flag to allow reflexive dlopens.
9875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9877 # Compiler flag to generate shared objects directly from archives.
9878 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9880 # Compiler flag to generate thread-safe objects.
9881 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9883 # Library versioning type.
9884 version_type=$version_type
9886 # Format of library name prefix.
9887 libname_spec=$lt_libname_spec
9889 # List of archive names. First name is the real one, the rest are links.
9890 # The last name is the one that the linker finds with -lNAME.
9891 library_names_spec=$lt_library_names_spec
9893 # The coded name of the library, if different from the real name.
9894 soname_spec=$lt_soname_spec
9896 # Commands used to build and install an old-style archive.
9898 old_archive_cmds=$lt_old_archive_cmds
9899 old_postinstall_cmds=$lt_old_postinstall_cmds
9900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9902 # Create an old-style archive from a shared archive.
9903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9905 # Create a temporary old-style archive to link instead of a shared archive.
9906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9908 # Commands used to build and install a shared archive.
9909 archive_cmds=$lt_archive_cmds
9910 archive_expsym_cmds=$lt_archive_expsym_cmds
9911 postinstall_cmds=$lt_postinstall_cmds
9912 postuninstall_cmds=$lt_postuninstall_cmds
9914 # Commands used to build a loadable module (assumed same as above if empty)
9915 module_cmds=$lt_module_cmds
9916 module_expsym_cmds=$lt_module_expsym_cmds
9918 # Commands to strip libraries.
9919 old_striplib=$lt_old_striplib
9920 striplib=$lt_striplib
9922 # Dependencies to place before the objects being linked to create a
9924 predep_objects=$lt_predep_objects
9926 # Dependencies to place after the objects being linked to create a
9928 postdep_objects=$lt_postdep_objects
9930 # Dependencies to place before the objects being linked to create a
9934 # Dependencies to place after the objects being linked to create a
9936 postdeps=$lt_postdeps
9938 # The library search path used internally by the compiler when linking
9940 compiler_lib_search_path=$lt_compiler_lib_search_path
9942 # Method to check whether dependent libraries are shared objects.
9943 deplibs_check_method=$lt_deplibs_check_method
9945 # Command to use when deplibs_check_method == file_magic.
9946 file_magic_cmd=$lt_file_magic_cmd
9948 # Flag that allows shared libraries with undefined symbols to be built.
9949 allow_undefined_flag=$lt_allow_undefined_flag
9951 # Flag that forces no undefined symbols.
9952 no_undefined_flag=$lt_no_undefined_flag
9954 # Commands used to finish a libtool library installation in a directory.
9955 finish_cmds=$lt_finish_cmds
9957 # Same as above, but a single script fragment to be evaled but not shown.
9958 finish_eval=$lt_finish_eval
9960 # Take the output of nm and produce a listing of raw symbols and C names.
9961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9963 # Transform the output of nm in a proper C declaration
9964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9966 # Transform the output of nm in a C name address pair
9967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9969 # This is the shared library runtime path variable.
9970 runpath_var=$runpath_var
9972 # This is the shared library path variable.
9973 shlibpath_var=$shlibpath_var
9975 # Is shlibpath searched before the hard-coded library search path?
9976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9978 # How to hardcode a shared library path into an executable.
9979 hardcode_action=$hardcode_action
9981 # Whether we should hardcode library paths into libraries.
9982 hardcode_into_libs=$hardcode_into_libs
9984 # Flag to hardcode \$libdir into a binary during linking.
9985 # This must work even if \$libdir does not exist.
9986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9988 # If ld is used when linking, flag to hardcode \$libdir into
9989 # a binary during linking. This must work even if \$libdir does
9991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9993 # Whether we need a single -rpath flag with a separated argument.
9994 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9996 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9998 hardcode_direct=$hardcode_direct
10000 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10001 # resulting binary.
10002 hardcode_minus_L=$hardcode_minus_L
10004 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10005 # the resulting binary.
10006 hardcode_shlibpath_var=$hardcode_shlibpath_var
10008 # Set to yes if building a shared library automatically hardcodes DIR into the library
10009 # and all subsequent libraries and executables linked against it.
10010 hardcode_automatic=$hardcode_automatic
10012 # Variables whose values should be saved in libtool wrapper scripts and
10013 # restored at relink time.
10014 variables_saved_for_relink="$variables_saved_for_relink"
10016 # Whether libtool must link a program against all its dependency libraries.
10017 link_all_deplibs=$link_all_deplibs
10019 # Compile-time system search path for libraries
10020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10022 # Run-time system search path for libraries
10023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10025 # Fix the shell variable \$srcfile for the compiler.
10026 fix_srcfile_path="$fix_srcfile_path"
10028 # Set to yes if exported symbols are required.
10029 always_export_symbols=$always_export_symbols
10031 # The commands to list exported symbols.
10032 export_symbols_cmds=$lt_export_symbols_cmds
10034 # The commands to extract the exported symbol list from a shared archive.
10035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10037 # Symbols that should not be listed in the preloaded symbols.
10038 exclude_expsyms=$lt_exclude_expsyms
10040 # Symbols that must always be exported.
10041 include_expsyms=$lt_include_expsyms
10043 # ### END LIBTOOL CONFIG
10050 cat <<\EOF >> "$cfgfile"
10052 # AIX sometimes has problems with the GCC collect2 program. For some
10053 # reason, if we set the COLLECT_NAMES environment variable, the problems
10054 # vanish in a puff of smoke.
10055 if test "X${COLLECT_NAMES+set}" != Xset; then
10057 export COLLECT_NAMES
10063 # We use sed instead of cat because bash on DJGPP gets confused if
10064 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10065 # text mode, it properly converts lines to CR/LF. This bash problem
10066 # is reportedly fixed, but why not run on old versions too?
10067 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10069 mv -f "$cfgfile" "$ofile" || \
10070 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10074 # If there is no Makefile yet, we rely on a make rule to execute
10075 # `config.status --recheck' to rerun these tests and create the
10076 # libtool script then.
10077 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10078 if test -f "$ltmain_in"; then
10079 test -f Makefile && make "$ltmain"
10085 ac_cpp='$CPP $CPPFLAGS'
10086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10093 # Check whether --with-tags or --without-tags was given.
10094 if test "${with_tags+set}" = set; then
10095 withval="$with_tags"
10096 tagnames="$withval"
10099 if test -f "$ltmain" && test -n "$tagnames"; then
10100 if test ! -f "${ofile}"; then
10101 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10102 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10105 if test -z "$LTCC"; then
10106 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10107 if test -z "$LTCC"; then
10108 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10109 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10111 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10112 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10115 if test -z "$LTCFLAGS"; then
10116 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10119 # Extract list of available tagged configurations in $ofile.
10120 # Note that this assumes the entire list is on one line.
10121 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10124 for tagname in $tagnames; do
10126 # Check whether tagname contains only valid characters
10127 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10129 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10130 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10131 { (exit 1); exit 1; }; }
10135 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10137 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10138 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10139 { (exit 1); exit 1; }; }
10142 # Update the list of available tags.
10143 if test -n "$tagname"; then
10144 echo appending configuration tag \"$tagname\" to $ofile
10148 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10149 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10150 (test "X$CXX" != "Xg++"))) ; then
10152 ac_cpp='$CXXCPP $CPPFLAGS'
10153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10160 archive_cmds_need_lc_CXX=no
10161 allow_undefined_flag_CXX=
10162 always_export_symbols_CXX=no
10163 archive_expsym_cmds_CXX=
10164 export_dynamic_flag_spec_CXX=
10165 hardcode_direct_CXX=no
10166 hardcode_libdir_flag_spec_CXX=
10167 hardcode_libdir_flag_spec_ld_CXX=
10168 hardcode_libdir_separator_CXX=
10169 hardcode_minus_L_CXX=no
10170 hardcode_shlibpath_var_CXX=unsupported
10171 hardcode_automatic_CXX=no
10173 module_expsym_cmds_CXX=
10174 link_all_deplibs_CXX=unknown
10175 old_archive_cmds_CXX=$old_archive_cmds
10176 no_undefined_flag_CXX=
10177 whole_archive_flag_spec_CXX=
10178 enable_shared_with_static_runtimes_CXX=no
10180 # Dependencies to place before and after the object being linked:
10181 predep_objects_CXX=
10182 postdep_objects_CXX=
10185 compiler_lib_search_path_CXX=
10187 # Source file extension for C++ test sources.
10190 # Object file extension for compiled C++ test sources.
10194 # Code to be used in simple compile tests
10195 lt_simple_compile_test_code="int some_variable = 0;\n"
10197 # Code to be used in simple link tests
10198 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10202 # If no C compiler was specified, use CC.
10205 # If no C compiler flags were specified, use CFLAGS.
10206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10208 # Allow CC to be a program name with arguments.
10212 # save warnings/boilerplate of simple test code
10213 ac_outfile=conftest.$ac_objext
10214 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10216 _lt_compiler_boilerplate=`cat conftest.err`
10219 ac_outfile=conftest.$ac_objext
10220 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10222 _lt_linker_boilerplate=`cat conftest.err`
10226 # Allow CC to be a program name with arguments.
10231 lt_save_with_gnu_ld=$with_gnu_ld
10232 lt_save_path_LD=$lt_cv_path_LD
10233 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10234 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10236 $as_unset lt_cv_prog_gnu_ld
10238 if test -n "${lt_cv_path_LDCXX+set}"; then
10239 lt_cv_path_LD=$lt_cv_path_LDCXX
10241 $as_unset lt_cv_path_LD
10243 test -z "${LDCXX+set}" || LD=$LDCXX
10247 for cc_temp in $compiler""; do
10249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10255 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10258 # We don't want -fno-exception wen compiling C++ code, so set the
10259 # no_builtin_flag separately
10260 if test "$GXX" = yes; then
10261 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10263 lt_prog_compiler_no_builtin_flag_CXX=
10266 if test "$GXX" = yes; then
10267 # Set up default GNU C++ configuration
10270 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10271 if test "${with_gnu_ld+set}" = set; then
10272 withval="$with_gnu_ld"
10273 test "$withval" = no || with_gnu_ld=yes
10278 if test "$GCC" = yes; then
10279 # Check if gcc -print-prog-name=ld gives a path.
10280 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10281 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10284 # gcc leaves a trailing carriage return which upsets mingw
10285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10290 # Accept absolute paths.
10292 re_direlt='/[^/][^/]*/\.\./'
10293 # Canonicalize the pathname of ld
10294 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10295 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10296 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10298 test -z "$LD" && LD="$ac_prog"
10301 # If it fails, then pretend we aren't using GCC.
10305 # If it is relative, then search for the first ld in PATH.
10306 with_gnu_ld=unknown
10309 elif test "$with_gnu_ld" = yes; then
10310 echo "$as_me:$LINENO: checking for GNU ld" >&5
10311 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10313 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10314 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10316 if test "${lt_cv_path_LD+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 if test -z "$LD"; then
10320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10321 for ac_dir in $PATH; do
10323 test -z "$ac_dir" && ac_dir=.
10324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10325 lt_cv_path_LD="$ac_dir/$ac_prog"
10326 # Check to see if the program is GNU ld. I'd rather use --version,
10327 # but apparently some variants of GNU ld only accept -v.
10328 # Break only if it was the GNU/non-GNU ld that we prefer.
10329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10330 *GNU* | *'with BFD'*)
10331 test "$with_gnu_ld" != no && break
10334 test "$with_gnu_ld" != yes && break
10341 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10345 LD="$lt_cv_path_LD"
10346 if test -n "$LD"; then
10347 echo "$as_me:$LINENO: result: $LD" >&5
10348 echo "${ECHO_T}$LD" >&6
10350 echo "$as_me:$LINENO: result: no" >&5
10351 echo "${ECHO_T}no" >&6
10353 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10354 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10355 { (exit 1); exit 1; }; }
10356 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10357 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10362 case `$LD -v 2>&1 </dev/null` in
10363 *GNU* | *'with BFD'*)
10364 lt_cv_prog_gnu_ld=yes
10367 lt_cv_prog_gnu_ld=no
10371 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10372 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10373 with_gnu_ld=$lt_cv_prog_gnu_ld
10377 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10378 # archiving commands below assume that GNU ld is being used.
10379 if test "$with_gnu_ld" = yes; then
10380 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10381 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'
10383 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10386 # If archive_cmds runs LD, not CC, wlarc should be empty
10387 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10388 # investigate it a little bit more. (MM)
10391 # ancient GNU ld didn't support --whole-archive et. al.
10392 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10393 grep 'no-whole-archive' > /dev/null; then
10394 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10396 whole_archive_flag_spec_CXX=
10402 # A generic and very simple default shared library creation
10403 # command for GNU C++ for the case where it uses the native
10404 # linker, instead of GNU ld. If possible, this setting should
10405 # overridden to take advantage of the native linker features on
10406 # the platform it is being used on.
10407 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10410 # Commands to make compiler produce verbose output that lists
10411 # what "hidden" libraries, object files and flags are used when
10412 # linking a shared library.
10413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10421 # PORTME: fill in a description of your system's C++ link characteristics
10422 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10423 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10427 # FIXME: insert proper C++ library support
10431 if test "$host_cpu" = ia64; then
10432 # On IA64, the linker does run time linking by default, so we don't
10433 # have to do anything special.
10434 aix_use_runtimelinking=no
10435 exp_sym_flag='-Bexport'
10438 aix_use_runtimelinking=no
10440 # Test if we are trying to use run time linking or normal
10441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10442 # need to do runtime linking.
10443 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10444 for ld_flag in $LDFLAGS; do
10447 aix_use_runtimelinking=yes
10455 exp_sym_flag='-bexport'
10456 no_entry_flag='-bnoentry'
10459 # When large executables or shared objects are built, AIX ld can
10460 # have problems creating the table of contents. If linking a library
10461 # or program results in "error TOC overflow" add -mminimal-toc to
10462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10465 archive_cmds_CXX=''
10466 hardcode_direct_CXX=yes
10467 hardcode_libdir_separator_CXX=':'
10468 link_all_deplibs_CXX=yes
10470 if test "$GXX" = yes; then
10471 case $host_os in aix4.[012]|aix4.[012].*)
10472 # We only want to do this on AIX 4.2 and lower, the check
10473 # below for broken collect2 doesn't work under 4.3+
10474 collect2name=`${CC} -print-prog-name=collect2`
10475 if test -f "$collect2name" && \
10476 strings "$collect2name" | grep resolve_lib_name >/dev/null
10478 # We have reworked collect2
10479 hardcode_direct_CXX=yes
10481 # We have old collect2
10482 hardcode_direct_CXX=unsupported
10483 # It fails to find uninstalled libraries when the uninstalled
10484 # path is not listed in the libpath. Setting hardcode_minus_L
10485 # to unsupported forces relinking
10486 hardcode_minus_L_CXX=yes
10487 hardcode_libdir_flag_spec_CXX='-L$libdir'
10488 hardcode_libdir_separator_CXX=
10492 shared_flag='-shared'
10493 if test "$aix_use_runtimelinking" = yes; then
10494 shared_flag="$shared_flag "'${wl}-G'
10498 if test "$host_cpu" = ia64; then
10499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10500 # chokes on -Wl,-G. The following line is correct:
10503 if test "$aix_use_runtimelinking" = yes; then
10504 shared_flag='${wl}-G'
10506 shared_flag='${wl}-bM:SRE'
10511 # It seems that -bexpall does not export symbols beginning with
10512 # underscore (_), so it is better to generate a list of symbols to export.
10513 always_export_symbols_CXX=yes
10514 if test "$aix_use_runtimelinking" = yes; then
10515 # Warning - without using the other runtime loading flags (-brtl),
10516 # -berok will link without error, but may produce a broken library.
10517 allow_undefined_flag_CXX='-berok'
10518 # Determine the default libpath from the value encoded in an empty executable.
10519 cat >conftest.$ac_ext <<_ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>conftest.er1
10538 grep -v '^ *+' conftest.er1 >conftest.err
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; } &&
10549 { ac_try='test -s conftest$ac_exeext'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10558 # Check for a 64-bit object if we didn't find anything.
10559 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; }
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10566 rm -f conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10570 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10572 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10574 if test "$host_cpu" = ia64; then
10575 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10576 allow_undefined_flag_CXX="-z nodefs"
10577 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10579 # Determine the default libpath from the value encoded in an empty executable.
10580 cat >conftest.$ac_ext <<_ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597 (eval $ac_link) 2>conftest.er1
10599 grep -v '^ *+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } &&
10604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10619 # Check for a 64-bit object if we didn't find anything.
10620 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; }
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10627 rm -f conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10631 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10632 # Warning - without using the other run time loading flags,
10633 # -berok will link without error, but may produce a broken library.
10634 no_undefined_flag_CXX=' ${wl}-bernotok'
10635 allow_undefined_flag_CXX=' ${wl}-berok'
10636 # Exported symbols can be pulled into shared objects from archives
10637 whole_archive_flag_spec_CXX='$convenience'
10638 archive_cmds_need_lc_CXX=yes
10639 # This is similar to how AIX traditionally builds its shared libraries.
10640 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10647 allow_undefined_flag_CXX=unsupported
10648 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10649 # support --undefined. This deserves some investigation. FIXME
10650 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10657 case $cc_basename in
10659 # FIXME: insert proper C++ library support
10665 cygwin* | mingw* | pw32*)
10666 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10667 # as there is no search path for DLLs.
10668 hardcode_libdir_flag_spec_CXX='-L$libdir'
10669 allow_undefined_flag_CXX=unsupported
10670 always_export_symbols_CXX=no
10671 enable_shared_with_static_runtimes_CXX=yes
10673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10674 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10675 # If the export-symbols file already is a .def file (1st line
10676 # is EXPORTS), use it as is; otherwise, prepend...
10677 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10678 cp $export_symbols $output_objdir/$soname.def;
10680 echo EXPORTS > $output_objdir/$soname.def;
10681 cat $export_symbols >> $output_objdir/$soname.def;
10683 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10688 darwin* | rhapsody*)
10690 rhapsody* | darwin1.[012])
10691 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10694 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10695 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10697 case ${MACOSX_DEPLOYMENT_TARGET} in
10699 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10702 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10708 archive_cmds_need_lc_CXX=no
10709 hardcode_direct_CXX=no
10710 hardcode_automatic_CXX=yes
10711 hardcode_shlibpath_var_CXX=unsupported
10712 whole_archive_flag_spec_CXX=''
10713 link_all_deplibs_CXX=yes
10715 if test "$GXX" = yes ; then
10716 lt_int_apple_cc_single_mod=no
10717 output_verbose_link_cmd='echo'
10718 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10719 lt_int_apple_cc_single_mod=yes
10721 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10722 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10724 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10726 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10728 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10729 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}'
10731 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10733 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}'
10735 case $cc_basename in
10737 output_verbose_link_cmd='echo'
10738 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10739 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10741 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10742 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}'
10752 case $cc_basename in
10754 # FIXME: insert proper C++ library support
10758 # Green Hills C++ Compiler
10759 # FIXME: insert proper C++ library support
10763 # FIXME: insert proper C++ library support
10769 # C++ shared libraries reported to be fairly broken before switch to ELF
10773 archive_cmds_need_lc_CXX=no
10775 freebsd* | kfreebsd*-gnu | dragonfly*)
10776 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10784 hardcode_libdir_separator_CXX=:
10785 export_dynamic_flag_spec_CXX='${wl}-E'
10786 hardcode_direct_CXX=yes
10787 hardcode_minus_L_CXX=yes # Not in the search PATH,
10788 # but as the default
10789 # location of the library.
10791 case $cc_basename in
10793 # FIXME: insert proper C++ library support
10797 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'
10798 # Commands to make compiler produce verbose output that lists
10799 # what "hidden" libraries, object files and flags are used when
10800 # linking a shared library.
10802 # There doesn't appear to be a way to prevent this compiler from
10803 # explicitly linking system object files so we need to strip them
10804 # from the output so that they don't get included in the library
10806 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'
10809 if test "$GXX" = yes; then
10810 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'
10812 # FIXME: insert proper C++ library support
10819 if test $with_gnu_ld = no; then
10820 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10821 hardcode_libdir_separator_CXX=:
10825 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10828 export_dynamic_flag_spec_CXX='${wl}-E'
10834 hardcode_direct_CXX=no
10835 hardcode_shlibpath_var_CXX=no
10838 hardcode_direct_CXX=yes
10839 hardcode_minus_L_CXX=yes # Not in the search PATH,
10840 # but as the default
10841 # location of the library.
10845 case $cc_basename in
10847 # FIXME: insert proper C++ library support
10853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10856 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10859 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10862 # Commands to make compiler produce verbose output that lists
10863 # what "hidden" libraries, object files and flags are used when
10864 # linking a shared library.
10866 # There doesn't appear to be a way to prevent this compiler from
10867 # explicitly linking system object files so we need to strip them
10868 # from the output so that they don't get included in the library
10870 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'
10873 if test "$GXX" = yes; then
10874 if test $with_gnu_ld = no; then
10877 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10880 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10883 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'
10888 # FIXME: insert proper C++ library support
10895 hardcode_direct_CXX=no
10896 hardcode_shlibpath_var_CXX=no
10897 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10898 export_dynamic_flag_spec_CXX='${wl}-E'
10899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10900 # Instead, shared libraries are loaded at an image base (0x10000000 by
10901 # default) and relocated if they conflict, which is a slow very memory
10902 # consuming and fragmenting process. To avoid this, we pick a random,
10903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10905 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10906 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10909 case $cc_basename in
10912 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10914 # Archives containing C++ object files must be created using
10915 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10916 # necessary to make sure instantiated templates are included
10918 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10921 if test "$GXX" = yes; then
10922 if test "$with_gnu_ld" = no; then
10923 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10925 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'
10928 link_all_deplibs_CXX=yes
10931 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10932 hardcode_libdir_separator_CXX=:
10935 case $cc_basename in
10937 # Kuck and Associates, Inc. (KAI) C++ Compiler
10939 # KCC will only create a shared library if the output file
10940 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10941 # to its proper name (with version) after linking.
10942 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'
10943 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'
10944 # Commands to make compiler produce verbose output that lists
10945 # what "hidden" libraries, object files and flags are used when
10946 # linking a shared library.
10948 # There doesn't appear to be a way to prevent this compiler from
10949 # explicitly linking system object files so we need to strip them
10950 # from the output so that they don't get included in the library
10952 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'
10954 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10957 # Archives containing C++ object files must be created using
10958 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10959 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10964 # version 8.0 and above of icpc choke on multiply defined symbols
10965 # if we add $predep_objects and $postdep_objects, however 7.1 and
10966 # earlier do not add the objects themselves.
10967 case `$CC -V 2>&1` in
10969 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10970 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'
10972 *) # Version 8.0 or newer
10975 ia64*) tmp_idyn=' -i_dynamic';;
10977 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10978 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10981 archive_cmds_need_lc_CXX=no
10982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10983 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10984 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10987 # Portland Group C++ compiler
10988 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10989 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10991 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10992 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10993 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10997 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998 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'
11000 runpath_var=LD_RUN_PATH
11001 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11002 hardcode_libdir_separator_CXX=:
11004 # Commands to make compiler produce verbose output that lists
11005 # what "hidden" libraries, object files and flags are used when
11006 # linking a shared library.
11008 # There doesn't appear to be a way to prevent this compiler from
11009 # explicitly linking system object files so we need to strip them
11010 # from the output so that they don't get included in the library
11012 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'
11017 # FIXME: insert proper C++ library support
11021 # FIXME: insert proper C++ library support
11025 case $cc_basename in
11027 # FIXME: insert proper C++ library support
11031 # FIXME: insert proper C++ library support
11036 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11038 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11040 hardcode_libdir_flag_spec_CXX='-R$libdir'
11041 hardcode_direct_CXX=yes
11042 hardcode_shlibpath_var_CXX=no
11044 # Workaround some broken pre-1.5 toolchains
11045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11048 # C++ shared libraries are fairly broken
11052 hardcode_direct_CXX=yes
11053 hardcode_shlibpath_var_CXX=no
11054 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11057 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11058 export_dynamic_flag_spec_CXX='${wl}-E'
11059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11061 output_verbose_link_cmd='echo'
11064 case $cc_basename in
11066 # Kuck and Associates, Inc. (KAI) C++ Compiler
11068 # KCC will only create a shared library if the output file
11069 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11070 # to its proper name (with version) after linking.
11071 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'
11073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11074 hardcode_libdir_separator_CXX=:
11076 # Archives containing C++ object files must be created using
11077 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11078 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11082 # Rational C++ 2.4.1
11083 # FIXME: insert proper C++ library support
11087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11088 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11091 hardcode_libdir_separator_CXX=:
11093 # Commands to make compiler produce verbose output that lists
11094 # what "hidden" libraries, object files and flags are used when
11095 # linking a shared library.
11097 # There doesn't appear to be a way to prevent this compiler from
11098 # explicitly linking system object files so we need to strip them
11099 # from the output so that they don't get included in the library
11101 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'
11104 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11105 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11106 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11108 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11109 hardcode_libdir_separator_CXX=:
11111 # Commands to make compiler produce verbose output that lists
11112 # what "hidden" libraries, object files and flags are used when
11113 # linking a shared library.
11114 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11117 # FIXME: insert proper C++ library support
11124 case $cc_basename in
11126 # Kuck and Associates, Inc. (KAI) C++ Compiler
11128 # KCC will only create a shared library if the output file
11129 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11130 # to its proper name (with version) after linking.
11131 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'
11133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11134 hardcode_libdir_separator_CXX=:
11136 # Archives containing C++ object files must be created using
11137 # the KAI C++ compiler.
11138 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11141 # Rational C++ 2.4.1
11142 # FIXME: insert proper C++ library support
11146 allow_undefined_flag_CXX=' -expect_unresolved \*'
11147 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11148 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11149 echo "-hidden">> $lib.exp~
11150 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11153 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11154 hardcode_libdir_separator_CXX=:
11156 # Commands to make compiler produce verbose output that lists
11157 # what "hidden" libraries, object files and flags are used when
11158 # linking a shared library.
11160 # There doesn't appear to be a way to prevent this compiler from
11161 # explicitly linking system object files so we need to strip them
11162 # from the output so that they don't get included in the library
11164 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'
11167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11168 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11169 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11171 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11172 hardcode_libdir_separator_CXX=:
11174 # Commands to make compiler produce verbose output that lists
11175 # what "hidden" libraries, object files and flags are used when
11176 # linking a shared library.
11177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11180 # FIXME: insert proper C++ library support
11187 # FIXME: insert proper C++ library support
11191 case $cc_basename in
11194 # FIXME: insert proper C++ library support
11199 # FIXME: insert proper C++ library support
11203 # FIXME: insert proper C++ library support
11209 case $cc_basename in
11211 # Sun C++ 4.2, 5.x and Centerline C++
11212 archive_cmds_need_lc_CXX=yes
11213 no_undefined_flag_CXX=' -zdefs'
11214 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11215 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11216 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11218 hardcode_libdir_flag_spec_CXX='-R$libdir'
11219 hardcode_shlibpath_var_CXX=no
11221 solaris2.[0-5] | solaris2.[0-5].*) ;;
11223 # The C++ compiler is used as linker so we must use $wl
11224 # flag to pass the commands to the underlying system
11225 # linker. We must also pass each convience library through
11226 # to the system linker between allextract/defaultextract.
11227 # The C++ compiler will combine linker options so we
11228 # cannot just pass the convience library names through
11230 # Supported since Solaris 2.6 (maybe 2.5.1?)
11231 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11234 link_all_deplibs_CXX=yes
11236 output_verbose_link_cmd='echo'
11238 # Archives containing C++ object files must be created using
11239 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11240 # necessary to make sure instantiated templates are included
11242 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11245 # Green Hills C++ Compiler
11246 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11248 # The C++ compiler must be used to create the archive.
11249 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11252 # GNU C++ compiler with Solaris linker
11253 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11254 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11255 if $CC --version | grep -v '^2\.7' > /dev/null; then
11256 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11257 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11258 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11260 # Commands to make compiler produce verbose output that lists
11261 # what "hidden" libraries, object files and flags are used when
11262 # linking a shared library.
11263 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11265 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11267 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11268 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11269 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11271 # Commands to make compiler produce verbose output that lists
11272 # what "hidden" libraries, object files and flags are used when
11273 # linking a shared library.
11274 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11277 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11282 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11283 no_undefined_flag_CXX='${wl}-z,text'
11284 archive_cmds_need_lc_CXX=no
11285 hardcode_shlibpath_var_CXX=no
11286 runpath_var='LD_RUN_PATH'
11288 case $cc_basename in
11290 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11299 sysv5* | sco3.2v5* | sco5v6*)
11300 # Note: We can NOT use -z defs as we might desire, because we do not
11301 # link with -lc, and that would cause any symbols used from libc to
11302 # always be unresolved, which means just about no library would
11303 # ever link correctly. If we're not using GNU ld we use -z text
11304 # though, which does catch some bad symbols but isn't as heavy-handed
11306 # For security reasons, it is highly recommended that you always
11307 # use absolute paths for naming shared libraries, and exclude the
11308 # DT_RUNPATH tag from executables and libraries. But doing so
11309 # requires that you compile everything twice, which is a pain.
11310 # So that behaviour is only enabled if SCOABSPATH is set to a
11311 # non-empty value in the environment. Most likely only useful for
11312 # creating official distributions of packages.
11313 # This is a hack until libtool officially supports absolute path
11314 # names for shared libraries.
11315 no_undefined_flag_CXX='${wl}-z,text'
11316 allow_undefined_flag_CXX='${wl}-z,nodefs'
11317 archive_cmds_need_lc_CXX=no
11318 hardcode_shlibpath_var_CXX=no
11319 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11320 hardcode_libdir_separator_CXX=':'
11321 link_all_deplibs_CXX=yes
11322 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11323 runpath_var='LD_RUN_PATH'
11325 case $cc_basename in
11327 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11337 case $cc_basename in
11339 # NonStop-UX NCC 3.20
11340 # FIXME: insert proper C++ library support
11344 # FIXME: insert proper C++ library support
11350 # FIXME: insert proper C++ library support
11354 # FIXME: insert proper C++ library support
11358 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11359 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11360 test "$ld_shlibs_CXX" = no && can_build_shared=no
11366 cat > conftest.$ac_ext <<EOF
11370 Foo (void) { a = 0; }
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377 (eval $ac_compile) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; then
11381 # Parse the compiler output and extract the necessary
11382 # objects, libraries and library flags.
11384 # Sentinel used to keep track of whether or not we are before
11385 # the conftest object file.
11386 pre_test_object_deps_done=no
11388 # The `*' in the case matches for architectures that use `case' in
11389 # $output_verbose_cmd can trigger glob expansion during the loop
11390 # eval without this substitution.
11391 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11393 for p in `eval $output_verbose_link_cmd`; do
11397 # Some compilers place space between "-{L,R}" and the path.
11398 # Remove the space.
11399 if test $p = "-L" \
11400 || test $p = "-R"; then
11407 if test "$pre_test_object_deps_done" = no; then
11410 # Internal compiler library paths should come after those
11411 # provided the user. The postdeps already come after the
11412 # user supplied libs so there is no need to process them.
11413 if test -z "$compiler_lib_search_path_CXX"; then
11414 compiler_lib_search_path_CXX="${prev}${p}"
11416 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11419 # The "-l" case would never come before the object being
11420 # linked, so don't bother handling this case.
11423 if test -z "$postdeps_CXX"; then
11424 postdeps_CXX="${prev}${p}"
11426 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11432 # This assumes that the test object file only shows up
11433 # once in the compiler output.
11434 if test "$p" = "conftest.$objext"; then
11435 pre_test_object_deps_done=yes
11439 if test "$pre_test_object_deps_done" = no; then
11440 if test -z "$predep_objects_CXX"; then
11441 predep_objects_CXX="$p"
11443 predep_objects_CXX="$predep_objects_CXX $p"
11446 if test -z "$postdep_objects_CXX"; then
11447 postdep_objects_CXX="$p"
11449 postdep_objects_CXX="$postdep_objects_CXX $p"
11454 *) ;; # Ignore the rest.
11462 echo "libtool.m4: error: problem compiling CXX test program"
11465 $rm -f confest.$objext
11467 # PORTME: override above test on systems where it is broken
11470 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11471 # hack all around it, let's just trust "g++" to DTRT.
11472 predep_objects_CXX=
11473 postdep_objects_CXX=
11478 case $cc_basename in
11480 # Adding this requires a known-good setup of shared libraries for
11481 # Sun compiler versions before 5.6, else PIC objects from an old
11482 # archive will be linked into the output, leading to subtle bugs.
11483 postdeps_CXX='-lCstd -lCrun'
11490 case " $postdeps_CXX " in
11491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11494 lt_prog_compiler_wl_CXX=
11495 lt_prog_compiler_pic_CXX=
11496 lt_prog_compiler_static_CXX=
11498 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11501 # C++ specific cases for pic, static, wl, etc.
11502 if test "$GXX" = yes; then
11503 lt_prog_compiler_wl_CXX='-Wl,'
11504 lt_prog_compiler_static_CXX='-static'
11508 # All AIX code is PIC.
11509 if test "$host_cpu" = ia64; then
11510 # AIX 5 now supports IA64 processor
11511 lt_prog_compiler_static_CXX='-Bstatic'
11515 # FIXME: we need at least 68020 code to build shared libraries, but
11516 # adding the `-m68020' flag to GCC prevents building anything better,
11518 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11521 # PIC is the default for these OSes.
11523 mingw* | os2* | pw32*)
11524 # This hack is so that the source file can tell whether it is being
11525 # built for inclusion in a dll (and should export symbols for example).
11526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11528 darwin* | rhapsody*)
11529 # PIC is the default on this platform
11530 # Common symbols not allowed in MH_DYLIB files
11531 lt_prog_compiler_pic_CXX='-fno-common'
11534 # DJGPP does not support shared libraries at all
11535 lt_prog_compiler_pic_CXX=
11538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11539 # Instead, we relocate shared libraries at runtime.
11542 if test -d /usr/nec; then
11543 lt_prog_compiler_pic_CXX=-Kconform_pic
11547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11548 # not for PA HP-UX.
11553 lt_prog_compiler_pic_CXX='-fPIC'
11558 lt_prog_compiler_pic_CXX='-fPIC'
11564 # All AIX code is PIC.
11565 if test "$host_cpu" = ia64; then
11566 # AIX 5 now supports IA64 processor
11567 lt_prog_compiler_static_CXX='-Bstatic'
11569 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11573 case $cc_basename in
11575 # Green Hills C++ Compiler
11576 # _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"
11581 # PIC is the default on this platform
11582 # Common symbols not allowed in MH_DYLIB files
11583 case $cc_basename in
11585 lt_prog_compiler_pic_CXX='-qnocommon'
11586 lt_prog_compiler_wl_CXX='-Wl,'
11591 case $cc_basename in
11593 lt_prog_compiler_pic_CXX='-KPIC'
11596 # Green Hills C++ Compiler
11597 lt_prog_compiler_pic_CXX='-pic'
11603 freebsd* | kfreebsd*-gnu | dragonfly*)
11604 # FreeBSD uses GNU C++
11606 hpux9* | hpux10* | hpux11*)
11607 case $cc_basename in
11609 lt_prog_compiler_wl_CXX='-Wl,'
11610 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11611 if test "$host_cpu" != ia64; then
11612 lt_prog_compiler_pic_CXX='+Z'
11616 lt_prog_compiler_wl_CXX='-Wl,'
11617 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11623 lt_prog_compiler_pic_CXX='+Z'
11632 # This is c89, which is MS Visual C++ (no shared libs)
11633 # Anyone wants to do a port?
11635 irix5* | irix6* | nonstopux*)
11636 case $cc_basename in
11638 lt_prog_compiler_wl_CXX='-Wl,'
11639 lt_prog_compiler_static_CXX='-non_shared'
11640 # CC pic flag -KPIC is the default.
11647 case $cc_basename in
11650 lt_prog_compiler_wl_CXX='--backend -Wl,'
11651 lt_prog_compiler_pic_CXX='-fPIC'
11655 lt_prog_compiler_wl_CXX='-Wl,'
11656 lt_prog_compiler_pic_CXX='-KPIC'
11657 lt_prog_compiler_static_CXX='-static'
11660 # Portland Group C++ compiler.
11661 lt_prog_compiler_wl_CXX='-Wl,'
11662 lt_prog_compiler_pic_CXX='-fpic'
11663 lt_prog_compiler_static_CXX='-Bstatic'
11667 # Make sure the PIC flag is empty. It appears that all Alpha
11668 # Linux and Compaq Tru64 Unix objects are PIC.
11669 lt_prog_compiler_pic_CXX=
11670 lt_prog_compiler_static_CXX='-non_shared'
11681 case $cc_basename in
11683 lt_prog_compiler_pic_CXX='-W c,exportall'
11689 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11691 osf3* | osf4* | osf5*)
11692 case $cc_basename in
11694 lt_prog_compiler_wl_CXX='--backend -Wl,'
11697 # Rational C++ 2.4.1
11698 lt_prog_compiler_pic_CXX='-pic'
11701 # Digital/Compaq C++
11702 lt_prog_compiler_wl_CXX='-Wl,'
11703 # Make sure the PIC flag is empty. It appears that all Alpha
11704 # Linux and Compaq Tru64 Unix objects are PIC.
11705 lt_prog_compiler_pic_CXX=
11706 lt_prog_compiler_static_CXX='-non_shared'
11715 case $cc_basename in
11717 # Sun C++ 4.2, 5.x and Centerline C++
11718 lt_prog_compiler_pic_CXX='-KPIC'
11719 lt_prog_compiler_static_CXX='-Bstatic'
11720 lt_prog_compiler_wl_CXX='-Qoption ld '
11723 # Green Hills C++ Compiler
11724 lt_prog_compiler_pic_CXX='-PIC'
11731 case $cc_basename in
11734 lt_prog_compiler_pic_CXX='-pic'
11735 lt_prog_compiler_static_CXX='-Bstatic'
11739 lt_prog_compiler_pic_CXX='-pic'
11746 case $cc_basename in
11748 # NonStop-UX NCC 3.20
11749 lt_prog_compiler_pic_CXX='-KPIC'
11755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11756 case $cc_basename in
11758 lt_prog_compiler_wl_CXX='-Wl,'
11759 lt_prog_compiler_pic_CXX='-KPIC'
11760 lt_prog_compiler_static_CXX='-Bstatic'
11767 lt_prog_compiler_can_build_shared_CXX=no
11772 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11776 # Check to make sure the PIC flag actually works.
11778 if test -n "$lt_prog_compiler_pic_CXX"; then
11780 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11782 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 lt_prog_compiler_pic_works_CXX=no
11786 ac_outfile=conftest.$ac_objext
11787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11788 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11789 # Insert the option either (1) after the last *FLAGS variable, or
11790 # (2) before a word containing "conftest.", or (3) at the end.
11791 # Note that $ac_compile itself does not contain backslashes and begins
11792 # with a dollar sign (not a hyphen), so the echo should work correctly.
11793 # The option is referenced via a variable to avoid confusing sed.
11794 lt_compile=`echo "$ac_compile" | $SED \
11795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11797 -e 's:$: $lt_compiler_flag:'`
11798 (eval echo "\"\$as_me:11798: $lt_compile\"" >&5)
11799 (eval "$lt_compile" 2>conftest.err)
11801 cat conftest.err >&5
11802 echo "$as_me:11802: \$? = $ac_status" >&5
11803 if (exit $ac_status) && test -s "$ac_outfile"; then
11804 # The compiler can only warn and ignore the option if not recognized
11805 # So say no if there are warnings other than the usual output.
11806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11809 lt_prog_compiler_pic_works_CXX=yes
11815 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11816 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11818 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11819 case $lt_prog_compiler_pic_CXX in
11821 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11824 lt_prog_compiler_pic_CXX=
11825 lt_prog_compiler_can_build_shared_CXX=no
11830 # For platforms which do not support PIC, -DPIC is meaningless:
11832 lt_prog_compiler_pic_CXX=
11835 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11840 # Check to make sure the static flag actually works.
11842 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11843 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11844 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11845 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 lt_prog_compiler_static_works_CXX=no
11849 save_LDFLAGS="$LDFLAGS"
11850 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11851 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11853 # The linker can only warn and ignore the option if not recognized
11854 # So say no if there are warnings
11855 if test -s conftest.err; then
11856 # Append any errors to the config.log.
11857 cat conftest.err 1>&5
11858 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11860 if diff conftest.exp conftest.er2 >/dev/null; then
11861 lt_prog_compiler_static_works_CXX=yes
11864 lt_prog_compiler_static_works_CXX=yes
11868 LDFLAGS="$save_LDFLAGS"
11871 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11872 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11874 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11877 lt_prog_compiler_static_CXX=
11881 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 lt_cv_prog_compiler_c_o_CXX=no
11887 $rm -r conftest 2>/dev/null
11891 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11893 lt_compiler_flag="-o out/conftest2.$ac_objext"
11894 # Insert the option either (1) after the last *FLAGS variable, or
11895 # (2) before a word containing "conftest.", or (3) at the end.
11896 # Note that $ac_compile itself does not contain backslashes and begins
11897 # with a dollar sign (not a hyphen), so the echo should work correctly.
11898 lt_compile=`echo "$ac_compile" | $SED \
11899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11901 -e 's:$: $lt_compiler_flag:'`
11902 (eval echo "\"\$as_me:11902: $lt_compile\"" >&5)
11903 (eval "$lt_compile" 2>out/conftest.err)
11905 cat out/conftest.err >&5
11906 echo "$as_me:11906: \$? = $ac_status" >&5
11907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11909 # The compiler can only warn and ignore the option if not recognized
11910 # So say no if there are warnings
11911 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11914 lt_cv_prog_compiler_c_o_CXX=yes
11919 # SGI C++ compiler will create directory out/ii_files/ for
11920 # template instantiation
11921 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11922 $rm out/* && rmdir out
11928 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11932 hard_links="nottested"
11933 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11934 # do not overwrite the value of need_locks provided by the user
11935 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11936 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11941 ln conftest.a conftest.b 2>&5 || hard_links=no
11942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11943 echo "$as_me:$LINENO: result: $hard_links" >&5
11944 echo "${ECHO_T}$hard_links" >&6
11945 if test "$hard_links" = no; then
11946 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11947 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11954 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11955 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11957 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11960 # If we're using GNU nm, then we don't want the "-C" option.
11961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11963 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'
11965 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'
11969 export_symbols_cmds_CXX="$ltdll_cmds"
11972 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11975 link_all_deplibs_CXX=no
11978 link_all_deplibs_CXX=no
11981 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11985 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11986 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11987 test "$ld_shlibs_CXX" = no && can_build_shared=no
11990 # Do we need to explicitly link libc?
11992 case "x$archive_cmds_need_lc_CXX" in
11994 # Assume -lc should be added
11995 archive_cmds_need_lc_CXX=yes
11997 if test "$enable_shared" = yes && test "$GCC" = yes; then
11998 case $archive_cmds_CXX in
12000 # FIXME: we may have to deal with multi-command sequences.
12003 # Test whether the compiler implicitly links with -lc since on some
12004 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12005 # to ld, don't add -lc before -lgcc.
12006 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12007 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } 2>conftest.err; then
12018 libobjs=conftest.$ac_objext
12020 wl=$lt_prog_compiler_wl_CXX
12021 pic_flag=$lt_prog_compiler_pic_CXX
12027 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12028 allow_undefined_flag_CXX=
12029 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12030 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }
12035 archive_cmds_need_lc_CXX=no
12037 archive_cmds_need_lc_CXX=yes
12039 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12041 cat conftest.err 1>&5
12044 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12045 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12052 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12053 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12054 library_names_spec=
12055 libname_spec='lib$name'
12059 postuninstall_cmds=
12063 shlibpath_overrides_runpath=unknown
12065 dynamic_linker="$host_os ld.so"
12066 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12067 if test "$GCC" = yes; then
12068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12069 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12070 # if the path contains ";" then we assume it to be the separator
12071 # otherwise default to the standard path separator (i.e. ":") - it is
12072 # assumed that no part of a normal pathname contains ";" but that should
12073 # okay in the real world where ";" in dirpaths is itself problematic.
12074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12081 need_lib_prefix=unknown
12082 hardcode_into_libs=no
12084 # when you set need_version to no, make sure it does not cause -set_version
12085 # flags to be left without arguments
12086 need_version=unknown
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12092 shlibpath_var=LIBPATH
12094 # AIX 3 has no versioning support, so we append a major version to the name.
12095 soname_spec='${libname}${release}${shared_ext}$major'
12102 hardcode_into_libs=yes
12103 if test "$host_cpu" = ia64; then
12104 # AIX 5 supports IA64
12105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12106 shlibpath_var=LD_LIBRARY_PATH
12108 # With GCC up to 2.95.x, collect2 would create an import file
12109 # for dependence libraries. The import file would start with
12110 # the line `#! .'. This would cause the generated library to
12111 # depend on `.', always an invalid library. This was fixed in
12112 # development snapshots of GCC prior to 3.0.
12114 aix4 | aix4.[01] | aix4.[01].*)
12115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12117 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12120 can_build_shared=no
12124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12125 # soname into executable. Probably we can add versioning support to
12126 # collect2, so additional links can be useful in future.
12127 if test "$aix_use_runtimelinking" = yes; then
12128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12129 # instead of lib<name>.a to let people know that these are not
12130 # typical AIX shared libraries.
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133 # We preserve .a as extension for shared libraries through AIX4.2
12134 # and later when we are not doing run time linking.
12135 library_names_spec='${libname}${release}.a $libname.a'
12136 soname_spec='${libname}${release}${shared_ext}$major'
12138 shlibpath_var=LIBPATH
12143 library_names_spec='$libname.ixlibrary $libname.a'
12144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12145 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'
12149 library_names_spec='${libname}${shared_ext}'
12150 dynamic_linker="$host_os ld.so"
12151 shlibpath_var=LIBRARY_PATH
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12163 # the default ld.so.conf also contains /usr/contrib/lib and
12164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12165 # libtool to hard-code these into programs
12168 cygwin* | mingw* | pw32*)
12169 version_type=windows
12174 case $GCC,$host_os in
12175 yes,cygwin* | yes,mingw* | yes,pw32*)
12176 library_names_spec='$libname.dll.a'
12177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12178 postinstall_cmds='base_file=`basename \${file}`~
12179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12180 dldir=$destdir/`dirname \$dlpath`~
12181 test -d \$dldir || mkdir -p \$dldir~
12182 $install_prog $dir/$dlname \$dldir/$dlname~
12183 chmod a+x \$dldir/$dlname'
12184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12185 dlpath=$dir/\$dldll~
12187 shlibpath_overrides_runpath=yes
12191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12193 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12196 # MinGW DLLs use traditional 'lib' prefix
12197 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12199 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12200 # It is most probably a Windows format PATH printed by
12201 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12202 # path with ; separators, and with drive letters. We can handle the
12203 # drive letters (cygwin fileutils understands them), so leave them,
12204 # especially as we might pass files found there to a mingw objdump,
12205 # which wouldn't understand a cygwinified path. Ahh.
12206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12212 # pw32 DLLs use 'pw' prefix rather than 'lib'
12213 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12222 dynamic_linker='Win32 ld.exe'
12223 # FIXME: first we should search . and the directory the executable is in
12227 darwin* | rhapsody*)
12228 dynamic_linker="$host_os dyld"
12229 version_type=darwin
12232 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12233 soname_spec='${libname}${release}${major}$shared_ext'
12234 shlibpath_overrides_runpath=yes
12235 shlibpath_var=DYLD_LIBRARY_PATH
12236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12237 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12238 if test "$GCC" = yes; then
12239 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"`
12241 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12251 soname_spec='${libname}${release}${shared_ext}$major'
12252 shlibpath_var=LD_LIBRARY_PATH
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12264 soname_spec='${libname}${release}${shared_ext}$major'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=no
12267 hardcode_into_libs=yes
12268 dynamic_linker='GNU ld.so'
12271 freebsd* | dragonfly*)
12272 # DragonFly does not have aout. When/if they implement a new
12273 # versioning mechanism, adjust this.
12274 if test -x /usr/bin/objformat; then
12275 objformat=`/usr/bin/objformat`
12278 freebsd[123]*) objformat=aout ;;
12279 *) objformat=elf ;;
12282 version_type=freebsd-$objformat
12283 case $version_type in
12285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12294 shlibpath_var=LD_LIBRARY_PATH
12297 shlibpath_overrides_runpath=yes
12299 freebsd3.[01]* | freebsdelf3.[01]*)
12300 shlibpath_overrides_runpath=yes
12301 hardcode_into_libs=yes
12303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12305 shlibpath_overrides_runpath=no
12306 hardcode_into_libs=yes
12308 freebsd*) # from 4.6 on
12309 shlibpath_overrides_runpath=yes
12310 hardcode_into_libs=yes
12319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12320 soname_spec='${libname}${release}${shared_ext}$major'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 hardcode_into_libs=yes
12325 hpux9* | hpux10* | hpux11*)
12326 # Give a soname corresponding to the major version so that dld.sl refuses to
12327 # link against other versions.
12334 hardcode_into_libs=yes
12335 dynamic_linker="$host_os dld.so"
12336 shlibpath_var=LD_LIBRARY_PATH
12337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 if test "X$HPUX_IA64_MODE" = X32; then
12341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12349 hardcode_into_libs=yes
12350 dynamic_linker="$host_os dld.sl"
12351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354 soname_spec='${libname}${release}${shared_ext}$major'
12355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12360 dynamic_linker="$host_os dld.sl"
12361 shlibpath_var=SHLIB_PATH
12362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364 soname_spec='${libname}${release}${shared_ext}$major'
12367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12368 postinstall_cmds='chmod 555 $lib'
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12376 soname_spec='${libname}${release}${shared_ext}$major'
12377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12378 shlibpath_var=LD_LIBRARY_PATH
12379 shlibpath_overrides_runpath=no
12380 hardcode_into_libs=yes
12383 irix5* | irix6* | nonstopux*)
12385 nonstopux*) version_type=nonstopux ;;
12387 if test "$lt_cv_prog_gnu_ld" = yes; then
12395 soname_spec='${libname}${release}${shared_ext}$major'
12396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12398 irix5* | nonstopux*)
12399 libsuff= shlibsuff=
12402 case $LD in # libtool.m4 will add one of these switches to LD
12403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12404 libsuff= shlibsuff= libmagic=32-bit;;
12405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12406 libsuff=32 shlibsuff=N32 libmagic=N32;;
12407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12409 *) libsuff= shlibsuff= libmagic=never-match;;
12413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12414 shlibpath_overrides_runpath=no
12415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12417 hardcode_into_libs=yes
12420 # No shared lib support for Linux oldld, aout, or coff.
12421 linux*oldld* | linux*aout* | linux*coff*)
12425 # This must be Linux ELF.
12430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12431 soname_spec='${libname}${release}${shared_ext}$major'
12432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 shlibpath_overrides_runpath=no
12435 # This implies no fast_install, which is unacceptable.
12436 # Some rework will be needed to allow for fast_install
12437 # before this can be enabled.
12438 hardcode_into_libs=yes
12440 # Append ld.so.conf contents to the search path
12441 if test -f /etc/ld.so.conf; then
12442 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12446 # We used to test for /lib/ld.so.1 and disable shared libraries on
12447 # powerpc, because MkLinux only supported shared libraries with the
12448 # GNU dynamic linker. Since this was broken with cross compilers,
12449 # most powerpc-linux boxes support dynamic linking these days and
12450 # people can always --disable-shared, the test was removed, and we
12451 # assume the GNU/Linux dynamic linker is in use.
12452 dynamic_linker='GNU/Linux ld.so'
12459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12460 soname_spec='${libname}${release}${shared_ext}$major'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=no
12463 hardcode_into_libs=yes
12464 dynamic_linker='NetBSD ld.elf_so'
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12472 soname_spec='${libname}${release}${shared_ext}$major'
12473 shlibpath_var=LD_LIBRARY_PATH
12474 shlibpath_overrides_runpath=no
12475 hardcode_into_libs=yes
12476 dynamic_linker='GNU ld.so'
12483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12486 dynamic_linker='NetBSD (a.out) ld.so'
12488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12489 soname_spec='${libname}${release}${shared_ext}$major'
12490 dynamic_linker='NetBSD ld.elf_so'
12492 shlibpath_var=LD_LIBRARY_PATH
12493 shlibpath_overrides_runpath=yes
12494 hardcode_into_libs=yes
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12500 shlibpath_var=LD_LIBRARY_PATH
12501 shlibpath_overrides_runpath=yes
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12509 soname_spec='${libname}${release}${shared_ext}$major'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 shlibpath_overrides_runpath=yes
12516 sys_lib_dlsearch_path_spec="/usr/lib"
12518 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12520 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12521 *) need_version=no ;;
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12528 openbsd2.[89] | openbsd2.[89].*)
12529 shlibpath_overrides_runpath=no
12532 shlibpath_overrides_runpath=yes
12536 shlibpath_overrides_runpath=yes
12541 libname_spec='$name'
12544 library_names_spec='$libname${shared_ext} $libname.a'
12545 dynamic_linker='OS/2 ld.exe'
12546 shlibpath_var=LIBPATH
12549 osf3* | osf4* | osf5*)
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12557 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LD_LIBRARY_PATH
12567 shlibpath_overrides_runpath=yes
12568 hardcode_into_libs=yes
12569 # ldd complains unless libraries are executable
12570 postinstall_cmds='chmod +x $lib'
12575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12577 shlibpath_var=LD_LIBRARY_PATH
12578 shlibpath_overrides_runpath=yes
12579 if test "$with_gnu_ld" = yes; then
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588 soname_spec='${libname}${release}${shared_ext}$major'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 case $host_vendor in
12592 shlibpath_overrides_runpath=no
12594 export_dynamic_flag_spec='${wl}-Blargedynsym'
12595 runpath_var=LD_RUN_PATH
12603 shlibpath_overrides_runpath=no
12604 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12610 if test -d /usr/nec ;then
12612 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12613 soname_spec='$libname${shared_ext}.$major'
12614 shlibpath_var=LD_LIBRARY_PATH
12618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12619 version_type=freebsd-elf
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12623 soname_spec='${libname}${release}${shared_ext}$major'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 hardcode_into_libs=yes
12626 if test "$with_gnu_ld" = yes; then
12627 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12628 shlibpath_overrides_runpath=no
12630 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12631 shlibpath_overrides_runpath=yes
12634 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12638 sys_lib_dlsearch_path_spec='/usr/lib'
12643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12644 soname_spec='${libname}${release}${shared_ext}$major'
12645 shlibpath_var=LD_LIBRARY_PATH
12652 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12653 echo "${ECHO_T}$dynamic_linker" >&6
12654 test "$dynamic_linker" = no && can_build_shared=no
12656 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12657 if test "$GCC" = yes; then
12658 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12661 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12662 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12663 hardcode_action_CXX=
12664 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12665 test -n "$runpath_var_CXX" || \
12666 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12668 # We can hardcode non-existant directories.
12669 if test "$hardcode_direct_CXX" != no &&
12670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12671 # have to relink, otherwise we might link with an installed library
12672 # when we should be linking with a yet-to-be-installed one
12673 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12674 test "$hardcode_minus_L_CXX" != no; then
12675 # Linking always hardcodes the temporary library directory.
12676 hardcode_action_CXX=relink
12678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12679 hardcode_action_CXX=immediate
12682 # We cannot hardcode anything, or else we can only hardcode existing
12684 hardcode_action_CXX=unsupported
12686 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12687 echo "${ECHO_T}$hardcode_action_CXX" >&6
12689 if test "$hardcode_action_CXX" = relink; then
12690 # Fast installation is not supported
12691 enable_fast_install=no
12692 elif test "$shlibpath_overrides_runpath" = yes ||
12693 test "$enable_shared" = no; then
12694 # Fast installation is not necessary
12695 enable_fast_install=needless
12699 # The else clause should only fire when bootstrapping the
12700 # libtool distribution, otherwise you forgot to ship ltmain.sh
12701 # with your package, and you will get complaints that there are
12702 # no rules to generate ltmain.sh.
12703 if test -f "$ltmain"; then
12704 # See if we are running on zsh, and set the options which allow our commands through
12705 # without removal of \ escapes.
12706 if test -n "${ZSH_VERSION+set}" ; then
12707 setopt NO_GLOB_SUBST
12709 # Now quote all the things that may contain metacharacters while being
12710 # careful not to overquote the AC_SUBSTed values. We take copies of the
12711 # variables and quote the copies for generation of the libtool script.
12712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12716 deplibs_check_method reload_flag reload_cmds need_locks \
12717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12718 lt_cv_sys_global_symbol_to_c_name_address \
12719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12720 old_postinstall_cmds old_postuninstall_cmds \
12724 lt_prog_compiler_wl_CXX \
12725 lt_prog_compiler_pic_CXX \
12726 lt_prog_compiler_static_CXX \
12727 lt_prog_compiler_no_builtin_flag_CXX \
12728 export_dynamic_flag_spec_CXX \
12729 thread_safe_flag_spec_CXX \
12730 whole_archive_flag_spec_CXX \
12731 enable_shared_with_static_runtimes_CXX \
12732 old_archive_cmds_CXX \
12733 old_archive_from_new_cmds_CXX \
12734 predep_objects_CXX \
12735 postdep_objects_CXX \
12738 compiler_lib_search_path_CXX \
12740 archive_expsym_cmds_CXX \
12741 postinstall_cmds_CXX \
12742 postuninstall_cmds_CXX \
12743 old_archive_from_expsyms_cmds_CXX \
12744 allow_undefined_flag_CXX \
12745 no_undefined_flag_CXX \
12746 export_symbols_cmds_CXX \
12747 hardcode_libdir_flag_spec_CXX \
12748 hardcode_libdir_flag_spec_ld_CXX \
12749 hardcode_libdir_separator_CXX \
12750 hardcode_automatic_CXX \
12752 module_expsym_cmds_CXX \
12753 lt_cv_prog_compiler_c_o_CXX \
12754 exclude_expsyms_CXX \
12755 include_expsyms_CXX; do
12758 old_archive_cmds_CXX | \
12759 old_archive_from_new_cmds_CXX | \
12760 archive_cmds_CXX | \
12761 archive_expsym_cmds_CXX | \
12762 module_cmds_CXX | \
12763 module_expsym_cmds_CXX | \
12764 old_archive_from_expsyms_cmds_CXX | \
12765 export_symbols_cmds_CXX | \
12766 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12767 postinstall_cmds | postuninstall_cmds | \
12768 old_postinstall_cmds | old_postuninstall_cmds | \
12769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12770 # Double-quote double-evaled strings.
12771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12780 *'\$0 --fallback-echo"')
12781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12787 cat <<__EOF__ >> "$cfgfile"
12788 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12790 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12792 # Shell to use when invoking shell scripts.
12795 # Whether or not to build shared libraries.
12796 build_libtool_libs=$enable_shared
12798 # Whether or not to build static libraries.
12799 build_old_libs=$enable_static
12801 # Whether or not to add -lc for building shared libraries.
12802 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12804 # Whether or not to disallow shared libs when runtime libs are static
12805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12807 # Whether or not to optimize for fast installation.
12808 fast_install=$enable_fast_install
12811 host_alias=$host_alias
12815 # The build system.
12816 build_alias=$build_alias
12820 # An echo program that does not interpret backslashes.
12825 AR_FLAGS=$lt_AR_FLAGS
12830 # LTCC compiler flags.
12831 LTCFLAGS=$lt_LTCFLAGS
12833 # A language-specific compiler.
12834 CC=$lt_compiler_CXX
12836 # Is the compiler the GNU C compiler?
12842 # The linker used to build libraries.
12845 # Whether we need hard or soft links.
12848 # A BSD-compatible nm program.
12851 # A symbol stripping program
12854 # Used to examine libraries when file_magic_cmd begins "file"
12855 MAGIC_CMD=$MAGIC_CMD
12857 # Used on cygwin: DLL creation program.
12860 # Used on cygwin: object dumper.
12863 # Used on cygwin: assembler.
12866 # The name of the directory that contains temporary libtool files.
12869 # How to create reloadable object files.
12870 reload_flag=$lt_reload_flag
12871 reload_cmds=$lt_reload_cmds
12873 # How to pass a linker flag through the compiler.
12874 wl=$lt_lt_prog_compiler_wl_CXX
12876 # Object file suffix (normally "o").
12877 objext="$ac_objext"
12879 # Old archive suffix (normally "a").
12882 # Shared library suffix (normally ".so").
12883 shrext_cmds='$shrext_cmds'
12885 # Executable file suffix (normally "").
12888 # Additional compiler flags for building library objects.
12889 pic_flag=$lt_lt_prog_compiler_pic_CXX
12892 # What is the maximum length of a command?
12893 max_cmd_len=$lt_cv_sys_max_cmd_len
12895 # Does compiler simultaneously support -c and -o options?
12896 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12898 # Must we lock files when doing compilation?
12899 need_locks=$lt_need_locks
12901 # Do we need the lib prefix for modules?
12902 need_lib_prefix=$need_lib_prefix
12904 # Do we need a version for libraries?
12905 need_version=$need_version
12907 # Whether dlopen is supported.
12908 dlopen_support=$enable_dlopen
12910 # Whether dlopen of programs is supported.
12911 dlopen_self=$enable_dlopen_self
12913 # Whether dlopen of statically linked programs is supported.
12914 dlopen_self_static=$enable_dlopen_self_static
12916 # Compiler flag to prevent dynamic linking.
12917 link_static_flag=$lt_lt_prog_compiler_static_CXX
12919 # Compiler flag to turn off builtin functions.
12920 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12922 # Compiler flag to allow reflexive dlopens.
12923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12925 # Compiler flag to generate shared objects directly from archives.
12926 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12928 # Compiler flag to generate thread-safe objects.
12929 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12931 # Library versioning type.
12932 version_type=$version_type
12934 # Format of library name prefix.
12935 libname_spec=$lt_libname_spec
12937 # List of archive names. First name is the real one, the rest are links.
12938 # The last name is the one that the linker finds with -lNAME.
12939 library_names_spec=$lt_library_names_spec
12941 # The coded name of the library, if different from the real name.
12942 soname_spec=$lt_soname_spec
12944 # Commands used to build and install an old-style archive.
12946 old_archive_cmds=$lt_old_archive_cmds_CXX
12947 old_postinstall_cmds=$lt_old_postinstall_cmds
12948 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12950 # Create an old-style archive from a shared archive.
12951 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12953 # Create a temporary old-style archive to link instead of a shared archive.
12954 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12956 # Commands used to build and install a shared archive.
12957 archive_cmds=$lt_archive_cmds_CXX
12958 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12959 postinstall_cmds=$lt_postinstall_cmds
12960 postuninstall_cmds=$lt_postuninstall_cmds
12962 # Commands used to build a loadable module (assumed same as above if empty)
12963 module_cmds=$lt_module_cmds_CXX
12964 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12966 # Commands to strip libraries.
12967 old_striplib=$lt_old_striplib
12968 striplib=$lt_striplib
12970 # Dependencies to place before the objects being linked to create a
12972 predep_objects=$lt_predep_objects_CXX
12974 # Dependencies to place after the objects being linked to create a
12976 postdep_objects=$lt_postdep_objects_CXX
12978 # Dependencies to place before the objects being linked to create a
12980 predeps=$lt_predeps_CXX
12982 # Dependencies to place after the objects being linked to create a
12984 postdeps=$lt_postdeps_CXX
12986 # The library search path used internally by the compiler when linking
12987 # a shared library.
12988 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12990 # Method to check whether dependent libraries are shared objects.
12991 deplibs_check_method=$lt_deplibs_check_method
12993 # Command to use when deplibs_check_method == file_magic.
12994 file_magic_cmd=$lt_file_magic_cmd
12996 # Flag that allows shared libraries with undefined symbols to be built.
12997 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12999 # Flag that forces no undefined symbols.
13000 no_undefined_flag=$lt_no_undefined_flag_CXX
13002 # Commands used to finish a libtool library installation in a directory.
13003 finish_cmds=$lt_finish_cmds
13005 # Same as above, but a single script fragment to be evaled but not shown.
13006 finish_eval=$lt_finish_eval
13008 # Take the output of nm and produce a listing of raw symbols and C names.
13009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13011 # Transform the output of nm in a proper C declaration
13012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13014 # Transform the output of nm in a C name address pair
13015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13017 # This is the shared library runtime path variable.
13018 runpath_var=$runpath_var
13020 # This is the shared library path variable.
13021 shlibpath_var=$shlibpath_var
13023 # Is shlibpath searched before the hard-coded library search path?
13024 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13026 # How to hardcode a shared library path into an executable.
13027 hardcode_action=$hardcode_action_CXX
13029 # Whether we should hardcode library paths into libraries.
13030 hardcode_into_libs=$hardcode_into_libs
13032 # Flag to hardcode \$libdir into a binary during linking.
13033 # This must work even if \$libdir does not exist.
13034 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13036 # If ld is used when linking, flag to hardcode \$libdir into
13037 # a binary during linking. This must work even if \$libdir does
13039 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13041 # Whether we need a single -rpath flag with a separated argument.
13042 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13044 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13045 # resulting binary.
13046 hardcode_direct=$hardcode_direct_CXX
13048 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13049 # resulting binary.
13050 hardcode_minus_L=$hardcode_minus_L_CXX
13052 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13053 # the resulting binary.
13054 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13056 # Set to yes if building a shared library automatically hardcodes DIR into the library
13057 # and all subsequent libraries and executables linked against it.
13058 hardcode_automatic=$hardcode_automatic_CXX
13060 # Variables whose values should be saved in libtool wrapper scripts and
13061 # restored at relink time.
13062 variables_saved_for_relink="$variables_saved_for_relink"
13064 # Whether libtool must link a program against all its dependency libraries.
13065 link_all_deplibs=$link_all_deplibs_CXX
13067 # Compile-time system search path for libraries
13068 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13070 # Run-time system search path for libraries
13071 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13073 # Fix the shell variable \$srcfile for the compiler.
13074 fix_srcfile_path="$fix_srcfile_path_CXX"
13076 # Set to yes if exported symbols are required.
13077 always_export_symbols=$always_export_symbols_CXX
13079 # The commands to list exported symbols.
13080 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13082 # The commands to extract the exported symbol list from a shared archive.
13083 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13085 # Symbols that should not be listed in the preloaded symbols.
13086 exclude_expsyms=$lt_exclude_expsyms_CXX
13088 # Symbols that must always be exported.
13089 include_expsyms=$lt_include_expsyms_CXX
13091 # ### END LIBTOOL TAG CONFIG: $tagname
13097 # If there is no Makefile yet, we rely on a make rule to execute
13098 # `config.status --recheck' to rerun these tests and create the
13099 # libtool script then.
13100 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13101 if test -f "$ltmain_in"; then
13102 test -f Makefile && make "$ltmain"
13108 ac_cpp='$CPP $CPPFLAGS'
13109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13117 with_gnu_ldcxx=$with_gnu_ld
13118 with_gnu_ld=$lt_save_with_gnu_ld
13119 lt_cv_path_LDCXX=$lt_cv_path_LD
13120 lt_cv_path_LD=$lt_save_path_LD
13121 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13122 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13130 if test -n "$F77" && test "X$F77" != "Xno"; then
13133 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13134 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13138 archive_cmds_need_lc_F77=no
13139 allow_undefined_flag_F77=
13140 always_export_symbols_F77=no
13141 archive_expsym_cmds_F77=
13142 export_dynamic_flag_spec_F77=
13143 hardcode_direct_F77=no
13144 hardcode_libdir_flag_spec_F77=
13145 hardcode_libdir_flag_spec_ld_F77=
13146 hardcode_libdir_separator_F77=
13147 hardcode_minus_L_F77=no
13148 hardcode_automatic_F77=no
13150 module_expsym_cmds_F77=
13151 link_all_deplibs_F77=unknown
13152 old_archive_cmds_F77=$old_archive_cmds
13153 no_undefined_flag_F77=
13154 whole_archive_flag_spec_F77=
13155 enable_shared_with_static_runtimes_F77=no
13157 # Source file extension for f77 test sources.
13160 # Object file extension for compiled f77 test sources.
13164 # Code to be used in simple compile tests
13165 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13167 # Code to be used in simple link tests
13168 lt_simple_link_test_code=" program t\n end\n"
13170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13172 # If no C compiler was specified, use CC.
13175 # If no C compiler flags were specified, use CFLAGS.
13176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13178 # Allow CC to be a program name with arguments.
13182 # save warnings/boilerplate of simple test code
13183 ac_outfile=conftest.$ac_objext
13184 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13186 _lt_compiler_boilerplate=`cat conftest.err`
13189 ac_outfile=conftest.$ac_objext
13190 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13192 _lt_linker_boilerplate=`cat conftest.err`
13196 # Allow CC to be a program name with arguments.
13201 for cc_temp in $compiler""; do
13203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13209 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13212 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13213 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13214 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13215 echo "${ECHO_T}$can_build_shared" >&6
13217 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13218 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13219 test "$can_build_shared" = "no" && enable_shared=no
13221 # On AIX, shared libraries and static libraries use the same namespace, and
13222 # are all built from PIC.
13225 test "$enable_shared" = yes && enable_static=no
13226 if test -n "$RANLIB"; then
13227 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13228 postinstall_cmds='$RANLIB $lib'
13232 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13233 test "$enable_shared" = yes && enable_static=no
13237 echo "$as_me:$LINENO: result: $enable_shared" >&5
13238 echo "${ECHO_T}$enable_shared" >&6
13240 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13241 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13242 # Make sure either enable_shared or enable_static is yes.
13243 test "$enable_shared" = yes || enable_static=yes
13244 echo "$as_me:$LINENO: result: $enable_static" >&5
13245 echo "${ECHO_T}$enable_static" >&6
13250 lt_prog_compiler_wl_F77=
13251 lt_prog_compiler_pic_F77=
13252 lt_prog_compiler_static_F77=
13254 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13255 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13257 if test "$GCC" = yes; then
13258 lt_prog_compiler_wl_F77='-Wl,'
13259 lt_prog_compiler_static_F77='-static'
13263 # All AIX code is PIC.
13264 if test "$host_cpu" = ia64; then
13265 # AIX 5 now supports IA64 processor
13266 lt_prog_compiler_static_F77='-Bstatic'
13271 # FIXME: we need at least 68020 code to build shared libraries, but
13272 # adding the `-m68020' flag to GCC prevents building anything better,
13274 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13277 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13278 # PIC is the default for these OSes.
13281 mingw* | pw32* | os2*)
13282 # This hack is so that the source file can tell whether it is being
13283 # built for inclusion in a dll (and should export symbols for example).
13284 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13287 darwin* | rhapsody*)
13288 # PIC is the default on this platform
13289 # Common symbols not allowed in MH_DYLIB files
13290 lt_prog_compiler_pic_F77='-fno-common'
13294 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13295 # Instead, we relocate shared libraries at runtime.
13299 # Just because we use GCC doesn't mean we suddenly get shared libraries
13300 # on systems that don't support them.
13301 lt_prog_compiler_can_build_shared_F77=no
13306 if test -d /usr/nec; then
13307 lt_prog_compiler_pic_F77=-Kconform_pic
13312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13313 # not for PA HP-UX.
13319 lt_prog_compiler_pic_F77='-fPIC'
13325 lt_prog_compiler_pic_F77='-fPIC'
13329 # PORTME Check for flag to pass linker flags through the system compiler.
13332 lt_prog_compiler_wl_F77='-Wl,'
13333 if test "$host_cpu" = ia64; then
13334 # AIX 5 now supports IA64 processor
13335 lt_prog_compiler_static_F77='-Bstatic'
13337 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13341 # PIC is the default on this platform
13342 # Common symbols not allowed in MH_DYLIB files
13343 case $cc_basename in
13345 lt_prog_compiler_pic_F77='-qnocommon'
13346 lt_prog_compiler_wl_F77='-Wl,'
13351 mingw* | pw32* | os2*)
13352 # This hack is so that the source file can tell whether it is being
13353 # built for inclusion in a dll (and should export symbols for example).
13354 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13357 hpux9* | hpux10* | hpux11*)
13358 lt_prog_compiler_wl_F77='-Wl,'
13359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13360 # not for PA HP-UX.
13366 lt_prog_compiler_pic_F77='+Z'
13369 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13370 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13373 irix5* | irix6* | nonstopux*)
13374 lt_prog_compiler_wl_F77='-Wl,'
13375 # PIC (with -KPIC) is the default.
13376 lt_prog_compiler_static_F77='-non_shared'
13380 lt_prog_compiler_pic_F77='-KPIC'
13381 lt_prog_compiler_static_F77='-Bstatic'
13385 case $cc_basename in
13387 lt_prog_compiler_wl_F77='-Wl,'
13388 lt_prog_compiler_pic_F77='-KPIC'
13389 lt_prog_compiler_static_F77='-static'
13391 pgcc* | pgf77* | pgf90* | pgf95*)
13392 # Portland Group compilers (*not* the Pentium gcc compiler,
13393 # which looks to be a dead project)
13394 lt_prog_compiler_wl_F77='-Wl,'
13395 lt_prog_compiler_pic_F77='-fpic'
13396 lt_prog_compiler_static_F77='-Bstatic'
13399 lt_prog_compiler_wl_F77='-Wl,'
13400 # All Alpha code is PIC.
13401 lt_prog_compiler_static_F77='-non_shared'
13406 osf3* | osf4* | osf5*)
13407 lt_prog_compiler_wl_F77='-Wl,'
13408 # All OSF/1 code is PIC.
13409 lt_prog_compiler_static_F77='-non_shared'
13413 lt_prog_compiler_pic_F77='-KPIC'
13414 lt_prog_compiler_static_F77='-Bstatic'
13415 case $cc_basename in
13416 f77* | f90* | f95*)
13417 lt_prog_compiler_wl_F77='-Qoption ld ';;
13419 lt_prog_compiler_wl_F77='-Wl,';;
13424 lt_prog_compiler_wl_F77='-Qoption ld '
13425 lt_prog_compiler_pic_F77='-PIC'
13426 lt_prog_compiler_static_F77='-Bstatic'
13429 sysv4 | sysv4.2uw2* | sysv4.3*)
13430 lt_prog_compiler_wl_F77='-Wl,'
13431 lt_prog_compiler_pic_F77='-KPIC'
13432 lt_prog_compiler_static_F77='-Bstatic'
13436 if test -d /usr/nec ;then
13437 lt_prog_compiler_pic_F77='-Kconform_pic'
13438 lt_prog_compiler_static_F77='-Bstatic'
13442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13443 lt_prog_compiler_wl_F77='-Wl,'
13444 lt_prog_compiler_pic_F77='-KPIC'
13445 lt_prog_compiler_static_F77='-Bstatic'
13449 lt_prog_compiler_wl_F77='-Wl,'
13450 lt_prog_compiler_can_build_shared_F77=no
13454 lt_prog_compiler_pic_F77='-pic'
13455 lt_prog_compiler_static_F77='-Bstatic'
13459 lt_prog_compiler_can_build_shared_F77=no
13464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13465 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13468 # Check to make sure the PIC flag actually works.
13470 if test -n "$lt_prog_compiler_pic_F77"; then
13472 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13474 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 lt_prog_compiler_pic_works_F77=no
13478 ac_outfile=conftest.$ac_objext
13479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13480 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13481 # Insert the option either (1) after the last *FLAGS variable, or
13482 # (2) before a word containing "conftest.", or (3) at the end.
13483 # Note that $ac_compile itself does not contain backslashes and begins
13484 # with a dollar sign (not a hyphen), so the echo should work correctly.
13485 # The option is referenced via a variable to avoid confusing sed.
13486 lt_compile=`echo "$ac_compile" | $SED \
13487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13489 -e 's:$: $lt_compiler_flag:'`
13490 (eval echo "\"\$as_me:13490: $lt_compile\"" >&5)
13491 (eval "$lt_compile" 2>conftest.err)
13493 cat conftest.err >&5
13494 echo "$as_me:13494: \$? = $ac_status" >&5
13495 if (exit $ac_status) && test -s "$ac_outfile"; then
13496 # The compiler can only warn and ignore the option if not recognized
13497 # So say no if there are warnings other than the usual output.
13498 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13501 lt_prog_compiler_pic_works_F77=yes
13507 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13508 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13510 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13511 case $lt_prog_compiler_pic_F77 in
13513 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13516 lt_prog_compiler_pic_F77=
13517 lt_prog_compiler_can_build_shared_F77=no
13522 # For platforms which do not support PIC, -DPIC is meaningless:
13524 lt_prog_compiler_pic_F77=
13527 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13532 # Check to make sure the static flag actually works.
13534 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13535 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13536 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13537 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 lt_prog_compiler_static_works_F77=no
13541 save_LDFLAGS="$LDFLAGS"
13542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13543 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13545 # The linker can only warn and ignore the option if not recognized
13546 # So say no if there are warnings
13547 if test -s conftest.err; then
13548 # Append any errors to the config.log.
13549 cat conftest.err 1>&5
13550 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13552 if diff conftest.exp conftest.er2 >/dev/null; then
13553 lt_prog_compiler_static_works_F77=yes
13556 lt_prog_compiler_static_works_F77=yes
13560 LDFLAGS="$save_LDFLAGS"
13563 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13564 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13566 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13569 lt_prog_compiler_static_F77=
13573 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13575 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 lt_cv_prog_compiler_c_o_F77=no
13579 $rm -r conftest 2>/dev/null
13583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13585 lt_compiler_flag="-o out/conftest2.$ac_objext"
13586 # Insert the option either (1) after the last *FLAGS variable, or
13587 # (2) before a word containing "conftest.", or (3) at the end.
13588 # Note that $ac_compile itself does not contain backslashes and begins
13589 # with a dollar sign (not a hyphen), so the echo should work correctly.
13590 lt_compile=`echo "$ac_compile" | $SED \
13591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13593 -e 's:$: $lt_compiler_flag:'`
13594 (eval echo "\"\$as_me:13594: $lt_compile\"" >&5)
13595 (eval "$lt_compile" 2>out/conftest.err)
13597 cat out/conftest.err >&5
13598 echo "$as_me:13598: \$? = $ac_status" >&5
13599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13601 # The compiler can only warn and ignore the option if not recognized
13602 # So say no if there are warnings
13603 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13606 lt_cv_prog_compiler_c_o_F77=yes
13611 # SGI C++ compiler will create directory out/ii_files/ for
13612 # template instantiation
13613 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13614 $rm out/* && rmdir out
13620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13624 hard_links="nottested"
13625 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13626 # do not overwrite the value of need_locks provided by the user
13627 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13633 ln conftest.a conftest.b 2>&5 || hard_links=no
13634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13635 echo "$as_me:$LINENO: result: $hard_links" >&5
13636 echo "${ECHO_T}$hard_links" >&6
13637 if test "$hard_links" = no; then
13638 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13650 allow_undefined_flag_F77=
13651 enable_shared_with_static_runtimes_F77=no
13653 archive_expsym_cmds_F77=
13654 old_archive_From_new_cmds_F77=
13655 old_archive_from_expsyms_cmds_F77=
13656 export_dynamic_flag_spec_F77=
13657 whole_archive_flag_spec_F77=
13658 thread_safe_flag_spec_F77=
13659 hardcode_libdir_flag_spec_F77=
13660 hardcode_libdir_flag_spec_ld_F77=
13661 hardcode_libdir_separator_F77=
13662 hardcode_direct_F77=no
13663 hardcode_minus_L_F77=no
13664 hardcode_shlibpath_var_F77=unsupported
13665 link_all_deplibs_F77=unknown
13666 hardcode_automatic_F77=no
13668 module_expsym_cmds_F77=
13669 always_export_symbols_F77=no
13670 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13671 # include_expsyms should be a list of space-separated symbols to be *always*
13672 # included in the symbol list
13673 include_expsyms_F77=
13674 # exclude_expsyms can be an extended regexp of symbols to exclude
13675 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13676 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13677 # as well as any symbol that contains `d'.
13678 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13679 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13680 # platforms (ab)use it in PIC code, but their linkers get confused if
13681 # the symbol is explicitly referenced. Since portable code cannot
13682 # rely on this symbol name, it's probably fine to never include it in
13683 # preloaded symbol tables.
13684 extract_expsyms_cmds=
13685 # Just being paranoid about ensuring that cc_basename is set.
13686 for cc_temp in $compiler""; do
13688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13694 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13697 cygwin* | mingw* | pw32*)
13698 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13699 # When not using gcc, we currently assume that we are using
13700 # Microsoft Visual C++.
13701 if test "$GCC" != yes; then
13706 # we just hope/assume this is gcc and not c89 (= MSVC++)
13715 if test "$with_gnu_ld" = yes; then
13716 # If archive_cmds runs LD, not CC, wlarc should be empty
13719 # Set some defaults for GNU ld with shared library support. These
13720 # are reset later if shared libraries are not supported. Putting them
13721 # here allows them to be overridden if necessary.
13722 runpath_var=LD_RUN_PATH
13723 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13724 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13725 # ancient GNU ld didn't support --whole-archive et. al.
13726 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13727 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13729 whole_archive_flag_spec_F77=
13731 supports_anon_versioning=no
13732 case `$LD -v 2>/dev/null` in
13733 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13736 *\ 2.11.*) ;; # other 2.11 versions
13737 *) supports_anon_versioning=yes ;;
13740 # See if GNU ld supports shared libraries.
13742 aix3* | aix4* | aix5*)
13743 # On AIX/PPC, the GNU linker is very broken
13744 if test "$host_cpu" != ia64; then
13748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13749 *** to be unable to reliably create shared libraries on AIX.
13750 *** Therefore, libtool is disabling shared libraries support. If you
13751 *** really care for shared libraries, you may want to modify your PATH
13752 *** so that a non-GNU linker is found, and then restart.
13759 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)'
13760 hardcode_libdir_flag_spec_F77='-L$libdir'
13761 hardcode_minus_L_F77=yes
13763 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13764 # that the semantics of dynamic libraries on AmigaOS, at least up
13765 # to version 4, is to share data among multiple programs linked
13766 # with the same dynamic library. Since this doesn't match the
13767 # behavior of shared libraries on other platforms, we can't use
13773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13774 allow_undefined_flag_F77=unsupported
13775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13776 # support --undefined. This deserves some investigation. FIXME
13777 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13783 cygwin* | mingw* | pw32*)
13784 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13785 # as there is no search path for DLLs.
13786 hardcode_libdir_flag_spec_F77='-L$libdir'
13787 allow_undefined_flag_F77=unsupported
13788 always_export_symbols_F77=no
13789 enable_shared_with_static_runtimes_F77=yes
13790 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13792 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13794 # If the export-symbols file already is a .def file (1st line
13795 # is EXPORTS), use it as is; otherwise, prepend...
13796 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13797 cp $export_symbols $output_objdir/$soname.def;
13799 echo EXPORTS > $output_objdir/$soname.def;
13800 cat $export_symbols >> $output_objdir/$soname.def;
13802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13809 hardcode_direct_F77=no
13810 hardcode_shlibpath_var_F77=no
13811 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13812 export_dynamic_flag_spec_F77='${wl}-E'
13813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13814 # Instead, shared libraries are loaded at an image base (0x10000000 by
13815 # default) and relocated if they conflict, which is a slow very memory
13816 # consuming and fragmenting process. To avoid this, we pick a random,
13817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13818 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13819 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13820 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13826 case $cc_basename,$host_cpu in
13827 pgcc*) # Portland Group C compiler
13828 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13829 tmp_addflag=' $pic_flag'
13831 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13832 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13833 tmp_addflag=' $pic_flag -Mnomain' ;;
13834 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13835 tmp_addflag=' -i_dynamic' ;;
13836 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13837 tmp_addflag=' -i_dynamic -nofor_main' ;;
13838 ifc* | ifort*) # Intel Fortran compiler
13839 tmp_addflag=' -nofor_main' ;;
13841 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13843 if test $supports_anon_versioning = yes; then
13844 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13846 $echo "local: *; };" >> $output_objdir/$libname.ver~
13847 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13849 link_all_deplibs_F77=no
13855 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13857 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13860 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13861 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13866 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13870 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13871 *** create shared libraries on Solaris systems. Therefore, libtool
13872 *** is disabling shared libraries support. We urge you to upgrade GNU
13873 *** binutils to release 2.9.1 or newer. Another option is to modify
13874 *** your PATH or compiler configuration so that the native linker is
13875 *** used, and then restart.
13878 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13879 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13887 case `$LD -v 2>&1` in
13888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13892 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13893 *** reliably create shared libraries on SCO systems. Therefore, libtool
13894 *** is disabling shared libraries support. We urge you to upgrade GNU
13895 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13896 *** your PATH or compiler configuration so that the native linker is
13897 *** used, and then restart.
13902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13903 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13905 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13914 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13916 hardcode_direct_F77=yes
13917 hardcode_shlibpath_var_F77=no
13921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13930 if test "$ld_shlibs_F77" = no; then
13932 hardcode_libdir_flag_spec_F77=
13933 export_dynamic_flag_spec_F77=
13934 whole_archive_flag_spec_F77=
13937 # PORTME fill in a description of your system's linker (not GNU ld)
13940 allow_undefined_flag_F77=unsupported
13941 always_export_symbols_F77=yes
13942 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'
13943 # Note: this linker hardcodes the directories in LIBPATH if there
13944 # are no directories specified by -L.
13945 hardcode_minus_L_F77=yes
13946 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13947 # Neither direct hardcoding nor static linking is supported with a
13949 hardcode_direct_F77=unsupported
13954 if test "$host_cpu" = ia64; then
13955 # On IA64, the linker does run time linking by default, so we don't
13956 # have to do anything special.
13957 aix_use_runtimelinking=no
13958 exp_sym_flag='-Bexport'
13961 # If we're using GNU nm, then we don't want the "-C" option.
13962 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13963 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13964 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'
13966 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'
13968 aix_use_runtimelinking=no
13970 # Test if we are trying to use run time linking or normal
13971 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13972 # need to do runtime linking.
13973 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13974 for ld_flag in $LDFLAGS; do
13975 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13976 aix_use_runtimelinking=yes
13983 exp_sym_flag='-bexport'
13984 no_entry_flag='-bnoentry'
13987 # When large executables or shared objects are built, AIX ld can
13988 # have problems creating the table of contents. If linking a library
13989 # or program results in "error TOC overflow" add -mminimal-toc to
13990 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13991 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13993 archive_cmds_F77=''
13994 hardcode_direct_F77=yes
13995 hardcode_libdir_separator_F77=':'
13996 link_all_deplibs_F77=yes
13998 if test "$GCC" = yes; then
13999 case $host_os in aix4.[012]|aix4.[012].*)
14000 # We only want to do this on AIX 4.2 and lower, the check
14001 # below for broken collect2 doesn't work under 4.3+
14002 collect2name=`${CC} -print-prog-name=collect2`
14003 if test -f "$collect2name" && \
14004 strings "$collect2name" | grep resolve_lib_name >/dev/null
14006 # We have reworked collect2
14007 hardcode_direct_F77=yes
14009 # We have old collect2
14010 hardcode_direct_F77=unsupported
14011 # It fails to find uninstalled libraries when the uninstalled
14012 # path is not listed in the libpath. Setting hardcode_minus_L
14013 # to unsupported forces relinking
14014 hardcode_minus_L_F77=yes
14015 hardcode_libdir_flag_spec_F77='-L$libdir'
14016 hardcode_libdir_separator_F77=
14020 shared_flag='-shared'
14021 if test "$aix_use_runtimelinking" = yes; then
14022 shared_flag="$shared_flag "'${wl}-G'
14026 if test "$host_cpu" = ia64; then
14027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14028 # chokes on -Wl,-G. The following line is correct:
14031 if test "$aix_use_runtimelinking" = yes; then
14032 shared_flag='${wl}-G'
14034 shared_flag='${wl}-bM:SRE'
14039 # It seems that -bexpall does not export symbols beginning with
14040 # underscore (_), so it is better to generate a list of symbols to export.
14041 always_export_symbols_F77=yes
14042 if test "$aix_use_runtimelinking" = yes; then
14043 # Warning - without using the other runtime loading flags (-brtl),
14044 # -berok will link without error, but may produce a broken library.
14045 allow_undefined_flag_F77='-berok'
14046 # Determine the default libpath from the value encoded in an empty executable.
14047 cat >conftest.$ac_ext <<_ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14054 (eval $ac_link) 2>conftest.er1
14056 grep -v '^ *+' conftest.er1 >conftest.err
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } &&
14067 { ac_try='test -s conftest$ac_exeext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14076 # Check for a 64-bit object if we didn't find anything.
14077 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; }
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14084 rm -f conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14089 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14091 if test "$host_cpu" = ia64; then
14092 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14093 allow_undefined_flag_F77="-z nodefs"
14094 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14096 # Determine the default libpath from the value encoded in an empty executable.
14097 cat >conftest.$ac_ext <<_ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>conftest.er1
14106 grep -v '^ *+' conftest.er1 >conftest.err
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14126 # Check for a 64-bit object if we didn't find anything.
14127 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; }
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14134 rm -f conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14138 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14139 # Warning - without using the other run time loading flags,
14140 # -berok will link without error, but may produce a broken library.
14141 no_undefined_flag_F77=' ${wl}-bernotok'
14142 allow_undefined_flag_F77=' ${wl}-berok'
14143 # Exported symbols can be pulled into shared objects from archives
14144 whole_archive_flag_spec_F77='$convenience'
14145 archive_cmds_need_lc_F77=yes
14146 # This is similar to how AIX traditionally builds its shared libraries.
14147 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14153 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)'
14154 hardcode_libdir_flag_spec_F77='-L$libdir'
14155 hardcode_minus_L_F77=yes
14156 # see comment about different semantics on the GNU ld section
14161 export_dynamic_flag_spec_F77=-rdynamic
14164 cygwin* | mingw* | pw32*)
14165 # When not using gcc, we currently assume that we are using
14166 # Microsoft Visual C++.
14167 # hardcode_libdir_flag_spec is actually meaningless, as there is
14168 # no search path for DLLs.
14169 hardcode_libdir_flag_spec_F77=' '
14170 allow_undefined_flag_F77=unsupported
14171 # Tell ltmain to make .lib files, not .a files.
14173 # Tell ltmain to make .dll files, not .so files.
14175 # FIXME: Setting linknames here is a bad hack.
14176 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14177 # The linker will automatically build a .lib file if we build a DLL.
14178 old_archive_From_new_cmds_F77='true'
14179 # FIXME: Should let the user specify the lib program.
14180 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14181 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14182 enable_shared_with_static_runtimes_F77=yes
14185 darwin* | rhapsody*)
14187 rhapsody* | darwin1.[012])
14188 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14191 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14192 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14194 case ${MACOSX_DEPLOYMENT_TARGET} in
14196 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14199 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14205 archive_cmds_need_lc_F77=no
14206 hardcode_direct_F77=no
14207 hardcode_automatic_F77=yes
14208 hardcode_shlibpath_var_F77=unsupported
14209 whole_archive_flag_spec_F77=''
14210 link_all_deplibs_F77=yes
14211 if test "$GCC" = yes ; then
14212 output_verbose_link_cmd='echo'
14213 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14214 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14216 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14217 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}'
14219 case $cc_basename in
14221 output_verbose_link_cmd='echo'
14222 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14223 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14225 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14226 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}'
14236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237 hardcode_libdir_flag_spec_F77='-L$libdir'
14238 hardcode_shlibpath_var_F77=no
14245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14246 # support. Future versions do this automatically, but an explicit c++rt0.o
14247 # does not break anything, and helps significantly (at the cost of a little
14250 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14251 hardcode_libdir_flag_spec_F77='-R$libdir'
14252 hardcode_direct_F77=yes
14253 hardcode_shlibpath_var_F77=no
14256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_direct_F77=yes
14260 hardcode_minus_L_F77=yes
14261 hardcode_shlibpath_var_F77=no
14264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14265 freebsd* | dragonfly*)
14266 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14267 hardcode_libdir_flag_spec_F77='-R$libdir'
14268 hardcode_direct_F77=yes
14269 hardcode_shlibpath_var_F77=no
14272 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14274 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14275 hardcode_libdir_flag_spec_F77='-R$libdir'
14276 hardcode_direct_F77=yes
14277 hardcode_shlibpath_var_F77=no
14278 link_all_deplibs_F77=no
14282 if test "$GCC" = yes; then
14283 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'
14285 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'
14287 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14288 hardcode_libdir_separator_F77=:
14289 hardcode_direct_F77=yes
14291 # hardcode_minus_L: Not really in the search PATH,
14292 # but as the default location of the library.
14293 hardcode_minus_L_F77=yes
14294 export_dynamic_flag_spec_F77='${wl}-E'
14298 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14299 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14301 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14303 if test "$with_gnu_ld" = no; then
14304 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14305 hardcode_libdir_separator_F77=:
14307 hardcode_direct_F77=yes
14308 export_dynamic_flag_spec_F77='${wl}-E'
14310 # hardcode_minus_L: Not really in the search PATH,
14311 # but as the default location of the library.
14312 hardcode_minus_L_F77=yes
14317 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14320 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14326 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14332 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14338 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14342 if test "$with_gnu_ld" = no; then
14343 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14344 hardcode_libdir_separator_F77=:
14348 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14349 hardcode_direct_F77=no
14350 hardcode_shlibpath_var_F77=no
14353 hardcode_direct_F77=yes
14354 export_dynamic_flag_spec_F77='${wl}-E'
14356 # hardcode_minus_L: Not really in the search PATH,
14357 # but as the default location of the library.
14358 hardcode_minus_L_F77=yes
14364 irix5* | irix6* | nonstopux*)
14365 if test "$GCC" = yes; then
14366 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'
14368 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'
14369 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14371 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14372 hardcode_libdir_separator_F77=:
14373 link_all_deplibs_F77=yes
14376 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14378 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14380 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14382 hardcode_libdir_flag_spec_F77='-R$libdir'
14383 hardcode_direct_F77=yes
14384 hardcode_shlibpath_var_F77=no
14388 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14389 hardcode_direct_F77=yes
14390 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14391 hardcode_libdir_separator_F77=:
14392 hardcode_shlibpath_var_F77=no
14396 hardcode_direct_F77=yes
14397 hardcode_shlibpath_var_F77=no
14398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14400 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14402 export_dynamic_flag_spec_F77='${wl}-E'
14405 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14406 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_libdir_flag_spec_F77='-R$libdir'
14410 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14411 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14418 hardcode_libdir_flag_spec_F77='-L$libdir'
14419 hardcode_minus_L_F77=yes
14420 allow_undefined_flag_F77=unsupported
14421 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'
14422 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14426 if test "$GCC" = yes; then
14427 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14428 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'
14430 allow_undefined_flag_F77=' -expect_unresolved \*'
14431 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'
14433 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14434 hardcode_libdir_separator_F77=:
14437 osf4* | osf5*) # as osf3* with the addition of -msym flag
14438 if test "$GCC" = yes; then
14439 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14440 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'
14441 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14443 allow_undefined_flag_F77=' -expect_unresolved \*'
14444 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'
14445 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~
14446 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14448 # Both c and cxx compiler support -rpath directly
14449 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14451 hardcode_libdir_separator_F77=:
14455 no_undefined_flag_F77=' -z text'
14456 if test "$GCC" = yes; then
14458 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14459 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14460 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14463 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14464 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14465 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14467 hardcode_libdir_flag_spec_F77='-R$libdir'
14468 hardcode_shlibpath_var_F77=no
14470 solaris2.[0-5] | solaris2.[0-5].*) ;;
14472 # The compiler driver will combine linker options so we
14473 # cannot just pass the convience library names through
14474 # without $wl, iff we do not link with $LD.
14475 # Luckily, gcc supports the same syntax we need for Sun Studio.
14476 # Supported since Solaris 2.6 (maybe 2.5.1?)
14479 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14481 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14484 link_all_deplibs_F77=yes
14488 if test "x$host_vendor" = xsequent; then
14489 # Use $CC to link under sequent, because it throws in some extra .o
14490 # files that make .init and .fini sections work.
14491 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14493 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14495 hardcode_libdir_flag_spec_F77='-L$libdir'
14496 hardcode_direct_F77=yes
14497 hardcode_minus_L_F77=yes
14498 hardcode_shlibpath_var_F77=no
14502 case $host_vendor in
14504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14505 hardcode_direct_F77=yes # is this really true???
14508 ## LD is ld it makes a PLAMLIB
14509 ## CC just makes a GrossModule.
14510 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14511 reload_cmds_F77='$CC -r -o $output$reload_objs'
14512 hardcode_direct_F77=no
14515 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14516 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14519 runpath_var='LD_RUN_PATH'
14520 hardcode_shlibpath_var_F77=no
14524 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14525 hardcode_shlibpath_var_F77=no
14526 export_dynamic_flag_spec_F77='-Bexport'
14530 if test -d /usr/nec; then
14531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14532 hardcode_shlibpath_var_F77=no
14533 runpath_var=LD_RUN_PATH
14534 hardcode_runpath_var=yes
14539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14540 no_undefined_flag_F77='${wl}-z,text'
14541 archive_cmds_need_lc_F77=no
14542 hardcode_shlibpath_var_F77=no
14543 runpath_var='LD_RUN_PATH'
14545 if test "$GCC" = yes; then
14546 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14550 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554 sysv5* | sco3.2v5* | sco5v6*)
14555 # Note: We can NOT use -z defs as we might desire, because we do not
14556 # link with -lc, and that would cause any symbols used from libc to
14557 # always be unresolved, which means just about no library would
14558 # ever link correctly. If we're not using GNU ld we use -z text
14559 # though, which does catch some bad symbols but isn't as heavy-handed
14561 no_undefined_flag_F77='${wl}-z,text'
14562 allow_undefined_flag_F77='${wl}-z,nodefs'
14563 archive_cmds_need_lc_F77=no
14564 hardcode_shlibpath_var_F77=no
14565 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14566 hardcode_libdir_separator_F77=':'
14567 link_all_deplibs_F77=yes
14568 export_dynamic_flag_spec_F77='${wl}-Bexport'
14569 runpath_var='LD_RUN_PATH'
14571 if test "$GCC" = yes; then
14572 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14573 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14575 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14576 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14581 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582 hardcode_libdir_flag_spec_F77='-L$libdir'
14583 hardcode_shlibpath_var_F77=no
14592 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14593 echo "${ECHO_T}$ld_shlibs_F77" >&6
14594 test "$ld_shlibs_F77" = no && can_build_shared=no
14597 # Do we need to explicitly link libc?
14599 case "x$archive_cmds_need_lc_F77" in
14601 # Assume -lc should be added
14602 archive_cmds_need_lc_F77=yes
14604 if test "$enable_shared" = yes && test "$GCC" = yes; then
14605 case $archive_cmds_F77 in
14607 # FIXME: we may have to deal with multi-command sequences.
14610 # Test whether the compiler implicitly links with -lc since on some
14611 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14612 # to ld, don't add -lc before -lgcc.
14613 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14614 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619 (eval $ac_compile) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } 2>conftest.err; then
14625 libobjs=conftest.$ac_objext
14627 wl=$lt_prog_compiler_wl_F77
14628 pic_flag=$lt_prog_compiler_pic_F77
14634 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14635 allow_undefined_flag_F77=
14636 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14637 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }
14642 archive_cmds_need_lc_F77=no
14644 archive_cmds_need_lc_F77=yes
14646 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14648 cat conftest.err 1>&5
14651 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14652 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14659 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14660 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14661 library_names_spec=
14662 libname_spec='lib$name'
14666 postuninstall_cmds=
14670 shlibpath_overrides_runpath=unknown
14672 dynamic_linker="$host_os ld.so"
14673 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14674 if test "$GCC" = yes; then
14675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14676 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14677 # if the path contains ";" then we assume it to be the separator
14678 # otherwise default to the standard path separator (i.e. ":") - it is
14679 # assumed that no part of a normal pathname contains ";" but that should
14680 # okay in the real world where ";" in dirpaths is itself problematic.
14681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14688 need_lib_prefix=unknown
14689 hardcode_into_libs=no
14691 # when you set need_version to no, make sure it does not cause -set_version
14692 # flags to be left without arguments
14693 need_version=unknown
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14699 shlibpath_var=LIBPATH
14701 # AIX 3 has no versioning support, so we append a major version to the name.
14702 soname_spec='${libname}${release}${shared_ext}$major'
14709 hardcode_into_libs=yes
14710 if test "$host_cpu" = ia64; then
14711 # AIX 5 supports IA64
14712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14713 shlibpath_var=LD_LIBRARY_PATH
14715 # With GCC up to 2.95.x, collect2 would create an import file
14716 # for dependence libraries. The import file would start with
14717 # the line `#! .'. This would cause the generated library to
14718 # depend on `.', always an invalid library. This was fixed in
14719 # development snapshots of GCC prior to 3.0.
14721 aix4 | aix4.[01] | aix4.[01].*)
14722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14724 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14727 can_build_shared=no
14731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14732 # soname into executable. Probably we can add versioning support to
14733 # collect2, so additional links can be useful in future.
14734 if test "$aix_use_runtimelinking" = yes; then
14735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14736 # instead of lib<name>.a to let people know that these are not
14737 # typical AIX shared libraries.
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740 # We preserve .a as extension for shared libraries through AIX4.2
14741 # and later when we are not doing run time linking.
14742 library_names_spec='${libname}${release}.a $libname.a'
14743 soname_spec='${libname}${release}${shared_ext}$major'
14745 shlibpath_var=LIBPATH
14750 library_names_spec='$libname.ixlibrary $libname.a'
14751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14752 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'
14756 library_names_spec='${libname}${shared_ext}'
14757 dynamic_linker="$host_os ld.so"
14758 shlibpath_var=LIBRARY_PATH
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14770 # the default ld.so.conf also contains /usr/contrib/lib and
14771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14772 # libtool to hard-code these into programs
14775 cygwin* | mingw* | pw32*)
14776 version_type=windows
14781 case $GCC,$host_os in
14782 yes,cygwin* | yes,mingw* | yes,pw32*)
14783 library_names_spec='$libname.dll.a'
14784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14785 postinstall_cmds='base_file=`basename \${file}`~
14786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14787 dldir=$destdir/`dirname \$dlpath`~
14788 test -d \$dldir || mkdir -p \$dldir~
14789 $install_prog $dir/$dlname \$dldir/$dlname~
14790 chmod a+x \$dldir/$dlname'
14791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14792 dlpath=$dir/\$dldll~
14794 shlibpath_overrides_runpath=yes
14798 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14799 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14800 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14803 # MinGW DLLs use traditional 'lib' prefix
14804 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14805 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14806 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14807 # It is most probably a Windows format PATH printed by
14808 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14809 # path with ; separators, and with drive letters. We can handle the
14810 # drive letters (cygwin fileutils understands them), so leave them,
14811 # especially as we might pass files found there to a mingw objdump,
14812 # which wouldn't understand a cygwinified path. Ahh.
14813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14819 # pw32 DLLs use 'pw' prefix rather than 'lib'
14820 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14826 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14829 dynamic_linker='Win32 ld.exe'
14830 # FIXME: first we should search . and the directory the executable is in
14834 darwin* | rhapsody*)
14835 dynamic_linker="$host_os dyld"
14836 version_type=darwin
14839 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14840 soname_spec='${libname}${release}${major}$shared_ext'
14841 shlibpath_overrides_runpath=yes
14842 shlibpath_var=DYLD_LIBRARY_PATH
14843 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14844 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14845 if test "$GCC" = yes; then
14846 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"`
14848 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 shlibpath_overrides_runpath=no
14874 hardcode_into_libs=yes
14875 dynamic_linker='GNU ld.so'
14878 freebsd* | dragonfly*)
14879 # DragonFly does not have aout. When/if they implement a new
14880 # versioning mechanism, adjust this.
14881 if test -x /usr/bin/objformat; then
14882 objformat=`/usr/bin/objformat`
14885 freebsd[123]*) objformat=aout ;;
14886 *) objformat=elf ;;
14889 version_type=freebsd-$objformat
14890 case $version_type in
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14901 shlibpath_var=LD_LIBRARY_PATH
14904 shlibpath_overrides_runpath=yes
14906 freebsd3.[01]* | freebsdelf3.[01]*)
14907 shlibpath_overrides_runpath=yes
14908 hardcode_into_libs=yes
14910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14912 shlibpath_overrides_runpath=no
14913 hardcode_into_libs=yes
14915 freebsd*) # from 4.6 on
14916 shlibpath_overrides_runpath=yes
14917 hardcode_into_libs=yes
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 hardcode_into_libs=yes
14932 hpux9* | hpux10* | hpux11*)
14933 # Give a soname corresponding to the major version so that dld.sl refuses to
14934 # link against other versions.
14941 hardcode_into_libs=yes
14942 dynamic_linker="$host_os dld.so"
14943 shlibpath_var=LD_LIBRARY_PATH
14944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 if test "X$HPUX_IA64_MODE" = X32; then
14948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14956 hardcode_into_libs=yes
14957 dynamic_linker="$host_os dld.sl"
14958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14967 dynamic_linker="$host_os dld.sl"
14968 shlibpath_var=SHLIB_PATH
14969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 soname_spec='${libname}${release}${shared_ext}$major'
14974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14975 postinstall_cmds='chmod 555 $lib'
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 shlibpath_overrides_runpath=no
14987 hardcode_into_libs=yes
14990 irix5* | irix6* | nonstopux*)
14992 nonstopux*) version_type=nonstopux ;;
14994 if test "$lt_cv_prog_gnu_ld" = yes; then
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15005 irix5* | nonstopux*)
15006 libsuff= shlibsuff=
15009 case $LD in # libtool.m4 will add one of these switches to LD
15010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15011 libsuff= shlibsuff= libmagic=32-bit;;
15012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15013 libsuff=32 shlibsuff=N32 libmagic=N32;;
15014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15015 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15016 *) libsuff= shlibsuff= libmagic=never-match;;
15020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15021 shlibpath_overrides_runpath=no
15022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15024 hardcode_into_libs=yes
15027 # No shared lib support for Linux oldld, aout, or coff.
15028 linux*oldld* | linux*aout* | linux*coff*)
15032 # This must be Linux ELF.
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038 soname_spec='${libname}${release}${shared_ext}$major'
15039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15040 shlibpath_var=LD_LIBRARY_PATH
15041 shlibpath_overrides_runpath=no
15042 # This implies no fast_install, which is unacceptable.
15043 # Some rework will be needed to allow for fast_install
15044 # before this can be enabled.
15045 hardcode_into_libs=yes
15047 # Append ld.so.conf contents to the search path
15048 if test -f /etc/ld.so.conf; then
15049 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15050 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15053 # We used to test for /lib/ld.so.1 and disable shared libraries on
15054 # powerpc, because MkLinux only supported shared libraries with the
15055 # GNU dynamic linker. Since this was broken with cross compilers,
15056 # most powerpc-linux boxes support dynamic linking these days and
15057 # people can always --disable-shared, the test was removed, and we
15058 # assume the GNU/Linux dynamic linker is in use.
15059 dynamic_linker='GNU/Linux ld.so'
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15067 soname_spec='${libname}${release}${shared_ext}$major'
15068 shlibpath_var=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath=no
15070 hardcode_into_libs=yes
15071 dynamic_linker='NetBSD ld.elf_so'
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15079 soname_spec='${libname}${release}${shared_ext}$major'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 shlibpath_overrides_runpath=no
15082 hardcode_into_libs=yes
15083 dynamic_linker='GNU ld.so'
15090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15093 dynamic_linker='NetBSD (a.out) ld.so'
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 dynamic_linker='NetBSD ld.elf_so'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 shlibpath_overrides_runpath=yes
15101 hardcode_into_libs=yes
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=yes
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=yes
15123 sys_lib_dlsearch_path_spec="/usr/lib"
15125 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15127 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15128 *) need_version=no ;;
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15132 shlibpath_var=LD_LIBRARY_PATH
15133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15135 openbsd2.[89] | openbsd2.[89].*)
15136 shlibpath_overrides_runpath=no
15139 shlibpath_overrides_runpath=yes
15143 shlibpath_overrides_runpath=yes
15148 libname_spec='$name'
15151 library_names_spec='$libname${shared_ext} $libname.a'
15152 dynamic_linker='OS/2 ld.exe'
15153 shlibpath_var=LIBPATH
15156 osf3* | osf4* | osf5*)
15160 soname_spec='${libname}${release}${shared_ext}$major'
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 shlibpath_overrides_runpath=yes
15175 hardcode_into_libs=yes
15176 # ldd complains unless libraries are executable
15177 postinstall_cmds='chmod +x $lib'
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath=yes
15186 if test "$with_gnu_ld" = yes; then
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 case $host_vendor in
15199 shlibpath_overrides_runpath=no
15201 export_dynamic_flag_spec='${wl}-Blargedynsym'
15202 runpath_var=LD_RUN_PATH
15210 shlibpath_overrides_runpath=no
15211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15217 if test -d /usr/nec ;then
15219 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15220 soname_spec='$libname${shared_ext}.$major'
15221 shlibpath_var=LD_LIBRARY_PATH
15225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15226 version_type=freebsd-elf
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 hardcode_into_libs=yes
15233 if test "$with_gnu_ld" = yes; then
15234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15235 shlibpath_overrides_runpath=no
15237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15238 shlibpath_overrides_runpath=yes
15241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15245 sys_lib_dlsearch_path_spec='/usr/lib'
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15259 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15260 echo "${ECHO_T}$dynamic_linker" >&6
15261 test "$dynamic_linker" = no && can_build_shared=no
15263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15264 if test "$GCC" = yes; then
15265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15268 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15269 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15270 hardcode_action_F77=
15271 if test -n "$hardcode_libdir_flag_spec_F77" || \
15272 test -n "$runpath_var_F77" || \
15273 test "X$hardcode_automatic_F77" = "Xyes" ; then
15275 # We can hardcode non-existant directories.
15276 if test "$hardcode_direct_F77" != no &&
15277 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15278 # have to relink, otherwise we might link with an installed library
15279 # when we should be linking with a yet-to-be-installed one
15280 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15281 test "$hardcode_minus_L_F77" != no; then
15282 # Linking always hardcodes the temporary library directory.
15283 hardcode_action_F77=relink
15285 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15286 hardcode_action_F77=immediate
15289 # We cannot hardcode anything, or else we can only hardcode existing
15291 hardcode_action_F77=unsupported
15293 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15294 echo "${ECHO_T}$hardcode_action_F77" >&6
15296 if test "$hardcode_action_F77" = relink; then
15297 # Fast installation is not supported
15298 enable_fast_install=no
15299 elif test "$shlibpath_overrides_runpath" = yes ||
15300 test "$enable_shared" = no; then
15301 # Fast installation is not necessary
15302 enable_fast_install=needless
15306 # The else clause should only fire when bootstrapping the
15307 # libtool distribution, otherwise you forgot to ship ltmain.sh
15308 # with your package, and you will get complaints that there are
15309 # no rules to generate ltmain.sh.
15310 if test -f "$ltmain"; then
15311 # See if we are running on zsh, and set the options which allow our commands through
15312 # without removal of \ escapes.
15313 if test -n "${ZSH_VERSION+set}" ; then
15314 setopt NO_GLOB_SUBST
15316 # Now quote all the things that may contain metacharacters while being
15317 # careful not to overquote the AC_SUBSTed values. We take copies of the
15318 # variables and quote the copies for generation of the libtool script.
15319 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15321 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15322 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15323 deplibs_check_method reload_flag reload_cmds need_locks \
15324 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15325 lt_cv_sys_global_symbol_to_c_name_address \
15326 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15327 old_postinstall_cmds old_postuninstall_cmds \
15331 lt_prog_compiler_wl_F77 \
15332 lt_prog_compiler_pic_F77 \
15333 lt_prog_compiler_static_F77 \
15334 lt_prog_compiler_no_builtin_flag_F77 \
15335 export_dynamic_flag_spec_F77 \
15336 thread_safe_flag_spec_F77 \
15337 whole_archive_flag_spec_F77 \
15338 enable_shared_with_static_runtimes_F77 \
15339 old_archive_cmds_F77 \
15340 old_archive_from_new_cmds_F77 \
15341 predep_objects_F77 \
15342 postdep_objects_F77 \
15345 compiler_lib_search_path_F77 \
15347 archive_expsym_cmds_F77 \
15348 postinstall_cmds_F77 \
15349 postuninstall_cmds_F77 \
15350 old_archive_from_expsyms_cmds_F77 \
15351 allow_undefined_flag_F77 \
15352 no_undefined_flag_F77 \
15353 export_symbols_cmds_F77 \
15354 hardcode_libdir_flag_spec_F77 \
15355 hardcode_libdir_flag_spec_ld_F77 \
15356 hardcode_libdir_separator_F77 \
15357 hardcode_automatic_F77 \
15359 module_expsym_cmds_F77 \
15360 lt_cv_prog_compiler_c_o_F77 \
15361 exclude_expsyms_F77 \
15362 include_expsyms_F77; do
15365 old_archive_cmds_F77 | \
15366 old_archive_from_new_cmds_F77 | \
15367 archive_cmds_F77 | \
15368 archive_expsym_cmds_F77 | \
15369 module_cmds_F77 | \
15370 module_expsym_cmds_F77 | \
15371 old_archive_from_expsyms_cmds_F77 | \
15372 export_symbols_cmds_F77 | \
15373 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15374 postinstall_cmds | postuninstall_cmds | \
15375 old_postinstall_cmds | old_postuninstall_cmds | \
15376 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15377 # Double-quote double-evaled strings.
15378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15387 *'\$0 --fallback-echo"')
15388 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15394 cat <<__EOF__ >> "$cfgfile"
15395 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15397 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15399 # Shell to use when invoking shell scripts.
15402 # Whether or not to build shared libraries.
15403 build_libtool_libs=$enable_shared
15405 # Whether or not to build static libraries.
15406 build_old_libs=$enable_static
15408 # Whether or not to add -lc for building shared libraries.
15409 build_libtool_need_lc=$archive_cmds_need_lc_F77
15411 # Whether or not to disallow shared libs when runtime libs are static
15412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15414 # Whether or not to optimize for fast installation.
15415 fast_install=$enable_fast_install
15418 host_alias=$host_alias
15422 # The build system.
15423 build_alias=$build_alias
15427 # An echo program that does not interpret backslashes.
15432 AR_FLAGS=$lt_AR_FLAGS
15437 # LTCC compiler flags.
15438 LTCFLAGS=$lt_LTCFLAGS
15440 # A language-specific compiler.
15441 CC=$lt_compiler_F77
15443 # Is the compiler the GNU C compiler?
15449 # The linker used to build libraries.
15452 # Whether we need hard or soft links.
15455 # A BSD-compatible nm program.
15458 # A symbol stripping program
15461 # Used to examine libraries when file_magic_cmd begins "file"
15462 MAGIC_CMD=$MAGIC_CMD
15464 # Used on cygwin: DLL creation program.
15467 # Used on cygwin: object dumper.
15470 # Used on cygwin: assembler.
15473 # The name of the directory that contains temporary libtool files.
15476 # How to create reloadable object files.
15477 reload_flag=$lt_reload_flag
15478 reload_cmds=$lt_reload_cmds
15480 # How to pass a linker flag through the compiler.
15481 wl=$lt_lt_prog_compiler_wl_F77
15483 # Object file suffix (normally "o").
15484 objext="$ac_objext"
15486 # Old archive suffix (normally "a").
15489 # Shared library suffix (normally ".so").
15490 shrext_cmds='$shrext_cmds'
15492 # Executable file suffix (normally "").
15495 # Additional compiler flags for building library objects.
15496 pic_flag=$lt_lt_prog_compiler_pic_F77
15499 # What is the maximum length of a command?
15500 max_cmd_len=$lt_cv_sys_max_cmd_len
15502 # Does compiler simultaneously support -c and -o options?
15503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15505 # Must we lock files when doing compilation?
15506 need_locks=$lt_need_locks
15508 # Do we need the lib prefix for modules?
15509 need_lib_prefix=$need_lib_prefix
15511 # Do we need a version for libraries?
15512 need_version=$need_version
15514 # Whether dlopen is supported.
15515 dlopen_support=$enable_dlopen
15517 # Whether dlopen of programs is supported.
15518 dlopen_self=$enable_dlopen_self
15520 # Whether dlopen of statically linked programs is supported.
15521 dlopen_self_static=$enable_dlopen_self_static
15523 # Compiler flag to prevent dynamic linking.
15524 link_static_flag=$lt_lt_prog_compiler_static_F77
15526 # Compiler flag to turn off builtin functions.
15527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15529 # Compiler flag to allow reflexive dlopens.
15530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15532 # Compiler flag to generate shared objects directly from archives.
15533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15535 # Compiler flag to generate thread-safe objects.
15536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15538 # Library versioning type.
15539 version_type=$version_type
15541 # Format of library name prefix.
15542 libname_spec=$lt_libname_spec
15544 # List of archive names. First name is the real one, the rest are links.
15545 # The last name is the one that the linker finds with -lNAME.
15546 library_names_spec=$lt_library_names_spec
15548 # The coded name of the library, if different from the real name.
15549 soname_spec=$lt_soname_spec
15551 # Commands used to build and install an old-style archive.
15553 old_archive_cmds=$lt_old_archive_cmds_F77
15554 old_postinstall_cmds=$lt_old_postinstall_cmds
15555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15557 # Create an old-style archive from a shared archive.
15558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15560 # Create a temporary old-style archive to link instead of a shared archive.
15561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15563 # Commands used to build and install a shared archive.
15564 archive_cmds=$lt_archive_cmds_F77
15565 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15566 postinstall_cmds=$lt_postinstall_cmds
15567 postuninstall_cmds=$lt_postuninstall_cmds
15569 # Commands used to build a loadable module (assumed same as above if empty)
15570 module_cmds=$lt_module_cmds_F77
15571 module_expsym_cmds=$lt_module_expsym_cmds_F77
15573 # Commands to strip libraries.
15574 old_striplib=$lt_old_striplib
15575 striplib=$lt_striplib
15577 # Dependencies to place before the objects being linked to create a
15579 predep_objects=$lt_predep_objects_F77
15581 # Dependencies to place after the objects being linked to create a
15583 postdep_objects=$lt_postdep_objects_F77
15585 # Dependencies to place before the objects being linked to create a
15587 predeps=$lt_predeps_F77
15589 # Dependencies to place after the objects being linked to create a
15591 postdeps=$lt_postdeps_F77
15593 # The library search path used internally by the compiler when linking
15594 # a shared library.
15595 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15597 # Method to check whether dependent libraries are shared objects.
15598 deplibs_check_method=$lt_deplibs_check_method
15600 # Command to use when deplibs_check_method == file_magic.
15601 file_magic_cmd=$lt_file_magic_cmd
15603 # Flag that allows shared libraries with undefined symbols to be built.
15604 allow_undefined_flag=$lt_allow_undefined_flag_F77
15606 # Flag that forces no undefined symbols.
15607 no_undefined_flag=$lt_no_undefined_flag_F77
15609 # Commands used to finish a libtool library installation in a directory.
15610 finish_cmds=$lt_finish_cmds
15612 # Same as above, but a single script fragment to be evaled but not shown.
15613 finish_eval=$lt_finish_eval
15615 # Take the output of nm and produce a listing of raw symbols and C names.
15616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15618 # Transform the output of nm in a proper C declaration
15619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15621 # Transform the output of nm in a C name address pair
15622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15624 # This is the shared library runtime path variable.
15625 runpath_var=$runpath_var
15627 # This is the shared library path variable.
15628 shlibpath_var=$shlibpath_var
15630 # Is shlibpath searched before the hard-coded library search path?
15631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15633 # How to hardcode a shared library path into an executable.
15634 hardcode_action=$hardcode_action_F77
15636 # Whether we should hardcode library paths into libraries.
15637 hardcode_into_libs=$hardcode_into_libs
15639 # Flag to hardcode \$libdir into a binary during linking.
15640 # This must work even if \$libdir does not exist.
15641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15643 # If ld is used when linking, flag to hardcode \$libdir into
15644 # a binary during linking. This must work even if \$libdir does
15646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15648 # Whether we need a single -rpath flag with a separated argument.
15649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15652 # resulting binary.
15653 hardcode_direct=$hardcode_direct_F77
15655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15656 # resulting binary.
15657 hardcode_minus_L=$hardcode_minus_L_F77
15659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15660 # the resulting binary.
15661 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15663 # Set to yes if building a shared library automatically hardcodes DIR into the library
15664 # and all subsequent libraries and executables linked against it.
15665 hardcode_automatic=$hardcode_automatic_F77
15667 # Variables whose values should be saved in libtool wrapper scripts and
15668 # restored at relink time.
15669 variables_saved_for_relink="$variables_saved_for_relink"
15671 # Whether libtool must link a program against all its dependency libraries.
15672 link_all_deplibs=$link_all_deplibs_F77
15674 # Compile-time system search path for libraries
15675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15677 # Run-time system search path for libraries
15678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15680 # Fix the shell variable \$srcfile for the compiler.
15681 fix_srcfile_path="$fix_srcfile_path_F77"
15683 # Set to yes if exported symbols are required.
15684 always_export_symbols=$always_export_symbols_F77
15686 # The commands to list exported symbols.
15687 export_symbols_cmds=$lt_export_symbols_cmds_F77
15689 # The commands to extract the exported symbol list from a shared archive.
15690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15692 # Symbols that should not be listed in the preloaded symbols.
15693 exclude_expsyms=$lt_exclude_expsyms_F77
15695 # Symbols that must always be exported.
15696 include_expsyms=$lt_include_expsyms_F77
15698 # ### END LIBTOOL TAG CONFIG: $tagname
15704 # If there is no Makefile yet, we rely on a make rule to execute
15705 # `config.status --recheck' to rerun these tests and create the
15706 # libtool script then.
15707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15708 if test -f "$ltmain_in"; then
15709 test -f Makefile && make "$ltmain"
15715 ac_cpp='$CPP $CPPFLAGS'
15716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15728 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15732 # Source file extension for Java test sources.
15735 # Object file extension for compiled Java test sources.
15739 # Code to be used in simple compile tests
15740 lt_simple_compile_test_code="class foo {}\n"
15742 # Code to be used in simple link tests
15743 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15745 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15747 # If no C compiler was specified, use CC.
15750 # If no C compiler flags were specified, use CFLAGS.
15751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15753 # Allow CC to be a program name with arguments.
15757 # save warnings/boilerplate of simple test code
15758 ac_outfile=conftest.$ac_objext
15759 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15760 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15761 _lt_compiler_boilerplate=`cat conftest.err`
15764 ac_outfile=conftest.$ac_objext
15765 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15766 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15767 _lt_linker_boilerplate=`cat conftest.err`
15771 # Allow CC to be a program name with arguments.
15776 for cc_temp in $compiler""; do
15778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15784 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15787 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15788 archive_cmds_need_lc_GCJ=no
15790 old_archive_cmds_GCJ=$old_archive_cmds
15793 lt_prog_compiler_no_builtin_flag_GCJ=
15795 if test "$GCC" = yes; then
15796 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15799 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15800 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15801 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 lt_cv_prog_compiler_rtti_exceptions=no
15805 ac_outfile=conftest.$ac_objext
15806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15807 lt_compiler_flag="-fno-rtti -fno-exceptions"
15808 # Insert the option either (1) after the last *FLAGS variable, or
15809 # (2) before a word containing "conftest.", or (3) at the end.
15810 # Note that $ac_compile itself does not contain backslashes and begins
15811 # with a dollar sign (not a hyphen), so the echo should work correctly.
15812 # The option is referenced via a variable to avoid confusing sed.
15813 lt_compile=`echo "$ac_compile" | $SED \
15814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15816 -e 's:$: $lt_compiler_flag:'`
15817 (eval echo "\"\$as_me:15817: $lt_compile\"" >&5)
15818 (eval "$lt_compile" 2>conftest.err)
15820 cat conftest.err >&5
15821 echo "$as_me:15821: \$? = $ac_status" >&5
15822 if (exit $ac_status) && test -s "$ac_outfile"; then
15823 # The compiler can only warn and ignore the option if not recognized
15824 # So say no if there are warnings other than the usual output.
15825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15828 lt_cv_prog_compiler_rtti_exceptions=yes
15834 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15835 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15838 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15845 lt_prog_compiler_wl_GCJ=
15846 lt_prog_compiler_pic_GCJ=
15847 lt_prog_compiler_static_GCJ=
15849 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15850 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15852 if test "$GCC" = yes; then
15853 lt_prog_compiler_wl_GCJ='-Wl,'
15854 lt_prog_compiler_static_GCJ='-static'
15858 # All AIX code is PIC.
15859 if test "$host_cpu" = ia64; then
15860 # AIX 5 now supports IA64 processor
15861 lt_prog_compiler_static_GCJ='-Bstatic'
15866 # FIXME: we need at least 68020 code to build shared libraries, but
15867 # adding the `-m68020' flag to GCC prevents building anything better,
15869 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15872 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15873 # PIC is the default for these OSes.
15876 mingw* | pw32* | os2*)
15877 # This hack is so that the source file can tell whether it is being
15878 # built for inclusion in a dll (and should export symbols for example).
15879 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15882 darwin* | rhapsody*)
15883 # PIC is the default on this platform
15884 # Common symbols not allowed in MH_DYLIB files
15885 lt_prog_compiler_pic_GCJ='-fno-common'
15889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15890 # Instead, we relocate shared libraries at runtime.
15894 # Just because we use GCC doesn't mean we suddenly get shared libraries
15895 # on systems that don't support them.
15896 lt_prog_compiler_can_build_shared_GCJ=no
15901 if test -d /usr/nec; then
15902 lt_prog_compiler_pic_GCJ=-Kconform_pic
15907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15908 # not for PA HP-UX.
15914 lt_prog_compiler_pic_GCJ='-fPIC'
15920 lt_prog_compiler_pic_GCJ='-fPIC'
15924 # PORTME Check for flag to pass linker flags through the system compiler.
15927 lt_prog_compiler_wl_GCJ='-Wl,'
15928 if test "$host_cpu" = ia64; then
15929 # AIX 5 now supports IA64 processor
15930 lt_prog_compiler_static_GCJ='-Bstatic'
15932 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15936 # PIC is the default on this platform
15937 # Common symbols not allowed in MH_DYLIB files
15938 case $cc_basename in
15940 lt_prog_compiler_pic_GCJ='-qnocommon'
15941 lt_prog_compiler_wl_GCJ='-Wl,'
15946 mingw* | pw32* | os2*)
15947 # This hack is so that the source file can tell whether it is being
15948 # built for inclusion in a dll (and should export symbols for example).
15949 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15952 hpux9* | hpux10* | hpux11*)
15953 lt_prog_compiler_wl_GCJ='-Wl,'
15954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15955 # not for PA HP-UX.
15961 lt_prog_compiler_pic_GCJ='+Z'
15964 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15965 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15968 irix5* | irix6* | nonstopux*)
15969 lt_prog_compiler_wl_GCJ='-Wl,'
15970 # PIC (with -KPIC) is the default.
15971 lt_prog_compiler_static_GCJ='-non_shared'
15975 lt_prog_compiler_pic_GCJ='-KPIC'
15976 lt_prog_compiler_static_GCJ='-Bstatic'
15980 case $cc_basename in
15982 lt_prog_compiler_wl_GCJ='-Wl,'
15983 lt_prog_compiler_pic_GCJ='-KPIC'
15984 lt_prog_compiler_static_GCJ='-static'
15986 pgcc* | pgf77* | pgf90* | pgf95*)
15987 # Portland Group compilers (*not* the Pentium gcc compiler,
15988 # which looks to be a dead project)
15989 lt_prog_compiler_wl_GCJ='-Wl,'
15990 lt_prog_compiler_pic_GCJ='-fpic'
15991 lt_prog_compiler_static_GCJ='-Bstatic'
15994 lt_prog_compiler_wl_GCJ='-Wl,'
15995 # All Alpha code is PIC.
15996 lt_prog_compiler_static_GCJ='-non_shared'
16001 osf3* | osf4* | osf5*)
16002 lt_prog_compiler_wl_GCJ='-Wl,'
16003 # All OSF/1 code is PIC.
16004 lt_prog_compiler_static_GCJ='-non_shared'
16008 lt_prog_compiler_pic_GCJ='-KPIC'
16009 lt_prog_compiler_static_GCJ='-Bstatic'
16010 case $cc_basename in
16011 f77* | f90* | f95*)
16012 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16014 lt_prog_compiler_wl_GCJ='-Wl,';;
16019 lt_prog_compiler_wl_GCJ='-Qoption ld '
16020 lt_prog_compiler_pic_GCJ='-PIC'
16021 lt_prog_compiler_static_GCJ='-Bstatic'
16024 sysv4 | sysv4.2uw2* | sysv4.3*)
16025 lt_prog_compiler_wl_GCJ='-Wl,'
16026 lt_prog_compiler_pic_GCJ='-KPIC'
16027 lt_prog_compiler_static_GCJ='-Bstatic'
16031 if test -d /usr/nec ;then
16032 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16033 lt_prog_compiler_static_GCJ='-Bstatic'
16037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 lt_prog_compiler_pic_GCJ='-KPIC'
16040 lt_prog_compiler_static_GCJ='-Bstatic'
16044 lt_prog_compiler_wl_GCJ='-Wl,'
16045 lt_prog_compiler_can_build_shared_GCJ=no
16049 lt_prog_compiler_pic_GCJ='-pic'
16050 lt_prog_compiler_static_GCJ='-Bstatic'
16054 lt_prog_compiler_can_build_shared_GCJ=no
16059 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16060 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16063 # Check to make sure the PIC flag actually works.
16065 if test -n "$lt_prog_compiler_pic_GCJ"; then
16067 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16068 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16069 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 lt_prog_compiler_pic_works_GCJ=no
16073 ac_outfile=conftest.$ac_objext
16074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16075 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16076 # Insert the option either (1) after the last *FLAGS variable, or
16077 # (2) before a word containing "conftest.", or (3) at the end.
16078 # Note that $ac_compile itself does not contain backslashes and begins
16079 # with a dollar sign (not a hyphen), so the echo should work correctly.
16080 # The option is referenced via a variable to avoid confusing sed.
16081 lt_compile=`echo "$ac_compile" | $SED \
16082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16084 -e 's:$: $lt_compiler_flag:'`
16085 (eval echo "\"\$as_me:16085: $lt_compile\"" >&5)
16086 (eval "$lt_compile" 2>conftest.err)
16088 cat conftest.err >&5
16089 echo "$as_me:16089: \$? = $ac_status" >&5
16090 if (exit $ac_status) && test -s "$ac_outfile"; then
16091 # The compiler can only warn and ignore the option if not recognized
16092 # So say no if there are warnings other than the usual output.
16093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16096 lt_prog_compiler_pic_works_GCJ=yes
16102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16103 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16105 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16106 case $lt_prog_compiler_pic_GCJ in
16108 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16111 lt_prog_compiler_pic_GCJ=
16112 lt_prog_compiler_can_build_shared_GCJ=no
16117 # For platforms which do not support PIC, -DPIC is meaningless:
16119 lt_prog_compiler_pic_GCJ=
16122 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16127 # Check to make sure the static flag actually works.
16129 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16130 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16131 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16132 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 lt_prog_compiler_static_works_GCJ=no
16136 save_LDFLAGS="$LDFLAGS"
16137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16138 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16140 # The linker can only warn and ignore the option if not recognized
16141 # So say no if there are warnings
16142 if test -s conftest.err; then
16143 # Append any errors to the config.log.
16144 cat conftest.err 1>&5
16145 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16147 if diff conftest.exp conftest.er2 >/dev/null; then
16148 lt_prog_compiler_static_works_GCJ=yes
16151 lt_prog_compiler_static_works_GCJ=yes
16155 LDFLAGS="$save_LDFLAGS"
16158 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16159 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16161 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16164 lt_prog_compiler_static_GCJ=
16168 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16170 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 lt_cv_prog_compiler_c_o_GCJ=no
16174 $rm -r conftest 2>/dev/null
16178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16180 lt_compiler_flag="-o out/conftest2.$ac_objext"
16181 # Insert the option either (1) after the last *FLAGS variable, or
16182 # (2) before a word containing "conftest.", or (3) at the end.
16183 # Note that $ac_compile itself does not contain backslashes and begins
16184 # with a dollar sign (not a hyphen), so the echo should work correctly.
16185 lt_compile=`echo "$ac_compile" | $SED \
16186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16188 -e 's:$: $lt_compiler_flag:'`
16189 (eval echo "\"\$as_me:16189: $lt_compile\"" >&5)
16190 (eval "$lt_compile" 2>out/conftest.err)
16192 cat out/conftest.err >&5
16193 echo "$as_me:16193: \$? = $ac_status" >&5
16194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16196 # The compiler can only warn and ignore the option if not recognized
16197 # So say no if there are warnings
16198 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16201 lt_cv_prog_compiler_c_o_GCJ=yes
16206 # SGI C++ compiler will create directory out/ii_files/ for
16207 # template instantiation
16208 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16209 $rm out/* && rmdir out
16215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16219 hard_links="nottested"
16220 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16221 # do not overwrite the value of need_locks provided by the user
16222 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16223 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16228 ln conftest.a conftest.b 2>&5 || hard_links=no
16229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16230 echo "$as_me:$LINENO: result: $hard_links" >&5
16231 echo "${ECHO_T}$hard_links" >&6
16232 if test "$hard_links" = no; then
16233 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16234 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16241 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16242 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16245 allow_undefined_flag_GCJ=
16246 enable_shared_with_static_runtimes_GCJ=no
16248 archive_expsym_cmds_GCJ=
16249 old_archive_From_new_cmds_GCJ=
16250 old_archive_from_expsyms_cmds_GCJ=
16251 export_dynamic_flag_spec_GCJ=
16252 whole_archive_flag_spec_GCJ=
16253 thread_safe_flag_spec_GCJ=
16254 hardcode_libdir_flag_spec_GCJ=
16255 hardcode_libdir_flag_spec_ld_GCJ=
16256 hardcode_libdir_separator_GCJ=
16257 hardcode_direct_GCJ=no
16258 hardcode_minus_L_GCJ=no
16259 hardcode_shlibpath_var_GCJ=unsupported
16260 link_all_deplibs_GCJ=unknown
16261 hardcode_automatic_GCJ=no
16263 module_expsym_cmds_GCJ=
16264 always_export_symbols_GCJ=no
16265 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16266 # include_expsyms should be a list of space-separated symbols to be *always*
16267 # included in the symbol list
16268 include_expsyms_GCJ=
16269 # exclude_expsyms can be an extended regexp of symbols to exclude
16270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16272 # as well as any symbol that contains `d'.
16273 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16275 # platforms (ab)use it in PIC code, but their linkers get confused if
16276 # the symbol is explicitly referenced. Since portable code cannot
16277 # rely on this symbol name, it's probably fine to never include it in
16278 # preloaded symbol tables.
16279 extract_expsyms_cmds=
16280 # Just being paranoid about ensuring that cc_basename is set.
16281 for cc_temp in $compiler""; do
16283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16292 cygwin* | mingw* | pw32*)
16293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16294 # When not using gcc, we currently assume that we are using
16295 # Microsoft Visual C++.
16296 if test "$GCC" != yes; then
16301 # we just hope/assume this is gcc and not c89 (= MSVC++)
16310 if test "$with_gnu_ld" = yes; then
16311 # If archive_cmds runs LD, not CC, wlarc should be empty
16314 # Set some defaults for GNU ld with shared library support. These
16315 # are reset later if shared libraries are not supported. Putting them
16316 # here allows them to be overridden if necessary.
16317 runpath_var=LD_RUN_PATH
16318 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16319 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16320 # ancient GNU ld didn't support --whole-archive et. al.
16321 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16322 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16324 whole_archive_flag_spec_GCJ=
16326 supports_anon_versioning=no
16327 case `$LD -v 2>/dev/null` in
16328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16331 *\ 2.11.*) ;; # other 2.11 versions
16332 *) supports_anon_versioning=yes ;;
16335 # See if GNU ld supports shared libraries.
16337 aix3* | aix4* | aix5*)
16338 # On AIX/PPC, the GNU linker is very broken
16339 if test "$host_cpu" != ia64; then
16343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16344 *** to be unable to reliably create shared libraries on AIX.
16345 *** Therefore, libtool is disabling shared libraries support. If you
16346 *** really care for shared libraries, you may want to modify your PATH
16347 *** so that a non-GNU linker is found, and then restart.
16354 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)'
16355 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16356 hardcode_minus_L_GCJ=yes
16358 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16359 # that the semantics of dynamic libraries on AmigaOS, at least up
16360 # to version 4, is to share data among multiple programs linked
16361 # with the same dynamic library. Since this doesn't match the
16362 # behavior of shared libraries on other platforms, we can't use
16368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16369 allow_undefined_flag_GCJ=unsupported
16370 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16371 # support --undefined. This deserves some investigation. FIXME
16372 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16378 cygwin* | mingw* | pw32*)
16379 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16380 # as there is no search path for DLLs.
16381 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16382 allow_undefined_flag_GCJ=unsupported
16383 always_export_symbols_GCJ=no
16384 enable_shared_with_static_runtimes_GCJ=yes
16385 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16388 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16389 # If the export-symbols file already is a .def file (1st line
16390 # is EXPORTS), use it as is; otherwise, prepend...
16391 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16392 cp $export_symbols $output_objdir/$soname.def;
16394 echo EXPORTS > $output_objdir/$soname.def;
16395 cat $export_symbols >> $output_objdir/$soname.def;
16397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16404 hardcode_direct_GCJ=no
16405 hardcode_shlibpath_var_GCJ=no
16406 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16407 export_dynamic_flag_spec_GCJ='${wl}-E'
16408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16409 # Instead, shared libraries are loaded at an image base (0x10000000 by
16410 # default) and relocated if they conflict, which is a slow very memory
16411 # consuming and fragmenting process. To avoid this, we pick a random,
16412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16414 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16415 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16421 case $cc_basename,$host_cpu in
16422 pgcc*) # Portland Group C compiler
16423 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16424 tmp_addflag=' $pic_flag'
16426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16427 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16428 tmp_addflag=' $pic_flag -Mnomain' ;;
16429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16430 tmp_addflag=' -i_dynamic' ;;
16431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16432 tmp_addflag=' -i_dynamic -nofor_main' ;;
16433 ifc* | ifort*) # Intel Fortran compiler
16434 tmp_addflag=' -nofor_main' ;;
16436 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16438 if test $supports_anon_versioning = yes; then
16439 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16441 $echo "local: *; };" >> $output_objdir/$libname.ver~
16442 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16444 link_all_deplibs_GCJ=no
16450 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16452 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16456 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16461 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16465 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16466 *** create shared libraries on Solaris systems. Therefore, libtool
16467 *** is disabling shared libraries support. We urge you to upgrade GNU
16468 *** binutils to release 2.9.1 or newer. Another option is to modify
16469 *** your PATH or compiler configuration so that the native linker is
16470 *** used, and then restart.
16473 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16474 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16475 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16482 case `$LD -v 2>&1` in
16483 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16487 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16488 *** reliably create shared libraries on SCO systems. Therefore, libtool
16489 *** is disabling shared libraries support. We urge you to upgrade GNU
16490 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16491 *** your PATH or compiler configuration so that the native linker is
16492 *** used, and then restart.
16497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16498 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16509 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16511 hardcode_direct_GCJ=yes
16512 hardcode_shlibpath_var_GCJ=no
16516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16518 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16525 if test "$ld_shlibs_GCJ" = no; then
16527 hardcode_libdir_flag_spec_GCJ=
16528 export_dynamic_flag_spec_GCJ=
16529 whole_archive_flag_spec_GCJ=
16532 # PORTME fill in a description of your system's linker (not GNU ld)
16535 allow_undefined_flag_GCJ=unsupported
16536 always_export_symbols_GCJ=yes
16537 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'
16538 # Note: this linker hardcodes the directories in LIBPATH if there
16539 # are no directories specified by -L.
16540 hardcode_minus_L_GCJ=yes
16541 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16542 # Neither direct hardcoding nor static linking is supported with a
16544 hardcode_direct_GCJ=unsupported
16549 if test "$host_cpu" = ia64; then
16550 # On IA64, the linker does run time linking by default, so we don't
16551 # have to do anything special.
16552 aix_use_runtimelinking=no
16553 exp_sym_flag='-Bexport'
16556 # If we're using GNU nm, then we don't want the "-C" option.
16557 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16558 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16559 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'
16561 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'
16563 aix_use_runtimelinking=no
16565 # Test if we are trying to use run time linking or normal
16566 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16567 # need to do runtime linking.
16568 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16569 for ld_flag in $LDFLAGS; do
16570 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16571 aix_use_runtimelinking=yes
16578 exp_sym_flag='-bexport'
16579 no_entry_flag='-bnoentry'
16582 # When large executables or shared objects are built, AIX ld can
16583 # have problems creating the table of contents. If linking a library
16584 # or program results in "error TOC overflow" add -mminimal-toc to
16585 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16586 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16588 archive_cmds_GCJ=''
16589 hardcode_direct_GCJ=yes
16590 hardcode_libdir_separator_GCJ=':'
16591 link_all_deplibs_GCJ=yes
16593 if test "$GCC" = yes; then
16594 case $host_os in aix4.[012]|aix4.[012].*)
16595 # We only want to do this on AIX 4.2 and lower, the check
16596 # below for broken collect2 doesn't work under 4.3+
16597 collect2name=`${CC} -print-prog-name=collect2`
16598 if test -f "$collect2name" && \
16599 strings "$collect2name" | grep resolve_lib_name >/dev/null
16601 # We have reworked collect2
16602 hardcode_direct_GCJ=yes
16604 # We have old collect2
16605 hardcode_direct_GCJ=unsupported
16606 # It fails to find uninstalled libraries when the uninstalled
16607 # path is not listed in the libpath. Setting hardcode_minus_L
16608 # to unsupported forces relinking
16609 hardcode_minus_L_GCJ=yes
16610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16611 hardcode_libdir_separator_GCJ=
16615 shared_flag='-shared'
16616 if test "$aix_use_runtimelinking" = yes; then
16617 shared_flag="$shared_flag "'${wl}-G'
16621 if test "$host_cpu" = ia64; then
16622 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16623 # chokes on -Wl,-G. The following line is correct:
16626 if test "$aix_use_runtimelinking" = yes; then
16627 shared_flag='${wl}-G'
16629 shared_flag='${wl}-bM:SRE'
16634 # It seems that -bexpall does not export symbols beginning with
16635 # underscore (_), so it is better to generate a list of symbols to export.
16636 always_export_symbols_GCJ=yes
16637 if test "$aix_use_runtimelinking" = yes; then
16638 # Warning - without using the other runtime loading flags (-brtl),
16639 # -berok will link without error, but may produce a broken library.
16640 allow_undefined_flag_GCJ='-berok'
16641 # Determine the default libpath from the value encoded in an empty executable.
16642 cat >conftest.$ac_ext <<_ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16657 rm -f conftest.$ac_objext conftest$ac_exeext
16658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16659 (eval $ac_link) 2>conftest.er1
16661 grep -v '^ *+' conftest.er1 >conftest.err
16663 cat conftest.err >&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } &&
16666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; } &&
16672 { ac_try='test -s conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16681 # Check for a 64-bit object if we didn't find anything.
16682 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; }
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16689 rm -f conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16693 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16694 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16696 if test "$host_cpu" = ia64; then
16697 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16698 allow_undefined_flag_GCJ="-z nodefs"
16699 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16701 # Determine the default libpath from the value encoded in an empty executable.
16702 cat >conftest.$ac_ext <<_ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16717 rm -f conftest.$ac_objext conftest$ac_exeext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16719 (eval $ac_link) 2>conftest.er1
16721 grep -v '^ *+' conftest.er1 >conftest.err
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest$ac_exeext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16741 # Check for a 64-bit object if we didn't find anything.
16742 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; }
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16749 rm -f conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16753 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16754 # Warning - without using the other run time loading flags,
16755 # -berok will link without error, but may produce a broken library.
16756 no_undefined_flag_GCJ=' ${wl}-bernotok'
16757 allow_undefined_flag_GCJ=' ${wl}-berok'
16758 # Exported symbols can be pulled into shared objects from archives
16759 whole_archive_flag_spec_GCJ='$convenience'
16760 archive_cmds_need_lc_GCJ=yes
16761 # This is similar to how AIX traditionally builds its shared libraries.
16762 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16768 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)'
16769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16770 hardcode_minus_L_GCJ=yes
16771 # see comment about different semantics on the GNU ld section
16776 export_dynamic_flag_spec_GCJ=-rdynamic
16779 cygwin* | mingw* | pw32*)
16780 # When not using gcc, we currently assume that we are using
16781 # Microsoft Visual C++.
16782 # hardcode_libdir_flag_spec is actually meaningless, as there is
16783 # no search path for DLLs.
16784 hardcode_libdir_flag_spec_GCJ=' '
16785 allow_undefined_flag_GCJ=unsupported
16786 # Tell ltmain to make .lib files, not .a files.
16788 # Tell ltmain to make .dll files, not .so files.
16790 # FIXME: Setting linknames here is a bad hack.
16791 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16792 # The linker will automatically build a .lib file if we build a DLL.
16793 old_archive_From_new_cmds_GCJ='true'
16794 # FIXME: Should let the user specify the lib program.
16795 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16796 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16797 enable_shared_with_static_runtimes_GCJ=yes
16800 darwin* | rhapsody*)
16802 rhapsody* | darwin1.[012])
16803 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16806 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16807 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16809 case ${MACOSX_DEPLOYMENT_TARGET} in
16811 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16814 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16820 archive_cmds_need_lc_GCJ=no
16821 hardcode_direct_GCJ=no
16822 hardcode_automatic_GCJ=yes
16823 hardcode_shlibpath_var_GCJ=unsupported
16824 whole_archive_flag_spec_GCJ=''
16825 link_all_deplibs_GCJ=yes
16826 if test "$GCC" = yes ; then
16827 output_verbose_link_cmd='echo'
16828 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16829 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16831 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16832 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}'
16834 case $cc_basename in
16836 output_verbose_link_cmd='echo'
16837 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16838 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16839 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16840 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16841 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}'
16851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16853 hardcode_shlibpath_var_GCJ=no
16860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16861 # support. Future versions do this automatically, but an explicit c++rt0.o
16862 # does not break anything, and helps significantly (at the cost of a little
16865 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16866 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16867 hardcode_direct_GCJ=yes
16868 hardcode_shlibpath_var_GCJ=no
16871 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874 hardcode_direct_GCJ=yes
16875 hardcode_minus_L_GCJ=yes
16876 hardcode_shlibpath_var_GCJ=no
16879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16880 freebsd* | dragonfly*)
16881 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16882 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16883 hardcode_direct_GCJ=yes
16884 hardcode_shlibpath_var_GCJ=no
16887 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16889 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16890 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16891 hardcode_direct_GCJ=yes
16892 hardcode_shlibpath_var_GCJ=no
16893 link_all_deplibs_GCJ=no
16897 if test "$GCC" = yes; then
16898 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'
16900 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'
16902 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16903 hardcode_libdir_separator_GCJ=:
16904 hardcode_direct_GCJ=yes
16906 # hardcode_minus_L: Not really in the search PATH,
16907 # but as the default location of the library.
16908 hardcode_minus_L_GCJ=yes
16909 export_dynamic_flag_spec_GCJ='${wl}-E'
16913 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16914 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16916 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16918 if test "$with_gnu_ld" = no; then
16919 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16920 hardcode_libdir_separator_GCJ=:
16922 hardcode_direct_GCJ=yes
16923 export_dynamic_flag_spec_GCJ='${wl}-E'
16925 # hardcode_minus_L: Not really in the search PATH,
16926 # but as the default location of the library.
16927 hardcode_minus_L_GCJ=yes
16932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16935 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16941 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16947 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16950 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16953 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16957 if test "$with_gnu_ld" = no; then
16958 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16959 hardcode_libdir_separator_GCJ=:
16963 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16964 hardcode_direct_GCJ=no
16965 hardcode_shlibpath_var_GCJ=no
16968 hardcode_direct_GCJ=yes
16969 export_dynamic_flag_spec_GCJ='${wl}-E'
16971 # hardcode_minus_L: Not really in the search PATH,
16972 # but as the default location of the library.
16973 hardcode_minus_L_GCJ=yes
16979 irix5* | irix6* | nonstopux*)
16980 if test "$GCC" = yes; then
16981 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'
16983 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'
16984 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16986 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16987 hardcode_libdir_separator_GCJ=:
16988 link_all_deplibs_GCJ=yes
16991 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16993 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16995 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16998 hardcode_direct_GCJ=yes
16999 hardcode_shlibpath_var_GCJ=no
17003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17004 hardcode_direct_GCJ=yes
17005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17006 hardcode_libdir_separator_GCJ=:
17007 hardcode_shlibpath_var_GCJ=no
17011 hardcode_direct_GCJ=yes
17012 hardcode_shlibpath_var_GCJ=no
17013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17014 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17015 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17017 export_dynamic_flag_spec_GCJ='${wl}-E'
17020 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17021 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17022 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17025 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17026 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17033 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17034 hardcode_minus_L_GCJ=yes
17035 allow_undefined_flag_GCJ=unsupported
17036 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'
17037 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17041 if test "$GCC" = yes; then
17042 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17043 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'
17045 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17046 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'
17048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17049 hardcode_libdir_separator_GCJ=:
17052 osf4* | osf5*) # as osf3* with the addition of -msym flag
17053 if test "$GCC" = yes; then
17054 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17055 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'
17056 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17058 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17059 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'
17060 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~
17061 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17063 # Both c and cxx compiler support -rpath directly
17064 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17066 hardcode_libdir_separator_GCJ=:
17070 no_undefined_flag_GCJ=' -z text'
17071 if test "$GCC" = yes; then
17073 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17075 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17078 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17079 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17082 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17083 hardcode_shlibpath_var_GCJ=no
17085 solaris2.[0-5] | solaris2.[0-5].*) ;;
17087 # The compiler driver will combine linker options so we
17088 # cannot just pass the convience library names through
17089 # without $wl, iff we do not link with $LD.
17090 # Luckily, gcc supports the same syntax we need for Sun Studio.
17091 # Supported since Solaris 2.6 (maybe 2.5.1?)
17094 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17096 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17099 link_all_deplibs_GCJ=yes
17103 if test "x$host_vendor" = xsequent; then
17104 # Use $CC to link under sequent, because it throws in some extra .o
17105 # files that make .init and .fini sections work.
17106 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17108 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17110 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17111 hardcode_direct_GCJ=yes
17112 hardcode_minus_L_GCJ=yes
17113 hardcode_shlibpath_var_GCJ=no
17117 case $host_vendor in
17119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17120 hardcode_direct_GCJ=yes # is this really true???
17123 ## LD is ld it makes a PLAMLIB
17124 ## CC just makes a GrossModule.
17125 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17126 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17127 hardcode_direct_GCJ=no
17130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17131 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17134 runpath_var='LD_RUN_PATH'
17135 hardcode_shlibpath_var_GCJ=no
17139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17140 hardcode_shlibpath_var_GCJ=no
17141 export_dynamic_flag_spec_GCJ='-Bexport'
17145 if test -d /usr/nec; then
17146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17147 hardcode_shlibpath_var_GCJ=no
17148 runpath_var=LD_RUN_PATH
17149 hardcode_runpath_var=yes
17154 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17155 no_undefined_flag_GCJ='${wl}-z,text'
17156 archive_cmds_need_lc_GCJ=no
17157 hardcode_shlibpath_var_GCJ=no
17158 runpath_var='LD_RUN_PATH'
17160 if test "$GCC" = yes; then
17161 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17162 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17164 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17165 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17169 sysv5* | sco3.2v5* | sco5v6*)
17170 # Note: We can NOT use -z defs as we might desire, because we do not
17171 # link with -lc, and that would cause any symbols used from libc to
17172 # always be unresolved, which means just about no library would
17173 # ever link correctly. If we're not using GNU ld we use -z text
17174 # though, which does catch some bad symbols but isn't as heavy-handed
17176 no_undefined_flag_GCJ='${wl}-z,text'
17177 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17178 archive_cmds_need_lc_GCJ=no
17179 hardcode_shlibpath_var_GCJ=no
17180 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17181 hardcode_libdir_separator_GCJ=':'
17182 link_all_deplibs_GCJ=yes
17183 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17184 runpath_var='LD_RUN_PATH'
17186 if test "$GCC" = yes; then
17187 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17188 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17190 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17191 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198 hardcode_shlibpath_var_GCJ=no
17207 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17208 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17209 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17212 # Do we need to explicitly link libc?
17214 case "x$archive_cmds_need_lc_GCJ" in
17216 # Assume -lc should be added
17217 archive_cmds_need_lc_GCJ=yes
17219 if test "$enable_shared" = yes && test "$GCC" = yes; then
17220 case $archive_cmds_GCJ in
17222 # FIXME: we may have to deal with multi-command sequences.
17225 # Test whether the compiler implicitly links with -lc since on some
17226 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17227 # to ld, don't add -lc before -lgcc.
17228 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17229 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17234 (eval $ac_compile) 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } 2>conftest.err; then
17240 libobjs=conftest.$ac_objext
17242 wl=$lt_prog_compiler_wl_GCJ
17243 pic_flag=$lt_prog_compiler_pic_GCJ
17249 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17250 allow_undefined_flag_GCJ=
17251 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17252 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }
17257 archive_cmds_need_lc_GCJ=no
17259 archive_cmds_need_lc_GCJ=yes
17261 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17263 cat conftest.err 1>&5
17266 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17267 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17274 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17275 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17276 library_names_spec=
17277 libname_spec='lib$name'
17281 postuninstall_cmds=
17285 shlibpath_overrides_runpath=unknown
17287 dynamic_linker="$host_os ld.so"
17288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17289 if test "$GCC" = yes; then
17290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17291 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17292 # if the path contains ";" then we assume it to be the separator
17293 # otherwise default to the standard path separator (i.e. ":") - it is
17294 # assumed that no part of a normal pathname contains ";" but that should
17295 # okay in the real world where ";" in dirpaths is itself problematic.
17296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17301 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17303 need_lib_prefix=unknown
17304 hardcode_into_libs=no
17306 # when you set need_version to no, make sure it does not cause -set_version
17307 # flags to be left without arguments
17308 need_version=unknown
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17314 shlibpath_var=LIBPATH
17316 # AIX 3 has no versioning support, so we append a major version to the name.
17317 soname_spec='${libname}${release}${shared_ext}$major'
17324 hardcode_into_libs=yes
17325 if test "$host_cpu" = ia64; then
17326 # AIX 5 supports IA64
17327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17328 shlibpath_var=LD_LIBRARY_PATH
17330 # With GCC up to 2.95.x, collect2 would create an import file
17331 # for dependence libraries. The import file would start with
17332 # the line `#! .'. This would cause the generated library to
17333 # depend on `.', always an invalid library. This was fixed in
17334 # development snapshots of GCC prior to 3.0.
17336 aix4 | aix4.[01] | aix4.[01].*)
17337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17339 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17342 can_build_shared=no
17346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17347 # soname into executable. Probably we can add versioning support to
17348 # collect2, so additional links can be useful in future.
17349 if test "$aix_use_runtimelinking" = yes; then
17350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17351 # instead of lib<name>.a to let people know that these are not
17352 # typical AIX shared libraries.
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 # We preserve .a as extension for shared libraries through AIX4.2
17356 # and later when we are not doing run time linking.
17357 library_names_spec='${libname}${release}.a $libname.a'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17360 shlibpath_var=LIBPATH
17365 library_names_spec='$libname.ixlibrary $libname.a'
17366 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17367 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'
17371 library_names_spec='${libname}${shared_ext}'
17372 dynamic_linker="$host_os ld.so"
17373 shlibpath_var=LIBRARY_PATH
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17385 # the default ld.so.conf also contains /usr/contrib/lib and
17386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17387 # libtool to hard-code these into programs
17390 cygwin* | mingw* | pw32*)
17391 version_type=windows
17396 case $GCC,$host_os in
17397 yes,cygwin* | yes,mingw* | yes,pw32*)
17398 library_names_spec='$libname.dll.a'
17399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17400 postinstall_cmds='base_file=`basename \${file}`~
17401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17402 dldir=$destdir/`dirname \$dlpath`~
17403 test -d \$dldir || mkdir -p \$dldir~
17404 $install_prog $dir/$dlname \$dldir/$dlname~
17405 chmod a+x \$dldir/$dlname'
17406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17407 dlpath=$dir/\$dldll~
17409 shlibpath_overrides_runpath=yes
17413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17414 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17415 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17418 # MinGW DLLs use traditional 'lib' prefix
17419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17421 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17422 # It is most probably a Windows format PATH printed by
17423 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17424 # path with ; separators, and with drive letters. We can handle the
17425 # drive letters (cygwin fileutils understands them), so leave them,
17426 # especially as we might pass files found there to a mingw objdump,
17427 # which wouldn't understand a cygwinified path. Ahh.
17428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17434 # pw32 DLLs use 'pw' prefix rather than 'lib'
17435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17444 dynamic_linker='Win32 ld.exe'
17445 # FIXME: first we should search . and the directory the executable is in
17449 darwin* | rhapsody*)
17450 dynamic_linker="$host_os dyld"
17451 version_type=darwin
17454 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17455 soname_spec='${libname}${release}${major}$shared_ext'
17456 shlibpath_overrides_runpath=yes
17457 shlibpath_var=DYLD_LIBRARY_PATH
17458 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17459 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17460 if test "$GCC" = yes; then
17461 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"`
17463 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17465 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 shlibpath_var=LD_LIBRARY_PATH
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17486 soname_spec='${libname}${release}${shared_ext}$major'
17487 shlibpath_var=LD_LIBRARY_PATH
17488 shlibpath_overrides_runpath=no
17489 hardcode_into_libs=yes
17490 dynamic_linker='GNU ld.so'
17493 freebsd* | dragonfly*)
17494 # DragonFly does not have aout. When/if they implement a new
17495 # versioning mechanism, adjust this.
17496 if test -x /usr/bin/objformat; then
17497 objformat=`/usr/bin/objformat`
17500 freebsd[123]*) objformat=aout ;;
17501 *) objformat=elf ;;
17504 version_type=freebsd-$objformat
17505 case $version_type in
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17516 shlibpath_var=LD_LIBRARY_PATH
17519 shlibpath_overrides_runpath=yes
17521 freebsd3.[01]* | freebsdelf3.[01]*)
17522 shlibpath_overrides_runpath=yes
17523 hardcode_into_libs=yes
17525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17527 shlibpath_overrides_runpath=no
17528 hardcode_into_libs=yes
17530 freebsd*) # from 4.6 on
17531 shlibpath_overrides_runpath=yes
17532 hardcode_into_libs=yes
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 hardcode_into_libs=yes
17547 hpux9* | hpux10* | hpux11*)
17548 # Give a soname corresponding to the major version so that dld.sl refuses to
17549 # link against other versions.
17556 hardcode_into_libs=yes
17557 dynamic_linker="$host_os dld.so"
17558 shlibpath_var=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 if test "X$HPUX_IA64_MODE" = X32; then
17563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17571 hardcode_into_libs=yes
17572 dynamic_linker="$host_os dld.sl"
17573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17582 dynamic_linker="$host_os dld.sl"
17583 shlibpath_var=SHLIB_PATH
17584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17589 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17590 postinstall_cmds='chmod 555 $lib'
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17598 soname_spec='${libname}${release}${shared_ext}$major'
17599 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17600 shlibpath_var=LD_LIBRARY_PATH
17601 shlibpath_overrides_runpath=no
17602 hardcode_into_libs=yes
17605 irix5* | irix6* | nonstopux*)
17607 nonstopux*) version_type=nonstopux ;;
17609 if test "$lt_cv_prog_gnu_ld" = yes; then
17617 soname_spec='${libname}${release}${shared_ext}$major'
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17620 irix5* | nonstopux*)
17621 libsuff= shlibsuff=
17624 case $LD in # libtool.m4 will add one of these switches to LD
17625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17626 libsuff= shlibsuff= libmagic=32-bit;;
17627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17628 libsuff=32 shlibsuff=N32 libmagic=N32;;
17629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17631 *) libsuff= shlibsuff= libmagic=never-match;;
17635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17636 shlibpath_overrides_runpath=no
17637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17639 hardcode_into_libs=yes
17642 # No shared lib support for Linux oldld, aout, or coff.
17643 linux*oldld* | linux*aout* | linux*coff*)
17647 # This must be Linux ELF.
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17655 shlibpath_var=LD_LIBRARY_PATH
17656 shlibpath_overrides_runpath=no
17657 # This implies no fast_install, which is unacceptable.
17658 # Some rework will be needed to allow for fast_install
17659 # before this can be enabled.
17660 hardcode_into_libs=yes
17662 # Append ld.so.conf contents to the search path
17663 if test -f /etc/ld.so.conf; then
17664 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17665 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17668 # We used to test for /lib/ld.so.1 and disable shared libraries on
17669 # powerpc, because MkLinux only supported shared libraries with the
17670 # GNU dynamic linker. Since this was broken with cross compilers,
17671 # most powerpc-linux boxes support dynamic linking these days and
17672 # people can always --disable-shared, the test was removed, and we
17673 # assume the GNU/Linux dynamic linker is in use.
17674 dynamic_linker='GNU/Linux ld.so'
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17682 soname_spec='${libname}${release}${shared_ext}$major'
17683 shlibpath_var=LD_LIBRARY_PATH
17684 shlibpath_overrides_runpath=no
17685 hardcode_into_libs=yes
17686 dynamic_linker='NetBSD ld.elf_so'
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694 soname_spec='${libname}${release}${shared_ext}$major'
17695 shlibpath_var=LD_LIBRARY_PATH
17696 shlibpath_overrides_runpath=no
17697 hardcode_into_libs=yes
17698 dynamic_linker='GNU ld.so'
17705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17708 dynamic_linker='NetBSD (a.out) ld.so'
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 dynamic_linker='NetBSD ld.elf_so'
17714 shlibpath_var=LD_LIBRARY_PATH
17715 shlibpath_overrides_runpath=yes
17716 hardcode_into_libs=yes
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722 shlibpath_var=LD_LIBRARY_PATH
17723 shlibpath_overrides_runpath=yes
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 soname_spec='${libname}${release}${shared_ext}$major'
17732 shlibpath_var=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath=yes
17738 sys_lib_dlsearch_path_spec="/usr/lib"
17740 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17742 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17743 *) need_version=no ;;
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17750 openbsd2.[89] | openbsd2.[89].*)
17751 shlibpath_overrides_runpath=no
17754 shlibpath_overrides_runpath=yes
17758 shlibpath_overrides_runpath=yes
17763 libname_spec='$name'
17766 library_names_spec='$libname${shared_ext} $libname.a'
17767 dynamic_linker='OS/2 ld.exe'
17768 shlibpath_var=LIBPATH
17771 osf3* | osf4* | osf5*)
17775 soname_spec='${libname}${release}${shared_ext}$major'
17776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17777 shlibpath_var=LD_LIBRARY_PATH
17778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17779 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 shlibpath_var=LD_LIBRARY_PATH
17789 shlibpath_overrides_runpath=yes
17790 hardcode_into_libs=yes
17791 # ldd complains unless libraries are executable
17792 postinstall_cmds='chmod +x $lib'
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17798 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17799 shlibpath_var=LD_LIBRARY_PATH
17800 shlibpath_overrides_runpath=yes
17801 if test "$with_gnu_ld" = yes; then
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810 soname_spec='${libname}${release}${shared_ext}$major'
17811 shlibpath_var=LD_LIBRARY_PATH
17812 case $host_vendor in
17814 shlibpath_overrides_runpath=no
17816 export_dynamic_flag_spec='${wl}-Blargedynsym'
17817 runpath_var=LD_RUN_PATH
17825 shlibpath_overrides_runpath=no
17826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17832 if test -d /usr/nec ;then
17834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17835 soname_spec='$libname${shared_ext}.$major'
17836 shlibpath_var=LD_LIBRARY_PATH
17840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17841 version_type=freebsd-elf
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17845 soname_spec='${libname}${release}${shared_ext}$major'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 hardcode_into_libs=yes
17848 if test "$with_gnu_ld" = yes; then
17849 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17850 shlibpath_overrides_runpath=no
17852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17853 shlibpath_overrides_runpath=yes
17856 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17860 sys_lib_dlsearch_path_spec='/usr/lib'
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17874 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17875 echo "${ECHO_T}$dynamic_linker" >&6
17876 test "$dynamic_linker" = no && can_build_shared=no
17878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17879 if test "$GCC" = yes; then
17880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17885 hardcode_action_GCJ=
17886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17887 test -n "$runpath_var_GCJ" || \
17888 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17890 # We can hardcode non-existant directories.
17891 if test "$hardcode_direct_GCJ" != no &&
17892 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17893 # have to relink, otherwise we might link with an installed library
17894 # when we should be linking with a yet-to-be-installed one
17895 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17896 test "$hardcode_minus_L_GCJ" != no; then
17897 # Linking always hardcodes the temporary library directory.
17898 hardcode_action_GCJ=relink
17900 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17901 hardcode_action_GCJ=immediate
17904 # We cannot hardcode anything, or else we can only hardcode existing
17906 hardcode_action_GCJ=unsupported
17908 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17909 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17911 if test "$hardcode_action_GCJ" = relink; then
17912 # Fast installation is not supported
17913 enable_fast_install=no
17914 elif test "$shlibpath_overrides_runpath" = yes ||
17915 test "$enable_shared" = no; then
17916 # Fast installation is not necessary
17917 enable_fast_install=needless
17921 # The else clause should only fire when bootstrapping the
17922 # libtool distribution, otherwise you forgot to ship ltmain.sh
17923 # with your package, and you will get complaints that there are
17924 # no rules to generate ltmain.sh.
17925 if test -f "$ltmain"; then
17926 # See if we are running on zsh, and set the options which allow our commands through
17927 # without removal of \ escapes.
17928 if test -n "${ZSH_VERSION+set}" ; then
17929 setopt NO_GLOB_SUBST
17931 # Now quote all the things that may contain metacharacters while being
17932 # careful not to overquote the AC_SUBSTed values. We take copies of the
17933 # variables and quote the copies for generation of the libtool script.
17934 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17936 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17937 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17938 deplibs_check_method reload_flag reload_cmds need_locks \
17939 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17940 lt_cv_sys_global_symbol_to_c_name_address \
17941 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17942 old_postinstall_cmds old_postuninstall_cmds \
17946 lt_prog_compiler_wl_GCJ \
17947 lt_prog_compiler_pic_GCJ \
17948 lt_prog_compiler_static_GCJ \
17949 lt_prog_compiler_no_builtin_flag_GCJ \
17950 export_dynamic_flag_spec_GCJ \
17951 thread_safe_flag_spec_GCJ \
17952 whole_archive_flag_spec_GCJ \
17953 enable_shared_with_static_runtimes_GCJ \
17954 old_archive_cmds_GCJ \
17955 old_archive_from_new_cmds_GCJ \
17956 predep_objects_GCJ \
17957 postdep_objects_GCJ \
17960 compiler_lib_search_path_GCJ \
17962 archive_expsym_cmds_GCJ \
17963 postinstall_cmds_GCJ \
17964 postuninstall_cmds_GCJ \
17965 old_archive_from_expsyms_cmds_GCJ \
17966 allow_undefined_flag_GCJ \
17967 no_undefined_flag_GCJ \
17968 export_symbols_cmds_GCJ \
17969 hardcode_libdir_flag_spec_GCJ \
17970 hardcode_libdir_flag_spec_ld_GCJ \
17971 hardcode_libdir_separator_GCJ \
17972 hardcode_automatic_GCJ \
17974 module_expsym_cmds_GCJ \
17975 lt_cv_prog_compiler_c_o_GCJ \
17976 exclude_expsyms_GCJ \
17977 include_expsyms_GCJ; do
17980 old_archive_cmds_GCJ | \
17981 old_archive_from_new_cmds_GCJ | \
17982 archive_cmds_GCJ | \
17983 archive_expsym_cmds_GCJ | \
17984 module_cmds_GCJ | \
17985 module_expsym_cmds_GCJ | \
17986 old_archive_from_expsyms_cmds_GCJ | \
17987 export_symbols_cmds_GCJ | \
17988 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17989 postinstall_cmds | postuninstall_cmds | \
17990 old_postinstall_cmds | old_postuninstall_cmds | \
17991 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17992 # Double-quote double-evaled strings.
17993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18002 *'\$0 --fallback-echo"')
18003 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18009 cat <<__EOF__ >> "$cfgfile"
18010 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18014 # Shell to use when invoking shell scripts.
18017 # Whether or not to build shared libraries.
18018 build_libtool_libs=$enable_shared
18020 # Whether or not to build static libraries.
18021 build_old_libs=$enable_static
18023 # Whether or not to add -lc for building shared libraries.
18024 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18026 # Whether or not to disallow shared libs when runtime libs are static
18027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18029 # Whether or not to optimize for fast installation.
18030 fast_install=$enable_fast_install
18033 host_alias=$host_alias
18037 # The build system.
18038 build_alias=$build_alias
18042 # An echo program that does not interpret backslashes.
18047 AR_FLAGS=$lt_AR_FLAGS
18052 # LTCC compiler flags.
18053 LTCFLAGS=$lt_LTCFLAGS
18055 # A language-specific compiler.
18056 CC=$lt_compiler_GCJ
18058 # Is the compiler the GNU C compiler?
18064 # The linker used to build libraries.
18067 # Whether we need hard or soft links.
18070 # A BSD-compatible nm program.
18073 # A symbol stripping program
18076 # Used to examine libraries when file_magic_cmd begins "file"
18077 MAGIC_CMD=$MAGIC_CMD
18079 # Used on cygwin: DLL creation program.
18082 # Used on cygwin: object dumper.
18085 # Used on cygwin: assembler.
18088 # The name of the directory that contains temporary libtool files.
18091 # How to create reloadable object files.
18092 reload_flag=$lt_reload_flag
18093 reload_cmds=$lt_reload_cmds
18095 # How to pass a linker flag through the compiler.
18096 wl=$lt_lt_prog_compiler_wl_GCJ
18098 # Object file suffix (normally "o").
18099 objext="$ac_objext"
18101 # Old archive suffix (normally "a").
18104 # Shared library suffix (normally ".so").
18105 shrext_cmds='$shrext_cmds'
18107 # Executable file suffix (normally "").
18110 # Additional compiler flags for building library objects.
18111 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18114 # What is the maximum length of a command?
18115 max_cmd_len=$lt_cv_sys_max_cmd_len
18117 # Does compiler simultaneously support -c and -o options?
18118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18120 # Must we lock files when doing compilation?
18121 need_locks=$lt_need_locks
18123 # Do we need the lib prefix for modules?
18124 need_lib_prefix=$need_lib_prefix
18126 # Do we need a version for libraries?
18127 need_version=$need_version
18129 # Whether dlopen is supported.
18130 dlopen_support=$enable_dlopen
18132 # Whether dlopen of programs is supported.
18133 dlopen_self=$enable_dlopen_self
18135 # Whether dlopen of statically linked programs is supported.
18136 dlopen_self_static=$enable_dlopen_self_static
18138 # Compiler flag to prevent dynamic linking.
18139 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18141 # Compiler flag to turn off builtin functions.
18142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18144 # Compiler flag to allow reflexive dlopens.
18145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18147 # Compiler flag to generate shared objects directly from archives.
18148 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18150 # Compiler flag to generate thread-safe objects.
18151 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18153 # Library versioning type.
18154 version_type=$version_type
18156 # Format of library name prefix.
18157 libname_spec=$lt_libname_spec
18159 # List of archive names. First name is the real one, the rest are links.
18160 # The last name is the one that the linker finds with -lNAME.
18161 library_names_spec=$lt_library_names_spec
18163 # The coded name of the library, if different from the real name.
18164 soname_spec=$lt_soname_spec
18166 # Commands used to build and install an old-style archive.
18168 old_archive_cmds=$lt_old_archive_cmds_GCJ
18169 old_postinstall_cmds=$lt_old_postinstall_cmds
18170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18172 # Create an old-style archive from a shared archive.
18173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18175 # Create a temporary old-style archive to link instead of a shared archive.
18176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18178 # Commands used to build and install a shared archive.
18179 archive_cmds=$lt_archive_cmds_GCJ
18180 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18181 postinstall_cmds=$lt_postinstall_cmds
18182 postuninstall_cmds=$lt_postuninstall_cmds
18184 # Commands used to build a loadable module (assumed same as above if empty)
18185 module_cmds=$lt_module_cmds_GCJ
18186 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18188 # Commands to strip libraries.
18189 old_striplib=$lt_old_striplib
18190 striplib=$lt_striplib
18192 # Dependencies to place before the objects being linked to create a
18194 predep_objects=$lt_predep_objects_GCJ
18196 # Dependencies to place after the objects being linked to create a
18198 postdep_objects=$lt_postdep_objects_GCJ
18200 # Dependencies to place before the objects being linked to create a
18202 predeps=$lt_predeps_GCJ
18204 # Dependencies to place after the objects being linked to create a
18206 postdeps=$lt_postdeps_GCJ
18208 # The library search path used internally by the compiler when linking
18209 # a shared library.
18210 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18212 # Method to check whether dependent libraries are shared objects.
18213 deplibs_check_method=$lt_deplibs_check_method
18215 # Command to use when deplibs_check_method == file_magic.
18216 file_magic_cmd=$lt_file_magic_cmd
18218 # Flag that allows shared libraries with undefined symbols to be built.
18219 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18221 # Flag that forces no undefined symbols.
18222 no_undefined_flag=$lt_no_undefined_flag_GCJ
18224 # Commands used to finish a libtool library installation in a directory.
18225 finish_cmds=$lt_finish_cmds
18227 # Same as above, but a single script fragment to be evaled but not shown.
18228 finish_eval=$lt_finish_eval
18230 # Take the output of nm and produce a listing of raw symbols and C names.
18231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18233 # Transform the output of nm in a proper C declaration
18234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18236 # Transform the output of nm in a C name address pair
18237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18239 # This is the shared library runtime path variable.
18240 runpath_var=$runpath_var
18242 # This is the shared library path variable.
18243 shlibpath_var=$shlibpath_var
18245 # Is shlibpath searched before the hard-coded library search path?
18246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18248 # How to hardcode a shared library path into an executable.
18249 hardcode_action=$hardcode_action_GCJ
18251 # Whether we should hardcode library paths into libraries.
18252 hardcode_into_libs=$hardcode_into_libs
18254 # Flag to hardcode \$libdir into a binary during linking.
18255 # This must work even if \$libdir does not exist.
18256 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18258 # If ld is used when linking, flag to hardcode \$libdir into
18259 # a binary during linking. This must work even if \$libdir does
18261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18263 # Whether we need a single -rpath flag with a separated argument.
18264 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18266 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18267 # resulting binary.
18268 hardcode_direct=$hardcode_direct_GCJ
18270 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18271 # resulting binary.
18272 hardcode_minus_L=$hardcode_minus_L_GCJ
18274 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18275 # the resulting binary.
18276 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18278 # Set to yes if building a shared library automatically hardcodes DIR into the library
18279 # and all subsequent libraries and executables linked against it.
18280 hardcode_automatic=$hardcode_automatic_GCJ
18282 # Variables whose values should be saved in libtool wrapper scripts and
18283 # restored at relink time.
18284 variables_saved_for_relink="$variables_saved_for_relink"
18286 # Whether libtool must link a program against all its dependency libraries.
18287 link_all_deplibs=$link_all_deplibs_GCJ
18289 # Compile-time system search path for libraries
18290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18292 # Run-time system search path for libraries
18293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18295 # Fix the shell variable \$srcfile for the compiler.
18296 fix_srcfile_path="$fix_srcfile_path_GCJ"
18298 # Set to yes if exported symbols are required.
18299 always_export_symbols=$always_export_symbols_GCJ
18301 # The commands to list exported symbols.
18302 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18304 # The commands to extract the exported symbol list from a shared archive.
18305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18307 # Symbols that should not be listed in the preloaded symbols.
18308 exclude_expsyms=$lt_exclude_expsyms_GCJ
18310 # Symbols that must always be exported.
18311 include_expsyms=$lt_include_expsyms_GCJ
18313 # ### END LIBTOOL TAG CONFIG: $tagname
18319 # If there is no Makefile yet, we rely on a make rule to execute
18320 # `config.status --recheck' to rerun these tests and create the
18321 # libtool script then.
18322 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18323 if test -f "$ltmain_in"; then
18324 test -f Makefile && make "$ltmain"
18330 ac_cpp='$CPP $CPPFLAGS'
18331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18346 # Source file extension for RC test sources.
18349 # Object file extension for compiled RC test sources.
18353 # Code to be used in simple compile tests
18354 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18356 # Code to be used in simple link tests
18357 lt_simple_link_test_code="$lt_simple_compile_test_code"
18359 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18361 # If no C compiler was specified, use CC.
18364 # If no C compiler flags were specified, use CFLAGS.
18365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18367 # Allow CC to be a program name with arguments.
18371 # save warnings/boilerplate of simple test code
18372 ac_outfile=conftest.$ac_objext
18373 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18375 _lt_compiler_boilerplate=`cat conftest.err`
18378 ac_outfile=conftest.$ac_objext
18379 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18381 _lt_linker_boilerplate=`cat conftest.err`
18385 # Allow CC to be a program name with arguments.
18390 for cc_temp in $compiler""; do
18392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18400 lt_cv_prog_compiler_c_o_RC=yes
18402 # The else clause should only fire when bootstrapping the
18403 # libtool distribution, otherwise you forgot to ship ltmain.sh
18404 # with your package, and you will get complaints that there are
18405 # no rules to generate ltmain.sh.
18406 if test -f "$ltmain"; then
18407 # See if we are running on zsh, and set the options which allow our commands through
18408 # without removal of \ escapes.
18409 if test -n "${ZSH_VERSION+set}" ; then
18410 setopt NO_GLOB_SUBST
18412 # Now quote all the things that may contain metacharacters while being
18413 # careful not to overquote the AC_SUBSTed values. We take copies of the
18414 # variables and quote the copies for generation of the libtool script.
18415 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18417 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18418 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18419 deplibs_check_method reload_flag reload_cmds need_locks \
18420 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18421 lt_cv_sys_global_symbol_to_c_name_address \
18422 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18423 old_postinstall_cmds old_postuninstall_cmds \
18427 lt_prog_compiler_wl_RC \
18428 lt_prog_compiler_pic_RC \
18429 lt_prog_compiler_static_RC \
18430 lt_prog_compiler_no_builtin_flag_RC \
18431 export_dynamic_flag_spec_RC \
18432 thread_safe_flag_spec_RC \
18433 whole_archive_flag_spec_RC \
18434 enable_shared_with_static_runtimes_RC \
18435 old_archive_cmds_RC \
18436 old_archive_from_new_cmds_RC \
18437 predep_objects_RC \
18438 postdep_objects_RC \
18441 compiler_lib_search_path_RC \
18443 archive_expsym_cmds_RC \
18444 postinstall_cmds_RC \
18445 postuninstall_cmds_RC \
18446 old_archive_from_expsyms_cmds_RC \
18447 allow_undefined_flag_RC \
18448 no_undefined_flag_RC \
18449 export_symbols_cmds_RC \
18450 hardcode_libdir_flag_spec_RC \
18451 hardcode_libdir_flag_spec_ld_RC \
18452 hardcode_libdir_separator_RC \
18453 hardcode_automatic_RC \
18455 module_expsym_cmds_RC \
18456 lt_cv_prog_compiler_c_o_RC \
18457 exclude_expsyms_RC \
18458 include_expsyms_RC; do
18461 old_archive_cmds_RC | \
18462 old_archive_from_new_cmds_RC | \
18463 archive_cmds_RC | \
18464 archive_expsym_cmds_RC | \
18466 module_expsym_cmds_RC | \
18467 old_archive_from_expsyms_cmds_RC | \
18468 export_symbols_cmds_RC | \
18469 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18470 postinstall_cmds | postuninstall_cmds | \
18471 old_postinstall_cmds | old_postuninstall_cmds | \
18472 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18473 # Double-quote double-evaled strings.
18474 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18483 *'\$0 --fallback-echo"')
18484 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18490 cat <<__EOF__ >> "$cfgfile"
18491 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18495 # Shell to use when invoking shell scripts.
18498 # Whether or not to build shared libraries.
18499 build_libtool_libs=$enable_shared
18501 # Whether or not to build static libraries.
18502 build_old_libs=$enable_static
18504 # Whether or not to add -lc for building shared libraries.
18505 build_libtool_need_lc=$archive_cmds_need_lc_RC
18507 # Whether or not to disallow shared libs when runtime libs are static
18508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18510 # Whether or not to optimize for fast installation.
18511 fast_install=$enable_fast_install
18514 host_alias=$host_alias
18518 # The build system.
18519 build_alias=$build_alias
18523 # An echo program that does not interpret backslashes.
18528 AR_FLAGS=$lt_AR_FLAGS
18533 # LTCC compiler flags.
18534 LTCFLAGS=$lt_LTCFLAGS
18536 # A language-specific compiler.
18539 # Is the compiler the GNU C compiler?
18545 # The linker used to build libraries.
18548 # Whether we need hard or soft links.
18551 # A BSD-compatible nm program.
18554 # A symbol stripping program
18557 # Used to examine libraries when file_magic_cmd begins "file"
18558 MAGIC_CMD=$MAGIC_CMD
18560 # Used on cygwin: DLL creation program.
18563 # Used on cygwin: object dumper.
18566 # Used on cygwin: assembler.
18569 # The name of the directory that contains temporary libtool files.
18572 # How to create reloadable object files.
18573 reload_flag=$lt_reload_flag
18574 reload_cmds=$lt_reload_cmds
18576 # How to pass a linker flag through the compiler.
18577 wl=$lt_lt_prog_compiler_wl_RC
18579 # Object file suffix (normally "o").
18580 objext="$ac_objext"
18582 # Old archive suffix (normally "a").
18585 # Shared library suffix (normally ".so").
18586 shrext_cmds='$shrext_cmds'
18588 # Executable file suffix (normally "").
18591 # Additional compiler flags for building library objects.
18592 pic_flag=$lt_lt_prog_compiler_pic_RC
18595 # What is the maximum length of a command?
18596 max_cmd_len=$lt_cv_sys_max_cmd_len
18598 # Does compiler simultaneously support -c and -o options?
18599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18601 # Must we lock files when doing compilation?
18602 need_locks=$lt_need_locks
18604 # Do we need the lib prefix for modules?
18605 need_lib_prefix=$need_lib_prefix
18607 # Do we need a version for libraries?
18608 need_version=$need_version
18610 # Whether dlopen is supported.
18611 dlopen_support=$enable_dlopen
18613 # Whether dlopen of programs is supported.
18614 dlopen_self=$enable_dlopen_self
18616 # Whether dlopen of statically linked programs is supported.
18617 dlopen_self_static=$enable_dlopen_self_static
18619 # Compiler flag to prevent dynamic linking.
18620 link_static_flag=$lt_lt_prog_compiler_static_RC
18622 # Compiler flag to turn off builtin functions.
18623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18625 # Compiler flag to allow reflexive dlopens.
18626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18628 # Compiler flag to generate shared objects directly from archives.
18629 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18631 # Compiler flag to generate thread-safe objects.
18632 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18634 # Library versioning type.
18635 version_type=$version_type
18637 # Format of library name prefix.
18638 libname_spec=$lt_libname_spec
18640 # List of archive names. First name is the real one, the rest are links.
18641 # The last name is the one that the linker finds with -lNAME.
18642 library_names_spec=$lt_library_names_spec
18644 # The coded name of the library, if different from the real name.
18645 soname_spec=$lt_soname_spec
18647 # Commands used to build and install an old-style archive.
18649 old_archive_cmds=$lt_old_archive_cmds_RC
18650 old_postinstall_cmds=$lt_old_postinstall_cmds
18651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18653 # Create an old-style archive from a shared archive.
18654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18656 # Create a temporary old-style archive to link instead of a shared archive.
18657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18659 # Commands used to build and install a shared archive.
18660 archive_cmds=$lt_archive_cmds_RC
18661 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18662 postinstall_cmds=$lt_postinstall_cmds
18663 postuninstall_cmds=$lt_postuninstall_cmds
18665 # Commands used to build a loadable module (assumed same as above if empty)
18666 module_cmds=$lt_module_cmds_RC
18667 module_expsym_cmds=$lt_module_expsym_cmds_RC
18669 # Commands to strip libraries.
18670 old_striplib=$lt_old_striplib
18671 striplib=$lt_striplib
18673 # Dependencies to place before the objects being linked to create a
18675 predep_objects=$lt_predep_objects_RC
18677 # Dependencies to place after the objects being linked to create a
18679 postdep_objects=$lt_postdep_objects_RC
18681 # Dependencies to place before the objects being linked to create a
18683 predeps=$lt_predeps_RC
18685 # Dependencies to place after the objects being linked to create a
18687 postdeps=$lt_postdeps_RC
18689 # The library search path used internally by the compiler when linking
18690 # a shared library.
18691 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18693 # Method to check whether dependent libraries are shared objects.
18694 deplibs_check_method=$lt_deplibs_check_method
18696 # Command to use when deplibs_check_method == file_magic.
18697 file_magic_cmd=$lt_file_magic_cmd
18699 # Flag that allows shared libraries with undefined symbols to be built.
18700 allow_undefined_flag=$lt_allow_undefined_flag_RC
18702 # Flag that forces no undefined symbols.
18703 no_undefined_flag=$lt_no_undefined_flag_RC
18705 # Commands used to finish a libtool library installation in a directory.
18706 finish_cmds=$lt_finish_cmds
18708 # Same as above, but a single script fragment to be evaled but not shown.
18709 finish_eval=$lt_finish_eval
18711 # Take the output of nm and produce a listing of raw symbols and C names.
18712 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18714 # Transform the output of nm in a proper C declaration
18715 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18717 # Transform the output of nm in a C name address pair
18718 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18720 # This is the shared library runtime path variable.
18721 runpath_var=$runpath_var
18723 # This is the shared library path variable.
18724 shlibpath_var=$shlibpath_var
18726 # Is shlibpath searched before the hard-coded library search path?
18727 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18729 # How to hardcode a shared library path into an executable.
18730 hardcode_action=$hardcode_action_RC
18732 # Whether we should hardcode library paths into libraries.
18733 hardcode_into_libs=$hardcode_into_libs
18735 # Flag to hardcode \$libdir into a binary during linking.
18736 # This must work even if \$libdir does not exist.
18737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18739 # If ld is used when linking, flag to hardcode \$libdir into
18740 # a binary during linking. This must work even if \$libdir does
18742 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18744 # Whether we need a single -rpath flag with a separated argument.
18745 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18747 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18748 # resulting binary.
18749 hardcode_direct=$hardcode_direct_RC
18751 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18752 # resulting binary.
18753 hardcode_minus_L=$hardcode_minus_L_RC
18755 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18756 # the resulting binary.
18757 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18759 # Set to yes if building a shared library automatically hardcodes DIR into the library
18760 # and all subsequent libraries and executables linked against it.
18761 hardcode_automatic=$hardcode_automatic_RC
18763 # Variables whose values should be saved in libtool wrapper scripts and
18764 # restored at relink time.
18765 variables_saved_for_relink="$variables_saved_for_relink"
18767 # Whether libtool must link a program against all its dependency libraries.
18768 link_all_deplibs=$link_all_deplibs_RC
18770 # Compile-time system search path for libraries
18771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18773 # Run-time system search path for libraries
18774 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18776 # Fix the shell variable \$srcfile for the compiler.
18777 fix_srcfile_path="$fix_srcfile_path_RC"
18779 # Set to yes if exported symbols are required.
18780 always_export_symbols=$always_export_symbols_RC
18782 # The commands to list exported symbols.
18783 export_symbols_cmds=$lt_export_symbols_cmds_RC
18785 # The commands to extract the exported symbol list from a shared archive.
18786 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18788 # Symbols that should not be listed in the preloaded symbols.
18789 exclude_expsyms=$lt_exclude_expsyms_RC
18791 # Symbols that must always be exported.
18792 include_expsyms=$lt_include_expsyms_RC
18794 # ### END LIBTOOL TAG CONFIG: $tagname
18800 # If there is no Makefile yet, we rely on a make rule to execute
18801 # `config.status --recheck' to rerun these tests and create the
18802 # libtool script then.
18803 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18804 if test -f "$ltmain_in"; then
18805 test -f Makefile && make "$ltmain"
18811 ac_cpp='$CPP $CPPFLAGS'
18812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18821 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18822 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18823 { (exit 1); exit 1; }; }
18827 # Append the new tag name to the list of available tags.
18828 if test -n "$tagname" ; then
18829 available_tags="$available_tags $tagname"
18835 # Now substitute the updated list of available tags.
18836 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18837 mv "${ofile}T" "$ofile"
18841 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18842 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18843 { (exit 1); exit 1; }; }
18849 # This can be used to rebuild libtool when needed
18850 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18852 # Always use our own libtool.
18853 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18855 # Prevent multiple expansion
18881 echo "$as_me:$LINENO: result: " >&5
18882 echo "${ECHO_T}" >&6
18883 echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
18884 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891 if test -n "$ac_tool_prefix"; then
18892 for ac_prog in xlC gcc cc
18894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18896 echo "$as_me:$LINENO: checking for $ac_word" >&5
18897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18898 if test "${ac_cv_prog_CC+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 if test -n "$CC"; then
18902 ac_cv_prog_CC="$CC" # Let the user override the test.
18904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18905 for as_dir in $PATH
18908 test -z "$as_dir" && as_dir=.
18909 for ac_exec_ext in '' $ac_executable_extensions; do
18910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18911 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18921 if test -n "$CC"; then
18922 echo "$as_me:$LINENO: result: $CC" >&5
18923 echo "${ECHO_T}$CC" >&6
18925 echo "$as_me:$LINENO: result: no" >&5
18926 echo "${ECHO_T}no" >&6
18929 test -n "$CC" && break
18932 if test -z "$CC"; then
18934 for ac_prog in xlC gcc cc
18936 # Extract the first word of "$ac_prog", so it can be a program name with args.
18937 set dummy $ac_prog; ac_word=$2
18938 echo "$as_me:$LINENO: checking for $ac_word" >&5
18939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 if test -n "$ac_ct_CC"; then
18944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18947 for as_dir in $PATH
18950 test -z "$as_dir" && as_dir=.
18951 for ac_exec_ext in '' $ac_executable_extensions; do
18952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18953 ac_cv_prog_ac_ct_CC="$ac_prog"
18954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18963 if test -n "$ac_ct_CC"; then
18964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18965 echo "${ECHO_T}$ac_ct_CC" >&6
18967 echo "$as_me:$LINENO: result: no" >&5
18968 echo "${ECHO_T}no" >&6
18971 test -n "$ac_ct_CC" && break
18978 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18979 See \`config.log' for more details." >&5
18980 echo "$as_me: error: no acceptable C compiler found in \$PATH
18981 See \`config.log' for more details." >&2;}
18982 { (exit 1); exit 1; }; }
18984 # Provide some information about the compiler.
18985 echo "$as_me:$LINENO:" \
18986 "checking for C compiler version" >&5
18987 ac_compiler=`set X $ac_compile; echo $2`
18988 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18989 (eval $ac_compiler --version </dev/null >&5) 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }
18993 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18994 (eval $ac_compiler -v </dev/null >&5) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }
18998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18999 (eval $ac_compiler -V </dev/null >&5) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }
19004 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19005 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19006 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 cat >conftest.$ac_ext <<_ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19027 rm -f conftest.$ac_objext
19028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19029 (eval $ac_compile) 2>conftest.er1
19031 grep -v '^ *+' conftest.er1 >conftest.err
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest.$ac_objext'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 ac_compiler_gnu=yes
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19059 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19060 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19061 GCC=`test $ac_compiler_gnu = yes && echo yes`
19062 ac_test_CFLAGS=${CFLAGS+set}
19063 ac_save_CFLAGS=$CFLAGS
19065 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19066 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19067 if test "${ac_cv_prog_cc_g+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19085 rm -f conftest.$ac_objext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19087 (eval $ac_compile) 2>conftest.er1
19089 grep -v '^ *+' conftest.er1 >conftest.err
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
19094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest.$ac_objext'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_cv_prog_cc_g=yes
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19117 if test "$ac_test_CFLAGS" = set; then
19118 CFLAGS=$ac_save_CFLAGS
19119 elif test $ac_cv_prog_cc_g = yes; then
19120 if test "$GCC" = yes; then
19126 if test "$GCC" = yes; then
19132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 ac_cv_prog_cc_stdc=no
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 #include <stdarg.h>
19147 #include <sys/types.h>
19148 #include <sys/stat.h>
19149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19150 struct buf { int x; };
19151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19152 static char *e (p, i)
19158 static char *f (char * (*g) (char **, int), char **p, ...)
19163 s = g (p, va_arg (v,int));
19168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19169 function prototypes and stuff, but not '\xHH' hex character constants.
19170 These don't provoke an error unfortunately, instead are silently treated
19171 as 'x'. The following induces an error, until -std1 is added to get
19172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19173 array size at least. It's necessary to write '\x00'==0 to get something
19174 that's true only with -std1. */
19175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19177 int test (int i, double x);
19178 struct s1 {int (*f) (int a);};
19179 struct s2 {int (*f) (double a);};
19180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19191 # Don't try gcc -ansi; that turns off useful extensions and
19192 # breaks some systems' header files.
19193 # AIX -qlanglvl=ansi
19194 # Ultrix and OSF/1 -std1
19195 # HP-UX 10.20 and later -Ae
19196 # HP-UX older versions -Aa -D_HPUX_SOURCE
19197 # SVR4 -Xc -D__EXTENSIONS__
19198 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19200 CC="$ac_save_CC $ac_arg"
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203 (eval $ac_compile) 2>conftest.er1
19205 grep -v '^ *+' conftest.er1 >conftest.err
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_cv_prog_cc_stdc=$ac_arg
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19229 rm -f conftest.err conftest.$ac_objext
19231 rm -f conftest.$ac_ext conftest.$ac_objext
19236 case "x$ac_cv_prog_cc_stdc" in
19238 echo "$as_me:$LINENO: result: none needed" >&5
19239 echo "${ECHO_T}none needed" >&6 ;;
19241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19242 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19243 CC="$CC $ac_cv_prog_cc_stdc" ;;
19246 # Some people use a C++ compiler to compile C. Since we use `exit',
19247 # in C++ we need to declare it. In case someone uses the same compiler
19248 # for both compiling C and C++ we need to have the C++ compiler decide
19249 # the declaration of exit, since it's the most demanding environment.
19250 cat >conftest.$ac_ext <<_ACEOF
19251 #ifndef __cplusplus
19255 rm -f conftest.$ac_objext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19257 (eval $ac_compile) 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 for ac_declaration in \
19278 'extern "C" void std::exit (int) throw (); using std::exit;' \
19279 'extern "C" void std::exit (int); using std::exit;' \
19280 'extern "C" void exit (int) throw ();' \
19281 'extern "C" void exit (int);' \
19284 cat >conftest.$ac_ext <<_ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19291 #include <stdlib.h>
19300 rm -f conftest.$ac_objext
19301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19302 (eval $ac_compile) 2>conftest.er1
19304 grep -v '^ *+' conftest.er1 >conftest.err
19306 cat conftest.err >&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } &&
19309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest.$ac_objext'
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19329 cat >conftest.$ac_ext <<_ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19344 rm -f conftest.$ac_objext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19346 (eval $ac_compile) 2>conftest.er1
19348 grep -v '^ *+' conftest.er1 >conftest.err
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } &&
19353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest.$ac_objext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19374 if test -n "$ac_declaration"; then
19375 echo '#ifdef __cplusplus' >>confdefs.h
19376 echo $ac_declaration >>confdefs.h
19377 echo '#endif' >>confdefs.h
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19387 ac_cpp='$CPP $CPPFLAGS'
19388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19392 depcc="$CC" am_compiler_list=
19394 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19395 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19396 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19400 # We make a subdir and do the tests there. Otherwise we can end up
19401 # making bogus files that we don't know about and never remove. For
19402 # instance it was reported that on HP-UX the gcc test will end up
19403 # making a dummy file named `D' -- because `-MD' means `put the output
19406 # Copy depcomp to subdir because otherwise we won't find it if we're
19407 # using a relative directory.
19408 cp "$am_depcomp" conftest.dir
19410 # We will build objects and dependencies in a subdirectory because
19411 # it helps to detect inapplicable dependency modes. For instance
19412 # both Tru64's cc and ICC support -MD to output dependencies as a
19413 # side effect of compilation, but ICC will put the dependencies in
19414 # the current directory while Tru64 will put them in the object
19418 am_cv_CC_dependencies_compiler_type=none
19419 if test "$am_compiler_list" = ""; then
19420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19422 for depmode in $am_compiler_list; do
19423 # Setup a source with many dependencies, because some compilers
19424 # like to wrap large dependency lists on column 80 (with \), and
19425 # we should not choose a depcomp mode which is confused by this.
19427 # We need to recreate these files for each test, as the compiler may
19428 # overwrite some of them when testing with obscure command lines.
19429 # This happens at least with the AIX C compiler.
19431 for i in 1 2 3 4 5 6; do
19432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19433 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19434 # Solaris 8's {/usr,}/bin/sh.
19435 touch sub/conftst$i.h
19437 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19441 # after this tag, mechanisms are not by side-effect, so they'll
19442 # only be used when explicitly requested
19443 if test "x$enable_dependency_tracking" = xyes; then
19451 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19452 # mode. It turns out that the SunPro C++ compiler does not properly
19453 # handle `-M -o', and we need to detect this.
19454 if depmode=$depmode \
19455 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19456 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19457 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19458 >/dev/null 2>conftest.err &&
19459 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19460 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19461 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19462 # icc doesn't choke on unknown options, it will just issue warnings
19463 # or remarks (even with -Werror). So we grep stderr for any message
19464 # that says an option was ignored or not supported.
19465 # When given -MP, icc 7.0 and 7.1 complain thusly:
19466 # icc: Command line warning: ignoring option '-M'; no argument required
19467 # The diagnosis changed in icc 8.0:
19468 # icc: Command line remark: option '-MP' not supported
19469 if (grep 'ignoring option' conftest.err ||
19470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19471 am_cv_CC_dependencies_compiler_type=$depmode
19478 rm -rf conftest.dir
19480 am_cv_CC_dependencies_compiler_type=none
19484 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19485 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19486 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19491 test "x$enable_dependency_tracking" != xno \
19492 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19493 am__fastdepCC_TRUE=
19494 am__fastdepCC_FALSE='#'
19496 am__fastdepCC_TRUE='#'
19497 am__fastdepCC_FALSE=
19501 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19502 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19505 echo timestamp > conftest.file
19506 # Do `set' in a subshell so we don't clobber the current shell's
19507 # arguments. Must try -L first in case configure is actually a
19508 # symlink; some systems play weird games with the mod time of symlinks
19509 # (eg FreeBSD returns the mod time of the symlink's containing
19512 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19513 if test "$*" = "X"; then
19515 set X `ls -t $srcdir/configure conftest.file`
19517 rm -f conftest.file
19518 if test "$*" != "X $srcdir/configure conftest.file" \
19519 && test "$*" != "X conftest.file $srcdir/configure"; then
19521 # If neither matched, then we have a broken ls. This can happen
19522 # if, for instance, CONFIG_SHELL is bash and it inherits a
19523 # broken ls alias from the environment. This has actually
19524 # happened. Such a system could not be considered "sane".
19525 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19526 alias in your environment" >&5
19527 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19528 alias in your environment" >&2;}
19529 { (exit 1); exit 1; }; }
19532 test "$2" = conftest.file
19538 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19539 Check your system clock" >&5
19540 echo "$as_me: error: newly created file is older than distributed files!
19541 Check your system clock" >&2;}
19542 { (exit 1); exit 1; }; }
19544 echo "$as_me:$LINENO: result: yes" >&5
19545 echo "${ECHO_T}yes" >&6
19546 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19547 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19548 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19549 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 cat >conftest.make <<\_ACEOF
19554 @echo 'ac_maketemp="$(MAKE)"'
19556 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19557 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19558 if test -n "$ac_maketemp"; then
19559 eval ac_cv_prog_make_${ac_make}_set=yes
19561 eval ac_cv_prog_make_${ac_make}_set=no
19563 rm -f conftest.make
19565 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19566 echo "$as_me:$LINENO: result: yes" >&5
19567 echo "${ECHO_T}yes" >&6
19570 echo "$as_me:$LINENO: result: no" >&5
19571 echo "${ECHO_T}no" >&6
19572 SET_MAKE="MAKE=${MAKE-make}"
19576 echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19577 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6
19578 if test "$cross_compiling" = yes; then
19579 echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19580 echo "${ECHO_T}assuming the worse in cross-compilation" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19597 rm -f conftest$ac_exeext
19598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19599 (eval $ac_link) 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
19609 cat >>confdefs.h <<\_ACEOF
19610 #define PRINTF_NULL_WORKING 1
19613 echo "$as_me:$LINENO: result: yes" >&5
19614 echo "${ECHO_T}yes" >&6
19616 echo "$as_me: program exited with status $ac_status" >&5
19617 echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19620 ( exit $ac_status )
19621 echo "$as_me:$LINENO: result: no" >&5
19622 echo "${ECHO_T}no" >&6
19624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19628 echo "$as_me:$LINENO: checking for va_copy() function" >&5
19629 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6
19630 if test "${ac_cv_va_copy+set}" = set; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 if test ".$ac_cv_va_copy" = .; then
19639 if test "$cross_compiling" = yes; then
19640 ac_cv_va_copy="C99"
19642 cat >conftest.$ac_ext <<_ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h. */
19649 #include <stdlib.h>
19650 #include <stdarg.h>
19651 #include <string.h>
19652 #define DO_VA_COPY(d, s) va_copy((d), (s))
19653 void test(char *str, ...)
19658 DO_VA_COPY(ap2, ap);
19659 for (i = 1; i <= 9; i++) {
19660 int k = (int)va_arg(ap, int);
19664 DO_VA_COPY(ap, ap2);
19665 for (i = 1; i <= 9; i++) {
19666 int k = (int)va_arg(ap, int);
19672 int main(int argc, char *argv[])
19674 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19679 rm -f conftest$ac_exeext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681 (eval $ac_link) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_va_copy="C99"
19692 echo "$as_me: program exited with status $ac_status" >&5
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19704 if test ".$ac_cv_va_copy" = .; then
19705 if test "$cross_compiling" = yes; then
19706 ac_cv_va_copy="GCM"
19708 cat >conftest.$ac_ext <<_ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19715 #include <stdlib.h>
19716 #include <stdarg.h>
19717 #include <string.h>
19718 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
19719 void test(char *str, ...)
19724 DO_VA_COPY(ap2, ap);
19725 for (i = 1; i <= 9; i++) {
19726 int k = (int)va_arg(ap, int);
19730 DO_VA_COPY(ap, ap2);
19731 for (i = 1; i <= 9; i++) {
19732 int k = (int)va_arg(ap, int);
19738 int main(int argc, char *argv[])
19740 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19745 rm -f conftest$ac_exeext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19747 (eval $ac_link) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; }; then
19756 ac_cv_va_copy="GCM"
19758 echo "$as_me: program exited with status $ac_status" >&5
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19770 if test ".$ac_cv_va_copy" = .; then
19771 if test "$cross_compiling" = yes; then
19772 ac_cv_va_copy="GCH"
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19781 #include <stdlib.h>
19782 #include <stdarg.h>
19783 #include <string.h>
19784 #define DO_VA_COPY(d, s) __va_copy((d), (s))
19785 void test(char *str, ...)
19790 DO_VA_COPY(ap2, ap);
19791 for (i = 1; i <= 9; i++) {
19792 int k = (int)va_arg(ap, int);
19796 DO_VA_COPY(ap, ap2);
19797 for (i = 1; i <= 9; i++) {
19798 int k = (int)va_arg(ap, int);
19804 int main(int argc, char *argv[])
19806 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19811 rm -f conftest$ac_exeext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19813 (eval $ac_link) 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 ac_cv_va_copy="GCH"
19824 echo "$as_me: program exited with status $ac_status" >&5
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19836 if test ".$ac_cv_va_copy" = .; then
19837 if test "$cross_compiling" = yes; then
19838 ac_cv_va_copy="GCB"
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19847 #include <stdlib.h>
19848 #include <stdarg.h>
19849 #include <string.h>
19850 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
19851 void test(char *str, ...)
19856 DO_VA_COPY(ap2, ap);
19857 for (i = 1; i <= 9; i++) {
19858 int k = (int)va_arg(ap, int);
19862 DO_VA_COPY(ap, ap2);
19863 for (i = 1; i <= 9; i++) {
19864 int k = (int)va_arg(ap, int);
19870 int main(int argc, char *argv[])
19872 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19877 rm -f conftest$ac_exeext
19878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879 (eval $ac_link) 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_cv_va_copy="GCB"
19890 echo "$as_me: program exited with status $ac_status" >&5
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19902 if test ".$ac_cv_va_copy" = .; then
19903 if test "$cross_compiling" = yes; then
19904 ac_cv_va_copy="ASS"
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 #include <stdlib.h>
19914 #include <stdarg.h>
19915 #include <string.h>
19916 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
19917 void test(char *str, ...)
19922 DO_VA_COPY(ap2, ap);
19923 for (i = 1; i <= 9; i++) {
19924 int k = (int)va_arg(ap, int);
19928 DO_VA_COPY(ap, ap2);
19929 for (i = 1; i <= 9; i++) {
19930 int k = (int)va_arg(ap, int);
19936 int main(int argc, char *argv[])
19938 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19943 rm -f conftest$ac_exeext
19944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19945 (eval $ac_link) 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 ac_cv_va_copy="ASS"
19956 echo "$as_me: program exited with status $ac_status" >&5
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19968 if test ".$ac_cv_va_copy" = .; then
19969 if test "$cross_compiling" = yes; then
19970 ac_cv_va_copy="ASP"
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19979 #include <stdlib.h>
19980 #include <stdarg.h>
19981 #include <string.h>
19982 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
19983 void test(char *str, ...)
19988 DO_VA_COPY(ap2, ap);
19989 for (i = 1; i <= 9; i++) {
19990 int k = (int)va_arg(ap, int);
19994 DO_VA_COPY(ap, ap2);
19995 for (i = 1; i <= 9; i++) {
19996 int k = (int)va_arg(ap, int);
20002 int main(int argc, char *argv[])
20004 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20009 rm -f conftest$ac_exeext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20011 (eval $ac_link) 2>&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_va_copy="ASP"
20022 echo "$as_me: program exited with status $ac_status" >&5
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20034 if test ".$ac_cv_va_copy" = .; then
20035 if test "$cross_compiling" = yes; then
20036 ac_cv_va_copy="CPS"
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20045 #include <stdlib.h>
20046 #include <stdarg.h>
20047 #include <string.h>
20048 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20049 void test(char *str, ...)
20054 DO_VA_COPY(ap2, ap);
20055 for (i = 1; i <= 9; i++) {
20056 int k = (int)va_arg(ap, int);
20060 DO_VA_COPY(ap, ap2);
20061 for (i = 1; i <= 9; i++) {
20062 int k = (int)va_arg(ap, int);
20068 int main(int argc, char *argv[])
20070 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20075 rm -f conftest$ac_exeext
20076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20077 (eval $ac_link) 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082 (eval $ac_try) 2>&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
20086 ac_cv_va_copy="CPS"
20088 echo "$as_me: program exited with status $ac_status" >&5
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20100 if test ".$ac_cv_va_copy" = .; then
20101 if test "$cross_compiling" = yes; then
20102 ac_cv_va_copy="CPP"
20104 cat >conftest.$ac_ext <<_ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20111 #include <stdlib.h>
20112 #include <stdarg.h>
20113 #include <string.h>
20114 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20115 void test(char *str, ...)
20120 DO_VA_COPY(ap2, ap);
20121 for (i = 1; i <= 9; i++) {
20122 int k = (int)va_arg(ap, int);
20126 DO_VA_COPY(ap, ap2);
20127 for (i = 1; i <= 9; i++) {
20128 int k = (int)va_arg(ap, int);
20134 int main(int argc, char *argv[])
20136 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20141 rm -f conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143 (eval $ac_link) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_cv_va_copy="CPP"
20154 echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20163 if test ".$ac_cv_va_copy" = .; then
20164 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20165 echo "$as_me: error: no working implementation found" >&2;}
20166 { (exit 1); exit 1; }; }
20171 if test ".$ac_cv_va_copy" = ".C99"; then
20173 cat >>confdefs.h <<\_ACEOF
20174 #define HAVE_VA_COPY 1
20179 cat >>confdefs.h <<_ACEOF
20180 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20185 if test ".$ac_cv_va_copy" = ".C99"; then
20186 echo "$as_me:$LINENO: result: yes" >&5
20187 echo "${ECHO_T}yes" >&6
20189 echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20190 echo "${ECHO_T}no (using fallback implementation)" >&6
20194 # Checks for header files.
20195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20197 if test "${ac_cv_header_stdc+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 cat >conftest.$ac_ext <<_ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20206 #include <stdlib.h>
20207 #include <stdarg.h>
20208 #include <string.h>
20219 rm -f conftest.$ac_objext
20220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20221 (eval $ac_compile) 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest.$ac_objext'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_cv_header_stdc=yes
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 ac_cv_header_stdc=no
20247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20249 if test $ac_cv_header_stdc = yes; then
20250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 #include <string.h>
20260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20261 $EGREP "memchr" >/dev/null 2>&1; then
20264 ac_cv_header_stdc=no
20270 if test $ac_cv_header_stdc = yes; then
20271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20272 cat >conftest.$ac_ext <<_ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20278 #include <stdlib.h>
20281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20282 $EGREP "free" >/dev/null 2>&1; then
20285 ac_cv_header_stdc=no
20291 if test $ac_cv_header_stdc = yes; then
20292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20293 if test "$cross_compiling" = yes; then
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 #if ((' ' & 0x0FF) == 0x020)
20304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20307 # define ISLOWER(c) \
20308 (('a' <= (c) && (c) <= 'i') \
20309 || ('j' <= (c) && (c) <= 'r') \
20310 || ('s' <= (c) && (c) <= 'z'))
20311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20319 for (i = 0; i < 256; i++)
20320 if (XOR (islower (i), ISLOWER (i))
20321 || toupper (i) != TOUPPER (i))
20326 rm -f conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328 (eval $ac_link) 2>&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20339 echo "$as_me: program exited with status $ac_status" >&5
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 ( exit $ac_status )
20344 ac_cv_header_stdc=no
20346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20352 if test $ac_cv_header_stdc = yes; then
20354 cat >>confdefs.h <<\_ACEOF
20355 #define STDC_HEADERS 1
20360 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20361 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20362 if test "${ac_cv_header_time+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 #include <sys/types.h>
20372 #include <sys/time.h>
20378 if ((struct tm *) 0)
20384 rm -f conftest.$ac_objext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386 (eval $ac_compile) 2>conftest.er1
20388 grep -v '^ *+' conftest.er1 >conftest.err
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } &&
20393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; } &&
20399 { ac_try='test -s conftest.$ac_objext'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 ac_cv_header_time=yes
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_header_time=no
20412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20414 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20415 echo "${ECHO_T}$ac_cv_header_time" >&6
20416 if test $ac_cv_header_time = yes; then
20418 cat >>confdefs.h <<\_ACEOF
20419 #define TIME_WITH_SYS_TIME 1
20434 for ac_header in sys/socket.h \
20436 windows.h winsock.h winsock2.h \
20442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20444 echo "$as_me:$LINENO: checking for $ac_header" >&5
20445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20452 # Is the header compilable?
20453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 $ac_includes_default
20462 #include <$ac_header>
20464 rm -f conftest.$ac_objext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20466 (eval $ac_compile) 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest.$ac_objext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_header_compiler=yes
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_header_compiler=no
20492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20494 echo "${ECHO_T}$ac_header_compiler" >&6
20496 # Is the header present?
20497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20499 cat >conftest.$ac_ext <<_ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20505 #include <$ac_header>
20507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20510 grep -v '^ *+' conftest.er1 >conftest.err
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } >/dev/null; then
20515 if test -s conftest.err; then
20516 ac_cpp_err=$ac_c_preproc_warn_flag
20517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20524 if test -z "$ac_cpp_err"; then
20525 ac_header_preproc=yes
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20530 ac_header_preproc=no
20532 rm -f conftest.err conftest.$ac_ext
20533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20534 echo "${ECHO_T}$ac_header_preproc" >&6
20536 # So? What about this header?
20537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20543 ac_header_preproc=yes
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20560 ## -------------------------------------------------- ##
20561 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
20562 ## -------------------------------------------------- ##
20565 sed "s/^/$as_me: WARNING: /" >&2
20568 echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 eval "$as_ac_Header=\$ac_header_preproc"
20575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20596 for ac_func in gettimeofday usleep \
20604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20605 echo "$as_me:$LINENO: checking for $ac_func" >&5
20606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20607 if eval "test \"\${$as_ac_var+set}\" = set"; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20618 #define $ac_func innocuous_$ac_func
20620 /* System header to define __stub macros and hopefully few prototypes,
20621 which can conflict with char $ac_func (); below.
20622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20623 <limits.h> exists even on freestanding compilers. */
20626 # include <limits.h>
20628 # include <assert.h>
20633 /* Override any gcc2 internal prototype to avoid an error. */
20638 /* We use char because int might match the return type of a gcc2
20639 builtin and then its argument prototype would still apply. */
20641 /* The GNU C library defines this for functions which it implements
20642 to always fail with ENOSYS. Some functions are actually named
20643 something starting with __ and the normal name is an alias. */
20644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20647 char (*f) () = $ac_func;
20656 return f != $ac_func;
20661 rm -f conftest.$ac_objext conftest$ac_exeext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20663 (eval $ac_link) 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; } &&
20676 { ac_try='test -s conftest$ac_exeext'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 eval "$as_ac_var=yes"
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20687 eval "$as_ac_var=no"
20689 rm -f conftest.err conftest.$ac_objext \
20690 conftest$ac_exeext conftest.$ac_ext
20692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20694 if test `eval echo '${'$as_ac_var'}'` = yes; then
20695 cat >>confdefs.h <<_ACEOF
20696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20703 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
20706 for ac_func in snprintf vsnprintf
20708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20709 echo "$as_me:$LINENO: checking for $ac_func" >&5
20710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20711 if eval "test \"\${$as_ac_var+set}\" = set"; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20722 #define $ac_func innocuous_$ac_func
20724 /* System header to define __stub macros and hopefully few prototypes,
20725 which can conflict with char $ac_func (); below.
20726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20727 <limits.h> exists even on freestanding compilers. */
20730 # include <limits.h>
20732 # include <assert.h>
20737 /* Override any gcc2 internal prototype to avoid an error. */
20742 /* We use char because int might match the return type of a gcc2
20743 builtin and then its argument prototype would still apply. */
20745 /* The GNU C library defines this for functions which it implements
20746 to always fail with ENOSYS. Some functions are actually named
20747 something starting with __ and the normal name is an alias. */
20748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20751 char (*f) () = $ac_func;
20760 return f != $ac_func;
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20767 (eval $ac_link) 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; } &&
20780 { ac_try='test -s conftest$ac_exeext'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; }; then
20786 eval "$as_ac_var=yes"
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 eval "$as_ac_var=no"
20793 rm -f conftest.err conftest.$ac_objext \
20794 conftest$ac_exeext conftest.$ac_ext
20796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20798 if test `eval echo '${'$as_ac_var'}'` = yes; then
20799 cat >>confdefs.h <<_ACEOF
20800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20806 echo "$as_me:$LINENO: checking for working snprintf" >&5
20807 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
20808 if test "${ac_cv_have_working_snprintf+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 if test "$cross_compiling" = yes; then
20812 ac_cv_have_working_snprintf=cross
20814 cat >conftest.$ac_ext <<_ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20824 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20825 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20827 i = snprintf (bufs, 2, "%s", "111");
20828 if (strcmp (bufs, "1")) exit (1);
20829 if (i != 3) exit (1);
20830 i = snprintf (bufd, 2, "%d", 111);
20831 if (strcmp (bufd, "1")) exit (1);
20832 if (i != 3) exit (1);
20836 rm -f conftest$ac_exeext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20838 (eval $ac_link) 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 ac_cv_have_working_snprintf=yes
20849 echo "$as_me: program exited with status $ac_status" >&5
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20853 ( exit $ac_status )
20854 ac_cv_have_working_snprintf=no
20856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20860 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
20861 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
20862 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
20863 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
20864 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 if test "$cross_compiling" = yes; then
20868 ac_cv_have_working_vsnprintf=cross
20870 cat >conftest.$ac_ext <<_ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h. */
20877 #include <stdarg.h>
20879 int my_vsnprintf (char *buf, const char *tmpl, ...)
20883 va_start (args, tmpl);
20884 i = vsnprintf (buf, 2, tmpl, args);
20891 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20892 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20894 i = my_vsnprintf (bufs, "%s", "111");
20895 if (strcmp (bufs, "1")) exit (1);
20896 if (i != 3) exit (1);
20897 i = my_vsnprintf (bufd, "%d", 111);
20898 if (strcmp (bufd, "1")) exit (1);
20899 if (i != 3) exit (1);
20903 rm -f conftest$ac_exeext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20905 (eval $ac_link) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 ac_cv_have_working_vsnprintf=yes
20916 echo "$as_me: program exited with status $ac_status" >&5
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 ( exit $ac_status )
20921 ac_cv_have_working_vsnprintf=no
20923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20927 echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
20928 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
20929 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
20931 "snprintf.$ac_objext" | \
20932 *" snprintf.$ac_objext" | \
20933 "snprintf.$ac_objext "* | \
20934 *" snprintf.$ac_objext "* ) ;;
20935 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
20938 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
20939 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
20941 cat >>confdefs.h <<\_ACEOF
20942 #define PREFER_PORTABLE_SNPRINTF 1
20946 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
20947 echo "$as_me:$LINENO: checking for asprintf" >&5
20948 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
20949 if test "${ac_cv_func_asprintf+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20952 cat >conftest.$ac_ext <<_ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20958 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
20959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20960 #define asprintf innocuous_asprintf
20962 /* System header to define __stub macros and hopefully few prototypes,
20963 which can conflict with char asprintf (); below.
20964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20965 <limits.h> exists even on freestanding compilers. */
20968 # include <limits.h>
20970 # include <assert.h>
20975 /* Override any gcc2 internal prototype to avoid an error. */
20980 /* We use char because int might match the return type of a gcc2
20981 builtin and then its argument prototype would still apply. */
20983 /* The GNU C library defines this for functions which it implements
20984 to always fail with ENOSYS. Some functions are actually named
20985 something starting with __ and the normal name is an alias. */
20986 #if defined (__stub_asprintf) || defined (__stub___asprintf)
20989 char (*f) () = asprintf;
20998 return f != asprintf;
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005 (eval $ac_link) 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } &&
21012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; } &&
21018 { ac_try='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_func_asprintf=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_cv_func_asprintf=no
21031 rm -f conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
21034 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21035 echo "${ECHO_T}$ac_cv_func_asprintf" >&6
21036 if test $ac_cv_func_asprintf = yes; then
21040 cat >>confdefs.h <<\_ACEOF
21041 #define NEED_ASPRINTF 1
21046 echo "$as_me:$LINENO: checking for vasprintf" >&5
21047 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
21048 if test "${ac_cv_func_vasprintf+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 cat >conftest.$ac_ext <<_ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21057 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21059 #define vasprintf innocuous_vasprintf
21061 /* System header to define __stub macros and hopefully few prototypes,
21062 which can conflict with char vasprintf (); below.
21063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21064 <limits.h> exists even on freestanding compilers. */
21067 # include <limits.h>
21069 # include <assert.h>
21074 /* Override any gcc2 internal prototype to avoid an error. */
21079 /* We use char because int might match the return type of a gcc2
21080 builtin and then its argument prototype would still apply. */
21082 /* The GNU C library defines this for functions which it implements
21083 to always fail with ENOSYS. Some functions are actually named
21084 something starting with __ and the normal name is an alias. */
21085 #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
21088 char (*f) () = vasprintf;
21097 return f != vasprintf;
21102 rm -f conftest.$ac_objext conftest$ac_exeext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104 (eval $ac_link) 2>conftest.er1
21106 grep -v '^ *+' conftest.er1 >conftest.err
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
21111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try='test -s conftest$ac_exeext'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_func_vasprintf=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_cv_func_vasprintf=no
21130 rm -f conftest.err conftest.$ac_objext \
21131 conftest$ac_exeext conftest.$ac_ext
21133 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21134 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
21135 if test $ac_cv_func_vasprintf = yes; then
21139 cat >>confdefs.h <<\_ACEOF
21140 #define NEED_VASPRINTF 1
21146 # Checks for typedefs, structures, and compiler characteristics.
21147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21149 if test "${ac_cv_c_const+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21162 /* FIXME: Include the comments suggested by Paul. */
21163 #ifndef __cplusplus
21164 /* Ultrix mips cc rejects this. */
21165 typedef int charset[2];
21167 /* SunOS 4.1.1 cc rejects this. */
21168 char const *const *ccp;
21170 /* NEC SVR4.0.2 mips cc rejects this. */
21171 struct point {int x, y;};
21172 static struct point const zero = {0,0};
21173 /* AIX XL C 1.02.0.0 rejects this.
21174 It does not let you subtract one const X* pointer from another in
21175 an arm of an if-expression whose if-part is not a constant
21177 const char *g = "string";
21178 ccp = &g + (g ? g-g : 0);
21179 /* HPUX 7.0 cc rejects these. */
21182 ccp = (char const *const *) p;
21183 { /* SCO 3.2v4 cc rejects this. */
21185 char const *s = 0 ? (char *) 0 : (char const *) 0;
21189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21190 int x[] = {25, 17};
21191 const int *foo = &x[0];
21194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21195 typedef const int *iptr;
21199 { /* AIX XL C 1.02.0.0 rejects this saying
21200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21201 struct s { int j; const int *ap[3]; };
21202 struct s *b; b->j = 5;
21204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21205 const int foo = 10;
21213 rm -f conftest.$ac_objext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215 (eval $ac_compile) 2>conftest.er1
21217 grep -v '^ *+' conftest.er1 >conftest.err
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
21222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21243 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21244 echo "${ECHO_T}$ac_cv_c_const" >&6
21245 if test $ac_cv_c_const = no; then
21247 cat >>confdefs.h <<\_ACEOF
21253 echo "$as_me:$LINENO: checking for inline" >&5
21254 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21255 if test "${ac_cv_c_inline+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 for ac_kw in inline __inline__ __inline; do
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 #ifndef __cplusplus
21268 static $ac_kw foo_t static_foo () {return 0; }
21269 $ac_kw foo_t foo () {return 0; }
21273 rm -f conftest.$ac_objext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21275 (eval $ac_compile) 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; } &&
21288 { ac_try='test -s conftest.$ac_objext'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 ac_cv_c_inline=$ac_kw; break
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21304 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21305 echo "${ECHO_T}$ac_cv_c_inline" >&6
21308 case $ac_cv_c_inline in
21311 case $ac_cv_c_inline in
21313 *) ac_val=$ac_cv_c_inline;;
21315 cat >>confdefs.h <<_ACEOF
21316 #ifndef __cplusplus
21317 #define inline $ac_val
21323 echo "$as_me:$LINENO: checking for size_t" >&5
21324 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21325 if test "${ac_cv_type_size_t+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21340 if (sizeof (size_t))
21346 rm -f conftest.$ac_objext
21347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21348 (eval $ac_compile) 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_type_size_t=yes
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ac_cv_type_size_t=no
21374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21376 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21377 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21378 if test $ac_cv_type_size_t = yes; then
21382 cat >>confdefs.h <<_ACEOF
21383 #define size_t unsigned
21389 ###################################
21390 ## SimGrid and GRAS specific checks
21394 echo "$as_me:$LINENO: result: " >&5
21395 echo "${ECHO_T}" >&6
21396 echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21397 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6
21399 # Check architecture signature begin
21401 # Check for the architecture
21402 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21403 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21404 if test "${ac_cv_c_bigendian+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 # See if sys/param.h defines the BYTE_ORDER macro.
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 #include <sys/types.h>
21415 #include <sys/param.h>
21420 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21421 bogus endian macros
21428 rm -f conftest.$ac_objext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21430 (eval $ac_compile) 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
21437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 # It does; now see whether it defined to BIG_ENDIAN or not.
21450 cat >conftest.$ac_ext <<_ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 #include <sys/types.h>
21457 #include <sys/param.h>
21462 #if BYTE_ORDER != BIG_ENDIAN
21470 rm -f conftest.$ac_objext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21472 (eval $ac_compile) 2>conftest.er1
21474 grep -v '^ *+' conftest.er1 >conftest.err
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
21479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest.$ac_objext'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; }; then
21491 ac_cv_c_bigendian=yes
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ac_cv_c_bigendian=no
21498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 # It does not; compile a test program.
21504 if test "$cross_compiling" = yes; then
21505 # try to guess the endianness by grepping values into an object file
21506 ac_cv_c_bigendian=unknown
21507 cat >conftest.$ac_ext <<_ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21514 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21515 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21516 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21517 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21518 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21522 _ascii (); _ebcdic ();
21527 rm -f conftest.$ac_objext
21528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21529 (eval $ac_compile) 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
21536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21549 ac_cv_c_bigendian=yes
21551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21552 if test "$ac_cv_c_bigendian" = unknown; then
21553 ac_cv_c_bigendian=no
21555 # finding both strings is unlikely to happen, but who knows?
21556 ac_cv_c_bigendian=unknown
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21566 cat >conftest.$ac_ext <<_ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21575 /* Are we little or big endian? From Harbison&Steele. */
21579 char c[sizeof (long)];
21582 exit (u.c[sizeof (long) - 1] == 1);
21585 rm -f conftest$ac_exeext
21586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21587 (eval $ac_link) 2>&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_cv_c_bigendian=no
21598 echo "$as_me: program exited with status $ac_status" >&5
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ( exit $ac_status )
21603 ac_cv_c_bigendian=yes
21605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21610 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21611 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21612 case $ac_cv_c_bigendian in
21618 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21619 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21620 { (exit 1); exit 1; }; } ;;
21624 cat >>confdefs.h <<_ACEOF
21625 #define GRAS_BIGENDIAN $endian
21629 echo "$as_me:$LINENO: checking size of char" >&5
21630 echo $ECHO_N "checking size of char... $ECHO_C" >&6
21631 if test "${ac_cv_sizeof_char+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21635 cat >conftest.$ac_ext <<_ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 #include "confdefs.h"
21642 #include <sys/types.h>
21648 switch (0) case 0: case (sizeof (char) == $ac_size):;
21653 rm -f conftest.$ac_objext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21655 (eval $ac_compile) 2>conftest.er1
21657 grep -v '^ *+' conftest.er1 >conftest.err
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } &&
21662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 ac_cv_sizeof_char=$ac_size
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21681 if test x$ac_cv_sizeof_char != x ; then break; fi
21687 unspecif=$ac_cv_sizeof_char
21688 if test x$unspecif = x ; then
21689 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
21690 echo "$as_me: error: cannot determine a size for char" >&2;}
21691 { (exit 1); exit 1; }; }
21694 if test "${ac_cv_sizeof_signed_char+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21698 cat >conftest.$ac_ext <<_ACEOF
21701 cat confdefs.h >>conftest.$ac_ext
21702 cat >>conftest.$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 #include "confdefs.h"
21705 #include <sys/types.h>
21711 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718 (eval $ac_compile) 2>conftest.er1
21720 grep -v '^ *+' conftest.er1 >conftest.err
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
21725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; } &&
21731 { ac_try='test -s conftest.$ac_objext'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 ac_cv_sizeof_signed_char=$ac_size
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21744 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
21750 signed=$ac_cv_sizeof_signed_char
21751 if test x$signed = x ; then
21752 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
21753 echo "$as_me: error: cannot determine a size for signed char" >&2;}
21754 { (exit 1); exit 1; }; }
21756 if test x$unspecif != x$signed ; then
21757 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
21758 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
21759 { (exit 1); exit 1; }; }
21762 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 #include "confdefs.h"
21773 #include <sys/types.h>
21779 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
21784 rm -f conftest.$ac_objext
21785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21786 (eval $ac_compile) 2>conftest.er1
21788 grep -v '^ *+' conftest.er1 >conftest.err
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
21793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; } &&
21799 { ac_try='test -s conftest.$ac_objext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_sizeof_unsigned_char=$ac_size
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21812 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
21818 unsigned=$ac_cv_sizeof_unsigned_char
21819 if test x$unsigned = x ; then
21820 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
21821 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
21822 { (exit 1); exit 1; }; }
21824 if test x$unsigned != x$signed ; then
21825 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
21826 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
21827 { (exit 1); exit 1; }; }
21830 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
21831 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
21832 echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
21833 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6
21835 if test "${ac_cv_struct_boundary_char+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #include "confdefs.h"
21846 #include <sys/types.h>
21847 struct s { char c; char i; };
21852 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
21857 rm -f conftest.$ac_objext
21858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21859 (eval $ac_compile) 2>conftest.er1
21861 grep -v '^ *+' conftest.er1 >conftest.err
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } &&
21866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest.$ac_objext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 ac_cv_struct_boundary_char=$ac_size
21880 echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21885 if test x$ac_cv_struct_boundary_char != x ; then break; fi
21890 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
21891 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6
21892 if test x$ac_cv_struct_boundary_char = x ; then
21893 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
21894 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
21895 { (exit 1); exit 1; }; }
21898 echo "$as_me:$LINENO: checking size of short int" >&5
21899 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
21900 if test "${ac_cv_sizeof_short_int+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 #include "confdefs.h"
21911 #include <sys/types.h>
21917 switch (0) case 0: case (sizeof (short int) == $ac_size):;
21922 rm -f conftest.$ac_objext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21924 (eval $ac_compile) 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } &&
21931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; } &&
21937 { ac_try='test -s conftest.$ac_objext'
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; }; then
21943 ac_cv_sizeof_short_int=$ac_size
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21950 if test x$ac_cv_sizeof_short_int != x ; then break; fi
21956 unspecif=$ac_cv_sizeof_short_int
21957 if test x$unspecif = x ; then
21958 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
21959 echo "$as_me: error: cannot determine a size for short int" >&2;}
21960 { (exit 1); exit 1; }; }
21963 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 #include "confdefs.h"
21974 #include <sys/types.h>
21980 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
21985 rm -f conftest.$ac_objext
21986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21987 (eval $ac_compile) 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest.$ac_objext'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; }; then
22006 ac_cv_sizeof_signed_short_int=$ac_size
22008 echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22013 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22019 signed=$ac_cv_sizeof_signed_short_int
22020 if test x$signed = x ; then
22021 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22022 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22023 { (exit 1); exit 1; }; }
22025 if test x$unspecif != x$signed ; then
22026 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22027 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22028 { (exit 1); exit 1; }; }
22031 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22035 cat >conftest.$ac_ext <<_ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 #include "confdefs.h"
22042 #include <sys/types.h>
22048 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22053 rm -f conftest.$ac_objext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22055 (eval $ac_compile) 2>conftest.er1
22057 grep -v '^ *+' conftest.er1 >conftest.err
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } &&
22062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; } &&
22068 { ac_try='test -s conftest.$ac_objext'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; }; then
22074 ac_cv_sizeof_unsigned_short_int=$ac_size
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22081 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22087 unsigned=$ac_cv_sizeof_unsigned_short_int
22088 if test x$unsigned = x ; then
22089 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22090 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22091 { (exit 1); exit 1; }; }
22093 if test x$unsigned != x$signed ; then
22094 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22095 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22096 { (exit 1); exit 1; }; }
22099 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22100 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
22101 echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22102 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6
22104 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22107 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22108 cat >conftest.$ac_ext <<_ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 #include "confdefs.h"
22115 #include <sys/types.h>
22116 struct s { char c; short int i; };
22121 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22126 rm -f conftest.$ac_objext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22128 (eval $ac_compile) 2>conftest.er1
22130 grep -v '^ *+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; } &&
22141 { ac_try='test -s conftest.$ac_objext'
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 ac_cv_struct_boundary_short_int=$ac_size
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22154 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22159 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22160 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6
22161 if test x$ac_cv_struct_boundary_short_int = x ; then
22162 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22163 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22164 { (exit 1); exit 1; }; }
22167 echo "$as_me:$LINENO: checking size of int" >&5
22168 echo $ECHO_N "checking size of int... $ECHO_C" >&6
22169 if test "${ac_cv_sizeof_int+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22173 cat >conftest.$ac_ext <<_ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 #include "confdefs.h"
22180 #include <sys/types.h>
22186 switch (0) case 0: case (sizeof (int) == $ac_size):;
22191 rm -f conftest.$ac_objext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22193 (eval $ac_compile) 2>conftest.er1
22195 grep -v '^ *+' conftest.er1 >conftest.err
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } &&
22200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; } &&
22206 { ac_try='test -s conftest.$ac_objext'
22207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208 (eval $ac_try) 2>&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; }; then
22212 ac_cv_sizeof_int=$ac_size
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22219 if test x$ac_cv_sizeof_int != x ; then break; fi
22225 unspecif=$ac_cv_sizeof_int
22226 if test x$unspecif = x ; then
22227 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22228 echo "$as_me: error: cannot determine a size for int" >&2;}
22229 { (exit 1); exit 1; }; }
22232 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22235 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22236 cat >conftest.$ac_ext <<_ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 #include "confdefs.h"
22243 #include <sys/types.h>
22249 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22254 rm -f conftest.$ac_objext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22256 (eval $ac_compile) 2>conftest.er1
22258 grep -v '^ *+' conftest.er1 >conftest.err
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } &&
22263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265 (eval $ac_try) 2>&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; } &&
22269 { ac_try='test -s conftest.$ac_objext'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 ac_cv_sizeof_signed_int=$ac_size
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22288 signed=$ac_cv_sizeof_signed_int
22289 if test x$signed = x ; then
22290 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22291 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22292 { (exit 1); exit 1; }; }
22294 if test x$unspecif != x$signed ; then
22295 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22296 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22297 { (exit 1); exit 1; }; }
22300 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 #include "confdefs.h"
22311 #include <sys/types.h>
22317 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22322 rm -f conftest.$ac_objext
22323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22324 (eval $ac_compile) 2>conftest.er1
22326 grep -v '^ *+' conftest.er1 >conftest.err
22328 cat conftest.err >&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } &&
22331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 { ac_try='test -s conftest.$ac_objext'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ac_cv_sizeof_unsigned_int=$ac_size
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22350 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22356 unsigned=$ac_cv_sizeof_unsigned_int
22357 if test x$unsigned = x ; then
22358 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22359 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22360 { (exit 1); exit 1; }; }
22362 if test x$unsigned != x$signed ; then
22363 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22364 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22365 { (exit 1); exit 1; }; }
22368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22369 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
22370 echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22371 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6
22373 if test "${ac_cv_struct_boundary_int+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 #include "confdefs.h"
22384 #include <sys/types.h>
22385 struct s { char c; int i; };
22390 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
22395 rm -f conftest.$ac_objext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397 (eval $ac_compile) 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } &&
22404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest.$ac_objext'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22416 ac_cv_struct_boundary_int=$ac_size
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22423 if test x$ac_cv_struct_boundary_int != x ; then break; fi
22428 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22429 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6
22430 if test x$ac_cv_struct_boundary_int = x ; then
22431 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22432 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22433 { (exit 1); exit 1; }; }
22436 echo "$as_me:$LINENO: checking size of long int" >&5
22437 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
22438 if test "${ac_cv_sizeof_long_int+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22442 cat >conftest.$ac_ext <<_ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22448 #include "confdefs.h"
22449 #include <sys/types.h>
22455 switch (0) case 0: case (sizeof (long int) == $ac_size):;
22460 rm -f conftest.$ac_objext
22461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22462 (eval $ac_compile) 2>conftest.er1
22464 grep -v '^ *+' conftest.er1 >conftest.err
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
22469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471 (eval $ac_try) 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; } &&
22475 { ac_try='test -s conftest.$ac_objext'
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_cv_sizeof_long_int=$ac_size
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22488 if test x$ac_cv_sizeof_long_int != x ; then break; fi
22494 unspecif=$ac_cv_sizeof_long_int
22495 if test x$unspecif = x ; then
22496 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22497 echo "$as_me: error: cannot determine a size for long int" >&2;}
22498 { (exit 1); exit 1; }; }
22501 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22504 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22505 cat >conftest.$ac_ext <<_ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 #include "confdefs.h"
22512 #include <sys/types.h>
22518 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22523 rm -f conftest.$ac_objext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>conftest.er1
22527 grep -v '^ *+' conftest.er1 >conftest.err
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; } &&
22538 { ac_try='test -s conftest.$ac_objext'
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; }; then
22544 ac_cv_sizeof_signed_long_int=$ac_size
22546 echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22557 signed=$ac_cv_sizeof_signed_long_int
22558 if test x$signed = x ; then
22559 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22560 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22561 { (exit 1); exit 1; }; }
22563 if test x$unspecif != x$signed ; then
22564 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22565 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22566 { (exit 1); exit 1; }; }
22569 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 #include "confdefs.h"
22580 #include <sys/types.h>
22586 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
22591 rm -f conftest.$ac_objext
22592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22593 (eval $ac_compile) 2>conftest.er1
22595 grep -v '^ *+' conftest.er1 >conftest.err
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } &&
22600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602 (eval $ac_try) 2>&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); }; } &&
22606 { ac_try='test -s conftest.$ac_objext'
22607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608 (eval $ac_try) 2>&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; }; then
22612 ac_cv_sizeof_unsigned_long_int=$ac_size
22614 echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22619 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
22625 unsigned=$ac_cv_sizeof_unsigned_long_int
22626 if test x$unsigned = x ; then
22627 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
22628 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
22629 { (exit 1); exit 1; }; }
22631 if test x$unsigned != x$signed ; then
22632 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
22633 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
22634 { (exit 1); exit 1; }; }
22637 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
22638 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
22639 echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
22640 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6
22642 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
22643 echo $ECHO_N "(cached) $ECHO_C" >&6
22645 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22646 cat >conftest.$ac_ext <<_ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 #include "confdefs.h"
22653 #include <sys/types.h>
22654 struct s { char c; long int i; };
22659 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
22664 rm -f conftest.$ac_objext
22665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22666 (eval $ac_compile) 2>conftest.er1
22668 grep -v '^ *+' conftest.er1 >conftest.err
22670 cat conftest.err >&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } &&
22673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; } &&
22679 { ac_try='test -s conftest.$ac_objext'
22680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681 (eval $ac_try) 2>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; }; then
22685 ac_cv_struct_boundary_long_int=$ac_size
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22692 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
22697 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
22698 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6
22699 if test x$ac_cv_struct_boundary_long_int = x ; then
22700 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
22701 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
22702 { (exit 1); exit 1; }; }
22705 echo "$as_me:$LINENO: checking size of long long int" >&5
22706 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
22707 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 #include "confdefs.h"
22718 #include <sys/types.h>
22724 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
22729 rm -f conftest.$ac_objext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22731 (eval $ac_compile) 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
22738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; } &&
22744 { ac_try='test -s conftest.$ac_objext'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; }; then
22750 ac_cv_sizeof_long_long_int=$ac_size
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22757 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
22763 unspecif=$ac_cv_sizeof_long_long_int
22764 if test x$unspecif = x ; then
22765 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
22766 echo "$as_me: error: cannot determine a size for long long int" >&2;}
22767 { (exit 1); exit 1; }; }
22770 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22774 cat >conftest.$ac_ext <<_ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 #include "confdefs.h"
22781 #include <sys/types.h>
22787 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
22792 rm -f conftest.$ac_objext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22794 (eval $ac_compile) 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } &&
22801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; } &&
22807 { ac_try='test -s conftest.$ac_objext'
22808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809 (eval $ac_try) 2>&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; }; then
22813 ac_cv_sizeof_signed_long_long_int=$ac_size
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22820 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
22826 signed=$ac_cv_sizeof_signed_long_long_int
22827 if test x$signed = x ; then
22828 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
22829 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
22830 { (exit 1); exit 1; }; }
22832 if test x$unspecif != x$signed ; then
22833 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
22834 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
22835 { (exit 1); exit 1; }; }
22838 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22841 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22842 cat >conftest.$ac_ext <<_ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22848 #include "confdefs.h"
22849 #include <sys/types.h>
22855 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
22860 rm -f conftest.$ac_objext
22861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22862 (eval $ac_compile) 2>conftest.er1
22864 grep -v '^ *+' conftest.er1 >conftest.err
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } &&
22869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; } &&
22875 { ac_try='test -s conftest.$ac_objext'
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; }; then
22881 ac_cv_sizeof_unsigned_long_long_int=$ac_size
22883 echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22888 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
22894 unsigned=$ac_cv_sizeof_unsigned_long_long_int
22895 if test x$unsigned = x ; then
22896 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
22897 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
22898 { (exit 1); exit 1; }; }
22900 if test x$unsigned != x$signed ; then
22901 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
22902 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
22903 { (exit 1); exit 1; }; }
22906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
22907 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
22908 echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
22909 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6
22911 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22915 cat >conftest.$ac_ext <<_ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 #include "confdefs.h"
22922 #include <sys/types.h>
22923 struct s { char c; long long int i; };
22928 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
22933 rm -f conftest.$ac_objext
22934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22935 (eval $ac_compile) 2>conftest.er1
22937 grep -v '^ *+' conftest.er1 >conftest.err
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } &&
22942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; } &&
22948 { ac_try='test -s conftest.$ac_objext'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 ac_cv_struct_boundary_long_long_int=$ac_size
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22961 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
22966 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
22967 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6
22968 if test x$ac_cv_struct_boundary_long_long_int = x ; then
22969 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
22970 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
22971 { (exit 1); exit 1; }; }
22975 echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
22976 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6
22978 if test "${ac_cv_struct_boundary_float+set}" = set; then
22979 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 #include "confdefs.h"
22989 #include <sys/types.h>
22990 struct s { char c; float i; };
22995 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23000 rm -f conftest.$ac_objext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23002 (eval $ac_compile) 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } &&
23009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest.$ac_objext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 ac_cv_struct_boundary_float=$ac_size
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23028 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23033 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23034 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6
23035 if test x$ac_cv_struct_boundary_float = x ; then
23036 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23037 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23038 { (exit 1); exit 1; }; }
23040 echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23041 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6
23043 if test "${ac_cv_struct_boundary_double+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23047 cat >conftest.$ac_ext <<_ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23053 #include "confdefs.h"
23054 #include <sys/types.h>
23055 struct s { char c; double i; };
23060 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23065 rm -f conftest.$ac_objext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23067 (eval $ac_compile) 2>conftest.er1
23069 grep -v '^ *+' conftest.er1 >conftest.err
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
23074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; } &&
23080 { ac_try='test -s conftest.$ac_objext'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 ac_cv_struct_boundary_double=$ac_size
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23093 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23098 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23099 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6
23100 if test x$ac_cv_struct_boundary_double = x ; then
23101 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23102 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23103 { (exit 1); exit 1; }; }
23107 echo "$as_me:$LINENO: checking size of void *" >&5
23108 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
23109 if test "${ac_cv_sizeof_void_p+set}" = set; then
23110 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 #include "confdefs.h"
23120 #include <sys/types.h>
23126 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23131 rm -f conftest.$ac_objext
23132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23133 (eval $ac_compile) 2>conftest.er1
23135 grep -v '^ *+' conftest.er1 >conftest.err
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } &&
23140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; } &&
23146 { ac_try='test -s conftest.$ac_objext'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; }; then
23152 ac_cv_sizeof_void_p=$ac_size
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23159 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23165 if test x$ac_cv_sizeof_void_p = x ; then
23166 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23167 echo "$as_me: error: cannot determine a size for void *" >&2;}
23168 { (exit 1); exit 1; }; }
23170 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23171 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
23172 echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23173 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6
23175 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23176 echo $ECHO_N "(cached) $ECHO_C" >&6
23178 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 #include "confdefs.h"
23186 #include <sys/types.h>
23187 struct s { char c; void * i; };
23192 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23197 rm -f conftest.$ac_objext
23198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23199 (eval $ac_compile) 2>conftest.er1
23201 grep -v '^ *+' conftest.er1 >conftest.err
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } &&
23206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; } &&
23212 { ac_try='test -s conftest.$ac_objext'
23213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; }; then
23218 ac_cv_struct_boundary_void_p=$ac_size
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23225 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23230 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23231 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6
23232 if test x$ac_cv_struct_boundary_void_p = x ; then
23233 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23234 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23235 { (exit 1); exit 1; }; }
23238 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23239 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
23240 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23244 cat >conftest.$ac_ext <<_ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23250 #include "confdefs.h"
23251 #include <sys/types.h>
23257 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23262 rm -f conftest.$ac_objext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23264 (eval $ac_compile) 2>conftest.er1
23266 grep -v '^ *+' conftest.er1 >conftest.err
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; } &&
23277 { ac_try='test -s conftest.$ac_objext'
23278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279 (eval $ac_try) 2>&5
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; }; then
23283 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23290 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23296 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23297 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23298 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23299 { (exit 1); exit 1; }; }
23301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23302 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
23306 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23307 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
23308 if test x$endian = x1 ; then
23314 trace="$trace_endian"
23316 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23318 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23319 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23320 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23321 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23323 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23324 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23326 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23328 # sizeof float/double are not tested since IEEE 754 is assumed.
23329 # Check README.IEEE for rational.
23331 # The numbers after the _ in the arch name are the maximal packing boundary.
23332 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23333 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23335 l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_arch_name=little32_1;;
23336 l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_arch_name=little32_2;;
23337 l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_arch_name=little32_4;;
23338 l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_arch_name=little32_8;;
23340 l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_arch_name=little64;;
23342 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_arch_name=big32;;
23343 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_arch_name=big32_8_4;;
23344 B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_arch_name=big32_4;;
23345 B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_arch_name=big32_2;;
23347 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_arch_name=big64;;
23348 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_arch_name=big64_8_4;;
23350 if test x$gras_arch = xunknown ; then
23351 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23352 echo "${ECHO_T}damnit ($trace)" >&6
23353 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23354 Please report this architecture trace ($trace) and what it corresponds to." >&5
23355 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23356 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23357 { (exit 1); exit 1; }; }
23359 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23361 cat >>confdefs.h <<_ACEOF
23362 #define GRAS_THISARCH $gras_arch
23365 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23366 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
23368 echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23369 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6
23371 for s in $ac_cv_sizeof_char \
23372 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23373 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23376 if test $ac_cv_sizeof_max -lt $s ; then
23377 ac_cv_sizeof_max=$s
23380 echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23381 echo "${ECHO_T}$ac_cv_sizeof_max" >&6
23383 cat >>confdefs.h <<_ACEOF
23384 #define SIZEOF_MAX $ac_cv_sizeof_max
23389 # Check architecture signature end
23390 echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23391 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6
23392 cat >conftest.$ac_ext <<_ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 #include "confdefs.h"
23399 #include <sys/types.h>
23400 #include <stddef.h> /* offsetof() */
23401 struct s {char c; double d;};
23408 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23414 rm -f conftest.$ac_objext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23416 (eval $ac_compile) 2>conftest.er1
23418 grep -v '^ *+' conftest.er1 >conftest.err
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } &&
23423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; } &&
23429 { ac_try='test -s conftest.$ac_objext'
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; }; then
23435 gras_struct_packed=yes
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23440 gras_struct_packed=no
23442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23444 echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23445 echo "${ECHO_T}$gras_struct_packed" >&6
23446 if test x$gras_struct_packed = "xyes" ; then
23447 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23448 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23449 { (exit 1); exit 1; }; }
23452 echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23453 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6
23454 cat >conftest.$ac_ext <<_ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h. */
23460 #include "confdefs.h"
23461 #include <sys/types.h>
23462 #include <stddef.h> /* offsetof() */
23463 struct s {double d; int i; char c;};
23470 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23476 rm -f conftest.$ac_objext
23477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23478 (eval $ac_compile) 2>conftest.er1
23480 grep -v '^ *+' conftest.er1 >conftest.err
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } &&
23485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23487 (eval $ac_try) 2>&5
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); }; } &&
23491 { ac_try='test -s conftest.$ac_objext'
23492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493 (eval $ac_try) 2>&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); }; }; then
23497 gras_struct_compact=yes
23499 echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23502 gras_struct_compact=no
23504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23506 echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23507 echo "${ECHO_T}$gras_struct_compact" >&6
23509 if test x$gras_struct_compact != xyes ; then
23510 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23511 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23512 { (exit 1); exit 1; }; }
23515 cat >>confdefs.h <<_ACEOF
23516 #define GRAS_STRUCT_COMPACT 1
23519 echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23520 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6
23522 cat >conftest.$ac_ext <<_ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 #include "confdefs.h"
23529 #include <sys/types.h>
23530 #include <stddef.h> /* offsetof() */
23531 struct s { double d; int i; char c[6]; };
23538 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23544 rm -f conftest.$ac_objext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23546 (eval $ac_compile) 2>conftest.er1
23548 grep -v '^ *+' conftest.er1 >conftest.err
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
23553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; } &&
23559 { ac_try='test -s conftest.$ac_objext'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; }; then
23565 gras_array_straddle_struct=yes
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 gras_array_straddle_struct=no
23572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23574 echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23575 echo "${ECHO_T}$gras_array_straddle_struct" >&6
23577 if test x$gras_array_straddle_struct = xyes ; then
23579 cat >>confdefs.h <<_ACEOF
23580 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23584 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23585 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23586 { (exit 1); exit 1; }; }
23593 echo "$as_me:$LINENO: result: " >&5
23594 echo "${ECHO_T}" >&6
23595 echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23596 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6
23601 echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23602 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6
23603 if test "${ac_cv_check_mcsc+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23607 if test "$cross_compiling" = yes; then
23608 ac_cv_check_mcsc=no
23611 cat >conftest.$ac_ext <<_ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h. */
23620 #include <stdlib.h>
23621 #include <ucontext.h>
23623 ucontext_t uc_child;
23624 ucontext_t uc_main;
23626 void child(void *arg)
23628 if (arg != (void *)2147483648)
23630 if (swapcontext(&uc_child, &uc_main) != 0)
23634 int main(int argc, char *argv[])
23639 /* the default is that it fails */
23640 if ((fp = fopen("conftestval", "w")) == NULL)
23642 fprintf(fp, "no\n");
23645 /* configure a child user-space context */
23646 if ((stack = malloc(64*1024)) == NULL)
23648 if (getcontext(&uc_child) != 0)
23650 uc_child.uc_link = NULL;
23651 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
23652 uc_child.uc_stack.ss_size = 32*1024;
23653 uc_child.uc_stack.ss_flags = 0;
23654 makecontext(&uc_child, child, 2, (void *)2147483648);
23656 /* switch into the user context */
23657 if (swapcontext(&uc_main, &uc_child) != 0)
23660 /* Fine, child came home */
23661 if ((fp = fopen("conftestval", "w")) == NULL)
23663 fprintf(fp, "yes\n");
23666 /* die successfully */
23671 rm -f conftest$ac_exeext
23672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23673 (eval $ac_link) 2>&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23682 ac_cv_check_mcsc=`cat conftestval`
23684 echo "$as_me: program exited with status $ac_status" >&5
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 ( exit $ac_status )
23689 ac_cv_check_mcsc=no
23691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23694 echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
23695 echo "${ECHO_T}$ac_cv_check_mcsc" >&6
23696 if test ".$ac_cv_check_mcsc" = .yes; then
23704 for ac_header in pthread.h
23706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23708 echo "$as_me:$LINENO: checking for $ac_header" >&5
23709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23711 echo $ECHO_N "(cached) $ECHO_C" >&6
23713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23716 # Is the header compilable?
23717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23719 cat >conftest.$ac_ext <<_ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 $ac_includes_default
23726 #include <$ac_header>
23728 rm -f conftest.$ac_objext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23730 (eval $ac_compile) 2>conftest.er1
23732 grep -v '^ *+' conftest.er1 >conftest.err
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } &&
23737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739 (eval $ac_try) 2>&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); }; } &&
23743 { ac_try='test -s conftest.$ac_objext'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; }; then
23749 ac_header_compiler=yes
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23754 ac_header_compiler=no
23756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23758 echo "${ECHO_T}$ac_header_compiler" >&6
23760 # Is the header present?
23761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 #include <$ac_header>
23771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23774 grep -v '^ *+' conftest.er1 >conftest.err
23776 cat conftest.err >&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } >/dev/null; then
23779 if test -s conftest.err; then
23780 ac_cpp_err=$ac_c_preproc_warn_flag
23781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23788 if test -z "$ac_cpp_err"; then
23789 ac_header_preproc=yes
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23794 ac_header_preproc=no
23796 rm -f conftest.err conftest.$ac_ext
23797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23798 echo "${ECHO_T}$ac_header_preproc" >&6
23800 # So? What about this header?
23801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23807 ac_header_preproc=yes
23810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23824 ## -------------------------------------------------- ##
23825 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
23826 ## -------------------------------------------------- ##
23829 sed "s/^/$as_me: WARNING: /" >&2
23832 echo "$as_me:$LINENO: checking for $ac_header" >&5
23833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23835 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 eval "$as_ac_Header=\$ac_header_preproc"
23839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23844 cat >>confdefs.h <<_ACEOF
23845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23852 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23853 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
23854 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23857 ac_check_lib_save_LIBS=$LIBS
23858 LIBS="-lpthread $LIBS"
23859 cat >conftest.$ac_ext <<_ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23866 /* Override any gcc2 internal prototype to avoid an error. */
23870 /* We use char because int might match the return type of a gcc2
23871 builtin and then its argument prototype would still apply. */
23872 char pthread_create ();
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883 (eval $ac_link) 2>conftest.er1
23885 grep -v '^ *+' conftest.er1 >conftest.err
23887 cat conftest.err >&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
23890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; } &&
23896 { ac_try='test -s conftest$ac_exeext'
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 ac_cv_lib_pthread_pthread_create=yes
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23907 ac_cv_lib_pthread_pthread_create=no
23909 rm -f conftest.err conftest.$ac_objext \
23910 conftest$ac_exeext conftest.$ac_ext
23911 LIBS=$ac_check_lib_save_LIBS
23913 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23914 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23915 if test $ac_cv_lib_pthread_pthread_create = yes; then
23923 if test ".$mcsc" = .yes; then
23925 elif test ".$pthread" = .yes; then
23928 ac_header=windows.h
23929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23931 windows_context=yes
23933 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
23934 echo "$as_me: error: no appropriate backend found" >&2;}
23935 { (exit 1); exit 1; }; }
23940 echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
23941 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6
23944 # Check whether --with-pthread or --without-pthread was given.
23945 if test "${with_pthread+set}" = set; then
23946 withval="$with_pthread"
23947 with_context=pthread
23950 # Check whether --with-pthread or --without-pthread was given.
23951 if test "${with_pthread+set}" = set; then
23952 withval="$with_pthread"
23953 with_context=pthread
23957 # Check whether --with-context or --without-context was given.
23958 if test "${with_context+set}" = set; then
23959 withval="$with_context"
23965 if test "x$with_context$mcsc" = "xucontextno" ; then
23966 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
23967 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
23968 { (exit 77); exit 77; }; }
23971 case $with_context in
23976 auto) with_context=ucontext;;
23977 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
23978 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
23979 { (exit 1); exit 1; }; } ;;
23982 if test "x$with_context" = "xucontext" ; then
23983 if test ".$mcsc" = .yes; then
23984 echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
23985 echo "${ECHO_T}found working ucontext. Great!" >&6
23987 cat >>confdefs.h <<\_ACEOF
23988 #define CONTEXT_UCONTEXT 1
23992 if test ".$windows_context" = .yes ; then
23993 echo "$as_me:$LINENO: result: use windows context portability layer." >&5
23994 echo "${ECHO_T}use windows context portability layer." >&6
23995 with_context=windows
23997 echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
23998 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6
23999 with_context=pthread
24004 if test "x$with_context" = "xpthreads"; then
24005 with_context=pthread
24007 if test "x$with_context" = "xpthread"; then
24009 for ac_header in pthread.h
24011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24013 echo "$as_me:$LINENO: checking for $ac_header" >&5
24014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24016 echo $ECHO_N "(cached) $ECHO_C" >&6
24018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24021 # Is the header compilable?
24022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24024 cat >conftest.$ac_ext <<_ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 $ac_includes_default
24031 #include <$ac_header>
24033 rm -f conftest.$ac_objext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24035 (eval $ac_compile) 2>conftest.er1
24037 grep -v '^ *+' conftest.er1 >conftest.err
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } &&
24042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044 (eval $ac_try) 2>&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); }; } &&
24048 { ac_try='test -s conftest.$ac_objext'
24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050 (eval $ac_try) 2>&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; }; then
24054 ac_header_compiler=yes
24056 echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24059 ac_header_compiler=no
24061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24063 echo "${ECHO_T}$ac_header_compiler" >&6
24065 # Is the header present?
24066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24068 cat >conftest.$ac_ext <<_ACEOF
24071 cat confdefs.h >>conftest.$ac_ext
24072 cat >>conftest.$ac_ext <<_ACEOF
24073 /* end confdefs.h. */
24074 #include <$ac_header>
24076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24079 grep -v '^ *+' conftest.er1 >conftest.err
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } >/dev/null; then
24084 if test -s conftest.err; then
24085 ac_cpp_err=$ac_c_preproc_warn_flag
24086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24093 if test -z "$ac_cpp_err"; then
24094 ac_header_preproc=yes
24096 echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24099 ac_header_preproc=no
24101 rm -f conftest.err conftest.$ac_ext
24102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24103 echo "${ECHO_T}$ac_header_preproc" >&6
24105 # So? What about this header?
24106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24112 ac_header_preproc=yes
24115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24129 ## -------------------------------------------------- ##
24130 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24131 ## -------------------------------------------------- ##
24134 sed "s/^/$as_me: WARNING: /" >&2
24137 echo "$as_me:$LINENO: checking for $ac_header" >&5
24138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
24142 eval "$as_ac_Header=\$ac_header_preproc"
24144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24149 cat >>confdefs.h <<_ACEOF
24150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24158 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24159 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24160 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24161 echo $ECHO_N "(cached) $ECHO_C" >&6
24163 ac_check_lib_save_LIBS=$LIBS
24164 LIBS="-lpthread $LIBS"
24165 cat >conftest.$ac_ext <<_ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24172 /* Override any gcc2 internal prototype to avoid an error. */
24176 /* We use char because int might match the return type of a gcc2
24177 builtin and then its argument prototype would still apply. */
24178 char pthread_create ();
24187 rm -f conftest.$ac_objext conftest$ac_exeext
24188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24189 (eval $ac_link) 2>conftest.er1
24191 grep -v '^ *+' conftest.er1 >conftest.err
24193 cat conftest.err >&5
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); } &&
24196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; } &&
24202 { ac_try='test -s conftest$ac_exeext'
24203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204 (eval $ac_try) 2>&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); }; }; then
24208 ac_cv_lib_pthread_pthread_create=yes
24210 echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ac_cv_lib_pthread_pthread_create=no
24215 rm -f conftest.err conftest.$ac_objext \
24216 conftest$ac_exeext conftest.$ac_ext
24217 LIBS=$ac_check_lib_save_LIBS
24219 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24220 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24221 if test $ac_cv_lib_pthread_pthread_create = yes; then
24222 cat >>confdefs.h <<_ACEOF
24223 #define HAVE_LIBPTHREAD 1
24226 LIBS="-lpthread $LIBS"
24229 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24230 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24231 { (exit 1); exit 1; }; }
24235 cat >>confdefs.h <<\_ACEOF
24236 #define CONTEXT_THREADS 1
24239 echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24240 echo "${ECHO_T}You have pthreads. Let's use them." >&6
24244 if test "x$with_context" = "xucontext" ; then
24245 echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24246 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6
24247 if test "${ac_cv_check_stackgrowth+set}" = set; then
24248 echo $ECHO_N "(cached) $ECHO_C" >&6
24252 if test "$cross_compiling" = yes; then
24253 ac_cv_check_stackgrowth=down
24256 cat >conftest.$ac_ext <<_ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h. */
24264 #include <stdlib.h>
24265 static int iterate = 10;
24266 static int growsdown(int *x)
24276 int main(int argc, char *argv[])
24280 if ((f = fopen("conftestval", "w")) == NULL)
24282 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24289 rm -f conftest$ac_exeext
24290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24291 (eval $ac_link) 2>&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; }; then
24300 ac_cv_check_stackgrowth=`cat conftestval`
24302 echo "$as_me: program exited with status $ac_status" >&5
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24306 ( exit $ac_status )
24307 ac_cv_check_stackgrowth=down
24309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24312 echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24313 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6
24314 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24320 cat >>confdefs.h <<_ACEOF
24321 #define PTH_STACKGROWTH $val
24325 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24326 PTH_STACK_GROWTH="down"
24328 PTH_STACK_GROWTH="up"
24336 for ac_func in makecontext
24338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24339 echo "$as_me:$LINENO: checking for $ac_func" >&5
24340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24341 if eval "test \"\${$as_ac_var+set}\" = set"; then
24342 echo $ECHO_N "(cached) $ECHO_C" >&6
24344 cat >conftest.$ac_ext <<_ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24352 #define $ac_func innocuous_$ac_func
24354 /* System header to define __stub macros and hopefully few prototypes,
24355 which can conflict with char $ac_func (); below.
24356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24357 <limits.h> exists even on freestanding compilers. */
24360 # include <limits.h>
24362 # include <assert.h>
24367 /* Override any gcc2 internal prototype to avoid an error. */
24372 /* We use char because int might match the return type of a gcc2
24373 builtin and then its argument prototype would still apply. */
24375 /* The GNU C library defines this for functions which it implements
24376 to always fail with ENOSYS. Some functions are actually named
24377 something starting with __ and the normal name is an alias. */
24378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24381 char (*f) () = $ac_func;
24390 return f != $ac_func;
24395 rm -f conftest.$ac_objext conftest$ac_exeext
24396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24397 (eval $ac_link) 2>conftest.er1
24399 grep -v '^ *+' conftest.er1 >conftest.err
24401 cat conftest.err >&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } &&
24404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406 (eval $ac_try) 2>&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); }; } &&
24410 { ac_try='test -s conftest$ac_exeext'
24411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24412 (eval $ac_try) 2>&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; }; then
24416 eval "$as_ac_var=yes"
24418 echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24421 eval "$as_ac_var=no"
24423 rm -f conftest.err conftest.$ac_objext \
24424 conftest$ac_exeext conftest.$ac_ext
24426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24428 if test `eval echo '${'$as_ac_var'}'` = yes; then
24429 cat >>confdefs.h <<_ACEOF
24430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24437 echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24438 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6
24439 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24440 echo $ECHO_N "(cached) $ECHO_C" >&6
24443 if test ".$ac_cv_func_makecontext" = .no; then
24444 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24447 CFLAGS="$CFLAGS -DTEST_makecontext"
24449 if test "$cross_compiling" = yes; then
24451 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24454 cat >conftest.$ac_ext <<_ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h. */
24462 #include <stdlib.h>
24463 #include <string.h>
24464 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24465 #include <sys/types.h>
24466 #include <signal.h>
24467 #include <unistd.h>
24469 #if defined(TEST_makecontext)
24470 #include <ucontext.h>
24479 static volatile char *handler_addr = (char *)0xDEAD;
24480 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24481 static volatile int handler_done = 0;
24482 void handler(int sig)
24484 char garbage[1024];
24487 for (i = 0; i < 1024; i++)
24489 handler_addr = (char *)&dummy;
24494 #if defined(TEST_makecontext)
24495 static ucontext_t uc_handler;
24496 static ucontext_t uc_main;
24499 char garbage[1024];
24502 for (i = 0; i < 1024; i++)
24504 handler_addr = (char *)&dummy;
24505 swapcontext(&uc_handler, &uc_main);
24509 int main(int argc, char *argv[])
24518 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24521 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24523 skaddr = skbuf+sizeof(union alltypes);
24524 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24526 struct sigaction sa;
24527 #if defined(TEST_sigstack)
24528 struct sigstack ss;
24529 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24532 struct sigaltstack ss;
24534 #if defined(TEST_sigstack)
24535 ss.ss_sp = (void *)(skaddr + sksize);
24537 if (sigstack(&ss, NULL) < 0)
24539 #elif defined(TEST_sigaltstack)
24540 ss.ss_sp = (void *)(skaddr + sksize);
24541 ss.ss_size = sksize;
24543 if (sigaltstack(&ss, NULL) < 0)
24546 memset((void *)&sa, 0, sizeof(struct sigaction));
24547 sa.sa_handler = handler;
24548 sa.sa_flags = SA_ONSTACK;
24549 sigemptyset(&sa.sa_mask);
24550 sigaction(SIGUSR1, &sa, NULL);
24551 kill(getpid(), SIGUSR1);
24552 while (!handler_done)
24556 #if defined(TEST_makecontext)
24558 if (getcontext(&uc_handler) != 0)
24560 uc_handler.uc_link = NULL;
24561 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
24562 uc_handler.uc_stack.ss_size = sksize;
24563 uc_handler.uc_stack.ss_flags = 0;
24564 makecontext(&uc_handler, handler, 1);
24565 swapcontext(&uc_main, &uc_handler);
24568 if (handler_addr == (char *)0xDEAD)
24570 if (handler_addr < skaddr+sksize) {
24571 /* stack was placed into lower area */
24572 if (*(skaddr+sksize) != 'A')
24573 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24574 sizeof(union alltypes), sizeof(union alltypes));
24576 strcpy(result, "(skaddr)+(sksize),(sksize)");
24579 /* stack was placed into higher area */
24580 if (*(skaddr+sksize*2) != 'A')
24581 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24583 strcpy(result, "(skaddr),(sksize)");
24585 if ((f = fopen("conftestval", "w")) == NULL)
24587 fprintf(f, "%s\n", result);
24593 rm -f conftest$ac_exeext
24594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24595 (eval $ac_link) 2>&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600 (eval $ac_try) 2>&5
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); }; }; then
24605 ac_cv_stacksetup_makecontext=`cat conftestval`
24606 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
24609 echo "$as_me: program exited with status $ac_status" >&5
24610 echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24613 ( exit $ac_status )
24615 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24624 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
24625 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
24626 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
24627 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
24628 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
24629 echo "$as_me:$LINENO: result: $type" >&5
24630 echo "${ECHO_T}$type" >&6
24631 if test ".$verbose" = .yes; then
24632 echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
24633 echo "${ECHO_T} $pth_skaddr_makecontext" >&6
24636 if test ".$verbose" = .yes; then
24637 echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
24638 echo "${ECHO_T} $pth_sksize_makecontext" >&6
24645 #########################################
24646 ## Build optional modules (simix)
24649 echo "$as_me:$LINENO: result: " >&5
24650 echo "${ECHO_T}" >&6
24651 echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
24652 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6
24654 # Check whether --enable-simix or --disable-simix was given.
24655 if test "${enable_simix+set}" = set; then
24656 enableval="$enable_simix"
24657 enable_simix=$enableval
24661 if test "x$enable_simix" = "xyes" ; then
24662 echo "$as_me:$LINENO: result: \"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&5
24663 echo "${ECHO_T}\"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&6
24665 cat >>confdefs.h <<\_ACEOF
24666 #define USE_SIMIX 1
24670 echo "$as_me:$LINENO: result: Eventually you will come to SimIX: x$enable_simix" >&5
24671 echo "${ECHO_T}Eventually you will come to SimIX: x$enable_simix" >&6
24675 if test x$enable_simix != xno; then
24677 USE_SIMIX_FALSE='#'
24684 #########################################
24685 ## Check for libraries extra-dependencies
24689 echo "$as_me:$LINENO: result: " >&5
24690 echo "${ECHO_T}" >&6
24691 echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
24692 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6
24697 if test xpthread=xyes ; then
24698 # if the pthreads are usable
24699 if test "x$with_context" = "xpthread" ; then
24700 # if we use them to implement the xbt_context
24701 SIMGRID_DEP="-lpthread"
24703 # we need them in any case for the gras lib (which is multithreaded)
24704 GRAS_DEP="-lpthread"
24707 echo "$as_me:$LINENO: checking for csdp" >&5
24708 echo $ECHO_N "checking for csdp... $ECHO_C" >&6
24710 echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
24711 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6
24712 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
24713 echo $ECHO_N "(cached) $ECHO_C" >&6
24715 ac_check_lib_save_LIBS=$LIBS
24716 LIBS="-lsdp -llapack -lblas -lm $LIBS"
24717 cat >conftest.$ac_ext <<_ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h. */
24724 /* Override any gcc2 internal prototype to avoid an error. */
24728 /* We use char because int might match the return type of a gcc2
24729 builtin and then its argument prototype would still apply. */
24739 rm -f conftest.$ac_objext conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741 (eval $ac_link) 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } &&
24748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750 (eval $ac_try) 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; } &&
24754 { ac_try='test -s conftest$ac_exeext'
24755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24756 (eval $ac_try) 2>&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); }; }; then
24760 ac_cv_lib_sdp_sdp=yes
24762 echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24765 ac_cv_lib_sdp_sdp=no
24767 rm -f conftest.err conftest.$ac_objext \
24768 conftest$ac_exeext conftest.$ac_ext
24769 LIBS=$ac_check_lib_save_LIBS
24771 echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
24772 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6
24773 if test $ac_cv_lib_sdp_sdp = yes; then
24779 if test "x$csdp" = xyes; then
24780 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
24781 echo "$as_me:$LINENO: result: Found working sdp library." >&5
24782 echo "${ECHO_T}Found working sdp library." >&6
24784 cat >>confdefs.h <<\_ACEOF
24789 echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
24790 echo "${ECHO_T}Could not find any working sdp library." >&6
24794 if test x$csdp != xno; then
24805 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24806 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24807 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24808 echo $ECHO_N "(cached) $ECHO_C" >&6
24810 ac_check_lib_save_LIBS=$LIBS
24812 cat >conftest.$ac_ext <<_ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24819 /* Override any gcc2 internal prototype to avoid an error. */
24823 /* We use char because int might match the return type of a gcc2
24824 builtin and then its argument prototype would still apply. */
24825 char gethostbyname ();
24834 rm -f conftest.$ac_objext conftest$ac_exeext
24835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24836 (eval $ac_link) 2>conftest.er1
24838 grep -v '^ *+' conftest.er1 >conftest.err
24840 cat conftest.err >&5
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); } &&
24843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; } &&
24849 { ac_try='test -s conftest$ac_exeext'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; }; then
24855 ac_cv_lib_nsl_gethostbyname=yes
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24860 ac_cv_lib_nsl_gethostbyname=no
24862 rm -f conftest.err conftest.$ac_objext \
24863 conftest$ac_exeext conftest.$ac_ext
24864 LIBS=$ac_check_lib_save_LIBS
24866 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24867 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24868 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24869 GRAS_DEP="$GRAS_DEP -lnsl"
24872 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24873 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24874 if test "${ac_cv_lib_socket_connect+set}" = set; then
24875 echo $ECHO_N "(cached) $ECHO_C" >&6
24877 ac_check_lib_save_LIBS=$LIBS
24878 LIBS="-lsocket $LIBS"
24879 cat >conftest.$ac_ext <<_ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24886 /* Override any gcc2 internal prototype to avoid an error. */
24890 /* We use char because int might match the return type of a gcc2
24891 builtin and then its argument prototype would still apply. */
24901 rm -f conftest.$ac_objext conftest$ac_exeext
24902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24903 (eval $ac_link) 2>conftest.er1
24905 grep -v '^ *+' conftest.er1 >conftest.err
24907 cat conftest.err >&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } &&
24910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912 (eval $ac_try) 2>&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); }; } &&
24916 { ac_try='test -s conftest$ac_exeext'
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; }; then
24922 ac_cv_lib_socket_connect=yes
24924 echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24927 ac_cv_lib_socket_connect=no
24929 rm -f conftest.err conftest.$ac_objext \
24930 conftest$ac_exeext conftest.$ac_ext
24931 LIBS=$ac_check_lib_save_LIBS
24933 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24934 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24935 if test $ac_cv_lib_socket_connect = yes; then
24936 GRAS_DEP="$GRAS_DEP -lsocket"
24940 echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
24941 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6
24943 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
24944 AM_CFLAGS=-DDLL_EXPORT
24946 cat >>confdefs.h <<\_ACEOF
24947 #define CONTEXT_THREADS 1
24952 if test "x$GRAS_DEP" = x; then
24953 echo "$as_me:$LINENO: result: none" >&5
24954 echo "${ECHO_T}none" >&6
24956 echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
24957 echo "${ECHO_T}$GRAS_DEP" >&6
24962 ##############################################
24963 ## Enhance maintainer mode and SUBST variables
24964 ## (must be placed after any compilation tests since our overprotective flags
24965 ## let some tests fail)
24967 # Check whether we are doing a regular build or a GRAMINE (minimal) one
24968 # Next line is modified by sed when building gramine source tree
24970 if test x$gramine_mode = xyes
24972 USE_MAINTAINER_MODE=no
24976 if test x$gramine_mode != xno; then
24978 GRAMINE_MODE_FALSE='#'
24980 GRAMINE_MODE_TRUE='#'
24981 GRAMINE_MODE_FALSE=
24986 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24987 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24988 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24989 if test "${enable_maintainer_mode+set}" = set; then
24990 enableval="$enable_maintainer_mode"
24991 USE_MAINTAINER_MODE=$enableval
24993 USE_MAINTAINER_MODE=no
24995 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24996 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
24999 if test $USE_MAINTAINER_MODE = yes; then
25000 MAINTAINER_MODE_TRUE=
25001 MAINTAINER_MODE_FALSE='#'
25003 MAINTAINER_MODE_TRUE='#'
25004 MAINTAINER_MODE_FALSE=
25007 MAINT=$MAINTAINER_MODE_TRUE
25010 if test x$USE_MAINTAINER_MODE = xyes
25012 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25013 enable_compile_warnings=yes
25016 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
25017 if test "${enable_compile_warnings+set}" = set; then
25018 enableval="$enable_compile_warnings"
25019 enable_compile_warnings=$enableval
25021 enable_compile_warnings=no
25024 # Check whether --enable-compile-optimizations or --disable-compile-optimizations was given.
25025 if test "${enable_compile_optimizations+set}" = set; then
25026 enableval="$enable_compile_optimizations"
25027 enable_compile_optimizations=$enableval
25029 enable_compile_optimizations=auto
25032 if test "x$cflags_set" != "xyes" ; then
25033 # if user didn't specify CFLAGS explicitely
25035 # AC PROG CC tests whether -g is accepted.
25036 # Cool, but it also tries to set -O2. I don't want it with gcc
25037 saveCFLAGS="$CFLAGS"
25039 case " $saveCFLAGS " in
25040 *-g*) CFLAGS="-g" ;;
25042 case " $saveCFLAGS " in
25043 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25046 # damn AC PROG CC, why did you set -O??
25050 if test "x$enable_compile_warnings" = "xyes" ; then
25051 echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25052 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6
25054 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25055 case " $CFLAGS " in
25057 *) warnCFLAGS="-Wall -Wunused" ;;
25060 ## -W is not all that useful. And it cannot be controlled
25061 ## with individual -Wno-xxx flags, unlike -Wall
25063 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25064 ## -Wshadow chokes on try{ try{} } constructs
25065 if test "x$enable_compile_warnings" = "xyes"; then
25066 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25067 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25068 -Wno-unused-function \
25071 # -Wno-unused-variable -Wno-unused-label
25074 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25075 echo "${ECHO_T}$warnCFLAGS" >&6
25076 # placed before since gcc remembers the last one on conflict
25077 CFLAGS="$warnCFLAGS $CFLAGS"
25080 if test "x$enable_compile_optimizations" = "xyes" ||
25081 test "x$enable_compile_optimizations" = "xauto" ; then
25082 echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25083 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6
25085 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25086 case " $CFLAGS " in
25088 *) optCFLAGS="$optCFLAGS -O3" ;;
25090 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25092 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25093 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25094 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25095 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25096 # isn't propagated enough to desserve an extra check
25098 # Note that the flag didn't exist before gcc 3.0
25099 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25102 echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25103 echo "${ECHO_T}$optCFLAGS" >&6
25104 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25105 if test "x$cflags_set" != "xyes" ; then
25106 CFLAGS="$optCFLAGS $CFLAGS"
25110 if test x$lt_cv_prog_gnu_ld = xyes ; then
25111 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25127 #####################
25128 ## Check for programs
25132 echo "$as_me:$LINENO: result: " >&5
25133 echo "${ECHO_T}" >&6
25134 echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25135 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6
25137 # Extract the first word of "bash", so it can be a program name with args.
25138 set dummy bash; ac_word=$2
25139 echo "$as_me:$LINENO: checking for $ac_word" >&5
25140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25141 if test "${ac_cv_prog_BASH+set}" = set; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 if test -n "$BASH"; then
25145 ac_cv_prog_BASH="$BASH" # Let the user override the test.
25147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25148 for as_dir in $PATH
25151 test -z "$as_dir" && as_dir=.
25152 for ac_exec_ext in '' $ac_executable_extensions; do
25153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25154 ac_cv_prog_BASH="`which bash`"
25155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25161 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25164 BASH=$ac_cv_prog_BASH
25165 if test -n "$BASH"; then
25166 echo "$as_me:$LINENO: result: $BASH" >&5
25167 echo "${ECHO_T}$BASH" >&6
25169 echo "$as_me:$LINENO: result: no" >&5
25170 echo "${ECHO_T}no" >&6
25173 WARNING="This file is generated, do not edit"
25177 # Can we rebuild the parsers?
25178 # We really want flex and refuse other lex. So, the parser is portable and
25179 # does not induce extra lib dependency
25180 for ac_prog in flex lex
25182 # Extract the first word of "$ac_prog", so it can be a program name with args.
25183 set dummy $ac_prog; ac_word=$2
25184 echo "$as_me:$LINENO: checking for $ac_word" >&5
25185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25186 if test "${ac_cv_prog_LEX+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25189 if test -n "$LEX"; then
25190 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25193 for as_dir in $PATH
25196 test -z "$as_dir" && as_dir=.
25197 for ac_exec_ext in '' $ac_executable_extensions; do
25198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25199 ac_cv_prog_LEX="$ac_prog"
25200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25208 LEX=$ac_cv_prog_LEX
25209 if test -n "$LEX"; then
25210 echo "$as_me:$LINENO: result: $LEX" >&5
25211 echo "${ECHO_T}$LEX" >&6
25213 echo "$as_me:$LINENO: result: no" >&5
25214 echo "${ECHO_T}no" >&6
25217 test -n "$LEX" && break
25219 test -n "$LEX" || LEX=":"
25221 if test -z "$LEXLIB"
25223 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
25224 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
25225 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
25226 echo $ECHO_N "(cached) $ECHO_C" >&6
25228 ac_check_lib_save_LIBS=$LIBS
25230 cat >conftest.$ac_ext <<_ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h. */
25237 /* Override any gcc2 internal prototype to avoid an error. */
25241 /* We use char because int might match the return type of a gcc2
25242 builtin and then its argument prototype would still apply. */
25252 rm -f conftest.$ac_objext conftest$ac_exeext
25253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25254 (eval $ac_link) 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } &&
25261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25263 (eval $ac_try) 2>&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); }; } &&
25267 { ac_try='test -s conftest$ac_exeext'
25268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; }; then
25273 ac_cv_lib_fl_yywrap=yes
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25278 ac_cv_lib_fl_yywrap=no
25280 rm -f conftest.err conftest.$ac_objext \
25281 conftest$ac_exeext conftest.$ac_ext
25282 LIBS=$ac_check_lib_save_LIBS
25284 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
25285 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
25286 if test $ac_cv_lib_fl_yywrap = yes; then
25289 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
25290 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
25291 if test "${ac_cv_lib_l_yywrap+set}" = set; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25294 ac_check_lib_save_LIBS=$LIBS
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25303 /* Override any gcc2 internal prototype to avoid an error. */
25307 /* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320 (eval $ac_link) 2>conftest.er1
25322 grep -v '^ *+' conftest.er1 >conftest.err
25324 cat conftest.err >&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
25327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; } &&
25333 { ac_try='test -s conftest$ac_exeext'
25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; }; then
25339 ac_cv_lib_l_yywrap=yes
25341 echo "$as_me: failed program was:" >&5
25342 sed 's/^/| /' conftest.$ac_ext >&5
25344 ac_cv_lib_l_yywrap=no
25346 rm -f conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
25348 LIBS=$ac_check_lib_save_LIBS
25350 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
25351 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
25352 if test $ac_cv_lib_l_yywrap = yes; then
25360 if test "x$LEX" != "x:"; then
25361 echo "$as_me:$LINENO: checking lex output file root" >&5
25362 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
25363 if test "${ac_cv_prog_lex_root+set}" = set; then
25364 echo $ECHO_N "(cached) $ECHO_C" >&6
25366 # The minimal lex program is just a single line: %%. But some broken lexes
25367 # (Solaris, I think it was) want two %% lines, so accommodate them.
25368 cat >conftest.l <<_ACEOF
25372 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
25373 (eval $LEX conftest.l) 2>&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }
25377 if test -f lex.yy.c; then
25378 ac_cv_prog_lex_root=lex.yy
25379 elif test -f lexyy.c; then
25380 ac_cv_prog_lex_root=lexyy
25382 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25383 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25384 { (exit 1); exit 1; }; }
25387 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25388 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
25390 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25392 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25393 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
25394 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25395 echo $ECHO_N "(cached) $ECHO_C" >&6
25397 # POSIX says lex can declare yytext either as a pointer or an array; the
25398 # default is implementation-dependent. Figure out which it is, since
25399 # not all implementations provide the %pointer and %array declarations.
25400 ac_cv_prog_lex_yytext_pointer=no
25401 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
25403 LIBS="$LIBS $LEXLIB"
25404 cat >conftest.$ac_ext <<_ACEOF
25405 `cat $LEX_OUTPUT_ROOT.c`
25407 rm -f conftest.$ac_objext conftest$ac_exeext
25408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25409 (eval $ac_link) 2>conftest.er1
25411 grep -v '^ *+' conftest.er1 >conftest.err
25413 cat conftest.err >&5
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); } &&
25416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); }; } &&
25422 { ac_try='test -s conftest$ac_exeext'
25423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424 (eval $ac_try) 2>&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); }; }; then
25428 ac_cv_prog_lex_yytext_pointer=yes
25430 echo "$as_me: failed program was:" >&5
25431 sed 's/^/| /' conftest.$ac_ext >&5
25434 rm -f conftest.err conftest.$ac_objext \
25435 conftest$ac_exeext conftest.$ac_ext
25437 rm -f "${LEX_OUTPUT_ROOT}.c"
25440 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25441 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
25442 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25444 cat >>confdefs.h <<\_ACEOF
25445 #define YYTEXT_POINTER 1
25452 if test "$LEX" != flex; then
25453 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25454 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25455 LEX=${am_missing_run}flex
25459 if test "x2.5.30" != "x" ; then
25460 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25462 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25463 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25464 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25466 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25467 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25468 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25470 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25471 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
25472 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25474 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25475 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25476 LEX=${am_missing_run}flex
25480 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25481 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25487 # Can we rebuild the xml-lexers from the XML specification?
25488 # if not, simply touch the flex source files (which are distributed in
25489 # tarballs even if generated by flexml) and hope for the best.
25490 # Extract the first word of "flexml", so it can be a program name with args.
25491 set dummy flexml; ac_word=$2
25492 echo "$as_me:$LINENO: checking for $ac_word" >&5
25493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25494 if test "${ac_cv_prog_FLEXML+set}" = set; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25497 if test -n "$FLEXML"; then
25498 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25501 for as_dir in $PATH
25504 test -z "$as_dir" && as_dir=.
25505 for ac_exec_ext in '' $ac_executable_extensions; do
25506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25507 ac_cv_prog_FLEXML="`which flexml`"
25508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25514 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25517 FLEXML=$ac_cv_prog_FLEXML
25518 if test -n "$FLEXML"; then
25519 echo "$as_me:$LINENO: result: $FLEXML" >&5
25520 echo "${ECHO_T}$FLEXML" >&6
25522 echo "$as_me:$LINENO: result: no" >&5
25523 echo "${ECHO_T}no" >&6
25528 if test x$FLEXML != xNOTFOUND; then
25530 HAVE_FLEXML_FALSE='#'
25532 HAVE_FLEXML_TRUE='#'
25537 if test x$USE_MAINTAINER_MODE = xyes
25539 # Check for doxygen when in maintainer mode since dist* targets fail
25541 # Extract the first word of "doxygen", so it can be a program name with args.
25542 set dummy doxygen; ac_word=$2
25543 echo "$as_me:$LINENO: checking for $ac_word" >&5
25544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25545 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25546 echo $ECHO_N "(cached) $ECHO_C" >&6
25550 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25554 for as_dir in $PATH
25557 test -z "$as_dir" && as_dir=.
25558 for ac_exec_ext in '' $ac_executable_extensions; do
25559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25560 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25567 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25571 DOXYGEN=$ac_cv_path_DOXYGEN
25573 if test -n "$DOXYGEN"; then
25574 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25575 echo "${ECHO_T}$DOXYGEN" >&6
25577 echo "$as_me:$LINENO: result: no" >&5
25578 echo "${ECHO_T}no" >&6
25581 if test x$DOXYGEN = x ; then
25582 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25583 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25584 { (exit 1); exit 1; }; }
25588 # Can we extract really usable backtraces? (also need the popen function)
25589 # Extract the first word of "addr2line", so it can be a program name with args.
25590 set dummy addr2line; ac_word=$2
25591 echo "$as_me:$LINENO: checking for $ac_word" >&5
25592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25593 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25594 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25602 for as_dir in $PATH
25605 test -z "$as_dir" && as_dir=.
25606 for ac_exec_ext in '' $ac_executable_extensions; do
25607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25608 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25618 ADDR2LINE=$ac_cv_path_ADDR2LINE
25620 if test -n "$ADDR2LINE"; then
25621 echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
25622 echo "${ECHO_T}$ADDR2LINE" >&6
25624 echo "$as_me:$LINENO: result: no" >&5
25625 echo "${ECHO_T}no" >&6
25628 if test x$ADDR2LINE != x ; then
25630 cat >>confdefs.h <<_ACEOF
25631 #define ADDR2LINE "$ADDR2LINE"
25637 # Can we make status line about the compilation result?
25638 # Extract the first word of "md5sum", so it can be a program name with args.
25639 set dummy md5sum; ac_word=$2
25640 echo "$as_me:$LINENO: checking for $ac_word" >&5
25641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25642 if test "${ac_cv_prog_MD5SUM+set}" = set; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25645 if test -n "$MD5SUM"; then
25646 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
25648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25649 for as_dir in $PATH
25652 test -z "$as_dir" && as_dir=.
25653 for ac_exec_ext in '' $ac_executable_extensions; do
25654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25655 ac_cv_prog_MD5SUM="`which md5sum`"
25656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25664 MD5SUM=$ac_cv_prog_MD5SUM
25665 if test -n "$MD5SUM"; then
25666 echo "$as_me:$LINENO: result: $MD5SUM" >&5
25667 echo "${ECHO_T}$MD5SUM" >&6
25669 echo "$as_me:$LINENO: result: no" >&5
25670 echo "${ECHO_T}no" >&6
25673 if test x$MD5SUM != xno ; then
25674 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
25675 xargs cat| $MD5SUM | sed 's/ .*$//'`
25677 build_version="no_md5sum_binary"
25679 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
25682 ###################
25683 ## Makes the output
25688 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
25689 # src/amok/Makefile
25692 echo "$as_me:$LINENO: result: " >&5
25693 echo "${ECHO_T}" >&6
25694 echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
25695 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6
25698 # Core of the libraries
25700 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
25703 # Tools being embeeded in gramine (stub generator)
25704 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
25708 # GRAMINE_CUT_BEGIN
25710 # Tools NOT being embeeded in gramine
25711 ac_config_files="$ac_config_files tools/graspe-slave"
25716 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
25720 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
25725 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/run_msg_test examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl examples/gras/timer/Makefile examples/gras/timer/test_sg examples/gras/timer/test_rl examples/gras/chrono/Makefile examples/gras/chrono/test_sg examples/gras/chrono/test_rl examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl examples/gras/mmrpc/Makefile examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl examples/gras/pmm/Makefile examples/gras/pmm/test_sg examples/gras/pmm/test_rl examples/gras/all2all/Makefile examples/gras/all2all/test_sg examples/gras/all2all/test_rl examples/gras/p2p/Makefile examples/gras/p2p/chord/Makefile examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl examples/gras/p2p/can/Makefile examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
25728 # examples/gras/chord/test_sg examples/gras/chord/test_rl \
25729 # examples/gras/pastry/test_sg
25733 # examples/gras/saturate/Makefile examples/gras/saturate/test_sg
25734 # examples/gras/alnem/Makefile examples/gras/alnem/test_sg
25739 cat >confcache <<\_ACEOF
25740 # This file is a shell script that caches the results of configure
25741 # tests run on this system so they can be shared between configure
25742 # scripts and configure runs, see configure's option --config-cache.
25743 # It is not useful on other systems. If it contains results you don't
25744 # want to keep, you may remove or edit it.
25746 # config.status only pays attention to the cache file if you give it
25747 # the --recheck option to rerun configure.
25749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25751 # following values.
25755 # The following way of writing the cache mishandles newlines in values,
25756 # but we know of no workaround that is simple, portable, and efficient.
25757 # So, don't put newlines in cache variables' values.
25758 # Ultrix sh set writes to stderr and can't be redirected directly,
25759 # and sets the high bit in the cache file unless we assign to the vars.
25762 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25764 # `set' does not quote correctly, so add quotes (double-quote
25765 # substitution turns \\\\ into \\, and sed turns \\ into \).
25768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25771 # `set' quotes correctly as required by POSIX, so do not add quotes.
25773 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25780 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25782 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25784 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25785 if test -w $cache_file; then
25786 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25787 cat confcache >$cache_file
25789 echo "not updating unwritable cache $cache_file"
25794 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25795 # Let make expand exec_prefix.
25796 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25798 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25799 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25800 # trailing colons and then remove the whole line if VPATH becomes empty
25801 # (actually we leave an empty line to preserve line numbers).
25802 if test "x$srcdir" = x.; then
25803 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25804 s/:*\$(srcdir):*/:/;
25805 s/:*\${srcdir}:*/:/;
25807 s/^\([^=]*=[ ]*\):*/\1/;
25813 DEFS=-DHAVE_CONFIG_H
25817 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25818 # 1. Remove the extension, and $U if already installed.
25819 ac_i=`echo "$ac_i" |
25820 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25822 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25823 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25825 LIBOBJS=$ac_libobjs
25827 LTLIBOBJS=$ac_ltlibobjs
25830 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25831 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25832 Usually this means the macro was only invoked conditionally." >&5
25833 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25834 Usually this means the macro was only invoked conditionally." >&2;}
25835 { (exit 1); exit 1; }; }
25837 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25838 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25839 Usually this means the macro was only invoked conditionally." >&5
25840 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25841 Usually this means the macro was only invoked conditionally." >&2;}
25842 { (exit 1); exit 1; }; }
25844 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25845 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25846 Usually this means the macro was only invoked conditionally." >&5
25847 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25848 Usually this means the macro was only invoked conditionally." >&2;}
25849 { (exit 1); exit 1; }; }
25851 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25852 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25853 Usually this means the macro was only invoked conditionally." >&5
25854 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25855 Usually this means the macro was only invoked conditionally." >&2;}
25856 { (exit 1); exit 1; }; }
25858 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
25859 { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
25860 Usually this means the macro was only invoked conditionally." >&5
25861 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
25862 Usually this means the macro was only invoked conditionally." >&2;}
25863 { (exit 1); exit 1; }; }
25865 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
25866 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
25867 Usually this means the macro was only invoked conditionally." >&5
25868 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
25869 Usually this means the macro was only invoked conditionally." >&2;}
25870 { (exit 1); exit 1; }; }
25872 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
25873 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
25874 Usually this means the macro was only invoked conditionally." >&5
25875 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
25876 Usually this means the macro was only invoked conditionally." >&2;}
25877 { (exit 1); exit 1; }; }
25879 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25880 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25881 Usually this means the macro was only invoked conditionally." >&5
25882 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25883 Usually this means the macro was only invoked conditionally." >&2;}
25884 { (exit 1); exit 1; }; }
25886 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
25887 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
25888 Usually this means the macro was only invoked conditionally." >&5
25889 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
25890 Usually this means the macro was only invoked conditionally." >&2;}
25891 { (exit 1); exit 1; }; }
25894 : ${CONFIG_STATUS=./config.status}
25895 ac_clean_files_save=$ac_clean_files
25896 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25897 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25898 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25899 cat >$CONFIG_STATUS <<_ACEOF
25901 # Generated by $as_me.
25902 # Run this file to recreate the current configuration.
25903 # Compiler output produced by configure, useful for debugging
25904 # configure, is in config.log if it exists.
25907 ac_cs_recheck=false
25909 SHELL=\${CONFIG_SHELL-$SHELL}
25912 cat >>$CONFIG_STATUS <<\_ACEOF
25913 ## --------------------- ##
25914 ## M4sh Initialization. ##
25915 ## --------------------- ##
25917 # Be Bourne compatible
25918 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25921 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25922 # is contrary to our usage. Disable this feature.
25923 alias -g '${1+"$@"}'='"$@"'
25924 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25927 DUALCASE=1; export DUALCASE # for MKS sh
25929 # Support unset when possible.
25930 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25937 # Work around bugs in pre-3.0 UWIN ksh.
25938 $as_unset ENV MAIL MAILPATH
25945 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25946 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25947 LC_TELEPHONE LC_TIME
25949 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25950 eval $as_var=C; export $as_var
25956 # Required to use basename.
25957 if expr a : '\(a\)' >/dev/null 2>&1; then
25963 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25964 as_basename=basename
25970 # Name of the executable.
25971 as_me=`$as_basename "$0" ||
25972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25973 X"$0" : 'X\(//\)$' \| \
25974 X"$0" : 'X\(/\)$' \| \
25975 . : '\(.\)' 2>/dev/null ||
25977 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25978 /^X\/\(\/\/\)$/{ s//\1/; q; }
25979 /^X\/\(\/\).*/{ s//\1/; q; }
25983 # PATH needs CR, and LINENO needs CR and PATH.
25984 # Avoid depending upon Character Ranges.
25985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25988 as_cr_digits='0123456789'
25989 as_cr_alnum=$as_cr_Letters$as_cr_digits
25991 # The user is always right.
25992 if test "${PATH_SEPARATOR+set}" != set; then
25993 echo "#! /bin/sh" >conf$$.sh
25994 echo "exit 0" >>conf$$.sh
25996 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26005 as_lineno_1=$LINENO
26006 as_lineno_2=$LINENO
26007 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26008 test "x$as_lineno_1" != "x$as_lineno_2" &&
26009 test "x$as_lineno_3" = "x$as_lineno_2" || {
26010 # Find who we are. Look in the path if we contain no path at all
26013 *[\\/]* ) as_myself=$0 ;;
26014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26015 for as_dir in $PATH
26018 test -z "$as_dir" && as_dir=.
26019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26024 # We did not find ourselves, most probably we were run as `sh COMMAND'
26025 # in which case we are not to be found in the path.
26026 if test "x$as_myself" = x; then
26029 if test ! -f "$as_myself"; then
26030 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26031 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26032 { (exit 1); exit 1; }; }
26034 case $CONFIG_SHELL in
26036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26037 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26040 test -z "$as_dir" && as_dir=.
26041 for as_base in sh bash ksh sh5; do
26044 if ("$as_dir/$as_base" -c '
26045 as_lineno_1=$LINENO
26046 as_lineno_2=$LINENO
26047 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26048 test "x$as_lineno_1" != "x$as_lineno_2" &&
26049 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26050 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26051 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26052 CONFIG_SHELL=$as_dir/$as_base
26053 export CONFIG_SHELL
26054 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26062 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26063 # uniformly replaced by the line number. The first 'sed' inserts a
26064 # line-number line before each line; the second 'sed' does the real
26065 # work. The second script uses 'N' to pair each line-number line
26066 # with the numbered line, and appends trailing '-' during
26067 # substitution so that $LINENO is not a special case at line end.
26068 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26069 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26070 sed '=' <$as_myself |
26075 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26078 s,^['$as_cr_digits']*\n,,
26079 ' >$as_me.lineno &&
26080 chmod +x $as_me.lineno ||
26081 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26082 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26083 { (exit 1); exit 1; }; }
26085 # Don't try to exec as it changes $[0], causing all sort of problems
26086 # (the dirname of $[0] is not the place where we might find the
26087 # original and so on. Autoconf is especially sensible to this).
26089 # Exit status is that of the last command.
26094 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26095 *c*,-n*) ECHO_N= ECHO_C='
26097 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26098 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26101 if expr a : '\(a\)' >/dev/null 2>&1; then
26107 rm -f conf$$ conf$$.exe conf$$.file
26109 if ln -s conf$$.file conf$$ 2>/dev/null; then
26110 # We could just check for DJGPP; but this test a) works b) is more generic
26111 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26112 if test -f conf$$.exe; then
26113 # Don't use ln at all; we don't have any links
26118 elif ln conf$$.file conf$$ 2>/dev/null; then
26123 rm -f conf$$ conf$$.exe conf$$.file
26125 if mkdir -p . 2>/dev/null; then
26128 test -d ./-p && rmdir ./-p
26132 as_executable_p="test -f"
26134 # Sed expression to map a string onto a valid CPP name.
26135 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26137 # Sed expression to map a string onto a valid variable name.
26138 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26142 # We need space, tab and new line, in precisely that order.
26152 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26153 # report actual input values of CONFIG_FILES etc. instead of their
26154 # values after options handling. Logging --version etc. is OK.
26158 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26159 ## Running $as_me. ##
26164 This file was extended by simgrid $as_me 3.2-cvs, which was
26165 generated by GNU Autoconf 2.59. Invocation command line was
26167 CONFIG_FILES = $CONFIG_FILES
26168 CONFIG_HEADERS = $CONFIG_HEADERS
26169 CONFIG_LINKS = $CONFIG_LINKS
26170 CONFIG_COMMANDS = $CONFIG_COMMANDS
26174 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26178 # Files that config.status was made for.
26179 if test -n "$ac_config_files"; then
26180 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26183 if test -n "$ac_config_headers"; then
26184 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26187 if test -n "$ac_config_links"; then
26188 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26191 if test -n "$ac_config_commands"; then
26192 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26195 cat >>$CONFIG_STATUS <<\_ACEOF
26198 \`$as_me' instantiates files from templates according to the
26199 current configuration.
26201 Usage: $0 [OPTIONS] [FILE]...
26203 -h, --help print this help, then exit
26204 -V, --version print version number, then exit
26205 -q, --quiet do not print progress messages
26206 -d, --debug don't remove temporary files
26207 --recheck update $as_me by reconfiguring in the same conditions
26208 --file=FILE[:TEMPLATE]
26209 instantiate the configuration file FILE
26210 --header=FILE[:TEMPLATE]
26211 instantiate the configuration header FILE
26213 Configuration files:
26216 Configuration headers:
26219 Configuration commands:
26222 Report bugs to <bug-autoconf@gnu.org>."
26225 cat >>$CONFIG_STATUS <<_ACEOF
26227 simgrid config.status 3.2-cvs
26228 configured by $0, generated by GNU Autoconf 2.59,
26229 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26231 Copyright (C) 2003 Free Software Foundation, Inc.
26232 This config.status script is free software; the Free Software Foundation
26233 gives unlimited permission to copy, distribute and modify it."
26238 cat >>$CONFIG_STATUS <<\_ACEOF
26239 # If no file are specified by the user, then we need to provide default
26240 # value. By we need to know if files were specified by the user.
26246 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26247 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26255 *) # This is not an option, so the user has probably given explicit
26258 ac_need_defaults=false;;
26262 # Handling of the options.
26264 cat >>$CONFIG_STATUS <<\_ACEOF
26265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26267 --version | --vers* | -V )
26268 echo "$ac_cs_version"; exit 0 ;;
26270 # Conflict between --help and --header
26271 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26272 Try \`$0 --help' for more information." >&5
26273 echo "$as_me: error: ambiguous option: $1
26274 Try \`$0 --help' for more information." >&2;}
26275 { (exit 1); exit 1; }; };;
26276 --help | --hel | -h )
26277 echo "$ac_cs_usage"; exit 0 ;;
26278 --debug | --d* | -d )
26280 --file | --fil | --fi | --f )
26282 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26283 ac_need_defaults=false;;
26284 --header | --heade | --head | --hea )
26286 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26287 ac_need_defaults=false;;
26288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26289 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26292 # This is an error.
26293 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26294 Try \`$0 --help' for more information." >&5
26295 echo "$as_me: error: unrecognized option: $1
26296 Try \`$0 --help' for more information." >&2;}
26297 { (exit 1); exit 1; }; } ;;
26299 *) ac_config_targets="$ac_config_targets $1" ;;
26305 ac_configure_extra_args=
26307 if $ac_cs_silent; then
26309 ac_configure_extra_args="$ac_configure_extra_args --silent"
26313 cat >>$CONFIG_STATUS <<_ACEOF
26314 if \$ac_cs_recheck; then
26315 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26316 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26321 cat >>$CONFIG_STATUS <<_ACEOF
26323 # INIT-COMMANDS section.
26326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26332 cat >>$CONFIG_STATUS <<\_ACEOF
26333 for ac_config_target in $ac_config_targets
26335 case "$ac_config_target" in
26336 # Handling of arguments.
26337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26338 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26339 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26340 "src/ucontext_stack.h" ) CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26341 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26342 "tools/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26343 "tools/graspe-slave" ) CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26344 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26345 "testsuite/run_tests" ) CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26346 "testsuite/gras/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26347 "testsuite/gras/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26348 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26349 "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26350 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26351 "examples/msg/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26352 "examples/msg/run_msg_test" ) CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26353 "examples/simdag/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26354 "examples/simdag/test_simdag" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26355 "examples/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26356 "examples/gras/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26357 "examples/gras/ping/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26358 "examples/gras/ping/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26359 "examples/gras/rpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26360 "examples/gras/rpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26361 "examples/gras/rpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26362 "examples/gras/timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26363 "examples/gras/timer/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26364 "examples/gras/timer/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26365 "examples/gras/chrono/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26366 "examples/gras/chrono/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26367 "examples/gras/chrono/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26368 "examples/gras/mutual_exclusion/simple_token/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26369 "examples/gras/mutual_exclusion/simple_token/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26370 "examples/gras/mutual_exclusion/simple_token/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26371 "examples/gras/mmrpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26372 "examples/gras/mmrpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26373 "examples/gras/mmrpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26374 "examples/gras/pmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26375 "examples/gras/pmm/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26376 "examples/gras/pmm/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26377 "examples/gras/all2all/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26378 "examples/gras/all2all/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26379 "examples/gras/all2all/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26380 "examples/gras/p2p/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26381 "examples/gras/p2p/chord/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26382 "examples/gras/p2p/chord/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26383 "examples/gras/p2p/chord/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26384 "examples/gras/p2p/can/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26385 "examples/gras/p2p/can/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26386 "examples/gras/p2p/can/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26387 "examples/amok/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26388 "examples/amok/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26389 "examples/amok/bandwidth/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26390 "examples/amok/bandwidth/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26391 "examples/amok/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26392 "examples/amok/saturate/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26393 "examples/amok/saturate/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26394 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26395 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26396 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26397 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26398 { (exit 1); exit 1; }; };;
26402 # If the user did not use the arguments to specify the items to instantiate,
26403 # then the envvar interface is used. Set only those that are not.
26404 # We use the long form for the default assignment because of an extremely
26405 # bizarre bug on SunOS 4.1.3.
26406 if $ac_need_defaults; then
26407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26408 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26412 # Have a temporary directory for convenience. Make it in the build tree
26413 # simply because there is no reason to put it here, and in addition,
26414 # creating and moving files from /tmp can sometimes cause problems.
26415 # Create a temporary directory, and hook for its removal unless debugging.
26418 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26419 trap '{ (exit 1); exit 1; }' 1 2 13 15
26422 # Create a (secure) tmp directory for tmp files.
26425 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26426 test -n "$tmp" && test -d "$tmp"
26429 tmp=./confstat$$-$RANDOM
26430 (umask 077 && mkdir $tmp)
26433 echo "$me: cannot create a temporary directory in ." >&2
26434 { (exit 1); exit 1; }
26439 cat >>$CONFIG_STATUS <<_ACEOF
26442 # CONFIG_FILES section.
26445 # No need to generate the scripts if there are no CONFIG_FILES.
26446 # This happens for instance when ./config.status config.h
26447 if test -n "\$CONFIG_FILES"; then
26448 # Protect against being on the right side of a sed subst in config.status.
26449 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26450 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26451 s,@SHELL@,$SHELL,;t t
26452 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26453 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26454 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26455 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26456 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26457 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26458 s,@exec_prefix@,$exec_prefix,;t t
26459 s,@prefix@,$prefix,;t t
26460 s,@program_transform_name@,$program_transform_name,;t t
26461 s,@bindir@,$bindir,;t t
26462 s,@sbindir@,$sbindir,;t t
26463 s,@libexecdir@,$libexecdir,;t t
26464 s,@datadir@,$datadir,;t t
26465 s,@sysconfdir@,$sysconfdir,;t t
26466 s,@sharedstatedir@,$sharedstatedir,;t t
26467 s,@localstatedir@,$localstatedir,;t t
26468 s,@libdir@,$libdir,;t t
26469 s,@includedir@,$includedir,;t t
26470 s,@oldincludedir@,$oldincludedir,;t t
26471 s,@infodir@,$infodir,;t t
26472 s,@mandir@,$mandir,;t t
26473 s,@build_alias@,$build_alias,;t t
26474 s,@host_alias@,$host_alias,;t t
26475 s,@target_alias@,$target_alias,;t t
26476 s,@DEFS@,$DEFS,;t t
26477 s,@ECHO_C@,$ECHO_C,;t t
26478 s,@ECHO_N@,$ECHO_N,;t t
26479 s,@ECHO_T@,$ECHO_T,;t t
26480 s,@LIBS@,$LIBS,;t t
26481 s,@build@,$build,;t t
26482 s,@build_cpu@,$build_cpu,;t t
26483 s,@build_vendor@,$build_vendor,;t t
26484 s,@build_os@,$build_os,;t t
26485 s,@host@,$host,;t t
26486 s,@host_cpu@,$host_cpu,;t t
26487 s,@host_vendor@,$host_vendor,;t t
26488 s,@host_os@,$host_os,;t t
26489 s,@target@,$target,;t t
26490 s,@target_cpu@,$target_cpu,;t t
26491 s,@target_vendor@,$target_vendor,;t t
26492 s,@target_os@,$target_os,;t t
26493 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26494 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26495 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26496 s,@CYGPATH_W@,$CYGPATH_W,;t t
26497 s,@PACKAGE@,$PACKAGE,;t t
26498 s,@VERSION@,$VERSION,;t t
26499 s,@ACLOCAL@,$ACLOCAL,;t t
26500 s,@AUTOCONF@,$AUTOCONF,;t t
26501 s,@AUTOMAKE@,$AUTOMAKE,;t t
26502 s,@AUTOHEADER@,$AUTOHEADER,;t t
26503 s,@MAKEINFO@,$MAKEINFO,;t t
26504 s,@install_sh@,$install_sh,;t t
26505 s,@STRIP@,$STRIP,;t t
26506 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26507 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26508 s,@mkdir_p@,$mkdir_p,;t t
26510 s,@SET_MAKE@,$SET_MAKE,;t t
26511 s,@am__leading_dot@,$am__leading_dot,;t t
26512 s,@AMTAR@,$AMTAR,;t t
26513 s,@am__tar@,$am__tar,;t t
26514 s,@am__untar@,$am__untar,;t t
26516 s,@CFLAGS@,$CFLAGS,;t t
26517 s,@LDFLAGS@,$LDFLAGS,;t t
26518 s,@CPPFLAGS@,$CPPFLAGS,;t t
26519 s,@ac_ct_CC@,$ac_ct_CC,;t t
26520 s,@EXEEXT@,$EXEEXT,;t t
26521 s,@OBJEXT@,$OBJEXT,;t t
26522 s,@DEPDIR@,$DEPDIR,;t t
26523 s,@am__include@,$am__include,;t t
26524 s,@am__quote@,$am__quote,;t t
26525 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26526 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26527 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26528 s,@CCDEPMODE@,$CCDEPMODE,;t t
26529 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26530 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26531 s,@EGREP@,$EGREP,;t t
26532 s,@LN_S@,$LN_S,;t t
26533 s,@ECHO@,$ECHO,;t t
26535 s,@ac_ct_AR@,$ac_ct_AR,;t t
26536 s,@RANLIB@,$RANLIB,;t t
26537 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26538 s,@DLLTOOL@,$DLLTOOL,;t t
26539 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26541 s,@ac_ct_AS@,$ac_ct_AS,;t t
26542 s,@OBJDUMP@,$OBJDUMP,;t t
26543 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
26546 s,@CXXFLAGS@,$CXXFLAGS,;t t
26547 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26548 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26549 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26550 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26551 s,@CXXCPP@,$CXXCPP,;t t
26553 s,@FFLAGS@,$FFLAGS,;t t
26554 s,@ac_ct_F77@,$ac_ct_F77,;t t
26555 s,@LIBTOOL@,$LIBTOOL,;t t
26556 s,@LIBOBJS@,$LIBOBJS,;t t
26557 s,@PTH_STACK_GROWTH@,$PTH_STACK_GROWTH,;t t
26558 s,@pth_skaddr_makecontext@,$pth_skaddr_makecontext,;t t
26559 s,@pth_sksize_makecontext@,$pth_sksize_makecontext,;t t
26560 s,@USE_SIMIX_TRUE@,$USE_SIMIX_TRUE,;t t
26561 s,@USE_SIMIX_FALSE@,$USE_SIMIX_FALSE,;t t
26562 s,@HAVE_SDP_TRUE@,$HAVE_SDP_TRUE,;t t
26563 s,@HAVE_SDP_FALSE@,$HAVE_SDP_FALSE,;t t
26564 s,@SIMGRID_DEP@,$SIMGRID_DEP,;t t
26565 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
26566 s,@GRAS_DEP@,$GRAS_DEP,;t t
26567 s,@GRAMINE_MODE_TRUE@,$GRAMINE_MODE_TRUE,;t t
26568 s,@GRAMINE_MODE_FALSE@,$GRAMINE_MODE_FALSE,;t t
26569 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26570 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26571 s,@MAINT@,$MAINT,;t t
26572 s,@LD_DYNAMIC_FLAGS@,$LD_DYNAMIC_FLAGS,;t t
26573 s,@abs_builddir@,$abs_builddir,;t t
26574 s,@abs_srcdir@,$abs_srcdir,;t t
26575 s,@abs_top_builddir@,$abs_top_builddir,;t t
26576 s,@abs_top_srcdir@,$abs_top_srcdir,;t t
26577 s,@BASH@,$BASH,;t t
26578 s,@WARNING@,$WARNING,;t t
26580 s,@LEXLIB@,$LEXLIB,;t t
26581 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26582 s,@FLEXML@,$FLEXML,;t t
26583 s,@HAVE_FLEXML_TRUE@,$HAVE_FLEXML_TRUE,;t t
26584 s,@HAVE_FLEXML_FALSE@,$HAVE_FLEXML_FALSE,;t t
26585 s,@DOXYGEN@,$DOXYGEN,;t t
26586 s,@ADDR2LINE@,$ADDR2LINE,;t t
26587 s,@ac_configure_args@,$ac_configure_args,;t t
26588 s,@MD5SUM@,$MD5SUM,;t t
26589 s,@build_id@,$build_id,;t t
26590 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26595 cat >>$CONFIG_STATUS <<\_ACEOF
26596 # Split the substitutions into bite-sized pieces for seds with
26597 # small command number limits, like on Digital OSF/1 and HP-UX.
26598 ac_max_sed_lines=48
26599 ac_sed_frag=1 # Number of current file.
26600 ac_beg=1 # First line for current file.
26601 ac_end=$ac_max_sed_lines # Line after last line for current file.
26604 while $ac_more_lines; do
26605 if test $ac_beg -gt 1; then
26606 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26608 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26610 if test ! -s $tmp/subs.frag; then
26611 ac_more_lines=false
26613 # The purpose of the label and of the branching condition is to
26614 # speed up the sed processing (if there are no `@' at all, there
26615 # is no need to browse any of the substitutions).
26616 # These are the two extra sed commands mentioned above.
26618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26619 if test -z "$ac_sed_cmds"; then
26620 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26622 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26624 ac_sed_frag=`expr $ac_sed_frag + 1`
26626 ac_end=`expr $ac_end + $ac_max_sed_lines`
26629 if test -z "$ac_sed_cmds"; then
26632 fi # test -n "$CONFIG_FILES"
26635 cat >>$CONFIG_STATUS <<\_ACEOF
26636 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26637 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26639 - | *:- | *:-:* ) # input from stdin
26641 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26642 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26643 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26644 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26645 * ) ac_file_in=$ac_file.in ;;
26648 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26649 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26651 X"$ac_file" : 'X\(//\)[^/]' \| \
26652 X"$ac_file" : 'X\(//\)$' \| \
26653 X"$ac_file" : 'X\(/\)' \| \
26654 . : '\(.\)' 2>/dev/null ||
26656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26658 /^X\(\/\/\)$/{ s//\1/; q; }
26659 /^X\(\/\).*/{ s//\1/; q; }
26661 { if $as_mkdir_p; then
26666 while test ! -d "$as_dir"; do
26667 as_dirs="$as_dir $as_dirs"
26668 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26669 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26670 X"$as_dir" : 'X\(//\)[^/]' \| \
26671 X"$as_dir" : 'X\(//\)$' \| \
26672 X"$as_dir" : 'X\(/\)' \| \
26673 . : '\(.\)' 2>/dev/null ||
26675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26677 /^X\(\/\/\)$/{ s//\1/; q; }
26678 /^X\(\/\).*/{ s//\1/; q; }
26681 test ! -n "$as_dirs" || mkdir $as_dirs
26682 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26683 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26684 { (exit 1); exit 1; }; }; }
26688 if test "$ac_dir" != .; then
26689 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26690 # A "../" for each directory in $ac_dir_suffix.
26691 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26693 ac_dir_suffix= ac_top_builddir=
26697 .) # No --srcdir option. We are building in place.
26699 if test -z "$ac_top_builddir"; then
26702 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26704 [\\/]* | ?:[\\/]* ) # Absolute path.
26705 ac_srcdir=$srcdir$ac_dir_suffix;
26706 ac_top_srcdir=$srcdir ;;
26707 *) # Relative path.
26708 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26709 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26712 # Do not use `cd foo && pwd` to compute absolute paths, because
26713 # the directories may not exist.
26715 .) ac_abs_builddir="$ac_dir";;
26718 .) ac_abs_builddir=`pwd`;;
26719 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26720 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26723 case $ac_abs_builddir in
26724 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26726 case ${ac_top_builddir}. in
26727 .) ac_abs_top_builddir=$ac_abs_builddir;;
26728 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26729 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26732 case $ac_abs_builddir in
26733 .) ac_abs_srcdir=$ac_srcdir;;
26736 .) ac_abs_srcdir=$ac_abs_builddir;;
26737 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26738 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26741 case $ac_abs_builddir in
26742 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26744 case $ac_top_srcdir in
26745 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26746 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26747 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26753 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26754 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26757 # Let's still pretend it is `configure' which instantiates (i.e., don't
26758 # use $as_me), people would be surprised to read:
26759 # /* config.h. Generated by config.status. */
26760 if test x"$ac_file" = x-; then
26763 configure_input="$ac_file. "
26765 configure_input=$configure_input"Generated from `echo $ac_file_in |
26766 sed 's,.*/,,'` by configure."
26768 # First look for the input files in the build tree, otherwise in the
26770 ac_file_inputs=`IFS=:
26771 for f in $ac_file_in; do
26773 -) echo $tmp/stdin ;;
26775 # Absolute (can't be DOS-style, as IFS=:)
26776 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26777 echo "$as_me: error: cannot find input file: $f" >&2;}
26778 { (exit 1); exit 1; }; }
26781 if test -f "$f"; then
26784 elif test -f "$srcdir/$f"; then
26789 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26790 echo "$as_me: error: cannot find input file: $f" >&2;}
26791 { (exit 1); exit 1; }; }
26794 done` || { (exit 1); exit 1; }
26796 if test x"$ac_file" != x-; then
26797 { echo "$as_me:$LINENO: creating $ac_file" >&5
26798 echo "$as_me: creating $ac_file" >&6;}
26802 cat >>$CONFIG_STATUS <<_ACEOF
26806 cat >>$CONFIG_STATUS <<\_ACEOF
26808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26809 s,@configure_input@,$configure_input,;t t
26810 s,@srcdir@,$ac_srcdir,;t t
26811 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26812 s,@top_srcdir@,$ac_top_srcdir,;t t
26813 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26814 s,@builddir@,$ac_builddir,;t t
26815 s,@abs_builddir@,$ac_abs_builddir,;t t
26816 s,@top_builddir@,$ac_top_builddir,;t t
26817 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26818 s,@INSTALL@,$ac_INSTALL,;t t
26819 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26821 if test x"$ac_file" != x-; then
26822 mv $tmp/out $ac_file
26828 # Run the commands associated with the file.
26830 tools/graspe-slave )
26832 tools/graspe-slave tools/graspe-master \
26834 test -e $file && chmod +x $file; \
26837 testsuite/Makefile )
26839 testsuite/run_tests \
26840 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26842 test -e $file && chmod +x $file; \
26845 testsuite/run_tests )
26847 testsuite/run_tests \
26848 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26850 test -e $file && chmod +x $file; \
26853 testsuite/gras/trp_tcp_usage )
26855 testsuite/run_tests \
26856 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26858 test -e $file && chmod +x $file; \
26861 testsuite/gras/trp_file_usage )
26863 testsuite/run_tests \
26864 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26866 test -e $file && chmod +x $file; \
26869 examples/Makefile )
26872 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26873 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26875 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26876 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26877 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26878 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26879 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26880 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26881 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26882 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26883 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26884 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26885 examples/msg/run_msg_test \
26886 examples/simdag/test_simdag \
26888 test -e $file && chmod +x $file; \
26891 examples/msg/Makefile )
26894 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26895 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26897 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26898 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26899 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26900 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26901 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26902 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26903 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26904 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26905 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26906 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26907 examples/msg/run_msg_test \
26908 examples/simdag/test_simdag \
26910 test -e $file && chmod +x $file; \
26913 examples/msg/run_msg_test )
26916 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26917 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26919 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26920 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26921 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26922 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26923 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26924 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26925 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26926 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26927 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26928 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26929 examples/msg/run_msg_test \
26930 examples/simdag/test_simdag \
26932 test -e $file && chmod +x $file; \
26935 examples/simdag/Makefile )
26938 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26939 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26941 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26942 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26943 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26944 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26945 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26946 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26947 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26948 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26949 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26950 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26951 examples/msg/run_msg_test \
26952 examples/simdag/test_simdag \
26954 test -e $file && chmod +x $file; \
26957 examples/simdag/test_simdag )
26960 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26961 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26963 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26964 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26965 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26966 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26967 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26968 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26969 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26970 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26971 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26972 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26973 examples/msg/run_msg_test \
26974 examples/simdag/test_simdag \
26976 test -e $file && chmod +x $file; \
26979 examples/gras/Makefile )
26982 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26983 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26985 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26986 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26987 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26988 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26989 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26990 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26991 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26992 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26993 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26994 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26995 examples/msg/run_msg_test \
26996 examples/simdag/test_simdag \
26998 test -e $file && chmod +x $file; \
27001 examples/gras/ping/Makefile )
27004 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27005 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27007 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27008 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27009 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27010 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27011 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27012 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27013 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27014 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27015 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27016 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27017 examples/msg/run_msg_test \
27018 examples/simdag/test_simdag \
27020 test -e $file && chmod +x $file; \
27023 examples/gras/ping/test_sg )
27026 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27027 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27029 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27030 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27031 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27032 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27033 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27034 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27035 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27036 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27037 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27038 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27039 examples/msg/run_msg_test \
27040 examples/simdag/test_simdag \
27042 test -e $file && chmod +x $file; \
27045 examples/gras/ping/test_rl )
27048 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27049 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27051 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27052 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27053 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27054 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27055 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27056 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27057 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27058 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27059 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27060 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27061 examples/msg/run_msg_test \
27062 examples/simdag/test_simdag \
27064 test -e $file && chmod +x $file; \
27067 examples/gras/rpc/Makefile )
27070 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27071 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27073 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27074 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27075 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27076 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27077 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27078 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27079 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27080 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27081 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27082 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27083 examples/msg/run_msg_test \
27084 examples/simdag/test_simdag \
27086 test -e $file && chmod +x $file; \
27089 examples/gras/rpc/test_sg )
27092 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27093 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27095 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27096 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27097 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27098 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27099 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27100 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27101 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27102 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27103 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27104 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27105 examples/msg/run_msg_test \
27106 examples/simdag/test_simdag \
27108 test -e $file && chmod +x $file; \
27111 examples/gras/rpc/test_rl )
27114 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27115 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27117 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27118 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27119 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27120 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27121 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27122 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27123 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27124 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27125 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27126 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27127 examples/msg/run_msg_test \
27128 examples/simdag/test_simdag \
27130 test -e $file && chmod +x $file; \
27133 examples/gras/timer/Makefile )
27136 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27137 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27139 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27140 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27141 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27142 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27143 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27144 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27145 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27146 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27147 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27148 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27149 examples/msg/run_msg_test \
27150 examples/simdag/test_simdag \
27152 test -e $file && chmod +x $file; \
27155 examples/gras/timer/test_sg )
27158 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27159 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27161 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27162 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27163 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27164 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27165 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27166 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27167 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27168 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27169 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27170 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27171 examples/msg/run_msg_test \
27172 examples/simdag/test_simdag \
27174 test -e $file && chmod +x $file; \
27177 examples/gras/timer/test_rl )
27180 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27181 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27183 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27184 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27185 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27186 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27187 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27188 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27189 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27190 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27191 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27192 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27193 examples/msg/run_msg_test \
27194 examples/simdag/test_simdag \
27196 test -e $file && chmod +x $file; \
27199 examples/gras/chrono/Makefile )
27202 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27203 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27205 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27206 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27207 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27208 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27209 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27210 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27211 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27212 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27213 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27214 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27215 examples/msg/run_msg_test \
27216 examples/simdag/test_simdag \
27218 test -e $file && chmod +x $file; \
27221 examples/gras/chrono/test_sg )
27224 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27225 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27227 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27228 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27229 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27230 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27231 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27232 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27233 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27234 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27235 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27236 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27237 examples/msg/run_msg_test \
27238 examples/simdag/test_simdag \
27240 test -e $file && chmod +x $file; \
27243 examples/gras/chrono/test_rl )
27246 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27247 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27249 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27250 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27251 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27252 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27253 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27254 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27255 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27256 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27257 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27258 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27259 examples/msg/run_msg_test \
27260 examples/simdag/test_simdag \
27262 test -e $file && chmod +x $file; \
27265 examples/gras/mutual_exclusion/simple_token/Makefile )
27268 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27269 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27271 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27272 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27273 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27274 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27275 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27276 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27277 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27278 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27279 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27280 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27281 examples/msg/run_msg_test \
27282 examples/simdag/test_simdag \
27284 test -e $file && chmod +x $file; \
27287 examples/gras/mutual_exclusion/simple_token/test_sg )
27290 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27291 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27293 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27294 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27295 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27296 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27297 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27298 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27299 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27300 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27301 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27302 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27303 examples/msg/run_msg_test \
27304 examples/simdag/test_simdag \
27306 test -e $file && chmod +x $file; \
27309 examples/gras/mutual_exclusion/simple_token/test_rl )
27312 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27313 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27315 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27316 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27317 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27318 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27319 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27320 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27321 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27322 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27323 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27324 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27325 examples/msg/run_msg_test \
27326 examples/simdag/test_simdag \
27328 test -e $file && chmod +x $file; \
27331 examples/gras/mmrpc/Makefile )
27334 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27335 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27337 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27338 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27339 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27340 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27341 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27342 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27343 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27344 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27345 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27346 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27347 examples/msg/run_msg_test \
27348 examples/simdag/test_simdag \
27350 test -e $file && chmod +x $file; \
27353 examples/gras/mmrpc/test_sg )
27356 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27357 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27359 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27360 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27361 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27362 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27363 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27364 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27365 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27366 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27367 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27368 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27369 examples/msg/run_msg_test \
27370 examples/simdag/test_simdag \
27372 test -e $file && chmod +x $file; \
27375 examples/gras/mmrpc/test_rl )
27378 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27379 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27381 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27382 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27383 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27384 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27385 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27386 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27387 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27388 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27389 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27390 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27391 examples/msg/run_msg_test \
27392 examples/simdag/test_simdag \
27394 test -e $file && chmod +x $file; \
27397 examples/gras/pmm/Makefile )
27400 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27401 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27403 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27404 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27405 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27406 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27407 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27408 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27409 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27410 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27411 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27412 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27413 examples/msg/run_msg_test \
27414 examples/simdag/test_simdag \
27416 test -e $file && chmod +x $file; \
27419 examples/gras/pmm/test_sg )
27422 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27423 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27425 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27426 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27427 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27428 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27429 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27430 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27431 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27432 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27433 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27434 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27435 examples/msg/run_msg_test \
27436 examples/simdag/test_simdag \
27438 test -e $file && chmod +x $file; \
27441 examples/gras/pmm/test_rl )
27444 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27445 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27447 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27448 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27449 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27450 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27451 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27452 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27453 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27454 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27455 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27456 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27457 examples/msg/run_msg_test \
27458 examples/simdag/test_simdag \
27460 test -e $file && chmod +x $file; \
27463 examples/gras/all2all/Makefile )
27466 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27467 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27469 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27470 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27471 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27472 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27473 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27474 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27475 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27476 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27477 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27478 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27479 examples/msg/run_msg_test \
27480 examples/simdag/test_simdag \
27482 test -e $file && chmod +x $file; \
27485 examples/gras/all2all/test_sg )
27488 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27489 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27491 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27492 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27493 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27494 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27495 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27496 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27497 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27498 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27499 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27500 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27501 examples/msg/run_msg_test \
27502 examples/simdag/test_simdag \
27504 test -e $file && chmod +x $file; \
27507 examples/gras/all2all/test_rl )
27510 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27511 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27513 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27514 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27515 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27516 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27517 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27518 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27519 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27520 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27521 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27522 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27523 examples/msg/run_msg_test \
27524 examples/simdag/test_simdag \
27526 test -e $file && chmod +x $file; \
27529 examples/gras/p2p/Makefile )
27532 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27533 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27535 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27536 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27537 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27538 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27539 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27540 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27541 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27542 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27543 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27544 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27545 examples/msg/run_msg_test \
27546 examples/simdag/test_simdag \
27548 test -e $file && chmod +x $file; \
27551 examples/gras/p2p/chord/Makefile )
27554 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27555 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27557 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27558 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27559 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27560 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27561 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27562 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27563 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27564 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27565 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27566 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27567 examples/msg/run_msg_test \
27568 examples/simdag/test_simdag \
27570 test -e $file && chmod +x $file; \
27573 examples/gras/p2p/chord/test_sg )
27576 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27577 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27579 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27580 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27581 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27582 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27583 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27584 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27585 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27586 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27587 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27588 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27589 examples/msg/run_msg_test \
27590 examples/simdag/test_simdag \
27592 test -e $file && chmod +x $file; \
27595 examples/gras/p2p/chord/test_rl )
27598 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27599 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27601 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27602 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27603 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27604 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27605 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27606 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27607 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27608 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27609 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27610 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27611 examples/msg/run_msg_test \
27612 examples/simdag/test_simdag \
27614 test -e $file && chmod +x $file; \
27617 examples/gras/p2p/can/Makefile )
27620 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27621 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27623 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27624 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27625 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27626 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27627 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27628 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27629 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27630 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27631 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27632 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27633 examples/msg/run_msg_test \
27634 examples/simdag/test_simdag \
27636 test -e $file && chmod +x $file; \
27639 examples/gras/p2p/can/test_sg )
27642 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27643 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27645 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27646 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27647 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27648 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27649 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27650 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27651 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27652 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27653 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27654 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27655 examples/msg/run_msg_test \
27656 examples/simdag/test_simdag \
27658 test -e $file && chmod +x $file; \
27661 examples/gras/p2p/can/test_rl )
27664 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27665 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27667 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27668 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27669 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27670 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27671 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27672 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27673 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27674 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27675 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27676 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27677 examples/msg/run_msg_test \
27678 examples/simdag/test_simdag \
27680 test -e $file && chmod +x $file; \
27683 examples/amok/Makefile )
27686 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27687 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27689 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27690 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27691 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27692 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27693 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27694 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27695 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27696 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27697 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27698 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27699 examples/msg/run_msg_test \
27700 examples/simdag/test_simdag \
27702 test -e $file && chmod +x $file; \
27705 examples/amok/bandwidth/Makefile )
27708 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27709 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27711 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27712 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27713 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27714 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27715 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27716 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27717 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27718 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27719 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27720 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27721 examples/msg/run_msg_test \
27722 examples/simdag/test_simdag \
27724 test -e $file && chmod +x $file; \
27727 examples/amok/bandwidth/test_sg )
27730 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27731 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27733 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27734 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27735 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27736 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27737 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27738 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27739 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27740 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27741 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27742 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27743 examples/msg/run_msg_test \
27744 examples/simdag/test_simdag \
27746 test -e $file && chmod +x $file; \
27749 examples/amok/bandwidth/test_rl )
27752 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27753 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27755 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27756 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27757 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27758 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27759 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27760 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27761 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27762 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27763 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27764 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27765 examples/msg/run_msg_test \
27766 examples/simdag/test_simdag \
27768 test -e $file && chmod +x $file; \
27771 examples/amok/saturate/Makefile )
27774 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27775 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27777 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27778 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27779 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27780 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27781 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27782 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27783 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27784 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27785 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27786 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27787 examples/msg/run_msg_test \
27788 examples/simdag/test_simdag \
27790 test -e $file && chmod +x $file; \
27793 examples/amok/saturate/test_sg )
27796 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27797 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27799 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27800 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27801 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27802 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27803 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27804 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27805 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27806 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27807 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27808 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27809 examples/msg/run_msg_test \
27810 examples/simdag/test_simdag \
27812 test -e $file && chmod +x $file; \
27815 examples/amok/saturate/test_rl )
27818 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27819 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27821 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27822 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27823 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27824 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27825 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27826 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27827 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27828 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27829 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27830 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27831 examples/msg/run_msg_test \
27832 examples/simdag/test_simdag \
27834 test -e $file && chmod +x $file; \
27840 cat >>$CONFIG_STATUS <<\_ACEOF
27843 # CONFIG_HEADER section.
27846 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27847 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27849 # ac_d sets the value in "#define NAME VALUE" lines.
27850 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27851 ac_dB='[ ].*$,\1#\2'
27854 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27855 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27856 ac_uB='$,\1#\2define\3'
27860 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27861 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27863 - | *:- | *:-:* ) # input from stdin
27865 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27866 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27867 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27869 * ) ac_file_in=$ac_file.in ;;
27872 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27873 echo "$as_me: creating $ac_file" >&6;}
27875 # First look for the input files in the build tree, otherwise in the
27877 ac_file_inputs=`IFS=:
27878 for f in $ac_file_in; do
27880 -) echo $tmp/stdin ;;
27882 # Absolute (can't be DOS-style, as IFS=:)
27883 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27884 echo "$as_me: error: cannot find input file: $f" >&2;}
27885 { (exit 1); exit 1; }; }
27886 # Do quote $f, to prevent DOS paths from being IFS'd.
27889 if test -f "$f"; then
27892 elif test -f "$srcdir/$f"; then
27897 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27898 echo "$as_me: error: cannot find input file: $f" >&2;}
27899 { (exit 1); exit 1; }; }
27902 done` || { (exit 1); exit 1; }
27903 # Remove the trailing spaces.
27904 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27908 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27909 # `conftest.undefs', that substitutes the proper values into
27910 # config.h.in to produce config.h. The first handles `#define'
27911 # templates, and the second `#undef' templates.
27912 # And first: Protect against being on the right side of a sed subst in
27913 # config.status. Protect against being in an unquoted here document
27914 # in config.status.
27915 rm -f conftest.defines conftest.undefs
27916 # Using a here document instead of a string reduces the quoting nightmare.
27917 # Putting comments in sed scripts is not portable.
27919 # `end' is used to avoid that the second main sed command (meant for
27920 # 0-ary CPP macros) applies to n-ary macro definitions.
27921 # See the Autoconf documentation for `clear'.
27922 cat >confdef2sed.sed <<\_ACEOF
27927 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27929 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27932 # If some macros were called several times there might be several times
27933 # the same #defines, which is useless. Nevertheless, we may not want to
27934 # sort them, since we want the *last* AC-DEFINE to be honored.
27935 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27936 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27937 rm -f confdef2sed.sed
27939 # This sed command replaces #undef with comments. This is necessary, for
27940 # example, in the case of _POSIX_SOURCE, which is predefined and required
27941 # on some systems where configure will not decide to define it.
27942 cat >>conftest.undefs <<\_ACEOF
27943 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27946 # Break up conftest.defines because some shells have a limit on the size
27947 # of here documents, and old seds have small limits too (100 cmds).
27948 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27949 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27950 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27951 echo ' :' >>$CONFIG_STATUS
27952 rm -f conftest.tail
27953 while grep . conftest.defines >/dev/null
27955 # Write a limited-size here document to $tmp/defines.sed.
27956 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27957 # Speed up: don't consider the non `#define' lines.
27958 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27959 # Work around the forget-to-reset-the-flag bug.
27960 echo 't clr' >>$CONFIG_STATUS
27961 echo ': clr' >>$CONFIG_STATUS
27962 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27964 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27966 mv $tmp/out $tmp/in
27968 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27969 rm -f conftest.defines
27970 mv conftest.tail conftest.defines
27972 rm -f conftest.defines
27973 echo ' fi # grep' >>$CONFIG_STATUS
27974 echo >>$CONFIG_STATUS
27976 # Break up conftest.undefs because some shells have a limit on the size
27977 # of here documents, and old seds have small limits too (100 cmds).
27978 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27979 rm -f conftest.tail
27980 while grep . conftest.undefs >/dev/null
27982 # Write a limited-size here document to $tmp/undefs.sed.
27983 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27984 # Speed up: don't consider the non `#undef'
27985 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27986 # Work around the forget-to-reset-the-flag bug.
27987 echo 't clr' >>$CONFIG_STATUS
27988 echo ': clr' >>$CONFIG_STATUS
27989 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27991 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27993 mv $tmp/out $tmp/in
27995 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27996 rm -f conftest.undefs
27997 mv conftest.tail conftest.undefs
27999 rm -f conftest.undefs
28001 cat >>$CONFIG_STATUS <<\_ACEOF
28002 # Let's still pretend it is `configure' which instantiates (i.e., don't
28003 # use $as_me), people would be surprised to read:
28004 # /* config.h. Generated by config.status. */
28005 if test x"$ac_file" = x-; then
28006 echo "/* Generated by configure. */" >$tmp/config.h
28008 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28010 cat $tmp/in >>$tmp/config.h
28012 if test x"$ac_file" != x-; then
28013 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28014 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28015 echo "$as_me: $ac_file is unchanged" >&6;}
28017 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28018 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28019 X"$ac_file" : 'X\(//\)[^/]' \| \
28020 X"$ac_file" : 'X\(//\)$' \| \
28021 X"$ac_file" : 'X\(/\)' \| \
28022 . : '\(.\)' 2>/dev/null ||
28024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28026 /^X\(\/\/\)$/{ s//\1/; q; }
28027 /^X\(\/\).*/{ s//\1/; q; }
28029 { if $as_mkdir_p; then
28034 while test ! -d "$as_dir"; do
28035 as_dirs="$as_dir $as_dirs"
28036 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28038 X"$as_dir" : 'X\(//\)[^/]' \| \
28039 X"$as_dir" : 'X\(//\)$' \| \
28040 X"$as_dir" : 'X\(/\)' \| \
28041 . : '\(.\)' 2>/dev/null ||
28043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28044 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28045 /^X\(\/\/\)$/{ s//\1/; q; }
28046 /^X\(\/\).*/{ s//\1/; q; }
28049 test ! -n "$as_dirs" || mkdir $as_dirs
28050 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28051 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28052 { (exit 1); exit 1; }; }; }
28055 mv $tmp/config.h $ac_file
28059 rm -f $tmp/config.h
28061 # Compute $ac_file's index in $config_headers.
28063 for _am_header in $config_headers :; do
28064 case $_am_header in
28065 $ac_file | $ac_file:* )
28068 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28071 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28072 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28073 X$ac_file : 'X\(//\)[^/]' \| \
28074 X$ac_file : 'X\(//\)$' \| \
28075 X$ac_file : 'X\(/\)' \| \
28076 . : '\(.\)' 2>/dev/null ||
28078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28080 /^X\(\/\/\)$/{ s//\1/; q; }
28081 /^X\(\/\).*/{ s//\1/; q; }
28082 s/.*/./; q'`/stamp-h$_am_stamp_count
28085 cat >>$CONFIG_STATUS <<\_ACEOF
28088 # CONFIG_COMMANDS section.
28090 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28091 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28092 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28093 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28094 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28095 X"$ac_dest" : 'X\(//\)[^/]' \| \
28096 X"$ac_dest" : 'X\(//\)$' \| \
28097 X"$ac_dest" : 'X\(/\)' \| \
28098 . : '\(.\)' 2>/dev/null ||
28100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28101 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28102 /^X\(\/\/\)$/{ s//\1/; q; }
28103 /^X\(\/\).*/{ s//\1/; q; }
28105 { if $as_mkdir_p; then
28110 while test ! -d "$as_dir"; do
28111 as_dirs="$as_dir $as_dirs"
28112 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28114 X"$as_dir" : 'X\(//\)[^/]' \| \
28115 X"$as_dir" : 'X\(//\)$' \| \
28116 X"$as_dir" : 'X\(/\)' \| \
28117 . : '\(.\)' 2>/dev/null ||
28119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28121 /^X\(\/\/\)$/{ s//\1/; q; }
28122 /^X\(\/\).*/{ s//\1/; q; }
28125 test ! -n "$as_dirs" || mkdir $as_dirs
28126 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28127 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28128 { (exit 1); exit 1; }; }; }
28132 if test "$ac_dir" != .; then
28133 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28134 # A "../" for each directory in $ac_dir_suffix.
28135 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28137 ac_dir_suffix= ac_top_builddir=
28141 .) # No --srcdir option. We are building in place.
28143 if test -z "$ac_top_builddir"; then
28146 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28148 [\\/]* | ?:[\\/]* ) # Absolute path.
28149 ac_srcdir=$srcdir$ac_dir_suffix;
28150 ac_top_srcdir=$srcdir ;;
28151 *) # Relative path.
28152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28153 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28156 # Do not use `cd foo && pwd` to compute absolute paths, because
28157 # the directories may not exist.
28159 .) ac_abs_builddir="$ac_dir";;
28162 .) ac_abs_builddir=`pwd`;;
28163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28164 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28167 case $ac_abs_builddir in
28168 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28170 case ${ac_top_builddir}. in
28171 .) ac_abs_top_builddir=$ac_abs_builddir;;
28172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28176 case $ac_abs_builddir in
28177 .) ac_abs_srcdir=$ac_srcdir;;
28180 .) ac_abs_srcdir=$ac_abs_builddir;;
28181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28185 case $ac_abs_builddir in
28186 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28188 case $ac_top_srcdir in
28189 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28196 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28197 echo "$as_me: executing $ac_dest commands" >&6;}
28199 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28200 # Strip MF so we end up with the name of the file.
28201 mf=`echo "$mf" | sed -e 's/:.*$//'`
28202 # Check whether this is an Automake generated Makefile or not.
28203 # We used to match only the files named `Makefile.in', but
28204 # some people rename them; so instead we look at the file content.
28205 # Grep'ing the first line is not enough: some people post-process
28206 # each Makefile.in and add a new line on top of each file to say so.
28207 # So let's grep whole file.
28208 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28209 dirpart=`(dirname "$mf") 2>/dev/null ||
28210 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28211 X"$mf" : 'X\(//\)[^/]' \| \
28212 X"$mf" : 'X\(//\)$' \| \
28213 X"$mf" : 'X\(/\)' \| \
28214 . : '\(.\)' 2>/dev/null ||
28216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28218 /^X\(\/\/\)$/{ s//\1/; q; }
28219 /^X\(\/\).*/{ s//\1/; q; }
28224 # Extract the definition of DEPDIR, am__include, and am__quote
28225 # from the Makefile without running `make'.
28226 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28227 test -z "$DEPDIR" && continue
28228 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28229 test -z "am__include" && continue
28230 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28231 # When using ansi2knr, U may be empty or an underscore; expand it
28232 U=`sed -n 's/^U = //p' < "$mf"`
28233 # Find all dependency output files, they are included files with
28234 # $(DEPDIR) in their names. We invoke sed twice because it is the
28235 # simplest approach to changing $(DEPDIR) to its actual value in the
28237 for file in `sed -n "
28238 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28239 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28240 # Make sure the directory exists.
28241 test -f "$dirpart/$file" && continue
28242 fdir=`(dirname "$file") 2>/dev/null ||
28243 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28244 X"$file" : 'X\(//\)[^/]' \| \
28245 X"$file" : 'X\(//\)$' \| \
28246 X"$file" : 'X\(/\)' \| \
28247 . : '\(.\)' 2>/dev/null ||
28249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28251 /^X\(\/\/\)$/{ s//\1/; q; }
28252 /^X\(\/\).*/{ s//\1/; q; }
28254 { if $as_mkdir_p; then
28255 mkdir -p $dirpart/$fdir
28257 as_dir=$dirpart/$fdir
28259 while test ! -d "$as_dir"; do
28260 as_dirs="$as_dir $as_dirs"
28261 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28263 X"$as_dir" : 'X\(//\)[^/]' \| \
28264 X"$as_dir" : 'X\(//\)$' \| \
28265 X"$as_dir" : 'X\(/\)' \| \
28266 . : '\(.\)' 2>/dev/null ||
28268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28270 /^X\(\/\/\)$/{ s//\1/; q; }
28271 /^X\(\/\).*/{ s//\1/; q; }
28274 test ! -n "$as_dirs" || mkdir $as_dirs
28275 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28276 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28277 { (exit 1); exit 1; }; }; }
28279 # echo "creating $dirpart/$file"
28280 echo '# dummy' > "$dirpart/$file"
28288 cat >>$CONFIG_STATUS <<\_ACEOF
28290 { (exit 0); exit 0; }
28292 chmod +x $CONFIG_STATUS
28293 ac_clean_files=$ac_clean_files_save
28296 # configure is writing to config.log, and then calls config.status.
28297 # config.status does its own redirection, appending to config.log.
28298 # Unfortunately, on DOS this fails, as config.log is still kept open
28299 # by configure, so config.status won't be able to write to it; its
28300 # output is simply discarded. So we exec the FD to /dev/null,
28301 # effectively closing config.log, so it can be properly (re)opened and
28302 # appended to by config.status. When coming back to configure, we
28303 # need to make the FD available again.
28304 if test "$no_create" != yes; then
28306 ac_config_status_args=
28307 test "$silent" = yes &&
28308 ac_config_status_args="$ac_config_status_args --quiet"
28310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28313 # would make configure fail if this is the last instruction.
28314 $ac_cs_success || { (exit 1); exit 1; }
28320 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28322 Compiler: ${CC} (version: ${GCC_VERSION})
28325 CPPFlags: ${CPPFLAGS}
28326 LDFlags: ${LDFLAGS}
28328 Context backend: ${with_context}
28331 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28333 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28334 echo "WARNING: You may want to enable this by specifying:"
28336 echo "WARNING: ./configure --enable-maintainer-mode $ac_configure_args"
28339 echo $build_id > stamp.configure