Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Importing the documentation !!! :)
[simgrid.git] / tools / gras-check-arch
1 #! /bin/sh
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.
5 #
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
7 #
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 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
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
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
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 \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
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 ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
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
88
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
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
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
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
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
125     as_myself=$0
126   fi
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; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
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
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
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 |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
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; }; }
180
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).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >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
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
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'"
232
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'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
250
251 case X$ECHO in
252 X*--fallback-echo)
253   # Remove one level of quotation (which was required for Make).
254   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255   ;;
256 esac
257
258 echo=${ECHO-echo}
259 if test "X$1" = X--no-reexec; then
260   # Discard the --no-reexec flag, and continue.
261   shift
262 elif test "X$1" = X--fallback-echo; then
263   # Avoid inline document here, it may be left over
264   :
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266   # Yippee, $echo works!
267   :
268 else
269   # Restart under the correct shell.
270   exec $SHELL "$0" --no-reexec ${1+"$@"}
271 fi
272
273 if test "X$1" = X--fallback-echo; then
274   # used as fallback echo
275   shift
276   cat <<EOF
277 $*
278 EOF
279   exit 0
280 fi
281
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 # if CDPATH is set.
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
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
294     then
295       break
296     fi
297   done
298 fi
299
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
303   :
304 else
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'
308   #
309   # So, first we look for a working echo in the user's PATH.
310
311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312   for dir in $PATH /usr/ucb; do
313     IFS="$lt_save_ifs"
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
318       echo="$dir/echo"
319       break
320     fi
321   done
322   IFS="$lt_save_ifs"
323
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.
330       echo='print -r'
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
337       export CONFIG_SHELL
338       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339     else
340       # Try using printf.
341       echo='printf %s\n'
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
345         # Cool, printf works
346         :
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
352         export CONFIG_SHELL
353         SHELL="$CONFIG_SHELL"
354         export 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"
361       else
362         # maybe with a smaller string...
363         prev=:
364
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
367           then
368             break
369           fi
370           prev="$cmd"
371         done
372
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+"$@"}
377         else
378           # Oops.  We lost completely, so just stick with echo.
379           echo=echo
380         fi
381       fi
382     fi
383   fi
384 fi
385 fi
386
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.
389 ECHO=$echo
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392 fi
393
394
395
396
397 tagnames=${tagnames+${tagnames},}CXX
398
399 tagnames=${tagnames+${tagnames},}F77
400
401 # Name of the host.
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`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
418
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}
423
424 # Identity of this package.
425 PACKAGE_NAME='GRAS'
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'
430
431 ac_unique_file="configure"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
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'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
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'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
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 ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
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" ;;
560
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'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
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 ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
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 ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
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 ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
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 ;;
622
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 ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
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 ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
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 ;;
669
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 ;;
676
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 ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
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 ;;
731
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 ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
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'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
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" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
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 ;;
775
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 ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
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'"
796     export $ac_envvar ;;
797
798   *)
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}
804     ;;
805
806   esac
807 done
808
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; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
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
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
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.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
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
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
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 ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
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; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
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}
911 ac_env_CC_value=$CC
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
950
951 #
952 # Report the --help message.
953 #
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.
957   cat <<_ACEOF
958 \`configure' configures GRAS 0.0.1 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
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.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
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 \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
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'.
991
992 For better control, use the options below.
993
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]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 Program names:
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
1015
1016 System types:
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]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024   case $ac_init_help in
1025      short | recursive ) echo "Configuration of GRAS 0.0.1:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
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
1046
1047 Optional Packages:
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
1052                           both]
1053   --with-tags[=TAGS]
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 "!"
1064                           to " " is run)
1065
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>
1073   CPP         C preprocessor
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
1079
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.
1082
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
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'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
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}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
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;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd "$ac_popdir"
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 GRAS configure 0.0.1
1180 generated by GNU Autoconf 2.59
1181
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.
1185 _ACEOF
1186   exit 0
1187 fi
1188 exec 5>config.log
1189 cat >&5 <<_ACEOF
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1192
1193 It was created by GRAS $as_me 0.0.1, which was
1194 generated by GNU Autoconf 2.59.  Invocation command line was
1195
1196   $ $0 $@
1197
1198 _ACEOF
1199 {
1200 cat <<_ASUNAME
1201 ## --------- ##
1202 ## Platform. ##
1203 ## --------- ##
1204
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`
1210
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`
1213
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`
1221
1222 _ASUNAME
1223
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 for as_dir in $PATH
1226 do
1227   IFS=$as_save_IFS
1228   test -z "$as_dir" && as_dir=.
1229   echo "PATH: $as_dir"
1230 done
1231
1232 } >&5
1233
1234 cat >&5 <<_ACEOF
1235
1236
1237 ## ----------- ##
1238 ## Core tests. ##
1239 ## ----------- ##
1240
1241 _ACEOF
1242
1243
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.
1249 ac_configure_args=
1250 ac_configure_args0=
1251 ac_configure_args1=
1252 ac_sep=
1253 ac_must_keep_next=false
1254 for ac_pass in 1 2
1255 do
1256   for ac_arg
1257   do
1258     case $ac_arg in
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)
1262       continue ;;
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     esac
1266     case $ac_pass in
1267     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268     2)
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.
1272       else
1273         case $ac_arg in
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 ;;
1280             esac
1281             ;;
1282           -* ) ac_must_keep_next=true ;;
1283         esac
1284       fi
1285       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286       # Get rid of the leading space.
1287       ac_sep=" "
1288       ;;
1289     esac
1290   done
1291 done
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; }
1294
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.
1302   {
1303     echo
1304
1305     cat <<\_ASBOX
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1309 _ASBOX
1310     echo
1311     # The following way of writing the cache mishandles newlines in values,
1312 {
1313   (set) 2>&1 |
1314     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315     *ac_space=\ *)
1316       sed -n \
1317         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319       ;;
1320     *)
1321       sed -n \
1322         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323       ;;
1324     esac;
1325 }
1326     echo
1327
1328     cat <<\_ASBOX
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1332 _ASBOX
1333     echo
1334     for ac_var in $ac_subst_vars
1335     do
1336       eval ac_val=$`echo $ac_var`
1337       echo "$ac_var='"'"'$ac_val'"'"'"
1338     done | sort
1339     echo
1340
1341     if test -n "$ac_subst_files"; then
1342       cat <<\_ASBOX
1343 ## ------------- ##
1344 ## Output files. ##
1345 ## ------------- ##
1346 _ASBOX
1347       echo
1348       for ac_var in $ac_subst_files
1349       do
1350         eval ac_val=$`echo $ac_var`
1351         echo "$ac_var='"'"'$ac_val'"'"'"
1352       done | sort
1353       echo
1354     fi
1355
1356     if test -s confdefs.h; then
1357       cat <<\_ASBOX
1358 ## ----------- ##
1359 ## confdefs.h. ##
1360 ## ----------- ##
1361 _ASBOX
1362       echo
1363       sed "/^$/d" confdefs.h | sort
1364       echo
1365     fi
1366     test "$ac_signal" != 0 &&
1367       echo "$as_me: caught signal $ac_signal"
1368     echo "$as_me: exit $exit_status"
1369   } >&5
1370   rm -f core *.core &&
1371   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372     exit $exit_status
1373      ' 0
1374 for ac_signal in 1 2 13 15; do
1375   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 done
1377 ac_signal=0
1378
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.
1382 echo >confdefs.h
1383
1384 # Predefined preprocessor variables.
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 _ACEOF
1409
1410
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"
1416   else
1417     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418   fi
1419 fi
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
1425     . "$ac_site_file"
1426   fi
1427 done
1428
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;}
1435     case $cache_file in
1436       [\\/]* | ?:[\\/]* ) . $cache_file;;
1437       *)                      . ./$cache_file;;
1438     esac
1439   fi
1440 else
1441   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1443   >$cache_file
1444 fi
1445
1446 # Check that the precious variables saved in the cache have kept the same
1447 # value.
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
1456     set,)
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=: ;;
1460     ,set)
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=: ;;
1464     ,);;
1465     *)
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=:
1474       fi;;
1475   esac
1476   # Pass precious variables to config.status.
1477   if test "$ac_new_set" = set; then
1478     case $ac_new_val in
1479     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481     *) ac_arg=$ac_var=$ac_new_val ;;
1482     esac
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'" ;;
1486     esac
1487   fi
1488 done
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; }; }
1495 fi
1496
1497 ac_ext=c
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
1502
1503 echo "$as_me:$LINENO: SELF-TESTING" >&5
1504 echo "### First do some environment testing" >&6
1505
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
1508 # Just in case
1509 sleep 1
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
1515 # directory).
1516 if (
1517    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1518    if test "$*" = "X"; then
1519       # -L didn't work.
1520       set X `ls -t $srcdir/configure conftest.file`
1521    fi
1522    rm -f conftest.file
1523    if test "$*" != "X $srcdir/configure conftest.file" \
1524       && test "$*" != "X conftest.file $srcdir/configure"; then
1525
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; }; }
1535    fi
1536
1537    test "$2" = conftest.file
1538    )
1539 then
1540    # Ok.
1541    :
1542 else
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; }; }
1548 fi
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,$//
1560 _ACEOF
1561 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1562 rm conftest.sed
1563
1564 # expand $ac_aux_dir to an absolute path
1565 am_aux_dir=`cd $ac_aux_dir && pwd`
1566
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 -- .'
1575 else
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
1579   # exists.
1580   for d in ./-p ./--version;
1581   do
1582     test -d $d && rmdir $d
1583   done
1584   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1585   if test -f "$ac_aux_dir/mkinstalldirs"; then
1586     mkdir_p='$(mkinstalldirs)'
1587   else
1588     mkdir_p='$(install_sh) -d'
1589   fi
1590 fi
1591
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"
1595
1596 fi;
1597 if test "x$enable_dependency_tracking" != xno; then
1598   am_depcomp="$ac_aux_dir/depcomp"
1599   AMDEPBACKSLASH='\'
1600 fi
1601
1602
1603 if test "x$enable_dependency_tracking" != xno; then
1604   AMDEP_TRUE=
1605   AMDEP_FALSE='#'
1606 else
1607   AMDEP_TRUE='#'
1608   AMDEP_FALSE=
1609 fi
1610
1611
1612
1613 ac_ext=c
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
1625 else
1626   if test -n "$CC"; then
1627   ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
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
1638     break 2
1639   fi
1640 done
1641 done
1642
1643 fi
1644 fi
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647   echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650   echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654 fi
1655 if test -z "$ac_cv_prog_CC"; then
1656   ac_ct_CC=$CC
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
1663 else
1664   if test -n "$ac_ct_CC"; then
1665   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1669 do
1670   IFS=$as_save_IFS
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
1676     break 2
1677   fi
1678 done
1679 done
1680
1681 fi
1682 fi
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
1687 else
1688   echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1690 fi
1691
1692   CC=$ac_ct_CC
1693 else
1694   CC="$ac_cv_prog_CC"
1695 fi
1696
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
1705 else
1706   if test -n "$CC"; then
1707   ac_cv_prog_CC="$CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
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
1718     break 2
1719   fi
1720 done
1721 done
1722
1723 fi
1724 fi
1725 CC=$ac_cv_prog_CC
1726 if test -n "$CC"; then
1727   echo "$as_me:$LINENO: result: $CC" >&5
1728 echo "${ECHO_T}$CC" >&6
1729 else
1730   echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1732 fi
1733
1734 fi
1735 if test -z "$ac_cv_prog_CC"; then
1736   ac_ct_CC=$CC
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
1743 else
1744   if test -n "$ac_ct_CC"; then
1745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
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
1756     break 2
1757   fi
1758 done
1759 done
1760
1761 fi
1762 fi
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
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772   CC=$ac_ct_CC
1773 else
1774   CC="$ac_cv_prog_CC"
1775 fi
1776
1777 fi
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
1785 else
1786   if test -n "$CC"; then
1787   ac_cv_prog_CC="$CC" # Let the user override the test.
1788 else
1789   ac_prog_rejected=no
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793   IFS=$as_save_IFS
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
1799        continue
1800      fi
1801     ac_cv_prog_CC="cc"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
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
1811   shift
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.
1816     shift
1817     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1818   fi
1819 fi
1820 fi
1821 fi
1822 CC=$ac_cv_prog_CC
1823 if test -n "$CC"; then
1824   echo "$as_me:$LINENO: result: $CC" >&5
1825 echo "${ECHO_T}$CC" >&6
1826 else
1827   echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1829 fi
1830
1831 fi
1832 if test -z "$CC"; then
1833   if test -n "$ac_tool_prefix"; then
1834   for ac_prog in cl
1835   do
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
1842 else
1843   if test -n "$CC"; then
1844   ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849   IFS=$as_save_IFS
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
1855     break 2
1856   fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864   echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1866 else
1867   echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871     test -n "$CC" && break
1872   done
1873 fi
1874 if test -z "$CC"; then
1875   ac_ct_CC=$CC
1876   for ac_prog in cl
1877 do
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
1884 else
1885   if test -n "$ac_ct_CC"; then
1886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
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
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
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
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   test -n "$ac_ct_CC" && break
1914 done
1915
1916   CC=$ac_ct_CC
1917 fi
1918
1919 fi
1920
1921
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; }; }
1927
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
1934   ac_status=$?
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
1939   ac_status=$?
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
1944   ac_status=$?
1945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946   (exit $ac_status); }
1947
1948 cat >conftest.$ac_ext <<_ACEOF
1949 /* confdefs.h.  */
1950 _ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h.  */
1954
1955 int
1956 main ()
1957 {
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
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
1967 # of exeext.
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
1973   ac_status=$?
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
1978 # resort.
1979
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.
1982 ac_cv_exeext=
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
1985 do
1986   test -f "$ac_file" || continue
1987   case $ac_file in
1988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1989         ;;
1990     conftest.$ac_ext )
1991         # This is the source file.
1992         ;;
1993     [ab].out )
1994         # We found the default executable, but exeext='' is most
1995         # certainly right.
1996         break;;
1997     *.* )
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.
2002         export ac_cv_exeext
2003         break;;
2004     * )
2005         break;;
2006   esac
2007 done
2008 else
2009   echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
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; }; }
2017 fi
2018
2019 ac_exeext=$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_file" >&5
2021 echo "${ECHO_T}$ac_file" >&6
2022
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
2032   (eval $ac_try) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }; }; then
2036     cross_compiling=no
2037   else
2038     if test "$cross_compiling" = maybe; then
2039         cross_compiling=yes
2040     else
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; }; }
2048     fi
2049   fi
2050 fi
2051 echo "$as_me:$LINENO: result: yes" >&5
2052 echo "${ECHO_T}yes" >&6
2053
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
2062
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
2067   ac_status=$?
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
2073 # `rm'.
2074 for ac_file in conftest.exe conftest conftest.*; do
2075   test -f "$ac_file" || continue
2076   case $ac_file in
2077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2078     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2079           export ac_cv_exeext
2080           break;;
2081     * ) break;;
2082   esac
2083 done
2084 else
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; }; }
2090 fi
2091
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
2095
2096 rm -f conftest.$ac_ext
2097 EXEEXT=$ac_cv_exeext
2098 ac_exeext=$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
2103 else
2104   cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h.  */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h.  */
2110
2111 int
2112 main ()
2113 {
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 rm -f conftest.o conftest.obj
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121   (eval $ac_compile) 2>&5
2122   ac_status=$?
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
2126   case $ac_file in
2127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2128     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2129        break;;
2130   esac
2131 done
2132 else
2133   echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
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; }; }
2141 fi
2142
2143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2144 fi
2145 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2146 echo "${ECHO_T}$ac_cv_objext" >&6
2147 OBJEXT=$ac_cv_objext
2148 ac_objext=$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
2153 else
2154   cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h.  */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h.  */
2160
2161 int
2162 main ()
2163 {
2164 #ifndef __GNUC__
2165        choke me
2166 #endif
2167
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 rm -f conftest.$ac_objext
2173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174   (eval $ac_compile) 2>conftest.er1
2175   ac_status=$?
2176   grep -v '^ *+' conftest.er1 >conftest.err
2177   rm -f conftest.er1
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
2183   (eval $ac_try) 2>&5
2184   ac_status=$?
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
2189   (eval $ac_try) 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }; }; then
2193   ac_compiler_gnu=yes
2194 else
2195   echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2197
2198 ac_compiler_gnu=no
2199 fi
2200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2202
2203 fi
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
2209 CFLAGS="-g"
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
2214 else
2215   cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h.  */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h.  */
2221
2222 int
2223 main ()
2224 {
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>conftest.er1
2233   ac_status=$?
2234   grep -v '^ *+' conftest.er1 >conftest.err
2235   rm -f conftest.er1
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
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
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
2247   (eval $ac_try) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }; }; then
2251   ac_cv_prog_cc_g=yes
2252 else
2253   echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 ac_cv_prog_cc_g=no
2257 fi
2258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
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
2266     CFLAGS="-g -O2"
2267   else
2268     CFLAGS="-g"
2269   fi
2270 else
2271   if test "$GCC" = yes; then
2272     CFLAGS="-O2"
2273   else
2274     CFLAGS=
2275   fi
2276 fi
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
2281 else
2282   ac_cv_prog_cc_stdc=no
2283 ac_save_CC=$CC
2284 cat >conftest.$ac_ext <<_ACEOF
2285 /* confdefs.h.  */
2286 _ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h.  */
2290 #include <stdarg.h>
2291 #include <stdio.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)
2298      char **p;
2299      int i;
2300 {
2301   return p[i];
2302 }
2303 static char *f (char * (*g) (char **, int), char **p, ...)
2304 {
2305   char *s;
2306   va_list v;
2307   va_start (v,p);
2308   s = g (p, va_arg (v,int));
2309   va_end (v);
2310   return s;
2311 }
2312
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];
2321
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);
2326 int argc;
2327 char **argv;
2328 int
2329 main ()
2330 {
2331 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
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__"
2344 do
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
2349   ac_status=$?
2350   grep -v '^ *+' conftest.er1 >conftest.err
2351   rm -f conftest.er1
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
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
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
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; }; then
2367   ac_cv_prog_cc_stdc=$ac_arg
2368 break
2369 else
2370   echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2372
2373 fi
2374 rm -f conftest.err conftest.$ac_objext
2375 done
2376 rm -f conftest.$ac_ext conftest.$ac_objext
2377 CC=$ac_save_CC
2378
2379 fi
2380
2381 case "x$ac_cv_prog_cc_stdc" in
2382   x|xno)
2383     echo "$as_me:$LINENO: result: none needed" >&5
2384 echo "${ECHO_T}none needed" >&6 ;;
2385   *)
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" ;;
2389 esac
2390
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
2396 #ifndef __cplusplus
2397   choke me
2398 #endif
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402   (eval $ac_compile) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
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
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
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
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   for ac_declaration in \
2422    '' \
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);' \
2427    'void exit (int);'
2428 do
2429   cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435 $ac_declaration
2436 #include <stdlib.h>
2437 int
2438 main ()
2439 {
2440 exit (42);
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447   (eval $ac_compile) 2>conftest.er1
2448   ac_status=$?
2449   grep -v '^ *+' conftest.er1 >conftest.err
2450   rm -f conftest.er1
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
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
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
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; }; then
2466   :
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 continue
2472 fi
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474   cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480 $ac_declaration
2481 int
2482 main ()
2483 {
2484 exit (42);
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491   (eval $ac_compile) 2>conftest.er1
2492   ac_status=$?
2493   grep -v '^ *+' conftest.er1 >conftest.err
2494   rm -f conftest.er1
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
2500   (eval $ac_try) 2>&5
2501   ac_status=$?
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
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; }; then
2510   break
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 fi
2516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517 done
2518 rm -f conftest*
2519 if test -n "$ac_declaration"; then
2520   echo '#ifdef __cplusplus' >>confdefs.h
2521   echo $ac_declaration      >>confdefs.h
2522   echo '#endif'             >>confdefs.h
2523 fi
2524
2525 else
2526   echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 fi
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 ac_ext=c
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
2536
2537 depcc="$CC"   am_compiler_list=
2538
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
2543 else
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
2549   # in D'.
2550   mkdir conftest.dir
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
2554   cd 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
2560   # directory.
2561   mkdir sub
2562
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`
2566   fi
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.
2571     #
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.
2575     : > sub/conftest.c
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
2581     done
2582     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2583
2584     case $depmode in
2585     nosideeffect)
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
2589         continue
2590       else
2591         break
2592       fi
2593       ;;
2594     none) break ;;
2595     esac
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
2617         break
2618       fi
2619     fi
2620   done
2621
2622   cd ..
2623   rm -rf conftest.dir
2624 else
2625   am_cv_CC_dependencies_compiler_type=none
2626 fi
2627
2628 fi
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
2632
2633
2634
2635 if
2636   test "x$enable_dependency_tracking" != xno \
2637   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2638   am__fastdepCC_TRUE=
2639   am__fastdepCC_FALSE='#'
2640 else
2641   am__fastdepCC_TRUE='#'
2642   am__fastdepCC_FALSE=
2643 fi
2644
2645
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
2650 else
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
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
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"
2662       fi
2663     done
2664   done
2665 done
2666 lt_ac_max=0
2667 lt_ac_count=0
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
2673   lt_ac_count=0
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
2678     break
2679   fi
2680   while true; do
2681     cat conftest.in conftest.in >conftest.tmp
2682     mv conftest.tmp conftest.in
2683     cp conftest.in conftest.nl
2684     echo >>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
2693     fi
2694   done
2695 done
2696 SED=$lt_cv_path_SED
2697
2698 fi
2699
2700 echo "$as_me:$LINENO: result: $SED" >&5
2701 echo "${ECHO_T}$SED" >&6
2702
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
2707 else
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'
2711     fi
2712 fi
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
2716
2717
2718 echo "### Now check the architecture" >&6
2719
2720 # Check architecture signature
2721
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
2727 else
2728   # See if sys/param.h defines the BYTE_ORDER macro.
2729 cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h.  */
2731 _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>
2737
2738 int
2739 main ()
2740 {
2741 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2742  bogus endian macros
2743 #endif
2744
2745   ;
2746   return 0;
2747 }
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751   (eval $ac_compile) 2>conftest.er1
2752   ac_status=$?
2753   grep -v '^ *+' conftest.er1 >conftest.err
2754   rm -f conftest.er1
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
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
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
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
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
2772 /* confdefs.h.  */
2773 _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>
2779
2780 int
2781 main ()
2782 {
2783 #if BYTE_ORDER != BIG_ENDIAN
2784  not big endian
2785 #endif
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793   (eval $ac_compile) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
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
2802   (eval $ac_try) 2>&5
2803   ac_status=$?
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
2808   (eval $ac_try) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   ac_cv_c_bigendian=yes
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 ac_cv_c_bigendian=no
2818 fi
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
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
2829 /* confdefs.h.  */
2830 _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; }
2840 int
2841 main ()
2842 {
2843  _ascii (); _ebcdic ();
2844   ;
2845   return 0;
2846 }
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850   (eval $ac_compile) 2>conftest.er1
2851   ac_status=$?
2852   grep -v '^ *+' conftest.er1 >conftest.err
2853   rm -f conftest.er1
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
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
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
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
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
2871 fi
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
2875   else
2876     # finding both strings is unlikely to happen, but who knows?
2877     ac_cv_c_bigendian=unknown
2878   fi
2879 fi
2880 else
2881   echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2883
2884 fi
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886 else
2887   cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h.  */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h.  */
2893 int
2894 main ()
2895 {
2896   /* Are we little or big endian?  From Harbison&Steele.  */
2897   union
2898   {
2899     long l;
2900     char c[sizeof (long)];
2901   } u;
2902   u.l = 1;
2903   exit (u.c[sizeof (long) - 1] == 1);
2904 }
2905 _ACEOF
2906 rm -f conftest$ac_exeext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908   (eval $ac_link) 2>&5
2909   ac_status=$?
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
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   ac_cv_c_bigendian=no
2918 else
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
2922
2923 ( exit $ac_status )
2924 ac_cv_c_bigendian=yes
2925 fi
2926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2927 fi
2928 fi
2929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2930 fi
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
2934   yes)
2935     endian=1 ;;
2936   no)
2937     endian=0 ;;
2938   *)
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; }; } ;;
2942 esac
2943
2944
2945 cat >>confdefs.h <<_ACEOF
2946 #define GRAS_BIGENDIAN $endian
2947 _ACEOF
2948
2949
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
2954 else
2955   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
2956    cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h.  */
2958 _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>
2964
2965
2966 int
2967 main ()
2968 {
2969 switch (0) case 0: case (sizeof (char) == $ac_size):;
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976   (eval $ac_compile) 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
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
2985   (eval $ac_try) 2>&5
2986   ac_status=$?
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
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; }; then
2995   ac_cv_sizeof_char=$ac_size
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 fi
3001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3002    if test x$ac_cv_sizeof_char != x ; then break; fi
3003   done
3004
3005 fi
3006
3007
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; }; }
3012 fi
3013 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
3014 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define SIZEOF_CHAR $ac_cv_sizeof_char
3018 _ACEOF
3019
3020
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
3025 else
3026   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3027    cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _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>
3035
3036
3037 int
3038 main ()
3039 {
3040 switch (0) case 0: case (sizeof (short int) == $ac_size):;
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047   (eval $ac_compile) 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
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
3056   (eval $ac_try) 2>&5
3057   ac_status=$?
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
3062   (eval $ac_try) 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; }; then
3066   ac_cv_sizeof_short_int=$ac_size
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073    if test x$ac_cv_sizeof_short_int != x ; then break; fi
3074   done
3075
3076 fi
3077
3078
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; }; }
3083 fi
3084 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
3085 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
3086
3087 cat >>confdefs.h <<_ACEOF
3088 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
3089 _ACEOF
3090
3091
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
3096 else
3097   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3098    cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _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>
3106
3107
3108 int
3109 main ()
3110 {
3111 switch (0) case 0: case (sizeof (int) == $ac_size):;
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118   (eval $ac_compile) 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
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
3127   (eval $ac_try) 2>&5
3128   ac_status=$?
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
3133   (eval $ac_try) 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; }; then
3137   ac_cv_sizeof_int=$ac_size
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 fi
3143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3144    if test x$ac_cv_sizeof_int != x ; then break; fi
3145   done
3146
3147 fi
3148
3149
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; }; }
3154 fi
3155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3156 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3157
3158 cat >>confdefs.h <<_ACEOF
3159 #define SIZEOF_INT $ac_cv_sizeof_int
3160 _ACEOF
3161
3162
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
3167 else
3168   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3169    cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h.  */
3171 _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>
3177
3178
3179 int
3180 main ()
3181 {
3182 switch (0) case 0: case (sizeof (long int) == $ac_size):;
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189   (eval $ac_compile) 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
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
3198   (eval $ac_try) 2>&5
3199   ac_status=$?
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
3204   (eval $ac_try) 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   ac_cv_sizeof_long_int=$ac_size
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 fi
3214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3215    if test x$ac_cv_sizeof_long_int != x ; then break; fi
3216   done
3217
3218 fi
3219
3220
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; }; }
3225 fi
3226 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
3227 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
3228
3229 cat >>confdefs.h <<_ACEOF
3230 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
3231 _ACEOF
3232
3233
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
3238 else
3239   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3240    cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _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>
3248
3249
3250 int
3251 main ()
3252 {
3253 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260   (eval $ac_compile) 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
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
3269   (eval $ac_try) 2>&5
3270   ac_status=$?
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
3275   (eval $ac_try) 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; }; then
3279   ac_cv_sizeof_long_long_int=$ac_size
3280 else
3281   echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 fi
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
3287   done
3288
3289 fi
3290
3291
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; }; }
3296 fi
3297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
3298 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
3299
3300 cat >>confdefs.h <<_ACEOF
3301 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
3302 _ACEOF
3303
3304
3305
3306
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
3311 else
3312   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3313    cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h.  */
3315 _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>
3321
3322
3323 int
3324 main ()
3325 {
3326 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333   (eval $ac_compile) 2>conftest.er1
3334   ac_status=$?
3335   grep -v '^ *+' conftest.er1 >conftest.err
3336   rm -f conftest.er1
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
3342   (eval $ac_try) 2>&5
3343   ac_status=$?
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
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   ac_cv_sizeof_void_p=$ac_size
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 fi
3358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3359    if test x$ac_cv_sizeof_void_p != x ; then break; fi
3360   done
3361
3362 fi
3363
3364
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; }; }
3369 fi
3370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3371 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3372
3373 cat >>confdefs.h <<_ACEOF
3374 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3375 _ACEOF
3376
3377
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
3382 else
3383   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3384    cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _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>
3392
3393
3394 int
3395 main ()
3396 {
3397 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 rm -f conftest.$ac_objext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404   (eval $ac_compile) 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
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
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
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
3419   (eval $ac_try) 2>&5
3420   ac_status=$?
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }; }; then
3423   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 fi
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
3431   done
3432
3433 fi
3434
3435
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; }; }
3440 fi
3441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
3442 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
3443
3444 cat >>confdefs.h <<_ACEOF
3445 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
3446 _ACEOF
3447
3448
3449
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
3454 else
3455   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3456    cat >conftest.$ac_ext <<_ACEOF
3457 /* confdefs.h.  */
3458 _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>
3464
3465
3466 int
3467 main ()
3468 {
3469 switch (0) case 0: case (sizeof (float) == $ac_size):;
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476   (eval $ac_compile) 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
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
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
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
3491   (eval $ac_try) 2>&5
3492   ac_status=$?
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); }; }; then
3495   ac_cv_sizeof_float=$ac_size
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 fi
3501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502    if test x$ac_cv_sizeof_float != x ; then break; fi
3503   done
3504
3505 fi
3506
3507
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; }; }
3512 fi
3513 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
3514 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
3515
3516 cat >>confdefs.h <<_ACEOF
3517 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3518 _ACEOF
3519
3520
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
3525 else
3526   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
3527    cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _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>
3535
3536
3537 int
3538 main ()
3539 {
3540 switch (0) case 0: case (sizeof (double) == $ac_size):;
3541   ;
3542   return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.$ac_objext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547   (eval $ac_compile) 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
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
3556   (eval $ac_try) 2>&5
3557   ac_status=$?
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
3562   (eval $ac_try) 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; }; then
3566   ac_cv_sizeof_double=$ac_size
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 fi
3572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573    if test x$ac_cv_sizeof_double != x ; then break; fi
3574   done
3575
3576 fi
3577
3578
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; }; }
3583 fi
3584 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
3585 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
3586
3587 cat >>confdefs.h <<_ACEOF
3588 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3589 _ACEOF
3590
3591
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
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include "confdefs.h"
3601 union {
3602         double testFP;
3603         unsigned char bytes[sizeof(double)];
3604 } doubleTester;
3605 union {
3606         float testFP;
3607         unsigned char bytes[sizeof(float)];
3608 } floatTester;
3609
3610 int
3611 main ()
3612 {
3613
3614 memset(&doubleTester, 0, sizeof(doubleTester));
3615 memset(&floatTester, 0, sizeof(floatTester));
3616
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;
3623
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;
3630
3631 return 0;
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.$ac_objext
3637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3638   (eval $ac_compile) 2>conftest.er1
3639   ac_status=$?
3640   grep -v '^ *+' conftest.er1 >conftest.err
3641   rm -f conftest.er1
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
3647   (eval $ac_try) 2>&5
3648   ac_status=$?
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
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   IEEE_FP=yes
3658
3659 cat >>confdefs.h <<\_ACEOF
3660 #define IEEE_FP 1
3661 _ACEOF
3662
3663
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 IEEE_FP=no
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; }; }
3672 fi
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
3675
3676 echo
3677
3678 if test x$endian = x1 ; then
3679   trace_endian=B
3680 else
3681   trace_endian=l
3682 fi
3683 gras_arch=unknown
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}"
3688 case $trace in
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;;
3693 esac
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; }; }
3702 fi
3703 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
3704
3705 cat >>confdefs.h <<_ACEOF
3706 #define GRAS_THISARCH_NAME "$gras_arch_name"
3707 _ACEOF
3708
3709
3710 cat >>confdefs.h <<_ACEOF
3711 #define GRAS_THISARCH $gras_arch
3712 _ACEOF
3713
3714 echo "I know this architecture, it is $gras_arch_name (code $gras_arch)."
3715 echo
3716
3717 exit 0;