2 # From configure.ac Revision: 1.144 .
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-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1062 Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
1072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1079 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1083 if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1090 if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 ac_dir_suffix= ac_top_builddir=
1099 .) # No --srcdir option. We are building in place.
1101 if test -z "$ac_top_builddir"; then
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1117 .) ac_abs_builddir="$ac_dir";;
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
1162 test -f $ac_srcdir/configure.in; then
1164 $ac_configure --help
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1175 simgrid configure 3.2-cvs
1176 generated by GNU Autoconf 2.59
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1189 It was created by simgrid $as_me 3.2-cvs, which was
1190 generated by GNU Autoconf 2.59. Invocation command line was
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_must_keep_next=false
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
1267 ac_must_keep_next=false # Got value, back to normal.
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 -* ) ac_must_keep_next=true ;;
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log. We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1307 # The following way of writing the cache mishandles newlines in values,
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1330 for ac_var in $ac_subst_vars
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1337 if test -n "$ac_subst_files"; then
1344 for ac_var in $ac_subst_files
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1352 if test -s confdefs.h; then
1359 sed "/^$/d" confdefs.h | sort
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1366 rm -f core *.core &&
1367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 # Predefined preprocessor variables.
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1425 if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1442 # Check that the precious variables saved in the cache have kept the same
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
1463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1466 echo "$as_me: former value: $ac_old_val" >&2;}
1467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1468 echo "$as_me: current value: $ac_new_val" >&2;}
1469 ac_cache_corrupted=:
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 ac_config_headers="$ac_config_headers src/gras_config.h"
1528 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533 if test -f $ac_dir/install-sh; then
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 elif test -f $ac_dir/install.sh; then
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 elif test -f $ac_dir/shtool; then
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 if test -z "$ac_aux_dir"; then
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550 { (exit 1); exit 1; }; }
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556 # Make sure we can run config.sub.
1557 $ac_config_sub sun4 >/dev/null 2>&1 ||
1558 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1559 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1560 { (exit 1); exit 1; }; }
1562 echo "$as_me:$LINENO: checking build system type" >&5
1563 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1564 if test "${ac_cv_build+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 ac_cv_build_alias=$build_alias
1568 test -z "$ac_cv_build_alias" &&
1569 ac_cv_build_alias=`$ac_config_guess`
1570 test -z "$ac_cv_build_alias" &&
1571 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1572 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1573 { (exit 1); exit 1; }; }
1574 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1576 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1577 { (exit 1); exit 1; }; }
1580 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1581 echo "${ECHO_T}$ac_cv_build" >&6
1583 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588 echo "$as_me:$LINENO: checking host system type" >&5
1589 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1590 if test "${ac_cv_host+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 ac_cv_host_alias=$host_alias
1594 test -z "$ac_cv_host_alias" &&
1595 ac_cv_host_alias=$ac_cv_build_alias
1596 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1603 echo "${ECHO_T}$ac_cv_host" >&6
1605 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610 echo "$as_me:$LINENO: checking target system type" >&5
1611 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1612 if test "${ac_cv_target+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 ac_cv_target_alias=$target_alias
1616 test "x$ac_cv_target_alias" = "x" &&
1617 ac_cv_target_alias=$ac_cv_host_alias
1618 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1624 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1625 echo "${ECHO_T}$ac_cv_target" >&6
1626 target=$ac_cv_target
1627 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632 # The aliases save the names the user supplied, while $host etc.
1633 # will get canonicalized.
1634 test -n "$target_alias" &&
1635 test "$program_prefix$program_suffix$program_transform_name" = \
1637 program_prefix=${target_alias}-
1639 ac_cpp='$CPP $CPPFLAGS'
1640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1645 am__api_version="1.9"
1646 # Find a good install program. We prefer a C program (faster),
1647 # so one script is as good as another. But avoid the broken or
1648 # incompatible versions:
1649 # SysV /etc/install, /usr/sbin/install
1650 # SunOS /usr/etc/install
1651 # IRIX /sbin/install
1653 # AmigaOS /C/install, which installs bootblocks on floppy discs
1654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1657 # OS/2's system install, which has a completely different semantic
1658 # ./install, which can be erroneously created by make from ./install.sh.
1659 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1660 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1661 if test -z "$INSTALL"; then
1662 if test "${ac_cv_path_install+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 test -z "$as_dir" && as_dir=.
1670 # Account for people who put trailing slashes in PATH elements.
1672 ./ | .// | /cC/* | \
1673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1674 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1677 # OSF1 and SCO ODT 3.0 have their own names for install.
1678 # Don't use installbsd from OSF since it installs stuff as root
1680 for ac_prog in ginstall scoinst install; do
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1683 if test $ac_prog = install &&
1684 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1685 # AIX install. It has an incompatible calling convention.
1687 elif test $ac_prog = install &&
1688 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689 # program-specific install script used by HP pwplus--don't use.
1692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1704 if test "${ac_cv_path_install+set}" = set; then
1705 INSTALL=$ac_cv_path_install
1707 # As a last resort, use the slow shell script. We don't cache a
1708 # path for INSTALL within a source directory, because that will
1709 # break other packages using the cache if that directory is
1710 # removed, or if the path is relative.
1711 INSTALL=$ac_install_sh
1714 echo "$as_me:$LINENO: result: $INSTALL" >&5
1715 echo "${ECHO_T}$INSTALL" >&6
1717 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1718 # It thinks the first close brace ends the variable substitution.
1719 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1721 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1725 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1726 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1729 echo timestamp > conftest.file
1730 # Do `set' in a subshell so we don't clobber the current shell's
1731 # arguments. Must try -L first in case configure is actually a
1732 # symlink; some systems play weird games with the mod time of symlinks
1733 # (eg FreeBSD returns the mod time of the symlink's containing
1736 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1737 if test "$*" = "X"; then
1739 set X `ls -t $srcdir/configure conftest.file`
1742 if test "$*" != "X $srcdir/configure conftest.file" \
1743 && test "$*" != "X conftest.file $srcdir/configure"; then
1745 # If neither matched, then we have a broken ls. This can happen
1746 # if, for instance, CONFIG_SHELL is bash and it inherits a
1747 # broken ls alias from the environment. This has actually
1748 # happened. Such a system could not be considered "sane".
1749 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1750 alias in your environment" >&5
1751 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1752 alias in your environment" >&2;}
1753 { (exit 1); exit 1; }; }
1756 test "$2" = conftest.file
1762 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1763 Check your system clock" >&5
1764 echo "$as_me: error: newly created file is older than distributed files!
1765 Check your system clock" >&2;}
1766 { (exit 1); exit 1; }; }
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 test "$program_prefix" != NONE &&
1771 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1772 # Use a double $ so make ignores it.
1773 test "$program_suffix" != NONE &&
1774 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1775 # Double any \ or $. echo might interpret backslashes.
1776 # By default was `s,x,x', remove it if useless.
1777 cat <<\_ACEOF >conftest.sed
1778 s/[\\$]/&&/g;s/;s,x,x,$//
1780 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1783 # expand $ac_aux_dir to an absolute path
1784 am_aux_dir=`cd $ac_aux_dir && pwd`
1786 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1787 # Use eval to expand $SHELL
1788 if eval "$MISSING --run true"; then
1789 am_missing_run="$MISSING --run "
1792 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1793 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1796 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1797 # We used to keeping the `.' as first argument, in order to
1798 # allow $(mkdir_p) to be used without argument. As in
1799 # $(mkdir_p) $(somedir)
1800 # where $(somedir) is conditionally defined. However this is wrong
1802 # 1. if the package is installed by a user who cannot write `.'
1803 # make install will fail,
1804 # 2. the above comment should most certainly read
1805 # $(mkdir_p) $(DESTDIR)$(somedir)
1806 # so it does not work when $(somedir) is undefined and
1807 # $(DESTDIR) is not.
1808 # To support the latter case, we have to write
1809 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1810 # so the `.' trick is pointless.
1811 mkdir_p='mkdir -p --'
1813 # On NextStep and OpenStep, the `mkdir' command does not
1814 # recognize any option. It will interpret all options as
1815 # directories to create, and then abort because `.' already
1817 for d in ./-p ./--version;
1819 test -d $d && rmdir $d
1821 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1822 if test -f "$ac_aux_dir/mkinstalldirs"; then
1823 mkdir_p='$(mkinstalldirs)'
1825 mkdir_p='$(install_sh) -d'
1829 for ac_prog in gawk mawk nawk awk
1831 # Extract the first word of "$ac_prog", so it can be a program name with args.
1832 set dummy $ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_AWK+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$AWK"; then
1839 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_AWK="$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test -n "$AWK"; then
1859 echo "$as_me:$LINENO: result: $AWK" >&5
1860 echo "${ECHO_T}$AWK" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 test -n "$AWK" && break
1869 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1870 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1871 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1872 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 cat >conftest.make <<\_ACEOF
1877 @echo 'ac_maketemp="$(MAKE)"'
1879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1880 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1881 if test -n "$ac_maketemp"; then
1882 eval ac_cv_prog_make_${ac_make}_set=yes
1884 eval ac_cv_prog_make_${ac_make}_set=no
1888 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1889 echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 SET_MAKE="MAKE=${MAKE-make}"
1898 rm -rf .tst 2>/dev/null
1899 mkdir .tst 2>/dev/null
1900 if test -d .tst; then
1905 rmdir .tst 2>/dev/null
1907 # test to see if srcdir already configured
1908 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1909 test -f $srcdir/config.status; then
1910 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1911 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1912 { (exit 1); exit 1; }; }
1915 # test whether we have cygpath
1916 if test -z "$CYGPATH_W"; then
1917 if (cygpath --version) >/dev/null 2>/dev/null; then
1918 CYGPATH_W='cygpath -w'
1925 # Define the identity of the package.
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE "$PACKAGE"
1935 cat >>confdefs.h <<_ACEOF
1936 #define VERSION "$VERSION"
1939 # Some tools Automake needs.
1941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'. However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no; then
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$STRIP"; then
1971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 STRIP=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991 echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_STRIP"; then
2001 # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$ac_ct_STRIP"; then
2009 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_STRIP="strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2039 STRIP="$ac_cv_prog_STRIP"
2043 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2045 # We need awk for the "check" target. The system "awk" is bad on
2047 # Always define AMTAR for backward compatibility.
2049 AMTAR=${AMTAR-"${am_missing_run}tar"}
2051 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2058 [\\/]* | ?:[\\/]* ) ac_macro_dir=acmacro ;;
2059 *) ac_macro_dir=$srcdir/acmacro ;;
2061 if test -d "$ac_macro_dir"; then :
2063 { { echo "$as_me:$LINENO: error: cannot find macro directory \`acmacro'" >&5
2064 echo "$as_me: error: cannot find macro directory \`acmacro'" >&2;}
2065 { (exit 1); exit 1; }; }
2068 ACLOCAL="$ACLOCAL -I acmacro"
2071 # Check whether --enable-shared or --disable-shared was given.
2072 if test "${enable_shared+set}" = set; then
2073 enableval="$enable_shared"
2074 p=${PACKAGE-default}
2076 yes) enable_shared=yes ;;
2077 no) enable_shared=no ;;
2080 # Look at the argument we got. We use all the common list separators.
2081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2082 for pkg in $enableval; do
2084 if test "X$pkg" = "X$p"; then
2095 # Check whether --enable-static or --disable-static was given.
2096 if test "${enable_static+set}" = set; then
2097 enableval="$enable_static"
2098 p=${PACKAGE-default}
2100 yes) enable_static=yes ;;
2101 no) enable_static=no ;;
2104 # Look at the argument we got. We use all the common list separators.
2105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2106 for pkg in $enableval; do
2108 if test "X$pkg" = "X$p"; then
2119 # Check whether --enable-fast-install or --disable-fast-install was given.
2120 if test "${enable_fast_install+set}" = set; then
2121 enableval="$enable_fast_install"
2122 p=${PACKAGE-default}
2124 yes) enable_fast_install=yes ;;
2125 no) enable_fast_install=no ;;
2127 enable_fast_install=no
2128 # Look at the argument we got. We use all the common list separators.
2129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2130 for pkg in $enableval; do
2132 if test "X$pkg" = "X$p"; then
2133 enable_fast_install=yes
2140 enable_fast_install=yes
2143 DEPDIR="${am__leading_dot}deps"
2145 ac_config_commands="$ac_config_commands depfiles"
2148 am_make=${MAKE-make}
2149 cat > confinc << 'END'
2154 # If we don't find an include directive, just comment out the code.
2155 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2156 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2160 # First try GNU make style include.
2161 echo "include confinc" > confmf
2162 # We grep out `Entering directory' and `Leaving directory'
2163 # messages which can occur if `w' ends up in MAKEFLAGS.
2164 # In particular we don't look at `^make:' because GNU make might
2165 # be invoked under some other name (usually "gmake"), in which
2166 # case it prints its new name instead of `make'.
2167 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2172 # Now try BSD make style include.
2173 if test "$am__include" = "#"; then
2174 echo '.include "confinc"' > confmf
2175 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2176 am__include=.include
2183 echo "$as_me:$LINENO: result: $_am_result" >&5
2184 echo "${ECHO_T}$_am_result" >&6
2185 rm -f confinc confmf
2187 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2188 if test "${enable_dependency_tracking+set}" = set; then
2189 enableval="$enable_dependency_tracking"
2192 if test "x$enable_dependency_tracking" != xno; then
2193 am_depcomp="$ac_aux_dir/depcomp"
2198 if test "x$enable_dependency_tracking" != xno; then
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213 if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241 if test -n "$CC"; then
2242 echo "$as_me:$LINENO: result: $CC" >&5
2243 echo "${ECHO_T}$CC" >&6
2245 echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6
2250 if test -z "$ac_cv_prog_CC"; then
2252 # Extract the first word of "gcc", so it can be a program name with args.
2253 set dummy gcc; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269 ac_cv_prog_ac_ct_CC="gcc"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279 if test -n "$ac_ct_CC"; then
2280 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281 echo "${ECHO_T}$ac_ct_CC" >&6
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2292 if test -z "$CC"; then
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}cc; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_CC="${ac_tool_prefix}cc"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2330 if test -z "$ac_cv_prog_CC"; then
2332 # Extract the first word of "cc", so it can be a program name with args.
2333 set dummy cc; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$ac_ct_CC"; then
2340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_ac_ct_CC="cc"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2361 echo "${ECHO_T}$ac_ct_CC" >&6
2363 echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2373 if test -z "$CC"; then
2374 # Extract the first word of "cc", so it can be a program name with args.
2375 set dummy cc; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_CC+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2393 ac_prog_rejected=yes
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 if test $ac_prog_rejected = yes; then
2404 # We found a bogon in the path, so make sure we never use it.
2405 set dummy $ac_cv_prog_CC
2407 if test $# != 0; then
2408 # We chose a different compiler from the bogus one.
2409 # However, it has the same basename, so the bogon will be chosen
2410 # first if we set CC to just the basename; use the full file name.
2412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2418 if test -n "$CC"; then
2419 echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6
2422 echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2427 if test -z "$CC"; then
2428 if test -n "$ac_tool_prefix"; then
2431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2433 echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435 if test "${ac_cv_prog_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 if test -n "$CC"; then
2459 echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6
2462 echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2466 test -n "$CC" && break
2469 if test -z "$CC"; then
2473 # Extract the first word of "$ac_prog", so it can be a program name with args.
2474 set dummy $ac_prog; ac_word=$2
2475 echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$ac_ct_CC"; then
2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 ac_cv_prog_ac_ct_CC="$ac_prog"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500 if test -n "$ac_ct_CC"; then
2501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2502 echo "${ECHO_T}$ac_ct_CC" >&6
2504 echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6
2508 test -n "$ac_ct_CC" && break
2517 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: no acceptable C compiler found in \$PATH
2520 See \`config.log' for more details." >&2;}
2521 { (exit 1); exit 1; }; }
2523 # Provide some information about the compiler.
2524 echo "$as_me:$LINENO:" \
2525 "checking for C compiler version" >&5
2526 ac_compiler=`set X $ac_compile; echo $2`
2527 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2528 (eval $ac_compiler --version </dev/null >&5) 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }
2532 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2533 (eval $ac_compiler -v </dev/null >&5) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2538 (eval $ac_compiler -V </dev/null >&5) 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2558 ac_clean_files_save=$ac_clean_files
2559 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2560 # Try to create an executable without -o first, disregard a.out.
2561 # It will help us diagnose broken compilers, and finding out an intuition
2563 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2564 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2565 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2566 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2567 (eval $ac_link_default) 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; then
2571 # Find the output, starting from the most likely. This scheme is
2572 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2575 # Be careful to initialize this variable, since it used to be cached.
2576 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2578 # b.out is created by i960 compilers.
2579 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2581 test -f "$ac_file" || continue
2583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2586 # This is the source file.
2589 # We found the default executable, but exeext='' is most
2593 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2594 # FIXME: I believe we export ac_cv_exeext for Libtool,
2595 # but it would be cool to find out if it's true. Does anybody
2596 # maintain Libtool? --akim.
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2607 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: C compiler cannot create executables
2610 See \`config.log' for more details." >&2;}
2611 { (exit 77); exit 77; }; }
2614 ac_exeext=$ac_cv_exeext
2615 echo "$as_me:$LINENO: result: $ac_file" >&5
2616 echo "${ECHO_T}$ac_file" >&6
2618 # Check the compiler produces executables we can run. If not, either
2619 # the compiler is broken, or we cross compile.
2620 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2621 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2622 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2623 # If not cross compiling, check that we can run a simple program.
2624 if test "$cross_compiling" != yes; then
2625 if { ac_try='./$ac_file'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2633 if test "$cross_compiling" = maybe; then
2636 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2637 If you meant to cross compile, use \`--host'.
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: cannot run C compiled programs.
2640 If you meant to cross compile, use \`--host'.
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2646 echo "$as_me:$LINENO: result: yes" >&5
2647 echo "${ECHO_T}yes" >&6
2649 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2650 ac_clean_files=$ac_clean_files_save
2651 # Check the compiler produces executables we can run. If not, either
2652 # the compiler is broken, or we cross compile.
2653 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2654 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2655 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2656 echo "${ECHO_T}$cross_compiling" >&6
2658 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2659 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661 (eval $ac_link) 2>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; then
2665 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2666 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2667 # work properly (i.e., refer to `conftest.exe'), while it won't with
2669 for ac_file in conftest.exe conftest conftest.*; do
2670 test -f "$ac_file" || continue
2672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2673 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2680 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&5
2682 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2683 See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
2687 rm -f conftest$ac_cv_exeext
2688 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2689 echo "${ECHO_T}$ac_cv_exeext" >&6
2691 rm -f conftest.$ac_ext
2692 EXEEXT=$ac_cv_exeext
2694 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2695 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2696 if test "${ac_cv_objext+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2714 rm -f conftest.o conftest.obj
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; then
2720 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2731 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2734 See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
2738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2740 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2741 echo "${ECHO_T}$ac_cv_objext" >&6
2742 OBJEXT=$ac_cv_objext
2744 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2745 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2746 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 cat >conftest.$ac_ext <<_ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2771 grep -v '^ *+' conftest.er1 >conftest.err
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2799 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2800 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2801 GCC=`test $ac_compiler_gnu = yes && echo yes`
2802 ac_test_CFLAGS=${CFLAGS+set}
2803 ac_save_CFLAGS=$CFLAGS
2805 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2806 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2807 if test "${ac_cv_prog_cc_g+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2829 grep -v '^ *+' conftest.er1 >conftest.err
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2857 if test "$ac_test_CFLAGS" = set; then
2858 CFLAGS=$ac_save_CFLAGS
2859 elif test $ac_cv_prog_cc_g = yes; then
2860 if test "$GCC" = yes; then
2866 if test "$GCC" = yes; then
2872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 ac_cv_prog_cc_stdc=no
2879 cat >conftest.$ac_ext <<_ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2887 #include <sys/types.h>
2888 #include <sys/stat.h>
2889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2890 struct buf { int x; };
2891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2892 static char *e (p, i)
2898 static char *f (char * (*g) (char **, int), char **p, ...)
2903 s = g (p, va_arg (v,int));
2908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2909 function prototypes and stuff, but not '\xHH' hex character constants.
2910 These don't provoke an error unfortunately, instead are silently treated
2911 as 'x'. The following induces an error, until -std1 is added to get
2912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2913 array size at least. It's necessary to write '\x00'==0 to get something
2914 that's true only with -std1. */
2915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2917 int test (int i, double x);
2918 struct s1 {int (*f) (int a);};
2919 struct s2 {int (*f) (double a);};
2920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2931 # Don't try gcc -ansi; that turns off useful extensions and
2932 # breaks some systems' header files.
2933 # AIX -qlanglvl=ansi
2934 # Ultrix and OSF/1 -std1
2935 # HP-UX 10.20 and later -Ae
2936 # HP-UX older versions -Aa -D_HPUX_SOURCE
2937 # SVR4 -Xc -D__EXTENSIONS__
2938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2940 CC="$ac_save_CC $ac_arg"
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 ac_cv_prog_cc_stdc=$ac_arg
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f conftest.err conftest.$ac_objext
2971 rm -f conftest.$ac_ext conftest.$ac_objext
2976 case "x$ac_cv_prog_cc_stdc" in
2978 echo "$as_me:$LINENO: result: none needed" >&5
2979 echo "${ECHO_T}none needed" >&6 ;;
2981 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2982 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2983 CC="$CC $ac_cv_prog_cc_stdc" ;;
2986 # Some people use a C++ compiler to compile C. Since we use `exit',
2987 # in C++ we need to declare it. In case someone uses the same compiler
2988 # for both compiling C and C++ we need to have the C++ compiler decide
2989 # the declaration of exit, since it's the most demanding environment.
2990 cat >conftest.$ac_ext <<_ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2999 grep -v '^ *+' conftest.er1 >conftest.err
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 for ac_declaration in \
3018 'extern "C" void std::exit (int) throw (); using std::exit;' \
3019 'extern "C" void std::exit (int); using std::exit;' \
3020 'extern "C" void exit (int) throw ();' \
3021 'extern "C" void exit (int);' \
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try='test -s conftest.$ac_objext'
3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3084 rm -f conftest.$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086 (eval $ac_compile) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3114 if test -n "$ac_declaration"; then
3115 echo '#ifdef __cplusplus' >>confdefs.h
3116 echo $ac_declaration >>confdefs.h
3117 echo '#endif' >>confdefs.h
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 depcc="$CC" am_compiler_list=
3134 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3140 # We make a subdir and do the tests there. Otherwise we can end up
3141 # making bogus files that we don't know about and never remove. For
3142 # instance it was reported that on HP-UX the gcc test will end up
3143 # making a dummy file named `D' -- because `-MD' means `put the output
3146 # Copy depcomp to subdir because otherwise we won't find it if we're
3147 # using a relative directory.
3148 cp "$am_depcomp" conftest.dir
3150 # We will build objects and dependencies in a subdirectory because
3151 # it helps to detect inapplicable dependency modes. For instance
3152 # both Tru64's cc and ICC support -MD to output dependencies as a
3153 # side effect of compilation, but ICC will put the dependencies in
3154 # the current directory while Tru64 will put them in the object
3158 am_cv_CC_dependencies_compiler_type=none
3159 if test "$am_compiler_list" = ""; then
3160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3162 for depmode in $am_compiler_list; do
3163 # Setup a source with many dependencies, because some compilers
3164 # like to wrap large dependency lists on column 80 (with \), and
3165 # we should not choose a depcomp mode which is confused by this.
3167 # We need to recreate these files for each test, as the compiler may
3168 # overwrite some of them when testing with obscure command lines.
3169 # This happens at least with the AIX C compiler.
3171 for i in 1 2 3 4 5 6; do
3172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3174 # Solaris 8's {/usr,}/bin/sh.
3175 touch sub/conftst$i.h
3177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3181 # after this tag, mechanisms are not by side-effect, so they'll
3182 # only be used when explicitly requested
3183 if test "x$enable_dependency_tracking" = xyes; then
3191 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3192 # mode. It turns out that the SunPro C++ compiler does not properly
3193 # handle `-M -o', and we need to detect this.
3194 if depmode=$depmode \
3195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3198 >/dev/null 2>conftest.err &&
3199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3200 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3202 # icc doesn't choke on unknown options, it will just issue warnings
3203 # or remarks (even with -Werror). So we grep stderr for any message
3204 # that says an option was ignored or not supported.
3205 # When given -MP, icc 7.0 and 7.1 complain thusly:
3206 # icc: Command line warning: ignoring option '-M'; no argument required
3207 # The diagnosis changed in icc 8.0:
3208 # icc: Command line remark: option '-MP' not supported
3209 if (grep 'ignoring option' conftest.err ||
3210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3211 am_cv_CC_dependencies_compiler_type=$depmode
3220 am_cv_CC_dependencies_compiler_type=none
3224 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3225 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3231 test "x$enable_dependency_tracking" != xno \
3232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3234 am__fastdepCC_FALSE='#'
3236 am__fastdepCC_TRUE='#'
3237 am__fastdepCC_FALSE=
3241 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3242 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3243 if test "${lt_cv_path_SED+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 # Loop through the user's path and test for sed and gsed.
3247 # Then use that list of sed's as ones to test for truncation.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for lt_ac_prog in sed gsed; do
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3256 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3263 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3264 # along with /bin/sed that truncates output.
3265 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3266 test ! -f $lt_ac_sed && continue
3267 cat /dev/null > conftest.in
3269 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3270 # Check for GNU sed and select it if it is found.
3271 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3272 lt_cv_path_SED=$lt_ac_sed
3276 cat conftest.in conftest.in >conftest.tmp
3277 mv conftest.tmp conftest.in
3278 cp conftest.in conftest.nl
3280 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3281 cmp -s conftest.out conftest.nl || break
3282 # 10000 chars as input seems more than enough
3283 test $lt_ac_count -gt 10 && break
3284 lt_ac_count=`expr $lt_ac_count + 1`
3285 if test $lt_ac_count -gt $lt_ac_max; then
3286 lt_ac_max=$lt_ac_count
3287 lt_cv_path_SED=$lt_ac_sed
3295 echo "$as_me:$LINENO: result: $SED" >&5
3296 echo "${ECHO_T}$SED" >&6
3298 echo "$as_me:$LINENO: checking for egrep" >&5
3299 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3300 if test "${ac_cv_prog_egrep+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3304 then ac_cv_prog_egrep='grep -E'
3305 else ac_cv_prog_egrep='egrep'
3308 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3309 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3310 EGREP=$ac_cv_prog_egrep
3314 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3315 if test "${with_gnu_ld+set}" = set; then
3316 withval="$with_gnu_ld"
3317 test "$withval" = no || with_gnu_ld=yes
3322 if test "$GCC" = yes; then
3323 # Check if gcc -print-prog-name=ld gives a path.
3324 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3325 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3328 # gcc leaves a trailing carriage return which upsets mingw
3329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3334 # Accept absolute paths.
3336 re_direlt='/[^/][^/]*/\.\./'
3337 # Canonicalize the pathname of ld
3338 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3339 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3340 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3342 test -z "$LD" && LD="$ac_prog"
3345 # If it fails, then pretend we aren't using GCC.
3349 # If it is relative, then search for the first ld in PATH.
3353 elif test "$with_gnu_ld" = yes; then
3354 echo "$as_me:$LINENO: checking for GNU ld" >&5
3355 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3357 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3358 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3360 if test "${lt_cv_path_LD+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 if test -z "$LD"; then
3364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3365 for ac_dir in $PATH; do
3367 test -z "$ac_dir" && ac_dir=.
3368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3369 lt_cv_path_LD="$ac_dir/$ac_prog"
3370 # Check to see if the program is GNU ld. I'd rather use --version,
3371 # but apparently some variants of GNU ld only accept -v.
3372 # Break only if it was the GNU/non-GNU ld that we prefer.
3373 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3374 *GNU* | *'with BFD'*)
3375 test "$with_gnu_ld" != no && break
3378 test "$with_gnu_ld" != yes && break
3385 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3390 if test -n "$LD"; then
3391 echo "$as_me:$LINENO: result: $LD" >&5
3392 echo "${ECHO_T}$LD" >&6
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3397 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3398 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3399 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3401 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3402 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3406 case `$LD -v 2>&1 </dev/null` in
3407 *GNU* | *'with BFD'*)
3408 lt_cv_prog_gnu_ld=yes
3411 lt_cv_prog_gnu_ld=no
3415 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3416 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3417 with_gnu_ld=$lt_cv_prog_gnu_ld
3420 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3421 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3422 if test "${lt_cv_ld_reload_flag+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 lt_cv_ld_reload_flag='-r'
3427 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3428 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3429 reload_flag=$lt_cv_ld_reload_flag
3430 case $reload_flag in
3432 *) reload_flag=" $reload_flag" ;;
3434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3437 if test "$GCC" = yes; then
3438 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3440 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3445 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3446 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3447 if test "${lt_cv_path_NM+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 if test -n "$NM"; then
3451 # Let the user override the test.
3454 lt_nm_to_check="${ac_tool_prefix}nm"
3455 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3456 lt_nm_to_check="$lt_nm_to_check nm"
3458 for lt_tmp_nm in $lt_nm_to_check; do
3459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3460 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3462 test -z "$ac_dir" && ac_dir=.
3463 tmp_nm="$ac_dir/$lt_tmp_nm"
3464 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3465 # Check to see if the nm accepts a BSD-compat flag.
3466 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3467 # nm: unknown option "B" ignored
3468 # Tru64's nm complains that /dev/null is an invalid object file
3469 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3470 */dev/null* | *'Invalid file or object type'*)
3471 lt_cv_path_NM="$tmp_nm -B"
3475 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3477 lt_cv_path_NM="$tmp_nm -p"
3481 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3482 continue # so that we can try to find one that supports BSD flags
3491 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3494 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3495 echo "${ECHO_T}$lt_cv_path_NM" >&6
3498 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3499 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3501 if test "$LN_S" = "ln -s"; then
3502 echo "$as_me:$LINENO: result: yes" >&5
3503 echo "${ECHO_T}yes" >&6
3505 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3506 echo "${ECHO_T}no, using $LN_S" >&6
3509 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3510 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3511 if test "${lt_cv_deplibs_check_method+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 lt_cv_file_magic_cmd='$MAGIC_CMD'
3515 lt_cv_file_magic_test_file=
3516 lt_cv_deplibs_check_method='unknown'
3517 # Need to set the preceding variable on all platforms that support
3518 # interlibrary dependencies.
3519 # 'none' -- dependencies not supported.
3520 # `unknown' -- same as none, but documents that we really don't know.
3521 # 'pass_all' -- all dependencies passed with no checks.
3522 # 'test_compile' -- check by making test program.
3523 # 'file_magic [[regex]]' -- check by looking for files in library path
3524 # which responds to the $file_magic_cmd with a given extended regex.
3525 # If you have `file' or equivalent on your system and you're not sure
3526 # whether `pass_all' will *always* work, you probably want this one.
3530 lt_cv_deplibs_check_method=pass_all
3534 lt_cv_deplibs_check_method=pass_all
3538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3539 lt_cv_file_magic_cmd='/usr/bin/file -L'
3540 lt_cv_file_magic_test_file=/shlib/libc.so
3544 # func_win32_libid is a shell function defined in ltmain.sh
3545 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3546 lt_cv_file_magic_cmd='func_win32_libid'
3550 # Base MSYS/MinGW do not provide the 'file' command needed by
3551 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3552 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3553 lt_cv_file_magic_cmd='$OBJDUMP -f'
3556 darwin* | rhapsody*)
3557 lt_cv_deplibs_check_method=pass_all
3560 freebsd* | kfreebsd*-gnu | dragonfly*)
3561 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3564 # Not sure whether the presence of OpenBSD here was a mistake.
3565 # Let's accept both of them until this is cleared up.
3566 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3567 lt_cv_file_magic_cmd=/usr/bin/file
3568 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3572 lt_cv_deplibs_check_method=pass_all
3577 lt_cv_deplibs_check_method=pass_all
3580 hpux10.20* | hpux11*)
3581 lt_cv_file_magic_cmd=/usr/bin/file
3584 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3585 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3588 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]'
3589 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3592 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3593 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3599 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3603 irix5* | irix6* | nonstopux*)
3605 *-32|*"-32 ") libmagic=32-bit;;
3606 *-n32|*"-n32 ") libmagic=N32;;
3607 *-64|*"-64 ") libmagic=64-bit;;
3608 *) libmagic=never-match;;
3610 lt_cv_deplibs_check_method=pass_all
3613 # This must be Linux ELF.
3615 lt_cv_deplibs_check_method=pass_all
3618 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3619 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3628 lt_cv_file_magic_cmd=/usr/bin/file
3629 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3633 lt_cv_deplibs_check_method=unknown
3637 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3644 osf3* | osf4* | osf5*)
3645 lt_cv_deplibs_check_method=pass_all
3649 lt_cv_deplibs_check_method=pass_all
3653 case $host_vendor in
3655 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]'
3656 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3659 lt_cv_deplibs_check_method=pass_all
3662 lt_cv_file_magic_cmd='/bin/file'
3663 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3666 lt_cv_file_magic_cmd='/bin/file'
3667 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3668 lt_cv_file_magic_test_file=/lib/libc.so
3671 lt_cv_deplibs_check_method=pass_all
3674 lt_cv_deplibs_check_method=pass_all
3679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3680 lt_cv_deplibs_check_method=pass_all
3685 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3686 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3687 file_magic_cmd=$lt_cv_file_magic_cmd
3688 deplibs_check_method=$lt_cv_deplibs_check_method
3689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3694 # If no C compiler was specified, use CC.
3697 # If no C compiler flags were specified, use CFLAGS.
3698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3700 # Allow CC to be a program name with arguments.
3704 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3705 if test "${enable_libtool_lock+set}" = set; then
3706 enableval="$enable_libtool_lock"
3709 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3711 # Some flags need to be propagated to the compiler or linker for good
3715 # Find out which ABI we are using.
3716 echo 'int i;' > conftest.$ac_ext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; then
3722 case `/usr/bin/file conftest.$ac_objext` in
3734 # Find out which ABI we are using.
3735 echo '#line 3735 "configure"' > conftest.$ac_ext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; then
3741 if test "$lt_cv_prog_gnu_ld" = yes; then
3742 case `/usr/bin/file conftest.$ac_objext` in
3744 LD="${LD-ld} -melf32bsmip"
3747 LD="${LD-ld} -melf32bmipn32"
3750 LD="${LD-ld} -melf64bmip"
3754 case `/usr/bin/file conftest.$ac_objext` in
3770 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3771 # Find out which ABI we are using.
3772 echo 'int i;' > conftest.$ac_ext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; then
3778 case `/usr/bin/file conftest.o` in
3782 LD="${LD-ld} -m elf_i386"
3784 ppc64-*linux*|powerpc64-*linux*)
3785 LD="${LD-ld} -m elf32ppclinux"
3788 LD="${LD-ld} -m elf_s390"
3791 LD="${LD-ld} -m elf32_sparc"
3798 LD="${LD-ld} -m elf_x86_64"
3800 ppc*-*linux*|powerpc*-*linux*)
3801 LD="${LD-ld} -m elf64ppc"
3804 LD="${LD-ld} -m elf64_s390"
3807 LD="${LD-ld} -m elf64_sparc"
3817 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3818 SAVE_CFLAGS="$CFLAGS"
3819 CFLAGS="$CFLAGS -belf"
3820 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3821 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3822 if test "${lt_cv_cc_needs_belf+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 cat >conftest.$ac_ext <<_ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3846 rm -f conftest.$ac_objext conftest$ac_exeext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 (eval $ac_link) 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 lt_cv_cc_needs_belf=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 lt_cv_cc_needs_belf=no
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3884 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3885 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3886 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3887 CFLAGS="$SAVE_CFLAGS"
3891 # Find out which ABI we are using.
3892 echo 'int i;' > conftest.$ac_ext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; then
3898 case `/usr/bin/file conftest.o` in
3900 case $lt_cv_prog_gnu_ld in
3901 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3902 *) LD="${LD-ld} -64" ;;
3910 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3911 if test -n "$ac_tool_prefix"; then
3912 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 if test -n "$DLLTOOL"; then
3920 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 DLLTOOL=$ac_cv_prog_DLLTOOL
3939 if test -n "$DLLTOOL"; then
3940 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3941 echo "${ECHO_T}$DLLTOOL" >&6
3943 echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6
3948 if test -z "$ac_cv_prog_DLLTOOL"; then
3949 ac_ct_DLLTOOL=$DLLTOOL
3950 # Extract the first word of "dlltool", so it can be a program name with args.
3951 set dummy dlltool; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 if test -n "$ac_ct_DLLTOOL"; then
3958 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3977 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3978 if test -n "$ac_ct_DLLTOOL"; then
3979 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3980 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3986 DLLTOOL=$ac_ct_DLLTOOL
3988 DLLTOOL="$ac_cv_prog_DLLTOOL"
3991 if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}as; ac_word=$2
3994 echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996 if test "${ac_cv_prog_AS+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 if test -n "$AS"; then
4000 ac_cv_prog_AS="$AS" # Let the user override the test.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_prog_AS="${ac_tool_prefix}as"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 if test -n "$AS"; then
4020 echo "$as_me:$LINENO: result: $AS" >&5
4021 echo "${ECHO_T}$AS" >&6
4023 echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4028 if test -z "$ac_cv_prog_AS"; then
4030 # Extract the first word of "as", so it can be a program name with args.
4031 set dummy as; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test -n "$ac_ct_AS"; then
4038 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_ac_ct_AS="as"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4057 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4058 if test -n "$ac_ct_AS"; then
4059 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4060 echo "${ECHO_T}$ac_ct_AS" >&6
4062 echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4074 echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if test -n "$OBJDUMP"; then
4080 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 OBJDUMP=$ac_cv_prog_OBJDUMP
4099 if test -n "$OBJDUMP"; then
4100 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4101 echo "${ECHO_T}$OBJDUMP" >&6
4103 echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4108 if test -z "$ac_cv_prog_OBJDUMP"; then
4109 ac_ct_OBJDUMP=$OBJDUMP
4110 # Extract the first word of "objdump", so it can be a program name with args.
4111 set dummy objdump; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$ac_ct_OBJDUMP"; then
4118 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4137 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4138 if test -n "$ac_ct_OBJDUMP"; then
4139 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4140 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4142 echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4146 OBJDUMP=$ac_ct_OBJDUMP
4148 OBJDUMP="$ac_cv_prog_OBJDUMP"
4155 need_locks="$enable_libtool_lock"
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4164 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4165 # On Suns, sometimes $CPP names a directory.
4166 if test -n "$CPP" && test -d "$CPP"; then
4169 if test -z "$CPP"; then
4170 if test "${ac_cv_prog_CPP+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 # Double quotes because CPP needs to be expanded
4174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4177 for ac_c_preproc_warn_flag in '' yes
4179 # Use a header file that comes with gcc, so configuring glibc
4180 # with a fresh cross-compiler works.
4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182 # <limits.h> exists even on freestanding compilers.
4183 # On the NeXT, cc -E runs the code through the compiler's parser,
4184 # not just through cpp. "Syntax error" is here to catch this case.
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4192 # include <limits.h>
4194 # include <assert.h>
4198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4201 grep -v '^ *+' conftest.er1 >conftest.err
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } >/dev/null; then
4206 if test -s conftest.err; then
4207 ac_cpp_err=$ac_c_preproc_warn_flag
4208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4215 if test -z "$ac_cpp_err"; then
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 # Broken: fails on valid input.
4224 rm -f conftest.err conftest.$ac_ext
4226 # OK, works on sane cases. Now check whether non-existent headers
4227 # can be detected and how.
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } >/dev/null; then
4244 if test -s conftest.err; then
4245 ac_cpp_err=$ac_c_preproc_warn_flag
4246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4253 if test -z "$ac_cpp_err"; then
4254 # Broken: success on invalid input.
4257 echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 # Passes both tests.
4264 rm -f conftest.err conftest.$ac_ext
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.err conftest.$ac_ext
4269 if $ac_preproc_ok; then
4281 echo "$as_me:$LINENO: result: $CPP" >&5
4282 echo "${ECHO_T}$CPP" >&6
4284 for ac_c_preproc_warn_flag in '' yes
4286 # Use a header file that comes with gcc, so configuring glibc
4287 # with a fresh cross-compiler works.
4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289 # <limits.h> exists even on freestanding compilers.
4290 # On the NeXT, cc -E runs the code through the compiler's parser,
4291 # not just through cpp. "Syntax error" is here to catch this case.
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4299 # include <limits.h>
4301 # include <assert.h>
4305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } >/dev/null; then
4313 if test -s conftest.err; then
4314 ac_cpp_err=$ac_c_preproc_warn_flag
4315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4322 if test -z "$ac_cpp_err"; then
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 # Broken: fails on valid input.
4331 rm -f conftest.err conftest.$ac_ext
4333 # OK, works on sane cases. Now check whether non-existent headers
4334 # can be detected and how.
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 #include <ac_nonexistent.h>
4343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } >/dev/null; then
4351 if test -s conftest.err; then
4352 ac_cpp_err=$ac_c_preproc_warn_flag
4353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4360 if test -z "$ac_cpp_err"; then
4361 # Broken: success on invalid input.
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 # Passes both tests.
4371 rm -f conftest.err conftest.$ac_ext
4374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4375 rm -f conftest.err conftest.$ac_ext
4376 if $ac_preproc_ok; then
4379 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4380 See \`config.log' for more details." >&5
4381 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4382 See \`config.log' for more details." >&2;}
4383 { (exit 1); exit 1; }; }
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4394 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4395 if test "${ac_cv_header_stdc+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 cat >conftest.$ac_ext <<_ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } &&
4426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; } &&
4432 { ac_try='test -s conftest.$ac_objext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_cv_header_stdc=yes
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 ac_cv_header_stdc=no
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447 if test $ac_cv_header_stdc = yes; then
4448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4459 $EGREP "memchr" >/dev/null 2>&1; then
4462 ac_cv_header_stdc=no
4468 if test $ac_cv_header_stdc = yes; then
4469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4470 cat >conftest.$ac_ext <<_ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480 $EGREP "free" >/dev/null 2>&1; then
4483 ac_cv_header_stdc=no
4489 if test $ac_cv_header_stdc = yes; then
4490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4491 if test "$cross_compiling" = yes; then
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4501 #if ((' ' & 0x0FF) == 0x020)
4502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4505 # define ISLOWER(c) \
4506 (('a' <= (c) && (c) <= 'i') \
4507 || ('j' <= (c) && (c) <= 'r') \
4508 || ('s' <= (c) && (c) <= 'z'))
4509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4517 for (i = 0; i < 256; i++)
4518 if (XOR (islower (i), ISLOWER (i))
4519 || toupper (i) != TOUPPER (i))
4524 rm -f conftest$ac_exeext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4526 (eval $ac_link) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4537 echo "$as_me: program exited with status $ac_status" >&5
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4542 ac_cv_header_stdc=no
4544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4548 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4549 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4550 if test $ac_cv_header_stdc = yes; then
4552 cat >>confdefs.h <<\_ACEOF
4553 #define STDC_HEADERS 1
4558 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4568 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4569 inttypes.h stdint.h unistd.h
4571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4572 echo "$as_me:$LINENO: checking for $ac_header" >&5
4573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4585 #include <$ac_header>
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 eval "$as_ac_Header=yes"
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4613 eval "$as_ac_Header=no"
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4620 cat >>confdefs.h <<_ACEOF
4621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4630 for ac_header in dlfcn.h
4632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo "$as_me:$LINENO: checking for $ac_header" >&5
4635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 # Is the header compilable?
4643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4652 #include <$ac_header>
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_header_compiler=yes
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_header_compiler=no
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4684 echo "${ECHO_T}$ac_header_compiler" >&6
4686 # Is the header present?
4687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <$ac_header>
4697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 grep -v '^ *+' conftest.er1 >conftest.err
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null; then
4705 if test -s conftest.err; then
4706 ac_cpp_err=$ac_c_preproc_warn_flag
4707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4714 if test -z "$ac_cpp_err"; then
4715 ac_header_preproc=yes
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 ac_header_preproc=no
4722 rm -f conftest.err conftest.$ac_ext
4723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4724 echo "${ECHO_T}$ac_header_preproc" >&6
4726 # So? What about this header?
4727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4733 ac_header_preproc=yes
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4750 ## -------------------------------------------------- ##
4751 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
4752 ## -------------------------------------------------- ##
4755 sed "s/^/$as_me: WARNING: /" >&2
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 eval "$as_ac_Header=\$ac_header_preproc"
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770 cat >>confdefs.h <<_ACEOF
4771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 ac_cpp='$CXXCPP $CPPFLAGS'
4780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4783 if test -n "$ac_tool_prefix"; then
4784 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4788 echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4790 if test "${ac_cv_prog_CXX+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 if test -n "$CXX"; then
4794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 if test -n "$CXX"; then
4814 echo "$as_me:$LINENO: result: $CXX" >&5
4815 echo "${ECHO_T}$CXX" >&6
4817 echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6
4821 test -n "$CXX" && break
4824 if test -z "$CXX"; then
4826 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4828 # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$ac_ct_CXX"; then
4836 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_ac_ct_CXX="$ac_prog"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4855 if test -n "$ac_ct_CXX"; then
4856 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4857 echo "${ECHO_T}$ac_ct_CXX" >&6
4859 echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4863 test -n "$ac_ct_CXX" && break
4865 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4871 # Provide some information about the compiler.
4872 echo "$as_me:$LINENO:" \
4873 "checking for C++ compiler version" >&5
4874 ac_compiler=`set X $ac_compile; echo $2`
4875 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4876 (eval $ac_compiler --version </dev/null >&5) 2>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }
4880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4881 (eval $ac_compiler -v </dev/null >&5) 2>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }
4885 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4886 (eval $ac_compiler -V </dev/null >&5) 2>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }
4891 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4892 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4893 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 cat >conftest.$ac_ext <<_ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4914 rm -f conftest.$ac_objext
4915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4916 (eval $ac_compile) 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
4923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4946 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4947 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4948 GXX=`test $ac_compiler_gnu = yes && echo yes`
4949 ac_test_CXXFLAGS=${CXXFLAGS+set}
4950 ac_save_CXXFLAGS=$CXXFLAGS
4952 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4953 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4954 if test "${ac_cv_prog_cxx_g+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; } &&
4987 { ac_try='test -s conftest.$ac_objext'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4993 ac_cv_prog_cxx_g=yes
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
5000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5003 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5004 if test "$ac_test_CXXFLAGS" = set; then
5005 CXXFLAGS=$ac_save_CXXFLAGS
5006 elif test $ac_cv_prog_cxx_g = yes; then
5007 if test "$GXX" = yes; then
5013 if test "$GXX" = yes; then
5019 for ac_declaration in \
5021 'extern "C" void std::exit (int) throw (); using std::exit;' \
5022 'extern "C" void std::exit (int); using std::exit;' \
5023 'extern "C" void exit (int) throw ();' \
5024 'extern "C" void exit (int);' \
5027 cat >conftest.$ac_ext <<_ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>conftest.er1
5047 grep -v '^ *+' conftest.er1 >conftest.err
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } &&
5052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; } &&
5058 { ac_try='test -s conftest.$ac_objext'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5117 if test -n "$ac_declaration"; then
5118 echo '#ifdef __cplusplus' >>confdefs.h
5119 echo $ac_declaration >>confdefs.h
5120 echo '#endif' >>confdefs.h
5124 ac_cpp='$CXXCPP $CPPFLAGS'
5125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5129 depcc="$CXX" am_compiler_list=
5131 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5132 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5133 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5137 # We make a subdir and do the tests there. Otherwise we can end up
5138 # making bogus files that we don't know about and never remove. For
5139 # instance it was reported that on HP-UX the gcc test will end up
5140 # making a dummy file named `D' -- because `-MD' means `put the output
5143 # Copy depcomp to subdir because otherwise we won't find it if we're
5144 # using a relative directory.
5145 cp "$am_depcomp" conftest.dir
5147 # We will build objects and dependencies in a subdirectory because
5148 # it helps to detect inapplicable dependency modes. For instance
5149 # both Tru64's cc and ICC support -MD to output dependencies as a
5150 # side effect of compilation, but ICC will put the dependencies in
5151 # the current directory while Tru64 will put them in the object
5155 am_cv_CXX_dependencies_compiler_type=none
5156 if test "$am_compiler_list" = ""; then
5157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5159 for depmode in $am_compiler_list; do
5160 # Setup a source with many dependencies, because some compilers
5161 # like to wrap large dependency lists on column 80 (with \), and
5162 # we should not choose a depcomp mode which is confused by this.
5164 # We need to recreate these files for each test, as the compiler may
5165 # overwrite some of them when testing with obscure command lines.
5166 # This happens at least with the AIX C compiler.
5168 for i in 1 2 3 4 5 6; do
5169 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5170 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5171 # Solaris 8's {/usr,}/bin/sh.
5172 touch sub/conftst$i.h
5174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5178 # after this tag, mechanisms are not by side-effect, so they'll
5179 # only be used when explicitly requested
5180 if test "x$enable_dependency_tracking" = xyes; then
5188 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5189 # mode. It turns out that the SunPro C++ compiler does not properly
5190 # handle `-M -o', and we need to detect this.
5191 if depmode=$depmode \
5192 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5194 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5195 >/dev/null 2>conftest.err &&
5196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5197 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5199 # icc doesn't choke on unknown options, it will just issue warnings
5200 # or remarks (even with -Werror). So we grep stderr for any message
5201 # that says an option was ignored or not supported.
5202 # When given -MP, icc 7.0 and 7.1 complain thusly:
5203 # icc: Command line warning: ignoring option '-M'; no argument required
5204 # The diagnosis changed in icc 8.0:
5205 # icc: Command line remark: option '-MP' not supported
5206 if (grep 'ignoring option' conftest.err ||
5207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5208 am_cv_CXX_dependencies_compiler_type=$depmode
5217 am_cv_CXX_dependencies_compiler_type=none
5221 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5222 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5223 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5228 test "x$enable_dependency_tracking" != xno \
5229 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5230 am__fastdepCXX_TRUE=
5231 am__fastdepCXX_FALSE='#'
5233 am__fastdepCXX_TRUE='#'
5234 am__fastdepCXX_FALSE=
5240 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5241 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5242 (test "X$CXX" != "Xg++"))) ; then
5244 ac_cpp='$CXXCPP $CPPFLAGS'
5245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5248 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5249 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5250 if test -z "$CXXCPP"; then
5251 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 # Double quotes because CXXCPP needs to be expanded
5255 for CXXCPP in "$CXX -E" "/lib/cpp"
5258 for ac_cxx_preproc_warn_flag in '' yes
5260 # Use a header file that comes with gcc, so configuring glibc
5261 # with a fresh cross-compiler works.
5262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5263 # <limits.h> exists even on freestanding compilers.
5264 # On the NeXT, cc -E runs the code through the compiler's parser,
5265 # not just through cpp. "Syntax error" is here to catch this case.
5266 cat >conftest.$ac_ext <<_ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5273 # include <limits.h>
5275 # include <assert.h>
5279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282 grep -v '^ *+' conftest.er1 >conftest.err
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } >/dev/null; then
5287 if test -s conftest.err; then
5288 ac_cpp_err=$ac_cxx_preproc_warn_flag
5289 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5296 if test -z "$ac_cpp_err"; then
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 # Broken: fails on valid input.
5305 rm -f conftest.err conftest.$ac_ext
5307 # OK, works on sane cases. Now check whether non-existent headers
5308 # can be detected and how.
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 #include <ac_nonexistent.h>
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } >/dev/null; then
5325 if test -s conftest.err; then
5326 ac_cpp_err=$ac_cxx_preproc_warn_flag
5327 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5334 if test -z "$ac_cpp_err"; then
5335 # Broken: success on invalid input.
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 # Passes both tests.
5345 rm -f conftest.err conftest.$ac_ext
5348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5349 rm -f conftest.err conftest.$ac_ext
5350 if $ac_preproc_ok; then
5355 ac_cv_prog_CXXCPP=$CXXCPP
5358 CXXCPP=$ac_cv_prog_CXXCPP
5360 ac_cv_prog_CXXCPP=$CXXCPP
5362 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5363 echo "${ECHO_T}$CXXCPP" >&6
5365 for ac_cxx_preproc_warn_flag in '' yes
5367 # Use a header file that comes with gcc, so configuring glibc
5368 # with a fresh cross-compiler works.
5369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5370 # <limits.h> exists even on freestanding compilers.
5371 # On the NeXT, cc -E runs the code through the compiler's parser,
5372 # not just through cpp. "Syntax error" is here to catch this case.
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5380 # include <limits.h>
5382 # include <assert.h>
5386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5389 grep -v '^ *+' conftest.er1 >conftest.err
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } >/dev/null; then
5394 if test -s conftest.err; then
5395 ac_cpp_err=$ac_cxx_preproc_warn_flag
5396 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5403 if test -z "$ac_cpp_err"; then
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 # Broken: fails on valid input.
5412 rm -f conftest.err conftest.$ac_ext
5414 # OK, works on sane cases. Now check whether non-existent headers
5415 # can be detected and how.
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <ac_nonexistent.h>
5424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5427 grep -v '^ *+' conftest.er1 >conftest.err
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } >/dev/null; then
5432 if test -s conftest.err; then
5433 ac_cpp_err=$ac_cxx_preproc_warn_flag
5434 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5441 if test -z "$ac_cpp_err"; then
5442 # Broken: success on invalid input.
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 # Passes both tests.
5452 rm -f conftest.err conftest.$ac_ext
5455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456 rm -f conftest.err conftest.$ac_ext
5457 if $ac_preproc_ok; then
5460 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5461 See \`config.log' for more details." >&5
5462 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5463 See \`config.log' for more details." >&2;}
5464 { (exit 1); exit 1; }; }
5468 ac_cpp='$CXXCPP $CPPFLAGS'
5469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5477 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5478 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5480 if test -n "$ac_tool_prefix"; then
5481 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_prog_F77+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 if test -n "$F77"; then
5491 ac_cv_prog_F77="$F77" # Let the user override the test.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 if test -n "$F77"; then
5511 echo "$as_me:$LINENO: result: $F77" >&5
5512 echo "${ECHO_T}$F77" >&6
5514 echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5518 test -n "$F77" && break
5521 if test -z "$F77"; then
5523 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5525 # Extract the first word of "$ac_prog", so it can be a program name with args.
5526 set dummy $ac_prog; ac_word=$2
5527 echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5529 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 if test -n "$ac_ct_F77"; then
5533 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_ac_ct_F77="$ac_prog"
5543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5552 if test -n "$ac_ct_F77"; then
5553 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5554 echo "${ECHO_T}$ac_ct_F77" >&6
5556 echo "$as_me:$LINENO: result: no" >&5
5557 echo "${ECHO_T}no" >&6
5560 test -n "$ac_ct_F77" && break
5567 # Provide some information about the compiler.
5568 echo "$as_me:5568:" \
5569 "checking for Fortran 77 compiler version" >&5
5570 ac_compiler=`set X $ac_compile; echo $2`
5571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5572 (eval $ac_compiler --version </dev/null >&5) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }
5576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5577 (eval $ac_compiler -v </dev/null >&5) 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }
5581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5582 (eval $ac_compiler -V </dev/null >&5) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }
5588 # If we don't use `.F' as extension, the preprocessor is not run on the
5589 # input file. (Note that this only needs to work for GNU compilers.)
5592 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5593 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5594 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 cat >conftest.$ac_ext <<_ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607 (eval $ac_compile) 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; } &&
5620 { ac_try='test -s conftest.$ac_objext'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5634 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5637 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5638 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5640 ac_test_FFLAGS=${FFLAGS+set}
5641 ac_save_FFLAGS=$FFLAGS
5643 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5644 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5645 if test "${ac_cv_prog_f77_g+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 cat >conftest.$ac_ext <<_ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_prog_f77_g=yes
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5686 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5687 if test "$ac_test_FFLAGS" = set; then
5688 FFLAGS=$ac_save_FFLAGS
5689 elif test $ac_cv_prog_f77_g = yes; then
5690 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5696 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5703 G77=`test $ac_compiler_gnu = yes && echo yes`
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5712 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5714 # find the maximum length of command line arguments
5715 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5716 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5717 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 # On DJGPP, this test can blow up pretty badly due to problems in libc
5726 # (any single argument exceeding 2000 bytes causes a buffer overrun
5727 # during glob expansion). Even if it were fixed, the result of this
5728 # check would be larger than it should be.
5729 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5733 # Under GNU Hurd, this test is not required because there is
5734 # no limit to the length of command line arguments.
5735 # Libtool will interpret -1 as no limit whatsoever
5736 lt_cv_sys_max_cmd_len=-1;
5740 # On Win9x/ME, this test blows up -- it succeeds, but takes
5741 # about 5 minutes as the teststring grows exponentially.
5742 # Worse, since 9x/ME are not pre-emptively multitasking,
5743 # you end up with a "frozen" computer, even though with patience
5744 # the test eventually succeeds (with a max line length of 256k).
5745 # Instead, let's just punt: use the minimum linelength reported by
5746 # all of the supported platforms: 8192 (on NT/2K/XP).
5747 lt_cv_sys_max_cmd_len=8192;
5751 # On AmigaOS with pdksh, this test takes hours, literally.
5752 # So we just punt and use a minimum line length of 8192.
5753 lt_cv_sys_max_cmd_len=8192;
5756 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5757 # This has been around since 386BSD, at least. Likely further.
5758 if test -x /sbin/sysctl; then
5759 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5760 elif test -x /usr/sbin/sysctl; then
5761 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5763 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5765 # And add a safety zone
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5771 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5772 lt_cv_sys_max_cmd_len=196608
5776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5778 # nice to cause kernel panics so lets avoid the loop below.
5779 # First set a reasonable default.
5780 lt_cv_sys_max_cmd_len=16384
5782 if test -x /sbin/sysconfig; then
5783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5784 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5789 lt_cv_sys_max_cmd_len=102400
5791 sysv5* | sco5v6* | sysv4.2uw2*)
5792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5793 if test -n "$kargmax"; then
5794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5796 lt_cv_sys_max_cmd_len=32768
5800 # If test is not a shell built-in, we'll probably end up computing a
5801 # maximum length that is only half of the actual maximum length, but
5803 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5804 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5805 = "XX$teststring") >/dev/null 2>&1 &&
5806 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5807 lt_cv_sys_max_cmd_len=$new_result &&
5808 test $i != 17 # 1/2 MB should be enough
5811 teststring=$teststring$teststring
5814 # Add a significant safety factor because C++ compilers can tack on massive
5815 # amounts of additional arguments before passing them to the linker.
5816 # It appears as though 1/2 is a usable value.
5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5823 if test -n $lt_cv_sys_max_cmd_len ; then
5824 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5825 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5827 echo "$as_me:$LINENO: result: none" >&5
5828 echo "${ECHO_T}none" >&6
5834 # Check for command to grab the raw symbol name followed by C symbol from nm.
5835 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5836 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5837 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 # These are sane defaults that work on at least a few old systems.
5842 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5844 # Character class describing NM global symbol codes.
5845 symcode='[BCDEGRST]'
5847 # Regexp to match symbols that can be accessed directly from C.
5848 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5850 # Transform an extracted symbol line into a proper C declaration
5851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5853 # Transform an extracted symbol line into symbol name and symbol address
5854 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'"
5856 # Define system-specific variables.
5861 cygwin* | mingw* | pw32*)
5862 symcode='[ABCDGISTW]'
5864 hpux*) # Its linker distinguishes data from code symbols
5865 if test "$host_cpu" = ia64; then
5866 symcode='[ABCDEGRST]'
5868 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5869 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'"
5872 if test "$host_cpu" = ia64; then
5873 symcode='[ABCDGIRSTW]'
5874 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5875 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'"
5879 symcode='[BCDEGRST]'
5882 symcode='[BCDEGQRST]'
5893 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5901 # Handle CRLF in mingw tool chain
5905 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5909 # If we're using GNU nm, then use its standard symbol codes.
5910 case `$NM -V 2>&1` in
5911 *GNU* | *'with BFD'*)
5912 symcode='[ABCDGIRSTW]' ;;
5915 # Try without a prefix undercore, then with it.
5916 for ac_symprfx in "" "_"; do
5918 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5919 symxfrm="\\1 $ac_symprfx\\2 \\2"
5921 # Write the raw and C identifiers.
5922 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5924 # Check to see that the pipe works correctly.
5928 cat > conftest.$ac_ext <<EOF
5933 void nm_test_func(){}
5937 int main(){nm_test_var='a';nm_test_func();return(0);}
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; then
5945 # Now try to grab the symbols.
5947 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5948 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } && test -s "$nlist"; then
5952 # Try sorting and uniquifying the output.
5953 if sort "$nlist" | uniq > "$nlist"T; then
5954 mv -f "$nlist"T "$nlist"
5959 # Make sure that we snagged all the symbols we need.
5960 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5961 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5962 cat <<EOF > conftest.$ac_ext
5968 # Now generate the symbol file.
5969 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5971 cat <<EOF >> conftest.$ac_ext
5972 #if defined (__STDC__) && __STDC__
5973 # define lt_ptr_t void *
5975 # define lt_ptr_t char *
5979 /* The mapping between symbol names and symbols. */
5984 lt_preloaded_symbols[] =
5987 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5988 cat <<\EOF >> conftest.$ac_ext
5996 # Now try linking the two files.
5997 mv conftest.$ac_objext conftstm.$ac_objext
5998 lt_save_LIBS="$LIBS"
5999 lt_save_CFLAGS="$CFLAGS"
6000 LIBS="conftstm.$ac_objext"
6001 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003 (eval $ac_link) 2>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6009 LIBS="$lt_save_LIBS"
6010 CFLAGS="$lt_save_CFLAGS"
6012 echo "cannot find nm_test_func in $nlist" >&5
6015 echo "cannot find nm_test_var in $nlist" >&5
6018 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6021 echo "$progname: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6024 rm -f conftest* conftst*
6026 # Do not use the global_symbol_pipe unless it works.
6027 if test "$pipe_works" = yes; then
6030 lt_cv_sys_global_symbol_pipe=
6036 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6037 lt_cv_sys_global_symbol_to_cdecl=
6039 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6040 echo "$as_me:$LINENO: result: failed" >&5
6041 echo "${ECHO_T}failed" >&6
6043 echo "$as_me:$LINENO: result: ok" >&5
6044 echo "${ECHO_T}ok" >&6
6047 echo "$as_me:$LINENO: checking for objdir" >&5
6048 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6049 if test "${lt_cv_objdir+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 rm -f .libs 2>/dev/null
6053 mkdir .libs 2>/dev/null
6054 if test -d .libs; then
6057 # MS-DOS does not allow filenames that begin with a dot.
6060 rmdir .libs 2>/dev/null
6062 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6063 echo "${ECHO_T}$lt_cv_objdir" >&6
6064 objdir=$lt_cv_objdir
6072 # AIX sometimes has problems with the GCC collect2 program. For some
6073 # reason, if we set the COLLECT_NAMES environment variable, the problems
6074 # vanish in a puff of smoke.
6075 if test "X${COLLECT_NAMES+set}" != Xset; then
6077 export COLLECT_NAMES
6082 # Sed substitution that helps us do robust quoting. It backslashifies
6083 # metacharacters that are still active within double-quoted strings.
6084 Xsed='sed -e 1s/^X//'
6085 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6087 # Same as above, but do not quote variable references.
6088 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6090 # Sed substitution to delay expansion of an escaped shell variable in a
6091 # double_quote_subst'ed string.
6092 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6094 # Sed substitution to avoid accidental globbing in evaled expressions
6095 no_glob_subst='s/\*/\\\*/g'
6101 default_ofile=libtool
6102 can_build_shared=yes
6104 # All known linkers require a `.a' archive for static linking (except MSVC,
6105 # which needs '.lib').
6107 ltmain="$ac_aux_dir/ltmain.sh"
6108 ofile="$default_ofile"
6109 with_gnu_ld="$lt_cv_prog_gnu_ld"
6111 if test -n "$ac_tool_prefix"; then
6112 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}ar; ac_word=$2
6114 echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6116 if test "${ac_cv_prog_AR+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 if test -n "$AR"; then
6120 ac_cv_prog_AR="$AR" # Let the user override the test.
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_AR="${ac_tool_prefix}ar"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 if test -n "$AR"; then
6140 echo "$as_me:$LINENO: result: $AR" >&5
6141 echo "${ECHO_T}$AR" >&6
6143 echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6
6148 if test -z "$ac_cv_prog_AR"; then
6150 # Extract the first word of "ar", so it can be a program name with args.
6151 set dummy ar; ac_word=$2
6152 echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6154 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 if test -n "$ac_ct_AR"; then
6158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167 ac_cv_prog_ac_ct_AR="ar"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6178 if test -n "$ac_ct_AR"; then
6179 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6180 echo "${ECHO_T}$ac_ct_AR" >&6
6182 echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6194 echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6196 if test "${ac_cv_prog_RANLIB+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 if test -n "$RANLIB"; then
6200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 RANLIB=$ac_cv_prog_RANLIB
6219 if test -n "$RANLIB"; then
6220 echo "$as_me:$LINENO: result: $RANLIB" >&5
6221 echo "${ECHO_T}$RANLIB" >&6
6223 echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6
6228 if test -z "$ac_cv_prog_RANLIB"; then
6229 ac_ct_RANLIB=$RANLIB
6230 # Extract the first word of "ranlib", so it can be a program name with args.
6231 set dummy ranlib; ac_word=$2
6232 echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$ac_ct_RANLIB"; then
6238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247 ac_cv_prog_ac_ct_RANLIB="ranlib"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6258 if test -n "$ac_ct_RANLIB"; then
6259 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6260 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6262 echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6
6266 RANLIB=$ac_ct_RANLIB
6268 RANLIB="$ac_cv_prog_RANLIB"
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}strip; ac_word=$2
6274 echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6276 if test "${ac_cv_prog_STRIP+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 if test -n "$STRIP"; then
6280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 STRIP=$ac_cv_prog_STRIP
6299 if test -n "$STRIP"; then
6300 echo "$as_me:$LINENO: result: $STRIP" >&5
6301 echo "${ECHO_T}$STRIP" >&6
6303 echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6
6308 if test -z "$ac_cv_prog_STRIP"; then
6310 # Extract the first word of "strip", so it can be a program name with args.
6311 set dummy strip; ac_word=$2
6312 echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6314 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 if test -n "$ac_ct_STRIP"; then
6318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_ac_ct_STRIP="strip"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6338 if test -n "$ac_ct_STRIP"; then
6339 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6340 echo "${ECHO_T}$ac_ct_STRIP" >&6
6342 echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6
6348 STRIP="$ac_cv_prog_STRIP"
6353 old_CFLAGS="$CFLAGS"
6355 # Set sane defaults for various variables
6356 test -z "$AR" && AR=ar
6357 test -z "$AR_FLAGS" && AR_FLAGS=cru
6358 test -z "$AS" && AS=as
6359 test -z "$CC" && CC=cc
6360 test -z "$LTCC" && LTCC=$CC
6361 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6362 test -z "$DLLTOOL" && DLLTOOL=dlltool
6363 test -z "$LD" && LD=ld
6364 test -z "$LN_S" && LN_S="ln -s"
6365 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6366 test -z "$NM" && NM=nm
6367 test -z "$SED" && SED=sed
6368 test -z "$OBJDUMP" && OBJDUMP=objdump
6369 test -z "$RANLIB" && RANLIB=:
6370 test -z "$STRIP" && STRIP=:
6371 test -z "$ac_objext" && ac_objext=o
6373 # Determine commands to create old-style static archives.
6374 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6375 old_postinstall_cmds='chmod 644 $oldlib'
6376 old_postuninstall_cmds=
6378 if test -n "$RANLIB"; then
6381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6387 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6390 for cc_temp in $compiler""; do
6392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6401 # Only perform the check for file, if the check method requires it
6402 case $deplibs_check_method in
6404 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6405 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6406 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6407 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6415 lt_save_MAGIC_CMD="$MAGIC_CMD"
6416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6417 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6418 for ac_dir in $ac_dummy; do
6420 test -z "$ac_dir" && ac_dir=.
6421 if test -f $ac_dir/${ac_tool_prefix}file; then
6422 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6423 if test -n "$file_magic_test_file"; then
6424 case $deplibs_check_method in
6426 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6428 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6429 $EGREP "$file_magic_regex" > /dev/null; then
6434 *** Warning: the command libtool uses to detect shared libraries,
6435 *** $file_magic_cmd, produces output that libtool cannot recognize.
6436 *** The result is that libtool may fail to recognize shared libraries
6437 *** as such. This will affect the creation of libtool libraries that
6438 *** depend on shared libraries, but programs linked with such libtool
6439 *** libraries will work regardless of this problem. Nevertheless, you
6440 *** may want to report the problem to your system manager and/or to
6441 *** bug-libtool@gnu.org
6451 MAGIC_CMD="$lt_save_MAGIC_CMD"
6456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6457 if test -n "$MAGIC_CMD"; then
6458 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6459 echo "${ECHO_T}$MAGIC_CMD" >&6
6461 echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6
6465 if test -z "$lt_cv_path_MAGIC_CMD"; then
6466 if test -n "$ac_tool_prefix"; then
6467 echo "$as_me:$LINENO: checking for file" >&5
6468 echo $ECHO_N "checking for file... $ECHO_C" >&6
6469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6477 lt_save_MAGIC_CMD="$MAGIC_CMD"
6478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6480 for ac_dir in $ac_dummy; do
6482 test -z "$ac_dir" && ac_dir=.
6483 if test -f $ac_dir/file; then
6484 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6485 if test -n "$file_magic_test_file"; then
6486 case $deplibs_check_method in
6488 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6491 $EGREP "$file_magic_regex" > /dev/null; then
6496 *** Warning: the command libtool uses to detect shared libraries,
6497 *** $file_magic_cmd, produces output that libtool cannot recognize.
6498 *** The result is that libtool may fail to recognize shared libraries
6499 *** as such. This will affect the creation of libtool libraries that
6500 *** depend on shared libraries, but programs linked with such libtool
6501 *** libraries will work regardless of this problem. Nevertheless, you
6502 *** may want to report the problem to your system manager and/or to
6503 *** bug-libtool@gnu.org
6513 MAGIC_CMD="$lt_save_MAGIC_CMD"
6518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6519 if test -n "$MAGIC_CMD"; then
6520 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6521 echo "${ECHO_T}$MAGIC_CMD" >&6
6523 echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6
6537 enable_win32_dll=yes
6539 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6540 if test "${enable_libtool_lock+set}" = set; then
6541 enableval="$enable_libtool_lock"
6544 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6547 # Check whether --with-pic or --without-pic was given.
6548 if test "${with_pic+set}" = set; then
6554 test -z "$pic_mode" && pic_mode=default
6556 # Use C for the default configuration in the libtool script
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6566 # Source file extension for C test sources.
6569 # Object file extension for compiled C test sources.
6573 # Code to be used in simple compile tests
6574 lt_simple_compile_test_code="int some_variable = 0;\n"
6576 # Code to be used in simple link tests
6577 lt_simple_link_test_code='int main(){return(0);}\n'
6580 # If no C compiler was specified, use CC.
6583 # If no C compiler flags were specified, use CFLAGS.
6584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6586 # Allow CC to be a program name with arguments.
6590 # save warnings/boilerplate of simple test code
6591 ac_outfile=conftest.$ac_objext
6592 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6594 _lt_compiler_boilerplate=`cat conftest.err`
6597 ac_outfile=conftest.$ac_objext
6598 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6600 _lt_linker_boilerplate=`cat conftest.err`
6605 lt_prog_compiler_no_builtin_flag=
6607 if test "$GCC" = yes; then
6608 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6611 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6612 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6613 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 lt_cv_prog_compiler_rtti_exceptions=no
6617 ac_outfile=conftest.$ac_objext
6618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6619 lt_compiler_flag="-fno-rtti -fno-exceptions"
6620 # Insert the option either (1) after the last *FLAGS variable, or
6621 # (2) before a word containing "conftest.", or (3) at the end.
6622 # Note that $ac_compile itself does not contain backslashes and begins
6623 # with a dollar sign (not a hyphen), so the echo should work correctly.
6624 # The option is referenced via a variable to avoid confusing sed.
6625 lt_compile=`echo "$ac_compile" | $SED \
6626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6628 -e 's:$: $lt_compiler_flag:'`
6629 (eval echo "\"\$as_me:6629: $lt_compile\"" >&5)
6630 (eval "$lt_compile" 2>conftest.err)
6632 cat conftest.err >&5
6633 echo "$as_me:6633: \$? = $ac_status" >&5
6634 if (exit $ac_status) && test -s "$ac_outfile"; then
6635 # The compiler can only warn and ignore the option if not recognized
6636 # So say no if there are warnings other than the usual output.
6637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6640 lt_cv_prog_compiler_rtti_exceptions=yes
6646 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6647 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6649 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6650 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6657 lt_prog_compiler_wl=
6658 lt_prog_compiler_pic=
6659 lt_prog_compiler_static=
6661 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6662 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6664 if test "$GCC" = yes; then
6665 lt_prog_compiler_wl='-Wl,'
6666 lt_prog_compiler_static='-static'
6670 # All AIX code is PIC.
6671 if test "$host_cpu" = ia64; then
6672 # AIX 5 now supports IA64 processor
6673 lt_prog_compiler_static='-Bstatic'
6678 # FIXME: we need at least 68020 code to build shared libraries, but
6679 # adding the `-m68020' flag to GCC prevents building anything better,
6681 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6684 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6685 # PIC is the default for these OSes.
6688 mingw* | pw32* | os2*)
6689 # This hack is so that the source file can tell whether it is being
6690 # built for inclusion in a dll (and should export symbols for example).
6691 lt_prog_compiler_pic='-DDLL_EXPORT'
6694 darwin* | rhapsody*)
6695 # PIC is the default on this platform
6696 # Common symbols not allowed in MH_DYLIB files
6697 lt_prog_compiler_pic='-fno-common'
6701 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6702 # Instead, we relocate shared libraries at runtime.
6706 # Just because we use GCC doesn't mean we suddenly get shared libraries
6707 # on systems that don't support them.
6708 lt_prog_compiler_can_build_shared=no
6713 if test -d /usr/nec; then
6714 lt_prog_compiler_pic=-Kconform_pic
6719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6726 lt_prog_compiler_pic='-fPIC'
6732 lt_prog_compiler_pic='-fPIC'
6736 # PORTME Check for flag to pass linker flags through the system compiler.
6739 lt_prog_compiler_wl='-Wl,'
6740 if test "$host_cpu" = ia64; then
6741 # AIX 5 now supports IA64 processor
6742 lt_prog_compiler_static='-Bstatic'
6744 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6748 # PIC is the default on this platform
6749 # Common symbols not allowed in MH_DYLIB files
6750 case $cc_basename in
6752 lt_prog_compiler_pic='-qnocommon'
6753 lt_prog_compiler_wl='-Wl,'
6758 mingw* | pw32* | os2*)
6759 # This hack is so that the source file can tell whether it is being
6760 # built for inclusion in a dll (and should export symbols for example).
6761 lt_prog_compiler_pic='-DDLL_EXPORT'
6764 hpux9* | hpux10* | hpux11*)
6765 lt_prog_compiler_wl='-Wl,'
6766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6773 lt_prog_compiler_pic='+Z'
6776 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6777 lt_prog_compiler_static='${wl}-a ${wl}archive'
6780 irix5* | irix6* | nonstopux*)
6781 lt_prog_compiler_wl='-Wl,'
6782 # PIC (with -KPIC) is the default.
6783 lt_prog_compiler_static='-non_shared'
6787 lt_prog_compiler_pic='-KPIC'
6788 lt_prog_compiler_static='-Bstatic'
6792 case $cc_basename in
6794 lt_prog_compiler_wl='-Wl,'
6795 lt_prog_compiler_pic='-KPIC'
6796 lt_prog_compiler_static='-static'
6798 pgcc* | pgf77* | pgf90* | pgf95*)
6799 # Portland Group compilers (*not* the Pentium gcc compiler,
6800 # which looks to be a dead project)
6801 lt_prog_compiler_wl='-Wl,'
6802 lt_prog_compiler_pic='-fpic'
6803 lt_prog_compiler_static='-Bstatic'
6806 lt_prog_compiler_wl='-Wl,'
6807 # All Alpha code is PIC.
6808 lt_prog_compiler_static='-non_shared'
6813 osf3* | osf4* | osf5*)
6814 lt_prog_compiler_wl='-Wl,'
6815 # All OSF/1 code is PIC.
6816 lt_prog_compiler_static='-non_shared'
6820 lt_prog_compiler_pic='-KPIC'
6821 lt_prog_compiler_static='-Bstatic'
6822 case $cc_basename in
6824 lt_prog_compiler_wl='-Qoption ld ';;
6826 lt_prog_compiler_wl='-Wl,';;
6831 lt_prog_compiler_wl='-Qoption ld '
6832 lt_prog_compiler_pic='-PIC'
6833 lt_prog_compiler_static='-Bstatic'
6836 sysv4 | sysv4.2uw2* | sysv4.3*)
6837 lt_prog_compiler_wl='-Wl,'
6838 lt_prog_compiler_pic='-KPIC'
6839 lt_prog_compiler_static='-Bstatic'
6843 if test -d /usr/nec ;then
6844 lt_prog_compiler_pic='-Kconform_pic'
6845 lt_prog_compiler_static='-Bstatic'
6849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6850 lt_prog_compiler_wl='-Wl,'
6851 lt_prog_compiler_pic='-KPIC'
6852 lt_prog_compiler_static='-Bstatic'
6856 lt_prog_compiler_wl='-Wl,'
6857 lt_prog_compiler_can_build_shared=no
6861 lt_prog_compiler_pic='-pic'
6862 lt_prog_compiler_static='-Bstatic'
6866 lt_prog_compiler_can_build_shared=no
6871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6872 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6875 # Check to make sure the PIC flag actually works.
6877 if test -n "$lt_prog_compiler_pic"; then
6879 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6880 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6881 if test "${lt_prog_compiler_pic_works+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 lt_prog_compiler_pic_works=no
6885 ac_outfile=conftest.$ac_objext
6886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6887 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6888 # Insert the option either (1) after the last *FLAGS variable, or
6889 # (2) before a word containing "conftest.", or (3) at the end.
6890 # Note that $ac_compile itself does not contain backslashes and begins
6891 # with a dollar sign (not a hyphen), so the echo should work correctly.
6892 # The option is referenced via a variable to avoid confusing sed.
6893 lt_compile=`echo "$ac_compile" | $SED \
6894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6896 -e 's:$: $lt_compiler_flag:'`
6897 (eval echo "\"\$as_me:6897: $lt_compile\"" >&5)
6898 (eval "$lt_compile" 2>conftest.err)
6900 cat conftest.err >&5
6901 echo "$as_me:6901: \$? = $ac_status" >&5
6902 if (exit $ac_status) && test -s "$ac_outfile"; then
6903 # The compiler can only warn and ignore the option if not recognized
6904 # So say no if there are warnings other than the usual output.
6905 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6908 lt_prog_compiler_pic_works=yes
6914 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6915 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6917 if test x"$lt_prog_compiler_pic_works" = xyes; then
6918 case $lt_prog_compiler_pic in
6920 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6923 lt_prog_compiler_pic=
6924 lt_prog_compiler_can_build_shared=no
6929 # For platforms which do not support PIC, -DPIC is meaningless:
6931 lt_prog_compiler_pic=
6934 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6939 # Check to make sure the static flag actually works.
6941 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6942 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6943 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6944 if test "${lt_prog_compiler_static_works+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 lt_prog_compiler_static_works=no
6948 save_LDFLAGS="$LDFLAGS"
6949 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6950 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6952 # The linker can only warn and ignore the option if not recognized
6953 # So say no if there are warnings
6954 if test -s conftest.err; then
6955 # Append any errors to the config.log.
6956 cat conftest.err 1>&5
6957 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6959 if diff conftest.exp conftest.er2 >/dev/null; then
6960 lt_prog_compiler_static_works=yes
6963 lt_prog_compiler_static_works=yes
6967 LDFLAGS="$save_LDFLAGS"
6970 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6971 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6973 if test x"$lt_prog_compiler_static_works" = xyes; then
6976 lt_prog_compiler_static=
6980 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6981 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6982 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 lt_cv_prog_compiler_c_o=no
6986 $rm -r conftest 2>/dev/null
6990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6992 lt_compiler_flag="-o out/conftest2.$ac_objext"
6993 # Insert the option either (1) after the last *FLAGS variable, or
6994 # (2) before a word containing "conftest.", or (3) at the end.
6995 # Note that $ac_compile itself does not contain backslashes and begins
6996 # with a dollar sign (not a hyphen), so the echo should work correctly.
6997 lt_compile=`echo "$ac_compile" | $SED \
6998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7000 -e 's:$: $lt_compiler_flag:'`
7001 (eval echo "\"\$as_me:7001: $lt_compile\"" >&5)
7002 (eval "$lt_compile" 2>out/conftest.err)
7004 cat out/conftest.err >&5
7005 echo "$as_me:7005: \$? = $ac_status" >&5
7006 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7008 # The compiler can only warn and ignore the option if not recognized
7009 # So say no if there are warnings
7010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7013 lt_cv_prog_compiler_c_o=yes
7018 # SGI C++ compiler will create directory out/ii_files/ for
7019 # template instantiation
7020 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7021 $rm out/* && rmdir out
7027 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7028 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7031 hard_links="nottested"
7032 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7033 # do not overwrite the value of need_locks provided by the user
7034 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7035 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7040 ln conftest.a conftest.b 2>&5 || hard_links=no
7041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7042 echo "$as_me:$LINENO: result: $hard_links" >&5
7043 echo "${ECHO_T}$hard_links" >&6
7044 if test "$hard_links" = no; then
7045 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7046 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7053 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7054 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7057 allow_undefined_flag=
7058 enable_shared_with_static_runtimes=no
7060 archive_expsym_cmds=
7061 old_archive_From_new_cmds=
7062 old_archive_from_expsyms_cmds=
7063 export_dynamic_flag_spec=
7064 whole_archive_flag_spec=
7065 thread_safe_flag_spec=
7066 hardcode_libdir_flag_spec=
7067 hardcode_libdir_flag_spec_ld=
7068 hardcode_libdir_separator=
7071 hardcode_shlibpath_var=unsupported
7072 link_all_deplibs=unknown
7073 hardcode_automatic=no
7076 always_export_symbols=no
7077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7078 # include_expsyms should be a list of space-separated symbols to be *always*
7079 # included in the symbol list
7081 # exclude_expsyms can be an extended regexp of symbols to exclude
7082 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7083 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7084 # as well as any symbol that contains `d'.
7085 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7086 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7087 # platforms (ab)use it in PIC code, but their linkers get confused if
7088 # the symbol is explicitly referenced. Since portable code cannot
7089 # rely on this symbol name, it's probably fine to never include it in
7090 # preloaded symbol tables.
7091 extract_expsyms_cmds=
7092 # Just being paranoid about ensuring that cc_basename is set.
7093 for cc_temp in $compiler""; do
7095 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7096 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7101 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7104 cygwin* | mingw* | pw32*)
7105 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7106 # When not using gcc, we currently assume that we are using
7107 # Microsoft Visual C++.
7108 if test "$GCC" != yes; then
7113 # we just hope/assume this is gcc and not c89 (= MSVC++)
7122 if test "$with_gnu_ld" = yes; then
7123 # If archive_cmds runs LD, not CC, wlarc should be empty
7126 # Set some defaults for GNU ld with shared library support. These
7127 # are reset later if shared libraries are not supported. Putting them
7128 # here allows them to be overridden if necessary.
7129 runpath_var=LD_RUN_PATH
7130 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7131 export_dynamic_flag_spec='${wl}--export-dynamic'
7132 # ancient GNU ld didn't support --whole-archive et. al.
7133 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7136 whole_archive_flag_spec=
7138 supports_anon_versioning=no
7139 case `$LD -v 2>/dev/null` in
7140 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7141 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7142 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7143 *\ 2.11.*) ;; # other 2.11 versions
7144 *) supports_anon_versioning=yes ;;
7147 # See if GNU ld supports shared libraries.
7149 aix3* | aix4* | aix5*)
7150 # On AIX/PPC, the GNU linker is very broken
7151 if test "$host_cpu" != ia64; then
7155 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7156 *** to be unable to reliably create shared libraries on AIX.
7157 *** Therefore, libtool is disabling shared libraries support. If you
7158 *** really care for shared libraries, you may want to modify your PATH
7159 *** so that a non-GNU linker is found, and then restart.
7166 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)'
7167 hardcode_libdir_flag_spec='-L$libdir'
7168 hardcode_minus_L=yes
7170 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7171 # that the semantics of dynamic libraries on AmigaOS, at least up
7172 # to version 4, is to share data among multiple programs linked
7173 # with the same dynamic library. Since this doesn't match the
7174 # behavior of shared libraries on other platforms, we can't use
7180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7181 allow_undefined_flag=unsupported
7182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7183 # support --undefined. This deserves some investigation. FIXME
7184 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7190 cygwin* | mingw* | pw32*)
7191 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7192 # as there is no search path for DLLs.
7193 hardcode_libdir_flag_spec='-L$libdir'
7194 allow_undefined_flag=unsupported
7195 always_export_symbols=no
7196 enable_shared_with_static_runtimes=yes
7197 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7199 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7201 # If the export-symbols file already is a .def file (1st line
7202 # is EXPORTS), use it as is; otherwise, prepend...
7203 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7204 cp $export_symbols $output_objdir/$soname.def;
7206 echo EXPORTS > $output_objdir/$soname.def;
7207 cat $export_symbols >> $output_objdir/$soname.def;
7209 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7217 hardcode_shlibpath_var=no
7218 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7219 export_dynamic_flag_spec='${wl}-E'
7220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7221 # Instead, shared libraries are loaded at an image base (0x10000000 by
7222 # default) and relocated if they conflict, which is a slow very memory
7223 # consuming and fragmenting process. To avoid this, we pick a random,
7224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7225 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7227 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'
7231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7233 case $cc_basename,$host_cpu in
7234 pgcc*) # Portland Group C compiler
7235 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'
7236 tmp_addflag=' $pic_flag'
7238 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7239 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'
7240 tmp_addflag=' $pic_flag -Mnomain' ;;
7241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7242 tmp_addflag=' -i_dynamic' ;;
7243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7244 tmp_addflag=' -i_dynamic -nofor_main' ;;
7245 ifc* | ifort*) # Intel Fortran compiler
7246 tmp_addflag=' -nofor_main' ;;
7248 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7250 if test $supports_anon_versioning = yes; then
7251 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7253 $echo "local: *; };" >> $output_objdir/$libname.ver~
7254 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7262 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7264 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7273 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7277 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7278 *** create shared libraries on Solaris systems. Therefore, libtool
7279 *** is disabling shared libraries support. We urge you to upgrade GNU
7280 *** binutils to release 2.9.1 or newer. Another option is to modify
7281 *** your PATH or compiler configuration so that the native linker is
7282 *** used, and then restart.
7285 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7294 case `$LD -v 2>&1` in
7295 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7299 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7300 *** reliably create shared libraries on SCO systems. Therefore, libtool
7301 *** is disabling shared libraries support. We urge you to upgrade GNU
7302 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7303 *** your PATH or compiler configuration so that the native linker is
7304 *** used, and then restart.
7309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7310 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7321 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7324 hardcode_shlibpath_var=no
7328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7337 if test "$ld_shlibs" = no; then
7339 hardcode_libdir_flag_spec=
7340 export_dynamic_flag_spec=
7341 whole_archive_flag_spec=
7344 # PORTME fill in a description of your system's linker (not GNU ld)
7347 allow_undefined_flag=unsupported
7348 always_export_symbols=yes
7349 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'
7350 # Note: this linker hardcodes the directories in LIBPATH if there
7351 # are no directories specified by -L.
7352 hardcode_minus_L=yes
7353 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7354 # Neither direct hardcoding nor static linking is supported with a
7356 hardcode_direct=unsupported
7361 if test "$host_cpu" = ia64; then
7362 # On IA64, the linker does run time linking by default, so we don't
7363 # have to do anything special.
7364 aix_use_runtimelinking=no
7365 exp_sym_flag='-Bexport'
7368 # If we're using GNU nm, then we don't want the "-C" option.
7369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7370 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7371 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'
7373 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'
7375 aix_use_runtimelinking=no
7377 # Test if we are trying to use run time linking or normal
7378 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7379 # need to do runtime linking.
7380 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7381 for ld_flag in $LDFLAGS; do
7382 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7383 aix_use_runtimelinking=yes
7390 exp_sym_flag='-bexport'
7391 no_entry_flag='-bnoentry'
7394 # When large executables or shared objects are built, AIX ld can
7395 # have problems creating the table of contents. If linking a library
7396 # or program results in "error TOC overflow" add -mminimal-toc to
7397 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7398 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7402 hardcode_libdir_separator=':'
7403 link_all_deplibs=yes
7405 if test "$GCC" = yes; then
7406 case $host_os in aix4.[012]|aix4.[012].*)
7407 # We only want to do this on AIX 4.2 and lower, the check
7408 # below for broken collect2 doesn't work under 4.3+
7409 collect2name=`${CC} -print-prog-name=collect2`
7410 if test -f "$collect2name" && \
7411 strings "$collect2name" | grep resolve_lib_name >/dev/null
7413 # We have reworked collect2
7416 # We have old collect2
7417 hardcode_direct=unsupported
7418 # It fails to find uninstalled libraries when the uninstalled
7419 # path is not listed in the libpath. Setting hardcode_minus_L
7420 # to unsupported forces relinking
7421 hardcode_minus_L=yes
7422 hardcode_libdir_flag_spec='-L$libdir'
7423 hardcode_libdir_separator=
7427 shared_flag='-shared'
7428 if test "$aix_use_runtimelinking" = yes; then
7429 shared_flag="$shared_flag "'${wl}-G'
7433 if test "$host_cpu" = ia64; then
7434 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7435 # chokes on -Wl,-G. The following line is correct:
7438 if test "$aix_use_runtimelinking" = yes; then
7439 shared_flag='${wl}-G'
7441 shared_flag='${wl}-bM:SRE'
7446 # It seems that -bexpall does not export symbols beginning with
7447 # underscore (_), so it is better to generate a list of symbols to export.
7448 always_export_symbols=yes
7449 if test "$aix_use_runtimelinking" = yes; then
7450 # Warning - without using the other runtime loading flags (-brtl),
7451 # -berok will link without error, but may produce a broken library.
7452 allow_undefined_flag='-berok'
7453 # Determine the default libpath from the value encoded in an empty executable.
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471 (eval $ac_link) 2>conftest.er1
7473 grep -v '^ *+' conftest.er1 >conftest.err
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } &&
7478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7493 # Check for a 64-bit object if we didn't find anything.
7494 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; }
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7501 rm -f conftest.err conftest.$ac_objext \
7502 conftest$ac_exeext conftest.$ac_ext
7503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7506 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"
7508 if test "$host_cpu" = ia64; then
7509 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7510 allow_undefined_flag="-z nodefs"
7511 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"
7513 # Determine the default libpath from the value encoded in an empty executable.
7514 cat >conftest.$ac_ext <<_ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531 (eval $ac_link) 2>conftest.er1
7533 grep -v '^ *+' conftest.er1 >conftest.err
7535 cat conftest.err >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7553 # Check for a 64-bit object if we didn't find anything.
7554 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; }
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7561 rm -f conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
7563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7566 # Warning - without using the other run time loading flags,
7567 # -berok will link without error, but may produce a broken library.
7568 no_undefined_flag=' ${wl}-bernotok'
7569 allow_undefined_flag=' ${wl}-berok'
7570 # Exported symbols can be pulled into shared objects from archives
7571 whole_archive_flag_spec='$convenience'
7572 archive_cmds_need_lc=yes
7573 # This is similar to how AIX traditionally builds its shared libraries.
7574 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'
7580 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)'
7581 hardcode_libdir_flag_spec='-L$libdir'
7582 hardcode_minus_L=yes
7583 # see comment about different semantics on the GNU ld section
7588 export_dynamic_flag_spec=-rdynamic
7591 cygwin* | mingw* | pw32*)
7592 # When not using gcc, we currently assume that we are using
7593 # Microsoft Visual C++.
7594 # hardcode_libdir_flag_spec is actually meaningless, as there is
7595 # no search path for DLLs.
7596 hardcode_libdir_flag_spec=' '
7597 allow_undefined_flag=unsupported
7598 # Tell ltmain to make .lib files, not .a files.
7600 # Tell ltmain to make .dll files, not .so files.
7602 # FIXME: Setting linknames here is a bad hack.
7603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7604 # The linker will automatically build a .lib file if we build a DLL.
7605 old_archive_From_new_cmds='true'
7606 # FIXME: Should let the user specify the lib program.
7607 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7608 fix_srcfile_path='`cygpath -w "$srcfile"`'
7609 enable_shared_with_static_runtimes=yes
7612 darwin* | rhapsody*)
7614 rhapsody* | darwin1.[012])
7615 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7618 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7619 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7621 case ${MACOSX_DEPLOYMENT_TARGET} in
7623 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7626 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7632 archive_cmds_need_lc=no
7634 hardcode_automatic=yes
7635 hardcode_shlibpath_var=unsupported
7636 whole_archive_flag_spec=''
7637 link_all_deplibs=yes
7638 if test "$GCC" = yes ; then
7639 output_verbose_link_cmd='echo'
7640 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7641 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7643 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}'
7644 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}'
7646 case $cc_basename in
7648 output_verbose_link_cmd='echo'
7649 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7650 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7652 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}'
7653 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}'
7663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664 hardcode_libdir_flag_spec='-L$libdir'
7665 hardcode_shlibpath_var=no
7672 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7673 # support. Future versions do this automatically, but an explicit c++rt0.o
7674 # does not break anything, and helps significantly (at the cost of a little
7677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7678 hardcode_libdir_flag_spec='-R$libdir'
7680 hardcode_shlibpath_var=no
7683 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7687 hardcode_minus_L=yes
7688 hardcode_shlibpath_var=no
7691 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7692 freebsd* | dragonfly*)
7693 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7694 hardcode_libdir_flag_spec='-R$libdir'
7696 hardcode_shlibpath_var=no
7699 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7701 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7702 hardcode_libdir_flag_spec='-R$libdir'
7704 hardcode_shlibpath_var=no
7709 if test "$GCC" = yes; then
7710 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'
7712 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'
7714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7715 hardcode_libdir_separator=:
7718 # hardcode_minus_L: Not really in the search PATH,
7719 # but as the default location of the library.
7720 hardcode_minus_L=yes
7721 export_dynamic_flag_spec='${wl}-E'
7725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7726 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7728 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7730 if test "$with_gnu_ld" = no; then
7731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7732 hardcode_libdir_separator=:
7735 export_dynamic_flag_spec='${wl}-E'
7737 # hardcode_minus_L: Not really in the search PATH,
7738 # but as the default location of the library.
7739 hardcode_minus_L=yes
7744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7747 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7750 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7759 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7762 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7765 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7769 if test "$with_gnu_ld" = no; then
7770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7771 hardcode_libdir_separator=:
7775 hardcode_libdir_flag_spec_ld='+b $libdir'
7777 hardcode_shlibpath_var=no
7781 export_dynamic_flag_spec='${wl}-E'
7783 # hardcode_minus_L: Not really in the search PATH,
7784 # but as the default location of the library.
7785 hardcode_minus_L=yes
7791 irix5* | irix6* | nonstopux*)
7792 if test "$GCC" = yes; then
7793 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'
7795 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'
7796 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7799 hardcode_libdir_separator=:
7800 link_all_deplibs=yes
7803 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7809 hardcode_libdir_flag_spec='-R$libdir'
7811 hardcode_shlibpath_var=no
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7818 hardcode_libdir_separator=:
7819 hardcode_shlibpath_var=no
7824 hardcode_shlibpath_var=no
7825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7829 export_dynamic_flag_spec='${wl}-E'
7832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_libdir_flag_spec='-R$libdir'
7837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7845 hardcode_libdir_flag_spec='-L$libdir'
7846 hardcode_minus_L=yes
7847 allow_undefined_flag=unsupported
7848 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'
7849 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7853 if test "$GCC" = yes; then
7854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855 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'
7857 allow_undefined_flag=' -expect_unresolved \*'
7858 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'
7860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7861 hardcode_libdir_separator=:
7864 osf4* | osf5*) # as osf3* with the addition of -msym flag
7865 if test "$GCC" = yes; then
7866 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7867 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'
7868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7870 allow_undefined_flag=' -expect_unresolved \*'
7871 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'
7872 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7873 $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'
7875 # Both c and cxx compiler support -rpath directly
7876 hardcode_libdir_flag_spec='-rpath $libdir'
7878 hardcode_libdir_separator=:
7882 no_undefined_flag=' -z text'
7883 if test "$GCC" = yes; then
7885 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7886 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7894 hardcode_libdir_flag_spec='-R$libdir'
7895 hardcode_shlibpath_var=no
7897 solaris2.[0-5] | solaris2.[0-5].*) ;;
7899 # The compiler driver will combine linker options so we
7900 # cannot just pass the convience library names through
7901 # without $wl, iff we do not link with $LD.
7902 # Luckily, gcc supports the same syntax we need for Sun Studio.
7903 # Supported since Solaris 2.6 (maybe 2.5.1?)
7906 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7908 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' ;;
7911 link_all_deplibs=yes
7915 if test "x$host_vendor" = xsequent; then
7916 # Use $CC to link under sequent, because it throws in some extra .o
7917 # files that make .init and .fini sections work.
7918 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7920 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7922 hardcode_libdir_flag_spec='-L$libdir'
7924 hardcode_minus_L=yes
7925 hardcode_shlibpath_var=no
7929 case $host_vendor in
7931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7932 hardcode_direct=yes # is this really true???
7935 ## LD is ld it makes a PLAMLIB
7936 ## CC just makes a GrossModule.
7937 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7938 reload_cmds='$CC -r -o $output$reload_objs'
7942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7946 runpath_var='LD_RUN_PATH'
7947 hardcode_shlibpath_var=no
7951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7952 hardcode_shlibpath_var=no
7953 export_dynamic_flag_spec='-Bexport'
7957 if test -d /usr/nec; then
7958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_shlibpath_var=no
7960 runpath_var=LD_RUN_PATH
7961 hardcode_runpath_var=yes
7966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7967 no_undefined_flag='${wl}-z,text'
7968 archive_cmds_need_lc=no
7969 hardcode_shlibpath_var=no
7970 runpath_var='LD_RUN_PATH'
7972 if test "$GCC" = yes; then
7973 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7974 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7981 sysv5* | sco3.2v5* | sco5v6*)
7982 # Note: We can NOT use -z defs as we might desire, because we do not
7983 # link with -lc, and that would cause any symbols used from libc to
7984 # always be unresolved, which means just about no library would
7985 # ever link correctly. If we're not using GNU ld we use -z text
7986 # though, which does catch some bad symbols but isn't as heavy-handed
7988 no_undefined_flag='${wl}-z,text'
7989 allow_undefined_flag='${wl}-z,nodefs'
7990 archive_cmds_need_lc=no
7991 hardcode_shlibpath_var=no
7992 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7993 hardcode_libdir_separator=':'
7994 link_all_deplibs=yes
7995 export_dynamic_flag_spec='${wl}-Bexport'
7996 runpath_var='LD_RUN_PATH'
7998 if test "$GCC" = yes; then
7999 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8000 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8002 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8009 hardcode_libdir_flag_spec='-L$libdir'
8010 hardcode_shlibpath_var=no
8019 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8020 echo "${ECHO_T}$ld_shlibs" >&6
8021 test "$ld_shlibs" = no && can_build_shared=no
8024 # Do we need to explicitly link libc?
8026 case "x$archive_cmds_need_lc" in
8028 # Assume -lc should be added
8029 archive_cmds_need_lc=yes
8031 if test "$enable_shared" = yes && test "$GCC" = yes; then
8032 case $archive_cmds in
8034 # FIXME: we may have to deal with multi-command sequences.
8037 # Test whether the compiler implicitly links with -lc since on some
8038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8039 # to ld, don't add -lc before -lgcc.
8040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046 (eval $ac_compile) 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } 2>conftest.err; then
8052 libobjs=conftest.$ac_objext
8054 wl=$lt_prog_compiler_wl
8055 pic_flag=$lt_prog_compiler_pic
8061 lt_save_allow_undefined_flag=$allow_undefined_flag
8062 allow_undefined_flag=
8063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8064 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }
8069 archive_cmds_need_lc=no
8071 archive_cmds_need_lc=yes
8073 allow_undefined_flag=$lt_save_allow_undefined_flag
8075 cat conftest.err 1>&5
8078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8079 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8089 libname_spec='lib$name'
8097 shlibpath_overrides_runpath=unknown
8099 dynamic_linker="$host_os ld.so"
8100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8101 if test "$GCC" = yes; then
8102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8103 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8104 # if the path contains ";" then we assume it to be the separator
8105 # otherwise default to the standard path separator (i.e. ":") - it is
8106 # assumed that no part of a normal pathname contains ";" but that should
8107 # okay in the real world where ";" in dirpaths is itself problematic.
8108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8115 need_lib_prefix=unknown
8116 hardcode_into_libs=no
8118 # when you set need_version to no, make sure it does not cause -set_version
8119 # flags to be left without arguments
8120 need_version=unknown
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8126 shlibpath_var=LIBPATH
8128 # AIX 3 has no versioning support, so we append a major version to the name.
8129 soname_spec='${libname}${release}${shared_ext}$major'
8136 hardcode_into_libs=yes
8137 if test "$host_cpu" = ia64; then
8138 # AIX 5 supports IA64
8139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8140 shlibpath_var=LD_LIBRARY_PATH
8142 # With GCC up to 2.95.x, collect2 would create an import file
8143 # for dependence libraries. The import file would start with
8144 # the line `#! .'. This would cause the generated library to
8145 # depend on `.', always an invalid library. This was fixed in
8146 # development snapshots of GCC prior to 3.0.
8148 aix4 | aix4.[01] | aix4.[01].*)
8149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8159 # soname into executable. Probably we can add versioning support to
8160 # collect2, so additional links can be useful in future.
8161 if test "$aix_use_runtimelinking" = yes; then
8162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8163 # instead of lib<name>.a to let people know that these are not
8164 # typical AIX shared libraries.
8165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167 # We preserve .a as extension for shared libraries through AIX4.2
8168 # and later when we are not doing run time linking.
8169 library_names_spec='${libname}${release}.a $libname.a'
8170 soname_spec='${libname}${release}${shared_ext}$major'
8172 shlibpath_var=LIBPATH
8177 library_names_spec='$libname.ixlibrary $libname.a'
8178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8179 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'
8183 library_names_spec='${libname}${shared_ext}'
8184 dynamic_linker="$host_os ld.so"
8185 shlibpath_var=LIBRARY_PATH
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192 soname_spec='${libname}${release}${shared_ext}$major'
8193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8194 shlibpath_var=LD_LIBRARY_PATH
8195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8197 # the default ld.so.conf also contains /usr/contrib/lib and
8198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8199 # libtool to hard-code these into programs
8202 cygwin* | mingw* | pw32*)
8203 version_type=windows
8208 case $GCC,$host_os in
8209 yes,cygwin* | yes,mingw* | yes,pw32*)
8210 library_names_spec='$libname.dll.a'
8211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8212 postinstall_cmds='base_file=`basename \${file}`~
8213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8214 dldir=$destdir/`dirname \$dlpath`~
8215 test -d \$dldir || mkdir -p \$dldir~
8216 $install_prog $dir/$dlname \$dldir/$dlname~
8217 chmod a+x \$dldir/$dlname'
8218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8219 dlpath=$dir/\$dldll~
8221 shlibpath_overrides_runpath=yes
8225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8230 # MinGW DLLs use traditional 'lib' prefix
8231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8234 # It is most probably a Windows format PATH printed by
8235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8236 # path with ; separators, and with drive letters. We can handle the
8237 # drive letters (cygwin fileutils understands them), so leave them,
8238 # especially as we might pass files found there to a mingw objdump,
8239 # which wouldn't understand a cygwinified path. Ahh.
8240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8246 # pw32 DLLs use 'pw' prefix rather than 'lib'
8247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8256 dynamic_linker='Win32 ld.exe'
8257 # FIXME: first we should search . and the directory the executable is in
8261 darwin* | rhapsody*)
8262 dynamic_linker="$host_os dyld"
8266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8267 soname_spec='${libname}${release}${major}$shared_ext'
8268 shlibpath_overrides_runpath=yes
8269 shlibpath_var=DYLD_LIBRARY_PATH
8270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8272 if test "$GCC" = yes; then
8273 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"`
8275 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 shlibpath_var=LD_LIBRARY_PATH
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=no
8301 hardcode_into_libs=yes
8302 dynamic_linker='GNU ld.so'
8305 freebsd* | dragonfly*)
8306 # DragonFly does not have aout. When/if they implement a new
8307 # versioning mechanism, adjust this.
8308 if test -x /usr/bin/objformat; then
8309 objformat=`/usr/bin/objformat`
8312 freebsd[123]*) objformat=aout ;;
8316 version_type=freebsd-$objformat
8317 case $version_type in
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8328 shlibpath_var=LD_LIBRARY_PATH
8331 shlibpath_overrides_runpath=yes
8333 freebsd3.[01]* | freebsdelf3.[01]*)
8334 shlibpath_overrides_runpath=yes
8335 hardcode_into_libs=yes
8337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8339 shlibpath_overrides_runpath=no
8340 hardcode_into_libs=yes
8342 freebsd*) # from 4.6 on
8343 shlibpath_overrides_runpath=yes
8344 hardcode_into_libs=yes
8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8354 soname_spec='${libname}${release}${shared_ext}$major'
8355 shlibpath_var=LD_LIBRARY_PATH
8356 hardcode_into_libs=yes
8359 hpux9* | hpux10* | hpux11*)
8360 # Give a soname corresponding to the major version so that dld.sl refuses to
8361 # link against other versions.
8368 hardcode_into_libs=yes
8369 dynamic_linker="$host_os dld.so"
8370 shlibpath_var=LD_LIBRARY_PATH
8371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373 soname_spec='${libname}${release}${shared_ext}$major'
8374 if test "X$HPUX_IA64_MODE" = X32; then
8375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8383 hardcode_into_libs=yes
8384 dynamic_linker="$host_os dld.sl"
8385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 soname_spec='${libname}${release}${shared_ext}$major'
8389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8394 dynamic_linker="$host_os dld.sl"
8395 shlibpath_var=SHLIB_PATH
8396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398 soname_spec='${libname}${release}${shared_ext}$major'
8401 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8402 postinstall_cmds='chmod 555 $lib'
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8410 soname_spec='${libname}${release}${shared_ext}$major'
8411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath=no
8414 hardcode_into_libs=yes
8417 irix5* | irix6* | nonstopux*)
8419 nonstopux*) version_type=nonstopux ;;
8421 if test "$lt_cv_prog_gnu_ld" = yes; then
8429 soname_spec='${libname}${release}${shared_ext}$major'
8430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8432 irix5* | nonstopux*)
8436 case $LD in # libtool.m4 will add one of these switches to LD
8437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8438 libsuff= shlibsuff= libmagic=32-bit;;
8439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8440 libsuff=32 shlibsuff=N32 libmagic=N32;;
8441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8443 *) libsuff= shlibsuff= libmagic=never-match;;
8447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8448 shlibpath_overrides_runpath=no
8449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8451 hardcode_into_libs=yes
8454 # No shared lib support for Linux oldld, aout, or coff.
8455 linux*oldld* | linux*aout* | linux*coff*)
8459 # This must be Linux ELF.
8464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465 soname_spec='${libname}${release}${shared_ext}$major'
8466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8467 shlibpath_var=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath=no
8469 # This implies no fast_install, which is unacceptable.
8470 # Some rework will be needed to allow for fast_install
8471 # before this can be enabled.
8472 hardcode_into_libs=yes
8474 # Append ld.so.conf contents to the search path
8475 if test -f /etc/ld.so.conf; then
8476 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' ' '`
8477 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8480 # We used to test for /lib/ld.so.1 and disable shared libraries on
8481 # powerpc, because MkLinux only supported shared libraries with the
8482 # GNU dynamic linker. Since this was broken with cross compilers,
8483 # most powerpc-linux boxes support dynamic linking these days and
8484 # people can always --disable-shared, the test was removed, and we
8485 # assume the GNU/Linux dynamic linker is in use.
8486 dynamic_linker='GNU/Linux ld.so'
8493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8494 soname_spec='${libname}${release}${shared_ext}$major'
8495 shlibpath_var=LD_LIBRARY_PATH
8496 shlibpath_overrides_runpath=no
8497 hardcode_into_libs=yes
8498 dynamic_linker='NetBSD ld.elf_so'
8505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8506 soname_spec='${libname}${release}${shared_ext}$major'
8507 shlibpath_var=LD_LIBRARY_PATH
8508 shlibpath_overrides_runpath=no
8509 hardcode_into_libs=yes
8510 dynamic_linker='GNU ld.so'
8517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8520 dynamic_linker='NetBSD (a.out) ld.so'
8522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8523 soname_spec='${libname}${release}${shared_ext}$major'
8524 dynamic_linker='NetBSD ld.elf_so'
8526 shlibpath_var=LD_LIBRARY_PATH
8527 shlibpath_overrides_runpath=yes
8528 hardcode_into_libs=yes
8533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8534 shlibpath_var=LD_LIBRARY_PATH
8535 shlibpath_overrides_runpath=yes
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543 soname_spec='${libname}${release}${shared_ext}$major'
8544 shlibpath_var=LD_LIBRARY_PATH
8545 shlibpath_overrides_runpath=yes
8550 sys_lib_dlsearch_path_spec="/usr/lib"
8552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8554 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8555 *) need_version=no ;;
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8559 shlibpath_var=LD_LIBRARY_PATH
8560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8562 openbsd2.[89] | openbsd2.[89].*)
8563 shlibpath_overrides_runpath=no
8566 shlibpath_overrides_runpath=yes
8570 shlibpath_overrides_runpath=yes
8575 libname_spec='$name'
8578 library_names_spec='$libname${shared_ext} $libname.a'
8579 dynamic_linker='OS/2 ld.exe'
8580 shlibpath_var=LIBPATH
8583 osf3* | osf4* | osf5*)
8587 soname_spec='${libname}${release}${shared_ext}$major'
8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8589 shlibpath_var=LD_LIBRARY_PATH
8590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 shlibpath_var=LD_LIBRARY_PATH
8601 shlibpath_overrides_runpath=yes
8602 hardcode_into_libs=yes
8603 # ldd complains unless libraries are executable
8604 postinstall_cmds='chmod +x $lib'
8609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8611 shlibpath_var=LD_LIBRARY_PATH
8612 shlibpath_overrides_runpath=yes
8613 if test "$with_gnu_ld" = yes; then
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622 soname_spec='${libname}${release}${shared_ext}$major'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 case $host_vendor in
8626 shlibpath_overrides_runpath=no
8628 export_dynamic_flag_spec='${wl}-Blargedynsym'
8629 runpath_var=LD_RUN_PATH
8637 shlibpath_overrides_runpath=no
8638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8644 if test -d /usr/nec ;then
8646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8647 soname_spec='$libname${shared_ext}.$major'
8648 shlibpath_var=LD_LIBRARY_PATH
8652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8653 version_type=freebsd-elf
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8657 soname_spec='${libname}${release}${shared_ext}$major'
8658 shlibpath_var=LD_LIBRARY_PATH
8659 hardcode_into_libs=yes
8660 if test "$with_gnu_ld" = yes; then
8661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8662 shlibpath_overrides_runpath=no
8664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8665 shlibpath_overrides_runpath=yes
8668 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8672 sys_lib_dlsearch_path_spec='/usr/lib'
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 shlibpath_var=LD_LIBRARY_PATH
8686 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8687 echo "${ECHO_T}$dynamic_linker" >&6
8688 test "$dynamic_linker" = no && can_build_shared=no
8690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8691 if test "$GCC" = yes; then
8692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8695 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8696 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8698 if test -n "$hardcode_libdir_flag_spec" || \
8699 test -n "$runpath_var" || \
8700 test "X$hardcode_automatic" = "Xyes" ; then
8702 # We can hardcode non-existant directories.
8703 if test "$hardcode_direct" != no &&
8704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8705 # have to relink, otherwise we might link with an installed library
8706 # when we should be linking with a yet-to-be-installed one
8707 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8708 test "$hardcode_minus_L" != no; then
8709 # Linking always hardcodes the temporary library directory.
8710 hardcode_action=relink
8712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8713 hardcode_action=immediate
8716 # We cannot hardcode anything, or else we can only hardcode existing
8718 hardcode_action=unsupported
8720 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8721 echo "${ECHO_T}$hardcode_action" >&6
8723 if test "$hardcode_action" = relink; then
8724 # Fast installation is not supported
8725 enable_fast_install=no
8726 elif test "$shlibpath_overrides_runpath" = yes ||
8727 test "$enable_shared" = no; then
8728 # Fast installation is not necessary
8729 enable_fast_install=needless
8734 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8735 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8736 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8737 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8738 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8739 echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6
8742 # FIXME - insert some real tests, host_os isn't really good enough
8745 if test -n "$STRIP" ; then
8746 striplib="$STRIP -x"
8747 echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6
8750 echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6
8755 echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6
8761 if test "x$enable_dlopen" != xyes; then
8762 enable_dlopen=unknown
8763 enable_dlopen_self=unknown
8764 enable_dlopen_self_static=unknown
8771 lt_cv_dlopen="load_add_on"
8773 lt_cv_dlopen_self=yes
8777 lt_cv_dlopen="LoadLibrary"
8782 lt_cv_dlopen="dlopen"
8787 # if libdl is installed we need to link against it
8788 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_check_lib_save_LIBS=$LIBS
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8821 grep -v '^ *+' conftest.er1 >conftest.err
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 ac_cv_lib_dl_dlopen=yes
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 ac_cv_lib_dl_dlopen=no
8845 rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 LIBS=$ac_check_lib_save_LIBS
8849 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8850 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8851 if test $ac_cv_lib_dl_dlopen = yes; then
8852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8857 lt_cv_dlopen_self=yes
8864 echo "$as_me:$LINENO: checking for shl_load" >&5
8865 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8866 if test "${ac_cv_func_shl_load+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 cat >conftest.$ac_ext <<_ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8877 #define shl_load innocuous_shl_load
8879 /* System header to define __stub macros and hopefully few prototypes,
8880 which can conflict with char shl_load (); below.
8881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882 <limits.h> exists even on freestanding compilers. */
8885 # include <limits.h>
8887 # include <assert.h>
8892 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8900 /* The GNU C library defines this for functions which it implements
8901 to always fail with ENOSYS. Some functions are actually named
8902 something starting with __ and the normal name is an alias. */
8903 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8906 char (*f) () = shl_load;
8915 return f != shl_load;
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_func_shl_load=yes
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_cv_func_shl_load=no
8948 rm -f conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8951 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8952 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8953 if test $ac_cv_func_shl_load = yes; then
8954 lt_cv_dlopen="shl_load"
8956 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8957 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8958 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_check_lib_save_LIBS=$LIBS
8963 cat >conftest.$ac_ext <<_ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8970 /* Override any gcc2 internal prototype to avoid an error. */
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>conftest.er1
8989 grep -v '^ *+' conftest.er1 >conftest.err
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_dld_shl_load=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_lib_dld_shl_load=no
9013 rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015 LIBS=$ac_check_lib_save_LIBS
9017 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9018 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9019 if test $ac_cv_lib_dld_shl_load = yes; then
9020 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9022 echo "$as_me:$LINENO: checking for dlopen" >&5
9023 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9024 if test "${ac_cv_func_dlopen+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9035 #define dlopen innocuous_dlopen
9037 /* System header to define __stub macros and hopefully few prototypes,
9038 which can conflict with char dlopen (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9043 # include <limits.h>
9045 # include <assert.h>
9050 /* Override any gcc2 internal prototype to avoid an error. */
9055 /* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9058 /* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9064 char (*f) () = dlopen;
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1 >conftest.err
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 ac_cv_func_dlopen=yes
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_cv_func_dlopen=no
9106 rm -f conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9109 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9110 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9111 if test $ac_cv_func_dlopen = yes; then
9112 lt_cv_dlopen="dlopen"
9114 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9115 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9116 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 ac_check_lib_save_LIBS=$LIBS
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9128 /* Override any gcc2 internal prototype to avoid an error. */
9132 /* We use char because int might match the return type of a gcc2
9133 builtin and then its argument prototype would still apply. */
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_cv_lib_dl_dlopen=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_cv_lib_dl_dlopen=no
9171 rm -f conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9175 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9176 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9177 if test $ac_cv_lib_dl_dlopen = yes; then
9178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9180 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9181 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9182 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 ac_check_lib_save_LIBS=$LIBS
9187 cat >conftest.$ac_ext <<_ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9194 /* Override any gcc2 internal prototype to avoid an error. */
9198 /* We use char because int might match the return type of a gcc2
9199 builtin and then its argument prototype would still apply. */
9209 rm -f conftest.$ac_objext conftest$ac_exeext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211 (eval $ac_link) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1 >conftest.err
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest$ac_exeext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 ac_cv_lib_svld_dlopen=yes
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 ac_cv_lib_svld_dlopen=no
9237 rm -f conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239 LIBS=$ac_check_lib_save_LIBS
9241 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9242 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9243 if test $ac_cv_lib_svld_dlopen = yes; then
9244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9246 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9247 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9248 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 ac_check_lib_save_LIBS=$LIBS
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9260 /* Override any gcc2 internal prototype to avoid an error. */
9264 /* We use char because int might match the return type of a gcc2
9265 builtin and then its argument prototype would still apply. */
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest$ac_exeext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 ac_cv_lib_dld_dld_link=yes
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 ac_cv_lib_dld_dld_link=no
9303 rm -f conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9307 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9308 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9309 if test $ac_cv_lib_dld_dld_link = yes; then
9310 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9331 if test "x$lt_cv_dlopen" != xno; then
9337 case $lt_cv_dlopen in
9339 save_CPPFLAGS="$CPPFLAGS"
9340 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9342 save_LDFLAGS="$LDFLAGS"
9343 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9346 LIBS="$lt_cv_dlopen_libs $LIBS"
9348 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9349 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9350 if test "${lt_cv_dlopen_self+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 if test "$cross_compiling" = yes; then :
9354 lt_cv_dlopen_self=cross
9356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9357 lt_status=$lt_dlunknown
9358 cat > conftest.$ac_ext <<EOF
9359 #line 9359 "configure"
9360 #include "confdefs.h"
9369 # define LT_DLGLOBAL RTLD_GLOBAL
9372 # define LT_DLGLOBAL DL_GLOBAL
9374 # define LT_DLGLOBAL 0
9378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9379 find out it does not work in some platform. */
9380 #ifndef LT_DLLAZY_OR_NOW
9382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9385 # define LT_DLLAZY_OR_NOW DL_LAZY
9388 # define LT_DLLAZY_OR_NOW RTLD_NOW
9391 # define LT_DLLAZY_OR_NOW DL_NOW
9393 # define LT_DLLAZY_OR_NOW 0
9401 extern "C" void exit (int);
9404 void fnord() { int i=42;}
9407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9408 int status = $lt_dlunknown;
9412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9414 /* dlclose (self); */
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9427 (./conftest; exit; ) >&5 2>/dev/null
9430 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9431 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9432 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9435 # compilation failed
9436 lt_cv_dlopen_self=no
9443 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9444 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9446 if test "x$lt_cv_dlopen_self" = xyes; then
9447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9448 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9449 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9450 if test "${lt_cv_dlopen_self_static+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 if test "$cross_compiling" = yes; then :
9454 lt_cv_dlopen_self_static=cross
9456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9457 lt_status=$lt_dlunknown
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9459 "configure"
9460 #include "confdefs.h"
9469 # define LT_DLGLOBAL RTLD_GLOBAL
9472 # define LT_DLGLOBAL DL_GLOBAL
9474 # define LT_DLGLOBAL 0
9478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9479 find out it does not work in some platform. */
9480 #ifndef LT_DLLAZY_OR_NOW
9482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9485 # define LT_DLLAZY_OR_NOW DL_LAZY
9488 # define LT_DLLAZY_OR_NOW RTLD_NOW
9491 # define LT_DLLAZY_OR_NOW DL_NOW
9493 # define LT_DLLAZY_OR_NOW 0
9501 extern "C" void exit (int);
9504 void fnord() { int i=42;}
9507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9508 int status = $lt_dlunknown;
9512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9514 /* dlclose (self); */
9522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9523 (eval $ac_link) 2>&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9527 (./conftest; exit; ) >&5 2>/dev/null
9530 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9531 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9532 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9535 # compilation failed
9536 lt_cv_dlopen_self_static=no
9543 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9544 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9547 CPPFLAGS="$save_CPPFLAGS"
9548 LDFLAGS="$save_LDFLAGS"
9553 case $lt_cv_dlopen_self in
9554 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9555 *) enable_dlopen_self=unknown ;;
9558 case $lt_cv_dlopen_self_static in
9559 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9560 *) enable_dlopen_self_static=unknown ;;
9565 # Report which library types will actually be built
9566 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9567 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9568 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9569 echo "${ECHO_T}$can_build_shared" >&6
9571 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9572 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9573 test "$can_build_shared" = "no" && enable_shared=no
9575 # On AIX, shared libraries and static libraries use the same namespace, and
9576 # are all built from PIC.
9579 test "$enable_shared" = yes && enable_static=no
9580 if test -n "$RANLIB"; then
9581 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9582 postinstall_cmds='$RANLIB $lib'
9587 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9588 test "$enable_shared" = yes && enable_static=no
9592 echo "$as_me:$LINENO: result: $enable_shared" >&5
9593 echo "${ECHO_T}$enable_shared" >&6
9595 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9596 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9597 # Make sure either enable_shared or enable_static is yes.
9598 test "$enable_shared" = yes || enable_static=yes
9599 echo "$as_me:$LINENO: result: $enable_static" >&5
9600 echo "${ECHO_T}$enable_static" >&6
9602 # The else clause should only fire when bootstrapping the
9603 # libtool distribution, otherwise you forgot to ship ltmain.sh
9604 # with your package, and you will get complaints that there are
9605 # no rules to generate ltmain.sh.
9606 if test -f "$ltmain"; then
9607 # See if we are running on zsh, and set the options which allow our commands through
9608 # without removal of \ escapes.
9609 if test -n "${ZSH_VERSION+set}" ; then
9610 setopt NO_GLOB_SUBST
9612 # Now quote all the things that may contain metacharacters while being
9613 # careful not to overquote the AC_SUBSTed values. We take copies of the
9614 # variables and quote the copies for generation of the libtool script.
9615 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9617 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9618 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9619 deplibs_check_method reload_flag reload_cmds need_locks \
9620 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9621 lt_cv_sys_global_symbol_to_c_name_address \
9622 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9623 old_postinstall_cmds old_postuninstall_cmds \
9627 lt_prog_compiler_wl \
9628 lt_prog_compiler_pic \
9629 lt_prog_compiler_static \
9630 lt_prog_compiler_no_builtin_flag \
9631 export_dynamic_flag_spec \
9632 thread_safe_flag_spec \
9633 whole_archive_flag_spec \
9634 enable_shared_with_static_runtimes \
9636 old_archive_from_new_cmds \
9641 compiler_lib_search_path \
9643 archive_expsym_cmds \
9645 postuninstall_cmds \
9646 old_archive_from_expsyms_cmds \
9647 allow_undefined_flag \
9649 export_symbols_cmds \
9650 hardcode_libdir_flag_spec \
9651 hardcode_libdir_flag_spec_ld \
9652 hardcode_libdir_separator \
9653 hardcode_automatic \
9655 module_expsym_cmds \
9656 lt_cv_prog_compiler_c_o \
9661 old_archive_cmds | \
9662 old_archive_from_new_cmds | \
9664 archive_expsym_cmds | \
9666 module_expsym_cmds | \
9667 old_archive_from_expsyms_cmds | \
9668 export_symbols_cmds | \
9669 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9670 postinstall_cmds | postuninstall_cmds | \
9671 old_postinstall_cmds | old_postuninstall_cmds | \
9672 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9673 # Double-quote double-evaled strings.
9674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9683 *'\$0 --fallback-echo"')
9684 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9689 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9691 { echo "$as_me:$LINENO: creating $ofile" >&5
9692 echo "$as_me: creating $ofile" >&6;}
9694 cat <<__EOF__ >> "$cfgfile"
9697 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9698 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9699 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9701 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9702 # Free Software Foundation, Inc.
9704 # This file is part of GNU Libtool:
9705 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9707 # This program is free software; you can redistribute it and/or modify
9708 # it under the terms of the GNU General Public License as published by
9709 # the Free Software Foundation; either version 2 of the License, or
9710 # (at your option) any later version.
9712 # This program is distributed in the hope that it will be useful, but
9713 # WITHOUT ANY WARRANTY; without even the implied warranty of
9714 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9715 # General Public License for more details.
9717 # You should have received a copy of the GNU General Public License
9718 # along with this program; if not, write to the Free Software
9719 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9721 # As a special exception to the GNU General Public License, if you
9722 # distribute this file as part of a program that contains a
9723 # configuration script generated by Autoconf, you may include it under
9724 # the same distribution terms that you use for the rest of that program.
9726 # A sed program that does not truncate output.
9729 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9730 Xsed="$SED -e 1s/^X//"
9732 # The HP-UX ksh and POSIX shell print the target directory to stdout
9734 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9736 # The names of the tagged configurations supported by this script.
9739 # ### BEGIN LIBTOOL CONFIG
9741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9743 # Shell to use when invoking shell scripts.
9746 # Whether or not to build shared libraries.
9747 build_libtool_libs=$enable_shared
9749 # Whether or not to build static libraries.
9750 build_old_libs=$enable_static
9752 # Whether or not to add -lc for building shared libraries.
9753 build_libtool_need_lc=$archive_cmds_need_lc
9755 # Whether or not to disallow shared libs when runtime libs are static
9756 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9758 # Whether or not to optimize for fast installation.
9759 fast_install=$enable_fast_install
9762 host_alias=$host_alias
9767 build_alias=$build_alias
9771 # An echo program that does not interpret backslashes.
9776 AR_FLAGS=$lt_AR_FLAGS
9781 # LTCC compiler flags.
9782 LTCFLAGS=$lt_LTCFLAGS
9784 # A language-specific compiler.
9787 # Is the compiler the GNU C compiler?
9793 # The linker used to build libraries.
9796 # Whether we need hard or soft links.
9799 # A BSD-compatible nm program.
9802 # A symbol stripping program
9805 # Used to examine libraries when file_magic_cmd begins "file"
9806 MAGIC_CMD=$MAGIC_CMD
9808 # Used on cygwin: DLL creation program.
9811 # Used on cygwin: object dumper.
9814 # Used on cygwin: assembler.
9817 # The name of the directory that contains temporary libtool files.
9820 # How to create reloadable object files.
9821 reload_flag=$lt_reload_flag
9822 reload_cmds=$lt_reload_cmds
9824 # How to pass a linker flag through the compiler.
9825 wl=$lt_lt_prog_compiler_wl
9827 # Object file suffix (normally "o").
9830 # Old archive suffix (normally "a").
9833 # Shared library suffix (normally ".so").
9834 shrext_cmds='$shrext_cmds'
9836 # Executable file suffix (normally "").
9839 # Additional compiler flags for building library objects.
9840 pic_flag=$lt_lt_prog_compiler_pic
9843 # What is the maximum length of a command?
9844 max_cmd_len=$lt_cv_sys_max_cmd_len
9846 # Does compiler simultaneously support -c and -o options?
9847 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9849 # Must we lock files when doing compilation?
9850 need_locks=$lt_need_locks
9852 # Do we need the lib prefix for modules?
9853 need_lib_prefix=$need_lib_prefix
9855 # Do we need a version for libraries?
9856 need_version=$need_version
9858 # Whether dlopen is supported.
9859 dlopen_support=$enable_dlopen
9861 # Whether dlopen of programs is supported.
9862 dlopen_self=$enable_dlopen_self
9864 # Whether dlopen of statically linked programs is supported.
9865 dlopen_self_static=$enable_dlopen_self_static
9867 # Compiler flag to prevent dynamic linking.
9868 link_static_flag=$lt_lt_prog_compiler_static
9870 # Compiler flag to turn off builtin functions.
9871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9873 # Compiler flag to allow reflexive dlopens.
9874 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9876 # Compiler flag to generate shared objects directly from archives.
9877 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9879 # Compiler flag to generate thread-safe objects.
9880 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9882 # Library versioning type.
9883 version_type=$version_type
9885 # Format of library name prefix.
9886 libname_spec=$lt_libname_spec
9888 # List of archive names. First name is the real one, the rest are links.
9889 # The last name is the one that the linker finds with -lNAME.
9890 library_names_spec=$lt_library_names_spec
9892 # The coded name of the library, if different from the real name.
9893 soname_spec=$lt_soname_spec
9895 # Commands used to build and install an old-style archive.
9897 old_archive_cmds=$lt_old_archive_cmds
9898 old_postinstall_cmds=$lt_old_postinstall_cmds
9899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9901 # Create an old-style archive from a shared archive.
9902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9904 # Create a temporary old-style archive to link instead of a shared archive.
9905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9907 # Commands used to build and install a shared archive.
9908 archive_cmds=$lt_archive_cmds
9909 archive_expsym_cmds=$lt_archive_expsym_cmds
9910 postinstall_cmds=$lt_postinstall_cmds
9911 postuninstall_cmds=$lt_postuninstall_cmds
9913 # Commands used to build a loadable module (assumed same as above if empty)
9914 module_cmds=$lt_module_cmds
9915 module_expsym_cmds=$lt_module_expsym_cmds
9917 # Commands to strip libraries.
9918 old_striplib=$lt_old_striplib
9919 striplib=$lt_striplib
9921 # Dependencies to place before the objects being linked to create a
9923 predep_objects=$lt_predep_objects
9925 # Dependencies to place after the objects being linked to create a
9927 postdep_objects=$lt_postdep_objects
9929 # Dependencies to place before the objects being linked to create a
9933 # Dependencies to place after the objects being linked to create a
9935 postdeps=$lt_postdeps
9937 # The library search path used internally by the compiler when linking
9939 compiler_lib_search_path=$lt_compiler_lib_search_path
9941 # Method to check whether dependent libraries are shared objects.
9942 deplibs_check_method=$lt_deplibs_check_method
9944 # Command to use when deplibs_check_method == file_magic.
9945 file_magic_cmd=$lt_file_magic_cmd
9947 # Flag that allows shared libraries with undefined symbols to be built.
9948 allow_undefined_flag=$lt_allow_undefined_flag
9950 # Flag that forces no undefined symbols.
9951 no_undefined_flag=$lt_no_undefined_flag
9953 # Commands used to finish a libtool library installation in a directory.
9954 finish_cmds=$lt_finish_cmds
9956 # Same as above, but a single script fragment to be evaled but not shown.
9957 finish_eval=$lt_finish_eval
9959 # Take the output of nm and produce a listing of raw symbols and C names.
9960 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9962 # Transform the output of nm in a proper C declaration
9963 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9965 # Transform the output of nm in a C name address pair
9966 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9968 # This is the shared library runtime path variable.
9969 runpath_var=$runpath_var
9971 # This is the shared library path variable.
9972 shlibpath_var=$shlibpath_var
9974 # Is shlibpath searched before the hard-coded library search path?
9975 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9977 # How to hardcode a shared library path into an executable.
9978 hardcode_action=$hardcode_action
9980 # Whether we should hardcode library paths into libraries.
9981 hardcode_into_libs=$hardcode_into_libs
9983 # Flag to hardcode \$libdir into a binary during linking.
9984 # This must work even if \$libdir does not exist.
9985 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9987 # If ld is used when linking, flag to hardcode \$libdir into
9988 # a binary during linking. This must work even if \$libdir does
9990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9992 # Whether we need a single -rpath flag with a separated argument.
9993 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9995 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9997 hardcode_direct=$hardcode_direct
9999 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10000 # resulting binary.
10001 hardcode_minus_L=$hardcode_minus_L
10003 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10004 # the resulting binary.
10005 hardcode_shlibpath_var=$hardcode_shlibpath_var
10007 # Set to yes if building a shared library automatically hardcodes DIR into the library
10008 # and all subsequent libraries and executables linked against it.
10009 hardcode_automatic=$hardcode_automatic
10011 # Variables whose values should be saved in libtool wrapper scripts and
10012 # restored at relink time.
10013 variables_saved_for_relink="$variables_saved_for_relink"
10015 # Whether libtool must link a program against all its dependency libraries.
10016 link_all_deplibs=$link_all_deplibs
10018 # Compile-time system search path for libraries
10019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10021 # Run-time system search path for libraries
10022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10024 # Fix the shell variable \$srcfile for the compiler.
10025 fix_srcfile_path="$fix_srcfile_path"
10027 # Set to yes if exported symbols are required.
10028 always_export_symbols=$always_export_symbols
10030 # The commands to list exported symbols.
10031 export_symbols_cmds=$lt_export_symbols_cmds
10033 # The commands to extract the exported symbol list from a shared archive.
10034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10036 # Symbols that should not be listed in the preloaded symbols.
10037 exclude_expsyms=$lt_exclude_expsyms
10039 # Symbols that must always be exported.
10040 include_expsyms=$lt_include_expsyms
10042 # ### END LIBTOOL CONFIG
10049 cat <<\EOF >> "$cfgfile"
10051 # AIX sometimes has problems with the GCC collect2 program. For some
10052 # reason, if we set the COLLECT_NAMES environment variable, the problems
10053 # vanish in a puff of smoke.
10054 if test "X${COLLECT_NAMES+set}" != Xset; then
10056 export COLLECT_NAMES
10062 # We use sed instead of cat because bash on DJGPP gets confused if
10063 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10064 # text mode, it properly converts lines to CR/LF. This bash problem
10065 # is reportedly fixed, but why not run on old versions too?
10066 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10068 mv -f "$cfgfile" "$ofile" || \
10069 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10073 # If there is no Makefile yet, we rely on a make rule to execute
10074 # `config.status --recheck' to rerun these tests and create the
10075 # libtool script then.
10076 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10077 if test -f "$ltmain_in"; then
10078 test -f Makefile && make "$ltmain"
10084 ac_cpp='$CPP $CPPFLAGS'
10085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10092 # Check whether --with-tags or --without-tags was given.
10093 if test "${with_tags+set}" = set; then
10094 withval="$with_tags"
10095 tagnames="$withval"
10098 if test -f "$ltmain" && test -n "$tagnames"; then
10099 if test ! -f "${ofile}"; then
10100 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10101 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10104 if test -z "$LTCC"; then
10105 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10106 if test -z "$LTCC"; then
10107 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10108 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10111 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10114 if test -z "$LTCFLAGS"; then
10115 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10118 # Extract list of available tagged configurations in $ofile.
10119 # Note that this assumes the entire list is on one line.
10120 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10123 for tagname in $tagnames; do
10125 # Check whether tagname contains only valid characters
10126 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10128 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10129 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10130 { (exit 1); exit 1; }; }
10134 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10136 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10137 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10138 { (exit 1); exit 1; }; }
10141 # Update the list of available tags.
10142 if test -n "$tagname"; then
10143 echo appending configuration tag \"$tagname\" to $ofile
10147 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10148 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10149 (test "X$CXX" != "Xg++"))) ; then
10151 ac_cpp='$CXXCPP $CPPFLAGS'
10152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10159 archive_cmds_need_lc_CXX=no
10160 allow_undefined_flag_CXX=
10161 always_export_symbols_CXX=no
10162 archive_expsym_cmds_CXX=
10163 export_dynamic_flag_spec_CXX=
10164 hardcode_direct_CXX=no
10165 hardcode_libdir_flag_spec_CXX=
10166 hardcode_libdir_flag_spec_ld_CXX=
10167 hardcode_libdir_separator_CXX=
10168 hardcode_minus_L_CXX=no
10169 hardcode_shlibpath_var_CXX=unsupported
10170 hardcode_automatic_CXX=no
10172 module_expsym_cmds_CXX=
10173 link_all_deplibs_CXX=unknown
10174 old_archive_cmds_CXX=$old_archive_cmds
10175 no_undefined_flag_CXX=
10176 whole_archive_flag_spec_CXX=
10177 enable_shared_with_static_runtimes_CXX=no
10179 # Dependencies to place before and after the object being linked:
10180 predep_objects_CXX=
10181 postdep_objects_CXX=
10184 compiler_lib_search_path_CXX=
10186 # Source file extension for C++ test sources.
10189 # Object file extension for compiled C++ test sources.
10193 # Code to be used in simple compile tests
10194 lt_simple_compile_test_code="int some_variable = 0;\n"
10196 # Code to be used in simple link tests
10197 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10199 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10201 # If no C compiler was specified, use CC.
10204 # If no C compiler flags were specified, use CFLAGS.
10205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10207 # Allow CC to be a program name with arguments.
10211 # save warnings/boilerplate of simple test code
10212 ac_outfile=conftest.$ac_objext
10213 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10214 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10215 _lt_compiler_boilerplate=`cat conftest.err`
10218 ac_outfile=conftest.$ac_objext
10219 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10220 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10221 _lt_linker_boilerplate=`cat conftest.err`
10225 # Allow CC to be a program name with arguments.
10230 lt_save_with_gnu_ld=$with_gnu_ld
10231 lt_save_path_LD=$lt_cv_path_LD
10232 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10233 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10235 $as_unset lt_cv_prog_gnu_ld
10237 if test -n "${lt_cv_path_LDCXX+set}"; then
10238 lt_cv_path_LD=$lt_cv_path_LDCXX
10240 $as_unset lt_cv_path_LD
10242 test -z "${LDCXX+set}" || LD=$LDCXX
10246 for cc_temp in $compiler""; do
10248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10254 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10257 # We don't want -fno-exception wen compiling C++ code, so set the
10258 # no_builtin_flag separately
10259 if test "$GXX" = yes; then
10260 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10262 lt_prog_compiler_no_builtin_flag_CXX=
10265 if test "$GXX" = yes; then
10266 # Set up default GNU C++ configuration
10269 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10270 if test "${with_gnu_ld+set}" = set; then
10271 withval="$with_gnu_ld"
10272 test "$withval" = no || with_gnu_ld=yes
10277 if test "$GCC" = yes; then
10278 # Check if gcc -print-prog-name=ld gives a path.
10279 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10280 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10283 # gcc leaves a trailing carriage return which upsets mingw
10284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10289 # Accept absolute paths.
10291 re_direlt='/[^/][^/]*/\.\./'
10292 # Canonicalize the pathname of ld
10293 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10294 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10295 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10297 test -z "$LD" && LD="$ac_prog"
10300 # If it fails, then pretend we aren't using GCC.
10304 # If it is relative, then search for the first ld in PATH.
10305 with_gnu_ld=unknown
10308 elif test "$with_gnu_ld" = yes; then
10309 echo "$as_me:$LINENO: checking for GNU ld" >&5
10310 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10312 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10313 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10315 if test "${lt_cv_path_LD+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 if test -z "$LD"; then
10319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10320 for ac_dir in $PATH; do
10322 test -z "$ac_dir" && ac_dir=.
10323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10324 lt_cv_path_LD="$ac_dir/$ac_prog"
10325 # Check to see if the program is GNU ld. I'd rather use --version,
10326 # but apparently some variants of GNU ld only accept -v.
10327 # Break only if it was the GNU/non-GNU ld that we prefer.
10328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10329 *GNU* | *'with BFD'*)
10330 test "$with_gnu_ld" != no && break
10333 test "$with_gnu_ld" != yes && break
10340 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10344 LD="$lt_cv_path_LD"
10345 if test -n "$LD"; then
10346 echo "$as_me:$LINENO: result: $LD" >&5
10347 echo "${ECHO_T}$LD" >&6
10349 echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6
10352 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10353 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10354 { (exit 1); exit 1; }; }
10355 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10356 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10357 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10361 case `$LD -v 2>&1 </dev/null` in
10362 *GNU* | *'with BFD'*)
10363 lt_cv_prog_gnu_ld=yes
10366 lt_cv_prog_gnu_ld=no
10370 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10371 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10372 with_gnu_ld=$lt_cv_prog_gnu_ld
10376 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10377 # archiving commands below assume that GNU ld is being used.
10378 if test "$with_gnu_ld" = yes; then
10379 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10380 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'
10382 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10385 # If archive_cmds runs LD, not CC, wlarc should be empty
10386 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10387 # investigate it a little bit more. (MM)
10390 # ancient GNU ld didn't support --whole-archive et. al.
10391 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10392 grep 'no-whole-archive' > /dev/null; then
10393 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10395 whole_archive_flag_spec_CXX=
10401 # A generic and very simple default shared library creation
10402 # command for GNU C++ for the case where it uses the native
10403 # linker, instead of GNU ld. If possible, this setting should
10404 # overridden to take advantage of the native linker features on
10405 # the platform it is being used on.
10406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10409 # Commands to make compiler produce verbose output that lists
10410 # what "hidden" libraries, object files and flags are used when
10411 # linking a shared library.
10412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10420 # PORTME: fill in a description of your system's C++ link characteristics
10421 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10426 # FIXME: insert proper C++ library support
10430 if test "$host_cpu" = ia64; then
10431 # On IA64, the linker does run time linking by default, so we don't
10432 # have to do anything special.
10433 aix_use_runtimelinking=no
10434 exp_sym_flag='-Bexport'
10437 aix_use_runtimelinking=no
10439 # Test if we are trying to use run time linking or normal
10440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10441 # need to do runtime linking.
10442 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10443 for ld_flag in $LDFLAGS; do
10446 aix_use_runtimelinking=yes
10454 exp_sym_flag='-bexport'
10455 no_entry_flag='-bnoentry'
10458 # When large executables or shared objects are built, AIX ld can
10459 # have problems creating the table of contents. If linking a library
10460 # or program results in "error TOC overflow" add -mminimal-toc to
10461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10464 archive_cmds_CXX=''
10465 hardcode_direct_CXX=yes
10466 hardcode_libdir_separator_CXX=':'
10467 link_all_deplibs_CXX=yes
10469 if test "$GXX" = yes; then
10470 case $host_os in aix4.[012]|aix4.[012].*)
10471 # We only want to do this on AIX 4.2 and lower, the check
10472 # below for broken collect2 doesn't work under 4.3+
10473 collect2name=`${CC} -print-prog-name=collect2`
10474 if test -f "$collect2name" && \
10475 strings "$collect2name" | grep resolve_lib_name >/dev/null
10477 # We have reworked collect2
10478 hardcode_direct_CXX=yes
10480 # We have old collect2
10481 hardcode_direct_CXX=unsupported
10482 # It fails to find uninstalled libraries when the uninstalled
10483 # path is not listed in the libpath. Setting hardcode_minus_L
10484 # to unsupported forces relinking
10485 hardcode_minus_L_CXX=yes
10486 hardcode_libdir_flag_spec_CXX='-L$libdir'
10487 hardcode_libdir_separator_CXX=
10491 shared_flag='-shared'
10492 if test "$aix_use_runtimelinking" = yes; then
10493 shared_flag="$shared_flag "'${wl}-G'
10497 if test "$host_cpu" = ia64; then
10498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10499 # chokes on -Wl,-G. The following line is correct:
10502 if test "$aix_use_runtimelinking" = yes; then
10503 shared_flag='${wl}-G'
10505 shared_flag='${wl}-bM:SRE'
10510 # It seems that -bexpall does not export symbols beginning with
10511 # underscore (_), so it is better to generate a list of symbols to export.
10512 always_export_symbols_CXX=yes
10513 if test "$aix_use_runtimelinking" = yes; then
10514 # Warning - without using the other runtime loading flags (-brtl),
10515 # -berok will link without error, but may produce a broken library.
10516 allow_undefined_flag_CXX='-berok'
10517 # Determine the default libpath from the value encoded in an empty executable.
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10533 rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535 (eval $ac_link) 2>conftest.er1
10537 grep -v '^ *+' conftest.er1 >conftest.err
10539 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10557 # Check for a 64-bit object if we didn't find anything.
10558 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; }
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10565 rm -f conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10569 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10571 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"
10573 if test "$host_cpu" = ia64; then
10574 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10575 allow_undefined_flag_CXX="-z nodefs"
10576 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"
10578 # Determine the default libpath from the value encoded in an empty executable.
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest$ac_exeext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10618 # Check for a 64-bit object if we didn't find anything.
10619 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; }
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10626 rm -f conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10630 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10631 # Warning - without using the other run time loading flags,
10632 # -berok will link without error, but may produce a broken library.
10633 no_undefined_flag_CXX=' ${wl}-bernotok'
10634 allow_undefined_flag_CXX=' ${wl}-berok'
10635 # Exported symbols can be pulled into shared objects from archives
10636 whole_archive_flag_spec_CXX='$convenience'
10637 archive_cmds_need_lc_CXX=yes
10638 # This is similar to how AIX traditionally builds its shared libraries.
10639 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'
10645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10646 allow_undefined_flag_CXX=unsupported
10647 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10648 # support --undefined. This deserves some investigation. FIXME
10649 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10656 case $cc_basename in
10658 # FIXME: insert proper C++ library support
10664 cygwin* | mingw* | pw32*)
10665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10666 # as there is no search path for DLLs.
10667 hardcode_libdir_flag_spec_CXX='-L$libdir'
10668 allow_undefined_flag_CXX=unsupported
10669 always_export_symbols_CXX=no
10670 enable_shared_with_static_runtimes_CXX=yes
10672 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10673 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'
10674 # If the export-symbols file already is a .def file (1st line
10675 # is EXPORTS), use it as is; otherwise, prepend...
10676 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10677 cp $export_symbols $output_objdir/$soname.def;
10679 echo EXPORTS > $output_objdir/$soname.def;
10680 cat $export_symbols >> $output_objdir/$soname.def;
10682 $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'
10687 darwin* | rhapsody*)
10689 rhapsody* | darwin1.[012])
10690 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10693 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10694 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10696 case ${MACOSX_DEPLOYMENT_TARGET} in
10698 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10701 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10707 archive_cmds_need_lc_CXX=no
10708 hardcode_direct_CXX=no
10709 hardcode_automatic_CXX=yes
10710 hardcode_shlibpath_var_CXX=unsupported
10711 whole_archive_flag_spec_CXX=''
10712 link_all_deplibs_CXX=yes
10714 if test "$GXX" = yes ; then
10715 lt_int_apple_cc_single_mod=no
10716 output_verbose_link_cmd='echo'
10717 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10718 lt_int_apple_cc_single_mod=yes
10720 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10721 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10723 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'
10725 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10727 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10728 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}'
10730 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}'
10732 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}'
10734 case $cc_basename in
10736 output_verbose_link_cmd='echo'
10737 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'
10738 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10740 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}'
10741 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}'
10751 case $cc_basename in
10753 # FIXME: insert proper C++ library support
10757 # Green Hills C++ Compiler
10758 # FIXME: insert proper C++ library support
10762 # FIXME: insert proper C++ library support
10768 # C++ shared libraries reported to be fairly broken before switch to ELF
10772 archive_cmds_need_lc_CXX=no
10774 freebsd* | kfreebsd*-gnu | dragonfly*)
10775 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10782 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10783 hardcode_libdir_separator_CXX=:
10784 export_dynamic_flag_spec_CXX='${wl}-E'
10785 hardcode_direct_CXX=yes
10786 hardcode_minus_L_CXX=yes # Not in the search PATH,
10787 # but as the default
10788 # location of the library.
10790 case $cc_basename in
10792 # FIXME: insert proper C++ library support
10796 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'
10797 # Commands to make compiler produce verbose output that lists
10798 # what "hidden" libraries, object files and flags are used when
10799 # linking a shared library.
10801 # There doesn't appear to be a way to prevent this compiler from
10802 # explicitly linking system object files so we need to strip them
10803 # from the output so that they don't get included in the library
10805 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'
10808 if test "$GXX" = yes; then
10809 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'
10811 # FIXME: insert proper C++ library support
10818 if test $with_gnu_ld = no; then
10819 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10820 hardcode_libdir_separator_CXX=:
10824 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10827 export_dynamic_flag_spec_CXX='${wl}-E'
10833 hardcode_direct_CXX=no
10834 hardcode_shlibpath_var_CXX=no
10837 hardcode_direct_CXX=yes
10838 hardcode_minus_L_CXX=yes # Not in the search PATH,
10839 # but as the default
10840 # location of the library.
10844 case $cc_basename in
10846 # FIXME: insert proper C++ library support
10852 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10855 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10858 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10861 # Commands to make compiler produce verbose output that lists
10862 # what "hidden" libraries, object files and flags are used when
10863 # linking a shared library.
10865 # There doesn't appear to be a way to prevent this compiler from
10866 # explicitly linking system object files so we need to strip them
10867 # from the output so that they don't get included in the library
10869 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'
10872 if test "$GXX" = yes; then
10873 if test $with_gnu_ld = no; then
10876 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10879 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10882 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'
10887 # FIXME: insert proper C++ library support
10894 hardcode_direct_CXX=no
10895 hardcode_shlibpath_var_CXX=no
10896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10897 export_dynamic_flag_spec_CXX='${wl}-E'
10898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10899 # Instead, shared libraries are loaded at an image base (0x10000000 by
10900 # default) and relocated if they conflict, which is a slow very memory
10901 # consuming and fragmenting process. To avoid this, we pick a random,
10902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10904 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'
10905 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'
10908 case $cc_basename in
10911 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'
10913 # Archives containing C++ object files must be created using
10914 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10915 # necessary to make sure instantiated templates are included
10917 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10920 if test "$GXX" = yes; then
10921 if test "$with_gnu_ld" = no; then
10922 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'
10924 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'
10927 link_all_deplibs_CXX=yes
10930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10931 hardcode_libdir_separator_CXX=:
10934 case $cc_basename in
10936 # Kuck and Associates, Inc. (KAI) C++ Compiler
10938 # KCC will only create a shared library if the output file
10939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10940 # to its proper name (with version) after linking.
10941 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'
10942 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'
10943 # Commands to make compiler produce verbose output that lists
10944 # what "hidden" libraries, object files and flags are used when
10945 # linking a shared library.
10947 # There doesn't appear to be a way to prevent this compiler from
10948 # explicitly linking system object files so we need to strip them
10949 # from the output so that they don't get included in the library
10951 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'
10953 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10954 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10956 # Archives containing C++ object files must be created using
10957 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10958 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10963 # version 8.0 and above of icpc choke on multiply defined symbols
10964 # if we add $predep_objects and $postdep_objects, however 7.1 and
10965 # earlier do not add the objects themselves.
10966 case `$CC -V 2>&1` in
10968 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10969 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'
10971 *) # Version 8.0 or newer
10974 ia64*) tmp_idyn=' -i_dynamic';;
10976 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10977 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'
10980 archive_cmds_need_lc_CXX=no
10981 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10983 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10986 # Portland Group C++ compiler
10987 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10988 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'
10990 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10992 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'
10996 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10997 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'
10999 runpath_var=LD_RUN_PATH
11000 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11001 hardcode_libdir_separator_CXX=:
11003 # Commands to make compiler produce verbose output that lists
11004 # what "hidden" libraries, object files and flags are used when
11005 # linking a shared library.
11007 # There doesn't appear to be a way to prevent this compiler from
11008 # explicitly linking system object files so we need to strip them
11009 # from the output so that they don't get included in the library
11011 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'
11016 # FIXME: insert proper C++ library support
11020 # FIXME: insert proper C++ library support
11024 case $cc_basename in
11026 # FIXME: insert proper C++ library support
11030 # FIXME: insert proper C++ library support
11035 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11037 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11039 hardcode_libdir_flag_spec_CXX='-R$libdir'
11040 hardcode_direct_CXX=yes
11041 hardcode_shlibpath_var_CXX=no
11043 # Workaround some broken pre-1.5 toolchains
11044 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11047 # C++ shared libraries are fairly broken
11051 hardcode_direct_CXX=yes
11052 hardcode_shlibpath_var_CXX=no
11053 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11056 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11057 export_dynamic_flag_spec_CXX='${wl}-E'
11058 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11060 output_verbose_link_cmd='echo'
11063 case $cc_basename in
11065 # Kuck and Associates, Inc. (KAI) C++ Compiler
11067 # KCC will only create a shared library if the output file
11068 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11069 # to its proper name (with version) after linking.
11070 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'
11072 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11073 hardcode_libdir_separator_CXX=:
11075 # Archives containing C++ object files must be created using
11076 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11077 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11081 # Rational C++ 2.4.1
11082 # FIXME: insert proper C++ library support
11086 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11087 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'
11089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11090 hardcode_libdir_separator_CXX=:
11092 # Commands to make compiler produce verbose output that lists
11093 # what "hidden" libraries, object files and flags are used when
11094 # linking a shared library.
11096 # There doesn't appear to be a way to prevent this compiler from
11097 # explicitly linking system object files so we need to strip them
11098 # from the output so that they don't get included in the library
11100 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'
11103 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11104 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11105 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'
11107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11108 hardcode_libdir_separator_CXX=:
11110 # Commands to make compiler produce verbose output that lists
11111 # what "hidden" libraries, object files and flags are used when
11112 # linking a shared library.
11113 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11116 # FIXME: insert proper C++ library support
11123 case $cc_basename in
11125 # Kuck and Associates, Inc. (KAI) C++ Compiler
11127 # KCC will only create a shared library if the output file
11128 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11129 # to its proper name (with version) after linking.
11130 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'
11132 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11133 hardcode_libdir_separator_CXX=:
11135 # Archives containing C++ object files must be created using
11136 # the KAI C++ compiler.
11137 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11140 # Rational C++ 2.4.1
11141 # FIXME: insert proper C++ library support
11145 allow_undefined_flag_CXX=' -expect_unresolved \*'
11146 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'
11147 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11148 echo "-hidden">> $lib.exp~
11149 $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~
11152 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11153 hardcode_libdir_separator_CXX=:
11155 # Commands to make compiler produce verbose output that lists
11156 # what "hidden" libraries, object files and flags are used when
11157 # linking a shared library.
11159 # There doesn't appear to be a way to prevent this compiler from
11160 # explicitly linking system object files so we need to strip them
11161 # from the output so that they don't get included in the library
11163 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'
11166 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11168 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'
11170 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11171 hardcode_libdir_separator_CXX=:
11173 # Commands to make compiler produce verbose output that lists
11174 # what "hidden" libraries, object files and flags are used when
11175 # linking a shared library.
11176 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11179 # FIXME: insert proper C++ library support
11186 # FIXME: insert proper C++ library support
11190 case $cc_basename in
11193 # FIXME: insert proper C++ library support
11198 # FIXME: insert proper C++ library support
11202 # FIXME: insert proper C++ library support
11208 case $cc_basename in
11210 # Sun C++ 4.2, 5.x and Centerline C++
11211 archive_cmds_need_lc_CXX=yes
11212 no_undefined_flag_CXX=' -zdefs'
11213 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11214 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11215 $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'
11217 hardcode_libdir_flag_spec_CXX='-R$libdir'
11218 hardcode_shlibpath_var_CXX=no
11220 solaris2.[0-5] | solaris2.[0-5].*) ;;
11222 # The C++ compiler is used as linker so we must use $wl
11223 # flag to pass the commands to the underlying system
11224 # linker. We must also pass each convience library through
11225 # to the system linker between allextract/defaultextract.
11226 # The C++ compiler will combine linker options so we
11227 # cannot just pass the convience library names through
11229 # Supported since Solaris 2.6 (maybe 2.5.1?)
11230 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'
11233 link_all_deplibs_CXX=yes
11235 output_verbose_link_cmd='echo'
11237 # Archives containing C++ object files must be created using
11238 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11239 # necessary to make sure instantiated templates are included
11241 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11244 # Green Hills C++ Compiler
11245 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11247 # The C++ compiler must be used to create the archive.
11248 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11251 # GNU C++ compiler with Solaris linker
11252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11253 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11254 if $CC --version | grep -v '^2\.7' > /dev/null; then
11255 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11256 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11257 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11259 # Commands to make compiler produce verbose output that lists
11260 # what "hidden" libraries, object files and flags are used when
11261 # linking a shared library.
11262 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11264 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11266 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11267 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11268 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11270 # Commands to make compiler produce verbose output that lists
11271 # what "hidden" libraries, object files and flags are used when
11272 # linking a shared library.
11273 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11276 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11281 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11282 no_undefined_flag_CXX='${wl}-z,text'
11283 archive_cmds_need_lc_CXX=no
11284 hardcode_shlibpath_var_CXX=no
11285 runpath_var='LD_RUN_PATH'
11287 case $cc_basename in
11289 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11290 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11293 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 sysv5* | sco3.2v5* | sco5v6*)
11299 # Note: We can NOT use -z defs as we might desire, because we do not
11300 # link with -lc, and that would cause any symbols used from libc to
11301 # always be unresolved, which means just about no library would
11302 # ever link correctly. If we're not using GNU ld we use -z text
11303 # though, which does catch some bad symbols but isn't as heavy-handed
11305 # For security reasons, it is highly recommended that you always
11306 # use absolute paths for naming shared libraries, and exclude the
11307 # DT_RUNPATH tag from executables and libraries. But doing so
11308 # requires that you compile everything twice, which is a pain.
11309 # So that behaviour is only enabled if SCOABSPATH is set to a
11310 # non-empty value in the environment. Most likely only useful for
11311 # creating official distributions of packages.
11312 # This is a hack until libtool officially supports absolute path
11313 # names for shared libraries.
11314 no_undefined_flag_CXX='${wl}-z,text'
11315 allow_undefined_flag_CXX='${wl}-z,nodefs'
11316 archive_cmds_need_lc_CXX=no
11317 hardcode_shlibpath_var_CXX=no
11318 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11319 hardcode_libdir_separator_CXX=':'
11320 link_all_deplibs_CXX=yes
11321 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11322 runpath_var='LD_RUN_PATH'
11324 case $cc_basename in
11326 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 case $cc_basename in
11338 # NonStop-UX NCC 3.20
11339 # FIXME: insert proper C++ library support
11343 # FIXME: insert proper C++ library support
11349 # FIXME: insert proper C++ library support
11353 # FIXME: insert proper C++ library support
11357 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11358 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11359 test "$ld_shlibs_CXX" = no && can_build_shared=no
11365 cat > conftest.$ac_ext <<EOF
11369 Foo (void) { a = 0; }
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; then
11380 # Parse the compiler output and extract the necessary
11381 # objects, libraries and library flags.
11383 # Sentinel used to keep track of whether or not we are before
11384 # the conftest object file.
11385 pre_test_object_deps_done=no
11387 # The `*' in the case matches for architectures that use `case' in
11388 # $output_verbose_cmd can trigger glob expansion during the loop
11389 # eval without this substitution.
11390 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11392 for p in `eval $output_verbose_link_cmd`; do
11396 # Some compilers place space between "-{L,R}" and the path.
11397 # Remove the space.
11398 if test $p = "-L" \
11399 || test $p = "-R"; then
11406 if test "$pre_test_object_deps_done" = no; then
11409 # Internal compiler library paths should come after those
11410 # provided the user. The postdeps already come after the
11411 # user supplied libs so there is no need to process them.
11412 if test -z "$compiler_lib_search_path_CXX"; then
11413 compiler_lib_search_path_CXX="${prev}${p}"
11415 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11418 # The "-l" case would never come before the object being
11419 # linked, so don't bother handling this case.
11422 if test -z "$postdeps_CXX"; then
11423 postdeps_CXX="${prev}${p}"
11425 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11431 # This assumes that the test object file only shows up
11432 # once in the compiler output.
11433 if test "$p" = "conftest.$objext"; then
11434 pre_test_object_deps_done=yes
11438 if test "$pre_test_object_deps_done" = no; then
11439 if test -z "$predep_objects_CXX"; then
11440 predep_objects_CXX="$p"
11442 predep_objects_CXX="$predep_objects_CXX $p"
11445 if test -z "$postdep_objects_CXX"; then
11446 postdep_objects_CXX="$p"
11448 postdep_objects_CXX="$postdep_objects_CXX $p"
11453 *) ;; # Ignore the rest.
11461 echo "libtool.m4: error: problem compiling CXX test program"
11464 $rm -f confest.$objext
11466 # PORTME: override above test on systems where it is broken
11469 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11470 # hack all around it, let's just trust "g++" to DTRT.
11471 predep_objects_CXX=
11472 postdep_objects_CXX=
11477 case $cc_basename in
11479 # Adding this requires a known-good setup of shared libraries for
11480 # Sun compiler versions before 5.6, else PIC objects from an old
11481 # archive will be linked into the output, leading to subtle bugs.
11482 postdeps_CXX='-lCstd -lCrun'
11489 case " $postdeps_CXX " in
11490 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11493 lt_prog_compiler_wl_CXX=
11494 lt_prog_compiler_pic_CXX=
11495 lt_prog_compiler_static_CXX=
11497 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11500 # C++ specific cases for pic, static, wl, etc.
11501 if test "$GXX" = yes; then
11502 lt_prog_compiler_wl_CXX='-Wl,'
11503 lt_prog_compiler_static_CXX='-static'
11507 # All AIX code is PIC.
11508 if test "$host_cpu" = ia64; then
11509 # AIX 5 now supports IA64 processor
11510 lt_prog_compiler_static_CXX='-Bstatic'
11514 # FIXME: we need at least 68020 code to build shared libraries, but
11515 # adding the `-m68020' flag to GCC prevents building anything better,
11517 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11519 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11520 # PIC is the default for these OSes.
11522 mingw* | os2* | pw32*)
11523 # This hack is so that the source file can tell whether it is being
11524 # built for inclusion in a dll (and should export symbols for example).
11525 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11527 darwin* | rhapsody*)
11528 # PIC is the default on this platform
11529 # Common symbols not allowed in MH_DYLIB files
11530 lt_prog_compiler_pic_CXX='-fno-common'
11533 # DJGPP does not support shared libraries at all
11534 lt_prog_compiler_pic_CXX=
11537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11538 # Instead, we relocate shared libraries at runtime.
11541 if test -d /usr/nec; then
11542 lt_prog_compiler_pic_CXX=-Kconform_pic
11546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11547 # not for PA HP-UX.
11552 lt_prog_compiler_pic_CXX='-fPIC'
11557 lt_prog_compiler_pic_CXX='-fPIC'
11563 # All AIX code is PIC.
11564 if test "$host_cpu" = ia64; then
11565 # AIX 5 now supports IA64 processor
11566 lt_prog_compiler_static_CXX='-Bstatic'
11568 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11572 case $cc_basename in
11574 # Green Hills C++ Compiler
11575 # _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"
11580 # PIC is the default on this platform
11581 # Common symbols not allowed in MH_DYLIB files
11582 case $cc_basename in
11584 lt_prog_compiler_pic_CXX='-qnocommon'
11585 lt_prog_compiler_wl_CXX='-Wl,'
11590 case $cc_basename in
11592 lt_prog_compiler_pic_CXX='-KPIC'
11595 # Green Hills C++ Compiler
11596 lt_prog_compiler_pic_CXX='-pic'
11602 freebsd* | kfreebsd*-gnu | dragonfly*)
11603 # FreeBSD uses GNU C++
11605 hpux9* | hpux10* | hpux11*)
11606 case $cc_basename in
11608 lt_prog_compiler_wl_CXX='-Wl,'
11609 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11610 if test "$host_cpu" != ia64; then
11611 lt_prog_compiler_pic_CXX='+Z'
11615 lt_prog_compiler_wl_CXX='-Wl,'
11616 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11622 lt_prog_compiler_pic_CXX='+Z'
11631 # This is c89, which is MS Visual C++ (no shared libs)
11632 # Anyone wants to do a port?
11634 irix5* | irix6* | nonstopux*)
11635 case $cc_basename in
11637 lt_prog_compiler_wl_CXX='-Wl,'
11638 lt_prog_compiler_static_CXX='-non_shared'
11639 # CC pic flag -KPIC is the default.
11646 case $cc_basename in
11649 lt_prog_compiler_wl_CXX='--backend -Wl,'
11650 lt_prog_compiler_pic_CXX='-fPIC'
11654 lt_prog_compiler_wl_CXX='-Wl,'
11655 lt_prog_compiler_pic_CXX='-KPIC'
11656 lt_prog_compiler_static_CXX='-static'
11659 # Portland Group C++ compiler.
11660 lt_prog_compiler_wl_CXX='-Wl,'
11661 lt_prog_compiler_pic_CXX='-fpic'
11662 lt_prog_compiler_static_CXX='-Bstatic'
11666 # Make sure the PIC flag is empty. It appears that all Alpha
11667 # Linux and Compaq Tru64 Unix objects are PIC.
11668 lt_prog_compiler_pic_CXX=
11669 lt_prog_compiler_static_CXX='-non_shared'
11680 case $cc_basename in
11682 lt_prog_compiler_pic_CXX='-W c,exportall'
11688 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11690 osf3* | osf4* | osf5*)
11691 case $cc_basename in
11693 lt_prog_compiler_wl_CXX='--backend -Wl,'
11696 # Rational C++ 2.4.1
11697 lt_prog_compiler_pic_CXX='-pic'
11700 # Digital/Compaq C++
11701 lt_prog_compiler_wl_CXX='-Wl,'
11702 # Make sure the PIC flag is empty. It appears that all Alpha
11703 # Linux and Compaq Tru64 Unix objects are PIC.
11704 lt_prog_compiler_pic_CXX=
11705 lt_prog_compiler_static_CXX='-non_shared'
11714 case $cc_basename in
11716 # Sun C++ 4.2, 5.x and Centerline C++
11717 lt_prog_compiler_pic_CXX='-KPIC'
11718 lt_prog_compiler_static_CXX='-Bstatic'
11719 lt_prog_compiler_wl_CXX='-Qoption ld '
11722 # Green Hills C++ Compiler
11723 lt_prog_compiler_pic_CXX='-PIC'
11730 case $cc_basename in
11733 lt_prog_compiler_pic_CXX='-pic'
11734 lt_prog_compiler_static_CXX='-Bstatic'
11738 lt_prog_compiler_pic_CXX='-pic'
11745 case $cc_basename in
11747 # NonStop-UX NCC 3.20
11748 lt_prog_compiler_pic_CXX='-KPIC'
11754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11755 case $cc_basename in
11757 lt_prog_compiler_wl_CXX='-Wl,'
11758 lt_prog_compiler_pic_CXX='-KPIC'
11759 lt_prog_compiler_static_CXX='-Bstatic'
11766 lt_prog_compiler_can_build_shared_CXX=no
11771 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11772 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11775 # Check to make sure the PIC flag actually works.
11777 if test -n "$lt_prog_compiler_pic_CXX"; then
11779 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11780 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11781 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 lt_prog_compiler_pic_works_CXX=no
11785 ac_outfile=conftest.$ac_objext
11786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11787 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11788 # Insert the option either (1) after the last *FLAGS variable, or
11789 # (2) before a word containing "conftest.", or (3) at the end.
11790 # Note that $ac_compile itself does not contain backslashes and begins
11791 # with a dollar sign (not a hyphen), so the echo should work correctly.
11792 # The option is referenced via a variable to avoid confusing sed.
11793 lt_compile=`echo "$ac_compile" | $SED \
11794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11796 -e 's:$: $lt_compiler_flag:'`
11797 (eval echo "\"\$as_me:11797: $lt_compile\"" >&5)
11798 (eval "$lt_compile" 2>conftest.err)
11800 cat conftest.err >&5
11801 echo "$as_me:11801: \$? = $ac_status" >&5
11802 if (exit $ac_status) && test -s "$ac_outfile"; then
11803 # The compiler can only warn and ignore the option if not recognized
11804 # So say no if there are warnings other than the usual output.
11805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11808 lt_prog_compiler_pic_works_CXX=yes
11814 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11815 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11817 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11818 case $lt_prog_compiler_pic_CXX in
11820 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11823 lt_prog_compiler_pic_CXX=
11824 lt_prog_compiler_can_build_shared_CXX=no
11829 # For platforms which do not support PIC, -DPIC is meaningless:
11831 lt_prog_compiler_pic_CXX=
11834 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11839 # Check to make sure the static flag actually works.
11841 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11842 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11843 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11844 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 lt_prog_compiler_static_works_CXX=no
11848 save_LDFLAGS="$LDFLAGS"
11849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11850 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11852 # The linker can only warn and ignore the option if not recognized
11853 # So say no if there are warnings
11854 if test -s conftest.err; then
11855 # Append any errors to the config.log.
11856 cat conftest.err 1>&5
11857 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11859 if diff conftest.exp conftest.er2 >/dev/null; then
11860 lt_prog_compiler_static_works_CXX=yes
11863 lt_prog_compiler_static_works_CXX=yes
11867 LDFLAGS="$save_LDFLAGS"
11870 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11871 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11873 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11876 lt_prog_compiler_static_CXX=
11880 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11882 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 lt_cv_prog_compiler_c_o_CXX=no
11886 $rm -r conftest 2>/dev/null
11890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11892 lt_compiler_flag="-o out/conftest2.$ac_objext"
11893 # Insert the option either (1) after the last *FLAGS variable, or
11894 # (2) before a word containing "conftest.", or (3) at the end.
11895 # Note that $ac_compile itself does not contain backslashes and begins
11896 # with a dollar sign (not a hyphen), so the echo should work correctly.
11897 lt_compile=`echo "$ac_compile" | $SED \
11898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11900 -e 's:$: $lt_compiler_flag:'`
11901 (eval echo "\"\$as_me:11901: $lt_compile\"" >&5)
11902 (eval "$lt_compile" 2>out/conftest.err)
11904 cat out/conftest.err >&5
11905 echo "$as_me:11905: \$? = $ac_status" >&5
11906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11908 # The compiler can only warn and ignore the option if not recognized
11909 # So say no if there are warnings
11910 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11913 lt_cv_prog_compiler_c_o_CXX=yes
11918 # SGI C++ compiler will create directory out/ii_files/ for
11919 # template instantiation
11920 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11921 $rm out/* && rmdir out
11927 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11928 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11931 hard_links="nottested"
11932 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11933 # do not overwrite the value of need_locks provided by the user
11934 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11935 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11940 ln conftest.a conftest.b 2>&5 || hard_links=no
11941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11942 echo "$as_me:$LINENO: result: $hard_links" >&5
11943 echo "${ECHO_T}$hard_links" >&6
11944 if test "$hard_links" = no; then
11945 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11946 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11953 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11954 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11956 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11959 # If we're using GNU nm, then we don't want the "-C" option.
11960 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11961 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11962 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'
11964 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'
11968 export_symbols_cmds_CXX="$ltdll_cmds"
11971 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'
11974 link_all_deplibs_CXX=no
11977 link_all_deplibs_CXX=no
11980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11984 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11985 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11986 test "$ld_shlibs_CXX" = no && can_build_shared=no
11989 # Do we need to explicitly link libc?
11991 case "x$archive_cmds_need_lc_CXX" in
11993 # Assume -lc should be added
11994 archive_cmds_need_lc_CXX=yes
11996 if test "$enable_shared" = yes && test "$GCC" = yes; then
11997 case $archive_cmds_CXX in
11999 # FIXME: we may have to deal with multi-command sequences.
12002 # Test whether the compiler implicitly links with -lc since on some
12003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12004 # to ld, don't add -lc before -lgcc.
12005 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12006 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12011 (eval $ac_compile) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } 2>conftest.err; then
12017 libobjs=conftest.$ac_objext
12019 wl=$lt_prog_compiler_wl_CXX
12020 pic_flag=$lt_prog_compiler_pic_CXX
12026 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12027 allow_undefined_flag_CXX=
12028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12029 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }
12034 archive_cmds_need_lc_CXX=no
12036 archive_cmds_need_lc_CXX=yes
12038 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12040 cat conftest.err 1>&5
12043 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12044 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12051 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12052 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12053 library_names_spec=
12054 libname_spec='lib$name'
12058 postuninstall_cmds=
12062 shlibpath_overrides_runpath=unknown
12064 dynamic_linker="$host_os ld.so"
12065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12066 if test "$GCC" = yes; then
12067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12069 # if the path contains ";" then we assume it to be the separator
12070 # otherwise default to the standard path separator (i.e. ":") - it is
12071 # assumed that no part of a normal pathname contains ";" but that should
12072 # okay in the real world where ";" in dirpaths is itself problematic.
12073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12080 need_lib_prefix=unknown
12081 hardcode_into_libs=no
12083 # when you set need_version to no, make sure it does not cause -set_version
12084 # flags to be left without arguments
12085 need_version=unknown
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12091 shlibpath_var=LIBPATH
12093 # AIX 3 has no versioning support, so we append a major version to the name.
12094 soname_spec='${libname}${release}${shared_ext}$major'
12101 hardcode_into_libs=yes
12102 if test "$host_cpu" = ia64; then
12103 # AIX 5 supports IA64
12104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12105 shlibpath_var=LD_LIBRARY_PATH
12107 # With GCC up to 2.95.x, collect2 would create an import file
12108 # for dependence libraries. The import file would start with
12109 # the line `#! .'. This would cause the generated library to
12110 # depend on `.', always an invalid library. This was fixed in
12111 # development snapshots of GCC prior to 3.0.
12113 aix4 | aix4.[01] | aix4.[01].*)
12114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12119 can_build_shared=no
12123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12124 # soname into executable. Probably we can add versioning support to
12125 # collect2, so additional links can be useful in future.
12126 if test "$aix_use_runtimelinking" = yes; then
12127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12128 # instead of lib<name>.a to let people know that these are not
12129 # typical AIX shared libraries.
12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132 # We preserve .a as extension for shared libraries through AIX4.2
12133 # and later when we are not doing run time linking.
12134 library_names_spec='${libname}${release}.a $libname.a'
12135 soname_spec='${libname}${release}${shared_ext}$major'
12137 shlibpath_var=LIBPATH
12142 library_names_spec='$libname.ixlibrary $libname.a'
12143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12144 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'
12148 library_names_spec='${libname}${shared_ext}'
12149 dynamic_linker="$host_os ld.so"
12150 shlibpath_var=LIBRARY_PATH
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 soname_spec='${libname}${release}${shared_ext}$major'
12158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12162 # the default ld.so.conf also contains /usr/contrib/lib and
12163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12164 # libtool to hard-code these into programs
12167 cygwin* | mingw* | pw32*)
12168 version_type=windows
12173 case $GCC,$host_os in
12174 yes,cygwin* | yes,mingw* | yes,pw32*)
12175 library_names_spec='$libname.dll.a'
12176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12177 postinstall_cmds='base_file=`basename \${file}`~
12178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12179 dldir=$destdir/`dirname \$dlpath`~
12180 test -d \$dldir || mkdir -p \$dldir~
12181 $install_prog $dir/$dlname \$dldir/$dlname~
12182 chmod a+x \$dldir/$dlname'
12183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12184 dlpath=$dir/\$dldll~
12186 shlibpath_overrides_runpath=yes
12190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12192 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12195 # MinGW DLLs use traditional 'lib' prefix
12196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12198 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12199 # It is most probably a Windows format PATH printed by
12200 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12201 # path with ; separators, and with drive letters. We can handle the
12202 # drive letters (cygwin fileutils understands them), so leave them,
12203 # especially as we might pass files found there to a mingw objdump,
12204 # which wouldn't understand a cygwinified path. Ahh.
12205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12211 # pw32 DLLs use 'pw' prefix rather than 'lib'
12212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12221 dynamic_linker='Win32 ld.exe'
12222 # FIXME: first we should search . and the directory the executable is in
12226 darwin* | rhapsody*)
12227 dynamic_linker="$host_os dyld"
12228 version_type=darwin
12231 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12232 soname_spec='${libname}${release}${major}$shared_ext'
12233 shlibpath_overrides_runpath=yes
12234 shlibpath_var=DYLD_LIBRARY_PATH
12235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12236 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12237 if test "$GCC" = yes; then
12238 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"`
12240 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12250 soname_spec='${libname}${release}${shared_ext}$major'
12251 shlibpath_var=LD_LIBRARY_PATH
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 shlibpath_overrides_runpath=no
12266 hardcode_into_libs=yes
12267 dynamic_linker='GNU ld.so'
12270 freebsd* | dragonfly*)
12271 # DragonFly does not have aout. When/if they implement a new
12272 # versioning mechanism, adjust this.
12273 if test -x /usr/bin/objformat; then
12274 objformat=`/usr/bin/objformat`
12277 freebsd[123]*) objformat=aout ;;
12278 *) objformat=elf ;;
12281 version_type=freebsd-$objformat
12282 case $version_type in
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12293 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes
12298 freebsd3.[01]* | freebsdelf3.[01]*)
12299 shlibpath_overrides_runpath=yes
12300 hardcode_into_libs=yes
12302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12304 shlibpath_overrides_runpath=no
12305 hardcode_into_libs=yes
12307 freebsd*) # from 4.6 on
12308 shlibpath_overrides_runpath=yes
12309 hardcode_into_libs=yes
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12319 soname_spec='${libname}${release}${shared_ext}$major'
12320 shlibpath_var=LD_LIBRARY_PATH
12321 hardcode_into_libs=yes
12324 hpux9* | hpux10* | hpux11*)
12325 # Give a soname corresponding to the major version so that dld.sl refuses to
12326 # link against other versions.
12333 hardcode_into_libs=yes
12334 dynamic_linker="$host_os dld.so"
12335 shlibpath_var=LD_LIBRARY_PATH
12336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338 soname_spec='${libname}${release}${shared_ext}$major'
12339 if test "X$HPUX_IA64_MODE" = X32; then
12340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12348 hardcode_into_libs=yes
12349 dynamic_linker="$host_os dld.sl"
12350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353 soname_spec='${libname}${release}${shared_ext}$major'
12354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12359 dynamic_linker="$host_os dld.sl"
12360 shlibpath_var=SHLIB_PATH
12361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363 soname_spec='${libname}${release}${shared_ext}$major'
12366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12367 postinstall_cmds='chmod 555 $lib'
12374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12375 soname_spec='${libname}${release}${shared_ext}$major'
12376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=no
12379 hardcode_into_libs=yes
12382 irix5* | irix6* | nonstopux*)
12384 nonstopux*) version_type=nonstopux ;;
12386 if test "$lt_cv_prog_gnu_ld" = yes; then
12394 soname_spec='${libname}${release}${shared_ext}$major'
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12397 irix5* | nonstopux*)
12398 libsuff= shlibsuff=
12401 case $LD in # libtool.m4 will add one of these switches to LD
12402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12403 libsuff= shlibsuff= libmagic=32-bit;;
12404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12405 libsuff=32 shlibsuff=N32 libmagic=N32;;
12406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12408 *) libsuff= shlibsuff= libmagic=never-match;;
12412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12413 shlibpath_overrides_runpath=no
12414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12416 hardcode_into_libs=yes
12419 # No shared lib support for Linux oldld, aout, or coff.
12420 linux*oldld* | linux*aout* | linux*coff*)
12424 # This must be Linux ELF.
12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12430 soname_spec='${libname}${release}${shared_ext}$major'
12431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=no
12434 # This implies no fast_install, which is unacceptable.
12435 # Some rework will be needed to allow for fast_install
12436 # before this can be enabled.
12437 hardcode_into_libs=yes
12439 # Append ld.so.conf contents to the search path
12440 if test -f /etc/ld.so.conf; then
12441 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' ' '`
12442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12445 # We used to test for /lib/ld.so.1 and disable shared libraries on
12446 # powerpc, because MkLinux only supported shared libraries with the
12447 # GNU dynamic linker. Since this was broken with cross compilers,
12448 # most powerpc-linux boxes support dynamic linking these days and
12449 # people can always --disable-shared, the test was removed, and we
12450 # assume the GNU/Linux dynamic linker is in use.
12451 dynamic_linker='GNU/Linux ld.so'
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=no
12462 hardcode_into_libs=yes
12463 dynamic_linker='NetBSD ld.elf_so'
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12471 soname_spec='${libname}${release}${shared_ext}$major'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath=no
12474 hardcode_into_libs=yes
12475 dynamic_linker='GNU ld.so'
12482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12485 dynamic_linker='NetBSD (a.out) ld.so'
12487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12488 soname_spec='${libname}${release}${shared_ext}$major'
12489 dynamic_linker='NetBSD ld.elf_so'
12491 shlibpath_var=LD_LIBRARY_PATH
12492 shlibpath_overrides_runpath=yes
12493 hardcode_into_libs=yes
12498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 shlibpath_overrides_runpath=yes
12507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508 soname_spec='${libname}${release}${shared_ext}$major'
12509 shlibpath_var=LD_LIBRARY_PATH
12510 shlibpath_overrides_runpath=yes
12515 sys_lib_dlsearch_path_spec="/usr/lib"
12517 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12519 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12520 *) need_version=no ;;
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12524 shlibpath_var=LD_LIBRARY_PATH
12525 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12527 openbsd2.[89] | openbsd2.[89].*)
12528 shlibpath_overrides_runpath=no
12531 shlibpath_overrides_runpath=yes
12535 shlibpath_overrides_runpath=yes
12540 libname_spec='$name'
12543 library_names_spec='$libname${shared_ext} $libname.a'
12544 dynamic_linker='OS/2 ld.exe'
12545 shlibpath_var=LIBPATH
12548 osf3* | osf4* | osf5*)
12552 soname_spec='${libname}${release}${shared_ext}$major'
12553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12556 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564 soname_spec='${libname}${release}${shared_ext}$major'
12565 shlibpath_var=LD_LIBRARY_PATH
12566 shlibpath_overrides_runpath=yes
12567 hardcode_into_libs=yes
12568 # ldd complains unless libraries are executable
12569 postinstall_cmds='chmod +x $lib'
12574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12575 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 shlibpath_overrides_runpath=yes
12578 if test "$with_gnu_ld" = yes; then
12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587 soname_spec='${libname}${release}${shared_ext}$major'
12588 shlibpath_var=LD_LIBRARY_PATH
12589 case $host_vendor in
12591 shlibpath_overrides_runpath=no
12593 export_dynamic_flag_spec='${wl}-Blargedynsym'
12594 runpath_var=LD_RUN_PATH
12602 shlibpath_overrides_runpath=no
12603 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12609 if test -d /usr/nec ;then
12611 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12612 soname_spec='$libname${shared_ext}.$major'
12613 shlibpath_var=LD_LIBRARY_PATH
12617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12618 version_type=freebsd-elf
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 shlibpath_var=LD_LIBRARY_PATH
12624 hardcode_into_libs=yes
12625 if test "$with_gnu_ld" = yes; then
12626 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12627 shlibpath_overrides_runpath=no
12629 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12630 shlibpath_overrides_runpath=yes
12633 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12637 sys_lib_dlsearch_path_spec='/usr/lib'
12642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643 soname_spec='${libname}${release}${shared_ext}$major'
12644 shlibpath_var=LD_LIBRARY_PATH
12651 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12652 echo "${ECHO_T}$dynamic_linker" >&6
12653 test "$dynamic_linker" = no && can_build_shared=no
12655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12656 if test "$GCC" = yes; then
12657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12660 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12661 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12662 hardcode_action_CXX=
12663 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12664 test -n "$runpath_var_CXX" || \
12665 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12667 # We can hardcode non-existant directories.
12668 if test "$hardcode_direct_CXX" != no &&
12669 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12670 # have to relink, otherwise we might link with an installed library
12671 # when we should be linking with a yet-to-be-installed one
12672 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12673 test "$hardcode_minus_L_CXX" != no; then
12674 # Linking always hardcodes the temporary library directory.
12675 hardcode_action_CXX=relink
12677 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12678 hardcode_action_CXX=immediate
12681 # We cannot hardcode anything, or else we can only hardcode existing
12683 hardcode_action_CXX=unsupported
12685 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12686 echo "${ECHO_T}$hardcode_action_CXX" >&6
12688 if test "$hardcode_action_CXX" = relink; then
12689 # Fast installation is not supported
12690 enable_fast_install=no
12691 elif test "$shlibpath_overrides_runpath" = yes ||
12692 test "$enable_shared" = no; then
12693 # Fast installation is not necessary
12694 enable_fast_install=needless
12698 # The else clause should only fire when bootstrapping the
12699 # libtool distribution, otherwise you forgot to ship ltmain.sh
12700 # with your package, and you will get complaints that there are
12701 # no rules to generate ltmain.sh.
12702 if test -f "$ltmain"; then
12703 # See if we are running on zsh, and set the options which allow our commands through
12704 # without removal of \ escapes.
12705 if test -n "${ZSH_VERSION+set}" ; then
12706 setopt NO_GLOB_SUBST
12708 # Now quote all the things that may contain metacharacters while being
12709 # careful not to overquote the AC_SUBSTed values. We take copies of the
12710 # variables and quote the copies for generation of the libtool script.
12711 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12715 deplibs_check_method reload_flag reload_cmds need_locks \
12716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12717 lt_cv_sys_global_symbol_to_c_name_address \
12718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12719 old_postinstall_cmds old_postuninstall_cmds \
12723 lt_prog_compiler_wl_CXX \
12724 lt_prog_compiler_pic_CXX \
12725 lt_prog_compiler_static_CXX \
12726 lt_prog_compiler_no_builtin_flag_CXX \
12727 export_dynamic_flag_spec_CXX \
12728 thread_safe_flag_spec_CXX \
12729 whole_archive_flag_spec_CXX \
12730 enable_shared_with_static_runtimes_CXX \
12731 old_archive_cmds_CXX \
12732 old_archive_from_new_cmds_CXX \
12733 predep_objects_CXX \
12734 postdep_objects_CXX \
12737 compiler_lib_search_path_CXX \
12739 archive_expsym_cmds_CXX \
12740 postinstall_cmds_CXX \
12741 postuninstall_cmds_CXX \
12742 old_archive_from_expsyms_cmds_CXX \
12743 allow_undefined_flag_CXX \
12744 no_undefined_flag_CXX \
12745 export_symbols_cmds_CXX \
12746 hardcode_libdir_flag_spec_CXX \
12747 hardcode_libdir_flag_spec_ld_CXX \
12748 hardcode_libdir_separator_CXX \
12749 hardcode_automatic_CXX \
12751 module_expsym_cmds_CXX \
12752 lt_cv_prog_compiler_c_o_CXX \
12753 exclude_expsyms_CXX \
12754 include_expsyms_CXX; do
12757 old_archive_cmds_CXX | \
12758 old_archive_from_new_cmds_CXX | \
12759 archive_cmds_CXX | \
12760 archive_expsym_cmds_CXX | \
12761 module_cmds_CXX | \
12762 module_expsym_cmds_CXX | \
12763 old_archive_from_expsyms_cmds_CXX | \
12764 export_symbols_cmds_CXX | \
12765 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12766 postinstall_cmds | postuninstall_cmds | \
12767 old_postinstall_cmds | old_postuninstall_cmds | \
12768 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12769 # Double-quote double-evaled strings.
12770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12779 *'\$0 --fallback-echo"')
12780 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12786 cat <<__EOF__ >> "$cfgfile"
12787 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12789 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12791 # Shell to use when invoking shell scripts.
12794 # Whether or not to build shared libraries.
12795 build_libtool_libs=$enable_shared
12797 # Whether or not to build static libraries.
12798 build_old_libs=$enable_static
12800 # Whether or not to add -lc for building shared libraries.
12801 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12803 # Whether or not to disallow shared libs when runtime libs are static
12804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12806 # Whether or not to optimize for fast installation.
12807 fast_install=$enable_fast_install
12810 host_alias=$host_alias
12814 # The build system.
12815 build_alias=$build_alias
12819 # An echo program that does not interpret backslashes.
12824 AR_FLAGS=$lt_AR_FLAGS
12829 # LTCC compiler flags.
12830 LTCFLAGS=$lt_LTCFLAGS
12832 # A language-specific compiler.
12833 CC=$lt_compiler_CXX
12835 # Is the compiler the GNU C compiler?
12841 # The linker used to build libraries.
12844 # Whether we need hard or soft links.
12847 # A BSD-compatible nm program.
12850 # A symbol stripping program
12853 # Used to examine libraries when file_magic_cmd begins "file"
12854 MAGIC_CMD=$MAGIC_CMD
12856 # Used on cygwin: DLL creation program.
12859 # Used on cygwin: object dumper.
12862 # Used on cygwin: assembler.
12865 # The name of the directory that contains temporary libtool files.
12868 # How to create reloadable object files.
12869 reload_flag=$lt_reload_flag
12870 reload_cmds=$lt_reload_cmds
12872 # How to pass a linker flag through the compiler.
12873 wl=$lt_lt_prog_compiler_wl_CXX
12875 # Object file suffix (normally "o").
12876 objext="$ac_objext"
12878 # Old archive suffix (normally "a").
12881 # Shared library suffix (normally ".so").
12882 shrext_cmds='$shrext_cmds'
12884 # Executable file suffix (normally "").
12887 # Additional compiler flags for building library objects.
12888 pic_flag=$lt_lt_prog_compiler_pic_CXX
12891 # What is the maximum length of a command?
12892 max_cmd_len=$lt_cv_sys_max_cmd_len
12894 # Does compiler simultaneously support -c and -o options?
12895 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12897 # Must we lock files when doing compilation?
12898 need_locks=$lt_need_locks
12900 # Do we need the lib prefix for modules?
12901 need_lib_prefix=$need_lib_prefix
12903 # Do we need a version for libraries?
12904 need_version=$need_version
12906 # Whether dlopen is supported.
12907 dlopen_support=$enable_dlopen
12909 # Whether dlopen of programs is supported.
12910 dlopen_self=$enable_dlopen_self
12912 # Whether dlopen of statically linked programs is supported.
12913 dlopen_self_static=$enable_dlopen_self_static
12915 # Compiler flag to prevent dynamic linking.
12916 link_static_flag=$lt_lt_prog_compiler_static_CXX
12918 # Compiler flag to turn off builtin functions.
12919 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12921 # Compiler flag to allow reflexive dlopens.
12922 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12924 # Compiler flag to generate shared objects directly from archives.
12925 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12927 # Compiler flag to generate thread-safe objects.
12928 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12930 # Library versioning type.
12931 version_type=$version_type
12933 # Format of library name prefix.
12934 libname_spec=$lt_libname_spec
12936 # List of archive names. First name is the real one, the rest are links.
12937 # The last name is the one that the linker finds with -lNAME.
12938 library_names_spec=$lt_library_names_spec
12940 # The coded name of the library, if different from the real name.
12941 soname_spec=$lt_soname_spec
12943 # Commands used to build and install an old-style archive.
12945 old_archive_cmds=$lt_old_archive_cmds_CXX
12946 old_postinstall_cmds=$lt_old_postinstall_cmds
12947 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12949 # Create an old-style archive from a shared archive.
12950 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12952 # Create a temporary old-style archive to link instead of a shared archive.
12953 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12955 # Commands used to build and install a shared archive.
12956 archive_cmds=$lt_archive_cmds_CXX
12957 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12958 postinstall_cmds=$lt_postinstall_cmds
12959 postuninstall_cmds=$lt_postuninstall_cmds
12961 # Commands used to build a loadable module (assumed same as above if empty)
12962 module_cmds=$lt_module_cmds_CXX
12963 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12965 # Commands to strip libraries.
12966 old_striplib=$lt_old_striplib
12967 striplib=$lt_striplib
12969 # Dependencies to place before the objects being linked to create a
12971 predep_objects=$lt_predep_objects_CXX
12973 # Dependencies to place after the objects being linked to create a
12975 postdep_objects=$lt_postdep_objects_CXX
12977 # Dependencies to place before the objects being linked to create a
12979 predeps=$lt_predeps_CXX
12981 # Dependencies to place after the objects being linked to create a
12983 postdeps=$lt_postdeps_CXX
12985 # The library search path used internally by the compiler when linking
12986 # a shared library.
12987 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12989 # Method to check whether dependent libraries are shared objects.
12990 deplibs_check_method=$lt_deplibs_check_method
12992 # Command to use when deplibs_check_method == file_magic.
12993 file_magic_cmd=$lt_file_magic_cmd
12995 # Flag that allows shared libraries with undefined symbols to be built.
12996 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12998 # Flag that forces no undefined symbols.
12999 no_undefined_flag=$lt_no_undefined_flag_CXX
13001 # Commands used to finish a libtool library installation in a directory.
13002 finish_cmds=$lt_finish_cmds
13004 # Same as above, but a single script fragment to be evaled but not shown.
13005 finish_eval=$lt_finish_eval
13007 # Take the output of nm and produce a listing of raw symbols and C names.
13008 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13010 # Transform the output of nm in a proper C declaration
13011 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13013 # Transform the output of nm in a C name address pair
13014 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13016 # This is the shared library runtime path variable.
13017 runpath_var=$runpath_var
13019 # This is the shared library path variable.
13020 shlibpath_var=$shlibpath_var
13022 # Is shlibpath searched before the hard-coded library search path?
13023 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13025 # How to hardcode a shared library path into an executable.
13026 hardcode_action=$hardcode_action_CXX
13028 # Whether we should hardcode library paths into libraries.
13029 hardcode_into_libs=$hardcode_into_libs
13031 # Flag to hardcode \$libdir into a binary during linking.
13032 # This must work even if \$libdir does not exist.
13033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13035 # If ld is used when linking, flag to hardcode \$libdir into
13036 # a binary during linking. This must work even if \$libdir does
13038 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13040 # Whether we need a single -rpath flag with a separated argument.
13041 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13043 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13044 # resulting binary.
13045 hardcode_direct=$hardcode_direct_CXX
13047 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13048 # resulting binary.
13049 hardcode_minus_L=$hardcode_minus_L_CXX
13051 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13052 # the resulting binary.
13053 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13055 # Set to yes if building a shared library automatically hardcodes DIR into the library
13056 # and all subsequent libraries and executables linked against it.
13057 hardcode_automatic=$hardcode_automatic_CXX
13059 # Variables whose values should be saved in libtool wrapper scripts and
13060 # restored at relink time.
13061 variables_saved_for_relink="$variables_saved_for_relink"
13063 # Whether libtool must link a program against all its dependency libraries.
13064 link_all_deplibs=$link_all_deplibs_CXX
13066 # Compile-time system search path for libraries
13067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13069 # Run-time system search path for libraries
13070 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13072 # Fix the shell variable \$srcfile for the compiler.
13073 fix_srcfile_path="$fix_srcfile_path_CXX"
13075 # Set to yes if exported symbols are required.
13076 always_export_symbols=$always_export_symbols_CXX
13078 # The commands to list exported symbols.
13079 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13081 # The commands to extract the exported symbol list from a shared archive.
13082 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13084 # Symbols that should not be listed in the preloaded symbols.
13085 exclude_expsyms=$lt_exclude_expsyms_CXX
13087 # Symbols that must always be exported.
13088 include_expsyms=$lt_include_expsyms_CXX
13090 # ### END LIBTOOL TAG CONFIG: $tagname
13096 # If there is no Makefile yet, we rely on a make rule to execute
13097 # `config.status --recheck' to rerun these tests and create the
13098 # libtool script then.
13099 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13100 if test -f "$ltmain_in"; then
13101 test -f Makefile && make "$ltmain"
13107 ac_cpp='$CPP $CPPFLAGS'
13108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13116 with_gnu_ldcxx=$with_gnu_ld
13117 with_gnu_ld=$lt_save_with_gnu_ld
13118 lt_cv_path_LDCXX=$lt_cv_path_LD
13119 lt_cv_path_LD=$lt_save_path_LD
13120 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13121 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13129 if test -n "$F77" && test "X$F77" != "Xno"; then
13132 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13133 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13137 archive_cmds_need_lc_F77=no
13138 allow_undefined_flag_F77=
13139 always_export_symbols_F77=no
13140 archive_expsym_cmds_F77=
13141 export_dynamic_flag_spec_F77=
13142 hardcode_direct_F77=no
13143 hardcode_libdir_flag_spec_F77=
13144 hardcode_libdir_flag_spec_ld_F77=
13145 hardcode_libdir_separator_F77=
13146 hardcode_minus_L_F77=no
13147 hardcode_automatic_F77=no
13149 module_expsym_cmds_F77=
13150 link_all_deplibs_F77=unknown
13151 old_archive_cmds_F77=$old_archive_cmds
13152 no_undefined_flag_F77=
13153 whole_archive_flag_spec_F77=
13154 enable_shared_with_static_runtimes_F77=no
13156 # Source file extension for f77 test sources.
13159 # Object file extension for compiled f77 test sources.
13163 # Code to be used in simple compile tests
13164 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13166 # Code to be used in simple link tests
13167 lt_simple_link_test_code=" program t\n end\n"
13169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13171 # If no C compiler was specified, use CC.
13174 # If no C compiler flags were specified, use CFLAGS.
13175 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13177 # Allow CC to be a program name with arguments.
13181 # save warnings/boilerplate of simple test code
13182 ac_outfile=conftest.$ac_objext
13183 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13184 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13185 _lt_compiler_boilerplate=`cat conftest.err`
13188 ac_outfile=conftest.$ac_objext
13189 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13191 _lt_linker_boilerplate=`cat conftest.err`
13195 # Allow CC to be a program name with arguments.
13200 for cc_temp in $compiler""; do
13202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13208 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13211 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13213 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13214 echo "${ECHO_T}$can_build_shared" >&6
13216 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13218 test "$can_build_shared" = "no" && enable_shared=no
13220 # On AIX, shared libraries and static libraries use the same namespace, and
13221 # are all built from PIC.
13224 test "$enable_shared" = yes && enable_static=no
13225 if test -n "$RANLIB"; then
13226 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13227 postinstall_cmds='$RANLIB $lib'
13231 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13232 test "$enable_shared" = yes && enable_static=no
13236 echo "$as_me:$LINENO: result: $enable_shared" >&5
13237 echo "${ECHO_T}$enable_shared" >&6
13239 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13240 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13241 # Make sure either enable_shared or enable_static is yes.
13242 test "$enable_shared" = yes || enable_static=yes
13243 echo "$as_me:$LINENO: result: $enable_static" >&5
13244 echo "${ECHO_T}$enable_static" >&6
13249 lt_prog_compiler_wl_F77=
13250 lt_prog_compiler_pic_F77=
13251 lt_prog_compiler_static_F77=
13253 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13256 if test "$GCC" = yes; then
13257 lt_prog_compiler_wl_F77='-Wl,'
13258 lt_prog_compiler_static_F77='-static'
13262 # All AIX code is PIC.
13263 if test "$host_cpu" = ia64; then
13264 # AIX 5 now supports IA64 processor
13265 lt_prog_compiler_static_F77='-Bstatic'
13270 # FIXME: we need at least 68020 code to build shared libraries, but
13271 # adding the `-m68020' flag to GCC prevents building anything better,
13273 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13276 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13277 # PIC is the default for these OSes.
13280 mingw* | pw32* | os2*)
13281 # This hack is so that the source file can tell whether it is being
13282 # built for inclusion in a dll (and should export symbols for example).
13283 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13286 darwin* | rhapsody*)
13287 # PIC is the default on this platform
13288 # Common symbols not allowed in MH_DYLIB files
13289 lt_prog_compiler_pic_F77='-fno-common'
13293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13294 # Instead, we relocate shared libraries at runtime.
13298 # Just because we use GCC doesn't mean we suddenly get shared libraries
13299 # on systems that don't support them.
13300 lt_prog_compiler_can_build_shared_F77=no
13305 if test -d /usr/nec; then
13306 lt_prog_compiler_pic_F77=-Kconform_pic
13311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13312 # not for PA HP-UX.
13318 lt_prog_compiler_pic_F77='-fPIC'
13324 lt_prog_compiler_pic_F77='-fPIC'
13328 # PORTME Check for flag to pass linker flags through the system compiler.
13331 lt_prog_compiler_wl_F77='-Wl,'
13332 if test "$host_cpu" = ia64; then
13333 # AIX 5 now supports IA64 processor
13334 lt_prog_compiler_static_F77='-Bstatic'
13336 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13340 # PIC is the default on this platform
13341 # Common symbols not allowed in MH_DYLIB files
13342 case $cc_basename in
13344 lt_prog_compiler_pic_F77='-qnocommon'
13345 lt_prog_compiler_wl_F77='-Wl,'
13350 mingw* | pw32* | os2*)
13351 # This hack is so that the source file can tell whether it is being
13352 # built for inclusion in a dll (and should export symbols for example).
13353 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13356 hpux9* | hpux10* | hpux11*)
13357 lt_prog_compiler_wl_F77='-Wl,'
13358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13359 # not for PA HP-UX.
13365 lt_prog_compiler_pic_F77='+Z'
13368 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13369 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13372 irix5* | irix6* | nonstopux*)
13373 lt_prog_compiler_wl_F77='-Wl,'
13374 # PIC (with -KPIC) is the default.
13375 lt_prog_compiler_static_F77='-non_shared'
13379 lt_prog_compiler_pic_F77='-KPIC'
13380 lt_prog_compiler_static_F77='-Bstatic'
13384 case $cc_basename in
13386 lt_prog_compiler_wl_F77='-Wl,'
13387 lt_prog_compiler_pic_F77='-KPIC'
13388 lt_prog_compiler_static_F77='-static'
13390 pgcc* | pgf77* | pgf90* | pgf95*)
13391 # Portland Group compilers (*not* the Pentium gcc compiler,
13392 # which looks to be a dead project)
13393 lt_prog_compiler_wl_F77='-Wl,'
13394 lt_prog_compiler_pic_F77='-fpic'
13395 lt_prog_compiler_static_F77='-Bstatic'
13398 lt_prog_compiler_wl_F77='-Wl,'
13399 # All Alpha code is PIC.
13400 lt_prog_compiler_static_F77='-non_shared'
13405 osf3* | osf4* | osf5*)
13406 lt_prog_compiler_wl_F77='-Wl,'
13407 # All OSF/1 code is PIC.
13408 lt_prog_compiler_static_F77='-non_shared'
13412 lt_prog_compiler_pic_F77='-KPIC'
13413 lt_prog_compiler_static_F77='-Bstatic'
13414 case $cc_basename in
13415 f77* | f90* | f95*)
13416 lt_prog_compiler_wl_F77='-Qoption ld ';;
13418 lt_prog_compiler_wl_F77='-Wl,';;
13423 lt_prog_compiler_wl_F77='-Qoption ld '
13424 lt_prog_compiler_pic_F77='-PIC'
13425 lt_prog_compiler_static_F77='-Bstatic'
13428 sysv4 | sysv4.2uw2* | sysv4.3*)
13429 lt_prog_compiler_wl_F77='-Wl,'
13430 lt_prog_compiler_pic_F77='-KPIC'
13431 lt_prog_compiler_static_F77='-Bstatic'
13435 if test -d /usr/nec ;then
13436 lt_prog_compiler_pic_F77='-Kconform_pic'
13437 lt_prog_compiler_static_F77='-Bstatic'
13441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13442 lt_prog_compiler_wl_F77='-Wl,'
13443 lt_prog_compiler_pic_F77='-KPIC'
13444 lt_prog_compiler_static_F77='-Bstatic'
13448 lt_prog_compiler_wl_F77='-Wl,'
13449 lt_prog_compiler_can_build_shared_F77=no
13453 lt_prog_compiler_pic_F77='-pic'
13454 lt_prog_compiler_static_F77='-Bstatic'
13458 lt_prog_compiler_can_build_shared_F77=no
13463 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13464 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13467 # Check to make sure the PIC flag actually works.
13469 if test -n "$lt_prog_compiler_pic_F77"; then
13471 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13472 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13473 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 lt_prog_compiler_pic_works_F77=no
13477 ac_outfile=conftest.$ac_objext
13478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13479 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13480 # Insert the option either (1) after the last *FLAGS variable, or
13481 # (2) before a word containing "conftest.", or (3) at the end.
13482 # Note that $ac_compile itself does not contain backslashes and begins
13483 # with a dollar sign (not a hyphen), so the echo should work correctly.
13484 # The option is referenced via a variable to avoid confusing sed.
13485 lt_compile=`echo "$ac_compile" | $SED \
13486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488 -e 's:$: $lt_compiler_flag:'`
13489 (eval echo "\"\$as_me:13489: $lt_compile\"" >&5)
13490 (eval "$lt_compile" 2>conftest.err)
13492 cat conftest.err >&5
13493 echo "$as_me:13493: \$? = $ac_status" >&5
13494 if (exit $ac_status) && test -s "$ac_outfile"; then
13495 # The compiler can only warn and ignore the option if not recognized
13496 # So say no if there are warnings other than the usual output.
13497 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13500 lt_prog_compiler_pic_works_F77=yes
13506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13507 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13509 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13510 case $lt_prog_compiler_pic_F77 in
13512 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13515 lt_prog_compiler_pic_F77=
13516 lt_prog_compiler_can_build_shared_F77=no
13521 # For platforms which do not support PIC, -DPIC is meaningless:
13523 lt_prog_compiler_pic_F77=
13526 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13531 # Check to make sure the static flag actually works.
13533 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13534 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13535 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13536 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 lt_prog_compiler_static_works_F77=no
13540 save_LDFLAGS="$LDFLAGS"
13541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13542 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13544 # The linker can only warn and ignore the option if not recognized
13545 # So say no if there are warnings
13546 if test -s conftest.err; then
13547 # Append any errors to the config.log.
13548 cat conftest.err 1>&5
13549 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551 if diff conftest.exp conftest.er2 >/dev/null; then
13552 lt_prog_compiler_static_works_F77=yes
13555 lt_prog_compiler_static_works_F77=yes
13559 LDFLAGS="$save_LDFLAGS"
13562 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13563 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13565 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13568 lt_prog_compiler_static_F77=
13572 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13573 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13574 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 lt_cv_prog_compiler_c_o_F77=no
13578 $rm -r conftest 2>/dev/null
13582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13584 lt_compiler_flag="-o out/conftest2.$ac_objext"
13585 # Insert the option either (1) after the last *FLAGS variable, or
13586 # (2) before a word containing "conftest.", or (3) at the end.
13587 # Note that $ac_compile itself does not contain backslashes and begins
13588 # with a dollar sign (not a hyphen), so the echo should work correctly.
13589 lt_compile=`echo "$ac_compile" | $SED \
13590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13592 -e 's:$: $lt_compiler_flag:'`
13593 (eval echo "\"\$as_me:13593: $lt_compile\"" >&5)
13594 (eval "$lt_compile" 2>out/conftest.err)
13596 cat out/conftest.err >&5
13597 echo "$as_me:13597: \$? = $ac_status" >&5
13598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13600 # The compiler can only warn and ignore the option if not recognized
13601 # So say no if there are warnings
13602 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13605 lt_cv_prog_compiler_c_o_F77=yes
13610 # SGI C++ compiler will create directory out/ii_files/ for
13611 # template instantiation
13612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13613 $rm out/* && rmdir out
13619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13620 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13623 hard_links="nottested"
13624 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13625 # do not overwrite the value of need_locks provided by the user
13626 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13627 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13632 ln conftest.a conftest.b 2>&5 || hard_links=no
13633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13634 echo "$as_me:$LINENO: result: $hard_links" >&5
13635 echo "${ECHO_T}$hard_links" >&6
13636 if test "$hard_links" = no; then
13637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13638 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13645 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13646 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13649 allow_undefined_flag_F77=
13650 enable_shared_with_static_runtimes_F77=no
13652 archive_expsym_cmds_F77=
13653 old_archive_From_new_cmds_F77=
13654 old_archive_from_expsyms_cmds_F77=
13655 export_dynamic_flag_spec_F77=
13656 whole_archive_flag_spec_F77=
13657 thread_safe_flag_spec_F77=
13658 hardcode_libdir_flag_spec_F77=
13659 hardcode_libdir_flag_spec_ld_F77=
13660 hardcode_libdir_separator_F77=
13661 hardcode_direct_F77=no
13662 hardcode_minus_L_F77=no
13663 hardcode_shlibpath_var_F77=unsupported
13664 link_all_deplibs_F77=unknown
13665 hardcode_automatic_F77=no
13667 module_expsym_cmds_F77=
13668 always_export_symbols_F77=no
13669 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13670 # include_expsyms should be a list of space-separated symbols to be *always*
13671 # included in the symbol list
13672 include_expsyms_F77=
13673 # exclude_expsyms can be an extended regexp of symbols to exclude
13674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13676 # as well as any symbol that contains `d'.
13677 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13679 # platforms (ab)use it in PIC code, but their linkers get confused if
13680 # the symbol is explicitly referenced. Since portable code cannot
13681 # rely on this symbol name, it's probably fine to never include it in
13682 # preloaded symbol tables.
13683 extract_expsyms_cmds=
13684 # Just being paranoid about ensuring that cc_basename is set.
13685 for cc_temp in $compiler""; do
13687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13693 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13696 cygwin* | mingw* | pw32*)
13697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13698 # When not using gcc, we currently assume that we are using
13699 # Microsoft Visual C++.
13700 if test "$GCC" != yes; then
13705 # we just hope/assume this is gcc and not c89 (= MSVC++)
13714 if test "$with_gnu_ld" = yes; then
13715 # If archive_cmds runs LD, not CC, wlarc should be empty
13718 # Set some defaults for GNU ld with shared library support. These
13719 # are reset later if shared libraries are not supported. Putting them
13720 # here allows them to be overridden if necessary.
13721 runpath_var=LD_RUN_PATH
13722 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13723 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13724 # ancient GNU ld didn't support --whole-archive et. al.
13725 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13726 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13728 whole_archive_flag_spec_F77=
13730 supports_anon_versioning=no
13731 case `$LD -v 2>/dev/null` in
13732 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13733 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13734 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13735 *\ 2.11.*) ;; # other 2.11 versions
13736 *) supports_anon_versioning=yes ;;
13739 # See if GNU ld supports shared libraries.
13741 aix3* | aix4* | aix5*)
13742 # On AIX/PPC, the GNU linker is very broken
13743 if test "$host_cpu" != ia64; then
13747 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13748 *** to be unable to reliably create shared libraries on AIX.
13749 *** Therefore, libtool is disabling shared libraries support. If you
13750 *** really care for shared libraries, you may want to modify your PATH
13751 *** so that a non-GNU linker is found, and then restart.
13758 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)'
13759 hardcode_libdir_flag_spec_F77='-L$libdir'
13760 hardcode_minus_L_F77=yes
13762 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13763 # that the semantics of dynamic libraries on AmigaOS, at least up
13764 # to version 4, is to share data among multiple programs linked
13765 # with the same dynamic library. Since this doesn't match the
13766 # behavior of shared libraries on other platforms, we can't use
13772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13773 allow_undefined_flag_F77=unsupported
13774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13775 # support --undefined. This deserves some investigation. FIXME
13776 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13782 cygwin* | mingw* | pw32*)
13783 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13784 # as there is no search path for DLLs.
13785 hardcode_libdir_flag_spec_F77='-L$libdir'
13786 allow_undefined_flag_F77=unsupported
13787 always_export_symbols_F77=no
13788 enable_shared_with_static_runtimes_F77=yes
13789 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13792 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13793 # If the export-symbols file already is a .def file (1st line
13794 # is EXPORTS), use it as is; otherwise, prepend...
13795 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13796 cp $export_symbols $output_objdir/$soname.def;
13798 echo EXPORTS > $output_objdir/$soname.def;
13799 cat $export_symbols >> $output_objdir/$soname.def;
13801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13808 hardcode_direct_F77=no
13809 hardcode_shlibpath_var_F77=no
13810 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13811 export_dynamic_flag_spec_F77='${wl}-E'
13812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13813 # Instead, shared libraries are loaded at an image base (0x10000000 by
13814 # default) and relocated if they conflict, which is a slow very memory
13815 # consuming and fragmenting process. To avoid this, we pick a random,
13816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13818 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'
13819 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'
13823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13825 case $cc_basename,$host_cpu in
13826 pgcc*) # Portland Group C compiler
13827 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'
13828 tmp_addflag=' $pic_flag'
13830 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13831 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'
13832 tmp_addflag=' $pic_flag -Mnomain' ;;
13833 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13834 tmp_addflag=' -i_dynamic' ;;
13835 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13836 tmp_addflag=' -i_dynamic -nofor_main' ;;
13837 ifc* | ifort*) # Intel Fortran compiler
13838 tmp_addflag=' -nofor_main' ;;
13840 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13842 if test $supports_anon_versioning = yes; then
13843 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13845 $echo "local: *; };" >> $output_objdir/$libname.ver~
13846 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13848 link_all_deplibs_F77=no
13854 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13856 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13859 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13860 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13870 *** create shared libraries on Solaris systems. Therefore, libtool
13871 *** is disabling shared libraries support. We urge you to upgrade GNU
13872 *** binutils to release 2.9.1 or newer. Another option is to modify
13873 *** your PATH or compiler configuration so that the native linker is
13874 *** used, and then restart.
13877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13878 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13879 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13886 case `$LD -v 2>&1` in
13887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13892 *** reliably create shared libraries on SCO systems. Therefore, libtool
13893 *** is disabling shared libraries support. We urge you to upgrade GNU
13894 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13895 *** your PATH or compiler configuration so that the native linker is
13896 *** used, and then restart.
13901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13902 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13913 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13915 hardcode_direct_F77=yes
13916 hardcode_shlibpath_var_F77=no
13920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13921 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13922 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13929 if test "$ld_shlibs_F77" = no; then
13931 hardcode_libdir_flag_spec_F77=
13932 export_dynamic_flag_spec_F77=
13933 whole_archive_flag_spec_F77=
13936 # PORTME fill in a description of your system's linker (not GNU ld)
13939 allow_undefined_flag_F77=unsupported
13940 always_export_symbols_F77=yes
13941 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'
13942 # Note: this linker hardcodes the directories in LIBPATH if there
13943 # are no directories specified by -L.
13944 hardcode_minus_L_F77=yes
13945 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13946 # Neither direct hardcoding nor static linking is supported with a
13948 hardcode_direct_F77=unsupported
13953 if test "$host_cpu" = ia64; then
13954 # On IA64, the linker does run time linking by default, so we don't
13955 # have to do anything special.
13956 aix_use_runtimelinking=no
13957 exp_sym_flag='-Bexport'
13960 # If we're using GNU nm, then we don't want the "-C" option.
13961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13963 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'
13965 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'
13967 aix_use_runtimelinking=no
13969 # Test if we are trying to use run time linking or normal
13970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13971 # need to do runtime linking.
13972 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13973 for ld_flag in $LDFLAGS; do
13974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13975 aix_use_runtimelinking=yes
13982 exp_sym_flag='-bexport'
13983 no_entry_flag='-bnoentry'
13986 # When large executables or shared objects are built, AIX ld can
13987 # have problems creating the table of contents. If linking a library
13988 # or program results in "error TOC overflow" add -mminimal-toc to
13989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13992 archive_cmds_F77=''
13993 hardcode_direct_F77=yes
13994 hardcode_libdir_separator_F77=':'
13995 link_all_deplibs_F77=yes
13997 if test "$GCC" = yes; then
13998 case $host_os in aix4.[012]|aix4.[012].*)
13999 # We only want to do this on AIX 4.2 and lower, the check
14000 # below for broken collect2 doesn't work under 4.3+
14001 collect2name=`${CC} -print-prog-name=collect2`
14002 if test -f "$collect2name" && \
14003 strings "$collect2name" | grep resolve_lib_name >/dev/null
14005 # We have reworked collect2
14006 hardcode_direct_F77=yes
14008 # We have old collect2
14009 hardcode_direct_F77=unsupported
14010 # It fails to find uninstalled libraries when the uninstalled
14011 # path is not listed in the libpath. Setting hardcode_minus_L
14012 # to unsupported forces relinking
14013 hardcode_minus_L_F77=yes
14014 hardcode_libdir_flag_spec_F77='-L$libdir'
14015 hardcode_libdir_separator_F77=
14019 shared_flag='-shared'
14020 if test "$aix_use_runtimelinking" = yes; then
14021 shared_flag="$shared_flag "'${wl}-G'
14025 if test "$host_cpu" = ia64; then
14026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14027 # chokes on -Wl,-G. The following line is correct:
14030 if test "$aix_use_runtimelinking" = yes; then
14031 shared_flag='${wl}-G'
14033 shared_flag='${wl}-bM:SRE'
14038 # It seems that -bexpall does not export symbols beginning with
14039 # underscore (_), so it is better to generate a list of symbols to export.
14040 always_export_symbols_F77=yes
14041 if test "$aix_use_runtimelinking" = yes; then
14042 # Warning - without using the other runtime loading flags (-brtl),
14043 # -berok will link without error, but may produce a broken library.
14044 allow_undefined_flag_F77='-berok'
14045 # Determine the default libpath from the value encoded in an empty executable.
14046 cat >conftest.$ac_ext <<_ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053 (eval $ac_link) 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14075 # Check for a 64-bit object if we didn't find anything.
14076 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; }
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14083 rm -f conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
14085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14087 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14088 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"
14090 if test "$host_cpu" = ia64; then
14091 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14092 allow_undefined_flag_F77="-z nodefs"
14093 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"
14095 # Determine the default libpath from the value encoded in an empty executable.
14096 cat >conftest.$ac_ext <<_ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103 (eval $ac_link) 2>conftest.er1
14105 grep -v '^ *+' conftest.er1 >conftest.err
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14125 # Check for a 64-bit object if we didn't find anything.
14126 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; }
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14133 rm -f conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14138 # Warning - without using the other run time loading flags,
14139 # -berok will link without error, but may produce a broken library.
14140 no_undefined_flag_F77=' ${wl}-bernotok'
14141 allow_undefined_flag_F77=' ${wl}-berok'
14142 # Exported symbols can be pulled into shared objects from archives
14143 whole_archive_flag_spec_F77='$convenience'
14144 archive_cmds_need_lc_F77=yes
14145 # This is similar to how AIX traditionally builds its shared libraries.
14146 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'
14152 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)'
14153 hardcode_libdir_flag_spec_F77='-L$libdir'
14154 hardcode_minus_L_F77=yes
14155 # see comment about different semantics on the GNU ld section
14160 export_dynamic_flag_spec_F77=-rdynamic
14163 cygwin* | mingw* | pw32*)
14164 # When not using gcc, we currently assume that we are using
14165 # Microsoft Visual C++.
14166 # hardcode_libdir_flag_spec is actually meaningless, as there is
14167 # no search path for DLLs.
14168 hardcode_libdir_flag_spec_F77=' '
14169 allow_undefined_flag_F77=unsupported
14170 # Tell ltmain to make .lib files, not .a files.
14172 # Tell ltmain to make .dll files, not .so files.
14174 # FIXME: Setting linknames here is a bad hack.
14175 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14176 # The linker will automatically build a .lib file if we build a DLL.
14177 old_archive_From_new_cmds_F77='true'
14178 # FIXME: Should let the user specify the lib program.
14179 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14180 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14181 enable_shared_with_static_runtimes_F77=yes
14184 darwin* | rhapsody*)
14186 rhapsody* | darwin1.[012])
14187 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14191 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14193 case ${MACOSX_DEPLOYMENT_TARGET} in
14195 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14198 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14204 archive_cmds_need_lc_F77=no
14205 hardcode_direct_F77=no
14206 hardcode_automatic_F77=yes
14207 hardcode_shlibpath_var_F77=unsupported
14208 whole_archive_flag_spec_F77=''
14209 link_all_deplibs_F77=yes
14210 if test "$GCC" = yes ; then
14211 output_verbose_link_cmd='echo'
14212 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14213 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14215 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}'
14216 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}'
14218 case $cc_basename in
14220 output_verbose_link_cmd='echo'
14221 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14222 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14224 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}'
14225 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}'
14235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14236 hardcode_libdir_flag_spec_F77='-L$libdir'
14237 hardcode_shlibpath_var_F77=no
14244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14245 # support. Future versions do this automatically, but an explicit c++rt0.o
14246 # does not break anything, and helps significantly (at the cost of a little
14249 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14250 hardcode_libdir_flag_spec_F77='-R$libdir'
14251 hardcode_direct_F77=yes
14252 hardcode_shlibpath_var_F77=no
14255 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14257 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14258 hardcode_direct_F77=yes
14259 hardcode_minus_L_F77=yes
14260 hardcode_shlibpath_var_F77=no
14263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14264 freebsd* | dragonfly*)
14265 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14266 hardcode_libdir_flag_spec_F77='-R$libdir'
14267 hardcode_direct_F77=yes
14268 hardcode_shlibpath_var_F77=no
14271 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14273 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14274 hardcode_libdir_flag_spec_F77='-R$libdir'
14275 hardcode_direct_F77=yes
14276 hardcode_shlibpath_var_F77=no
14277 link_all_deplibs_F77=no
14281 if test "$GCC" = yes; then
14282 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'
14284 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'
14286 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14287 hardcode_libdir_separator_F77=:
14288 hardcode_direct_F77=yes
14290 # hardcode_minus_L: Not really in the search PATH,
14291 # but as the default location of the library.
14292 hardcode_minus_L_F77=yes
14293 export_dynamic_flag_spec_F77='${wl}-E'
14297 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14298 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14300 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14302 if test "$with_gnu_ld" = no; then
14303 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14304 hardcode_libdir_separator_F77=:
14306 hardcode_direct_F77=yes
14307 export_dynamic_flag_spec_F77='${wl}-E'
14309 # hardcode_minus_L: Not really in the search PATH,
14310 # but as the default location of the library.
14311 hardcode_minus_L_F77=yes
14316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14319 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14322 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14325 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14331 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14334 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14337 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14341 if test "$with_gnu_ld" = no; then
14342 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14343 hardcode_libdir_separator_F77=:
14347 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14348 hardcode_direct_F77=no
14349 hardcode_shlibpath_var_F77=no
14352 hardcode_direct_F77=yes
14353 export_dynamic_flag_spec_F77='${wl}-E'
14355 # hardcode_minus_L: Not really in the search PATH,
14356 # but as the default location of the library.
14357 hardcode_minus_L_F77=yes
14363 irix5* | irix6* | nonstopux*)
14364 if test "$GCC" = yes; then
14365 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'
14367 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'
14368 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14370 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14371 hardcode_libdir_separator_F77=:
14372 link_all_deplibs_F77=yes
14375 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14377 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14379 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14381 hardcode_libdir_flag_spec_F77='-R$libdir'
14382 hardcode_direct_F77=yes
14383 hardcode_shlibpath_var_F77=no
14387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14388 hardcode_direct_F77=yes
14389 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14390 hardcode_libdir_separator_F77=:
14391 hardcode_shlibpath_var_F77=no
14395 hardcode_direct_F77=yes
14396 hardcode_shlibpath_var_F77=no
14397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14398 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14399 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14401 export_dynamic_flag_spec_F77='${wl}-E'
14404 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14406 hardcode_libdir_flag_spec_F77='-R$libdir'
14409 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14410 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14417 hardcode_libdir_flag_spec_F77='-L$libdir'
14418 hardcode_minus_L_F77=yes
14419 allow_undefined_flag_F77=unsupported
14420 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'
14421 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14425 if test "$GCC" = yes; then
14426 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14427 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'
14429 allow_undefined_flag_F77=' -expect_unresolved \*'
14430 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'
14432 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14433 hardcode_libdir_separator_F77=:
14436 osf4* | osf5*) # as osf3* with the addition of -msym flag
14437 if test "$GCC" = yes; then
14438 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14439 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'
14440 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14442 allow_undefined_flag_F77=' -expect_unresolved \*'
14443 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'
14444 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~
14445 $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'
14447 # Both c and cxx compiler support -rpath directly
14448 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14450 hardcode_libdir_separator_F77=:
14454 no_undefined_flag_F77=' -z text'
14455 if test "$GCC" = yes; then
14457 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14458 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14459 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14462 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14463 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14464 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14466 hardcode_libdir_flag_spec_F77='-R$libdir'
14467 hardcode_shlibpath_var_F77=no
14469 solaris2.[0-5] | solaris2.[0-5].*) ;;
14471 # The compiler driver will combine linker options so we
14472 # cannot just pass the convience library names through
14473 # without $wl, iff we do not link with $LD.
14474 # Luckily, gcc supports the same syntax we need for Sun Studio.
14475 # Supported since Solaris 2.6 (maybe 2.5.1?)
14478 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14480 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' ;;
14483 link_all_deplibs_F77=yes
14487 if test "x$host_vendor" = xsequent; then
14488 # Use $CC to link under sequent, because it throws in some extra .o
14489 # files that make .init and .fini sections work.
14490 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14492 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14494 hardcode_libdir_flag_spec_F77='-L$libdir'
14495 hardcode_direct_F77=yes
14496 hardcode_minus_L_F77=yes
14497 hardcode_shlibpath_var_F77=no
14501 case $host_vendor in
14503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14504 hardcode_direct_F77=yes # is this really true???
14507 ## LD is ld it makes a PLAMLIB
14508 ## CC just makes a GrossModule.
14509 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14510 reload_cmds_F77='$CC -r -o $output$reload_objs'
14511 hardcode_direct_F77=no
14514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14515 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14518 runpath_var='LD_RUN_PATH'
14519 hardcode_shlibpath_var_F77=no
14523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524 hardcode_shlibpath_var_F77=no
14525 export_dynamic_flag_spec_F77='-Bexport'
14529 if test -d /usr/nec; then
14530 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14531 hardcode_shlibpath_var_F77=no
14532 runpath_var=LD_RUN_PATH
14533 hardcode_runpath_var=yes
14538 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14539 no_undefined_flag_F77='${wl}-z,text'
14540 archive_cmds_need_lc_F77=no
14541 hardcode_shlibpath_var_F77=no
14542 runpath_var='LD_RUN_PATH'
14544 if test "$GCC" = yes; then
14545 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14553 sysv5* | sco3.2v5* | sco5v6*)
14554 # Note: We can NOT use -z defs as we might desire, because we do not
14555 # link with -lc, and that would cause any symbols used from libc to
14556 # always be unresolved, which means just about no library would
14557 # ever link correctly. If we're not using GNU ld we use -z text
14558 # though, which does catch some bad symbols but isn't as heavy-handed
14560 no_undefined_flag_F77='${wl}-z,text'
14561 allow_undefined_flag_F77='${wl}-z,nodefs'
14562 archive_cmds_need_lc_F77=no
14563 hardcode_shlibpath_var_F77=no
14564 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14565 hardcode_libdir_separator_F77=':'
14566 link_all_deplibs_F77=yes
14567 export_dynamic_flag_spec_F77='${wl}-Bexport'
14568 runpath_var='LD_RUN_PATH'
14570 if test "$GCC" = yes; then
14571 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14572 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14574 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14575 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14581 hardcode_libdir_flag_spec_F77='-L$libdir'
14582 hardcode_shlibpath_var_F77=no
14591 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14592 echo "${ECHO_T}$ld_shlibs_F77" >&6
14593 test "$ld_shlibs_F77" = no && can_build_shared=no
14596 # Do we need to explicitly link libc?
14598 case "x$archive_cmds_need_lc_F77" in
14600 # Assume -lc should be added
14601 archive_cmds_need_lc_F77=yes
14603 if test "$enable_shared" = yes && test "$GCC" = yes; then
14604 case $archive_cmds_F77 in
14606 # FIXME: we may have to deal with multi-command sequences.
14609 # Test whether the compiler implicitly links with -lc since on some
14610 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14611 # to ld, don't add -lc before -lgcc.
14612 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14613 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618 (eval $ac_compile) 2>&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } 2>conftest.err; then
14624 libobjs=conftest.$ac_objext
14626 wl=$lt_prog_compiler_wl_F77
14627 pic_flag=$lt_prog_compiler_pic_F77
14633 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14634 allow_undefined_flag_F77=
14635 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14636 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }
14641 archive_cmds_need_lc_F77=no
14643 archive_cmds_need_lc_F77=yes
14645 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14647 cat conftest.err 1>&5
14650 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14651 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14658 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14659 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14660 library_names_spec=
14661 libname_spec='lib$name'
14665 postuninstall_cmds=
14669 shlibpath_overrides_runpath=unknown
14671 dynamic_linker="$host_os ld.so"
14672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14673 if test "$GCC" = yes; then
14674 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14675 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14676 # if the path contains ";" then we assume it to be the separator
14677 # otherwise default to the standard path separator (i.e. ":") - it is
14678 # assumed that no part of a normal pathname contains ";" but that should
14679 # okay in the real world where ";" in dirpaths is itself problematic.
14680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14687 need_lib_prefix=unknown
14688 hardcode_into_libs=no
14690 # when you set need_version to no, make sure it does not cause -set_version
14691 # flags to be left without arguments
14692 need_version=unknown
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14698 shlibpath_var=LIBPATH
14700 # AIX 3 has no versioning support, so we append a major version to the name.
14701 soname_spec='${libname}${release}${shared_ext}$major'
14708 hardcode_into_libs=yes
14709 if test "$host_cpu" = ia64; then
14710 # AIX 5 supports IA64
14711 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14712 shlibpath_var=LD_LIBRARY_PATH
14714 # With GCC up to 2.95.x, collect2 would create an import file
14715 # for dependence libraries. The import file would start with
14716 # the line `#! .'. This would cause the generated library to
14717 # depend on `.', always an invalid library. This was fixed in
14718 # development snapshots of GCC prior to 3.0.
14720 aix4 | aix4.[01] | aix4.[01].*)
14721 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14723 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14726 can_build_shared=no
14730 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14731 # soname into executable. Probably we can add versioning support to
14732 # collect2, so additional links can be useful in future.
14733 if test "$aix_use_runtimelinking" = yes; then
14734 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14735 # instead of lib<name>.a to let people know that these are not
14736 # typical AIX shared libraries.
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 # We preserve .a as extension for shared libraries through AIX4.2
14740 # and later when we are not doing run time linking.
14741 library_names_spec='${libname}${release}.a $libname.a'
14742 soname_spec='${libname}${release}${shared_ext}$major'
14744 shlibpath_var=LIBPATH
14749 library_names_spec='$libname.ixlibrary $libname.a'
14750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14751 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'
14755 library_names_spec='${libname}${shared_ext}'
14756 dynamic_linker="$host_os ld.so"
14757 shlibpath_var=LIBRARY_PATH
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764 soname_spec='${libname}${release}${shared_ext}$major'
14765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14769 # the default ld.so.conf also contains /usr/contrib/lib and
14770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14771 # libtool to hard-code these into programs
14774 cygwin* | mingw* | pw32*)
14775 version_type=windows
14780 case $GCC,$host_os in
14781 yes,cygwin* | yes,mingw* | yes,pw32*)
14782 library_names_spec='$libname.dll.a'
14783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14784 postinstall_cmds='base_file=`basename \${file}`~
14785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14786 dldir=$destdir/`dirname \$dlpath`~
14787 test -d \$dldir || mkdir -p \$dldir~
14788 $install_prog $dir/$dlname \$dldir/$dlname~
14789 chmod a+x \$dldir/$dlname'
14790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14791 dlpath=$dir/\$dldll~
14793 shlibpath_overrides_runpath=yes
14797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14799 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14802 # MinGW DLLs use traditional 'lib' prefix
14803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14805 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14806 # It is most probably a Windows format PATH printed by
14807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14808 # path with ; separators, and with drive letters. We can handle the
14809 # drive letters (cygwin fileutils understands them), so leave them,
14810 # especially as we might pass files found there to a mingw objdump,
14811 # which wouldn't understand a cygwinified path. Ahh.
14812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14818 # pw32 DLLs use 'pw' prefix rather than 'lib'
14819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14825 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14828 dynamic_linker='Win32 ld.exe'
14829 # FIXME: first we should search . and the directory the executable is in
14833 darwin* | rhapsody*)
14834 dynamic_linker="$host_os dyld"
14835 version_type=darwin
14838 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14839 soname_spec='${libname}${release}${major}$shared_ext'
14840 shlibpath_overrides_runpath=yes
14841 shlibpath_var=DYLD_LIBRARY_PATH
14842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14843 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14844 if test "$GCC" = yes; then
14845 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"`
14847 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 shlibpath_var=LD_LIBRARY_PATH
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 shlibpath_overrides_runpath=no
14873 hardcode_into_libs=yes
14874 dynamic_linker='GNU ld.so'
14877 freebsd* | dragonfly*)
14878 # DragonFly does not have aout. When/if they implement a new
14879 # versioning mechanism, adjust this.
14880 if test -x /usr/bin/objformat; then
14881 objformat=`/usr/bin/objformat`
14884 freebsd[123]*) objformat=aout ;;
14885 *) objformat=elf ;;
14888 version_type=freebsd-$objformat
14889 case $version_type in
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14900 shlibpath_var=LD_LIBRARY_PATH
14903 shlibpath_overrides_runpath=yes
14905 freebsd3.[01]* | freebsdelf3.[01]*)
14906 shlibpath_overrides_runpath=yes
14907 hardcode_into_libs=yes
14909 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14910 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14911 shlibpath_overrides_runpath=no
14912 hardcode_into_libs=yes
14914 freebsd*) # from 4.6 on
14915 shlibpath_overrides_runpath=yes
14916 hardcode_into_libs=yes
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14926 soname_spec='${libname}${release}${shared_ext}$major'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 hardcode_into_libs=yes
14931 hpux9* | hpux10* | hpux11*)
14932 # Give a soname corresponding to the major version so that dld.sl refuses to
14933 # link against other versions.
14940 hardcode_into_libs=yes
14941 dynamic_linker="$host_os dld.so"
14942 shlibpath_var=LD_LIBRARY_PATH
14943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 if test "X$HPUX_IA64_MODE" = X32; then
14947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14955 hardcode_into_libs=yes
14956 dynamic_linker="$host_os dld.sl"
14957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14966 dynamic_linker="$host_os dld.sl"
14967 shlibpath_var=SHLIB_PATH
14968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970 soname_spec='${libname}${release}${shared_ext}$major'
14973 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14974 postinstall_cmds='chmod 555 $lib'
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 shlibpath_overrides_runpath=no
14986 hardcode_into_libs=yes
14989 irix5* | irix6* | nonstopux*)
14991 nonstopux*) version_type=nonstopux ;;
14993 if test "$lt_cv_prog_gnu_ld" = yes; then
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15004 irix5* | nonstopux*)
15005 libsuff= shlibsuff=
15008 case $LD in # libtool.m4 will add one of these switches to LD
15009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15010 libsuff= shlibsuff= libmagic=32-bit;;
15011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15012 libsuff=32 shlibsuff=N32 libmagic=N32;;
15013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15015 *) libsuff= shlibsuff= libmagic=never-match;;
15019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15020 shlibpath_overrides_runpath=no
15021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15023 hardcode_into_libs=yes
15026 # No shared lib support for Linux oldld, aout, or coff.
15027 linux*oldld* | linux*aout* | linux*coff*)
15031 # This must be Linux ELF.
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15039 shlibpath_var=LD_LIBRARY_PATH
15040 shlibpath_overrides_runpath=no
15041 # This implies no fast_install, which is unacceptable.
15042 # Some rework will be needed to allow for fast_install
15043 # before this can be enabled.
15044 hardcode_into_libs=yes
15046 # Append ld.so.conf contents to the search path
15047 if test -f /etc/ld.so.conf; then
15048 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' ' '`
15049 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15052 # We used to test for /lib/ld.so.1 and disable shared libraries on
15053 # powerpc, because MkLinux only supported shared libraries with the
15054 # GNU dynamic linker. Since this was broken with cross compilers,
15055 # most powerpc-linux boxes support dynamic linking these days and
15056 # people can always --disable-shared, the test was removed, and we
15057 # assume the GNU/Linux dynamic linker is in use.
15058 dynamic_linker='GNU/Linux ld.so'
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 shlibpath_var=LD_LIBRARY_PATH
15068 shlibpath_overrides_runpath=no
15069 hardcode_into_libs=yes
15070 dynamic_linker='NetBSD ld.elf_so'
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 shlibpath_overrides_runpath=no
15081 hardcode_into_libs=yes
15082 dynamic_linker='GNU ld.so'
15089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15092 dynamic_linker='NetBSD (a.out) ld.so'
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 dynamic_linker='NetBSD ld.elf_so'
15098 shlibpath_var=LD_LIBRARY_PATH
15099 shlibpath_overrides_runpath=yes
15100 hardcode_into_libs=yes
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106 shlibpath_var=LD_LIBRARY_PATH
15107 shlibpath_overrides_runpath=yes
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 shlibpath_var=LD_LIBRARY_PATH
15117 shlibpath_overrides_runpath=yes
15122 sys_lib_dlsearch_path_spec="/usr/lib"
15124 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15126 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15127 *) need_version=no ;;
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15131 shlibpath_var=LD_LIBRARY_PATH
15132 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15134 openbsd2.[89] | openbsd2.[89].*)
15135 shlibpath_overrides_runpath=no
15138 shlibpath_overrides_runpath=yes
15142 shlibpath_overrides_runpath=yes
15147 libname_spec='$name'
15150 library_names_spec='$libname${shared_ext} $libname.a'
15151 dynamic_linker='OS/2 ld.exe'
15152 shlibpath_var=LIBPATH
15155 osf3* | osf4* | osf5*)
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161 shlibpath_var=LD_LIBRARY_PATH
15162 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15163 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 shlibpath_overrides_runpath=yes
15174 hardcode_into_libs=yes
15175 # ldd complains unless libraries are executable
15176 postinstall_cmds='chmod +x $lib'
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15182 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15183 shlibpath_var=LD_LIBRARY_PATH
15184 shlibpath_overrides_runpath=yes
15185 if test "$with_gnu_ld" = yes; then
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 case $host_vendor in
15198 shlibpath_overrides_runpath=no
15200 export_dynamic_flag_spec='${wl}-Blargedynsym'
15201 runpath_var=LD_RUN_PATH
15209 shlibpath_overrides_runpath=no
15210 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15216 if test -d /usr/nec ;then
15218 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15219 soname_spec='$libname${shared_ext}.$major'
15220 shlibpath_var=LD_LIBRARY_PATH
15224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15225 version_type=freebsd-elf
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15229 soname_spec='${libname}${release}${shared_ext}$major'
15230 shlibpath_var=LD_LIBRARY_PATH
15231 hardcode_into_libs=yes
15232 if test "$with_gnu_ld" = yes; then
15233 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15234 shlibpath_overrides_runpath=no
15236 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15237 shlibpath_overrides_runpath=yes
15240 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15244 sys_lib_dlsearch_path_spec='/usr/lib'
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 shlibpath_var=LD_LIBRARY_PATH
15258 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15259 echo "${ECHO_T}$dynamic_linker" >&6
15260 test "$dynamic_linker" = no && can_build_shared=no
15262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15263 if test "$GCC" = yes; then
15264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15267 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15268 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15269 hardcode_action_F77=
15270 if test -n "$hardcode_libdir_flag_spec_F77" || \
15271 test -n "$runpath_var_F77" || \
15272 test "X$hardcode_automatic_F77" = "Xyes" ; then
15274 # We can hardcode non-existant directories.
15275 if test "$hardcode_direct_F77" != no &&
15276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15277 # have to relink, otherwise we might link with an installed library
15278 # when we should be linking with a yet-to-be-installed one
15279 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15280 test "$hardcode_minus_L_F77" != no; then
15281 # Linking always hardcodes the temporary library directory.
15282 hardcode_action_F77=relink
15284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15285 hardcode_action_F77=immediate
15288 # We cannot hardcode anything, or else we can only hardcode existing
15290 hardcode_action_F77=unsupported
15292 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15293 echo "${ECHO_T}$hardcode_action_F77" >&6
15295 if test "$hardcode_action_F77" = relink; then
15296 # Fast installation is not supported
15297 enable_fast_install=no
15298 elif test "$shlibpath_overrides_runpath" = yes ||
15299 test "$enable_shared" = no; then
15300 # Fast installation is not necessary
15301 enable_fast_install=needless
15305 # The else clause should only fire when bootstrapping the
15306 # libtool distribution, otherwise you forgot to ship ltmain.sh
15307 # with your package, and you will get complaints that there are
15308 # no rules to generate ltmain.sh.
15309 if test -f "$ltmain"; then
15310 # See if we are running on zsh, and set the options which allow our commands through
15311 # without removal of \ escapes.
15312 if test -n "${ZSH_VERSION+set}" ; then
15313 setopt NO_GLOB_SUBST
15315 # Now quote all the things that may contain metacharacters while being
15316 # careful not to overquote the AC_SUBSTed values. We take copies of the
15317 # variables and quote the copies for generation of the libtool script.
15318 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15320 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15321 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15322 deplibs_check_method reload_flag reload_cmds need_locks \
15323 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15324 lt_cv_sys_global_symbol_to_c_name_address \
15325 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15326 old_postinstall_cmds old_postuninstall_cmds \
15330 lt_prog_compiler_wl_F77 \
15331 lt_prog_compiler_pic_F77 \
15332 lt_prog_compiler_static_F77 \
15333 lt_prog_compiler_no_builtin_flag_F77 \
15334 export_dynamic_flag_spec_F77 \
15335 thread_safe_flag_spec_F77 \
15336 whole_archive_flag_spec_F77 \
15337 enable_shared_with_static_runtimes_F77 \
15338 old_archive_cmds_F77 \
15339 old_archive_from_new_cmds_F77 \
15340 predep_objects_F77 \
15341 postdep_objects_F77 \
15344 compiler_lib_search_path_F77 \
15346 archive_expsym_cmds_F77 \
15347 postinstall_cmds_F77 \
15348 postuninstall_cmds_F77 \
15349 old_archive_from_expsyms_cmds_F77 \
15350 allow_undefined_flag_F77 \
15351 no_undefined_flag_F77 \
15352 export_symbols_cmds_F77 \
15353 hardcode_libdir_flag_spec_F77 \
15354 hardcode_libdir_flag_spec_ld_F77 \
15355 hardcode_libdir_separator_F77 \
15356 hardcode_automatic_F77 \
15358 module_expsym_cmds_F77 \
15359 lt_cv_prog_compiler_c_o_F77 \
15360 exclude_expsyms_F77 \
15361 include_expsyms_F77; do
15364 old_archive_cmds_F77 | \
15365 old_archive_from_new_cmds_F77 | \
15366 archive_cmds_F77 | \
15367 archive_expsym_cmds_F77 | \
15368 module_cmds_F77 | \
15369 module_expsym_cmds_F77 | \
15370 old_archive_from_expsyms_cmds_F77 | \
15371 export_symbols_cmds_F77 | \
15372 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15373 postinstall_cmds | postuninstall_cmds | \
15374 old_postinstall_cmds | old_postuninstall_cmds | \
15375 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15376 # Double-quote double-evaled strings.
15377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15386 *'\$0 --fallback-echo"')
15387 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15393 cat <<__EOF__ >> "$cfgfile"
15394 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15398 # Shell to use when invoking shell scripts.
15401 # Whether or not to build shared libraries.
15402 build_libtool_libs=$enable_shared
15404 # Whether or not to build static libraries.
15405 build_old_libs=$enable_static
15407 # Whether or not to add -lc for building shared libraries.
15408 build_libtool_need_lc=$archive_cmds_need_lc_F77
15410 # Whether or not to disallow shared libs when runtime libs are static
15411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15413 # Whether or not to optimize for fast installation.
15414 fast_install=$enable_fast_install
15417 host_alias=$host_alias
15421 # The build system.
15422 build_alias=$build_alias
15426 # An echo program that does not interpret backslashes.
15431 AR_FLAGS=$lt_AR_FLAGS
15436 # LTCC compiler flags.
15437 LTCFLAGS=$lt_LTCFLAGS
15439 # A language-specific compiler.
15440 CC=$lt_compiler_F77
15442 # Is the compiler the GNU C compiler?
15448 # The linker used to build libraries.
15451 # Whether we need hard or soft links.
15454 # A BSD-compatible nm program.
15457 # A symbol stripping program
15460 # Used to examine libraries when file_magic_cmd begins "file"
15461 MAGIC_CMD=$MAGIC_CMD
15463 # Used on cygwin: DLL creation program.
15466 # Used on cygwin: object dumper.
15469 # Used on cygwin: assembler.
15472 # The name of the directory that contains temporary libtool files.
15475 # How to create reloadable object files.
15476 reload_flag=$lt_reload_flag
15477 reload_cmds=$lt_reload_cmds
15479 # How to pass a linker flag through the compiler.
15480 wl=$lt_lt_prog_compiler_wl_F77
15482 # Object file suffix (normally "o").
15483 objext="$ac_objext"
15485 # Old archive suffix (normally "a").
15488 # Shared library suffix (normally ".so").
15489 shrext_cmds='$shrext_cmds'
15491 # Executable file suffix (normally "").
15494 # Additional compiler flags for building library objects.
15495 pic_flag=$lt_lt_prog_compiler_pic_F77
15498 # What is the maximum length of a command?
15499 max_cmd_len=$lt_cv_sys_max_cmd_len
15501 # Does compiler simultaneously support -c and -o options?
15502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15504 # Must we lock files when doing compilation?
15505 need_locks=$lt_need_locks
15507 # Do we need the lib prefix for modules?
15508 need_lib_prefix=$need_lib_prefix
15510 # Do we need a version for libraries?
15511 need_version=$need_version
15513 # Whether dlopen is supported.
15514 dlopen_support=$enable_dlopen
15516 # Whether dlopen of programs is supported.
15517 dlopen_self=$enable_dlopen_self
15519 # Whether dlopen of statically linked programs is supported.
15520 dlopen_self_static=$enable_dlopen_self_static
15522 # Compiler flag to prevent dynamic linking.
15523 link_static_flag=$lt_lt_prog_compiler_static_F77
15525 # Compiler flag to turn off builtin functions.
15526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15528 # Compiler flag to allow reflexive dlopens.
15529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15531 # Compiler flag to generate shared objects directly from archives.
15532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15534 # Compiler flag to generate thread-safe objects.
15535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15537 # Library versioning type.
15538 version_type=$version_type
15540 # Format of library name prefix.
15541 libname_spec=$lt_libname_spec
15543 # List of archive names. First name is the real one, the rest are links.
15544 # The last name is the one that the linker finds with -lNAME.
15545 library_names_spec=$lt_library_names_spec
15547 # The coded name of the library, if different from the real name.
15548 soname_spec=$lt_soname_spec
15550 # Commands used to build and install an old-style archive.
15552 old_archive_cmds=$lt_old_archive_cmds_F77
15553 old_postinstall_cmds=$lt_old_postinstall_cmds
15554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15556 # Create an old-style archive from a shared archive.
15557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15559 # Create a temporary old-style archive to link instead of a shared archive.
15560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15562 # Commands used to build and install a shared archive.
15563 archive_cmds=$lt_archive_cmds_F77
15564 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15565 postinstall_cmds=$lt_postinstall_cmds
15566 postuninstall_cmds=$lt_postuninstall_cmds
15568 # Commands used to build a loadable module (assumed same as above if empty)
15569 module_cmds=$lt_module_cmds_F77
15570 module_expsym_cmds=$lt_module_expsym_cmds_F77
15572 # Commands to strip libraries.
15573 old_striplib=$lt_old_striplib
15574 striplib=$lt_striplib
15576 # Dependencies to place before the objects being linked to create a
15578 predep_objects=$lt_predep_objects_F77
15580 # Dependencies to place after the objects being linked to create a
15582 postdep_objects=$lt_postdep_objects_F77
15584 # Dependencies to place before the objects being linked to create a
15586 predeps=$lt_predeps_F77
15588 # Dependencies to place after the objects being linked to create a
15590 postdeps=$lt_postdeps_F77
15592 # The library search path used internally by the compiler when linking
15593 # a shared library.
15594 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15596 # Method to check whether dependent libraries are shared objects.
15597 deplibs_check_method=$lt_deplibs_check_method
15599 # Command to use when deplibs_check_method == file_magic.
15600 file_magic_cmd=$lt_file_magic_cmd
15602 # Flag that allows shared libraries with undefined symbols to be built.
15603 allow_undefined_flag=$lt_allow_undefined_flag_F77
15605 # Flag that forces no undefined symbols.
15606 no_undefined_flag=$lt_no_undefined_flag_F77
15608 # Commands used to finish a libtool library installation in a directory.
15609 finish_cmds=$lt_finish_cmds
15611 # Same as above, but a single script fragment to be evaled but not shown.
15612 finish_eval=$lt_finish_eval
15614 # Take the output of nm and produce a listing of raw symbols and C names.
15615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15617 # Transform the output of nm in a proper C declaration
15618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15620 # Transform the output of nm in a C name address pair
15621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15623 # This is the shared library runtime path variable.
15624 runpath_var=$runpath_var
15626 # This is the shared library path variable.
15627 shlibpath_var=$shlibpath_var
15629 # Is shlibpath searched before the hard-coded library search path?
15630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15632 # How to hardcode a shared library path into an executable.
15633 hardcode_action=$hardcode_action_F77
15635 # Whether we should hardcode library paths into libraries.
15636 hardcode_into_libs=$hardcode_into_libs
15638 # Flag to hardcode \$libdir into a binary during linking.
15639 # This must work even if \$libdir does not exist.
15640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15642 # If ld is used when linking, flag to hardcode \$libdir into
15643 # a binary during linking. This must work even if \$libdir does
15645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15647 # Whether we need a single -rpath flag with a separated argument.
15648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15651 # resulting binary.
15652 hardcode_direct=$hardcode_direct_F77
15654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15655 # resulting binary.
15656 hardcode_minus_L=$hardcode_minus_L_F77
15658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15659 # the resulting binary.
15660 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15662 # Set to yes if building a shared library automatically hardcodes DIR into the library
15663 # and all subsequent libraries and executables linked against it.
15664 hardcode_automatic=$hardcode_automatic_F77
15666 # Variables whose values should be saved in libtool wrapper scripts and
15667 # restored at relink time.
15668 variables_saved_for_relink="$variables_saved_for_relink"
15670 # Whether libtool must link a program against all its dependency libraries.
15671 link_all_deplibs=$link_all_deplibs_F77
15673 # Compile-time system search path for libraries
15674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15676 # Run-time system search path for libraries
15677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15679 # Fix the shell variable \$srcfile for the compiler.
15680 fix_srcfile_path="$fix_srcfile_path_F77"
15682 # Set to yes if exported symbols are required.
15683 always_export_symbols=$always_export_symbols_F77
15685 # The commands to list exported symbols.
15686 export_symbols_cmds=$lt_export_symbols_cmds_F77
15688 # The commands to extract the exported symbol list from a shared archive.
15689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15691 # Symbols that should not be listed in the preloaded symbols.
15692 exclude_expsyms=$lt_exclude_expsyms_F77
15694 # Symbols that must always be exported.
15695 include_expsyms=$lt_include_expsyms_F77
15697 # ### END LIBTOOL TAG CONFIG: $tagname
15703 # If there is no Makefile yet, we rely on a make rule to execute
15704 # `config.status --recheck' to rerun these tests and create the
15705 # libtool script then.
15706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15707 if test -f "$ltmain_in"; then
15708 test -f Makefile && make "$ltmain"
15714 ac_cpp='$CPP $CPPFLAGS'
15715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15727 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15731 # Source file extension for Java test sources.
15734 # Object file extension for compiled Java test sources.
15738 # Code to be used in simple compile tests
15739 lt_simple_compile_test_code="class foo {}\n"
15741 # Code to be used in simple link tests
15742 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15746 # If no C compiler was specified, use CC.
15749 # If no C compiler flags were specified, use CFLAGS.
15750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15752 # Allow CC to be a program name with arguments.
15756 # save warnings/boilerplate of simple test code
15757 ac_outfile=conftest.$ac_objext
15758 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15760 _lt_compiler_boilerplate=`cat conftest.err`
15763 ac_outfile=conftest.$ac_objext
15764 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15766 _lt_linker_boilerplate=`cat conftest.err`
15770 # Allow CC to be a program name with arguments.
15775 for cc_temp in $compiler""; do
15777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15783 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15786 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15787 archive_cmds_need_lc_GCJ=no
15789 old_archive_cmds_GCJ=$old_archive_cmds
15792 lt_prog_compiler_no_builtin_flag_GCJ=
15794 if test "$GCC" = yes; then
15795 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15798 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15799 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15800 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 lt_cv_prog_compiler_rtti_exceptions=no
15804 ac_outfile=conftest.$ac_objext
15805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15806 lt_compiler_flag="-fno-rtti -fno-exceptions"
15807 # Insert the option either (1) after the last *FLAGS variable, or
15808 # (2) before a word containing "conftest.", or (3) at the end.
15809 # Note that $ac_compile itself does not contain backslashes and begins
15810 # with a dollar sign (not a hyphen), so the echo should work correctly.
15811 # The option is referenced via a variable to avoid confusing sed.
15812 lt_compile=`echo "$ac_compile" | $SED \
15813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15815 -e 's:$: $lt_compiler_flag:'`
15816 (eval echo "\"\$as_me:15816: $lt_compile\"" >&5)
15817 (eval "$lt_compile" 2>conftest.err)
15819 cat conftest.err >&5
15820 echo "$as_me:15820: \$? = $ac_status" >&5
15821 if (exit $ac_status) && test -s "$ac_outfile"; then
15822 # The compiler can only warn and ignore the option if not recognized
15823 # So say no if there are warnings other than the usual output.
15824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15827 lt_cv_prog_compiler_rtti_exceptions=yes
15833 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15837 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15844 lt_prog_compiler_wl_GCJ=
15845 lt_prog_compiler_pic_GCJ=
15846 lt_prog_compiler_static_GCJ=
15848 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15851 if test "$GCC" = yes; then
15852 lt_prog_compiler_wl_GCJ='-Wl,'
15853 lt_prog_compiler_static_GCJ='-static'
15857 # All AIX code is PIC.
15858 if test "$host_cpu" = ia64; then
15859 # AIX 5 now supports IA64 processor
15860 lt_prog_compiler_static_GCJ='-Bstatic'
15865 # FIXME: we need at least 68020 code to build shared libraries, but
15866 # adding the `-m68020' flag to GCC prevents building anything better,
15868 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15871 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15872 # PIC is the default for these OSes.
15875 mingw* | pw32* | os2*)
15876 # This hack is so that the source file can tell whether it is being
15877 # built for inclusion in a dll (and should export symbols for example).
15878 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15881 darwin* | rhapsody*)
15882 # PIC is the default on this platform
15883 # Common symbols not allowed in MH_DYLIB files
15884 lt_prog_compiler_pic_GCJ='-fno-common'
15888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15889 # Instead, we relocate shared libraries at runtime.
15893 # Just because we use GCC doesn't mean we suddenly get shared libraries
15894 # on systems that don't support them.
15895 lt_prog_compiler_can_build_shared_GCJ=no
15900 if test -d /usr/nec; then
15901 lt_prog_compiler_pic_GCJ=-Kconform_pic
15906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15907 # not for PA HP-UX.
15913 lt_prog_compiler_pic_GCJ='-fPIC'
15919 lt_prog_compiler_pic_GCJ='-fPIC'
15923 # PORTME Check for flag to pass linker flags through the system compiler.
15926 lt_prog_compiler_wl_GCJ='-Wl,'
15927 if test "$host_cpu" = ia64; then
15928 # AIX 5 now supports IA64 processor
15929 lt_prog_compiler_static_GCJ='-Bstatic'
15931 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15935 # PIC is the default on this platform
15936 # Common symbols not allowed in MH_DYLIB files
15937 case $cc_basename in
15939 lt_prog_compiler_pic_GCJ='-qnocommon'
15940 lt_prog_compiler_wl_GCJ='-Wl,'
15945 mingw* | pw32* | os2*)
15946 # This hack is so that the source file can tell whether it is being
15947 # built for inclusion in a dll (and should export symbols for example).
15948 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15951 hpux9* | hpux10* | hpux11*)
15952 lt_prog_compiler_wl_GCJ='-Wl,'
15953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15954 # not for PA HP-UX.
15960 lt_prog_compiler_pic_GCJ='+Z'
15963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15964 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15967 irix5* | irix6* | nonstopux*)
15968 lt_prog_compiler_wl_GCJ='-Wl,'
15969 # PIC (with -KPIC) is the default.
15970 lt_prog_compiler_static_GCJ='-non_shared'
15974 lt_prog_compiler_pic_GCJ='-KPIC'
15975 lt_prog_compiler_static_GCJ='-Bstatic'
15979 case $cc_basename in
15981 lt_prog_compiler_wl_GCJ='-Wl,'
15982 lt_prog_compiler_pic_GCJ='-KPIC'
15983 lt_prog_compiler_static_GCJ='-static'
15985 pgcc* | pgf77* | pgf90* | pgf95*)
15986 # Portland Group compilers (*not* the Pentium gcc compiler,
15987 # which looks to be a dead project)
15988 lt_prog_compiler_wl_GCJ='-Wl,'
15989 lt_prog_compiler_pic_GCJ='-fpic'
15990 lt_prog_compiler_static_GCJ='-Bstatic'
15993 lt_prog_compiler_wl_GCJ='-Wl,'
15994 # All Alpha code is PIC.
15995 lt_prog_compiler_static_GCJ='-non_shared'
16000 osf3* | osf4* | osf5*)
16001 lt_prog_compiler_wl_GCJ='-Wl,'
16002 # All OSF/1 code is PIC.
16003 lt_prog_compiler_static_GCJ='-non_shared'
16007 lt_prog_compiler_pic_GCJ='-KPIC'
16008 lt_prog_compiler_static_GCJ='-Bstatic'
16009 case $cc_basename in
16010 f77* | f90* | f95*)
16011 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16013 lt_prog_compiler_wl_GCJ='-Wl,';;
16018 lt_prog_compiler_wl_GCJ='-Qoption ld '
16019 lt_prog_compiler_pic_GCJ='-PIC'
16020 lt_prog_compiler_static_GCJ='-Bstatic'
16023 sysv4 | sysv4.2uw2* | sysv4.3*)
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 lt_prog_compiler_pic_GCJ='-KPIC'
16026 lt_prog_compiler_static_GCJ='-Bstatic'
16030 if test -d /usr/nec ;then
16031 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16032 lt_prog_compiler_static_GCJ='-Bstatic'
16036 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16037 lt_prog_compiler_wl_GCJ='-Wl,'
16038 lt_prog_compiler_pic_GCJ='-KPIC'
16039 lt_prog_compiler_static_GCJ='-Bstatic'
16043 lt_prog_compiler_wl_GCJ='-Wl,'
16044 lt_prog_compiler_can_build_shared_GCJ=no
16048 lt_prog_compiler_pic_GCJ='-pic'
16049 lt_prog_compiler_static_GCJ='-Bstatic'
16053 lt_prog_compiler_can_build_shared_GCJ=no
16058 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16059 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16062 # Check to make sure the PIC flag actually works.
16064 if test -n "$lt_prog_compiler_pic_GCJ"; then
16066 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16068 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 lt_prog_compiler_pic_works_GCJ=no
16072 ac_outfile=conftest.$ac_objext
16073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16074 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16075 # Insert the option either (1) after the last *FLAGS variable, or
16076 # (2) before a word containing "conftest.", or (3) at the end.
16077 # Note that $ac_compile itself does not contain backslashes and begins
16078 # with a dollar sign (not a hyphen), so the echo should work correctly.
16079 # The option is referenced via a variable to avoid confusing sed.
16080 lt_compile=`echo "$ac_compile" | $SED \
16081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083 -e 's:$: $lt_compiler_flag:'`
16084 (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085 (eval "$lt_compile" 2>conftest.err)
16087 cat conftest.err >&5
16088 echo "$as_me:16088: \$? = $ac_status" >&5
16089 if (exit $ac_status) && test -s "$ac_outfile"; then
16090 # The compiler can only warn and ignore the option if not recognized
16091 # So say no if there are warnings other than the usual output.
16092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16095 lt_prog_compiler_pic_works_GCJ=yes
16101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16102 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16104 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16105 case $lt_prog_compiler_pic_GCJ in
16107 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16110 lt_prog_compiler_pic_GCJ=
16111 lt_prog_compiler_can_build_shared_GCJ=no
16116 # For platforms which do not support PIC, -DPIC is meaningless:
16118 lt_prog_compiler_pic_GCJ=
16121 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16126 # Check to make sure the static flag actually works.
16128 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16129 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16130 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16131 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 lt_prog_compiler_static_works_GCJ=no
16135 save_LDFLAGS="$LDFLAGS"
16136 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16137 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16139 # The linker can only warn and ignore the option if not recognized
16140 # So say no if there are warnings
16141 if test -s conftest.err; then
16142 # Append any errors to the config.log.
16143 cat conftest.err 1>&5
16144 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16146 if diff conftest.exp conftest.er2 >/dev/null; then
16147 lt_prog_compiler_static_works_GCJ=yes
16150 lt_prog_compiler_static_works_GCJ=yes
16154 LDFLAGS="$save_LDFLAGS"
16157 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16158 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16160 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16163 lt_prog_compiler_static_GCJ=
16167 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16169 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 lt_cv_prog_compiler_c_o_GCJ=no
16173 $rm -r conftest 2>/dev/null
16177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16179 lt_compiler_flag="-o out/conftest2.$ac_objext"
16180 # Insert the option either (1) after the last *FLAGS variable, or
16181 # (2) before a word containing "conftest.", or (3) at the end.
16182 # Note that $ac_compile itself does not contain backslashes and begins
16183 # with a dollar sign (not a hyphen), so the echo should work correctly.
16184 lt_compile=`echo "$ac_compile" | $SED \
16185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16187 -e 's:$: $lt_compiler_flag:'`
16188 (eval echo "\"\$as_me:16188: $lt_compile\"" >&5)
16189 (eval "$lt_compile" 2>out/conftest.err)
16191 cat out/conftest.err >&5
16192 echo "$as_me:16192: \$? = $ac_status" >&5
16193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16195 # The compiler can only warn and ignore the option if not recognized
16196 # So say no if there are warnings
16197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16198 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16199 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16200 lt_cv_prog_compiler_c_o_GCJ=yes
16205 # SGI C++ compiler will create directory out/ii_files/ for
16206 # template instantiation
16207 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16208 $rm out/* && rmdir out
16214 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16218 hard_links="nottested"
16219 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16220 # do not overwrite the value of need_locks provided by the user
16221 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16227 ln conftest.a conftest.b 2>&5 || hard_links=no
16228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16229 echo "$as_me:$LINENO: result: $hard_links" >&5
16230 echo "${ECHO_T}$hard_links" >&6
16231 if test "$hard_links" = no; then
16232 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16240 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16244 allow_undefined_flag_GCJ=
16245 enable_shared_with_static_runtimes_GCJ=no
16247 archive_expsym_cmds_GCJ=
16248 old_archive_From_new_cmds_GCJ=
16249 old_archive_from_expsyms_cmds_GCJ=
16250 export_dynamic_flag_spec_GCJ=
16251 whole_archive_flag_spec_GCJ=
16252 thread_safe_flag_spec_GCJ=
16253 hardcode_libdir_flag_spec_GCJ=
16254 hardcode_libdir_flag_spec_ld_GCJ=
16255 hardcode_libdir_separator_GCJ=
16256 hardcode_direct_GCJ=no
16257 hardcode_minus_L_GCJ=no
16258 hardcode_shlibpath_var_GCJ=unsupported
16259 link_all_deplibs_GCJ=unknown
16260 hardcode_automatic_GCJ=no
16262 module_expsym_cmds_GCJ=
16263 always_export_symbols_GCJ=no
16264 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16265 # include_expsyms should be a list of space-separated symbols to be *always*
16266 # included in the symbol list
16267 include_expsyms_GCJ=
16268 # exclude_expsyms can be an extended regexp of symbols to exclude
16269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16271 # as well as any symbol that contains `d'.
16272 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16274 # platforms (ab)use it in PIC code, but their linkers get confused if
16275 # the symbol is explicitly referenced. Since portable code cannot
16276 # rely on this symbol name, it's probably fine to never include it in
16277 # preloaded symbol tables.
16278 extract_expsyms_cmds=
16279 # Just being paranoid about ensuring that cc_basename is set.
16280 for cc_temp in $compiler""; do
16282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16288 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16291 cygwin* | mingw* | pw32*)
16292 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16293 # When not using gcc, we currently assume that we are using
16294 # Microsoft Visual C++.
16295 if test "$GCC" != yes; then
16300 # we just hope/assume this is gcc and not c89 (= MSVC++)
16309 if test "$with_gnu_ld" = yes; then
16310 # If archive_cmds runs LD, not CC, wlarc should be empty
16313 # Set some defaults for GNU ld with shared library support. These
16314 # are reset later if shared libraries are not supported. Putting them
16315 # here allows them to be overridden if necessary.
16316 runpath_var=LD_RUN_PATH
16317 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16318 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16319 # ancient GNU ld didn't support --whole-archive et. al.
16320 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16321 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16323 whole_archive_flag_spec_GCJ=
16325 supports_anon_versioning=no
16326 case `$LD -v 2>/dev/null` in
16327 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16330 *\ 2.11.*) ;; # other 2.11 versions
16331 *) supports_anon_versioning=yes ;;
16334 # See if GNU ld supports shared libraries.
16336 aix3* | aix4* | aix5*)
16337 # On AIX/PPC, the GNU linker is very broken
16338 if test "$host_cpu" != ia64; then
16342 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16343 *** to be unable to reliably create shared libraries on AIX.
16344 *** Therefore, libtool is disabling shared libraries support. If you
16345 *** really care for shared libraries, you may want to modify your PATH
16346 *** so that a non-GNU linker is found, and then restart.
16353 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)'
16354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16355 hardcode_minus_L_GCJ=yes
16357 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16358 # that the semantics of dynamic libraries on AmigaOS, at least up
16359 # to version 4, is to share data among multiple programs linked
16360 # with the same dynamic library. Since this doesn't match the
16361 # behavior of shared libraries on other platforms, we can't use
16367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16368 allow_undefined_flag_GCJ=unsupported
16369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16370 # support --undefined. This deserves some investigation. FIXME
16371 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16377 cygwin* | mingw* | pw32*)
16378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16379 # as there is no search path for DLLs.
16380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16381 allow_undefined_flag_GCJ=unsupported
16382 always_export_symbols_GCJ=no
16383 enable_shared_with_static_runtimes_GCJ=yes
16384 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16386 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16388 # If the export-symbols file already is a .def file (1st line
16389 # is EXPORTS), use it as is; otherwise, prepend...
16390 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16391 cp $export_symbols $output_objdir/$soname.def;
16393 echo EXPORTS > $output_objdir/$soname.def;
16394 cat $export_symbols >> $output_objdir/$soname.def;
16396 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16403 hardcode_direct_GCJ=no
16404 hardcode_shlibpath_var_GCJ=no
16405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16406 export_dynamic_flag_spec_GCJ='${wl}-E'
16407 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16408 # Instead, shared libraries are loaded at an image base (0x10000000 by
16409 # default) and relocated if they conflict, which is a slow very memory
16410 # consuming and fragmenting process. To avoid this, we pick a random,
16411 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16412 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16413 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'
16414 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'
16418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16420 case $cc_basename,$host_cpu in
16421 pgcc*) # Portland Group C compiler
16422 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'
16423 tmp_addflag=' $pic_flag'
16425 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16426 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'
16427 tmp_addflag=' $pic_flag -Mnomain' ;;
16428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16429 tmp_addflag=' -i_dynamic' ;;
16430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16431 tmp_addflag=' -i_dynamic -nofor_main' ;;
16432 ifc* | ifort*) # Intel Fortran compiler
16433 tmp_addflag=' -nofor_main' ;;
16435 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437 if test $supports_anon_versioning = yes; then
16438 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16440 $echo "local: *; };" >> $output_objdir/$libname.ver~
16441 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16443 link_all_deplibs_GCJ=no
16449 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16450 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16451 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16454 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16460 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16464 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16465 *** create shared libraries on Solaris systems. Therefore, libtool
16466 *** is disabling shared libraries support. We urge you to upgrade GNU
16467 *** binutils to release 2.9.1 or newer. Another option is to modify
16468 *** your PATH or compiler configuration so that the native linker is
16469 *** used, and then restart.
16472 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16473 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16474 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16481 case `$LD -v 2>&1` in
16482 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16486 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16487 *** reliably create shared libraries on SCO systems. Therefore, libtool
16488 *** is disabling shared libraries support. We urge you to upgrade GNU
16489 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16490 *** your PATH or compiler configuration so that the native linker is
16491 *** used, and then restart.
16496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16497 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16508 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16510 hardcode_direct_GCJ=yes
16511 hardcode_shlibpath_var_GCJ=no
16515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16524 if test "$ld_shlibs_GCJ" = no; then
16526 hardcode_libdir_flag_spec_GCJ=
16527 export_dynamic_flag_spec_GCJ=
16528 whole_archive_flag_spec_GCJ=
16531 # PORTME fill in a description of your system's linker (not GNU ld)
16534 allow_undefined_flag_GCJ=unsupported
16535 always_export_symbols_GCJ=yes
16536 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'
16537 # Note: this linker hardcodes the directories in LIBPATH if there
16538 # are no directories specified by -L.
16539 hardcode_minus_L_GCJ=yes
16540 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16541 # Neither direct hardcoding nor static linking is supported with a
16543 hardcode_direct_GCJ=unsupported
16548 if test "$host_cpu" = ia64; then
16549 # On IA64, the linker does run time linking by default, so we don't
16550 # have to do anything special.
16551 aix_use_runtimelinking=no
16552 exp_sym_flag='-Bexport'
16555 # If we're using GNU nm, then we don't want the "-C" option.
16556 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16557 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16558 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'
16560 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'
16562 aix_use_runtimelinking=no
16564 # Test if we are trying to use run time linking or normal
16565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16566 # need to do runtime linking.
16567 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16568 for ld_flag in $LDFLAGS; do
16569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16570 aix_use_runtimelinking=yes
16577 exp_sym_flag='-bexport'
16578 no_entry_flag='-bnoentry'
16581 # When large executables or shared objects are built, AIX ld can
16582 # have problems creating the table of contents. If linking a library
16583 # or program results in "error TOC overflow" add -mminimal-toc to
16584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16587 archive_cmds_GCJ=''
16588 hardcode_direct_GCJ=yes
16589 hardcode_libdir_separator_GCJ=':'
16590 link_all_deplibs_GCJ=yes
16592 if test "$GCC" = yes; then
16593 case $host_os in aix4.[012]|aix4.[012].*)
16594 # We only want to do this on AIX 4.2 and lower, the check
16595 # below for broken collect2 doesn't work under 4.3+
16596 collect2name=`${CC} -print-prog-name=collect2`
16597 if test -f "$collect2name" && \
16598 strings "$collect2name" | grep resolve_lib_name >/dev/null
16600 # We have reworked collect2
16601 hardcode_direct_GCJ=yes
16603 # We have old collect2
16604 hardcode_direct_GCJ=unsupported
16605 # It fails to find uninstalled libraries when the uninstalled
16606 # path is not listed in the libpath. Setting hardcode_minus_L
16607 # to unsupported forces relinking
16608 hardcode_minus_L_GCJ=yes
16609 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16610 hardcode_libdir_separator_GCJ=
16614 shared_flag='-shared'
16615 if test "$aix_use_runtimelinking" = yes; then
16616 shared_flag="$shared_flag "'${wl}-G'
16620 if test "$host_cpu" = ia64; then
16621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16622 # chokes on -Wl,-G. The following line is correct:
16625 if test "$aix_use_runtimelinking" = yes; then
16626 shared_flag='${wl}-G'
16628 shared_flag='${wl}-bM:SRE'
16633 # It seems that -bexpall does not export symbols beginning with
16634 # underscore (_), so it is better to generate a list of symbols to export.
16635 always_export_symbols_GCJ=yes
16636 if test "$aix_use_runtimelinking" = yes; then
16637 # Warning - without using the other runtime loading flags (-brtl),
16638 # -berok will link without error, but may produce a broken library.
16639 allow_undefined_flag_GCJ='-berok'
16640 # Determine the default libpath from the value encoded in an empty executable.
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658 (eval $ac_link) 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; } &&
16671 { ac_try='test -s conftest$ac_exeext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16680 # Check for a 64-bit object if we didn't find anything.
16681 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; }
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16688 rm -f conftest.err conftest.$ac_objext \
16689 conftest$ac_exeext conftest.$ac_ext
16690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16692 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16693 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"
16695 if test "$host_cpu" = ia64; then
16696 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16697 allow_undefined_flag_GCJ="-z nodefs"
16698 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"
16700 # Determine the default libpath from the value encoded in an empty executable.
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16718 (eval $ac_link) 2>conftest.er1
16720 grep -v '^ *+' conftest.er1 >conftest.err
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest$ac_exeext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16740 # Check for a 64-bit object if we didn't find anything.
16741 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; }
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16748 rm -f conftest.err conftest.$ac_objext \
16749 conftest$ac_exeext conftest.$ac_ext
16750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16752 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16753 # Warning - without using the other run time loading flags,
16754 # -berok will link without error, but may produce a broken library.
16755 no_undefined_flag_GCJ=' ${wl}-bernotok'
16756 allow_undefined_flag_GCJ=' ${wl}-berok'
16757 # Exported symbols can be pulled into shared objects from archives
16758 whole_archive_flag_spec_GCJ='$convenience'
16759 archive_cmds_need_lc_GCJ=yes
16760 # This is similar to how AIX traditionally builds its shared libraries.
16761 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'
16767 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)'
16768 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16769 hardcode_minus_L_GCJ=yes
16770 # see comment about different semantics on the GNU ld section
16775 export_dynamic_flag_spec_GCJ=-rdynamic
16778 cygwin* | mingw* | pw32*)
16779 # When not using gcc, we currently assume that we are using
16780 # Microsoft Visual C++.
16781 # hardcode_libdir_flag_spec is actually meaningless, as there is
16782 # no search path for DLLs.
16783 hardcode_libdir_flag_spec_GCJ=' '
16784 allow_undefined_flag_GCJ=unsupported
16785 # Tell ltmain to make .lib files, not .a files.
16787 # Tell ltmain to make .dll files, not .so files.
16789 # FIXME: Setting linknames here is a bad hack.
16790 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16791 # The linker will automatically build a .lib file if we build a DLL.
16792 old_archive_From_new_cmds_GCJ='true'
16793 # FIXME: Should let the user specify the lib program.
16794 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16795 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16796 enable_shared_with_static_runtimes_GCJ=yes
16799 darwin* | rhapsody*)
16801 rhapsody* | darwin1.[012])
16802 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16805 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16806 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16808 case ${MACOSX_DEPLOYMENT_TARGET} in
16810 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16813 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16819 archive_cmds_need_lc_GCJ=no
16820 hardcode_direct_GCJ=no
16821 hardcode_automatic_GCJ=yes
16822 hardcode_shlibpath_var_GCJ=unsupported
16823 whole_archive_flag_spec_GCJ=''
16824 link_all_deplibs_GCJ=yes
16825 if test "$GCC" = yes ; then
16826 output_verbose_link_cmd='echo'
16827 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16828 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16830 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}'
16831 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}'
16833 case $cc_basename in
16835 output_verbose_link_cmd='echo'
16836 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16837 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16839 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}'
16840 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}'
16850 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16852 hardcode_shlibpath_var_GCJ=no
16859 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16860 # support. Future versions do this automatically, but an explicit c++rt0.o
16861 # does not break anything, and helps significantly (at the cost of a little
16864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16865 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16866 hardcode_direct_GCJ=yes
16867 hardcode_shlibpath_var_GCJ=no
16870 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16872 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16873 hardcode_direct_GCJ=yes
16874 hardcode_minus_L_GCJ=yes
16875 hardcode_shlibpath_var_GCJ=no
16878 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16879 freebsd* | dragonfly*)
16880 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16881 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16882 hardcode_direct_GCJ=yes
16883 hardcode_shlibpath_var_GCJ=no
16886 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16888 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16889 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16890 hardcode_direct_GCJ=yes
16891 hardcode_shlibpath_var_GCJ=no
16892 link_all_deplibs_GCJ=no
16896 if test "$GCC" = yes; then
16897 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'
16899 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'
16901 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16902 hardcode_libdir_separator_GCJ=:
16903 hardcode_direct_GCJ=yes
16905 # hardcode_minus_L: Not really in the search PATH,
16906 # but as the default location of the library.
16907 hardcode_minus_L_GCJ=yes
16908 export_dynamic_flag_spec_GCJ='${wl}-E'
16912 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16913 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16915 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16917 if test "$with_gnu_ld" = no; then
16918 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16919 hardcode_libdir_separator_GCJ=:
16921 hardcode_direct_GCJ=yes
16922 export_dynamic_flag_spec_GCJ='${wl}-E'
16924 # hardcode_minus_L: Not really in the search PATH,
16925 # but as the default location of the library.
16926 hardcode_minus_L_GCJ=yes
16931 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16934 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16937 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16940 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16946 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16949 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16952 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16956 if test "$with_gnu_ld" = no; then
16957 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16958 hardcode_libdir_separator_GCJ=:
16962 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16963 hardcode_direct_GCJ=no
16964 hardcode_shlibpath_var_GCJ=no
16967 hardcode_direct_GCJ=yes
16968 export_dynamic_flag_spec_GCJ='${wl}-E'
16970 # hardcode_minus_L: Not really in the search PATH,
16971 # but as the default location of the library.
16972 hardcode_minus_L_GCJ=yes
16978 irix5* | irix6* | nonstopux*)
16979 if test "$GCC" = yes; then
16980 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'
16982 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'
16983 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16986 hardcode_libdir_separator_GCJ=:
16987 link_all_deplibs_GCJ=yes
16990 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16992 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16994 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16996 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16997 hardcode_direct_GCJ=yes
16998 hardcode_shlibpath_var_GCJ=no
17002 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003 hardcode_direct_GCJ=yes
17004 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17005 hardcode_libdir_separator_GCJ=:
17006 hardcode_shlibpath_var_GCJ=no
17010 hardcode_direct_GCJ=yes
17011 hardcode_shlibpath_var_GCJ=no
17012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17013 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17014 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17016 export_dynamic_flag_spec_GCJ='${wl}-E'
17019 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17020 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17024 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17032 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17033 hardcode_minus_L_GCJ=yes
17034 allow_undefined_flag_GCJ=unsupported
17035 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'
17036 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17040 if test "$GCC" = yes; then
17041 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17042 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'
17044 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17045 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'
17047 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17048 hardcode_libdir_separator_GCJ=:
17051 osf4* | osf5*) # as osf3* with the addition of -msym flag
17052 if test "$GCC" = yes; then
17053 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17054 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'
17055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17057 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17058 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'
17059 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~
17060 $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'
17062 # Both c and cxx compiler support -rpath directly
17063 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17065 hardcode_libdir_separator_GCJ=:
17069 no_undefined_flag_GCJ=' -z text'
17070 if test "$GCC" = yes; then
17072 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17073 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17074 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17077 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17078 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17081 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17082 hardcode_shlibpath_var_GCJ=no
17084 solaris2.[0-5] | solaris2.[0-5].*) ;;
17086 # The compiler driver will combine linker options so we
17087 # cannot just pass the convience library names through
17088 # without $wl, iff we do not link with $LD.
17089 # Luckily, gcc supports the same syntax we need for Sun Studio.
17090 # Supported since Solaris 2.6 (maybe 2.5.1?)
17093 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17095 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' ;;
17098 link_all_deplibs_GCJ=yes
17102 if test "x$host_vendor" = xsequent; then
17103 # Use $CC to link under sequent, because it throws in some extra .o
17104 # files that make .init and .fini sections work.
17105 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17107 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17110 hardcode_direct_GCJ=yes
17111 hardcode_minus_L_GCJ=yes
17112 hardcode_shlibpath_var_GCJ=no
17116 case $host_vendor in
17118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17119 hardcode_direct_GCJ=yes # is this really true???
17122 ## LD is ld it makes a PLAMLIB
17123 ## CC just makes a GrossModule.
17124 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17125 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17126 hardcode_direct_GCJ=no
17129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17130 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17133 runpath_var='LD_RUN_PATH'
17134 hardcode_shlibpath_var_GCJ=no
17138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17139 hardcode_shlibpath_var_GCJ=no
17140 export_dynamic_flag_spec_GCJ='-Bexport'
17144 if test -d /usr/nec; then
17145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17146 hardcode_shlibpath_var_GCJ=no
17147 runpath_var=LD_RUN_PATH
17148 hardcode_runpath_var=yes
17153 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17154 no_undefined_flag_GCJ='${wl}-z,text'
17155 archive_cmds_need_lc_GCJ=no
17156 hardcode_shlibpath_var_GCJ=no
17157 runpath_var='LD_RUN_PATH'
17159 if test "$GCC" = yes; then
17160 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17161 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17163 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17164 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17168 sysv5* | sco3.2v5* | sco5v6*)
17169 # Note: We can NOT use -z defs as we might desire, because we do not
17170 # link with -lc, and that would cause any symbols used from libc to
17171 # always be unresolved, which means just about no library would
17172 # ever link correctly. If we're not using GNU ld we use -z text
17173 # though, which does catch some bad symbols but isn't as heavy-handed
17175 no_undefined_flag_GCJ='${wl}-z,text'
17176 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17177 archive_cmds_need_lc_GCJ=no
17178 hardcode_shlibpath_var_GCJ=no
17179 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17180 hardcode_libdir_separator_GCJ=':'
17181 link_all_deplibs_GCJ=yes
17182 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17183 runpath_var='LD_RUN_PATH'
17185 if test "$GCC" = yes; then
17186 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17187 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17189 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17190 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17196 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17197 hardcode_shlibpath_var_GCJ=no
17206 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17207 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17208 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17211 # Do we need to explicitly link libc?
17213 case "x$archive_cmds_need_lc_GCJ" in
17215 # Assume -lc should be added
17216 archive_cmds_need_lc_GCJ=yes
17218 if test "$enable_shared" = yes && test "$GCC" = yes; then
17219 case $archive_cmds_GCJ in
17221 # FIXME: we may have to deal with multi-command sequences.
17224 # Test whether the compiler implicitly links with -lc since on some
17225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17226 # to ld, don't add -lc before -lgcc.
17227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233 (eval $ac_compile) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } 2>conftest.err; then
17239 libobjs=conftest.$ac_objext
17241 wl=$lt_prog_compiler_wl_GCJ
17242 pic_flag=$lt_prog_compiler_pic_GCJ
17248 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17249 allow_undefined_flag_GCJ=
17250 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17251 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }
17256 archive_cmds_need_lc_GCJ=no
17258 archive_cmds_need_lc_GCJ=yes
17260 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17262 cat conftest.err 1>&5
17265 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17266 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17273 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17274 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17275 library_names_spec=
17276 libname_spec='lib$name'
17280 postuninstall_cmds=
17284 shlibpath_overrides_runpath=unknown
17286 dynamic_linker="$host_os ld.so"
17287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17288 if test "$GCC" = yes; then
17289 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17290 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17291 # if the path contains ";" then we assume it to be the separator
17292 # otherwise default to the standard path separator (i.e. ":") - it is
17293 # assumed that no part of a normal pathname contains ";" but that should
17294 # okay in the real world where ";" in dirpaths is itself problematic.
17295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17300 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17302 need_lib_prefix=unknown
17303 hardcode_into_libs=no
17305 # when you set need_version to no, make sure it does not cause -set_version
17306 # flags to be left without arguments
17307 need_version=unknown
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17313 shlibpath_var=LIBPATH
17315 # AIX 3 has no versioning support, so we append a major version to the name.
17316 soname_spec='${libname}${release}${shared_ext}$major'
17323 hardcode_into_libs=yes
17324 if test "$host_cpu" = ia64; then
17325 # AIX 5 supports IA64
17326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17327 shlibpath_var=LD_LIBRARY_PATH
17329 # With GCC up to 2.95.x, collect2 would create an import file
17330 # for dependence libraries. The import file would start with
17331 # the line `#! .'. This would cause the generated library to
17332 # depend on `.', always an invalid library. This was fixed in
17333 # development snapshots of GCC prior to 3.0.
17335 aix4 | aix4.[01] | aix4.[01].*)
17336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17338 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17341 can_build_shared=no
17345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17346 # soname into executable. Probably we can add versioning support to
17347 # collect2, so additional links can be useful in future.
17348 if test "$aix_use_runtimelinking" = yes; then
17349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17350 # instead of lib<name>.a to let people know that these are not
17351 # typical AIX shared libraries.
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354 # We preserve .a as extension for shared libraries through AIX4.2
17355 # and later when we are not doing run time linking.
17356 library_names_spec='${libname}${release}.a $libname.a'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17359 shlibpath_var=LIBPATH
17364 library_names_spec='$libname.ixlibrary $libname.a'
17365 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17366 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'
17370 library_names_spec='${libname}${shared_ext}'
17371 dynamic_linker="$host_os ld.so"
17372 shlibpath_var=LIBRARY_PATH
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17384 # the default ld.so.conf also contains /usr/contrib/lib and
17385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17386 # libtool to hard-code these into programs
17389 cygwin* | mingw* | pw32*)
17390 version_type=windows
17395 case $GCC,$host_os in
17396 yes,cygwin* | yes,mingw* | yes,pw32*)
17397 library_names_spec='$libname.dll.a'
17398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17399 postinstall_cmds='base_file=`basename \${file}`~
17400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17401 dldir=$destdir/`dirname \$dlpath`~
17402 test -d \$dldir || mkdir -p \$dldir~
17403 $install_prog $dir/$dlname \$dldir/$dlname~
17404 chmod a+x \$dldir/$dlname'
17405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17406 dlpath=$dir/\$dldll~
17408 shlibpath_overrides_runpath=yes
17412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17413 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17414 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17417 # MinGW DLLs use traditional 'lib' prefix
17418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17419 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17420 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17421 # It is most probably a Windows format PATH printed by
17422 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17423 # path with ; separators, and with drive letters. We can handle the
17424 # drive letters (cygwin fileutils understands them), so leave them,
17425 # especially as we might pass files found there to a mingw objdump,
17426 # which wouldn't understand a cygwinified path. Ahh.
17427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17433 # pw32 DLLs use 'pw' prefix rather than 'lib'
17434 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17440 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17443 dynamic_linker='Win32 ld.exe'
17444 # FIXME: first we should search . and the directory the executable is in
17448 darwin* | rhapsody*)
17449 dynamic_linker="$host_os dyld"
17450 version_type=darwin
17453 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17454 soname_spec='${libname}${release}${major}$shared_ext'
17455 shlibpath_overrides_runpath=yes
17456 shlibpath_var=DYLD_LIBRARY_PATH
17457 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17458 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17459 if test "$GCC" = yes; then
17460 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"`
17462 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17472 soname_spec='${libname}${release}${shared_ext}$major'
17473 shlibpath_var=LD_LIBRARY_PATH
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17485 soname_spec='${libname}${release}${shared_ext}$major'
17486 shlibpath_var=LD_LIBRARY_PATH
17487 shlibpath_overrides_runpath=no
17488 hardcode_into_libs=yes
17489 dynamic_linker='GNU ld.so'
17492 freebsd* | dragonfly*)
17493 # DragonFly does not have aout. When/if they implement a new
17494 # versioning mechanism, adjust this.
17495 if test -x /usr/bin/objformat; then
17496 objformat=`/usr/bin/objformat`
17499 freebsd[123]*) objformat=aout ;;
17500 *) objformat=elf ;;
17503 version_type=freebsd-$objformat
17504 case $version_type in
17506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17515 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=yes
17520 freebsd3.[01]* | freebsdelf3.[01]*)
17521 shlibpath_overrides_runpath=yes
17522 hardcode_into_libs=yes
17524 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17525 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17526 shlibpath_overrides_runpath=no
17527 hardcode_into_libs=yes
17529 freebsd*) # from 4.6 on
17530 shlibpath_overrides_runpath=yes
17531 hardcode_into_libs=yes
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 shlibpath_var=LD_LIBRARY_PATH
17543 hardcode_into_libs=yes
17546 hpux9* | hpux10* | hpux11*)
17547 # Give a soname corresponding to the major version so that dld.sl refuses to
17548 # link against other versions.
17555 hardcode_into_libs=yes
17556 dynamic_linker="$host_os dld.so"
17557 shlibpath_var=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560 soname_spec='${libname}${release}${shared_ext}$major'
17561 if test "X$HPUX_IA64_MODE" = X32; then
17562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17570 hardcode_into_libs=yes
17571 dynamic_linker="$host_os dld.sl"
17572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575 soname_spec='${libname}${release}${shared_ext}$major'
17576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17581 dynamic_linker="$host_os dld.sl"
17582 shlibpath_var=SHLIB_PATH
17583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585 soname_spec='${libname}${release}${shared_ext}$major'
17588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17589 postinstall_cmds='chmod 555 $lib'
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17599 shlibpath_var=LD_LIBRARY_PATH
17600 shlibpath_overrides_runpath=no
17601 hardcode_into_libs=yes
17604 irix5* | irix6* | nonstopux*)
17606 nonstopux*) version_type=nonstopux ;;
17608 if test "$lt_cv_prog_gnu_ld" = yes; then
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17619 irix5* | nonstopux*)
17620 libsuff= shlibsuff=
17623 case $LD in # libtool.m4 will add one of these switches to LD
17624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17625 libsuff= shlibsuff= libmagic=32-bit;;
17626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17627 libsuff=32 shlibsuff=N32 libmagic=N32;;
17628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17630 *) libsuff= shlibsuff= libmagic=never-match;;
17634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17635 shlibpath_overrides_runpath=no
17636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17638 hardcode_into_libs=yes
17641 # No shared lib support for Linux oldld, aout, or coff.
17642 linux*oldld* | linux*aout* | linux*coff*)
17646 # This must be Linux ELF.
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=no
17656 # This implies no fast_install, which is unacceptable.
17657 # Some rework will be needed to allow for fast_install
17658 # before this can be enabled.
17659 hardcode_into_libs=yes
17661 # Append ld.so.conf contents to the search path
17662 if test -f /etc/ld.so.conf; then
17663 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' ' '`
17664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17667 # We used to test for /lib/ld.so.1 and disable shared libraries on
17668 # powerpc, because MkLinux only supported shared libraries with the
17669 # GNU dynamic linker. Since this was broken with cross compilers,
17670 # most powerpc-linux boxes support dynamic linking these days and
17671 # people can always --disable-shared, the test was removed, and we
17672 # assume the GNU/Linux dynamic linker is in use.
17673 dynamic_linker='GNU/Linux ld.so'
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17681 soname_spec='${libname}${release}${shared_ext}$major'
17682 shlibpath_var=LD_LIBRARY_PATH
17683 shlibpath_overrides_runpath=no
17684 hardcode_into_libs=yes
17685 dynamic_linker='NetBSD ld.elf_so'
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17693 soname_spec='${libname}${release}${shared_ext}$major'
17694 shlibpath_var=LD_LIBRARY_PATH
17695 shlibpath_overrides_runpath=no
17696 hardcode_into_libs=yes
17697 dynamic_linker='GNU ld.so'
17704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17707 dynamic_linker='NetBSD (a.out) ld.so'
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17710 soname_spec='${libname}${release}${shared_ext}$major'
17711 dynamic_linker='NetBSD ld.elf_so'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 shlibpath_overrides_runpath=yes
17715 hardcode_into_libs=yes
17720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 shlibpath_overrides_runpath=yes
17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 shlibpath_overrides_runpath=yes
17737 sys_lib_dlsearch_path_spec="/usr/lib"
17739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17741 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17742 *) need_version=no ;;
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17746 shlibpath_var=LD_LIBRARY_PATH
17747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17749 openbsd2.[89] | openbsd2.[89].*)
17750 shlibpath_overrides_runpath=no
17753 shlibpath_overrides_runpath=yes
17757 shlibpath_overrides_runpath=yes
17762 libname_spec='$name'
17765 library_names_spec='$libname${shared_ext} $libname.a'
17766 dynamic_linker='OS/2 ld.exe'
17767 shlibpath_var=LIBPATH
17770 osf3* | osf4* | osf5*)
17774 soname_spec='${libname}${release}${shared_ext}$major'
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776 shlibpath_var=LD_LIBRARY_PATH
17777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786 soname_spec='${libname}${release}${shared_ext}$major'
17787 shlibpath_var=LD_LIBRARY_PATH
17788 shlibpath_overrides_runpath=yes
17789 hardcode_into_libs=yes
17790 # ldd complains unless libraries are executable
17791 postinstall_cmds='chmod +x $lib'
17796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17797 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17798 shlibpath_var=LD_LIBRARY_PATH
17799 shlibpath_overrides_runpath=yes
17800 if test "$with_gnu_ld" = yes; then
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809 soname_spec='${libname}${release}${shared_ext}$major'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 case $host_vendor in
17813 shlibpath_overrides_runpath=no
17815 export_dynamic_flag_spec='${wl}-Blargedynsym'
17816 runpath_var=LD_RUN_PATH
17824 shlibpath_overrides_runpath=no
17825 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17831 if test -d /usr/nec ;then
17833 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17834 soname_spec='$libname${shared_ext}.$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17840 version_type=freebsd-elf
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17844 soname_spec='${libname}${release}${shared_ext}$major'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 hardcode_into_libs=yes
17847 if test "$with_gnu_ld" = yes; then
17848 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17849 shlibpath_overrides_runpath=no
17851 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17852 shlibpath_overrides_runpath=yes
17855 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17859 sys_lib_dlsearch_path_spec='/usr/lib'
17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17865 soname_spec='${libname}${release}${shared_ext}$major'
17866 shlibpath_var=LD_LIBRARY_PATH
17873 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17874 echo "${ECHO_T}$dynamic_linker" >&6
17875 test "$dynamic_linker" = no && can_build_shared=no
17877 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17878 if test "$GCC" = yes; then
17879 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17882 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17883 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17884 hardcode_action_GCJ=
17885 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17886 test -n "$runpath_var_GCJ" || \
17887 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17889 # We can hardcode non-existant directories.
17890 if test "$hardcode_direct_GCJ" != no &&
17891 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17892 # have to relink, otherwise we might link with an installed library
17893 # when we should be linking with a yet-to-be-installed one
17894 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17895 test "$hardcode_minus_L_GCJ" != no; then
17896 # Linking always hardcodes the temporary library directory.
17897 hardcode_action_GCJ=relink
17899 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17900 hardcode_action_GCJ=immediate
17903 # We cannot hardcode anything, or else we can only hardcode existing
17905 hardcode_action_GCJ=unsupported
17907 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17908 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17910 if test "$hardcode_action_GCJ" = relink; then
17911 # Fast installation is not supported
17912 enable_fast_install=no
17913 elif test "$shlibpath_overrides_runpath" = yes ||
17914 test "$enable_shared" = no; then
17915 # Fast installation is not necessary
17916 enable_fast_install=needless
17920 # The else clause should only fire when bootstrapping the
17921 # libtool distribution, otherwise you forgot to ship ltmain.sh
17922 # with your package, and you will get complaints that there are
17923 # no rules to generate ltmain.sh.
17924 if test -f "$ltmain"; then
17925 # See if we are running on zsh, and set the options which allow our commands through
17926 # without removal of \ escapes.
17927 if test -n "${ZSH_VERSION+set}" ; then
17928 setopt NO_GLOB_SUBST
17930 # Now quote all the things that may contain metacharacters while being
17931 # careful not to overquote the AC_SUBSTed values. We take copies of the
17932 # variables and quote the copies for generation of the libtool script.
17933 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17935 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17936 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17937 deplibs_check_method reload_flag reload_cmds need_locks \
17938 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17939 lt_cv_sys_global_symbol_to_c_name_address \
17940 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17941 old_postinstall_cmds old_postuninstall_cmds \
17945 lt_prog_compiler_wl_GCJ \
17946 lt_prog_compiler_pic_GCJ \
17947 lt_prog_compiler_static_GCJ \
17948 lt_prog_compiler_no_builtin_flag_GCJ \
17949 export_dynamic_flag_spec_GCJ \
17950 thread_safe_flag_spec_GCJ \
17951 whole_archive_flag_spec_GCJ \
17952 enable_shared_with_static_runtimes_GCJ \
17953 old_archive_cmds_GCJ \
17954 old_archive_from_new_cmds_GCJ \
17955 predep_objects_GCJ \
17956 postdep_objects_GCJ \
17959 compiler_lib_search_path_GCJ \
17961 archive_expsym_cmds_GCJ \
17962 postinstall_cmds_GCJ \
17963 postuninstall_cmds_GCJ \
17964 old_archive_from_expsyms_cmds_GCJ \
17965 allow_undefined_flag_GCJ \
17966 no_undefined_flag_GCJ \
17967 export_symbols_cmds_GCJ \
17968 hardcode_libdir_flag_spec_GCJ \
17969 hardcode_libdir_flag_spec_ld_GCJ \
17970 hardcode_libdir_separator_GCJ \
17971 hardcode_automatic_GCJ \
17973 module_expsym_cmds_GCJ \
17974 lt_cv_prog_compiler_c_o_GCJ \
17975 exclude_expsyms_GCJ \
17976 include_expsyms_GCJ; do
17979 old_archive_cmds_GCJ | \
17980 old_archive_from_new_cmds_GCJ | \
17981 archive_cmds_GCJ | \
17982 archive_expsym_cmds_GCJ | \
17983 module_cmds_GCJ | \
17984 module_expsym_cmds_GCJ | \
17985 old_archive_from_expsyms_cmds_GCJ | \
17986 export_symbols_cmds_GCJ | \
17987 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17988 postinstall_cmds | postuninstall_cmds | \
17989 old_postinstall_cmds | old_postuninstall_cmds | \
17990 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17991 # Double-quote double-evaled strings.
17992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18001 *'\$0 --fallback-echo"')
18002 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18008 cat <<__EOF__ >> "$cfgfile"
18009 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18013 # Shell to use when invoking shell scripts.
18016 # Whether or not to build shared libraries.
18017 build_libtool_libs=$enable_shared
18019 # Whether or not to build static libraries.
18020 build_old_libs=$enable_static
18022 # Whether or not to add -lc for building shared libraries.
18023 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18025 # Whether or not to disallow shared libs when runtime libs are static
18026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18028 # Whether or not to optimize for fast installation.
18029 fast_install=$enable_fast_install
18032 host_alias=$host_alias
18036 # The build system.
18037 build_alias=$build_alias
18041 # An echo program that does not interpret backslashes.
18046 AR_FLAGS=$lt_AR_FLAGS
18051 # LTCC compiler flags.
18052 LTCFLAGS=$lt_LTCFLAGS
18054 # A language-specific compiler.
18055 CC=$lt_compiler_GCJ
18057 # Is the compiler the GNU C compiler?
18063 # The linker used to build libraries.
18066 # Whether we need hard or soft links.
18069 # A BSD-compatible nm program.
18072 # A symbol stripping program
18075 # Used to examine libraries when file_magic_cmd begins "file"
18076 MAGIC_CMD=$MAGIC_CMD
18078 # Used on cygwin: DLL creation program.
18081 # Used on cygwin: object dumper.
18084 # Used on cygwin: assembler.
18087 # The name of the directory that contains temporary libtool files.
18090 # How to create reloadable object files.
18091 reload_flag=$lt_reload_flag
18092 reload_cmds=$lt_reload_cmds
18094 # How to pass a linker flag through the compiler.
18095 wl=$lt_lt_prog_compiler_wl_GCJ
18097 # Object file suffix (normally "o").
18098 objext="$ac_objext"
18100 # Old archive suffix (normally "a").
18103 # Shared library suffix (normally ".so").
18104 shrext_cmds='$shrext_cmds'
18106 # Executable file suffix (normally "").
18109 # Additional compiler flags for building library objects.
18110 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18113 # What is the maximum length of a command?
18114 max_cmd_len=$lt_cv_sys_max_cmd_len
18116 # Does compiler simultaneously support -c and -o options?
18117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18119 # Must we lock files when doing compilation?
18120 need_locks=$lt_need_locks
18122 # Do we need the lib prefix for modules?
18123 need_lib_prefix=$need_lib_prefix
18125 # Do we need a version for libraries?
18126 need_version=$need_version
18128 # Whether dlopen is supported.
18129 dlopen_support=$enable_dlopen
18131 # Whether dlopen of programs is supported.
18132 dlopen_self=$enable_dlopen_self
18134 # Whether dlopen of statically linked programs is supported.
18135 dlopen_self_static=$enable_dlopen_self_static
18137 # Compiler flag to prevent dynamic linking.
18138 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18140 # Compiler flag to turn off builtin functions.
18141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18143 # Compiler flag to allow reflexive dlopens.
18144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18146 # Compiler flag to generate shared objects directly from archives.
18147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18149 # Compiler flag to generate thread-safe objects.
18150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18152 # Library versioning type.
18153 version_type=$version_type
18155 # Format of library name prefix.
18156 libname_spec=$lt_libname_spec
18158 # List of archive names. First name is the real one, the rest are links.
18159 # The last name is the one that the linker finds with -lNAME.
18160 library_names_spec=$lt_library_names_spec
18162 # The coded name of the library, if different from the real name.
18163 soname_spec=$lt_soname_spec
18165 # Commands used to build and install an old-style archive.
18167 old_archive_cmds=$lt_old_archive_cmds_GCJ
18168 old_postinstall_cmds=$lt_old_postinstall_cmds
18169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18171 # Create an old-style archive from a shared archive.
18172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18174 # Create a temporary old-style archive to link instead of a shared archive.
18175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18177 # Commands used to build and install a shared archive.
18178 archive_cmds=$lt_archive_cmds_GCJ
18179 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18180 postinstall_cmds=$lt_postinstall_cmds
18181 postuninstall_cmds=$lt_postuninstall_cmds
18183 # Commands used to build a loadable module (assumed same as above if empty)
18184 module_cmds=$lt_module_cmds_GCJ
18185 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18187 # Commands to strip libraries.
18188 old_striplib=$lt_old_striplib
18189 striplib=$lt_striplib
18191 # Dependencies to place before the objects being linked to create a
18193 predep_objects=$lt_predep_objects_GCJ
18195 # Dependencies to place after the objects being linked to create a
18197 postdep_objects=$lt_postdep_objects_GCJ
18199 # Dependencies to place before the objects being linked to create a
18201 predeps=$lt_predeps_GCJ
18203 # Dependencies to place after the objects being linked to create a
18205 postdeps=$lt_postdeps_GCJ
18207 # The library search path used internally by the compiler when linking
18208 # a shared library.
18209 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18211 # Method to check whether dependent libraries are shared objects.
18212 deplibs_check_method=$lt_deplibs_check_method
18214 # Command to use when deplibs_check_method == file_magic.
18215 file_magic_cmd=$lt_file_magic_cmd
18217 # Flag that allows shared libraries with undefined symbols to be built.
18218 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18220 # Flag that forces no undefined symbols.
18221 no_undefined_flag=$lt_no_undefined_flag_GCJ
18223 # Commands used to finish a libtool library installation in a directory.
18224 finish_cmds=$lt_finish_cmds
18226 # Same as above, but a single script fragment to be evaled but not shown.
18227 finish_eval=$lt_finish_eval
18229 # Take the output of nm and produce a listing of raw symbols and C names.
18230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18232 # Transform the output of nm in a proper C declaration
18233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18235 # Transform the output of nm in a C name address pair
18236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18238 # This is the shared library runtime path variable.
18239 runpath_var=$runpath_var
18241 # This is the shared library path variable.
18242 shlibpath_var=$shlibpath_var
18244 # Is shlibpath searched before the hard-coded library search path?
18245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18247 # How to hardcode a shared library path into an executable.
18248 hardcode_action=$hardcode_action_GCJ
18250 # Whether we should hardcode library paths into libraries.
18251 hardcode_into_libs=$hardcode_into_libs
18253 # Flag to hardcode \$libdir into a binary during linking.
18254 # This must work even if \$libdir does not exist.
18255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18257 # If ld is used when linking, flag to hardcode \$libdir into
18258 # a binary during linking. This must work even if \$libdir does
18260 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18262 # Whether we need a single -rpath flag with a separated argument.
18263 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18265 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18266 # resulting binary.
18267 hardcode_direct=$hardcode_direct_GCJ
18269 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18270 # resulting binary.
18271 hardcode_minus_L=$hardcode_minus_L_GCJ
18273 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18274 # the resulting binary.
18275 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18277 # Set to yes if building a shared library automatically hardcodes DIR into the library
18278 # and all subsequent libraries and executables linked against it.
18279 hardcode_automatic=$hardcode_automatic_GCJ
18281 # Variables whose values should be saved in libtool wrapper scripts and
18282 # restored at relink time.
18283 variables_saved_for_relink="$variables_saved_for_relink"
18285 # Whether libtool must link a program against all its dependency libraries.
18286 link_all_deplibs=$link_all_deplibs_GCJ
18288 # Compile-time system search path for libraries
18289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18291 # Run-time system search path for libraries
18292 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18294 # Fix the shell variable \$srcfile for the compiler.
18295 fix_srcfile_path="$fix_srcfile_path_GCJ"
18297 # Set to yes if exported symbols are required.
18298 always_export_symbols=$always_export_symbols_GCJ
18300 # The commands to list exported symbols.
18301 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18303 # The commands to extract the exported symbol list from a shared archive.
18304 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18306 # Symbols that should not be listed in the preloaded symbols.
18307 exclude_expsyms=$lt_exclude_expsyms_GCJ
18309 # Symbols that must always be exported.
18310 include_expsyms=$lt_include_expsyms_GCJ
18312 # ### END LIBTOOL TAG CONFIG: $tagname
18318 # If there is no Makefile yet, we rely on a make rule to execute
18319 # `config.status --recheck' to rerun these tests and create the
18320 # libtool script then.
18321 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18322 if test -f "$ltmain_in"; then
18323 test -f Makefile && make "$ltmain"
18329 ac_cpp='$CPP $CPPFLAGS'
18330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18345 # Source file extension for RC test sources.
18348 # Object file extension for compiled RC test sources.
18352 # Code to be used in simple compile tests
18353 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18355 # Code to be used in simple link tests
18356 lt_simple_link_test_code="$lt_simple_compile_test_code"
18358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18360 # If no C compiler was specified, use CC.
18363 # If no C compiler flags were specified, use CFLAGS.
18364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18366 # Allow CC to be a program name with arguments.
18370 # save warnings/boilerplate of simple test code
18371 ac_outfile=conftest.$ac_objext
18372 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18374 _lt_compiler_boilerplate=`cat conftest.err`
18377 ac_outfile=conftest.$ac_objext
18378 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18380 _lt_linker_boilerplate=`cat conftest.err`
18384 # Allow CC to be a program name with arguments.
18389 for cc_temp in $compiler""; do
18391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18399 lt_cv_prog_compiler_c_o_RC=yes
18401 # The else clause should only fire when bootstrapping the
18402 # libtool distribution, otherwise you forgot to ship ltmain.sh
18403 # with your package, and you will get complaints that there are
18404 # no rules to generate ltmain.sh.
18405 if test -f "$ltmain"; then
18406 # See if we are running on zsh, and set the options which allow our commands through
18407 # without removal of \ escapes.
18408 if test -n "${ZSH_VERSION+set}" ; then
18409 setopt NO_GLOB_SUBST
18411 # Now quote all the things that may contain metacharacters while being
18412 # careful not to overquote the AC_SUBSTed values. We take copies of the
18413 # variables and quote the copies for generation of the libtool script.
18414 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18416 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18417 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18418 deplibs_check_method reload_flag reload_cmds need_locks \
18419 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18420 lt_cv_sys_global_symbol_to_c_name_address \
18421 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18422 old_postinstall_cmds old_postuninstall_cmds \
18426 lt_prog_compiler_wl_RC \
18427 lt_prog_compiler_pic_RC \
18428 lt_prog_compiler_static_RC \
18429 lt_prog_compiler_no_builtin_flag_RC \
18430 export_dynamic_flag_spec_RC \
18431 thread_safe_flag_spec_RC \
18432 whole_archive_flag_spec_RC \
18433 enable_shared_with_static_runtimes_RC \
18434 old_archive_cmds_RC \
18435 old_archive_from_new_cmds_RC \
18436 predep_objects_RC \
18437 postdep_objects_RC \
18440 compiler_lib_search_path_RC \
18442 archive_expsym_cmds_RC \
18443 postinstall_cmds_RC \
18444 postuninstall_cmds_RC \
18445 old_archive_from_expsyms_cmds_RC \
18446 allow_undefined_flag_RC \
18447 no_undefined_flag_RC \
18448 export_symbols_cmds_RC \
18449 hardcode_libdir_flag_spec_RC \
18450 hardcode_libdir_flag_spec_ld_RC \
18451 hardcode_libdir_separator_RC \
18452 hardcode_automatic_RC \
18454 module_expsym_cmds_RC \
18455 lt_cv_prog_compiler_c_o_RC \
18456 exclude_expsyms_RC \
18457 include_expsyms_RC; do
18460 old_archive_cmds_RC | \
18461 old_archive_from_new_cmds_RC | \
18462 archive_cmds_RC | \
18463 archive_expsym_cmds_RC | \
18465 module_expsym_cmds_RC | \
18466 old_archive_from_expsyms_cmds_RC | \
18467 export_symbols_cmds_RC | \
18468 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18469 postinstall_cmds | postuninstall_cmds | \
18470 old_postinstall_cmds | old_postuninstall_cmds | \
18471 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18472 # Double-quote double-evaled strings.
18473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18482 *'\$0 --fallback-echo"')
18483 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18489 cat <<__EOF__ >> "$cfgfile"
18490 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18492 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18494 # Shell to use when invoking shell scripts.
18497 # Whether or not to build shared libraries.
18498 build_libtool_libs=$enable_shared
18500 # Whether or not to build static libraries.
18501 build_old_libs=$enable_static
18503 # Whether or not to add -lc for building shared libraries.
18504 build_libtool_need_lc=$archive_cmds_need_lc_RC
18506 # Whether or not to disallow shared libs when runtime libs are static
18507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18509 # Whether or not to optimize for fast installation.
18510 fast_install=$enable_fast_install
18513 host_alias=$host_alias
18517 # The build system.
18518 build_alias=$build_alias
18522 # An echo program that does not interpret backslashes.
18527 AR_FLAGS=$lt_AR_FLAGS
18532 # LTCC compiler flags.
18533 LTCFLAGS=$lt_LTCFLAGS
18535 # A language-specific compiler.
18538 # Is the compiler the GNU C compiler?
18544 # The linker used to build libraries.
18547 # Whether we need hard or soft links.
18550 # A BSD-compatible nm program.
18553 # A symbol stripping program
18556 # Used to examine libraries when file_magic_cmd begins "file"
18557 MAGIC_CMD=$MAGIC_CMD
18559 # Used on cygwin: DLL creation program.
18562 # Used on cygwin: object dumper.
18565 # Used on cygwin: assembler.
18568 # The name of the directory that contains temporary libtool files.
18571 # How to create reloadable object files.
18572 reload_flag=$lt_reload_flag
18573 reload_cmds=$lt_reload_cmds
18575 # How to pass a linker flag through the compiler.
18576 wl=$lt_lt_prog_compiler_wl_RC
18578 # Object file suffix (normally "o").
18579 objext="$ac_objext"
18581 # Old archive suffix (normally "a").
18584 # Shared library suffix (normally ".so").
18585 shrext_cmds='$shrext_cmds'
18587 # Executable file suffix (normally "").
18590 # Additional compiler flags for building library objects.
18591 pic_flag=$lt_lt_prog_compiler_pic_RC
18594 # What is the maximum length of a command?
18595 max_cmd_len=$lt_cv_sys_max_cmd_len
18597 # Does compiler simultaneously support -c and -o options?
18598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18600 # Must we lock files when doing compilation?
18601 need_locks=$lt_need_locks
18603 # Do we need the lib prefix for modules?
18604 need_lib_prefix=$need_lib_prefix
18606 # Do we need a version for libraries?
18607 need_version=$need_version
18609 # Whether dlopen is supported.
18610 dlopen_support=$enable_dlopen
18612 # Whether dlopen of programs is supported.
18613 dlopen_self=$enable_dlopen_self
18615 # Whether dlopen of statically linked programs is supported.
18616 dlopen_self_static=$enable_dlopen_self_static
18618 # Compiler flag to prevent dynamic linking.
18619 link_static_flag=$lt_lt_prog_compiler_static_RC
18621 # Compiler flag to turn off builtin functions.
18622 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18624 # Compiler flag to allow reflexive dlopens.
18625 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18627 # Compiler flag to generate shared objects directly from archives.
18628 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18630 # Compiler flag to generate thread-safe objects.
18631 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18633 # Library versioning type.
18634 version_type=$version_type
18636 # Format of library name prefix.
18637 libname_spec=$lt_libname_spec
18639 # List of archive names. First name is the real one, the rest are links.
18640 # The last name is the one that the linker finds with -lNAME.
18641 library_names_spec=$lt_library_names_spec
18643 # The coded name of the library, if different from the real name.
18644 soname_spec=$lt_soname_spec
18646 # Commands used to build and install an old-style archive.
18648 old_archive_cmds=$lt_old_archive_cmds_RC
18649 old_postinstall_cmds=$lt_old_postinstall_cmds
18650 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18652 # Create an old-style archive from a shared archive.
18653 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18655 # Create a temporary old-style archive to link instead of a shared archive.
18656 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18658 # Commands used to build and install a shared archive.
18659 archive_cmds=$lt_archive_cmds_RC
18660 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18661 postinstall_cmds=$lt_postinstall_cmds
18662 postuninstall_cmds=$lt_postuninstall_cmds
18664 # Commands used to build a loadable module (assumed same as above if empty)
18665 module_cmds=$lt_module_cmds_RC
18666 module_expsym_cmds=$lt_module_expsym_cmds_RC
18668 # Commands to strip libraries.
18669 old_striplib=$lt_old_striplib
18670 striplib=$lt_striplib
18672 # Dependencies to place before the objects being linked to create a
18674 predep_objects=$lt_predep_objects_RC
18676 # Dependencies to place after the objects being linked to create a
18678 postdep_objects=$lt_postdep_objects_RC
18680 # Dependencies to place before the objects being linked to create a
18682 predeps=$lt_predeps_RC
18684 # Dependencies to place after the objects being linked to create a
18686 postdeps=$lt_postdeps_RC
18688 # The library search path used internally by the compiler when linking
18689 # a shared library.
18690 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18692 # Method to check whether dependent libraries are shared objects.
18693 deplibs_check_method=$lt_deplibs_check_method
18695 # Command to use when deplibs_check_method == file_magic.
18696 file_magic_cmd=$lt_file_magic_cmd
18698 # Flag that allows shared libraries with undefined symbols to be built.
18699 allow_undefined_flag=$lt_allow_undefined_flag_RC
18701 # Flag that forces no undefined symbols.
18702 no_undefined_flag=$lt_no_undefined_flag_RC
18704 # Commands used to finish a libtool library installation in a directory.
18705 finish_cmds=$lt_finish_cmds
18707 # Same as above, but a single script fragment to be evaled but not shown.
18708 finish_eval=$lt_finish_eval
18710 # Take the output of nm and produce a listing of raw symbols and C names.
18711 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18713 # Transform the output of nm in a proper C declaration
18714 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18716 # Transform the output of nm in a C name address pair
18717 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18719 # This is the shared library runtime path variable.
18720 runpath_var=$runpath_var
18722 # This is the shared library path variable.
18723 shlibpath_var=$shlibpath_var
18725 # Is shlibpath searched before the hard-coded library search path?
18726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18728 # How to hardcode a shared library path into an executable.
18729 hardcode_action=$hardcode_action_RC
18731 # Whether we should hardcode library paths into libraries.
18732 hardcode_into_libs=$hardcode_into_libs
18734 # Flag to hardcode \$libdir into a binary during linking.
18735 # This must work even if \$libdir does not exist.
18736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18738 # If ld is used when linking, flag to hardcode \$libdir into
18739 # a binary during linking. This must work even if \$libdir does
18741 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18743 # Whether we need a single -rpath flag with a separated argument.
18744 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18746 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18747 # resulting binary.
18748 hardcode_direct=$hardcode_direct_RC
18750 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18751 # resulting binary.
18752 hardcode_minus_L=$hardcode_minus_L_RC
18754 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18755 # the resulting binary.
18756 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18758 # Set to yes if building a shared library automatically hardcodes DIR into the library
18759 # and all subsequent libraries and executables linked against it.
18760 hardcode_automatic=$hardcode_automatic_RC
18762 # Variables whose values should be saved in libtool wrapper scripts and
18763 # restored at relink time.
18764 variables_saved_for_relink="$variables_saved_for_relink"
18766 # Whether libtool must link a program against all its dependency libraries.
18767 link_all_deplibs=$link_all_deplibs_RC
18769 # Compile-time system search path for libraries
18770 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18772 # Run-time system search path for libraries
18773 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18775 # Fix the shell variable \$srcfile for the compiler.
18776 fix_srcfile_path="$fix_srcfile_path_RC"
18778 # Set to yes if exported symbols are required.
18779 always_export_symbols=$always_export_symbols_RC
18781 # The commands to list exported symbols.
18782 export_symbols_cmds=$lt_export_symbols_cmds_RC
18784 # The commands to extract the exported symbol list from a shared archive.
18785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18787 # Symbols that should not be listed in the preloaded symbols.
18788 exclude_expsyms=$lt_exclude_expsyms_RC
18790 # Symbols that must always be exported.
18791 include_expsyms=$lt_include_expsyms_RC
18793 # ### END LIBTOOL TAG CONFIG: $tagname
18799 # If there is no Makefile yet, we rely on a make rule to execute
18800 # `config.status --recheck' to rerun these tests and create the
18801 # libtool script then.
18802 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18803 if test -f "$ltmain_in"; then
18804 test -f Makefile && make "$ltmain"
18810 ac_cpp='$CPP $CPPFLAGS'
18811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18820 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18821 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18822 { (exit 1); exit 1; }; }
18826 # Append the new tag name to the list of available tags.
18827 if test -n "$tagname" ; then
18828 available_tags="$available_tags $tagname"
18834 # Now substitute the updated list of available tags.
18835 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18836 mv "${ofile}T" "$ofile"
18840 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18841 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18842 { (exit 1); exit 1; }; }
18848 # This can be used to rebuild libtool when needed
18849 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18851 # Always use our own libtool.
18852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18854 # Prevent multiple expansion
18880 echo "$as_me:$LINENO: result: " >&5
18881 echo "${ECHO_T}" >&6
18882 echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
18883 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6
18886 ac_cpp='$CPP $CPPFLAGS'
18887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18890 if test -n "$ac_tool_prefix"; then
18891 for ac_prog in xlC gcc cc
18893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18895 echo "$as_me:$LINENO: checking for $ac_word" >&5
18896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18897 if test "${ac_cv_prog_CC+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 if test -n "$CC"; then
18901 ac_cv_prog_CC="$CC" # Let the user override the test.
18903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18904 for as_dir in $PATH
18907 test -z "$as_dir" && as_dir=.
18908 for ac_exec_ext in '' $ac_executable_extensions; do
18909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18920 if test -n "$CC"; then
18921 echo "$as_me:$LINENO: result: $CC" >&5
18922 echo "${ECHO_T}$CC" >&6
18924 echo "$as_me:$LINENO: result: no" >&5
18925 echo "${ECHO_T}no" >&6
18928 test -n "$CC" && break
18931 if test -z "$CC"; then
18933 for ac_prog in xlC gcc cc
18935 # Extract the first word of "$ac_prog", so it can be a program name with args.
18936 set dummy $ac_prog; ac_word=$2
18937 echo "$as_me:$LINENO: checking for $ac_word" >&5
18938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 if test -n "$ac_ct_CC"; then
18943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18946 for as_dir in $PATH
18949 test -z "$as_dir" && as_dir=.
18950 for ac_exec_ext in '' $ac_executable_extensions; do
18951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18952 ac_cv_prog_ac_ct_CC="$ac_prog"
18953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18962 if test -n "$ac_ct_CC"; then
18963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18964 echo "${ECHO_T}$ac_ct_CC" >&6
18966 echo "$as_me:$LINENO: result: no" >&5
18967 echo "${ECHO_T}no" >&6
18970 test -n "$ac_ct_CC" && break
18977 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18978 See \`config.log' for more details." >&5
18979 echo "$as_me: error: no acceptable C compiler found in \$PATH
18980 See \`config.log' for more details." >&2;}
18981 { (exit 1); exit 1; }; }
18983 # Provide some information about the compiler.
18984 echo "$as_me:$LINENO:" \
18985 "checking for C compiler version" >&5
18986 ac_compiler=`set X $ac_compile; echo $2`
18987 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18988 (eval $ac_compiler --version </dev/null >&5) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }
18992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18993 (eval $ac_compiler -v </dev/null >&5) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }
18997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18998 (eval $ac_compiler -V </dev/null >&5) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }
19003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19026 rm -f conftest.$ac_objext
19027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19028 (eval $ac_compile) 2>conftest.er1
19030 grep -v '^ *+' conftest.er1 >conftest.err
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
19035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; } &&
19041 { ac_try='test -s conftest.$ac_objext'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 ac_compiler_gnu=yes
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19060 GCC=`test $ac_compiler_gnu = yes && echo yes`
19061 ac_test_CFLAGS=${CFLAGS+set}
19062 ac_save_CFLAGS=$CFLAGS
19064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19066 if test "${ac_cv_prog_cc_g+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 cat >conftest.$ac_ext <<_ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19084 rm -f conftest.$ac_objext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086 (eval $ac_compile) 2>conftest.er1
19088 grep -v '^ *+' conftest.er1 >conftest.err
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
19093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; } &&
19099 { ac_try='test -s conftest.$ac_objext'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_cv_prog_cc_g=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19116 if test "$ac_test_CFLAGS" = set; then
19117 CFLAGS=$ac_save_CFLAGS
19118 elif test $ac_cv_prog_cc_g = yes; then
19119 if test "$GCC" = yes; then
19125 if test "$GCC" = yes; then
19131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19134 echo $ECHO_N "(cached) $ECHO_C" >&6
19136 ac_cv_prog_cc_stdc=no
19138 cat >conftest.$ac_ext <<_ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144 #include <stdarg.h>
19146 #include <sys/types.h>
19147 #include <sys/stat.h>
19148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19149 struct buf { int x; };
19150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19151 static char *e (p, i)
19157 static char *f (char * (*g) (char **, int), char **p, ...)
19162 s = g (p, va_arg (v,int));
19167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19168 function prototypes and stuff, but not '\xHH' hex character constants.
19169 These don't provoke an error unfortunately, instead are silently treated
19170 as 'x'. The following induces an error, until -std1 is added to get
19171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19172 array size at least. It's necessary to write '\x00'==0 to get something
19173 that's true only with -std1. */
19174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19176 int test (int i, double x);
19177 struct s1 {int (*f) (int a);};
19178 struct s2 {int (*f) (double a);};
19179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19190 # Don't try gcc -ansi; that turns off useful extensions and
19191 # breaks some systems' header files.
19192 # AIX -qlanglvl=ansi
19193 # Ultrix and OSF/1 -std1
19194 # HP-UX 10.20 and later -Ae
19195 # HP-UX older versions -Aa -D_HPUX_SOURCE
19196 # SVR4 -Xc -D__EXTENSIONS__
19197 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19199 CC="$ac_save_CC $ac_arg"
19200 rm -f conftest.$ac_objext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19202 (eval $ac_compile) 2>conftest.er1
19204 grep -v '^ *+' conftest.er1 >conftest.err
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } &&
19209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest.$ac_objext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_prog_cc_stdc=$ac_arg
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19228 rm -f conftest.err conftest.$ac_objext
19230 rm -f conftest.$ac_ext conftest.$ac_objext
19235 case "x$ac_cv_prog_cc_stdc" in
19237 echo "$as_me:$LINENO: result: none needed" >&5
19238 echo "${ECHO_T}none needed" >&6 ;;
19240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19241 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19242 CC="$CC $ac_cv_prog_cc_stdc" ;;
19245 # Some people use a C++ compiler to compile C. Since we use `exit',
19246 # in C++ we need to declare it. In case someone uses the same compiler
19247 # for both compiling C and C++ we need to have the C++ compiler decide
19248 # the declaration of exit, since it's the most demanding environment.
19249 cat >conftest.$ac_ext <<_ACEOF
19250 #ifndef __cplusplus
19254 rm -f conftest.$ac_objext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19256 (eval $ac_compile) 2>conftest.er1
19258 grep -v '^ *+' conftest.er1 >conftest.err
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; } &&
19269 { ac_try='test -s conftest.$ac_objext'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275 for ac_declaration in \
19277 'extern "C" void std::exit (int) throw (); using std::exit;' \
19278 'extern "C" void std::exit (int); using std::exit;' \
19279 'extern "C" void exit (int) throw ();' \
19280 'extern "C" void exit (int);' \
19283 cat >conftest.$ac_ext <<_ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19290 #include <stdlib.h>
19299 rm -f conftest.$ac_objext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301 (eval $ac_compile) 2>conftest.er1
19303 grep -v '^ *+' conftest.er1 >conftest.err
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
19308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; } &&
19314 { ac_try='test -s conftest.$ac_objext'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19322 echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19328 cat >conftest.$ac_ext <<_ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19343 rm -f conftest.$ac_objext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; } &&
19358 { ac_try='test -s conftest.$ac_objext'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19373 if test -n "$ac_declaration"; then
19374 echo '#ifdef __cplusplus' >>confdefs.h
19375 echo $ac_declaration >>confdefs.h
19376 echo '#endif' >>confdefs.h
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391 depcc="$CC" am_compiler_list=
19393 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19394 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19395 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19399 # We make a subdir and do the tests there. Otherwise we can end up
19400 # making bogus files that we don't know about and never remove. For
19401 # instance it was reported that on HP-UX the gcc test will end up
19402 # making a dummy file named `D' -- because `-MD' means `put the output
19405 # Copy depcomp to subdir because otherwise we won't find it if we're
19406 # using a relative directory.
19407 cp "$am_depcomp" conftest.dir
19409 # We will build objects and dependencies in a subdirectory because
19410 # it helps to detect inapplicable dependency modes. For instance
19411 # both Tru64's cc and ICC support -MD to output dependencies as a
19412 # side effect of compilation, but ICC will put the dependencies in
19413 # the current directory while Tru64 will put them in the object
19417 am_cv_CC_dependencies_compiler_type=none
19418 if test "$am_compiler_list" = ""; then
19419 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19421 for depmode in $am_compiler_list; do
19422 # Setup a source with many dependencies, because some compilers
19423 # like to wrap large dependency lists on column 80 (with \), and
19424 # we should not choose a depcomp mode which is confused by this.
19426 # We need to recreate these files for each test, as the compiler may
19427 # overwrite some of them when testing with obscure command lines.
19428 # This happens at least with the AIX C compiler.
19430 for i in 1 2 3 4 5 6; do
19431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19433 # Solaris 8's {/usr,}/bin/sh.
19434 touch sub/conftst$i.h
19436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19440 # after this tag, mechanisms are not by side-effect, so they'll
19441 # only be used when explicitly requested
19442 if test "x$enable_dependency_tracking" = xyes; then
19450 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19451 # mode. It turns out that the SunPro C++ compiler does not properly
19452 # handle `-M -o', and we need to detect this.
19453 if depmode=$depmode \
19454 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19456 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19457 >/dev/null 2>conftest.err &&
19458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19459 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19461 # icc doesn't choke on unknown options, it will just issue warnings
19462 # or remarks (even with -Werror). So we grep stderr for any message
19463 # that says an option was ignored or not supported.
19464 # When given -MP, icc 7.0 and 7.1 complain thusly:
19465 # icc: Command line warning: ignoring option '-M'; no argument required
19466 # The diagnosis changed in icc 8.0:
19467 # icc: Command line remark: option '-MP' not supported
19468 if (grep 'ignoring option' conftest.err ||
19469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19470 am_cv_CC_dependencies_compiler_type=$depmode
19477 rm -rf conftest.dir
19479 am_cv_CC_dependencies_compiler_type=none
19483 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19484 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19485 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19490 test "x$enable_dependency_tracking" != xno \
19491 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19492 am__fastdepCC_TRUE=
19493 am__fastdepCC_FALSE='#'
19495 am__fastdepCC_TRUE='#'
19496 am__fastdepCC_FALSE=
19500 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19501 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19504 echo timestamp > conftest.file
19505 # Do `set' in a subshell so we don't clobber the current shell's
19506 # arguments. Must try -L first in case configure is actually a
19507 # symlink; some systems play weird games with the mod time of symlinks
19508 # (eg FreeBSD returns the mod time of the symlink's containing
19511 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19512 if test "$*" = "X"; then
19514 set X `ls -t $srcdir/configure conftest.file`
19516 rm -f conftest.file
19517 if test "$*" != "X $srcdir/configure conftest.file" \
19518 && test "$*" != "X conftest.file $srcdir/configure"; then
19520 # If neither matched, then we have a broken ls. This can happen
19521 # if, for instance, CONFIG_SHELL is bash and it inherits a
19522 # broken ls alias from the environment. This has actually
19523 # happened. Such a system could not be considered "sane".
19524 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19525 alias in your environment" >&5
19526 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19527 alias in your environment" >&2;}
19528 { (exit 1); exit 1; }; }
19531 test "$2" = conftest.file
19537 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19538 Check your system clock" >&5
19539 echo "$as_me: error: newly created file is older than distributed files!
19540 Check your system clock" >&2;}
19541 { (exit 1); exit 1; }; }
19543 echo "$as_me:$LINENO: result: yes" >&5
19544 echo "${ECHO_T}yes" >&6
19545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 cat >conftest.make <<\_ACEOF
19553 @echo 'ac_maketemp="$(MAKE)"'
19555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19557 if test -n "$ac_maketemp"; then
19558 eval ac_cv_prog_make_${ac_make}_set=yes
19560 eval ac_cv_prog_make_${ac_make}_set=no
19562 rm -f conftest.make
19564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19565 echo "$as_me:$LINENO: result: yes" >&5
19566 echo "${ECHO_T}yes" >&6
19569 echo "$as_me:$LINENO: result: no" >&5
19570 echo "${ECHO_T}no" >&6
19571 SET_MAKE="MAKE=${MAKE-make}"
19575 echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19576 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6
19577 if test "$cross_compiling" = yes; then
19578 echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19579 echo "${ECHO_T}assuming the worse in cross-compilation" >&6
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19596 rm -f conftest$ac_exeext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19598 (eval $ac_link) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19608 cat >>confdefs.h <<\_ACEOF
19609 #define PRINTF_NULL_WORKING 1
19612 echo "$as_me:$LINENO: result: yes" >&5
19613 echo "${ECHO_T}yes" >&6
19615 echo "$as_me: program exited with status $ac_status" >&5
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19619 ( exit $ac_status )
19620 echo "$as_me:$LINENO: result: no" >&5
19621 echo "${ECHO_T}no" >&6
19623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19627 echo "$as_me:$LINENO: checking for va_copy() function" >&5
19628 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6
19629 if test "${ac_cv_va_copy+set}" = set; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 if test ".$ac_cv_va_copy" = .; then
19638 if test "$cross_compiling" = yes; then
19639 ac_cv_va_copy="C99"
19641 cat >conftest.$ac_ext <<_ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19648 #include <stdlib.h>
19649 #include <stdarg.h>
19650 #include <string.h>
19651 #define DO_VA_COPY(d, s) va_copy((d), (s))
19652 void test(char *str, ...)
19657 DO_VA_COPY(ap2, ap);
19658 for (i = 1; i <= 9; i++) {
19659 int k = (int)va_arg(ap, int);
19663 DO_VA_COPY(ap, ap2);
19664 for (i = 1; i <= 9; i++) {
19665 int k = (int)va_arg(ap, int);
19671 int main(int argc, char *argv[])
19673 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19678 rm -f conftest$ac_exeext
19679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19680 (eval $ac_link) 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; }; then
19689 ac_cv_va_copy="C99"
19691 echo "$as_me: program exited with status $ac_status" >&5
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19703 if test ".$ac_cv_va_copy" = .; then
19704 if test "$cross_compiling" = yes; then
19705 ac_cv_va_copy="GCM"
19707 cat >conftest.$ac_ext <<_ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19714 #include <stdlib.h>
19715 #include <stdarg.h>
19716 #include <string.h>
19717 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
19718 void test(char *str, ...)
19723 DO_VA_COPY(ap2, ap);
19724 for (i = 1; i <= 9; i++) {
19725 int k = (int)va_arg(ap, int);
19729 DO_VA_COPY(ap, ap2);
19730 for (i = 1; i <= 9; i++) {
19731 int k = (int)va_arg(ap, int);
19737 int main(int argc, char *argv[])
19739 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19744 rm -f conftest$ac_exeext
19745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19746 (eval $ac_link) 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_va_copy="GCM"
19757 echo "$as_me: program exited with status $ac_status" >&5
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19769 if test ".$ac_cv_va_copy" = .; then
19770 if test "$cross_compiling" = yes; then
19771 ac_cv_va_copy="GCH"
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 #include <stdlib.h>
19781 #include <stdarg.h>
19782 #include <string.h>
19783 #define DO_VA_COPY(d, s) __va_copy((d), (s))
19784 void test(char *str, ...)
19789 DO_VA_COPY(ap2, ap);
19790 for (i = 1; i <= 9; i++) {
19791 int k = (int)va_arg(ap, int);
19795 DO_VA_COPY(ap, ap2);
19796 for (i = 1; i <= 9; i++) {
19797 int k = (int)va_arg(ap, int);
19803 int main(int argc, char *argv[])
19805 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19810 rm -f conftest$ac_exeext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_va_copy="GCH"
19823 echo "$as_me: program exited with status $ac_status" >&5
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19835 if test ".$ac_cv_va_copy" = .; then
19836 if test "$cross_compiling" = yes; then
19837 ac_cv_va_copy="GCB"
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19846 #include <stdlib.h>
19847 #include <stdarg.h>
19848 #include <string.h>
19849 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
19850 void test(char *str, ...)
19855 DO_VA_COPY(ap2, ap);
19856 for (i = 1; i <= 9; i++) {
19857 int k = (int)va_arg(ap, int);
19861 DO_VA_COPY(ap, ap2);
19862 for (i = 1; i <= 9; i++) {
19863 int k = (int)va_arg(ap, int);
19869 int main(int argc, char *argv[])
19871 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19876 rm -f conftest$ac_exeext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19878 (eval $ac_link) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_cv_va_copy="GCB"
19889 echo "$as_me: program exited with status $ac_status" >&5
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19901 if test ".$ac_cv_va_copy" = .; then
19902 if test "$cross_compiling" = yes; then
19903 ac_cv_va_copy="ASS"
19905 cat >conftest.$ac_ext <<_ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19912 #include <stdlib.h>
19913 #include <stdarg.h>
19914 #include <string.h>
19915 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
19916 void test(char *str, ...)
19921 DO_VA_COPY(ap2, ap);
19922 for (i = 1; i <= 9; i++) {
19923 int k = (int)va_arg(ap, int);
19927 DO_VA_COPY(ap, ap2);
19928 for (i = 1; i <= 9; i++) {
19929 int k = (int)va_arg(ap, int);
19935 int main(int argc, char *argv[])
19937 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19942 rm -f conftest$ac_exeext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19944 (eval $ac_link) 2>&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 ac_cv_va_copy="ASS"
19955 echo "$as_me: program exited with status $ac_status" >&5
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19967 if test ".$ac_cv_va_copy" = .; then
19968 if test "$cross_compiling" = yes; then
19969 ac_cv_va_copy="ASP"
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19978 #include <stdlib.h>
19979 #include <stdarg.h>
19980 #include <string.h>
19981 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
19982 void test(char *str, ...)
19987 DO_VA_COPY(ap2, ap);
19988 for (i = 1; i <= 9; i++) {
19989 int k = (int)va_arg(ap, int);
19993 DO_VA_COPY(ap, ap2);
19994 for (i = 1; i <= 9; i++) {
19995 int k = (int)va_arg(ap, int);
20001 int main(int argc, char *argv[])
20003 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20008 rm -f conftest$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010 (eval $ac_link) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 ac_cv_va_copy="ASP"
20021 echo "$as_me: program exited with status $ac_status" >&5
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20033 if test ".$ac_cv_va_copy" = .; then
20034 if test "$cross_compiling" = yes; then
20035 ac_cv_va_copy="CPS"
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20044 #include <stdlib.h>
20045 #include <stdarg.h>
20046 #include <string.h>
20047 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20048 void test(char *str, ...)
20053 DO_VA_COPY(ap2, ap);
20054 for (i = 1; i <= 9; i++) {
20055 int k = (int)va_arg(ap, int);
20059 DO_VA_COPY(ap, ap2);
20060 for (i = 1; i <= 9; i++) {
20061 int k = (int)va_arg(ap, int);
20067 int main(int argc, char *argv[])
20069 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20074 rm -f conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076 (eval $ac_link) 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_cv_va_copy="CPS"
20087 echo "$as_me: program exited with status $ac_status" >&5
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20099 if test ".$ac_cv_va_copy" = .; then
20100 if test "$cross_compiling" = yes; then
20101 ac_cv_va_copy="CPP"
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20110 #include <stdlib.h>
20111 #include <stdarg.h>
20112 #include <string.h>
20113 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20114 void test(char *str, ...)
20119 DO_VA_COPY(ap2, ap);
20120 for (i = 1; i <= 9; i++) {
20121 int k = (int)va_arg(ap, int);
20125 DO_VA_COPY(ap, ap2);
20126 for (i = 1; i <= 9; i++) {
20127 int k = (int)va_arg(ap, int);
20133 int main(int argc, char *argv[])
20135 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20140 rm -f conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142 (eval $ac_link) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_va_copy="CPP"
20153 echo "$as_me: program exited with status $ac_status" >&5
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20162 if test ".$ac_cv_va_copy" = .; then
20163 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20164 echo "$as_me: error: no working implementation found" >&2;}
20165 { (exit 1); exit 1; }; }
20170 if test ".$ac_cv_va_copy" = ".C99"; then
20172 cat >>confdefs.h <<\_ACEOF
20173 #define HAVE_VA_COPY 1
20178 cat >>confdefs.h <<_ACEOF
20179 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20184 if test ".$ac_cv_va_copy" = ".C99"; then
20185 echo "$as_me:$LINENO: result: yes" >&5
20186 echo "${ECHO_T}yes" >&6
20188 echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20189 echo "${ECHO_T}no (using fallback implementation)" >&6
20193 # Checks for header files.
20194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20196 if test "${ac_cv_header_stdc+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 #include <stdlib.h>
20206 #include <stdarg.h>
20207 #include <string.h>
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220 (eval $ac_compile) 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; } &&
20233 { ac_try='test -s conftest.$ac_objext'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_cv_header_stdc=yes
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20244 ac_cv_header_stdc=no
20246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20248 if test $ac_cv_header_stdc = yes; then
20249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 #include <string.h>
20259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20260 $EGREP "memchr" >/dev/null 2>&1; then
20263 ac_cv_header_stdc=no
20269 if test $ac_cv_header_stdc = yes; then
20270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20271 cat >conftest.$ac_ext <<_ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 #include <stdlib.h>
20280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20281 $EGREP "free" >/dev/null 2>&1; then
20284 ac_cv_header_stdc=no
20290 if test $ac_cv_header_stdc = yes; then
20291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20292 if test "$cross_compiling" = yes; then
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20302 #if ((' ' & 0x0FF) == 0x020)
20303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20306 # define ISLOWER(c) \
20307 (('a' <= (c) && (c) <= 'i') \
20308 || ('j' <= (c) && (c) <= 'r') \
20309 || ('s' <= (c) && (c) <= 'z'))
20310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20318 for (i = 0; i < 256; i++)
20319 if (XOR (islower (i), ISLOWER (i))
20320 || toupper (i) != TOUPPER (i))
20325 rm -f conftest$ac_exeext
20326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20327 (eval $ac_link) 2>&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20338 echo "$as_me: program exited with status $ac_status" >&5
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20342 ( exit $ac_status )
20343 ac_cv_header_stdc=no
20345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20351 if test $ac_cv_header_stdc = yes; then
20353 cat >>confdefs.h <<\_ACEOF
20354 #define STDC_HEADERS 1
20359 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20360 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20361 if test "${ac_cv_header_time+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <sys/types.h>
20371 #include <sys/time.h>
20377 if ((struct tm *) 0)
20383 rm -f conftest.$ac_objext
20384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20385 (eval $ac_compile) 2>conftest.er1
20387 grep -v '^ *+' conftest.er1 >conftest.err
20389 cat conftest.err >&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } &&
20392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; } &&
20398 { ac_try='test -s conftest.$ac_objext'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 ac_cv_header_time=yes
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 ac_cv_header_time=no
20411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20413 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20414 echo "${ECHO_T}$ac_cv_header_time" >&6
20415 if test $ac_cv_header_time = yes; then
20417 cat >>confdefs.h <<\_ACEOF
20418 #define TIME_WITH_SYS_TIME 1
20433 for ac_header in sys/socket.h \
20435 windows.h winsock.h winsock2.h \
20441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20443 echo "$as_me:$LINENO: checking for $ac_header" >&5
20444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20451 # Is the header compilable?
20452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 $ac_includes_default
20461 #include <$ac_header>
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465 (eval $ac_compile) 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest.$ac_objext'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
20484 ac_header_compiler=yes
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_header_compiler=no
20491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20493 echo "${ECHO_T}$ac_header_compiler" >&6
20495 # Is the header present?
20496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20498 cat >conftest.$ac_ext <<_ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20504 #include <$ac_header>
20506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20509 grep -v '^ *+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } >/dev/null; then
20514 if test -s conftest.err; then
20515 ac_cpp_err=$ac_c_preproc_warn_flag
20516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20523 if test -z "$ac_cpp_err"; then
20524 ac_header_preproc=yes
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 ac_header_preproc=no
20531 rm -f conftest.err conftest.$ac_ext
20532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20533 echo "${ECHO_T}$ac_header_preproc" >&6
20535 # So? What about this header?
20536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20542 ac_header_preproc=yes
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20559 ## -------------------------------------------------- ##
20560 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
20561 ## -------------------------------------------------- ##
20564 sed "s/^/$as_me: WARNING: /" >&2
20567 echo "$as_me:$LINENO: checking for $ac_header" >&5
20568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 eval "$as_ac_Header=\$ac_header_preproc"
20574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20579 cat >>confdefs.h <<_ACEOF
20580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20595 for ac_func in gettimeofday usleep \
20603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20604 echo "$as_me:$LINENO: checking for $ac_func" >&5
20605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20606 if eval "test \"\${$as_ac_var+set}\" = set"; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20617 #define $ac_func innocuous_$ac_func
20619 /* System header to define __stub macros and hopefully few prototypes,
20620 which can conflict with char $ac_func (); below.
20621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20622 <limits.h> exists even on freestanding compilers. */
20625 # include <limits.h>
20627 # include <assert.h>
20632 /* Override any gcc2 internal prototype to avoid an error. */
20637 /* We use char because int might match the return type of a gcc2
20638 builtin and then its argument prototype would still apply. */
20640 /* The GNU C library defines this for functions which it implements
20641 to always fail with ENOSYS. Some functions are actually named
20642 something starting with __ and the normal name is an alias. */
20643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20646 char (*f) () = $ac_func;
20655 return f != $ac_func;
20660 rm -f conftest.$ac_objext conftest$ac_exeext
20661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20662 (eval $ac_link) 2>conftest.er1
20664 grep -v '^ *+' conftest.er1 >conftest.err
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } &&
20669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest$ac_exeext'
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681 eval "$as_ac_var=yes"
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 eval "$as_ac_var=no"
20688 rm -f conftest.err conftest.$ac_objext \
20689 conftest$ac_exeext conftest.$ac_ext
20691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20693 if test `eval echo '${'$as_ac_var'}'` = yes; then
20694 cat >>confdefs.h <<_ACEOF
20695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20702 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
20705 for ac_func in snprintf vsnprintf
20707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20708 echo "$as_me:$LINENO: checking for $ac_func" >&5
20709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20710 if eval "test \"\${$as_ac_var+set}\" = set"; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 cat >conftest.$ac_ext <<_ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20721 #define $ac_func innocuous_$ac_func
20723 /* System header to define __stub macros and hopefully few prototypes,
20724 which can conflict with char $ac_func (); below.
20725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20726 <limits.h> exists even on freestanding compilers. */
20729 # include <limits.h>
20731 # include <assert.h>
20736 /* Override any gcc2 internal prototype to avoid an error. */
20741 /* We use char because int might match the return type of a gcc2
20742 builtin and then its argument prototype would still apply. */
20744 /* The GNU C library defines this for functions which it implements
20745 to always fail with ENOSYS. Some functions are actually named
20746 something starting with __ and the normal name is an alias. */
20747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20750 char (*f) () = $ac_func;
20759 return f != $ac_func;
20764 rm -f conftest.$ac_objext conftest$ac_exeext
20765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20766 (eval $ac_link) 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; } &&
20779 { ac_try='test -s conftest$ac_exeext'
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785 eval "$as_ac_var=yes"
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20790 eval "$as_ac_var=no"
20792 rm -f conftest.err conftest.$ac_objext \
20793 conftest$ac_exeext conftest.$ac_ext
20795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20797 if test `eval echo '${'$as_ac_var'}'` = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20805 echo "$as_me:$LINENO: checking for working snprintf" >&5
20806 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
20807 if test "${ac_cv_have_working_snprintf+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 if test "$cross_compiling" = yes; then
20811 ac_cv_have_working_snprintf=cross
20813 cat >conftest.$ac_ext <<_ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h. */
20823 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20824 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20826 i = snprintf (bufs, 2, "%s", "111");
20827 if (strcmp (bufs, "1")) exit (1);
20828 if (i != 3) exit (1);
20829 i = snprintf (bufd, 2, "%d", 111);
20830 if (strcmp (bufd, "1")) exit (1);
20831 if (i != 3) exit (1);
20835 rm -f conftest$ac_exeext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20837 (eval $ac_link) 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842 (eval $ac_try) 2>&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; }; then
20846 ac_cv_have_working_snprintf=yes
20848 echo "$as_me: program exited with status $ac_status" >&5
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 ( exit $ac_status )
20853 ac_cv_have_working_snprintf=no
20855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20859 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
20860 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
20861 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
20862 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
20863 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
20864 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 if test "$cross_compiling" = yes; then
20867 ac_cv_have_working_vsnprintf=cross
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20876 #include <stdarg.h>
20878 int my_vsnprintf (char *buf, const char *tmpl, ...)
20882 va_start (args, tmpl);
20883 i = vsnprintf (buf, 2, tmpl, args);
20890 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20891 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20893 i = my_vsnprintf (bufs, "%s", "111");
20894 if (strcmp (bufs, "1")) exit (1);
20895 if (i != 3) exit (1);
20896 i = my_vsnprintf (bufd, "%d", 111);
20897 if (strcmp (bufd, "1")) exit (1);
20898 if (i != 3) exit (1);
20902 rm -f conftest$ac_exeext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20904 (eval $ac_link) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 ac_cv_have_working_vsnprintf=yes
20915 echo "$as_me: program exited with status $ac_status" >&5
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ( exit $ac_status )
20920 ac_cv_have_working_vsnprintf=no
20922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20926 echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
20927 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
20928 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
20930 "snprintf.$ac_objext" | \
20931 *" snprintf.$ac_objext" | \
20932 "snprintf.$ac_objext "* | \
20933 *" snprintf.$ac_objext "* ) ;;
20934 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
20937 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
20938 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
20940 cat >>confdefs.h <<\_ACEOF
20941 #define PREFER_PORTABLE_SNPRINTF 1
20945 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
20946 echo "$as_me:$LINENO: checking for asprintf" >&5
20947 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
20948 if test "${ac_cv_func_asprintf+set}" = set; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
20958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20959 #define asprintf innocuous_asprintf
20961 /* System header to define __stub macros and hopefully few prototypes,
20962 which can conflict with char asprintf (); below.
20963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964 <limits.h> exists even on freestanding compilers. */
20967 # include <limits.h>
20969 # include <assert.h>
20974 /* Override any gcc2 internal prototype to avoid an error. */
20979 /* We use char because int might match the return type of a gcc2
20980 builtin and then its argument prototype would still apply. */
20982 /* The GNU C library defines this for functions which it implements
20983 to always fail with ENOSYS. Some functions are actually named
20984 something starting with __ and the normal name is an alias. */
20985 #if defined (__stub_asprintf) || defined (__stub___asprintf)
20988 char (*f) () = asprintf;
20997 return f != asprintf;
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest$ac_exeext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_func_asprintf=yes
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_cv_func_asprintf=no
21030 rm -f conftest.err conftest.$ac_objext \
21031 conftest$ac_exeext conftest.$ac_ext
21033 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21034 echo "${ECHO_T}$ac_cv_func_asprintf" >&6
21035 if test $ac_cv_func_asprintf = yes; then
21039 cat >>confdefs.h <<\_ACEOF
21040 #define NEED_ASPRINTF 1
21045 echo "$as_me:$LINENO: checking for vasprintf" >&5
21046 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
21047 if test "${ac_cv_func_vasprintf+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 cat >conftest.$ac_ext <<_ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21058 #define vasprintf innocuous_vasprintf
21060 /* System header to define __stub macros and hopefully few prototypes,
21061 which can conflict with char vasprintf (); below.
21062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21063 <limits.h> exists even on freestanding compilers. */
21066 # include <limits.h>
21068 # include <assert.h>
21073 /* Override any gcc2 internal prototype to avoid an error. */
21078 /* We use char because int might match the return type of a gcc2
21079 builtin and then its argument prototype would still apply. */
21081 /* The GNU C library defines this for functions which it implements
21082 to always fail with ENOSYS. Some functions are actually named
21083 something starting with __ and the normal name is an alias. */
21084 #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
21087 char (*f) () = vasprintf;
21096 return f != vasprintf;
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21103 (eval $ac_link) 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
21110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; } &&
21116 { ac_try='test -s conftest$ac_exeext'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 ac_cv_func_vasprintf=yes
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21127 ac_cv_func_vasprintf=no
21129 rm -f conftest.err conftest.$ac_objext \
21130 conftest$ac_exeext conftest.$ac_ext
21132 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21133 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
21134 if test $ac_cv_func_vasprintf = yes; then
21138 cat >>confdefs.h <<\_ACEOF
21139 #define NEED_VASPRINTF 1
21145 # Checks for typedefs, structures, and compiler characteristics.
21146 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21147 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21148 if test "${ac_cv_c_const+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21161 /* FIXME: Include the comments suggested by Paul. */
21162 #ifndef __cplusplus
21163 /* Ultrix mips cc rejects this. */
21164 typedef int charset[2];
21166 /* SunOS 4.1.1 cc rejects this. */
21167 char const *const *ccp;
21169 /* NEC SVR4.0.2 mips cc rejects this. */
21170 struct point {int x, y;};
21171 static struct point const zero = {0,0};
21172 /* AIX XL C 1.02.0.0 rejects this.
21173 It does not let you subtract one const X* pointer from another in
21174 an arm of an if-expression whose if-part is not a constant
21176 const char *g = "string";
21177 ccp = &g + (g ? g-g : 0);
21178 /* HPUX 7.0 cc rejects these. */
21181 ccp = (char const *const *) p;
21182 { /* SCO 3.2v4 cc rejects this. */
21184 char const *s = 0 ? (char *) 0 : (char const *) 0;
21188 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21189 int x[] = {25, 17};
21190 const int *foo = &x[0];
21193 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21194 typedef const int *iptr;
21198 { /* AIX XL C 1.02.0.0 rejects this saying
21199 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21200 struct s { int j; const int *ap[3]; };
21201 struct s *b; b->j = 5;
21203 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21204 const int foo = 10;
21212 rm -f conftest.$ac_objext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21214 (eval $ac_compile) 2>conftest.er1
21216 grep -v '^ *+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; } &&
21227 { ac_try='test -s conftest.$ac_objext'
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21242 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21243 echo "${ECHO_T}$ac_cv_c_const" >&6
21244 if test $ac_cv_c_const = no; then
21246 cat >>confdefs.h <<\_ACEOF
21252 echo "$as_me:$LINENO: checking for inline" >&5
21253 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21254 if test "${ac_cv_c_inline+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 for ac_kw in inline __inline__ __inline; do
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 #ifndef __cplusplus
21267 static $ac_kw foo_t static_foo () {return 0; }
21268 $ac_kw foo_t foo () {return 0; }
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274 (eval $ac_compile) 2>conftest.er1
21276 grep -v '^ *+' conftest.er1 >conftest.err
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } &&
21281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try='test -s conftest.$ac_objext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_cv_c_inline=$ac_kw; break
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21303 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21304 echo "${ECHO_T}$ac_cv_c_inline" >&6
21307 case $ac_cv_c_inline in
21310 case $ac_cv_c_inline in
21312 *) ac_val=$ac_cv_c_inline;;
21314 cat >>confdefs.h <<_ACEOF
21315 #ifndef __cplusplus
21316 #define inline $ac_val
21322 echo "$as_me:$LINENO: checking for size_t" >&5
21323 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21324 if test "${ac_cv_type_size_t+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 cat >conftest.$ac_ext <<_ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 $ac_includes_default
21339 if (sizeof (size_t))
21345 rm -f conftest.$ac_objext
21346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21347 (eval $ac_compile) 2>conftest.er1
21349 grep -v '^ *+' conftest.er1 >conftest.err
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
21354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest.$ac_objext'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_type_size_t=yes
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 ac_cv_type_size_t=no
21373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21375 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21376 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21377 if test $ac_cv_type_size_t = yes; then
21381 cat >>confdefs.h <<_ACEOF
21382 #define size_t unsigned
21388 ###################################
21389 ## SimGrid and GRAS specific checks
21393 echo "$as_me:$LINENO: result: " >&5
21394 echo "${ECHO_T}" >&6
21395 echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21396 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6
21398 # Check architecture signature begin
21400 # Check for the architecture
21401 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21402 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21403 if test "${ac_cv_c_bigendian+set}" = set; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21406 # See if sys/param.h defines the BYTE_ORDER macro.
21407 cat >conftest.$ac_ext <<_ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <sys/types.h>
21414 #include <sys/param.h>
21419 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21420 bogus endian macros
21427 rm -f conftest.$ac_objext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429 (eval $ac_compile) 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; } &&
21442 { ac_try='test -s conftest.$ac_objext'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448 # It does; now see whether it defined to BIG_ENDIAN or not.
21449 cat >conftest.$ac_ext <<_ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455 #include <sys/types.h>
21456 #include <sys/param.h>
21461 #if BYTE_ORDER != BIG_ENDIAN
21469 rm -f conftest.$ac_objext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21471 (eval $ac_compile) 2>conftest.er1
21473 grep -v '^ *+' conftest.er1 >conftest.err
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; } &&
21484 { ac_try='test -s conftest.$ac_objext'
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; }; then
21490 ac_cv_c_bigendian=yes
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ac_cv_c_bigendian=no
21497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 # It does not; compile a test program.
21503 if test "$cross_compiling" = yes; then
21504 # try to guess the endianness by grepping values into an object file
21505 ac_cv_c_bigendian=unknown
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21513 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21514 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21515 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21516 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21517 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21521 _ascii (); _ebcdic ();
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528 (eval $ac_compile) 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
21535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest.$ac_objext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
21547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21548 ac_cv_c_bigendian=yes
21550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21551 if test "$ac_cv_c_bigendian" = unknown; then
21552 ac_cv_c_bigendian=no
21554 # finding both strings is unlikely to happen, but who knows?
21555 ac_cv_c_bigendian=unknown
21559 echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21574 /* Are we little or big endian? From Harbison&Steele. */
21578 char c[sizeof (long)];
21581 exit (u.c[sizeof (long) - 1] == 1);
21584 rm -f conftest$ac_exeext
21585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586 (eval $ac_link) 2>&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 ac_cv_c_bigendian=no
21597 echo "$as_me: program exited with status $ac_status" >&5
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ( exit $ac_status )
21602 ac_cv_c_bigendian=yes
21604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21609 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21610 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21611 case $ac_cv_c_bigendian in
21617 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21618 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21619 { (exit 1); exit 1; }; } ;;
21623 cat >>confdefs.h <<_ACEOF
21624 #define GRAS_BIGENDIAN $endian
21628 echo "$as_me:$LINENO: checking size of char" >&5
21629 echo $ECHO_N "checking size of char... $ECHO_C" >&6
21630 if test "${ac_cv_sizeof_char+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21634 cat >conftest.$ac_ext <<_ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 #include "confdefs.h"
21641 #include <sys/types.h>
21647 switch (0) case 0: case (sizeof (char) == $ac_size):;
21652 rm -f conftest.$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21656 grep -v '^ *+' conftest.er1 >conftest.err
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; } &&
21667 { ac_try='test -s conftest.$ac_objext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 ac_cv_sizeof_char=$ac_size
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21680 if test x$ac_cv_sizeof_char != x ; then break; fi
21686 unspecif=$ac_cv_sizeof_char
21687 if test x$unspecif = x ; then
21688 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
21689 echo "$as_me: error: cannot determine a size for char" >&2;}
21690 { (exit 1); exit 1; }; }
21693 if test "${ac_cv_sizeof_signed_char+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21697 cat >conftest.$ac_ext <<_ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include "confdefs.h"
21704 #include <sys/types.h>
21710 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
21715 rm -f conftest.$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } &&
21724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest.$ac_objext'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ac_cv_sizeof_signed_char=$ac_size
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21743 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
21749 signed=$ac_cv_sizeof_signed_char
21750 if test x$signed = x ; then
21751 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
21752 echo "$as_me: error: cannot determine a size for signed char" >&2;}
21753 { (exit 1); exit 1; }; }
21755 if test x$unspecif != x$signed ; then
21756 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
21757 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
21758 { (exit 1); exit 1; }; }
21761 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 #include "confdefs.h"
21772 #include <sys/types.h>
21778 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785 (eval $ac_compile) 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; } &&
21798 { ac_try='test -s conftest.$ac_objext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 ac_cv_sizeof_unsigned_char=$ac_size
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21811 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
21817 unsigned=$ac_cv_sizeof_unsigned_char
21818 if test x$unsigned = x ; then
21819 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
21820 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
21821 { (exit 1); exit 1; }; }
21823 if test x$unsigned != x$signed ; then
21824 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
21825 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
21826 { (exit 1); exit 1; }; }
21829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
21830 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
21831 echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
21832 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6
21834 if test "${ac_cv_struct_boundary_char+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
21838 cat >conftest.$ac_ext <<_ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 #include "confdefs.h"
21845 #include <sys/types.h>
21846 struct s { char c; char i; };
21851 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858 (eval $ac_compile) 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } &&
21865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest.$ac_objext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 ac_cv_struct_boundary_char=$ac_size
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21884 if test x$ac_cv_struct_boundary_char != x ; then break; fi
21889 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
21890 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6
21891 if test x$ac_cv_struct_boundary_char = x ; then
21892 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
21893 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
21894 { (exit 1); exit 1; }; }
21897 echo "$as_me:$LINENO: checking size of short int" >&5
21898 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
21899 if test "${ac_cv_sizeof_short_int+set}" = set; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21903 cat >conftest.$ac_ext <<_ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 #include "confdefs.h"
21910 #include <sys/types.h>
21916 switch (0) case 0: case (sizeof (short int) == $ac_size):;
21921 rm -f conftest.$ac_objext
21922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21923 (eval $ac_compile) 2>conftest.er1
21925 grep -v '^ *+' conftest.er1 >conftest.err
21927 cat conftest.err >&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } &&
21930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; } &&
21936 { ac_try='test -s conftest.$ac_objext'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }; then
21942 ac_cv_sizeof_short_int=$ac_size
21944 echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.$ac_ext >&5
21948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21949 if test x$ac_cv_sizeof_short_int != x ; then break; fi
21955 unspecif=$ac_cv_sizeof_short_int
21956 if test x$unspecif = x ; then
21957 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
21958 echo "$as_me: error: cannot determine a size for short int" >&2;}
21959 { (exit 1); exit 1; }; }
21962 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21966 cat >conftest.$ac_ext <<_ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21972 #include "confdefs.h"
21973 #include <sys/types.h>
21979 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
21984 rm -f conftest.$ac_objext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21986 (eval $ac_compile) 2>conftest.er1
21988 grep -v '^ *+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } &&
21993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; } &&
21999 { ac_try='test -s conftest.$ac_objext'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; }; then
22005 ac_cv_sizeof_signed_short_int=$ac_size
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22012 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22018 signed=$ac_cv_sizeof_signed_short_int
22019 if test x$signed = x ; then
22020 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22021 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22022 { (exit 1); exit 1; }; }
22024 if test x$unspecif != x$signed ; then
22025 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22026 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22027 { (exit 1); exit 1; }; }
22030 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 #include "confdefs.h"
22041 #include <sys/types.h>
22047 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22052 rm -f conftest.$ac_objext
22053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22054 (eval $ac_compile) 2>conftest.er1
22056 grep -v '^ *+' conftest.er1 >conftest.err
22058 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } &&
22061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; } &&
22067 { ac_try='test -s conftest.$ac_objext'
22068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069 (eval $ac_try) 2>&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22073 ac_cv_sizeof_unsigned_short_int=$ac_size
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22080 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22086 unsigned=$ac_cv_sizeof_unsigned_short_int
22087 if test x$unsigned = x ; then
22088 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22089 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22090 { (exit 1); exit 1; }; }
22092 if test x$unsigned != x$signed ; then
22093 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22094 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22095 { (exit 1); exit 1; }; }
22098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22099 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
22100 echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22101 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6
22103 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22107 cat >conftest.$ac_ext <<_ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22113 #include "confdefs.h"
22114 #include <sys/types.h>
22115 struct s { char c; short int i; };
22120 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22125 rm -f conftest.$ac_objext
22126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22127 (eval $ac_compile) 2>conftest.er1
22129 grep -v '^ *+' conftest.er1 >conftest.err
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } &&
22134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136 (eval $ac_try) 2>&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); }; } &&
22140 { ac_try='test -s conftest.$ac_objext'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; }; then
22146 ac_cv_struct_boundary_short_int=$ac_size
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22153 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22158 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22159 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6
22160 if test x$ac_cv_struct_boundary_short_int = x ; then
22161 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22162 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22163 { (exit 1); exit 1; }; }
22166 echo "$as_me:$LINENO: checking size of int" >&5
22167 echo $ECHO_N "checking size of int... $ECHO_C" >&6
22168 if test "${ac_cv_sizeof_int+set}" = set; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22172 cat >conftest.$ac_ext <<_ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 #include "confdefs.h"
22179 #include <sys/types.h>
22185 switch (0) case 0: case (sizeof (int) == $ac_size):;
22190 rm -f conftest.$ac_objext
22191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22192 (eval $ac_compile) 2>conftest.er1
22194 grep -v '^ *+' conftest.er1 >conftest.err
22196 cat conftest.err >&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } &&
22199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; } &&
22205 { ac_try='test -s conftest.$ac_objext'
22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; }; then
22211 ac_cv_sizeof_int=$ac_size
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22218 if test x$ac_cv_sizeof_int != x ; then break; fi
22224 unspecif=$ac_cv_sizeof_int
22225 if test x$unspecif = x ; then
22226 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22227 echo "$as_me: error: cannot determine a size for int" >&2;}
22228 { (exit 1); exit 1; }; }
22231 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22235 cat >conftest.$ac_ext <<_ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 #include "confdefs.h"
22242 #include <sys/types.h>
22248 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22253 rm -f conftest.$ac_objext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22255 (eval $ac_compile) 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
22262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try='test -s conftest.$ac_objext'
22269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270 (eval $ac_try) 2>&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; }; then
22274 ac_cv_sizeof_signed_int=$ac_size
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22281 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22287 signed=$ac_cv_sizeof_signed_int
22288 if test x$signed = x ; then
22289 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22290 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22291 { (exit 1); exit 1; }; }
22293 if test x$unspecif != x$signed ; then
22294 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22295 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22296 { (exit 1); exit 1; }; }
22299 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22302 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22303 cat >conftest.$ac_ext <<_ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 #include "confdefs.h"
22310 #include <sys/types.h>
22316 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22321 rm -f conftest.$ac_objext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323 (eval $ac_compile) 2>conftest.er1
22325 grep -v '^ *+' conftest.er1 >conftest.err
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } &&
22330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332 (eval $ac_try) 2>&5
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); }; } &&
22336 { ac_try='test -s conftest.$ac_objext'
22337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338 (eval $ac_try) 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 ac_cv_sizeof_unsigned_int=$ac_size
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22349 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22355 unsigned=$ac_cv_sizeof_unsigned_int
22356 if test x$unsigned = x ; then
22357 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22358 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22359 { (exit 1); exit 1; }; }
22361 if test x$unsigned != x$signed ; then
22362 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22363 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22364 { (exit 1); exit 1; }; }
22367 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22368 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
22369 echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22370 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6
22372 if test "${ac_cv_struct_boundary_int+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22376 cat >conftest.$ac_ext <<_ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22382 #include "confdefs.h"
22383 #include <sys/types.h>
22384 struct s { char c; int i; };
22389 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
22394 rm -f conftest.$ac_objext
22395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22396 (eval $ac_compile) 2>conftest.er1
22398 grep -v '^ *+' conftest.er1 >conftest.err
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } &&
22403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; } &&
22409 { ac_try='test -s conftest.$ac_objext'
22410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411 (eval $ac_try) 2>&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); }; }; then
22415 ac_cv_struct_boundary_int=$ac_size
22417 echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22422 if test x$ac_cv_struct_boundary_int != x ; then break; fi
22427 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22428 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6
22429 if test x$ac_cv_struct_boundary_int = x ; then
22430 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22431 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22432 { (exit 1); exit 1; }; }
22435 echo "$as_me:$LINENO: checking size of long int" >&5
22436 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
22437 if test "${ac_cv_sizeof_long_int+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22440 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include "confdefs.h"
22448 #include <sys/types.h>
22454 switch (0) case 0: case (sizeof (long int) == $ac_size):;
22459 rm -f conftest.$ac_objext
22460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22461 (eval $ac_compile) 2>conftest.er1
22463 grep -v '^ *+' conftest.er1 >conftest.err
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } &&
22468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; } &&
22474 { ac_try='test -s conftest.$ac_objext'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; }; then
22480 ac_cv_sizeof_long_int=$ac_size
22482 echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22487 if test x$ac_cv_sizeof_long_int != x ; then break; fi
22493 unspecif=$ac_cv_sizeof_long_int
22494 if test x$unspecif = x ; then
22495 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22496 echo "$as_me: error: cannot determine a size for long int" >&2;}
22497 { (exit 1); exit 1; }; }
22500 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 #include "confdefs.h"
22511 #include <sys/types.h>
22517 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22522 rm -f conftest.$ac_objext
22523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524 (eval $ac_compile) 2>conftest.er1
22526 grep -v '^ *+' conftest.er1 >conftest.err
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } &&
22531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } &&
22537 { ac_try='test -s conftest.$ac_objext'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 ac_cv_sizeof_signed_long_int=$ac_size
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22550 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22556 signed=$ac_cv_sizeof_signed_long_int
22557 if test x$signed = x ; then
22558 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22559 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22560 { (exit 1); exit 1; }; }
22562 if test x$unspecif != x$signed ; then
22563 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22564 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22565 { (exit 1); exit 1; }; }
22568 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22572 cat >conftest.$ac_ext <<_ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h. */
22578 #include "confdefs.h"
22579 #include <sys/types.h>
22585 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
22590 rm -f conftest.$ac_objext
22591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22592 (eval $ac_compile) 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } &&
22599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; } &&
22605 { ac_try='test -s conftest.$ac_objext'
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
22611 ac_cv_sizeof_unsigned_long_int=$ac_size
22613 echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22618 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
22624 unsigned=$ac_cv_sizeof_unsigned_long_int
22625 if test x$unsigned = x ; then
22626 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
22627 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
22628 { (exit 1); exit 1; }; }
22630 if test x$unsigned != x$signed ; then
22631 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
22632 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
22633 { (exit 1); exit 1; }; }
22636 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
22637 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
22638 echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
22639 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6
22641 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22644 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22645 cat >conftest.$ac_ext <<_ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22651 #include "confdefs.h"
22652 #include <sys/types.h>
22653 struct s { char c; long int i; };
22658 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
22663 rm -f conftest.$ac_objext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22665 (eval $ac_compile) 2>conftest.er1
22667 grep -v '^ *+' conftest.er1 >conftest.err
22669 cat conftest.err >&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
22672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest.$ac_objext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 ac_cv_struct_boundary_long_int=$ac_size
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22691 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
22696 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
22697 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6
22698 if test x$ac_cv_struct_boundary_long_int = x ; then
22699 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
22700 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
22701 { (exit 1); exit 1; }; }
22704 echo "$as_me:$LINENO: checking size of long long int" >&5
22705 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
22706 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22709 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 #include "confdefs.h"
22717 #include <sys/types.h>
22723 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
22728 rm -f conftest.$ac_objext
22729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22730 (eval $ac_compile) 2>conftest.er1
22732 grep -v '^ *+' conftest.er1 >conftest.err
22734 cat conftest.err >&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } &&
22737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; } &&
22743 { ac_try='test -s conftest.$ac_objext'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 ac_cv_sizeof_long_long_int=$ac_size
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22756 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
22762 unspecif=$ac_cv_sizeof_long_long_int
22763 if test x$unspecif = x ; then
22764 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
22765 echo "$as_me: error: cannot determine a size for long long int" >&2;}
22766 { (exit 1); exit 1; }; }
22769 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22773 cat >conftest.$ac_ext <<_ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 #include "confdefs.h"
22780 #include <sys/types.h>
22786 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
22791 rm -f conftest.$ac_objext
22792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22793 (eval $ac_compile) 2>conftest.er1
22795 grep -v '^ *+' conftest.er1 >conftest.err
22797 cat conftest.err >&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); } &&
22800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802 (eval $ac_try) 2>&5
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; } &&
22806 { ac_try='test -s conftest.$ac_objext'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 ac_cv_sizeof_signed_long_long_int=$ac_size
22814 echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22819 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
22825 signed=$ac_cv_sizeof_signed_long_long_int
22826 if test x$signed = x ; then
22827 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
22828 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
22829 { (exit 1); exit 1; }; }
22831 if test x$unspecif != x$signed ; then
22832 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
22833 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
22834 { (exit 1); exit 1; }; }
22837 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22840 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22841 cat >conftest.$ac_ext <<_ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 #include "confdefs.h"
22848 #include <sys/types.h>
22854 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
22859 rm -f conftest.$ac_objext
22860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22861 (eval $ac_compile) 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } &&
22868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; } &&
22874 { ac_try='test -s conftest.$ac_objext'
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; }; then
22880 ac_cv_sizeof_unsigned_long_long_int=$ac_size
22882 echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22887 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
22893 unsigned=$ac_cv_sizeof_unsigned_long_long_int
22894 if test x$unsigned = x ; then
22895 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
22896 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
22897 { (exit 1); exit 1; }; }
22899 if test x$unsigned != x$signed ; then
22900 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
22901 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
22902 { (exit 1); exit 1; }; }
22905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
22906 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
22907 echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
22908 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6
22910 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #include "confdefs.h"
22921 #include <sys/types.h>
22922 struct s { char c; long long int i; };
22927 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
22932 rm -f conftest.$ac_objext
22933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22934 (eval $ac_compile) 2>conftest.er1
22936 grep -v '^ *+' conftest.er1 >conftest.err
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } &&
22941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; } &&
22947 { ac_try='test -s conftest.$ac_objext'
22948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949 (eval $ac_try) 2>&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); }; }; then
22953 ac_cv_struct_boundary_long_long_int=$ac_size
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22960 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
22965 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
22966 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6
22967 if test x$ac_cv_struct_boundary_long_long_int = x ; then
22968 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
22969 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
22970 { (exit 1); exit 1; }; }
22974 echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
22975 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6
22977 if test "${ac_cv_struct_boundary_float+set}" = set; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22980 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 #include "confdefs.h"
22988 #include <sys/types.h>
22989 struct s { char c; float i; };
22994 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
22999 rm -f conftest.$ac_objext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23001 (eval $ac_compile) 2>conftest.er1
23003 grep -v '^ *+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
23008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; } &&
23014 { ac_try='test -s conftest.$ac_objext'
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; }; then
23020 ac_cv_struct_boundary_float=$ac_size
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23027 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23032 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23033 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6
23034 if test x$ac_cv_struct_boundary_float = x ; then
23035 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23036 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23037 { (exit 1); exit 1; }; }
23039 echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23040 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6
23042 if test "${ac_cv_struct_boundary_double+set}" = set; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23045 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 #include "confdefs.h"
23053 #include <sys/types.h>
23054 struct s { char c; double i; };
23059 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23064 rm -f conftest.$ac_objext
23065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23066 (eval $ac_compile) 2>conftest.er1
23068 grep -v '^ *+' conftest.er1 >conftest.err
23070 cat conftest.err >&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } &&
23073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075 (eval $ac_try) 2>&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); }; } &&
23079 { ac_try='test -s conftest.$ac_objext'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23085 ac_cv_struct_boundary_double=$ac_size
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23092 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23097 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23098 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6
23099 if test x$ac_cv_struct_boundary_double = x ; then
23100 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23101 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23102 { (exit 1); exit 1; }; }
23106 echo "$as_me:$LINENO: checking size of void *" >&5
23107 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
23108 if test "${ac_cv_sizeof_void_p+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 #include "confdefs.h"
23119 #include <sys/types.h>
23125 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23130 rm -f conftest.$ac_objext
23131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23132 (eval $ac_compile) 2>conftest.er1
23134 grep -v '^ *+' conftest.er1 >conftest.err
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } &&
23139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141 (eval $ac_try) 2>&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); }; } &&
23145 { ac_try='test -s conftest.$ac_objext'
23146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147 (eval $ac_try) 2>&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); }; }; then
23151 ac_cv_sizeof_void_p=$ac_size
23153 echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23158 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23164 if test x$ac_cv_sizeof_void_p = x ; then
23165 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23166 echo "$as_me: error: cannot determine a size for void *" >&2;}
23167 { (exit 1); exit 1; }; }
23169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23170 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
23171 echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23172 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6
23174 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23178 cat >conftest.$ac_ext <<_ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 #include "confdefs.h"
23185 #include <sys/types.h>
23186 struct s { char c; void * i; };
23191 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23196 rm -f conftest.$ac_objext
23197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23198 (eval $ac_compile) 2>conftest.er1
23200 grep -v '^ *+' conftest.er1 >conftest.err
23202 cat conftest.err >&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); } &&
23205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; } &&
23211 { ac_try='test -s conftest.$ac_objext'
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; }; then
23217 ac_cv_struct_boundary_void_p=$ac_size
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23224 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23229 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23230 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6
23231 if test x$ac_cv_struct_boundary_void_p = x ; then
23232 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23233 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23234 { (exit 1); exit 1; }; }
23237 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23238 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
23239 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23242 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 #include "confdefs.h"
23250 #include <sys/types.h>
23256 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23261 rm -f conftest.$ac_objext
23262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23263 (eval $ac_compile) 2>conftest.er1
23265 grep -v '^ *+' conftest.er1 >conftest.err
23267 cat conftest.err >&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); } &&
23270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; } &&
23276 { ac_try='test -s conftest.$ac_objext'
23277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278 (eval $ac_try) 2>&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); }; }; then
23282 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23284 echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23289 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23295 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23296 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23297 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23298 { (exit 1); exit 1; }; }
23300 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23301 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
23305 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23306 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
23307 if test x$endian = x1 ; then
23313 trace="$trace_endian"
23315 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23317 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23318 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23319 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23320 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23322 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23323 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23325 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23327 # sizeof float/double are not tested since IEEE 754 is assumed.
23328 # Check README.IEEE for rational.
23330 # The numbers after the _ in the arch name are the maximal packing boundary.
23331 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23332 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23334 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;;
23335 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;;
23336 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;;
23337 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;;
23339 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;;
23341 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;;
23342 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;;
23343 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;;
23344 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;;
23346 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;;
23347 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;;
23349 if test x$gras_arch = xunknown ; then
23350 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23351 echo "${ECHO_T}damnit ($trace)" >&6
23352 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23353 Please report this architecture trace ($trace) and what it corresponds to." >&5
23354 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23355 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23356 { (exit 1); exit 1; }; }
23358 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23360 cat >>confdefs.h <<_ACEOF
23361 #define GRAS_THISARCH $gras_arch
23364 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23365 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
23367 echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23368 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6
23370 for s in $ac_cv_sizeof_char \
23371 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23372 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23375 if test $ac_cv_sizeof_max -lt $s ; then
23376 ac_cv_sizeof_max=$s
23379 echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23380 echo "${ECHO_T}$ac_cv_sizeof_max" >&6
23382 cat >>confdefs.h <<_ACEOF
23383 #define SIZEOF_MAX $ac_cv_sizeof_max
23388 # Check architecture signature end
23389 echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23390 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 #include "confdefs.h"
23398 #include <sys/types.h>
23399 #include <stddef.h> /* offsetof() */
23400 struct s {char c; double d;};
23407 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23413 rm -f conftest.$ac_objext
23414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23415 (eval $ac_compile) 2>conftest.er1
23417 grep -v '^ *+' conftest.er1 >conftest.err
23419 cat conftest.err >&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } &&
23422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; } &&
23428 { ac_try='test -s conftest.$ac_objext'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; }; then
23434 gras_struct_packed=yes
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 gras_struct_packed=no
23441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23443 echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23444 echo "${ECHO_T}$gras_struct_packed" >&6
23445 if test x$gras_struct_packed = "xyes" ; then
23446 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23447 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23448 { (exit 1); exit 1; }; }
23451 echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23452 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6
23453 cat >conftest.$ac_ext <<_ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 #include "confdefs.h"
23460 #include <sys/types.h>
23461 #include <stddef.h> /* offsetof() */
23462 struct s {double d; int i; char c;};
23469 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23475 rm -f conftest.$ac_objext
23476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23477 (eval $ac_compile) 2>conftest.er1
23479 grep -v '^ *+' conftest.er1 >conftest.err
23481 cat conftest.err >&5
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } &&
23484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; } &&
23490 { ac_try='test -s conftest.$ac_objext'
23491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492 (eval $ac_try) 2>&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); }; }; then
23496 gras_struct_compact=yes
23498 echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23501 gras_struct_compact=no
23503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23505 echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23506 echo "${ECHO_T}$gras_struct_compact" >&6
23508 if test x$gras_struct_compact != xyes ; then
23509 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23510 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23511 { (exit 1); exit 1; }; }
23514 cat >>confdefs.h <<_ACEOF
23515 #define GRAS_STRUCT_COMPACT 1
23518 echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23519 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6
23521 cat >conftest.$ac_ext <<_ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23527 #include "confdefs.h"
23528 #include <sys/types.h>
23529 #include <stddef.h> /* offsetof() */
23530 struct s { double d; int i; char c[6]; };
23537 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23543 rm -f conftest.$ac_objext
23544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23545 (eval $ac_compile) 2>conftest.er1
23547 grep -v '^ *+' conftest.er1 >conftest.err
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } &&
23552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554 (eval $ac_try) 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; } &&
23558 { ac_try='test -s conftest.$ac_objext'
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; }; then
23564 gras_array_straddle_struct=yes
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 gras_array_straddle_struct=no
23571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23573 echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23574 echo "${ECHO_T}$gras_array_straddle_struct" >&6
23576 if test x$gras_array_straddle_struct = xyes ; then
23578 cat >>confdefs.h <<_ACEOF
23579 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23583 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23584 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23585 { (exit 1); exit 1; }; }
23592 echo "$as_me:$LINENO: result: " >&5
23593 echo "${ECHO_T}" >&6
23594 echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23595 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6
23600 echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23601 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6
23602 if test "${ac_cv_check_mcsc+set}" = set; then
23603 echo $ECHO_N "(cached) $ECHO_C" >&6
23606 if test "$cross_compiling" = yes; then
23607 ac_cv_check_mcsc=no
23610 cat >conftest.$ac_ext <<_ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23619 #include <stdlib.h>
23620 #include <ucontext.h>
23622 ucontext_t uc_child;
23623 ucontext_t uc_main;
23625 void child(void *arg)
23627 if (arg != (void *)2147483648)
23629 if (swapcontext(&uc_child, &uc_main) != 0)
23633 int main(int argc, char *argv[])
23638 /* the default is that it fails */
23639 if ((fp = fopen("conftestval", "w")) == NULL)
23641 fprintf(fp, "no\n");
23644 /* configure a child user-space context */
23645 if ((stack = malloc(64*1024)) == NULL)
23647 if (getcontext(&uc_child) != 0)
23649 uc_child.uc_link = NULL;
23650 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
23651 uc_child.uc_stack.ss_size = 32*1024;
23652 uc_child.uc_stack.ss_flags = 0;
23653 makecontext(&uc_child, child, 2, (void *)2147483648);
23655 /* switch into the user context */
23656 if (swapcontext(&uc_main, &uc_child) != 0)
23659 /* Fine, child came home */
23660 if ((fp = fopen("conftestval", "w")) == NULL)
23662 fprintf(fp, "yes\n");
23665 /* die successfully */
23670 rm -f conftest$ac_exeext
23671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23672 (eval $ac_link) 2>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23681 ac_cv_check_mcsc=`cat conftestval`
23683 echo "$as_me: program exited with status $ac_status" >&5
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23687 ( exit $ac_status )
23688 ac_cv_check_mcsc=no
23690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23693 echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
23694 echo "${ECHO_T}$ac_cv_check_mcsc" >&6
23695 if test ".$ac_cv_check_mcsc" = .yes; then
23703 for ac_header in pthread.h
23705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23707 echo "$as_me:$LINENO: checking for $ac_header" >&5
23708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23710 echo $ECHO_N "(cached) $ECHO_C" >&6
23712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23715 # Is the header compilable?
23716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23718 cat >conftest.$ac_ext <<_ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23724 $ac_includes_default
23725 #include <$ac_header>
23727 rm -f conftest.$ac_objext
23728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23729 (eval $ac_compile) 2>conftest.er1
23731 grep -v '^ *+' conftest.er1 >conftest.err
23733 cat conftest.err >&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } &&
23736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; } &&
23742 { ac_try='test -s conftest.$ac_objext'
23743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744 (eval $ac_try) 2>&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); }; }; then
23748 ac_header_compiler=yes
23750 echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 ac_header_compiler=no
23755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23757 echo "${ECHO_T}$ac_header_compiler" >&6
23759 # Is the header present?
23760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23762 cat >conftest.$ac_ext <<_ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 #include <$ac_header>
23770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23773 grep -v '^ *+' conftest.er1 >conftest.err
23775 cat conftest.err >&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } >/dev/null; then
23778 if test -s conftest.err; then
23779 ac_cpp_err=$ac_c_preproc_warn_flag
23780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23787 if test -z "$ac_cpp_err"; then
23788 ac_header_preproc=yes
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ac_header_preproc=no
23795 rm -f conftest.err conftest.$ac_ext
23796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23797 echo "${ECHO_T}$ac_header_preproc" >&6
23799 # So? What about this header?
23800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23806 ac_header_preproc=yes
23809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23823 ## -------------------------------------------------- ##
23824 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
23825 ## -------------------------------------------------- ##
23828 sed "s/^/$as_me: WARNING: /" >&2
23831 echo "$as_me:$LINENO: checking for $ac_header" >&5
23832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23834 echo $ECHO_N "(cached) $ECHO_C" >&6
23836 eval "$as_ac_Header=\$ac_header_preproc"
23838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23843 cat >>confdefs.h <<_ACEOF
23844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23851 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23852 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
23853 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 ac_check_lib_save_LIBS=$LIBS
23857 LIBS="-lpthread $LIBS"
23858 cat >conftest.$ac_ext <<_ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23865 /* Override any gcc2 internal prototype to avoid an error. */
23869 /* We use char because int might match the return type of a gcc2
23870 builtin and then its argument prototype would still apply. */
23871 char pthread_create ();
23880 rm -f conftest.$ac_objext conftest$ac_exeext
23881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23882 (eval $ac_link) 2>conftest.er1
23884 grep -v '^ *+' conftest.er1 >conftest.err
23886 cat conftest.err >&5
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } &&
23889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891 (eval $ac_try) 2>&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); }; } &&
23895 { ac_try='test -s conftest$ac_exeext'
23896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897 (eval $ac_try) 2>&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); }; }; then
23901 ac_cv_lib_pthread_pthread_create=yes
23903 echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23906 ac_cv_lib_pthread_pthread_create=no
23908 rm -f conftest.err conftest.$ac_objext \
23909 conftest$ac_exeext conftest.$ac_ext
23910 LIBS=$ac_check_lib_save_LIBS
23912 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23913 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23914 if test $ac_cv_lib_pthread_pthread_create = yes; then
23922 if test ".$mcsc" = .yes; then
23924 elif test ".$pthread" = .yes; then
23927 ac_header=windows.h
23928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23930 windows_context=yes
23932 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
23933 echo "$as_me: error: no appropriate backend found" >&2;}
23934 { (exit 1); exit 1; }; }
23939 echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
23940 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6
23943 # Check whether --with-pthread or --without-pthread was given.
23944 if test "${with_pthread+set}" = set; then
23945 withval="$with_pthread"
23946 with_context=pthread
23950 # Check whether --with-context or --without-context was given.
23951 if test "${with_context+set}" = set; then
23952 withval="$with_context"
23958 if test "x$with_context$mcsc" = "xucontextno" ; then
23959 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
23960 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
23961 { (exit 77); exit 77; }; }
23964 case $with_context in
23968 auto) with_context=ucontext;;
23969 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
23970 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
23971 { (exit 1); exit 1; }; } ;;
23974 if test "x$with_context" = "xucontext" ; then
23975 if test ".$mcsc" = .yes; then
23976 echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
23977 echo "${ECHO_T}found working ucontext. Great!" >&6
23979 cat >>confdefs.h <<\_ACEOF
23980 #define CONTEXT_UCONTEXT 1
23984 if test ".$windows_context" = .yes ; then
23985 echo "$as_me:$LINENO: result: use windows context portability layer." >&5
23986 echo "${ECHO_T}use windows context portability layer." >&6
23987 with_context=windows
23989 echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
23990 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6
23991 with_context=pthread
23996 if test "x$with_context" = "xpthread"; then
23998 for ac_header in pthread.h
24000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24002 echo "$as_me:$LINENO: checking for $ac_header" >&5
24003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24010 # Is the header compilable?
24011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24013 cat >conftest.$ac_ext <<_ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 $ac_includes_default
24020 #include <$ac_header>
24022 rm -f conftest.$ac_objext
24023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24024 (eval $ac_compile) 2>conftest.er1
24026 grep -v '^ *+' conftest.er1 >conftest.err
24028 cat conftest.err >&5
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); } &&
24031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033 (eval $ac_try) 2>&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); }; } &&
24037 { ac_try='test -s conftest.$ac_objext'
24038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24039 (eval $ac_try) 2>&5
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); }; }; then
24043 ac_header_compiler=yes
24045 echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24048 ac_header_compiler=no
24050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24052 echo "${ECHO_T}$ac_header_compiler" >&6
24054 # Is the header present?
24055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24057 cat >conftest.$ac_ext <<_ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h. */
24063 #include <$ac_header>
24065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24068 grep -v '^ *+' conftest.er1 >conftest.err
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } >/dev/null; then
24073 if test -s conftest.err; then
24074 ac_cpp_err=$ac_c_preproc_warn_flag
24075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24082 if test -z "$ac_cpp_err"; then
24083 ac_header_preproc=yes
24085 echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24088 ac_header_preproc=no
24090 rm -f conftest.err conftest.$ac_ext
24091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24092 echo "${ECHO_T}$ac_header_preproc" >&6
24094 # So? What about this header?
24095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24101 ac_header_preproc=yes
24104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24118 ## -------------------------------------------------- ##
24119 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24120 ## -------------------------------------------------- ##
24123 sed "s/^/$as_me: WARNING: /" >&2
24126 echo "$as_me:$LINENO: checking for $ac_header" >&5
24127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24131 eval "$as_ac_Header=\$ac_header_preproc"
24133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24138 cat >>confdefs.h <<_ACEOF
24139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24147 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24148 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24149 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24150 echo $ECHO_N "(cached) $ECHO_C" >&6
24152 ac_check_lib_save_LIBS=$LIBS
24153 LIBS="-lpthread $LIBS"
24154 cat >conftest.$ac_ext <<_ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h. */
24161 /* Override any gcc2 internal prototype to avoid an error. */
24165 /* We use char because int might match the return type of a gcc2
24166 builtin and then its argument prototype would still apply. */
24167 char pthread_create ();
24176 rm -f conftest.$ac_objext conftest$ac_exeext
24177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24178 (eval $ac_link) 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
24185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187 (eval $ac_try) 2>&5
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); }; } &&
24191 { ac_try='test -s conftest$ac_exeext'
24192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24193 (eval $ac_try) 2>&5
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); }; }; then
24197 ac_cv_lib_pthread_pthread_create=yes
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24202 ac_cv_lib_pthread_pthread_create=no
24204 rm -f conftest.err conftest.$ac_objext \
24205 conftest$ac_exeext conftest.$ac_ext
24206 LIBS=$ac_check_lib_save_LIBS
24208 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24209 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24210 if test $ac_cv_lib_pthread_pthread_create = yes; then
24211 cat >>confdefs.h <<_ACEOF
24212 #define HAVE_LIBPTHREAD 1
24215 LIBS="-lpthread $LIBS"
24218 { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24219 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24220 { (exit 1); exit 1; }; }
24224 cat >>confdefs.h <<\_ACEOF
24225 #define CONTEXT_THREADS 1
24228 echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24229 echo "${ECHO_T}You have pthreads. Let's use them." >&6
24233 if test "x$with_context" = "xucontext" ; then
24234 echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24235 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6
24236 if test "${ac_cv_check_stackgrowth+set}" = set; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24241 if test "$cross_compiling" = yes; then
24242 ac_cv_check_stackgrowth=down
24245 cat >conftest.$ac_ext <<_ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24253 #include <stdlib.h>
24254 static int iterate = 10;
24255 static int growsdown(int *x)
24265 int main(int argc, char *argv[])
24269 if ((f = fopen("conftestval", "w")) == NULL)
24271 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24278 rm -f conftest$ac_exeext
24279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24280 (eval $ac_link) 2>&5
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24285 (eval $ac_try) 2>&5
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); }; }; then
24289 ac_cv_check_stackgrowth=`cat conftestval`
24291 echo "$as_me: program exited with status $ac_status" >&5
24292 echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24295 ( exit $ac_status )
24296 ac_cv_check_stackgrowth=down
24298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24301 echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24302 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6
24303 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24309 cat >>confdefs.h <<_ACEOF
24310 #define PTH_STACKGROWTH $val
24314 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24315 PTH_STACK_GROWTH="down"
24317 PTH_STACK_GROWTH="up"
24325 for ac_func in makecontext
24327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24328 echo "$as_me:$LINENO: checking for $ac_func" >&5
24329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24330 if eval "test \"\${$as_ac_var+set}\" = set"; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24333 cat >conftest.$ac_ext <<_ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h. */
24339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24341 #define $ac_func innocuous_$ac_func
24343 /* System header to define __stub macros and hopefully few prototypes,
24344 which can conflict with char $ac_func (); below.
24345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24346 <limits.h> exists even on freestanding compilers. */
24349 # include <limits.h>
24351 # include <assert.h>
24356 /* Override any gcc2 internal prototype to avoid an error. */
24361 /* We use char because int might match the return type of a gcc2
24362 builtin and then its argument prototype would still apply. */
24364 /* The GNU C library defines this for functions which it implements
24365 to always fail with ENOSYS. Some functions are actually named
24366 something starting with __ and the normal name is an alias. */
24367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24370 char (*f) () = $ac_func;
24379 return f != $ac_func;
24384 rm -f conftest.$ac_objext conftest$ac_exeext
24385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24386 (eval $ac_link) 2>conftest.er1
24388 grep -v '^ *+' conftest.er1 >conftest.err
24390 cat conftest.err >&5
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } &&
24393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; } &&
24399 { ac_try='test -s conftest$ac_exeext'
24400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401 (eval $ac_try) 2>&5
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); }; }; then
24405 eval "$as_ac_var=yes"
24407 echo "$as_me: failed program was:" >&5
24408 sed 's/^/| /' conftest.$ac_ext >&5
24410 eval "$as_ac_var=no"
24412 rm -f conftest.err conftest.$ac_objext \
24413 conftest$ac_exeext conftest.$ac_ext
24415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24417 if test `eval echo '${'$as_ac_var'}'` = yes; then
24418 cat >>confdefs.h <<_ACEOF
24419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24426 echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24427 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6
24428 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24429 echo $ECHO_N "(cached) $ECHO_C" >&6
24432 if test ".$ac_cv_func_makecontext" = .no; then
24433 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24436 CFLAGS="$CFLAGS -DTEST_makecontext"
24438 if test "$cross_compiling" = yes; then
24440 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24451 #include <stdlib.h>
24452 #include <string.h>
24453 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24454 #include <sys/types.h>
24455 #include <signal.h>
24456 #include <unistd.h>
24458 #if defined(TEST_makecontext)
24459 #include <ucontext.h>
24468 static volatile char *handler_addr = (char *)0xDEAD;
24469 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24470 static volatile int handler_done = 0;
24471 void handler(int sig)
24473 char garbage[1024];
24476 for (i = 0; i < 1024; i++)
24478 handler_addr = (char *)&dummy;
24483 #if defined(TEST_makecontext)
24484 static ucontext_t uc_handler;
24485 static ucontext_t uc_main;
24488 char garbage[1024];
24491 for (i = 0; i < 1024; i++)
24493 handler_addr = (char *)&dummy;
24494 swapcontext(&uc_handler, &uc_main);
24498 int main(int argc, char *argv[])
24507 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24510 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24512 skaddr = skbuf+sizeof(union alltypes);
24513 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24515 struct sigaction sa;
24516 #if defined(TEST_sigstack)
24517 struct sigstack ss;
24518 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24521 struct sigaltstack ss;
24523 #if defined(TEST_sigstack)
24524 ss.ss_sp = (void *)(skaddr + sksize);
24526 if (sigstack(&ss, NULL) < 0)
24528 #elif defined(TEST_sigaltstack)
24529 ss.ss_sp = (void *)(skaddr + sksize);
24530 ss.ss_size = sksize;
24532 if (sigaltstack(&ss, NULL) < 0)
24535 memset((void *)&sa, 0, sizeof(struct sigaction));
24536 sa.sa_handler = handler;
24537 sa.sa_flags = SA_ONSTACK;
24538 sigemptyset(&sa.sa_mask);
24539 sigaction(SIGUSR1, &sa, NULL);
24540 kill(getpid(), SIGUSR1);
24541 while (!handler_done)
24545 #if defined(TEST_makecontext)
24547 if (getcontext(&uc_handler) != 0)
24549 uc_handler.uc_link = NULL;
24550 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
24551 uc_handler.uc_stack.ss_size = sksize;
24552 uc_handler.uc_stack.ss_flags = 0;
24553 makecontext(&uc_handler, handler, 1);
24554 swapcontext(&uc_main, &uc_handler);
24557 if (handler_addr == (char *)0xDEAD)
24559 if (handler_addr < skaddr+sksize) {
24560 /* stack was placed into lower area */
24561 if (*(skaddr+sksize) != 'A')
24562 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24563 sizeof(union alltypes), sizeof(union alltypes));
24565 strcpy(result, "(skaddr)+(sksize),(sksize)");
24568 /* stack was placed into higher area */
24569 if (*(skaddr+sksize*2) != 'A')
24570 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24572 strcpy(result, "(skaddr),(sksize)");
24574 if ((f = fopen("conftestval", "w")) == NULL)
24576 fprintf(f, "%s\n", result);
24582 rm -f conftest$ac_exeext
24583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24584 (eval $ac_link) 2>&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589 (eval $ac_try) 2>&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; }; then
24594 ac_cv_stacksetup_makecontext=`cat conftestval`
24595 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
24598 echo "$as_me: program exited with status $ac_status" >&5
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24602 ( exit $ac_status )
24604 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24613 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
24614 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
24615 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
24616 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
24617 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
24618 echo "$as_me:$LINENO: result: $type" >&5
24619 echo "${ECHO_T}$type" >&6
24620 if test ".$verbose" = .yes; then
24621 echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
24622 echo "${ECHO_T} $pth_skaddr_makecontext" >&6
24625 if test ".$verbose" = .yes; then
24626 echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
24627 echo "${ECHO_T} $pth_sksize_makecontext" >&6
24634 #########################################
24635 ## Build optional modules (simix)
24638 echo "$as_me:$LINENO: result: " >&5
24639 echo "${ECHO_T}" >&6
24640 echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
24641 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6
24643 # Check whether --enable-simix or --disable-simix was given.
24644 if test "${enable_simix+set}" = set; then
24645 enableval="$enable_simix"
24646 enable_simix=$enableval
24650 if test "x$enable_simix" = "xyes" ; then
24651 echo "$as_me:$LINENO: result: \"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&5
24652 echo "${ECHO_T}\"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&6
24654 cat >>confdefs.h <<\_ACEOF
24655 #define USE_SIMIX 1
24659 echo "$as_me:$LINENO: result: Eventually you will come to SimIX: x$enable_simix" >&5
24660 echo "${ECHO_T}Eventually you will come to SimIX: x$enable_simix" >&6
24664 if test x$enable_simix != xno; then
24666 USE_SIMIX_FALSE='#'
24673 #########################################
24674 ## Check for libraries extra-dependencies
24678 echo "$as_me:$LINENO: result: " >&5
24679 echo "${ECHO_T}" >&6
24680 echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
24681 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6
24686 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24687 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24688 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 ac_check_lib_save_LIBS=$LIBS
24692 LIBS="-lpthread $LIBS"
24693 cat >conftest.$ac_ext <<_ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h. */
24700 /* Override any gcc2 internal prototype to avoid an error. */
24704 /* We use char because int might match the return type of a gcc2
24705 builtin and then its argument prototype would still apply. */
24706 char pthread_create ();
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24717 (eval $ac_link) 2>conftest.er1
24719 grep -v '^ *+' conftest.er1 >conftest.err
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } &&
24724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; } &&
24730 { ac_try='test -s conftest$ac_exeext'
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
24736 ac_cv_lib_pthread_pthread_create=yes
24738 echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ac_cv_lib_pthread_pthread_create=no
24743 rm -f conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
24745 LIBS=$ac_check_lib_save_LIBS
24747 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24748 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24749 if test $ac_cv_lib_pthread_pthread_create = yes; then
24750 SIMGRID_DEP="-lpthread"; GRAS_DEP="-lpthread"
24754 echo "$as_me:$LINENO: checking for csdp" >&5
24755 echo $ECHO_N "checking for csdp... $ECHO_C" >&6
24757 echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
24758 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6
24759 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
24760 echo $ECHO_N "(cached) $ECHO_C" >&6
24762 ac_check_lib_save_LIBS=$LIBS
24763 LIBS="-lsdp -llapack -lblas -lm $LIBS"
24764 cat >conftest.$ac_ext <<_ACEOF
24767 cat confdefs.h >>conftest.$ac_ext
24768 cat >>conftest.$ac_ext <<_ACEOF
24769 /* end confdefs.h. */
24771 /* Override any gcc2 internal prototype to avoid an error. */
24775 /* We use char because int might match the return type of a gcc2
24776 builtin and then its argument prototype would still apply. */
24786 rm -f conftest.$ac_objext conftest$ac_exeext
24787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24788 (eval $ac_link) 2>conftest.er1
24790 grep -v '^ *+' conftest.er1 >conftest.err
24792 cat conftest.err >&5
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); } &&
24795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; } &&
24801 { ac_try='test -s conftest$ac_exeext'
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; }; then
24807 ac_cv_lib_sdp_sdp=yes
24809 echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24812 ac_cv_lib_sdp_sdp=no
24814 rm -f conftest.err conftest.$ac_objext \
24815 conftest$ac_exeext conftest.$ac_ext
24816 LIBS=$ac_check_lib_save_LIBS
24818 echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
24819 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6
24820 if test $ac_cv_lib_sdp_sdp = yes; then
24826 if test "x$csdp" = xyes; then
24827 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
24828 echo "$as_me:$LINENO: result: Found working sdp library." >&5
24829 echo "${ECHO_T}Found working sdp library." >&6
24831 cat >>confdefs.h <<\_ACEOF
24836 echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
24837 echo "${ECHO_T}Could not find any working sdp library." >&6
24841 if test x$csdp != xno; then
24852 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24853 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24854 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24855 echo $ECHO_N "(cached) $ECHO_C" >&6
24857 ac_check_lib_save_LIBS=$LIBS
24859 cat >conftest.$ac_ext <<_ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h. */
24866 /* Override any gcc2 internal prototype to avoid an error. */
24870 /* We use char because int might match the return type of a gcc2
24871 builtin and then its argument prototype would still apply. */
24872 char gethostbyname ();
24881 rm -f conftest.$ac_objext conftest$ac_exeext
24882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24883 (eval $ac_link) 2>conftest.er1
24885 grep -v '^ *+' conftest.er1 >conftest.err
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } &&
24890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; } &&
24896 { ac_try='test -s conftest$ac_exeext'
24897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898 (eval $ac_try) 2>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
24902 ac_cv_lib_nsl_gethostbyname=yes
24904 echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24907 ac_cv_lib_nsl_gethostbyname=no
24909 rm -f conftest.err conftest.$ac_objext \
24910 conftest$ac_exeext conftest.$ac_ext
24911 LIBS=$ac_check_lib_save_LIBS
24913 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24914 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24915 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24916 GRAS_DEP="$GRAS_DEP -lnsl"
24919 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24920 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24921 if test "${ac_cv_lib_socket_connect+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 ac_check_lib_save_LIBS=$LIBS
24925 LIBS="-lsocket $LIBS"
24926 cat >conftest.$ac_ext <<_ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24933 /* Override any gcc2 internal prototype to avoid an error. */
24937 /* We use char because int might match the return type of a gcc2
24938 builtin and then its argument prototype would still apply. */
24948 rm -f conftest.$ac_objext conftest$ac_exeext
24949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24950 (eval $ac_link) 2>conftest.er1
24952 grep -v '^ *+' conftest.er1 >conftest.err
24954 cat conftest.err >&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } &&
24957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959 (eval $ac_try) 2>&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }; } &&
24963 { ac_try='test -s conftest$ac_exeext'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; }; then
24969 ac_cv_lib_socket_connect=yes
24971 echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24974 ac_cv_lib_socket_connect=no
24976 rm -f conftest.err conftest.$ac_objext \
24977 conftest$ac_exeext conftest.$ac_ext
24978 LIBS=$ac_check_lib_save_LIBS
24980 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24981 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24982 if test $ac_cv_lib_socket_connect = yes; then
24983 GRAS_DEP="$GRAS_DEP -lsocket"
24987 echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
24988 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6
24990 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
24991 AM_CFLAGS=-DDLL_EXPORT
24993 cat >>confdefs.h <<\_ACEOF
24994 #define CONTEXT_THREADS 1
24999 if test "x$GRAS_DEP" = x; then
25000 echo "$as_me:$LINENO: result: none" >&5
25001 echo "${ECHO_T}none" >&6
25003 echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25004 echo "${ECHO_T}$GRAS_DEP" >&6
25009 ##############################################
25010 ## Enhance maintainer mode and SUBST variables
25011 ## (must be placed after any compilation tests since our overprotective flags
25012 ## let some tests fail)
25014 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25015 # Next line is modified by sed when building gramine source tree
25017 if test x$gramine_mode = xyes
25019 USE_MAINTAINER_MODE=no
25023 if test x$gramine_mode != xno; then
25025 GRAMINE_MODE_FALSE='#'
25027 GRAMINE_MODE_TRUE='#'
25028 GRAMINE_MODE_FALSE=
25033 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25034 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
25035 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
25036 if test "${enable_maintainer_mode+set}" = set; then
25037 enableval="$enable_maintainer_mode"
25038 USE_MAINTAINER_MODE=$enableval
25040 USE_MAINTAINER_MODE=no
25042 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25043 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
25046 if test $USE_MAINTAINER_MODE = yes; then
25047 MAINTAINER_MODE_TRUE=
25048 MAINTAINER_MODE_FALSE='#'
25050 MAINTAINER_MODE_TRUE='#'
25051 MAINTAINER_MODE_FALSE=
25054 MAINT=$MAINTAINER_MODE_TRUE
25057 if test x$USE_MAINTAINER_MODE = xyes
25059 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25060 enable_compile_warnings=yes
25063 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
25064 if test "${enable_compile_warnings+set}" = set; then
25065 enableval="$enable_compile_warnings"
25066 enable_compile_warnings=$enableval
25068 enable_compile_warnings=no
25071 # Check whether --enable-compile-optimizations or --disable-compile-optimizations was given.
25072 if test "${enable_compile_optimizations+set}" = set; then
25073 enableval="$enable_compile_optimizations"
25074 enable_compile_optimizations=$enableval
25076 enable_compile_optimizations=auto
25079 if test "x$cflags_set" != "xyes" ; then
25080 # if user didn't specify CFLAGS explicitely
25082 # AC PROG CC tests whether -g is accepted.
25083 # Cool, but it also tries to set -O2. I don't want it with gcc
25084 saveCFLAGS="$CFLAGS"
25086 case " $saveCFLAGS " in
25087 *-g*) CFLAGS="-g" ;;
25089 case " $saveCFLAGS " in
25090 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25093 # damn AC PROG CC, why did you set -O??
25097 if test "x$enable_compile_warnings" = "xyes" ; then
25098 echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25099 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6
25101 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25102 case " $CFLAGS " in
25104 *) warnCFLAGS="-Wall -Wunused" ;;
25107 ## -W is not all that useful. And it cannot be controlled
25108 ## with individual -Wno-xxx flags, unlike -Wall
25110 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25111 ## -Wshadow chokes on try{ try{} } constructs
25112 if test "x$enable_compile_warnings" = "xyes"; then
25113 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25114 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25115 -Wno-unused-function \
25118 # -Wno-unused-variable -Wno-unused-label
25121 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25122 echo "${ECHO_T}$warnCFLAGS" >&6
25123 # placed before since gcc remembers the last one on conflict
25124 CFLAGS="$warnCFLAGS $CFLAGS"
25127 if test "x$enable_compile_optimizations" = "xyes" ||
25128 test "x$enable_compile_optimizations" = "xauto" ; then
25129 echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25130 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6
25132 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25133 case " $CFLAGS " in
25135 *) optCFLAGS="$optCFLAGS -O3" ;;
25137 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25139 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25140 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25141 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25142 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25143 # isn't propagated enough to desserve an extra check
25145 # Note that the flag didn't exist before gcc 3.0
25146 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25149 echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25150 echo "${ECHO_T}$optCFLAGS" >&6
25151 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25152 if test "x$cflags_set" != "xyes" ; then
25153 CFLAGS="$optCFLAGS $CFLAGS"
25157 if test x$lt_cv_prog_gnu_ld = xyes ; then
25158 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25174 #####################
25175 ## Check for programs
25179 echo "$as_me:$LINENO: result: " >&5
25180 echo "${ECHO_T}" >&6
25181 echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25182 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6
25184 # Extract the first word of "bash", so it can be a program name with args.
25185 set dummy bash; ac_word=$2
25186 echo "$as_me:$LINENO: checking for $ac_word" >&5
25187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25188 if test "${ac_cv_prog_BASH+set}" = set; then
25189 echo $ECHO_N "(cached) $ECHO_C" >&6
25191 if test -n "$BASH"; then
25192 ac_cv_prog_BASH="$BASH" # Let the user override the test.
25194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25195 for as_dir in $PATH
25198 test -z "$as_dir" && as_dir=.
25199 for ac_exec_ext in '' $ac_executable_extensions; do
25200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25201 ac_cv_prog_BASH="`which bash`"
25202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25208 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25211 BASH=$ac_cv_prog_BASH
25212 if test -n "$BASH"; then
25213 echo "$as_me:$LINENO: result: $BASH" >&5
25214 echo "${ECHO_T}$BASH" >&6
25216 echo "$as_me:$LINENO: result: no" >&5
25217 echo "${ECHO_T}no" >&6
25220 WARNING="This file is generated, do not edit"
25224 # Can we rebuild the parsers?
25225 # We really want flex and refuse other lex. So, the parser is portable and
25226 # does not induce extra lib dependency
25227 for ac_prog in flex lex
25229 # Extract the first word of "$ac_prog", so it can be a program name with args.
25230 set dummy $ac_prog; ac_word=$2
25231 echo "$as_me:$LINENO: checking for $ac_word" >&5
25232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25233 if test "${ac_cv_prog_LEX+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25236 if test -n "$LEX"; then
25237 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25240 for as_dir in $PATH
25243 test -z "$as_dir" && as_dir=.
25244 for ac_exec_ext in '' $ac_executable_extensions; do
25245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25246 ac_cv_prog_LEX="$ac_prog"
25247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25255 LEX=$ac_cv_prog_LEX
25256 if test -n "$LEX"; then
25257 echo "$as_me:$LINENO: result: $LEX" >&5
25258 echo "${ECHO_T}$LEX" >&6
25260 echo "$as_me:$LINENO: result: no" >&5
25261 echo "${ECHO_T}no" >&6
25264 test -n "$LEX" && break
25266 test -n "$LEX" || LEX=":"
25268 if test -z "$LEXLIB"
25270 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
25271 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
25272 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
25273 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 ac_check_lib_save_LIBS=$LIBS
25277 cat >conftest.$ac_ext <<_ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25284 /* Override any gcc2 internal prototype to avoid an error. */
25288 /* We use char because int might match the return type of a gcc2
25289 builtin and then its argument prototype would still apply. */
25299 rm -f conftest.$ac_objext conftest$ac_exeext
25300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25301 (eval $ac_link) 2>conftest.er1
25303 grep -v '^ *+' conftest.er1 >conftest.err
25305 cat conftest.err >&5
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } &&
25308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310 (eval $ac_try) 2>&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); }; } &&
25314 { ac_try='test -s conftest$ac_exeext'
25315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316 (eval $ac_try) 2>&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); }; }; then
25320 ac_cv_lib_fl_yywrap=yes
25322 echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25325 ac_cv_lib_fl_yywrap=no
25327 rm -f conftest.err conftest.$ac_objext \
25328 conftest$ac_exeext conftest.$ac_ext
25329 LIBS=$ac_check_lib_save_LIBS
25331 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
25332 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
25333 if test $ac_cv_lib_fl_yywrap = yes; then
25336 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
25337 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
25338 if test "${ac_cv_lib_l_yywrap+set}" = set; then
25339 echo $ECHO_N "(cached) $ECHO_C" >&6
25341 ac_check_lib_save_LIBS=$LIBS
25343 cat >conftest.$ac_ext <<_ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25350 /* Override any gcc2 internal prototype to avoid an error. */
25354 /* We use char because int might match the return type of a gcc2
25355 builtin and then its argument prototype would still apply. */
25365 rm -f conftest.$ac_objext conftest$ac_exeext
25366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25367 (eval $ac_link) 2>conftest.er1
25369 grep -v '^ *+' conftest.er1 >conftest.err
25371 cat conftest.err >&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); } &&
25374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376 (eval $ac_try) 2>&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); }; } &&
25380 { ac_try='test -s conftest$ac_exeext'
25381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382 (eval $ac_try) 2>&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; }; then
25386 ac_cv_lib_l_yywrap=yes
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25391 ac_cv_lib_l_yywrap=no
25393 rm -f conftest.err conftest.$ac_objext \
25394 conftest$ac_exeext conftest.$ac_ext
25395 LIBS=$ac_check_lib_save_LIBS
25397 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
25398 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
25399 if test $ac_cv_lib_l_yywrap = yes; then
25407 if test "x$LEX" != "x:"; then
25408 echo "$as_me:$LINENO: checking lex output file root" >&5
25409 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
25410 if test "${ac_cv_prog_lex_root+set}" = set; then
25411 echo $ECHO_N "(cached) $ECHO_C" >&6
25413 # The minimal lex program is just a single line: %%. But some broken lexes
25414 # (Solaris, I think it was) want two %% lines, so accommodate them.
25415 cat >conftest.l <<_ACEOF
25419 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
25420 (eval $LEX conftest.l) 2>&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }
25424 if test -f lex.yy.c; then
25425 ac_cv_prog_lex_root=lex.yy
25426 elif test -f lexyy.c; then
25427 ac_cv_prog_lex_root=lexyy
25429 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25430 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25431 { (exit 1); exit 1; }; }
25434 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25435 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
25437 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25439 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25440 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
25441 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25442 echo $ECHO_N "(cached) $ECHO_C" >&6
25444 # POSIX says lex can declare yytext either as a pointer or an array; the
25445 # default is implementation-dependent. Figure out which it is, since
25446 # not all implementations provide the %pointer and %array declarations.
25447 ac_cv_prog_lex_yytext_pointer=no
25448 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
25450 LIBS="$LIBS $LEXLIB"
25451 cat >conftest.$ac_ext <<_ACEOF
25452 `cat $LEX_OUTPUT_ROOT.c`
25454 rm -f conftest.$ac_objext conftest$ac_exeext
25455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25456 (eval $ac_link) 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25465 (eval $ac_try) 2>&5
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; } &&
25469 { ac_try='test -s conftest$ac_exeext'
25470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471 (eval $ac_try) 2>&5
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); }; }; then
25475 ac_cv_prog_lex_yytext_pointer=yes
25477 echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25481 rm -f conftest.err conftest.$ac_objext \
25482 conftest$ac_exeext conftest.$ac_ext
25484 rm -f "${LEX_OUTPUT_ROOT}.c"
25487 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25488 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
25489 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25491 cat >>confdefs.h <<\_ACEOF
25492 #define YYTEXT_POINTER 1
25499 if test "$LEX" != flex; then
25500 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25501 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25502 LEX=${am_missing_run}flex
25506 if test "x2.5.30" != "x" ; then
25507 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25509 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25510 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25511 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25513 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25514 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25515 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25517 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25518 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
25519 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25521 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25522 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25523 LEX=${am_missing_run}flex
25527 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25528 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25534 # Can we rebuild the xml-lexers from the XML specification?
25535 # if not, simply touch the flex source files (which are distributed in
25536 # tarballs even if generated by flexml) and hope for the best.
25537 # Extract the first word of "flexml", so it can be a program name with args.
25538 set dummy flexml; ac_word=$2
25539 echo "$as_me:$LINENO: checking for $ac_word" >&5
25540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25541 if test "${ac_cv_prog_FLEXML+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 if test -n "$FLEXML"; then
25545 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25548 for as_dir in $PATH
25551 test -z "$as_dir" && as_dir=.
25552 for ac_exec_ext in '' $ac_executable_extensions; do
25553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25554 ac_cv_prog_FLEXML="`which flexml`"
25555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25561 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25564 FLEXML=$ac_cv_prog_FLEXML
25565 if test -n "$FLEXML"; then
25566 echo "$as_me:$LINENO: result: $FLEXML" >&5
25567 echo "${ECHO_T}$FLEXML" >&6
25569 echo "$as_me:$LINENO: result: no" >&5
25570 echo "${ECHO_T}no" >&6
25575 if test x$FLEXML != xNOTFOUND; then
25577 HAVE_FLEXML_FALSE='#'
25579 HAVE_FLEXML_TRUE='#'
25584 if test x$USE_MAINTAINER_MODE = xyes
25586 # Check for doxygen when in maintainer mode since dist* targets fail
25588 # Extract the first word of "doxygen", so it can be a program name with args.
25589 set dummy doxygen; ac_word=$2
25590 echo "$as_me:$LINENO: checking for $ac_word" >&5
25591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25592 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25597 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25601 for as_dir in $PATH
25604 test -z "$as_dir" && as_dir=.
25605 for ac_exec_ext in '' $ac_executable_extensions; do
25606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25607 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25614 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25618 DOXYGEN=$ac_cv_path_DOXYGEN
25620 if test -n "$DOXYGEN"; then
25621 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25622 echo "${ECHO_T}$DOXYGEN" >&6
25624 echo "$as_me:$LINENO: result: no" >&5
25625 echo "${ECHO_T}no" >&6
25628 if test x$DOXYGEN = x ; then
25629 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25630 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25631 { (exit 1); exit 1; }; }
25635 # Can we extract really usable backtraces? (also need the popen function)
25636 # Extract the first word of "addr2line", so it can be a program name with args.
25637 set dummy addr2line; ac_word=$2
25638 echo "$as_me:$LINENO: checking for $ac_word" >&5
25639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25640 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25641 echo $ECHO_N "(cached) $ECHO_C" >&6
25645 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
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_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25665 ADDR2LINE=$ac_cv_path_ADDR2LINE
25667 if test -n "$ADDR2LINE"; then
25668 echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
25669 echo "${ECHO_T}$ADDR2LINE" >&6
25671 echo "$as_me:$LINENO: result: no" >&5
25672 echo "${ECHO_T}no" >&6
25675 if test x$ADDR2LINE != x ; then
25677 cat >>confdefs.h <<_ACEOF
25678 #define ADDR2LINE "$ADDR2LINE"
25684 # Can we make status line about the compilation result?
25685 # Extract the first word of "md5sum", so it can be a program name with args.
25686 set dummy md5sum; ac_word=$2
25687 echo "$as_me:$LINENO: checking for $ac_word" >&5
25688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25689 if test "${ac_cv_prog_MD5SUM+set}" = set; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 if test -n "$MD5SUM"; then
25693 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
25695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25696 for as_dir in $PATH
25699 test -z "$as_dir" && as_dir=.
25700 for ac_exec_ext in '' $ac_executable_extensions; do
25701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25702 ac_cv_prog_MD5SUM="`which md5sum`"
25703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25711 MD5SUM=$ac_cv_prog_MD5SUM
25712 if test -n "$MD5SUM"; then
25713 echo "$as_me:$LINENO: result: $MD5SUM" >&5
25714 echo "${ECHO_T}$MD5SUM" >&6
25716 echo "$as_me:$LINENO: result: no" >&5
25717 echo "${ECHO_T}no" >&6
25720 if test x$MD5SUM != xno ; then
25721 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
25722 xargs cat| $MD5SUM | sed 's/ .*$//'`
25724 build_version="no_md5sum_binary"
25726 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
25729 ###################
25730 ## Makes the output
25735 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
25736 # src/amok/Makefile
25739 echo "$as_me:$LINENO: result: " >&5
25740 echo "${ECHO_T}" >&6
25741 echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
25742 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6
25745 # Core of the libraries
25747 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
25750 # Tools being embeeded in gramine (stub generator)
25751 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
25755 # GRAMINE_CUT_BEGIN
25757 # Tools NOT being embeeded in gramine
25758 ac_config_files="$ac_config_files tools/graspe-slave"
25763 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
25767 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
25772 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"
25775 # examples/gras/chord/test_sg examples/gras/chord/test_rl \
25776 # examples/gras/pastry/test_sg
25780 # examples/gras/saturate/Makefile examples/gras/saturate/test_sg
25781 # examples/gras/alnem/Makefile examples/gras/alnem/test_sg
25786 cat >confcache <<\_ACEOF
25787 # This file is a shell script that caches the results of configure
25788 # tests run on this system so they can be shared between configure
25789 # scripts and configure runs, see configure's option --config-cache.
25790 # It is not useful on other systems. If it contains results you don't
25791 # want to keep, you may remove or edit it.
25793 # config.status only pays attention to the cache file if you give it
25794 # the --recheck option to rerun configure.
25796 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25797 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25798 # following values.
25802 # The following way of writing the cache mishandles newlines in values,
25803 # but we know of no workaround that is simple, portable, and efficient.
25804 # So, don't put newlines in cache variables' values.
25805 # Ultrix sh set writes to stderr and can't be redirected directly,
25806 # and sets the high bit in the cache file unless we assign to the vars.
25809 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25811 # `set' does not quote correctly, so add quotes (double-quote
25812 # substitution turns \\\\ into \\, and sed turns \\ into \).
25815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25818 # `set' quotes correctly as required by POSIX, so do not add quotes.
25820 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25829 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25831 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25832 if test -w $cache_file; then
25833 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25834 cat confcache >$cache_file
25836 echo "not updating unwritable cache $cache_file"
25841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25842 # Let make expand exec_prefix.
25843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25845 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25846 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25847 # trailing colons and then remove the whole line if VPATH becomes empty
25848 # (actually we leave an empty line to preserve line numbers).
25849 if test "x$srcdir" = x.; then
25850 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25851 s/:*\$(srcdir):*/:/;
25852 s/:*\${srcdir}:*/:/;
25854 s/^\([^=]*=[ ]*\):*/\1/;
25860 DEFS=-DHAVE_CONFIG_H
25864 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25865 # 1. Remove the extension, and $U if already installed.
25866 ac_i=`echo "$ac_i" |
25867 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25869 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25870 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25872 LIBOBJS=$ac_libobjs
25874 LTLIBOBJS=$ac_ltlibobjs
25877 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25878 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25879 Usually this means the macro was only invoked conditionally." >&5
25880 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25881 Usually this means the macro was only invoked conditionally." >&2;}
25882 { (exit 1); exit 1; }; }
25884 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25885 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25886 Usually this means the macro was only invoked conditionally." >&5
25887 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25888 Usually this means the macro was only invoked conditionally." >&2;}
25889 { (exit 1); exit 1; }; }
25891 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25892 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25893 Usually this means the macro was only invoked conditionally." >&5
25894 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25895 Usually this means the macro was only invoked conditionally." >&2;}
25896 { (exit 1); exit 1; }; }
25898 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25899 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25900 Usually this means the macro was only invoked conditionally." >&5
25901 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25902 Usually this means the macro was only invoked conditionally." >&2;}
25903 { (exit 1); exit 1; }; }
25905 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
25906 { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
25907 Usually this means the macro was only invoked conditionally." >&5
25908 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
25909 Usually this means the macro was only invoked conditionally." >&2;}
25910 { (exit 1); exit 1; }; }
25912 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
25913 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
25914 Usually this means the macro was only invoked conditionally." >&5
25915 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
25916 Usually this means the macro was only invoked conditionally." >&2;}
25917 { (exit 1); exit 1; }; }
25919 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
25920 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
25921 Usually this means the macro was only invoked conditionally." >&5
25922 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
25923 Usually this means the macro was only invoked conditionally." >&2;}
25924 { (exit 1); exit 1; }; }
25926 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25927 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25928 Usually this means the macro was only invoked conditionally." >&5
25929 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25930 Usually this means the macro was only invoked conditionally." >&2;}
25931 { (exit 1); exit 1; }; }
25933 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
25934 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
25935 Usually this means the macro was only invoked conditionally." >&5
25936 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
25937 Usually this means the macro was only invoked conditionally." >&2;}
25938 { (exit 1); exit 1; }; }
25941 : ${CONFIG_STATUS=./config.status}
25942 ac_clean_files_save=$ac_clean_files
25943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25944 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25945 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25946 cat >$CONFIG_STATUS <<_ACEOF
25948 # Generated by $as_me.
25949 # Run this file to recreate the current configuration.
25950 # Compiler output produced by configure, useful for debugging
25951 # configure, is in config.log if it exists.
25954 ac_cs_recheck=false
25956 SHELL=\${CONFIG_SHELL-$SHELL}
25959 cat >>$CONFIG_STATUS <<\_ACEOF
25960 ## --------------------- ##
25961 ## M4sh Initialization. ##
25962 ## --------------------- ##
25964 # Be Bourne compatible
25965 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25968 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25969 # is contrary to our usage. Disable this feature.
25970 alias -g '${1+"$@"}'='"$@"'
25971 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25974 DUALCASE=1; export DUALCASE # for MKS sh
25976 # Support unset when possible.
25977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25984 # Work around bugs in pre-3.0 UWIN ksh.
25985 $as_unset ENV MAIL MAILPATH
25992 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25993 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25994 LC_TELEPHONE LC_TIME
25996 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25997 eval $as_var=C; export $as_var
26003 # Required to use basename.
26004 if expr a : '\(a\)' >/dev/null 2>&1; then
26010 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26011 as_basename=basename
26017 # Name of the executable.
26018 as_me=`$as_basename "$0" ||
26019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26020 X"$0" : 'X\(//\)$' \| \
26021 X"$0" : 'X\(/\)$' \| \
26022 . : '\(.\)' 2>/dev/null ||
26024 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26025 /^X\/\(\/\/\)$/{ s//\1/; q; }
26026 /^X\/\(\/\).*/{ s//\1/; q; }
26030 # PATH needs CR, and LINENO needs CR and PATH.
26031 # Avoid depending upon Character Ranges.
26032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26035 as_cr_digits='0123456789'
26036 as_cr_alnum=$as_cr_Letters$as_cr_digits
26038 # The user is always right.
26039 if test "${PATH_SEPARATOR+set}" != set; then
26040 echo "#! /bin/sh" >conf$$.sh
26041 echo "exit 0" >>conf$$.sh
26043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26052 as_lineno_1=$LINENO
26053 as_lineno_2=$LINENO
26054 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26055 test "x$as_lineno_1" != "x$as_lineno_2" &&
26056 test "x$as_lineno_3" = "x$as_lineno_2" || {
26057 # Find who we are. Look in the path if we contain no path at all
26060 *[\\/]* ) as_myself=$0 ;;
26061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26062 for as_dir in $PATH
26065 test -z "$as_dir" && as_dir=.
26066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26071 # We did not find ourselves, most probably we were run as `sh COMMAND'
26072 # in which case we are not to be found in the path.
26073 if test "x$as_myself" = x; then
26076 if test ! -f "$as_myself"; then
26077 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26078 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26079 { (exit 1); exit 1; }; }
26081 case $CONFIG_SHELL in
26083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26084 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26087 test -z "$as_dir" && as_dir=.
26088 for as_base in sh bash ksh sh5; do
26091 if ("$as_dir/$as_base" -c '
26092 as_lineno_1=$LINENO
26093 as_lineno_2=$LINENO
26094 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26095 test "x$as_lineno_1" != "x$as_lineno_2" &&
26096 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26097 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26098 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26099 CONFIG_SHELL=$as_dir/$as_base
26100 export CONFIG_SHELL
26101 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26109 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26110 # uniformly replaced by the line number. The first 'sed' inserts a
26111 # line-number line before each line; the second 'sed' does the real
26112 # work. The second script uses 'N' to pair each line-number line
26113 # with the numbered line, and appends trailing '-' during
26114 # substitution so that $LINENO is not a special case at line end.
26115 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26116 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26117 sed '=' <$as_myself |
26122 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26125 s,^['$as_cr_digits']*\n,,
26126 ' >$as_me.lineno &&
26127 chmod +x $as_me.lineno ||
26128 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26129 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26130 { (exit 1); exit 1; }; }
26132 # Don't try to exec as it changes $[0], causing all sort of problems
26133 # (the dirname of $[0] is not the place where we might find the
26134 # original and so on. Autoconf is especially sensible to this).
26136 # Exit status is that of the last command.
26141 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26142 *c*,-n*) ECHO_N= ECHO_C='
26144 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26145 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26148 if expr a : '\(a\)' >/dev/null 2>&1; then
26154 rm -f conf$$ conf$$.exe conf$$.file
26156 if ln -s conf$$.file conf$$ 2>/dev/null; then
26157 # We could just check for DJGPP; but this test a) works b) is more generic
26158 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26159 if test -f conf$$.exe; then
26160 # Don't use ln at all; we don't have any links
26165 elif ln conf$$.file conf$$ 2>/dev/null; then
26170 rm -f conf$$ conf$$.exe conf$$.file
26172 if mkdir -p . 2>/dev/null; then
26175 test -d ./-p && rmdir ./-p
26179 as_executable_p="test -f"
26181 # Sed expression to map a string onto a valid CPP name.
26182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26184 # Sed expression to map a string onto a valid variable name.
26185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26189 # We need space, tab and new line, in precisely that order.
26199 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26200 # report actual input values of CONFIG_FILES etc. instead of their
26201 # values after options handling. Logging --version etc. is OK.
26205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26206 ## Running $as_me. ##
26211 This file was extended by simgrid $as_me 3.2-cvs, which was
26212 generated by GNU Autoconf 2.59. Invocation command line was
26214 CONFIG_FILES = $CONFIG_FILES
26215 CONFIG_HEADERS = $CONFIG_HEADERS
26216 CONFIG_LINKS = $CONFIG_LINKS
26217 CONFIG_COMMANDS = $CONFIG_COMMANDS
26221 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26225 # Files that config.status was made for.
26226 if test -n "$ac_config_files"; then
26227 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26230 if test -n "$ac_config_headers"; then
26231 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26234 if test -n "$ac_config_links"; then
26235 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26238 if test -n "$ac_config_commands"; then
26239 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26242 cat >>$CONFIG_STATUS <<\_ACEOF
26245 \`$as_me' instantiates files from templates according to the
26246 current configuration.
26248 Usage: $0 [OPTIONS] [FILE]...
26250 -h, --help print this help, then exit
26251 -V, --version print version number, then exit
26252 -q, --quiet do not print progress messages
26253 -d, --debug don't remove temporary files
26254 --recheck update $as_me by reconfiguring in the same conditions
26255 --file=FILE[:TEMPLATE]
26256 instantiate the configuration file FILE
26257 --header=FILE[:TEMPLATE]
26258 instantiate the configuration header FILE
26260 Configuration files:
26263 Configuration headers:
26266 Configuration commands:
26269 Report bugs to <bug-autoconf@gnu.org>."
26272 cat >>$CONFIG_STATUS <<_ACEOF
26274 simgrid config.status 3.2-cvs
26275 configured by $0, generated by GNU Autoconf 2.59,
26276 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26278 Copyright (C) 2003 Free Software Foundation, Inc.
26279 This config.status script is free software; the Free Software Foundation
26280 gives unlimited permission to copy, distribute and modify it."
26285 cat >>$CONFIG_STATUS <<\_ACEOF
26286 # If no file are specified by the user, then we need to provide default
26287 # value. By we need to know if files were specified by the user.
26293 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26294 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26302 *) # This is not an option, so the user has probably given explicit
26305 ac_need_defaults=false;;
26309 # Handling of the options.
26311 cat >>$CONFIG_STATUS <<\_ACEOF
26312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26314 --version | --vers* | -V )
26315 echo "$ac_cs_version"; exit 0 ;;
26317 # Conflict between --help and --header
26318 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26319 Try \`$0 --help' for more information." >&5
26320 echo "$as_me: error: ambiguous option: $1
26321 Try \`$0 --help' for more information." >&2;}
26322 { (exit 1); exit 1; }; };;
26323 --help | --hel | -h )
26324 echo "$ac_cs_usage"; exit 0 ;;
26325 --debug | --d* | -d )
26327 --file | --fil | --fi | --f )
26329 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26330 ac_need_defaults=false;;
26331 --header | --heade | --head | --hea )
26333 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26334 ac_need_defaults=false;;
26335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26339 # This is an error.
26340 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26341 Try \`$0 --help' for more information." >&5
26342 echo "$as_me: error: unrecognized option: $1
26343 Try \`$0 --help' for more information." >&2;}
26344 { (exit 1); exit 1; }; } ;;
26346 *) ac_config_targets="$ac_config_targets $1" ;;
26352 ac_configure_extra_args=
26354 if $ac_cs_silent; then
26356 ac_configure_extra_args="$ac_configure_extra_args --silent"
26360 cat >>$CONFIG_STATUS <<_ACEOF
26361 if \$ac_cs_recheck; then
26362 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26363 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26368 cat >>$CONFIG_STATUS <<_ACEOF
26370 # INIT-COMMANDS section.
26373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26379 cat >>$CONFIG_STATUS <<\_ACEOF
26380 for ac_config_target in $ac_config_targets
26382 case "$ac_config_target" in
26383 # Handling of arguments.
26384 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26385 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26386 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26387 "src/ucontext_stack.h" ) CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26388 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26389 "tools/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26390 "tools/graspe-slave" ) CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26391 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26392 "testsuite/run_tests" ) CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26393 "testsuite/gras/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26394 "testsuite/gras/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26395 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26396 "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26397 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26398 "examples/msg/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26399 "examples/msg/run_msg_test" ) CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26400 "examples/simdag/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26401 "examples/simdag/test_simdag" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26402 "examples/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26403 "examples/gras/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26404 "examples/gras/ping/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26405 "examples/gras/ping/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26406 "examples/gras/rpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26407 "examples/gras/rpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26408 "examples/gras/rpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26409 "examples/gras/timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26410 "examples/gras/timer/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26411 "examples/gras/timer/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26412 "examples/gras/chrono/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26413 "examples/gras/chrono/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26414 "examples/gras/chrono/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26415 "examples/gras/mutual_exclusion/simple_token/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26416 "examples/gras/mutual_exclusion/simple_token/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26417 "examples/gras/mutual_exclusion/simple_token/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26418 "examples/gras/mmrpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26419 "examples/gras/mmrpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26420 "examples/gras/mmrpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26421 "examples/gras/pmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26422 "examples/gras/pmm/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26423 "examples/gras/pmm/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26424 "examples/gras/all2all/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26425 "examples/gras/all2all/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26426 "examples/gras/all2all/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26427 "examples/gras/p2p/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26428 "examples/gras/p2p/chord/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26429 "examples/gras/p2p/chord/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26430 "examples/gras/p2p/chord/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26431 "examples/gras/p2p/can/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26432 "examples/gras/p2p/can/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26433 "examples/gras/p2p/can/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26434 "examples/amok/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26435 "examples/amok/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26436 "examples/amok/bandwidth/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26437 "examples/amok/bandwidth/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26438 "examples/amok/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26439 "examples/amok/saturate/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26440 "examples/amok/saturate/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26441 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26442 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26443 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26444 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26445 { (exit 1); exit 1; }; };;
26449 # If the user did not use the arguments to specify the items to instantiate,
26450 # then the envvar interface is used. Set only those that are not.
26451 # We use the long form for the default assignment because of an extremely
26452 # bizarre bug on SunOS 4.1.3.
26453 if $ac_need_defaults; then
26454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26459 # Have a temporary directory for convenience. Make it in the build tree
26460 # simply because there is no reason to put it here, and in addition,
26461 # creating and moving files from /tmp can sometimes cause problems.
26462 # Create a temporary directory, and hook for its removal unless debugging.
26465 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26466 trap '{ (exit 1); exit 1; }' 1 2 13 15
26469 # Create a (secure) tmp directory for tmp files.
26472 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26473 test -n "$tmp" && test -d "$tmp"
26476 tmp=./confstat$$-$RANDOM
26477 (umask 077 && mkdir $tmp)
26480 echo "$me: cannot create a temporary directory in ." >&2
26481 { (exit 1); exit 1; }
26486 cat >>$CONFIG_STATUS <<_ACEOF
26489 # CONFIG_FILES section.
26492 # No need to generate the scripts if there are no CONFIG_FILES.
26493 # This happens for instance when ./config.status config.h
26494 if test -n "\$CONFIG_FILES"; then
26495 # Protect against being on the right side of a sed subst in config.status.
26496 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26497 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26498 s,@SHELL@,$SHELL,;t t
26499 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26500 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26501 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26502 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26503 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26504 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26505 s,@exec_prefix@,$exec_prefix,;t t
26506 s,@prefix@,$prefix,;t t
26507 s,@program_transform_name@,$program_transform_name,;t t
26508 s,@bindir@,$bindir,;t t
26509 s,@sbindir@,$sbindir,;t t
26510 s,@libexecdir@,$libexecdir,;t t
26511 s,@datadir@,$datadir,;t t
26512 s,@sysconfdir@,$sysconfdir,;t t
26513 s,@sharedstatedir@,$sharedstatedir,;t t
26514 s,@localstatedir@,$localstatedir,;t t
26515 s,@libdir@,$libdir,;t t
26516 s,@includedir@,$includedir,;t t
26517 s,@oldincludedir@,$oldincludedir,;t t
26518 s,@infodir@,$infodir,;t t
26519 s,@mandir@,$mandir,;t t
26520 s,@build_alias@,$build_alias,;t t
26521 s,@host_alias@,$host_alias,;t t
26522 s,@target_alias@,$target_alias,;t t
26523 s,@DEFS@,$DEFS,;t t
26524 s,@ECHO_C@,$ECHO_C,;t t
26525 s,@ECHO_N@,$ECHO_N,;t t
26526 s,@ECHO_T@,$ECHO_T,;t t
26527 s,@LIBS@,$LIBS,;t t
26528 s,@build@,$build,;t t
26529 s,@build_cpu@,$build_cpu,;t t
26530 s,@build_vendor@,$build_vendor,;t t
26531 s,@build_os@,$build_os,;t t
26532 s,@host@,$host,;t t
26533 s,@host_cpu@,$host_cpu,;t t
26534 s,@host_vendor@,$host_vendor,;t t
26535 s,@host_os@,$host_os,;t t
26536 s,@target@,$target,;t t
26537 s,@target_cpu@,$target_cpu,;t t
26538 s,@target_vendor@,$target_vendor,;t t
26539 s,@target_os@,$target_os,;t t
26540 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26541 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26542 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26543 s,@CYGPATH_W@,$CYGPATH_W,;t t
26544 s,@PACKAGE@,$PACKAGE,;t t
26545 s,@VERSION@,$VERSION,;t t
26546 s,@ACLOCAL@,$ACLOCAL,;t t
26547 s,@AUTOCONF@,$AUTOCONF,;t t
26548 s,@AUTOMAKE@,$AUTOMAKE,;t t
26549 s,@AUTOHEADER@,$AUTOHEADER,;t t
26550 s,@MAKEINFO@,$MAKEINFO,;t t
26551 s,@install_sh@,$install_sh,;t t
26552 s,@STRIP@,$STRIP,;t t
26553 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26554 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26555 s,@mkdir_p@,$mkdir_p,;t t
26557 s,@SET_MAKE@,$SET_MAKE,;t t
26558 s,@am__leading_dot@,$am__leading_dot,;t t
26559 s,@AMTAR@,$AMTAR,;t t
26560 s,@am__tar@,$am__tar,;t t
26561 s,@am__untar@,$am__untar,;t t
26563 s,@CFLAGS@,$CFLAGS,;t t
26564 s,@LDFLAGS@,$LDFLAGS,;t t
26565 s,@CPPFLAGS@,$CPPFLAGS,;t t
26566 s,@ac_ct_CC@,$ac_ct_CC,;t t
26567 s,@EXEEXT@,$EXEEXT,;t t
26568 s,@OBJEXT@,$OBJEXT,;t t
26569 s,@DEPDIR@,$DEPDIR,;t t
26570 s,@am__include@,$am__include,;t t
26571 s,@am__quote@,$am__quote,;t t
26572 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26573 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26574 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26575 s,@CCDEPMODE@,$CCDEPMODE,;t t
26576 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26577 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26578 s,@EGREP@,$EGREP,;t t
26579 s,@LN_S@,$LN_S,;t t
26580 s,@ECHO@,$ECHO,;t t
26582 s,@ac_ct_AR@,$ac_ct_AR,;t t
26583 s,@RANLIB@,$RANLIB,;t t
26584 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26585 s,@DLLTOOL@,$DLLTOOL,;t t
26586 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26588 s,@ac_ct_AS@,$ac_ct_AS,;t t
26589 s,@OBJDUMP@,$OBJDUMP,;t t
26590 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
26593 s,@CXXFLAGS@,$CXXFLAGS,;t t
26594 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26595 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26596 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26597 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26598 s,@CXXCPP@,$CXXCPP,;t t
26600 s,@FFLAGS@,$FFLAGS,;t t
26601 s,@ac_ct_F77@,$ac_ct_F77,;t t
26602 s,@LIBTOOL@,$LIBTOOL,;t t
26603 s,@LIBOBJS@,$LIBOBJS,;t t
26604 s,@PTH_STACK_GROWTH@,$PTH_STACK_GROWTH,;t t
26605 s,@pth_skaddr_makecontext@,$pth_skaddr_makecontext,;t t
26606 s,@pth_sksize_makecontext@,$pth_sksize_makecontext,;t t
26607 s,@USE_SIMIX_TRUE@,$USE_SIMIX_TRUE,;t t
26608 s,@USE_SIMIX_FALSE@,$USE_SIMIX_FALSE,;t t
26609 s,@HAVE_SDP_TRUE@,$HAVE_SDP_TRUE,;t t
26610 s,@HAVE_SDP_FALSE@,$HAVE_SDP_FALSE,;t t
26611 s,@SIMGRID_DEP@,$SIMGRID_DEP,;t t
26612 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
26613 s,@GRAS_DEP@,$GRAS_DEP,;t t
26614 s,@GRAMINE_MODE_TRUE@,$GRAMINE_MODE_TRUE,;t t
26615 s,@GRAMINE_MODE_FALSE@,$GRAMINE_MODE_FALSE,;t t
26616 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26617 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26618 s,@MAINT@,$MAINT,;t t
26619 s,@LD_DYNAMIC_FLAGS@,$LD_DYNAMIC_FLAGS,;t t
26620 s,@abs_builddir@,$abs_builddir,;t t
26621 s,@abs_srcdir@,$abs_srcdir,;t t
26622 s,@abs_top_builddir@,$abs_top_builddir,;t t
26623 s,@abs_top_srcdir@,$abs_top_srcdir,;t t
26624 s,@BASH@,$BASH,;t t
26625 s,@WARNING@,$WARNING,;t t
26627 s,@LEXLIB@,$LEXLIB,;t t
26628 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26629 s,@FLEXML@,$FLEXML,;t t
26630 s,@HAVE_FLEXML_TRUE@,$HAVE_FLEXML_TRUE,;t t
26631 s,@HAVE_FLEXML_FALSE@,$HAVE_FLEXML_FALSE,;t t
26632 s,@DOXYGEN@,$DOXYGEN,;t t
26633 s,@ADDR2LINE@,$ADDR2LINE,;t t
26634 s,@ac_configure_args@,$ac_configure_args,;t t
26635 s,@MD5SUM@,$MD5SUM,;t t
26636 s,@build_id@,$build_id,;t t
26637 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26642 cat >>$CONFIG_STATUS <<\_ACEOF
26643 # Split the substitutions into bite-sized pieces for seds with
26644 # small command number limits, like on Digital OSF/1 and HP-UX.
26645 ac_max_sed_lines=48
26646 ac_sed_frag=1 # Number of current file.
26647 ac_beg=1 # First line for current file.
26648 ac_end=$ac_max_sed_lines # Line after last line for current file.
26651 while $ac_more_lines; do
26652 if test $ac_beg -gt 1; then
26653 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26655 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26657 if test ! -s $tmp/subs.frag; then
26658 ac_more_lines=false
26660 # The purpose of the label and of the branching condition is to
26661 # speed up the sed processing (if there are no `@' at all, there
26662 # is no need to browse any of the substitutions).
26663 # These are the two extra sed commands mentioned above.
26665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26666 if test -z "$ac_sed_cmds"; then
26667 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26669 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26671 ac_sed_frag=`expr $ac_sed_frag + 1`
26673 ac_end=`expr $ac_end + $ac_max_sed_lines`
26676 if test -z "$ac_sed_cmds"; then
26679 fi # test -n "$CONFIG_FILES"
26682 cat >>$CONFIG_STATUS <<\_ACEOF
26683 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26684 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26686 - | *:- | *:-:* ) # input from stdin
26688 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26690 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26692 * ) ac_file_in=$ac_file.in ;;
26695 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26696 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26698 X"$ac_file" : 'X\(//\)[^/]' \| \
26699 X"$ac_file" : 'X\(//\)$' \| \
26700 X"$ac_file" : 'X\(/\)' \| \
26701 . : '\(.\)' 2>/dev/null ||
26703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26705 /^X\(\/\/\)$/{ s//\1/; q; }
26706 /^X\(\/\).*/{ s//\1/; q; }
26708 { if $as_mkdir_p; then
26713 while test ! -d "$as_dir"; do
26714 as_dirs="$as_dir $as_dirs"
26715 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26717 X"$as_dir" : 'X\(//\)[^/]' \| \
26718 X"$as_dir" : 'X\(//\)$' \| \
26719 X"$as_dir" : 'X\(/\)' \| \
26720 . : '\(.\)' 2>/dev/null ||
26722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26724 /^X\(\/\/\)$/{ s//\1/; q; }
26725 /^X\(\/\).*/{ s//\1/; q; }
26728 test ! -n "$as_dirs" || mkdir $as_dirs
26729 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26730 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26731 { (exit 1); exit 1; }; }; }
26735 if test "$ac_dir" != .; then
26736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26737 # A "../" for each directory in $ac_dir_suffix.
26738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26740 ac_dir_suffix= ac_top_builddir=
26744 .) # No --srcdir option. We are building in place.
26746 if test -z "$ac_top_builddir"; then
26749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26751 [\\/]* | ?:[\\/]* ) # Absolute path.
26752 ac_srcdir=$srcdir$ac_dir_suffix;
26753 ac_top_srcdir=$srcdir ;;
26754 *) # Relative path.
26755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26759 # Do not use `cd foo && pwd` to compute absolute paths, because
26760 # the directories may not exist.
26762 .) ac_abs_builddir="$ac_dir";;
26765 .) ac_abs_builddir=`pwd`;;
26766 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26767 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26770 case $ac_abs_builddir in
26771 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26773 case ${ac_top_builddir}. in
26774 .) ac_abs_top_builddir=$ac_abs_builddir;;
26775 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26776 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26779 case $ac_abs_builddir in
26780 .) ac_abs_srcdir=$ac_srcdir;;
26783 .) ac_abs_srcdir=$ac_abs_builddir;;
26784 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26785 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26788 case $ac_abs_builddir in
26789 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26791 case $ac_top_srcdir in
26792 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26793 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26794 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26800 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26801 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26804 # Let's still pretend it is `configure' which instantiates (i.e., don't
26805 # use $as_me), people would be surprised to read:
26806 # /* config.h. Generated by config.status. */
26807 if test x"$ac_file" = x-; then
26810 configure_input="$ac_file. "
26812 configure_input=$configure_input"Generated from `echo $ac_file_in |
26813 sed 's,.*/,,'` by configure."
26815 # First look for the input files in the build tree, otherwise in the
26817 ac_file_inputs=`IFS=:
26818 for f in $ac_file_in; do
26820 -) echo $tmp/stdin ;;
26822 # Absolute (can't be DOS-style, as IFS=:)
26823 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26824 echo "$as_me: error: cannot find input file: $f" >&2;}
26825 { (exit 1); exit 1; }; }
26828 if test -f "$f"; then
26831 elif test -f "$srcdir/$f"; then
26836 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26837 echo "$as_me: error: cannot find input file: $f" >&2;}
26838 { (exit 1); exit 1; }; }
26841 done` || { (exit 1); exit 1; }
26843 if test x"$ac_file" != x-; then
26844 { echo "$as_me:$LINENO: creating $ac_file" >&5
26845 echo "$as_me: creating $ac_file" >&6;}
26849 cat >>$CONFIG_STATUS <<_ACEOF
26853 cat >>$CONFIG_STATUS <<\_ACEOF
26855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26856 s,@configure_input@,$configure_input,;t t
26857 s,@srcdir@,$ac_srcdir,;t t
26858 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26859 s,@top_srcdir@,$ac_top_srcdir,;t t
26860 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26861 s,@builddir@,$ac_builddir,;t t
26862 s,@abs_builddir@,$ac_abs_builddir,;t t
26863 s,@top_builddir@,$ac_top_builddir,;t t
26864 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26865 s,@INSTALL@,$ac_INSTALL,;t t
26866 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26868 if test x"$ac_file" != x-; then
26869 mv $tmp/out $ac_file
26875 # Run the commands associated with the file.
26877 tools/graspe-slave )
26879 tools/graspe-slave tools/graspe-master \
26881 test -e $file && chmod +x $file; \
26884 testsuite/Makefile )
26886 testsuite/run_tests \
26887 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26889 test -e $file && chmod +x $file; \
26892 testsuite/run_tests )
26894 testsuite/run_tests \
26895 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26897 test -e $file && chmod +x $file; \
26900 testsuite/gras/trp_tcp_usage )
26902 testsuite/run_tests \
26903 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26905 test -e $file && chmod +x $file; \
26908 testsuite/gras/trp_file_usage )
26910 testsuite/run_tests \
26911 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26913 test -e $file && chmod +x $file; \
26916 examples/Makefile )
26919 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26920 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26922 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26923 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26924 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26925 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26926 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26927 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26928 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26929 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26930 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26931 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26932 examples/msg/run_msg_test \
26933 examples/simdag/test_simdag \
26935 test -e $file && chmod +x $file; \
26938 examples/msg/Makefile )
26941 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26942 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26944 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26945 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26946 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26947 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26948 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26949 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26950 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26951 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26952 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26953 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26954 examples/msg/run_msg_test \
26955 examples/simdag/test_simdag \
26957 test -e $file && chmod +x $file; \
26960 examples/msg/run_msg_test )
26963 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26964 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26966 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26967 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26968 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26969 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26970 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26971 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26972 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26973 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26974 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26975 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26976 examples/msg/run_msg_test \
26977 examples/simdag/test_simdag \
26979 test -e $file && chmod +x $file; \
26982 examples/simdag/Makefile )
26985 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26986 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
26988 examples/gras/ping/test_sg examples/gras/ping/test_rl \
26989 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
26990 examples/gras/timer/test_sg examples/gras/timer/test_rl \
26991 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
26992 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
26993 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
26994 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
26995 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
26996 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
26997 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
26998 examples/msg/run_msg_test \
26999 examples/simdag/test_simdag \
27001 test -e $file && chmod +x $file; \
27004 examples/simdag/test_simdag )
27007 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27008 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27010 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27011 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27012 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27013 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27014 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27015 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27016 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27017 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27018 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27019 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27020 examples/msg/run_msg_test \
27021 examples/simdag/test_simdag \
27023 test -e $file && chmod +x $file; \
27026 examples/gras/Makefile )
27029 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27030 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27032 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27033 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27034 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27035 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27036 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27037 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27038 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27039 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27040 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27041 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27042 examples/msg/run_msg_test \
27043 examples/simdag/test_simdag \
27045 test -e $file && chmod +x $file; \
27048 examples/gras/ping/Makefile )
27051 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27052 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27054 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27055 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27056 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27057 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27058 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27059 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27060 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27061 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27062 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27063 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27064 examples/msg/run_msg_test \
27065 examples/simdag/test_simdag \
27067 test -e $file && chmod +x $file; \
27070 examples/gras/ping/test_sg )
27073 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27074 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27076 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27077 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27078 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27079 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27080 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27081 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27082 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27083 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27084 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27085 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27086 examples/msg/run_msg_test \
27087 examples/simdag/test_simdag \
27089 test -e $file && chmod +x $file; \
27092 examples/gras/ping/test_rl )
27095 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27096 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27098 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27099 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27100 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27101 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27102 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27103 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27104 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27105 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27106 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27107 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27108 examples/msg/run_msg_test \
27109 examples/simdag/test_simdag \
27111 test -e $file && chmod +x $file; \
27114 examples/gras/rpc/Makefile )
27117 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27118 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27120 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27121 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27122 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27123 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27124 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27125 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27126 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27127 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27128 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27129 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27130 examples/msg/run_msg_test \
27131 examples/simdag/test_simdag \
27133 test -e $file && chmod +x $file; \
27136 examples/gras/rpc/test_sg )
27139 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27140 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27142 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27143 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27144 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27145 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27146 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27147 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27148 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27149 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27150 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27151 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27152 examples/msg/run_msg_test \
27153 examples/simdag/test_simdag \
27155 test -e $file && chmod +x $file; \
27158 examples/gras/rpc/test_rl )
27161 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27162 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27164 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27165 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27166 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27167 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27168 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27169 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27170 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27171 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27172 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27173 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27174 examples/msg/run_msg_test \
27175 examples/simdag/test_simdag \
27177 test -e $file && chmod +x $file; \
27180 examples/gras/timer/Makefile )
27183 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27184 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27186 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27187 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27188 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27189 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27190 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27191 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27192 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27193 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27194 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27195 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27196 examples/msg/run_msg_test \
27197 examples/simdag/test_simdag \
27199 test -e $file && chmod +x $file; \
27202 examples/gras/timer/test_sg )
27205 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27206 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27208 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27209 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27210 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27211 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27212 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27213 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27214 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27215 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27216 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27217 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27218 examples/msg/run_msg_test \
27219 examples/simdag/test_simdag \
27221 test -e $file && chmod +x $file; \
27224 examples/gras/timer/test_rl )
27227 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27228 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27230 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27231 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27232 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27233 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27234 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27235 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27236 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27237 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27238 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27239 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27240 examples/msg/run_msg_test \
27241 examples/simdag/test_simdag \
27243 test -e $file && chmod +x $file; \
27246 examples/gras/chrono/Makefile )
27249 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27250 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27252 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27253 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27254 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27255 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27256 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27257 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27258 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27259 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27260 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27261 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27262 examples/msg/run_msg_test \
27263 examples/simdag/test_simdag \
27265 test -e $file && chmod +x $file; \
27268 examples/gras/chrono/test_sg )
27271 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27272 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27274 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27275 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27276 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27277 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27278 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27279 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27280 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27281 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27282 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27283 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27284 examples/msg/run_msg_test \
27285 examples/simdag/test_simdag \
27287 test -e $file && chmod +x $file; \
27290 examples/gras/chrono/test_rl )
27293 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27294 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27296 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27297 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27298 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27299 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27300 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27301 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27302 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27303 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27304 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27305 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27306 examples/msg/run_msg_test \
27307 examples/simdag/test_simdag \
27309 test -e $file && chmod +x $file; \
27312 examples/gras/mutual_exclusion/simple_token/Makefile )
27315 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27316 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27318 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27319 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27320 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27321 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27322 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27323 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27324 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27325 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27326 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27327 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27328 examples/msg/run_msg_test \
27329 examples/simdag/test_simdag \
27331 test -e $file && chmod +x $file; \
27334 examples/gras/mutual_exclusion/simple_token/test_sg )
27337 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27338 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27340 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27341 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27342 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27343 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27344 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27345 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27346 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27347 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27348 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27349 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27350 examples/msg/run_msg_test \
27351 examples/simdag/test_simdag \
27353 test -e $file && chmod +x $file; \
27356 examples/gras/mutual_exclusion/simple_token/test_rl )
27359 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27360 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27362 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27363 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27364 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27365 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27366 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27367 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27368 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27369 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27370 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27371 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27372 examples/msg/run_msg_test \
27373 examples/simdag/test_simdag \
27375 test -e $file && chmod +x $file; \
27378 examples/gras/mmrpc/Makefile )
27381 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27382 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27384 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27385 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27386 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27387 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27388 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27389 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27390 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27391 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27392 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27393 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27394 examples/msg/run_msg_test \
27395 examples/simdag/test_simdag \
27397 test -e $file && chmod +x $file; \
27400 examples/gras/mmrpc/test_sg )
27403 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27404 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27406 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27407 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27408 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27409 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27410 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27411 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27412 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27413 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27414 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27415 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27416 examples/msg/run_msg_test \
27417 examples/simdag/test_simdag \
27419 test -e $file && chmod +x $file; \
27422 examples/gras/mmrpc/test_rl )
27425 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27426 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27428 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27429 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27430 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27431 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27432 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27433 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27434 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27435 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27436 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27437 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27438 examples/msg/run_msg_test \
27439 examples/simdag/test_simdag \
27441 test -e $file && chmod +x $file; \
27444 examples/gras/pmm/Makefile )
27447 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27448 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27450 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27451 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27452 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27453 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27454 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27455 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27456 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27457 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27458 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27459 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27460 examples/msg/run_msg_test \
27461 examples/simdag/test_simdag \
27463 test -e $file && chmod +x $file; \
27466 examples/gras/pmm/test_sg )
27469 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27470 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27472 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27473 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27474 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27475 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27476 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27477 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27478 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27479 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27480 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27481 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27482 examples/msg/run_msg_test \
27483 examples/simdag/test_simdag \
27485 test -e $file && chmod +x $file; \
27488 examples/gras/pmm/test_rl )
27491 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27492 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27494 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27495 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27496 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27497 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27498 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27499 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27500 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27501 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27502 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27503 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27504 examples/msg/run_msg_test \
27505 examples/simdag/test_simdag \
27507 test -e $file && chmod +x $file; \
27510 examples/gras/all2all/Makefile )
27513 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27514 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27516 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27517 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27518 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27519 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27520 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27521 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27522 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27523 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27524 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27525 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27526 examples/msg/run_msg_test \
27527 examples/simdag/test_simdag \
27529 test -e $file && chmod +x $file; \
27532 examples/gras/all2all/test_sg )
27535 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27536 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27538 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27539 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27540 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27541 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27542 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27543 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27544 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27545 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27546 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27547 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27548 examples/msg/run_msg_test \
27549 examples/simdag/test_simdag \
27551 test -e $file && chmod +x $file; \
27554 examples/gras/all2all/test_rl )
27557 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27558 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27560 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27561 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27562 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27563 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27564 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27565 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27566 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27567 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27568 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27569 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27570 examples/msg/run_msg_test \
27571 examples/simdag/test_simdag \
27573 test -e $file && chmod +x $file; \
27576 examples/gras/p2p/Makefile )
27579 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27580 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27582 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27583 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27584 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27585 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27586 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27587 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27588 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27589 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27590 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27591 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27592 examples/msg/run_msg_test \
27593 examples/simdag/test_simdag \
27595 test -e $file && chmod +x $file; \
27598 examples/gras/p2p/chord/Makefile )
27601 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27602 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27604 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27605 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27606 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27607 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27608 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27609 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27610 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27611 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27612 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27613 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27614 examples/msg/run_msg_test \
27615 examples/simdag/test_simdag \
27617 test -e $file && chmod +x $file; \
27620 examples/gras/p2p/chord/test_sg )
27623 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27624 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27626 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27627 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27628 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27629 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27630 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27631 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27632 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27633 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27634 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27635 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27636 examples/msg/run_msg_test \
27637 examples/simdag/test_simdag \
27639 test -e $file && chmod +x $file; \
27642 examples/gras/p2p/chord/test_rl )
27645 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27646 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27648 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27649 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27650 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27651 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27652 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27653 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27654 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27655 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27656 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27657 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27658 examples/msg/run_msg_test \
27659 examples/simdag/test_simdag \
27661 test -e $file && chmod +x $file; \
27664 examples/gras/p2p/can/Makefile )
27667 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27668 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27670 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27671 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27672 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27673 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27674 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27675 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27676 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27677 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27678 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27679 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27680 examples/msg/run_msg_test \
27681 examples/simdag/test_simdag \
27683 test -e $file && chmod +x $file; \
27686 examples/gras/p2p/can/test_sg )
27689 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27690 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27692 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27693 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27694 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27695 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27696 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27697 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27698 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27699 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27700 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27701 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27702 examples/msg/run_msg_test \
27703 examples/simdag/test_simdag \
27705 test -e $file && chmod +x $file; \
27708 examples/gras/p2p/can/test_rl )
27711 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27712 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27714 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27715 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27716 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27717 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27718 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27719 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27720 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27721 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27722 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27723 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27724 examples/msg/run_msg_test \
27725 examples/simdag/test_simdag \
27727 test -e $file && chmod +x $file; \
27730 examples/amok/Makefile )
27733 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27734 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27736 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27737 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27738 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27739 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27740 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27741 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27742 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27743 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27744 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27745 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27746 examples/msg/run_msg_test \
27747 examples/simdag/test_simdag \
27749 test -e $file && chmod +x $file; \
27752 examples/amok/bandwidth/Makefile )
27755 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27756 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27758 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27759 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27760 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27761 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27762 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27763 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27764 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27765 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27766 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27767 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27768 examples/msg/run_msg_test \
27769 examples/simdag/test_simdag \
27771 test -e $file && chmod +x $file; \
27774 examples/amok/bandwidth/test_sg )
27777 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27778 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27780 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27781 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27782 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27783 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27784 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27785 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27786 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27787 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27788 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27789 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27790 examples/msg/run_msg_test \
27791 examples/simdag/test_simdag \
27793 test -e $file && chmod +x $file; \
27796 examples/amok/bandwidth/test_rl )
27799 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27800 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27802 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27803 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27804 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27805 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27806 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27807 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27808 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27809 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27810 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27811 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27812 examples/msg/run_msg_test \
27813 examples/simdag/test_simdag \
27815 test -e $file && chmod +x $file; \
27818 examples/amok/saturate/Makefile )
27821 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27822 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27824 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27825 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27826 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27827 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27828 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27829 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27830 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27831 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27832 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27833 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27834 examples/msg/run_msg_test \
27835 examples/simdag/test_simdag \
27837 test -e $file && chmod +x $file; \
27840 examples/amok/saturate/test_sg )
27843 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27844 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27846 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27847 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27848 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27849 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27850 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27851 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27852 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27853 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27854 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27855 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27856 examples/msg/run_msg_test \
27857 examples/simdag/test_simdag \
27859 test -e $file && chmod +x $file; \
27862 examples/amok/saturate/test_rl )
27865 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27866 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27868 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27869 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27870 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27871 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27872 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27873 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27874 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27875 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27876 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27877 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27878 examples/msg/run_msg_test \
27879 examples/simdag/test_simdag \
27881 test -e $file && chmod +x $file; \
27887 cat >>$CONFIG_STATUS <<\_ACEOF
27890 # CONFIG_HEADER section.
27893 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27894 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27896 # ac_d sets the value in "#define NAME VALUE" lines.
27897 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27898 ac_dB='[ ].*$,\1#\2'
27901 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27902 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27903 ac_uB='$,\1#\2define\3'
27907 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27910 - | *:- | *:-:* ) # input from stdin
27912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27916 * ) ac_file_in=$ac_file.in ;;
27919 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27920 echo "$as_me: creating $ac_file" >&6;}
27922 # First look for the input files in the build tree, otherwise in the
27924 ac_file_inputs=`IFS=:
27925 for f in $ac_file_in; do
27927 -) echo $tmp/stdin ;;
27929 # Absolute (can't be DOS-style, as IFS=:)
27930 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27931 echo "$as_me: error: cannot find input file: $f" >&2;}
27932 { (exit 1); exit 1; }; }
27933 # Do quote $f, to prevent DOS paths from being IFS'd.
27936 if test -f "$f"; then
27939 elif test -f "$srcdir/$f"; then
27944 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27945 echo "$as_me: error: cannot find input file: $f" >&2;}
27946 { (exit 1); exit 1; }; }
27949 done` || { (exit 1); exit 1; }
27950 # Remove the trailing spaces.
27951 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27955 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27956 # `conftest.undefs', that substitutes the proper values into
27957 # config.h.in to produce config.h. The first handles `#define'
27958 # templates, and the second `#undef' templates.
27959 # And first: Protect against being on the right side of a sed subst in
27960 # config.status. Protect against being in an unquoted here document
27961 # in config.status.
27962 rm -f conftest.defines conftest.undefs
27963 # Using a here document instead of a string reduces the quoting nightmare.
27964 # Putting comments in sed scripts is not portable.
27966 # `end' is used to avoid that the second main sed command (meant for
27967 # 0-ary CPP macros) applies to n-ary macro definitions.
27968 # See the Autoconf documentation for `clear'.
27969 cat >confdef2sed.sed <<\_ACEOF
27974 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27976 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27979 # If some macros were called several times there might be several times
27980 # the same #defines, which is useless. Nevertheless, we may not want to
27981 # sort them, since we want the *last* AC-DEFINE to be honored.
27982 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27983 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27984 rm -f confdef2sed.sed
27986 # This sed command replaces #undef with comments. This is necessary, for
27987 # example, in the case of _POSIX_SOURCE, which is predefined and required
27988 # on some systems where configure will not decide to define it.
27989 cat >>conftest.undefs <<\_ACEOF
27990 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27993 # Break up conftest.defines because some shells have a limit on the size
27994 # of here documents, and old seds have small limits too (100 cmds).
27995 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27996 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27997 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27998 echo ' :' >>$CONFIG_STATUS
27999 rm -f conftest.tail
28000 while grep . conftest.defines >/dev/null
28002 # Write a limited-size here document to $tmp/defines.sed.
28003 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28004 # Speed up: don't consider the non `#define' lines.
28005 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28006 # Work around the forget-to-reset-the-flag bug.
28007 echo 't clr' >>$CONFIG_STATUS
28008 echo ': clr' >>$CONFIG_STATUS
28009 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28011 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28013 mv $tmp/out $tmp/in
28015 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28016 rm -f conftest.defines
28017 mv conftest.tail conftest.defines
28019 rm -f conftest.defines
28020 echo ' fi # grep' >>$CONFIG_STATUS
28021 echo >>$CONFIG_STATUS
28023 # Break up conftest.undefs because some shells have a limit on the size
28024 # of here documents, and old seds have small limits too (100 cmds).
28025 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28026 rm -f conftest.tail
28027 while grep . conftest.undefs >/dev/null
28029 # Write a limited-size here document to $tmp/undefs.sed.
28030 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28031 # Speed up: don't consider the non `#undef'
28032 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28033 # Work around the forget-to-reset-the-flag bug.
28034 echo 't clr' >>$CONFIG_STATUS
28035 echo ': clr' >>$CONFIG_STATUS
28036 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28038 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28040 mv $tmp/out $tmp/in
28042 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28043 rm -f conftest.undefs
28044 mv conftest.tail conftest.undefs
28046 rm -f conftest.undefs
28048 cat >>$CONFIG_STATUS <<\_ACEOF
28049 # Let's still pretend it is `configure' which instantiates (i.e., don't
28050 # use $as_me), people would be surprised to read:
28051 # /* config.h. Generated by config.status. */
28052 if test x"$ac_file" = x-; then
28053 echo "/* Generated by configure. */" >$tmp/config.h
28055 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28057 cat $tmp/in >>$tmp/config.h
28059 if test x"$ac_file" != x-; then
28060 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28061 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28062 echo "$as_me: $ac_file is unchanged" >&6;}
28064 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28066 X"$ac_file" : 'X\(//\)[^/]' \| \
28067 X"$ac_file" : 'X\(//\)$' \| \
28068 X"$ac_file" : 'X\(/\)' \| \
28069 . : '\(.\)' 2>/dev/null ||
28071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28073 /^X\(\/\/\)$/{ s//\1/; q; }
28074 /^X\(\/\).*/{ s//\1/; q; }
28076 { if $as_mkdir_p; then
28081 while test ! -d "$as_dir"; do
28082 as_dirs="$as_dir $as_dirs"
28083 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28085 X"$as_dir" : 'X\(//\)[^/]' \| \
28086 X"$as_dir" : 'X\(//\)$' \| \
28087 X"$as_dir" : 'X\(/\)' \| \
28088 . : '\(.\)' 2>/dev/null ||
28090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28092 /^X\(\/\/\)$/{ s//\1/; q; }
28093 /^X\(\/\).*/{ s//\1/; q; }
28096 test ! -n "$as_dirs" || mkdir $as_dirs
28097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28098 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28099 { (exit 1); exit 1; }; }; }
28102 mv $tmp/config.h $ac_file
28106 rm -f $tmp/config.h
28108 # Compute $ac_file's index in $config_headers.
28110 for _am_header in $config_headers :; do
28111 case $_am_header in
28112 $ac_file | $ac_file:* )
28115 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28118 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28119 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28120 X$ac_file : 'X\(//\)[^/]' \| \
28121 X$ac_file : 'X\(//\)$' \| \
28122 X$ac_file : 'X\(/\)' \| \
28123 . : '\(.\)' 2>/dev/null ||
28125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28127 /^X\(\/\/\)$/{ s//\1/; q; }
28128 /^X\(\/\).*/{ s//\1/; q; }
28129 s/.*/./; q'`/stamp-h$_am_stamp_count
28132 cat >>$CONFIG_STATUS <<\_ACEOF
28135 # CONFIG_COMMANDS section.
28137 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28138 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28139 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28140 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28141 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28142 X"$ac_dest" : 'X\(//\)[^/]' \| \
28143 X"$ac_dest" : 'X\(//\)$' \| \
28144 X"$ac_dest" : 'X\(/\)' \| \
28145 . : '\(.\)' 2>/dev/null ||
28147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28149 /^X\(\/\/\)$/{ s//\1/; q; }
28150 /^X\(\/\).*/{ s//\1/; q; }
28152 { if $as_mkdir_p; then
28157 while test ! -d "$as_dir"; do
28158 as_dirs="$as_dir $as_dirs"
28159 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28161 X"$as_dir" : 'X\(//\)[^/]' \| \
28162 X"$as_dir" : 'X\(//\)$' \| \
28163 X"$as_dir" : 'X\(/\)' \| \
28164 . : '\(.\)' 2>/dev/null ||
28166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28168 /^X\(\/\/\)$/{ s//\1/; q; }
28169 /^X\(\/\).*/{ s//\1/; q; }
28172 test ! -n "$as_dirs" || mkdir $as_dirs
28173 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28174 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28175 { (exit 1); exit 1; }; }; }
28179 if test "$ac_dir" != .; then
28180 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28181 # A "../" for each directory in $ac_dir_suffix.
28182 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28184 ac_dir_suffix= ac_top_builddir=
28188 .) # No --srcdir option. We are building in place.
28190 if test -z "$ac_top_builddir"; then
28193 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28195 [\\/]* | ?:[\\/]* ) # Absolute path.
28196 ac_srcdir=$srcdir$ac_dir_suffix;
28197 ac_top_srcdir=$srcdir ;;
28198 *) # Relative path.
28199 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28200 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28203 # Do not use `cd foo && pwd` to compute absolute paths, because
28204 # the directories may not exist.
28206 .) ac_abs_builddir="$ac_dir";;
28209 .) ac_abs_builddir=`pwd`;;
28210 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28211 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28214 case $ac_abs_builddir in
28215 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28217 case ${ac_top_builddir}. in
28218 .) ac_abs_top_builddir=$ac_abs_builddir;;
28219 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28220 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28223 case $ac_abs_builddir in
28224 .) ac_abs_srcdir=$ac_srcdir;;
28227 .) ac_abs_srcdir=$ac_abs_builddir;;
28228 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28229 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28232 case $ac_abs_builddir in
28233 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28235 case $ac_top_srcdir in
28236 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28237 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28238 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28243 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28244 echo "$as_me: executing $ac_dest commands" >&6;}
28246 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28247 # Strip MF so we end up with the name of the file.
28248 mf=`echo "$mf" | sed -e 's/:.*$//'`
28249 # Check whether this is an Automake generated Makefile or not.
28250 # We used to match only the files named `Makefile.in', but
28251 # some people rename them; so instead we look at the file content.
28252 # Grep'ing the first line is not enough: some people post-process
28253 # each Makefile.in and add a new line on top of each file to say so.
28254 # So let's grep whole file.
28255 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28256 dirpart=`(dirname "$mf") 2>/dev/null ||
28257 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28258 X"$mf" : 'X\(//\)[^/]' \| \
28259 X"$mf" : 'X\(//\)$' \| \
28260 X"$mf" : 'X\(/\)' \| \
28261 . : '\(.\)' 2>/dev/null ||
28263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28265 /^X\(\/\/\)$/{ s//\1/; q; }
28266 /^X\(\/\).*/{ s//\1/; q; }
28271 # Extract the definition of DEPDIR, am__include, and am__quote
28272 # from the Makefile without running `make'.
28273 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28274 test -z "$DEPDIR" && continue
28275 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28276 test -z "am__include" && continue
28277 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28278 # When using ansi2knr, U may be empty or an underscore; expand it
28279 U=`sed -n 's/^U = //p' < "$mf"`
28280 # Find all dependency output files, they are included files with
28281 # $(DEPDIR) in their names. We invoke sed twice because it is the
28282 # simplest approach to changing $(DEPDIR) to its actual value in the
28284 for file in `sed -n "
28285 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28286 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28287 # Make sure the directory exists.
28288 test -f "$dirpart/$file" && continue
28289 fdir=`(dirname "$file") 2>/dev/null ||
28290 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28291 X"$file" : 'X\(//\)[^/]' \| \
28292 X"$file" : 'X\(//\)$' \| \
28293 X"$file" : 'X\(/\)' \| \
28294 . : '\(.\)' 2>/dev/null ||
28296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28298 /^X\(\/\/\)$/{ s//\1/; q; }
28299 /^X\(\/\).*/{ s//\1/; q; }
28301 { if $as_mkdir_p; then
28302 mkdir -p $dirpart/$fdir
28304 as_dir=$dirpart/$fdir
28306 while test ! -d "$as_dir"; do
28307 as_dirs="$as_dir $as_dirs"
28308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28310 X"$as_dir" : 'X\(//\)[^/]' \| \
28311 X"$as_dir" : 'X\(//\)$' \| \
28312 X"$as_dir" : 'X\(/\)' \| \
28313 . : '\(.\)' 2>/dev/null ||
28315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28317 /^X\(\/\/\)$/{ s//\1/; q; }
28318 /^X\(\/\).*/{ s//\1/; q; }
28321 test ! -n "$as_dirs" || mkdir $as_dirs
28322 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28323 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28324 { (exit 1); exit 1; }; }; }
28326 # echo "creating $dirpart/$file"
28327 echo '# dummy' > "$dirpart/$file"
28335 cat >>$CONFIG_STATUS <<\_ACEOF
28337 { (exit 0); exit 0; }
28339 chmod +x $CONFIG_STATUS
28340 ac_clean_files=$ac_clean_files_save
28343 # configure is writing to config.log, and then calls config.status.
28344 # config.status does its own redirection, appending to config.log.
28345 # Unfortunately, on DOS this fails, as config.log is still kept open
28346 # by configure, so config.status won't be able to write to it; its
28347 # output is simply discarded. So we exec the FD to /dev/null,
28348 # effectively closing config.log, so it can be properly (re)opened and
28349 # appended to by config.status. When coming back to configure, we
28350 # need to make the FD available again.
28351 if test "$no_create" != yes; then
28353 ac_config_status_args=
28354 test "$silent" = yes &&
28355 ac_config_status_args="$ac_config_status_args --quiet"
28357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28360 # would make configure fail if this is the last instruction.
28361 $ac_cs_success || { (exit 1); exit 1; }
28367 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28369 Compiler: ${CC} (version: ${GCC_VERSION})
28372 CPPFlags: ${CPPFLAGS}
28373 LDFlags: ${LDFLAGS}
28375 Context backend: ${with_context}
28378 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28380 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28381 echo "WARNING: You may want to enable this by specifying:"
28383 echo "WARNING: ./configure --enable-maintainer-mode $ac_configure_args"
28386 echo $build_id > stamp.configure