2 # From configure.ac Revision: 1.10 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.1.
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292 echo_test_string="`eval $cmd`" &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.0.1'
428 PACKAGE_STRING='GRAS 0.0.1'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
431 ac_unique_file="configure"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE ACI_CACHE_PROG aci_module_desc_XML aci_pkg_config_XML HAVE_XML CFLAGS_XML LIBS_XML aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid HAVE_SG_TRUE HAVE_SG_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures GRAS 0.0.1 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 --target=TARGET configure for building compilers for TARGET [HOST]
1023 if test -n "$ac_init_help"; then
1024 case $ac_init_help in
1025 short | recursive ) echo "Configuration of GRAS 0.0.1:";;
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-gtk-doc use gtk-doc to build documentation default=no
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
1045 --enable-iso-c Try to warn if code is not ISO C
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051 --with-pic try to use only PIC/non-PIC objects [default=use
1054 include additional configurations [automatic]
1055 --with-html-dir=PATH path to installed docs
1056 --with-SimGrid=DIR root directory of the SimGrid simulator installation
1057 --with-SimGrid-includes=DIR
1058 specify exact include dir for the SimGrid simulator headers
1059 --with-SimGrid-libraries=DIR
1060 specify exact library dir for the SimGrid simulator library
1061 --with-SimGrid-extra=ARG
1062 specify extra args to pass to the linker to get the
1063 the SimGrid simulator library (with no space. A sed to change "!"
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1179 GRAS configure 0.0.1
1180 generated by GNU Autoconf 2.59
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1193 It was created by GRAS $as_me 0.0.1, which was
1194 generated by GNU Autoconf 2.59. Invocation command line was
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228 test -z "$as_dir" && as_dir=.
1229 echo "PATH: $as_dir"
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_must_keep_next=false
1259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270 if test $ac_must_keep_next = true; then
1271 ac_must_keep_next=false # Got value, back to normal.
1274 *=* | --config-cache | -C | -disable-* | --disable-* \
1275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277 | -with-* | --with-* | -without-* | --without-* | --x)
1278 case "$ac_configure_args0 " in
1279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 -* ) ac_must_keep_next=true ;;
1285 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286 # Get rid of the leading space.
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log. We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301 # Save into config.log some information that might help in debugging.
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1311 # The following way of writing the cache mishandles newlines in values,
1314 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1334 for ac_var in $ac_subst_vars
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -n "$ac_subst_files"; then
1348 for ac_var in $ac_subst_files
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1356 if test -s confdefs.h; then
1363 sed "/^$/d" confdefs.h | sort
1366 test "$ac_signal" != 0 &&
1367 echo "$as_me: caught signal $ac_signal"
1368 echo "$as_me: exit $exit_status"
1370 rm -f core *.core &&
1371 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 for ac_signal in 1 2 13 15; do
1375 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 # Predefined preprocessor variables.
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414 if test "x$prefix" != xNONE; then
1415 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 for ac_site_file in $CONFIG_SITE; do
1421 if test -r "$ac_site_file"; then
1422 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424 sed 's/^/| /' "$ac_site_file" >&5
1429 if test -r "$cache_file"; then
1430 # Some versions of bash will fail to source /dev/null (special
1431 # files actually), so we avoid doing that.
1432 if test -f "$cache_file"; then
1433 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1436 [\\/]* | ?:[\\/]* ) . $cache_file;;
1437 *) . ./$cache_file;;
1441 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1446 # Check that the precious variables saved in the cache have kept the same
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452 eval ac_new_set=\$ac_env_${ac_var}_set
1453 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454 eval ac_new_val="\$ac_env_${ac_var}_value"
1455 case $ac_old_set,$ac_new_set in
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1466 if test "x$ac_old_val" != "x$ac_new_val"; then
1467 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1470 echo "$as_me: former value: $ac_old_val" >&2;}
1471 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1472 echo "$as_me: current value: $ac_new_val" >&2;}
1473 ac_cache_corrupted=:
1476 # Pass precious variables to config.status.
1477 if test "$ac_new_set" = set; then
1479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 *) ac_arg=$ac_var=$ac_new_val ;;
1483 case " $ac_configure_args " in
1484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1485 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 if $ac_cache_corrupted; then
1490 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494 { (exit 1); exit 1; }; }
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503 echo "$as_me:$LINENO: SELF-TESTING" >&5
1504 echo "### First do some environment testing" >&6
1506 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1507 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1510 echo timestamp > conftest.file
1511 # Do `set' in a subshell so we don't clobber the current shell's
1512 # arguments. Must try -L first in case configure is actually a
1513 # symlink; some systems play weird games with the mod time of symlinks
1514 # (eg FreeBSD returns the mod time of the symlink's containing
1517 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1518 if test "$*" = "X"; then
1520 set X `ls -t $srcdir/configure conftest.file`
1523 if test "$*" != "X $srcdir/configure conftest.file" \
1524 && test "$*" != "X conftest.file $srcdir/configure"; then
1526 # If neither matched, then we have a broken ls. This can happen
1527 # if, for instance, CONFIG_SHELL is bash and it inherits a
1528 # broken ls alias from the environment. This has actually
1529 # happened. Such a system could not be considered "sane".
1530 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1531 alias in your environment" >&5
1532 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1533 alias in your environment" >&2;}
1534 { (exit 1); exit 1; }; }
1537 test "$2" = conftest.file
1543 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1544 Check your system clock" >&5
1545 echo "$as_me: error: newly created file is older than distributed files!
1546 Check your system clock" >&2;}
1547 { (exit 1); exit 1; }; }
1549 echo "$as_me:$LINENO: result: yes" >&5
1550 echo "${ECHO_T}yes" >&6
1551 test "$program_prefix" != NONE &&
1552 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1553 # Use a double $ so make ignores it.
1554 test "$program_suffix" != NONE &&
1555 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1556 # Double any \ or $. echo might interpret backslashes.
1557 # By default was `s,x,x', remove it if useless.
1558 cat <<\_ACEOF >conftest.sed
1559 s/[\\$]/&&/g;s/;s,x,x,$//
1561 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1564 # expand $ac_aux_dir to an absolute path
1565 am_aux_dir=`cd $ac_aux_dir && pwd`
1567 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1568 # Keeping the `.' argument allows $(mkdir_p) to be used without
1569 # argument. Indeed, we sometimes output rules like
1570 # $(mkdir_p) $(somedir)
1571 # where $(somedir) is conditionally defined.
1572 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1573 # expensive solution, as it forces Make to start a sub-shell.)
1574 mkdir_p='mkdir -p -- .'
1576 # On NextStep and OpenStep, the `mkdir' command does not
1577 # recognize any option. It will interpret all options as
1578 # directories to create, and then abort because `.' already
1580 for d in ./-p ./--version;
1582 test -d $d && rmdir $d
1584 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1585 if test -f "$ac_aux_dir/mkinstalldirs"; then
1586 mkdir_p='$(mkinstalldirs)'
1588 mkdir_p='$(install_sh) -d'
1592 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1593 if test "${enable_dependency_tracking+set}" = set; then
1594 enableval="$enable_dependency_tracking"
1597 if test "x$enable_dependency_tracking" != xno; then
1598 am_depcomp="$ac_aux_dir/depcomp"
1603 if test "x$enable_dependency_tracking" != xno; then
1614 ac_cpp='$CPP $CPPFLAGS'
1615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1618 if test -n "$ac_tool_prefix"; then
1619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1655 if test -z "$ac_cv_prog_CC"; then
1657 # Extract the first word of "gcc", so it can be a program name with args.
1658 set dummy gcc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC="gcc"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1697 if test -z "$CC"; then
1698 if test -n "$ac_tool_prefix"; then
1699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1700 set dummy ${ac_tool_prefix}cc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_CC="${ac_tool_prefix}cc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 if test -n "$CC"; then
1727 echo "$as_me:$LINENO: result: $CC" >&5
1728 echo "${ECHO_T}$CC" >&6
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1735 if test -z "$ac_cv_prog_CC"; then
1737 # Extract the first word of "cc", so it can be a program name with args.
1738 set dummy cc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="cc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1778 if test -z "$CC"; then
1779 # Extract the first word of "cc", so it can be a program name with args.
1780 set dummy cc; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_CC+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 if test -n "$CC"; then
1787 ac_cv_prog_CC="$CC" # Let the user override the test.
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1798 ac_prog_rejected=yes
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 if test $ac_prog_rejected = yes; then
1809 # We found a bogon in the path, so make sure we never use it.
1810 set dummy $ac_cv_prog_CC
1812 if test $# != 0; then
1813 # We chose a different compiler from the bogus one.
1814 # However, it has the same basename, so the bogon will be chosen
1815 # first if we set CC to just the basename; use the full file name.
1817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1823 if test -n "$CC"; then
1824 echo "$as_me:$LINENO: result: $CC" >&5
1825 echo "${ECHO_T}$CC" >&6
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1832 if test -z "$CC"; then
1833 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 if test -n "$CC"; then
1864 echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1871 test -n "$CC" && break
1874 if test -z "$CC"; then
1878 # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$ac_ct_CC"; then
1886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_CC="$ac_prog"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905 if test -n "$ac_ct_CC"; then
1906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907 echo "${ECHO_T}$ac_ct_CC" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1913 test -n "$ac_ct_CC" && break
1922 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: no acceptable C compiler found in \$PATH
1925 See \`config.log' for more details." >&2;}
1926 { (exit 1); exit 1; }; }
1928 # Provide some information about the compiler.
1929 echo "$as_me:$LINENO:" \
1930 "checking for C compiler version" >&5
1931 ac_compiler=`set X $ac_compile; echo $2`
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1933 (eval $ac_compiler --version </dev/null >&5) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1938 (eval $ac_compiler -v </dev/null >&5) 2>&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }
1942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1943 (eval $ac_compiler -V </dev/null >&5) 2>&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }
1948 cat >conftest.$ac_ext <<_ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1963 ac_clean_files_save=$ac_clean_files
1964 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1965 # Try to create an executable without -o first, disregard a.out.
1966 # It will help us diagnose broken compilers, and finding out an intuition
1968 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1969 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1970 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1972 (eval $ac_link_default) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # Find the output, starting from the most likely. This scheme is
1977 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1980 # Be careful to initialize this variable, since it used to be cached.
1981 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1983 # b.out is created by i960 compilers.
1984 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1986 test -f "$ac_file" || continue
1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1991 # This is the source file.
1994 # We found the default executable, but exeext='' is most
1998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1999 # FIXME: I believe we export ac_cv_exeext for Libtool,
2000 # but it would be cool to find out if it's true. Does anybody
2001 # maintain Libtool? --akim.
2009 echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }
2019 ac_exeext=$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_file" >&5
2021 echo "${ECHO_T}$ac_file" >&6
2023 # Check the compiler produces executables we can run. If not, either
2024 # the compiler is broken, or we cross compile.
2025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028 # If not cross compiling, check that we can run a simple program.
2029 if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2038 if test "$cross_compiling" = maybe; then
2041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2042 If you meant to cross compile, use \`--host'.
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot run C compiled programs.
2045 If you meant to cross compile, use \`--host'.
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2051 echo "$as_me:$LINENO: result: yes" >&5
2052 echo "${ECHO_T}yes" >&6
2054 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2055 ac_clean_files=$ac_clean_files_save
2056 # Check the compiler produces executables we can run. If not, either
2057 # the compiler is broken, or we cross compile.
2058 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2059 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2060 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2061 echo "${ECHO_T}$cross_compiling" >&6
2063 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2064 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2066 (eval $ac_link) 2>&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; then
2070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2072 # work properly (i.e., refer to `conftest.exe'), while it won't with
2074 for ac_file in conftest.exe conftest conftest.*; do
2075 test -f "$ac_file" || continue
2077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2085 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2088 See \`config.log' for more details." >&2;}
2089 { (exit 1); exit 1; }; }
2092 rm -f conftest$ac_cv_exeext
2093 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2094 echo "${ECHO_T}$ac_cv_exeext" >&6
2096 rm -f conftest.$ac_ext
2097 EXEEXT=$ac_cv_exeext
2099 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2100 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2101 if test "${ac_cv_objext+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 rm -f conftest.o conftest.obj
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; then
2125 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2136 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2139 See \`config.log' for more details." >&2;}
2140 { (exit 1); exit 1; }; }
2143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2145 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2146 echo "${ECHO_T}$ac_cv_objext" >&6
2147 OBJEXT=$ac_cv_objext
2149 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 cat >conftest.$ac_ext <<_ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2172 rm -f conftest.$ac_objext
2173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174 (eval $ac_compile) 2>conftest.er1
2176 grep -v '^ *+' conftest.er1 >conftest.err
2178 cat conftest.err >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2204 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2205 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2206 GCC=`test $ac_compiler_gnu = yes && echo yes`
2207 ac_test_CFLAGS=${CFLAGS+set}
2208 ac_save_CFLAGS=$CFLAGS
2210 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2212 if test "${ac_cv_prog_cc_g+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.$ac_ext <<_ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2234 grep -v '^ *+' conftest.er1 >conftest.err
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2262 if test "$ac_test_CFLAGS" = set; then
2263 CFLAGS=$ac_save_CFLAGS
2264 elif test $ac_cv_prog_cc_g = yes; then
2265 if test "$GCC" = yes; then
2271 if test "$GCC" = yes; then
2277 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2278 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2279 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 ac_cv_prog_cc_stdc=no
2284 cat >conftest.$ac_ext <<_ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h. */
2292 #include <sys/types.h>
2293 #include <sys/stat.h>
2294 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2295 struct buf { int x; };
2296 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2297 static char *e (p, i)
2303 static char *f (char * (*g) (char **, int), char **p, ...)
2308 s = g (p, va_arg (v,int));
2313 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2314 function prototypes and stuff, but not '\xHH' hex character constants.
2315 These don't provoke an error unfortunately, instead are silently treated
2316 as 'x'. The following induces an error, until -std1 is added to get
2317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2318 array size at least. It's necessary to write '\x00'==0 to get something
2319 that's true only with -std1. */
2320 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2322 int test (int i, double x);
2323 struct s1 {int (*f) (int a);};
2324 struct s2 {int (*f) (double a);};
2325 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2331 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2336 # Don't try gcc -ansi; that turns off useful extensions and
2337 # breaks some systems' header files.
2338 # AIX -qlanglvl=ansi
2339 # Ultrix and OSF/1 -std1
2340 # HP-UX 10.20 and later -Ae
2341 # HP-UX older versions -Aa -D_HPUX_SOURCE
2342 # SVR4 -Xc -D__EXTENSIONS__
2343 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2345 CC="$ac_save_CC $ac_arg"
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2350 grep -v '^ *+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cc_stdc=$ac_arg
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext
2376 rm -f conftest.$ac_ext conftest.$ac_objext
2381 case "x$ac_cv_prog_cc_stdc" in
2383 echo "$as_me:$LINENO: result: none needed" >&5
2384 echo "${ECHO_T}none needed" >&6 ;;
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2387 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2388 CC="$CC $ac_cv_prog_cc_stdc" ;;
2391 # Some people use a C++ compiler to compile C. Since we use `exit',
2392 # in C++ we need to declare it. In case someone uses the same compiler
2393 # for both compiling C and C++ we need to have the C++ compiler decide
2394 # the declaration of exit, since it's the most demanding environment.
2395 cat >conftest.$ac_ext <<_ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 for ac_declaration in \
2423 'extern "C" void std::exit (int) throw (); using std::exit;' \
2424 'extern "C" void std::exit (int); using std::exit;' \
2425 'extern "C" void exit (int) throw ();' \
2426 'extern "C" void exit (int);' \
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1 >conftest.err
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest.$ac_objext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 cat >conftest.$ac_ext <<_ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>conftest.er1
2493 grep -v '^ *+' conftest.er1 >conftest.err
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 if test -n "$ac_declaration"; then
2520 echo '#ifdef __cplusplus' >>confdefs.h
2521 echo $ac_declaration >>confdefs.h
2522 echo '#endif' >>confdefs.h
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537 depcc="$CC" am_compiler_list=
2539 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2541 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2545 # We make a subdir and do the tests there. Otherwise we can end up
2546 # making bogus files that we don't know about and never remove. For
2547 # instance it was reported that on HP-UX the gcc test will end up
2548 # making a dummy file named `D' -- because `-MD' means `put the output
2551 # Copy depcomp to subdir because otherwise we won't find it if we're
2552 # using a relative directory.
2553 cp "$am_depcomp" conftest.dir
2555 # We will build objects and dependencies in a subdirectory because
2556 # it helps to detect inapplicable dependency modes. For instance
2557 # both Tru64's cc and ICC support -MD to output dependencies as a
2558 # side effect of compilation, but ICC will put the dependencies in
2559 # the current directory while Tru64 will put them in the object
2563 am_cv_CC_dependencies_compiler_type=none
2564 if test "$am_compiler_list" = ""; then
2565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2567 for depmode in $am_compiler_list; do
2568 # Setup a source with many dependencies, because some compilers
2569 # like to wrap large dependency lists on column 80 (with \), and
2570 # we should not choose a depcomp mode which is confused by this.
2572 # We need to recreate these files for each test, as the compiler may
2573 # overwrite some of them when testing with obscure command lines.
2574 # This happens at least with the AIX C compiler.
2576 for i in 1 2 3 4 5 6; do
2577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2579 # Solaris 8's {/usr,}/bin/sh.
2580 touch sub/conftst$i.h
2582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2586 # after this tag, mechanisms are not by side-effect, so they'll
2587 # only be used when explicitly requested
2588 if test "x$enable_dependency_tracking" = xyes; then
2596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2597 # mode. It turns out that the SunPro C++ compiler does not properly
2598 # handle `-M -o', and we need to detect this.
2599 if depmode=$depmode \
2600 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2602 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2603 >/dev/null 2>conftest.err &&
2604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2607 # icc doesn't choke on unknown options, it will just issue warnings
2608 # or remarks (even with -Werror). So we grep stderr for any message
2609 # that says an option was ignored or not supported.
2610 # When given -MP, icc 7.0 and 7.1 complain thusly:
2611 # icc: Command line warning: ignoring option '-M'; no argument required
2612 # The diagnosis changed in icc 8.0:
2613 # icc: Command line remark: option '-MP' not supported
2614 if (grep 'ignoring option' conftest.err ||
2615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2616 am_cv_CC_dependencies_compiler_type=$depmode
2625 am_cv_CC_dependencies_compiler_type=none
2629 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2630 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2631 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2636 test "x$enable_dependency_tracking" != xno \
2637 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2639 am__fastdepCC_FALSE='#'
2641 am__fastdepCC_TRUE='#'
2642 am__fastdepCC_FALSE=
2646 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2647 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2648 if test "${lt_cv_path_SED+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 # Loop through the user's path and test for sed and gsed.
2652 # Then use that list of sed's as ones to test for truncation.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for lt_ac_prog in sed gsed; do
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2661 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2668 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2669 # along with /bin/sed that truncates output.
2670 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2671 test ! -f $lt_ac_sed && break
2672 cat /dev/null > conftest.in
2674 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2675 # Check for GNU sed and select it if it is found.
2676 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2677 lt_cv_path_SED=$lt_ac_sed
2681 cat conftest.in conftest.in >conftest.tmp
2682 mv conftest.tmp conftest.in
2683 cp conftest.in conftest.nl
2685 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2686 cmp -s conftest.out conftest.nl || break
2687 # 10000 chars as input seems more than enough
2688 test $lt_ac_count -gt 10 && break
2689 lt_ac_count=`expr $lt_ac_count + 1`
2690 if test $lt_ac_count -gt $lt_ac_max; then
2691 lt_ac_max=$lt_ac_count
2692 lt_cv_path_SED=$lt_ac_sed
2700 echo "$as_me:$LINENO: result: $SED" >&5
2701 echo "${ECHO_T}$SED" >&6
2703 echo "$as_me:$LINENO: checking for egrep" >&5
2704 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2705 if test "${ac_cv_prog_egrep+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2709 then ac_cv_prog_egrep='grep -E'
2710 else ac_cv_prog_egrep='egrep'
2713 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2714 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2715 EGREP=$ac_cv_prog_egrep
2718 echo "### Now check the architecture" >&6
2720 # Check architecture signature
2722 # Check for the architecture
2723 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2724 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2725 if test "${ac_cv_c_bigendian+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 # See if sys/param.h defines the BYTE_ORDER macro.
2729 cat >conftest.$ac_ext <<_ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2735 #include <sys/types.h>
2736 #include <sys/param.h>
2741 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 # It does; now see whether it defined to BIG_ENDIAN or not.
2771 cat >conftest.$ac_ext <<_ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777 #include <sys/types.h>
2778 #include <sys/param.h>
2783 #if BYTE_ORDER != BIG_ENDIAN
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>conftest.er1
2795 grep -v '^ *+' conftest.er1 >conftest.err
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 ac_cv_c_bigendian=yes
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 ac_cv_c_bigendian=no
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 # It does not; compile a test program.
2825 if test "$cross_compiling" = yes; then
2826 # try to guess the endianness by grepping values into an object file
2827 ac_cv_c_bigendian=unknown
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2835 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2836 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2837 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2838 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2839 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2843 _ascii (); _ebcdic ();
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
2852 grep -v '^ *+' conftest.er1 >conftest.err
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2870 ac_cv_c_bigendian=yes
2872 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2873 if test "$ac_cv_c_bigendian" = unknown; then
2874 ac_cv_c_bigendian=no
2876 # finding both strings is unlikely to happen, but who knows?
2877 ac_cv_c_bigendian=unknown
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2887 cat >conftest.$ac_ext <<_ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2896 /* Are we little or big endian? From Harbison&Steele. */
2900 char c[sizeof (long)];
2903 exit (u.c[sizeof (long) - 1] == 1);
2906 rm -f conftest$ac_exeext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908 (eval $ac_link) 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_c_bigendian=no
2919 echo "$as_me: program exited with status $ac_status" >&5
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2924 ac_cv_c_bigendian=yes
2926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2932 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2933 case $ac_cv_c_bigendian in
2939 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
2940 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
2941 { (exit 1); exit 1; }; } ;;
2945 cat >>confdefs.h <<_ACEOF
2946 #define GRAS_BIGENDIAN $endian
2950 echo "$as_me:$LINENO: checking size of char" >&5
2951 echo $ECHO_N "checking size of char... $ECHO_C" >&6
2952 if test "${ac_cv_sizeof_char+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 #include "confdefs.h"
2963 #include <sys/types.h>
2969 switch (0) case 0: case (sizeof (char) == $ac_size):;
2974 rm -f conftest.$ac_objext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976 (eval $ac_compile) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 ac_cv_sizeof_char=$ac_size
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3002 if test x$ac_cv_sizeof_char != x ; then break; fi
3008 if test x$ac_cv_sizeof_char = x ; then
3009 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
3010 echo "$as_me: error: cannot determine a size for char" >&2;}
3011 { (exit 1); exit 1; }; }
3013 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
3014 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
3016 cat >>confdefs.h <<_ACEOF
3017 #define SIZEOF_CHAR $ac_cv_sizeof_char
3021 echo "$as_me:$LINENO: checking size of short int" >&5
3022 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
3023 if test "${ac_cv_sizeof_short_int+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3040 switch (0) case 0: case (sizeof (short int) == $ac_size):;
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_sizeof_short_int=$ac_size
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 if test x$ac_cv_sizeof_short_int != x ; then break; fi
3079 if test x$ac_cv_sizeof_short_int = x ; then
3080 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
3081 echo "$as_me: error: cannot determine a size for short int" >&2;}
3082 { (exit 1); exit 1; }; }
3084 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
3085 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
3087 cat >>confdefs.h <<_ACEOF
3088 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
3092 echo "$as_me:$LINENO: checking size of int" >&5
3093 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3094 if test "${ac_cv_sizeof_int+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3104 #include "confdefs.h"
3105 #include <sys/types.h>
3111 switch (0) case 0: case (sizeof (int) == $ac_size):;
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; } &&
3131 { ac_try='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 ac_cv_sizeof_int=$ac_size
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3144 if test x$ac_cv_sizeof_int != x ; then break; fi
3150 if test x$ac_cv_sizeof_int = x ; then
3151 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3152 echo "$as_me: error: cannot determine a size for int" >&2;}
3153 { (exit 1); exit 1; }; }
3155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3156 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3158 cat >>confdefs.h <<_ACEOF
3159 #define SIZEOF_INT $ac_cv_sizeof_int
3163 echo "$as_me:$LINENO: checking size of long int" >&5
3164 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
3165 if test "${ac_cv_sizeof_long_int+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175 #include "confdefs.h"
3176 #include <sys/types.h>
3182 switch (0) case 0: case (sizeof (long int) == $ac_size):;
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189 (eval $ac_compile) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_sizeof_long_int=$ac_size
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3215 if test x$ac_cv_sizeof_long_int != x ; then break; fi
3221 if test x$ac_cv_sizeof_long_int = x ; then
3222 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
3223 echo "$as_me: error: cannot determine a size for long int" >&2;}
3224 { (exit 1); exit 1; }; }
3226 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
3227 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
3229 cat >>confdefs.h <<_ACEOF
3230 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
3234 echo "$as_me:$LINENO: checking size of long long int" >&5
3235 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
3236 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3246 #include "confdefs.h"
3247 #include <sys/types.h>
3253 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_sizeof_long_long_int=$ac_size
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
3292 if test x$ac_cv_sizeof_long_long_int = x ; then
3293 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
3294 echo "$as_me: error: cannot determine a size for long long int" >&2;}
3295 { (exit 1); exit 1; }; }
3297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
3298 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
3300 cat >>confdefs.h <<_ACEOF
3301 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
3307 echo "$as_me:$LINENO: checking size of void *" >&5
3308 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3309 if test "${ac_cv_sizeof_void_p+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include "confdefs.h"
3320 #include <sys/types.h>
3326 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_sizeof_void_p=$ac_size
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3359 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3365 if test x$ac_cv_sizeof_void_p = x ; then
3366 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3367 echo "$as_me: error: cannot determine a size for void *" >&2;}
3368 { (exit 1); exit 1; }; }
3370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3371 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3373 cat >>confdefs.h <<_ACEOF
3374 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3378 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
3379 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
3380 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include "confdefs.h"
3391 #include <sys/types.h>
3397 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
3402 rm -f conftest.$ac_objext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 (eval $ac_compile) 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; } &&
3417 { ac_try='test -s conftest.$ac_objext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
3436 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
3437 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
3438 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
3439 { (exit 1); exit 1; }; }
3441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
3442 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
3444 cat >>confdefs.h <<_ACEOF
3445 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
3450 echo "$as_me:$LINENO: checking size of float" >&5
3451 echo $ECHO_N "checking size of float... $ECHO_C" >&6
3452 if test "${ac_cv_sizeof_float+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3456 cat >conftest.$ac_ext <<_ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #include "confdefs.h"
3463 #include <sys/types.h>
3469 switch (0) case 0: case (sizeof (float) == $ac_size):;
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; } &&
3489 { ac_try='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_cv_sizeof_float=$ac_size
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502 if test x$ac_cv_sizeof_float != x ; then break; fi
3508 if test x$ac_cv_sizeof_float = x ; then
3509 { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
3510 echo "$as_me: error: cannot determine a size for float" >&2;}
3511 { (exit 1); exit 1; }; }
3513 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
3514 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
3516 cat >>confdefs.h <<_ACEOF
3517 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3521 echo "$as_me:$LINENO: checking size of double" >&5
3522 echo $ECHO_N "checking size of double... $ECHO_C" >&6
3523 if test "${ac_cv_sizeof_double+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include "confdefs.h"
3534 #include <sys/types.h>
3540 switch (0) case 0: case (sizeof (double) == $ac_size):;
3545 rm -f conftest.$ac_objext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 ac_cv_sizeof_double=$ac_size
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573 if test x$ac_cv_sizeof_double != x ; then break; fi
3579 if test x$ac_cv_sizeof_double = x ; then
3580 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
3581 echo "$as_me: error: cannot determine a size for double" >&2;}
3582 { (exit 1); exit 1; }; }
3584 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
3585 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
3587 cat >>confdefs.h <<_ACEOF
3588 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3592 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
3593 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include "confdefs.h"
3603 unsigned char bytes[sizeof(double)];
3607 unsigned char bytes[sizeof(float)];
3614 memset(&doubleTester, 0, sizeof(doubleTester));
3615 memset(&floatTester, 0, sizeof(floatTester));
3617 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
3618 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
3619 (sizeof(double) == 4) ? 128 :
3620 (sizeof(double) == 8) ? 16 :
3621 (sizeof(double) == 16) ? 1 : 0;
3622 if (doubleTester.testFP != -4.0) return 1;
3624 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
3625 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
3626 (sizeof(float) == 4) ? 128 :
3627 (sizeof(float) == 8) ? 16 :
3628 (sizeof(float) == 16) ? 1 : 0;
3629 if (floatTester.testFP != -4.0) return 1;
3636 rm -f conftest.$ac_objext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>conftest.er1
3640 grep -v '^ *+' conftest.er1 >conftest.err
3642 cat conftest.err >&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } &&
3645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3659 cat >>confdefs.h <<\_ACEOF
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3669 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
3670 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
3671 { (exit 1); exit 1; }; }
3673 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
3674 echo "${ECHO_T}$IEEE_FP" >&6
3678 if test x$endian = x1 ; then
3684 trace="$trace_endian"
3685 trace="${trace}:${ac_cv_sizeof_char}.${ac_cv_sizeof_short_int}.${ac_cv_sizeof_int}.${ac_cv_sizeof_long_int}.${ac_cv_sizeof_long_long_int}"
3686 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
3687 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
3689 l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=little32;;
3690 l:1.2.4.8.8:8.8:4.8) gras_arch=1; gras_arch_name=little64;;
3691 B:1.2.4.4.8:4.4:4.8) gras_arch=2; gras_arch_name=big32;;
3692 B:1.2.4.8.8:8.8:4.8) gras_arch=3; gras_arch_name=big64;;
3694 if test x$gras_arch = xunknown ; then
3695 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
3696 echo "${ECHO_T}damnit ($trace)" >&6
3697 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
3698 Please report this architecture trace ($trace) and what it corresponds to." >&5
3699 echo "I don't know this architecture !!
3700 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
3701 { (exit 1); exit 1; }; }
3703 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
3705 cat >>confdefs.h <<_ACEOF
3706 #define GRAS_THISARCH_NAME "$gras_arch_name"
3710 cat >>confdefs.h <<_ACEOF
3711 #define GRAS_THISARCH $gras_arch
3714 echo "I know this architecture, it is $gras_arch_name (code $gras_arch)."