clast: export clast_expr_equal
[cloog.git] / configure
blob15709cbda9d07079112ba6733c7b72893b4ab3e7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="source/cloog.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S RANLIB ac_ct_RANLIB SET_MAKE CD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP cl_cv_polylib RELEASE SHEXT EXEC_SUFFIX EXTRA_FLAGS EXTRA_LIBS POLYLIB_LIB INSTALL PACKAGES INSTALL_PACKAGES VERSION LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838 _ACEOF
841 if test -n "$ac_init_help"; then
843 cat <<\_ACEOF
845 Optional Packages:
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --without-cloog disable the compilation of cloog
849 --without-lib disable the compilation of cloog's lib
850 --with-polylib=DIR DIR Location of the PolyLib
851 --with-bits=32|64|gmp PolyLib library type to use
852 --with-gmp=DIR DIR where the gmp package is installed
853 --with-gmp-include=DIR DIR where gmp.h is installed
854 --with-gmp-library=DIR DIR where the gmp library is installed
856 Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863 CPP C preprocessor
865 Use these variables to override the choices made by `configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
868 _ACEOF
871 if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
873 ac_popdir=`pwd`
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
876 ac_builddir=.
878 if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 else
883 ac_dir_suffix= ac_top_builddir=
886 case $srcdir in
887 .) # No --srcdir option. We are building in place.
888 ac_srcdir=.
889 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=.
891 else
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 fi ;;
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
897 *) # Relative path.
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 esac
902 # Do not use `cd foo && pwd` to compute absolute paths, because
903 # the directories may not exist.
904 case `pwd` in
905 .) ac_abs_builddir="$ac_dir";;
907 case "$ac_dir" in
908 .) ac_abs_builddir=`pwd`;;
909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
911 esac;;
912 esac
913 case $ac_abs_builddir in
914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
916 case ${ac_top_builddir}. in
917 .) ac_abs_top_builddir=$ac_abs_builddir;;
918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920 esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_srcdir=$ac_srcdir;;
925 case $ac_srcdir in
926 .) ac_abs_srcdir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
934 case $ac_top_srcdir in
935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
938 esac;;
939 esac
941 cd $ac_dir
942 # Check for guested configure; otherwise get Cygnus style configure.
943 if test -f $ac_srcdir/configure.gnu; then
944 echo
945 $SHELL $ac_srcdir/configure.gnu --help=recursive
946 elif test -f $ac_srcdir/configure; then
947 echo
948 $SHELL $ac_srcdir/configure --help=recursive
949 elif test -f $ac_srcdir/configure.ac ||
950 test -f $ac_srcdir/configure.in; then
951 echo
952 $ac_configure --help
953 else
954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956 cd $ac_popdir
957 done
960 test -n "$ac_init_help" && exit 0
961 if $ac_init_version; then
962 cat <<\_ACEOF
964 Copyright (C) 2003 Free Software Foundation, Inc.
965 This configure script is free software; the Free Software Foundation
966 gives unlimited permission to copy, distribute and modify it.
967 _ACEOF
968 exit 0
970 exec 5>config.log
971 cat >&5 <<_ACEOF
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
975 It was created by $as_me, which was
976 generated by GNU Autoconf 2.59. Invocation command line was
978 $ $0 $@
980 _ACEOF
982 cat <<_ASUNAME
983 ## --------- ##
984 ## Platform. ##
985 ## --------- ##
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1004 _ASUNAME
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 for as_dir in $PATH
1009 IFS=$as_save_IFS
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1012 done
1014 } >&5
1016 cat >&5 <<_ACEOF
1019 ## ----------- ##
1020 ## Core tests. ##
1021 ## ----------- ##
1023 _ACEOF
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Strip out --silent because we don't want to record it for future runs.
1029 # Also quote any args containing shell meta-characters.
1030 # Make two passes to allow for proper duplicate-argument suppression.
1031 ac_configure_args=
1032 ac_configure_args0=
1033 ac_configure_args1=
1034 ac_sep=
1035 ac_must_keep_next=false
1036 for ac_pass in 1 2
1038 for ac_arg
1040 case $ac_arg in
1041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 continue ;;
1045 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1047 esac
1048 case $ac_pass in
1049 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052 if test $ac_must_keep_next = true; then
1053 ac_must_keep_next=false # Got value, back to normal.
1054 else
1055 case $ac_arg in
1056 *=* | --config-cache | -C | -disable-* | --disable-* \
1057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059 | -with-* | --with-* | -without-* | --without-* | --x)
1060 case "$ac_configure_args0 " in
1061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 esac
1064 -* ) ac_must_keep_next=true ;;
1065 esac
1067 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068 # Get rid of the leading space.
1069 ac_sep=" "
1071 esac
1072 done
1073 done
1074 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077 # When interrupted or exit'd, cleanup temporary files, and complete
1078 # config.log. We remove comments because anyway the quotes in there
1079 # would cause problems or look ugly.
1080 # WARNING: Be sure not to use single quotes in there, as some shells,
1081 # such as our DU 5.0 friend, will then `close' the trap.
1082 trap 'exit_status=$?
1083 # Save into config.log some information that might help in debugging.
1085 echo
1087 cat <<\_ASBOX
1088 ## ---------------- ##
1089 ## Cache variables. ##
1090 ## ---------------- ##
1091 _ASBOX
1092 echo
1093 # The following way of writing the cache mishandles newlines in values,
1095 (set) 2>&1 |
1096 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 *ac_space=\ *)
1098 sed -n \
1099 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 sed -n \
1104 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 esac;
1108 echo
1110 cat <<\_ASBOX
1111 ## ----------------- ##
1112 ## Output variables. ##
1113 ## ----------------- ##
1114 _ASBOX
1115 echo
1116 for ac_var in $ac_subst_vars
1118 eval ac_val=$`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1120 done | sort
1121 echo
1123 if test -n "$ac_subst_files"; then
1124 cat <<\_ASBOX
1125 ## ------------- ##
1126 ## Output files. ##
1127 ## ------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_files
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1138 if test -s confdefs.h; then
1139 cat <<\_ASBOX
1140 ## ----------- ##
1141 ## confdefs.h. ##
1142 ## ----------- ##
1143 _ASBOX
1144 echo
1145 sed "/^$/d" confdefs.h | sort
1146 echo
1148 test "$ac_signal" != 0 &&
1149 echo "$as_me: caught signal $ac_signal"
1150 echo "$as_me: exit $exit_status"
1151 } >&5
1152 rm -f core *.core &&
1153 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1154 exit $exit_status
1156 for ac_signal in 1 2 13 15; do
1157 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1158 done
1159 ac_signal=0
1161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1162 rm -rf conftest* confdefs.h
1163 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 echo >confdefs.h
1166 # Predefined preprocessor variables.
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_NAME "$PACKAGE_NAME"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_STRING "$PACKAGE_STRING"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1190 _ACEOF
1193 # Let the site file select an alternate cache file if it wants to.
1194 # Prefer explicitly selected file to automatically selected ones.
1195 if test -z "$CONFIG_SITE"; then
1196 if test "x$prefix" != xNONE; then
1197 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1198 else
1199 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 for ac_site_file in $CONFIG_SITE; do
1203 if test -r "$ac_site_file"; then
1204 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205 echo "$as_me: loading site script $ac_site_file" >&6;}
1206 sed 's/^/| /' "$ac_site_file" >&5
1207 . "$ac_site_file"
1209 done
1211 if test -r "$cache_file"; then
1212 # Some versions of bash will fail to source /dev/null (special
1213 # files actually), so we avoid doing that.
1214 if test -f "$cache_file"; then
1215 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216 echo "$as_me: loading cache $cache_file" >&6;}
1217 case $cache_file in
1218 [\\/]* | ?:[\\/]* ) . $cache_file;;
1219 *) . ./$cache_file;;
1220 esac
1222 else
1223 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224 echo "$as_me: creating cache $cache_file" >&6;}
1225 >$cache_file
1228 # Check that the precious variables saved in the cache have kept the same
1229 # value.
1230 ac_cache_corrupted=false
1231 for ac_var in `(set) 2>&1 |
1232 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234 eval ac_new_set=\$ac_env_${ac_var}_set
1235 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236 eval ac_new_val="\$ac_env_${ac_var}_value"
1237 case $ac_old_set,$ac_new_set in
1238 set,)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,set)
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1246 ,);;
1248 if test "x$ac_old_val" != "x$ac_new_val"; then
1249 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1250 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1251 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1252 echo "$as_me: former value: $ac_old_val" >&2;}
1253 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1254 echo "$as_me: current value: $ac_new_val" >&2;}
1255 ac_cache_corrupted=:
1256 fi;;
1257 esac
1258 # Pass precious variables to config.status.
1259 if test "$ac_new_set" = set; then
1260 case $ac_new_val in
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 *) ac_arg=$ac_var=$ac_new_val ;;
1264 esac
1265 case " $ac_configure_args " in
1266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1267 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1268 esac
1270 done
1271 if $ac_cache_corrupted; then
1272 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1275 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276 { (exit 1); exit 1; }; }
1279 ac_ext=c
1280 ac_cpp='$CPP $CPPFLAGS'
1281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_aux_dir=
1304 for ac_dir in autoconf $srcdir/autoconf; do
1305 if test -f $ac_dir/install-sh; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 break
1309 elif test -f $ac_dir/install.sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 break
1313 elif test -f $ac_dir/shtool; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 break
1318 done
1319 if test -z "$ac_aux_dir"; then
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1322 { (exit 1); exit 1; }; }
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328 RELEASE="0.14.0"
1329 VERSION="64"
1333 # Make sure we can run config.sub.
1334 $ac_config_sub sun4 >/dev/null 2>&1 ||
1335 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1336 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1337 { (exit 1); exit 1; }; }
1339 echo "$as_me:$LINENO: checking build system type" >&5
1340 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1341 if test "${ac_cv_build+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 else
1344 ac_cv_build_alias=$build_alias
1345 test -z "$ac_cv_build_alias" &&
1346 ac_cv_build_alias=`$ac_config_guess`
1347 test -z "$ac_cv_build_alias" &&
1348 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1349 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1350 { (exit 1); exit 1; }; }
1351 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1352 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1353 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1354 { (exit 1); exit 1; }; }
1357 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1358 echo "${ECHO_T}$ac_cv_build" >&6
1359 build=$ac_cv_build
1360 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1361 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1362 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1365 echo "$as_me:$LINENO: checking host system type" >&5
1366 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1367 if test "${ac_cv_host+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 ac_cv_host_alias=$host_alias
1371 test -z "$ac_cv_host_alias" &&
1372 ac_cv_host_alias=$ac_cv_build_alias
1373 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1374 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1375 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1376 { (exit 1); exit 1; }; }
1379 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1380 echo "${ECHO_T}$ac_cv_host" >&6
1381 host=$ac_cv_host
1382 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1383 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1384 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1387 echo "$as_me:$LINENO: checking target system type" >&5
1388 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1389 if test "${ac_cv_target+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392 ac_cv_target_alias=$target_alias
1393 test "x$ac_cv_target_alias" = "x" &&
1394 ac_cv_target_alias=$ac_cv_host_alias
1395 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1397 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1402 echo "${ECHO_T}$ac_cv_target" >&6
1403 target=$ac_cv_target
1404 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1409 # The aliases save the names the user supplied, while $host etc.
1410 # will get canonicalized.
1411 test -n "$target_alias" &&
1412 test "$program_prefix$program_suffix$program_transform_name" = \
1413 NONENONEs,x,x, &&
1414 program_prefix=${target_alias}-
1417 ac_ext=c
1418 ac_cpp='$CPP $CPPFLAGS'
1419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1422 if test -n "$ac_tool_prefix"; then
1423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_prog_CC+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430 if test -n "$CC"; then
1431 ac_cv_prog_CC="$CC" # Let the user override the test.
1432 else
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1436 IFS=$as_save_IFS
1437 test -z "$as_dir" && as_dir=.
1438 for ac_exec_ext in '' $ac_executable_extensions; do
1439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 break 2
1444 done
1445 done
1449 CC=$ac_cv_prog_CC
1450 if test -n "$CC"; then
1451 echo "$as_me:$LINENO: result: $CC" >&5
1452 echo "${ECHO_T}$CC" >&6
1453 else
1454 echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1459 if test -z "$ac_cv_prog_CC"; then
1460 ac_ct_CC=$CC
1461 # Extract the first word of "gcc", so it can be a program name with args.
1462 set dummy gcc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 if test -n "$ac_ct_CC"; then
1469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1470 else
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_ac_ct_CC="gcc"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 break 2
1482 done
1483 done
1487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1488 if test -n "$ac_ct_CC"; then
1489 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1490 echo "${ECHO_T}$ac_ct_CC" >&6
1491 else
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1496 CC=$ac_ct_CC
1497 else
1498 CC="$ac_cv_prog_CC"
1501 if test -z "$CC"; then
1502 if test -n "$ac_tool_prefix"; then
1503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1504 set dummy ${ac_tool_prefix}cc; ac_word=$2
1505 echo "$as_me:$LINENO: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_CC+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test.
1512 else
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1516 IFS=$as_save_IFS
1517 test -z "$as_dir" && as_dir=.
1518 for ac_exec_ext in '' $ac_executable_extensions; do
1519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1520 ac_cv_prog_CC="${ac_tool_prefix}cc"
1521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522 break 2
1524 done
1525 done
1529 CC=$ac_cv_prog_CC
1530 if test -n "$CC"; then
1531 echo "$as_me:$LINENO: result: $CC" >&5
1532 echo "${ECHO_T}$CC" >&6
1533 else
1534 echo "$as_me:$LINENO: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1539 if test -z "$ac_cv_prog_CC"; then
1540 ac_ct_CC=$CC
1541 # Extract the first word of "cc", so it can be a program name with args.
1542 set dummy cc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 if test -n "$ac_ct_CC"; then
1549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_ac_ct_CC="cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1562 done
1563 done
1567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1568 if test -n "$ac_ct_CC"; then
1569 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1570 echo "${ECHO_T}$ac_ct_CC" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1576 CC=$ac_ct_CC
1577 else
1578 CC="$ac_cv_prog_CC"
1582 if test -z "$CC"; then
1583 # Extract the first word of "cc", so it can be a program name with args.
1584 set dummy cc; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 if test -n "$CC"; then
1591 ac_cv_prog_CC="$CC" # Let the user override the test.
1592 else
1593 ac_prog_rejected=no
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1602 ac_prog_rejected=yes
1603 continue
1605 ac_cv_prog_CC="cc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1609 done
1610 done
1612 if test $ac_prog_rejected = yes; then
1613 # We found a bogon in the path, so make sure we never use it.
1614 set dummy $ac_cv_prog_CC
1615 shift
1616 if test $# != 0; then
1617 # We chose a different compiler from the bogus one.
1618 # However, it has the same basename, so the bogon will be chosen
1619 # first if we set CC to just the basename; use the full file name.
1620 shift
1621 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1626 CC=$ac_cv_prog_CC
1627 if test -n "$CC"; then
1628 echo "$as_me:$LINENO: result: $CC" >&5
1629 echo "${ECHO_T}$CC" >&6
1630 else
1631 echo "$as_me:$LINENO: result: no" >&5
1632 echo "${ECHO_T}no" >&6
1636 if test -z "$CC"; then
1637 if test -n "$ac_tool_prefix"; then
1638 for ac_prog in cl
1640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1661 done
1662 done
1666 CC=$ac_cv_prog_CC
1667 if test -n "$CC"; then
1668 echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1670 else
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$CC" && break
1676 done
1678 if test -z "$CC"; then
1679 ac_ct_CC=$CC
1680 for ac_prog in cl
1682 # Extract the first word of "$ac_prog", so it can be a program name with args.
1683 set dummy $ac_prog; ac_word=$2
1684 echo "$as_me:$LINENO: checking for $ac_word" >&5
1685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689 if test -n "$ac_ct_CC"; then
1690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1691 else
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_ac_ct_CC="$ac_prog"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 break 2
1703 done
1704 done
1708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1709 if test -n "$ac_ct_CC"; then
1710 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1711 echo "${ECHO_T}$ac_ct_CC" >&6
1712 else
1713 echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1717 test -n "$ac_ct_CC" && break
1718 done
1720 CC=$ac_ct_CC
1726 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1727 See \`config.log' for more details." >&5
1728 echo "$as_me: error: no acceptable C compiler found in \$PATH
1729 See \`config.log' for more details." >&2;}
1730 { (exit 1); exit 1; }; }
1732 # Provide some information about the compiler.
1733 echo "$as_me:$LINENO:" \
1734 "checking for C compiler version" >&5
1735 ac_compiler=`set X $ac_compile; echo $2`
1736 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1737 (eval $ac_compiler --version </dev/null >&5) 2>&5
1738 ac_status=$?
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }
1741 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1742 (eval $ac_compiler -v </dev/null >&5) 2>&5
1743 ac_status=$?
1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745 (exit $ac_status); }
1746 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1747 (eval $ac_compiler -V </dev/null >&5) 2>&5
1748 ac_status=$?
1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }
1752 cat >conftest.$ac_ext <<_ACEOF
1753 /* confdefs.h. */
1754 _ACEOF
1755 cat confdefs.h >>conftest.$ac_ext
1756 cat >>conftest.$ac_ext <<_ACEOF
1757 /* end confdefs.h. */
1760 main ()
1764 return 0;
1766 _ACEOF
1767 ac_clean_files_save=$ac_clean_files
1768 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1769 # Try to create an executable without -o first, disregard a.out.
1770 # It will help us diagnose broken compilers, and finding out an intuition
1771 # of exeext.
1772 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1773 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1774 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1775 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1776 (eval $ac_link_default) 2>&5
1777 ac_status=$?
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }; then
1780 # Find the output, starting from the most likely. This scheme is
1781 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1782 # resort.
1784 # Be careful to initialize this variable, since it used to be cached.
1785 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1786 ac_cv_exeext=
1787 # b.out is created by i960 compilers.
1788 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1790 test -f "$ac_file" || continue
1791 case $ac_file in
1792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1794 conftest.$ac_ext )
1795 # This is the source file.
1797 [ab].out )
1798 # We found the default executable, but exeext='' is most
1799 # certainly right.
1800 break;;
1801 *.* )
1802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1803 # FIXME: I believe we export ac_cv_exeext for Libtool,
1804 # but it would be cool to find out if it's true. Does anybody
1805 # maintain Libtool? --akim.
1806 export ac_cv_exeext
1807 break;;
1809 break;;
1810 esac
1811 done
1812 else
1813 echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1817 See \`config.log' for more details." >&5
1818 echo "$as_me: error: C compiler cannot create executables
1819 See \`config.log' for more details." >&2;}
1820 { (exit 77); exit 77; }; }
1823 ac_exeext=$ac_cv_exeext
1824 echo "$as_me:$LINENO: result: $ac_file" >&5
1825 echo "${ECHO_T}$ac_file" >&6
1827 # Check the compiler produces executables we can run. If not, either
1828 # the compiler is broken, or we cross compile.
1829 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1830 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1831 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1832 # If not cross compiling, check that we can run a simple program.
1833 if test "$cross_compiling" != yes; then
1834 if { ac_try='./$ac_file'
1835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1836 (eval $ac_try) 2>&5
1837 ac_status=$?
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }; }; then
1840 cross_compiling=no
1841 else
1842 if test "$cross_compiling" = maybe; then
1843 cross_compiling=yes
1844 else
1845 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1846 If you meant to cross compile, use \`--host'.
1847 See \`config.log' for more details." >&5
1848 echo "$as_me: error: cannot run C compiled programs.
1849 If you meant to cross compile, use \`--host'.
1850 See \`config.log' for more details." >&2;}
1851 { (exit 1); exit 1; }; }
1855 echo "$as_me:$LINENO: result: yes" >&5
1856 echo "${ECHO_T}yes" >&6
1858 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1859 ac_clean_files=$ac_clean_files_save
1860 # Check the compiler produces executables we can run. If not, either
1861 # the compiler is broken, or we cross compile.
1862 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1863 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1864 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1865 echo "${ECHO_T}$cross_compiling" >&6
1867 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1868 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1870 (eval $ac_link) 2>&5
1871 ac_status=$?
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; then
1874 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1875 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1876 # work properly (i.e., refer to `conftest.exe'), while it won't with
1877 # `rm'.
1878 for ac_file in conftest.exe conftest conftest.*; do
1879 test -f "$ac_file" || continue
1880 case $ac_file in
1881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1882 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1883 export ac_cv_exeext
1884 break;;
1885 * ) break;;
1886 esac
1887 done
1888 else
1889 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1892 See \`config.log' for more details." >&2;}
1893 { (exit 1); exit 1; }; }
1896 rm -f conftest$ac_cv_exeext
1897 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1898 echo "${ECHO_T}$ac_cv_exeext" >&6
1900 rm -f conftest.$ac_ext
1901 EXEEXT=$ac_cv_exeext
1902 ac_exeext=$EXEEXT
1903 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1904 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1905 if test "${ac_cv_objext+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 cat >conftest.$ac_ext <<_ACEOF
1909 /* confdefs.h. */
1910 _ACEOF
1911 cat confdefs.h >>conftest.$ac_ext
1912 cat >>conftest.$ac_ext <<_ACEOF
1913 /* end confdefs.h. */
1916 main ()
1920 return 0;
1922 _ACEOF
1923 rm -f conftest.o conftest.obj
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925 (eval $ac_compile) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; then
1929 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1930 case $ac_file in
1931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1933 break;;
1934 esac
1935 done
1936 else
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1947 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1950 echo "${ECHO_T}$ac_cv_objext" >&6
1951 OBJEXT=$ac_cv_objext
1952 ac_objext=$OBJEXT
1953 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1954 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1955 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958 cat >conftest.$ac_ext <<_ACEOF
1959 /* confdefs.h. */
1960 _ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1966 main ()
1968 #ifndef __GNUC__
1969 choke me
1970 #endif
1973 return 0;
1975 _ACEOF
1976 rm -f conftest.$ac_objext
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>conftest.er1
1979 ac_status=$?
1980 grep -v '^ *+' conftest.er1 >conftest.err
1981 rm -f conftest.er1
1982 cat conftest.err >&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); } &&
1985 { ac_try='test -z "$ac_c_werror_flag"
1986 || test ! -s conftest.err'
1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 (eval $ac_try) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; } &&
1992 { ac_try='test -s conftest.$ac_objext'
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994 (eval $ac_try) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
1998 ac_compiler_gnu=yes
1999 else
2000 echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2003 ac_compiler_gnu=no
2005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2009 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2010 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2011 GCC=`test $ac_compiler_gnu = yes && echo yes`
2012 ac_test_CFLAGS=${CFLAGS+set}
2013 ac_save_CFLAGS=$CFLAGS
2014 CFLAGS="-g"
2015 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2017 if test "${ac_cv_prog_cc_g+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 cat >conftest.$ac_ext <<_ACEOF
2021 /* confdefs.h. */
2022 _ACEOF
2023 cat confdefs.h >>conftest.$ac_ext
2024 cat >>conftest.$ac_ext <<_ACEOF
2025 /* end confdefs.h. */
2028 main ()
2032 return 0;
2034 _ACEOF
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>conftest.er1
2038 ac_status=$?
2039 grep -v '^ *+' conftest.er1 >conftest.err
2040 rm -f conftest.er1
2041 cat conftest.err >&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
2044 { ac_try='test -z "$ac_c_werror_flag"
2045 || test ! -s conftest.err'
2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 (eval $ac_try) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 (eval $ac_try) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2057 ac_cv_prog_cc_g=yes
2058 else
2059 echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 ac_cv_prog_cc_g=no
2064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2066 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2067 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2068 if test "$ac_test_CFLAGS" = set; then
2069 CFLAGS=$ac_save_CFLAGS
2070 elif test $ac_cv_prog_cc_g = yes; then
2071 if test "$GCC" = yes; then
2072 CFLAGS="-g -O2"
2073 else
2074 CFLAGS="-g"
2076 else
2077 if test "$GCC" = yes; then
2078 CFLAGS="-O2"
2079 else
2080 CFLAGS=
2083 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2084 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2085 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 ac_cv_prog_cc_stdc=no
2089 ac_save_CC=$CC
2090 cat >conftest.$ac_ext <<_ACEOF
2091 /* confdefs.h. */
2092 _ACEOF
2093 cat confdefs.h >>conftest.$ac_ext
2094 cat >>conftest.$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2096 #include <stdarg.h>
2097 #include <stdio.h>
2098 #include <sys/types.h>
2099 #include <sys/stat.h>
2100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2101 struct buf { int x; };
2102 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2103 static char *e (p, i)
2104 char **p;
2105 int i;
2107 return p[i];
2109 static char *f (char * (*g) (char **, int), char **p, ...)
2111 char *s;
2112 va_list v;
2113 va_start (v,p);
2114 s = g (p, va_arg (v,int));
2115 va_end (v);
2116 return s;
2119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2120 function prototypes and stuff, but not '\xHH' hex character constants.
2121 These don't provoke an error unfortunately, instead are silently treated
2122 as 'x'. The following induces an error, until -std1 is added to get
2123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2124 array size at least. It's necessary to write '\x00'==0 to get something
2125 that's true only with -std1. */
2126 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2128 int test (int i, double x);
2129 struct s1 {int (*f) (int a);};
2130 struct s2 {int (*f) (double a);};
2131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2132 int argc;
2133 char **argv;
2135 main ()
2137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2139 return 0;
2141 _ACEOF
2142 # Don't try gcc -ansi; that turns off useful extensions and
2143 # breaks some systems' header files.
2144 # AIX -qlanglvl=ansi
2145 # Ultrix and OSF/1 -std1
2146 # HP-UX 10.20 and later -Ae
2147 # HP-UX older versions -Aa -D_HPUX_SOURCE
2148 # SVR4 -Xc -D__EXTENSIONS__
2149 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2151 CC="$ac_save_CC $ac_arg"
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2155 ac_status=$?
2156 grep -v '^ *+' conftest.er1 >conftest.err
2157 rm -f conftest.er1
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 (eval $ac_try) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2174 ac_cv_prog_cc_stdc=$ac_arg
2175 break
2176 else
2177 echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2181 rm -f conftest.err conftest.$ac_objext
2182 done
2183 rm -f conftest.$ac_ext conftest.$ac_objext
2184 CC=$ac_save_CC
2188 case "x$ac_cv_prog_cc_stdc" in
2189 x|xno)
2190 echo "$as_me:$LINENO: result: none needed" >&5
2191 echo "${ECHO_T}none needed" >&6 ;;
2193 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2194 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2195 CC="$CC $ac_cv_prog_cc_stdc" ;;
2196 esac
2198 # Some people use a C++ compiler to compile C. Since we use `exit',
2199 # in C++ we need to declare it. In case someone uses the same compiler
2200 # for both compiling C and C++ we need to have the C++ compiler decide
2201 # the declaration of exit, since it's the most demanding environment.
2202 cat >conftest.$ac_ext <<_ACEOF
2203 #ifndef __cplusplus
2204 choke me
2205 #endif
2206 _ACEOF
2207 rm -f conftest.$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2210 ac_status=$?
2211 grep -v '^ *+' conftest.er1 >conftest.err
2212 rm -f conftest.er1
2213 cat conftest.err >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -z "$ac_c_werror_flag"
2217 || test ! -s conftest.err'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 for ac_declaration in \
2230 '' \
2231 'extern "C" void std::exit (int) throw (); using std::exit;' \
2232 'extern "C" void std::exit (int); using std::exit;' \
2233 'extern "C" void exit (int) throw ();' \
2234 'extern "C" void exit (int);' \
2235 'void exit (int);'
2237 cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h. */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2243 $ac_declaration
2244 #include <stdlib.h>
2246 main ()
2248 exit (42);
2250 return 0;
2252 _ACEOF
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 continue
2282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h. */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2289 $ac_declaration
2291 main ()
2293 exit (42);
2295 return 0;
2297 _ACEOF
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>conftest.er1
2301 ac_status=$?
2302 grep -v '^ *+' conftest.er1 >conftest.err
2303 rm -f conftest.er1
2304 cat conftest.err >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -z "$ac_c_werror_flag"
2308 || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 break
2321 else
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2327 done
2328 rm -f conftest*
2329 if test -n "$ac_declaration"; then
2330 echo '#ifdef __cplusplus' >>confdefs.h
2331 echo $ac_declaration >>confdefs.h
2332 echo '#endif' >>confdefs.h
2335 else
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 ac_ext=c
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2348 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2349 LN_S=$as_ln_s
2350 if test "$LN_S" = "ln -s"; then
2351 echo "$as_me:$LINENO: result: yes" >&5
2352 echo "${ECHO_T}yes" >&6
2353 else
2354 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2355 echo "${ECHO_T}no, using $LN_S" >&6
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_RANLIB+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$RANLIB"; then
2367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2380 done
2381 done
2385 RANLIB=$ac_cv_prog_RANLIB
2386 if test -n "$RANLIB"; then
2387 echo "$as_me:$LINENO: result: $RANLIB" >&5
2388 echo "${ECHO_T}$RANLIB" >&6
2389 else
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2395 if test -z "$ac_cv_prog_RANLIB"; then
2396 ac_ct_RANLIB=$RANLIB
2397 # Extract the first word of "ranlib", so it can be a program name with args.
2398 set dummy ranlib; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 if test -n "$ac_ct_RANLIB"; then
2405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_ac_ct_RANLIB="ranlib"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2418 done
2419 done
2421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2425 if test -n "$ac_ct_RANLIB"; then
2426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2428 else
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2433 RANLIB=$ac_ct_RANLIB
2434 else
2435 RANLIB="$ac_cv_prog_RANLIB"
2438 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2439 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2440 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2441 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 cat >conftest.make <<\_ACEOF
2445 all:
2446 @echo 'ac_maketemp="$(MAKE)"'
2447 _ACEOF
2448 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2449 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2450 if test -n "$ac_maketemp"; then
2451 eval ac_cv_prog_make_${ac_make}_set=yes
2452 else
2453 eval ac_cv_prog_make_${ac_make}_set=no
2455 rm -f conftest.make
2457 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2458 echo "$as_me:$LINENO: result: yes" >&5
2459 echo "${ECHO_T}yes" >&6
2460 SET_MAKE=
2461 else
2462 echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2464 SET_MAKE="MAKE=${MAKE-make}"
2467 # Extract the first word of "cd", so it can be a program name with args.
2468 set dummy cd; ac_word=$2
2469 echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2471 if test "${ac_cv_prog_CD+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474 if test -n "$CD"; then
2475 ac_cv_prog_CD="$CD" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 ac_cv_prog_CD=""
2485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2488 done
2489 done
2493 CD=$ac_cv_prog_CD
2494 if test -n "$CD"; then
2495 echo "$as_me:$LINENO: result: $CD" >&5
2496 echo "${ECHO_T}$CD" >&6
2497 else
2498 echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6
2502 # Find a good install program. We prefer a C program (faster),
2503 # so one script is as good as another. But avoid the broken or
2504 # incompatible versions:
2505 # SysV /etc/install, /usr/sbin/install
2506 # SunOS /usr/etc/install
2507 # IRIX /sbin/install
2508 # AIX /bin/install
2509 # AmigaOS /C/install, which installs bootblocks on floppy discs
2510 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2511 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2512 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2513 # OS/2's system install, which has a completely different semantic
2514 # ./install, which can be erroneously created by make from ./install.sh.
2515 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2516 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2517 if test -z "$INSTALL"; then
2518 if test "${ac_cv_path_install+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 # Account for people who put trailing slashes in PATH elements.
2527 case $as_dir/ in
2528 ./ | .// | /cC/* | \
2529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2530 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2531 /usr/ucb/* ) ;;
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2535 # by default.
2536 for ac_prog in ginstall scoinst install; do
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2539 if test $ac_prog = install &&
2540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2543 elif test $ac_prog = install &&
2544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2547 else
2548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2549 break 3
2552 done
2553 done
2555 esac
2556 done
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL=$ac_cv_path_install
2562 else
2563 # As a last resort, use the slow shell script. We don't cache a
2564 # path for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the path is relative.
2567 INSTALL=$ac_install_sh
2570 echo "$as_me:$LINENO: result: $INSTALL" >&5
2571 echo "${ECHO_T}$INSTALL" >&6
2573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574 # It thinks the first close brace ends the variable substitution.
2575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2584 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2585 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2586 if test "${ac_cv_c_const+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h. */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2597 main ()
2599 /* FIXME: Include the comments suggested by Paul. */
2600 #ifndef __cplusplus
2601 /* Ultrix mips cc rejects this. */
2602 typedef int charset[2];
2603 const charset x;
2604 /* SunOS 4.1.1 cc rejects this. */
2605 char const *const *ccp;
2606 char **p;
2607 /* NEC SVR4.0.2 mips cc rejects this. */
2608 struct point {int x, y;};
2609 static struct point const zero = {0,0};
2610 /* AIX XL C 1.02.0.0 rejects this.
2611 It does not let you subtract one const X* pointer from another in
2612 an arm of an if-expression whose if-part is not a constant
2613 expression */
2614 const char *g = "string";
2615 ccp = &g + (g ? g-g : 0);
2616 /* HPUX 7.0 cc rejects these. */
2617 ++ccp;
2618 p = (char**) ccp;
2619 ccp = (char const *const *) p;
2620 { /* SCO 3.2v4 cc rejects this. */
2621 char *t;
2622 char const *s = 0 ? (char *) 0 : (char const *) 0;
2624 *t++ = 0;
2626 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2627 int x[] = {25, 17};
2628 const int *foo = &x[0];
2629 ++foo;
2631 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2632 typedef const int *iptr;
2633 iptr p = 0;
2634 ++p;
2636 { /* AIX XL C 1.02.0.0 rejects this saying
2637 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2638 struct s { int j; const int *ap[3]; };
2639 struct s *b; b->j = 5;
2641 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2642 const int foo = 10;
2644 #endif
2647 return 0;
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2653 ac_status=$?
2654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_cv_c_const=yes
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 ac_cv_c_const=no
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2682 echo "${ECHO_T}$ac_cv_c_const" >&6
2683 if test $ac_cv_c_const = no; then
2685 cat >>confdefs.h <<\_ACEOF
2686 #define const
2687 _ACEOF
2691 ac_ext=c
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2697 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2698 # On Suns, sometimes $CPP names a directory.
2699 if test -n "$CPP" && test -d "$CPP"; then
2700 CPP=
2702 if test -z "$CPP"; then
2703 if test "${ac_cv_prog_CPP+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 # Double quotes because CPP needs to be expanded
2707 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2709 ac_preproc_ok=false
2710 for ac_c_preproc_warn_flag in '' yes
2712 # Use a header file that comes with gcc, so configuring glibc
2713 # with a fresh cross-compiler works.
2714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2715 # <limits.h> exists even on freestanding compilers.
2716 # On the NeXT, cc -E runs the code through the compiler's parser,
2717 # not just through cpp. "Syntax error" is here to catch this case.
2718 cat >conftest.$ac_ext <<_ACEOF
2719 /* confdefs.h. */
2720 _ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h. */
2724 #ifdef __STDC__
2725 # include <limits.h>
2726 #else
2727 # include <assert.h>
2728 #endif
2729 Syntax error
2730 _ACEOF
2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2742 else
2743 ac_cpp_err=
2745 else
2746 ac_cpp_err=yes
2748 if test -z "$ac_cpp_err"; then
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 # Broken: fails on valid input.
2755 continue
2757 rm -f conftest.err conftest.$ac_ext
2759 # OK, works on sane cases. Now check whether non-existent headers
2760 # can be detected and how.
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2767 #include <ac_nonexistent.h>
2768 _ACEOF
2769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } >/dev/null; then
2777 if test -s conftest.err; then
2778 ac_cpp_err=$ac_c_preproc_warn_flag
2779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2780 else
2781 ac_cpp_err=
2783 else
2784 ac_cpp_err=yes
2786 if test -z "$ac_cpp_err"; then
2787 # Broken: success on invalid input.
2788 continue
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 # Passes both tests.
2794 ac_preproc_ok=:
2795 break
2797 rm -f conftest.err conftest.$ac_ext
2799 done
2800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2801 rm -f conftest.err conftest.$ac_ext
2802 if $ac_preproc_ok; then
2803 break
2806 done
2807 ac_cv_prog_CPP=$CPP
2810 CPP=$ac_cv_prog_CPP
2811 else
2812 ac_cv_prog_CPP=$CPP
2814 echo "$as_me:$LINENO: result: $CPP" >&5
2815 echo "${ECHO_T}$CPP" >&6
2816 ac_preproc_ok=false
2817 for ac_c_preproc_warn_flag in '' yes
2819 # Use a header file that comes with gcc, so configuring glibc
2820 # with a fresh cross-compiler works.
2821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2822 # <limits.h> exists even on freestanding compilers.
2823 # On the NeXT, cc -E runs the code through the compiler's parser,
2824 # not just through cpp. "Syntax error" is here to catch this case.
2825 cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h. */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2831 #ifdef __STDC__
2832 # include <limits.h>
2833 #else
2834 # include <assert.h>
2835 #endif
2836 Syntax error
2837 _ACEOF
2838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } >/dev/null; then
2846 if test -s conftest.err; then
2847 ac_cpp_err=$ac_c_preproc_warn_flag
2848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2849 else
2850 ac_cpp_err=
2852 else
2853 ac_cpp_err=yes
2855 if test -z "$ac_cpp_err"; then
2857 else
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2861 # Broken: fails on valid input.
2862 continue
2864 rm -f conftest.err conftest.$ac_ext
2866 # OK, works on sane cases. Now check whether non-existent headers
2867 # can be detected and how.
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 #include <ac_nonexistent.h>
2875 _ACEOF
2876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2878 ac_status=$?
2879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } >/dev/null; then
2884 if test -s conftest.err; then
2885 ac_cpp_err=$ac_c_preproc_warn_flag
2886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2887 else
2888 ac_cpp_err=
2890 else
2891 ac_cpp_err=yes
2893 if test -z "$ac_cpp_err"; then
2894 # Broken: success on invalid input.
2895 continue
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 # Passes both tests.
2901 ac_preproc_ok=:
2902 break
2904 rm -f conftest.err conftest.$ac_ext
2906 done
2907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2908 rm -f conftest.err conftest.$ac_ext
2909 if $ac_preproc_ok; then
2911 else
2912 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 echo "$as_me:$LINENO: checking for egrep" >&5
2927 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2928 if test "${ac_cv_prog_egrep+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2932 then ac_cv_prog_egrep='grep -E'
2933 else ac_cv_prog_egrep='egrep'
2936 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2937 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2938 EGREP=$ac_cv_prog_egrep
2941 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2942 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2943 if test "${ac_cv_header_stdc+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2952 #include <stdlib.h>
2953 #include <stdarg.h>
2954 #include <string.h>
2955 #include <float.h>
2958 main ()
2962 return 0;
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 ac_cv_header_stdc=yes
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 ac_cv_header_stdc=no
2994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996 if test $ac_cv_header_stdc = yes; then
2997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2998 cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h. */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 #include <string.h>
3006 _ACEOF
3007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3008 $EGREP "memchr" >/dev/null 2>&1; then
3010 else
3011 ac_cv_header_stdc=no
3013 rm -f conftest*
3017 if test $ac_cv_header_stdc = yes; then
3018 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3025 #include <stdlib.h>
3027 _ACEOF
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 $EGREP "free" >/dev/null 2>&1; then
3031 else
3032 ac_cv_header_stdc=no
3034 rm -f conftest*
3038 if test $ac_cv_header_stdc = yes; then
3039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3040 if test "$cross_compiling" = yes; then
3042 else
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #include <ctype.h>
3050 #if ((' ' & 0x0FF) == 0x020)
3051 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3052 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3053 #else
3054 # define ISLOWER(c) \
3055 (('a' <= (c) && (c) <= 'i') \
3056 || ('j' <= (c) && (c) <= 'r') \
3057 || ('s' <= (c) && (c) <= 'z'))
3058 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3059 #endif
3061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3063 main ()
3065 int i;
3066 for (i = 0; i < 256; i++)
3067 if (XOR (islower (i), ISLOWER (i))
3068 || toupper (i) != TOUPPER (i))
3069 exit(2);
3070 exit (0);
3072 _ACEOF
3073 rm -f conftest$ac_exeext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3075 (eval $ac_link) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3085 else
3086 echo "$as_me: program exited with status $ac_status" >&5
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 ( exit $ac_status )
3091 ac_cv_header_stdc=no
3093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3097 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3098 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3099 if test $ac_cv_header_stdc = yes; then
3101 cat >>confdefs.h <<\_ACEOF
3102 #define STDC_HEADERS 1
3103 _ACEOF
3107 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3117 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3118 inttypes.h stdint.h unistd.h
3120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3121 echo "$as_me:$LINENO: checking for $ac_header" >&5
3122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132 $ac_includes_default
3134 #include <$ac_header>
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag"
3146 || test ! -s conftest.err'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 eval "$as_ac_Header=yes"
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 eval "$as_ac_Header=no"
3165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3170 cat >>confdefs.h <<_ACEOF
3171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3172 _ACEOF
3176 done
3179 echo "$as_me:$LINENO: checking for size_t" >&5
3180 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3181 if test "${ac_cv_type_size_t+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 $ac_includes_default
3192 main ()
3194 if ((size_t *) 0)
3195 return 0;
3196 if (sizeof (size_t))
3197 return 0;
3199 return 0;
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204 (eval $ac_compile) 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag"
3212 || test ! -s conftest.err'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 (eval $ac_try) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3224 ac_cv_type_size_t=yes
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 ac_cv_type_size_t=no
3231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3233 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3234 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3235 if test $ac_cv_type_size_t = yes; then
3237 else
3239 cat >>confdefs.h <<_ACEOF
3240 #define size_t unsigned
3241 _ACEOF
3248 echo "$as_me:$LINENO: checking for main in -lc" >&5
3249 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
3250 if test "${ac_cv_lib_c_main+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 ac_check_lib_save_LIBS=$LIBS
3254 LIBS="-lc $LIBS"
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3264 main ()
3266 main ();
3268 return 0;
3270 _ACEOF
3271 rm -f conftest.$ac_objext conftest$ac_exeext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3273 (eval $ac_link) 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest$ac_exeext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_lib_c_main=yes
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_cv_lib_c_main=no
3300 rm -f conftest.err conftest.$ac_objext \
3301 conftest$ac_exeext conftest.$ac_ext
3302 LIBS=$ac_check_lib_save_LIBS
3304 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
3305 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
3306 if test $ac_cv_lib_c_main = yes; then
3307 cat >>confdefs.h <<_ACEOF
3308 #define HAVE_LIBC 1
3309 _ACEOF
3311 LIBS="-lc $LIBS"
3317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3319 if test "${ac_cv_header_stdc+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 #include <stdlib.h>
3329 #include <stdarg.h>
3330 #include <string.h>
3331 #include <float.h>
3334 main ()
3338 return 0;
3340 _ACEOF
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_header_stdc=yes
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 ac_cv_header_stdc=no
3370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3372 if test $ac_cv_header_stdc = yes; then
3373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <string.h>
3382 _ACEOF
3383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3384 $EGREP "memchr" >/dev/null 2>&1; then
3386 else
3387 ac_cv_header_stdc=no
3389 rm -f conftest*
3393 if test $ac_cv_header_stdc = yes; then
3394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <stdlib.h>
3403 _ACEOF
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 $EGREP "free" >/dev/null 2>&1; then
3407 else
3408 ac_cv_header_stdc=no
3410 rm -f conftest*
3414 if test $ac_cv_header_stdc = yes; then
3415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3416 if test "$cross_compiling" = yes; then
3418 else
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <ctype.h>
3426 #if ((' ' & 0x0FF) == 0x020)
3427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3429 #else
3430 # define ISLOWER(c) \
3431 (('a' <= (c) && (c) <= 'i') \
3432 || ('j' <= (c) && (c) <= 'r') \
3433 || ('s' <= (c) && (c) <= 'z'))
3434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3435 #endif
3437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3439 main ()
3441 int i;
3442 for (i = 0; i < 256; i++)
3443 if (XOR (islower (i), ISLOWER (i))
3444 || toupper (i) != TOUPPER (i))
3445 exit(2);
3446 exit (0);
3448 _ACEOF
3449 rm -f conftest$ac_exeext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3451 (eval $ac_link) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3461 else
3462 echo "$as_me: program exited with status $ac_status" >&5
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 ( exit $ac_status )
3467 ac_cv_header_stdc=no
3469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3474 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3475 if test $ac_cv_header_stdc = yes; then
3477 cat >>confdefs.h <<\_ACEOF
3478 #define STDC_HEADERS 1
3479 _ACEOF
3486 for ac_func in strtol
3488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3489 echo "$as_me:$LINENO: checking for $ac_func" >&5
3490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3491 if eval "test \"\${$as_ac_var+set}\" = set"; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3502 #define $ac_func innocuous_$ac_func
3504 /* System header to define __stub macros and hopefully few prototypes,
3505 which can conflict with char $ac_func (); below.
3506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507 <limits.h> exists even on freestanding compilers. */
3509 #ifdef __STDC__
3510 # include <limits.h>
3511 #else
3512 # include <assert.h>
3513 #endif
3515 #undef $ac_func
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 #ifdef __cplusplus
3519 extern "C"
3521 #endif
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3524 char $ac_func ();
3525 /* The GNU C library defines this for functions which it implements
3526 to always fail with ENOSYS. Some functions are actually named
3527 something starting with __ and the normal name is an alias. */
3528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3529 choke me
3530 #else
3531 char (*f) () = $ac_func;
3532 #endif
3533 #ifdef __cplusplus
3535 #endif
3538 main ()
3540 return f != $ac_func;
3542 return 0;
3544 _ACEOF
3545 rm -f conftest.$ac_objext conftest$ac_exeext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3547 (eval $ac_link) 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"
3555 || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try='test -s conftest$ac_exeext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 eval "$as_ac_var=yes"
3568 else
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 eval "$as_ac_var=no"
3574 rm -f conftest.err conftest.$ac_objext \
3575 conftest$ac_exeext conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3579 if test `eval echo '${'$as_ac_var'}'` = yes; then
3580 cat >>confdefs.h <<_ACEOF
3581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3582 _ACEOF
3585 done
3589 case "$target" in
3590 i*-pc-cygwin)
3591 SHEXT="dll"
3592 EXEC_SUFFIX=".exe"
3593 EXTRA_FLAGS="-DCYGWIN"
3594 EXTRA_LIBS="-lcygwin -lkernel32"
3595 CLOOGLIB="cloogstaticlib"
3596 INSTALL_CLOOGLIB="install_cloogstaticlib" ;;
3598 SHEXT="so"
3599 EXEC_SUFFIX=""
3600 EXTRA_FLAGS=""
3601 EXTRA_LIBS=""
3602 CLOOGLIB="cloogsharedlib cloogstaticlib"
3603 INSTALL_CLOOGLIB="install_cloogsharedlib install_cloogstaticlib" ;;
3604 esac
3607 SOLARIS_LD=no
3608 case $target_os in
3609 solaris*)
3610 case `which ld` in
3611 /usr/ccs/bin/ld|/usr/ucb/ld)
3612 SOLARIS_LD=yes
3615 ld -shared 2>&1 | grep 'fatal: option -h'
3616 if test "$?" = "0"; then
3617 SOLARIS_LD=yes
3620 esac
3624 esac
3625 SOLARIS_LDFLAGS=''
3626 if test "$SOLARIS_LD" = "yes"; then
3627 SOLARIS_LDFLAGS='-G -Bdynamic'
3632 CLOOG="cloog"
3633 INSTALL_CLOOG="install_cloog"
3635 gmp_package="yes"
3636 gmp_include_package="yes"
3637 gmp_library_package="yes"
3639 MP_BITS="MP"
3640 MP_DFLAGS=-DLINEAR_VALUE_IS_MP
3641 NEED_MP="no"
3642 GMP_INC="/usr/local/include"
3643 GMP_LIB="/usr/local/lib"
3647 # Check whether --with-cloog or --without-cloog was given.
3648 if test "${with_cloog+set}" = set; then
3649 withval="$with_cloog"
3650 echo "Package cloog : $withval" &&
3651 if test "$withval"="no" ; then
3652 CLOOG=""
3653 INSTALL_CLOOG=""
3658 # Check whether --with-lib or --without-lib was given.
3659 if test "${with_lib+set}" = set; then
3660 withval="$with_lib"
3661 echo "Package clooglib : $withval" &&
3662 if test "$withval"="no" ; then
3663 CLOOGLIB=""
3664 INSTALL_CLOOGLIB=""
3669 # Check whether --with-polylib or --without-polylib was given.
3670 if test "${with_polylib+set}" = set; then
3671 withval="$with_polylib"
3672 echo "Package polylib : $withval" && polylib_package=$withval
3673 else
3674 polylib_package=yes
3677 # Check whether --with-bits or --without-bits was given.
3678 if test "${with_bits+set}" = set; then
3679 withval="$with_bits"
3680 echo "polylib$withval"; VERSION=$withval
3684 # Check whether --with-gmp or --without-gmp was given.
3685 if test "${with_gmp+set}" = set; then
3686 withval="$with_gmp"
3687 echo "Package gmp : $withval" &&
3688 gmp_package=$withval &&
3689 GMP_INC=$gmp_package/include &&
3690 GMP_LIB=$gmp_package/lib &&
3691 NEED_MP="yes"
3695 # Check whether --with-gmp_include or --without-gmp_include was given.
3696 if test "${with_gmp_include+set}" = set; then
3697 withval="$with_gmp_include"
3698 echo "Package gmp-include : $withval" &&
3699 gmp_include_package=$withval &&
3700 GMP_INC=$gmp_include_package &&
3701 NEED_MP="yes"
3705 # Check whether --with-gmp_library or --without-gmp_library was given.
3706 if test "${with_gmp_library+set}" = set; then
3707 withval="$with_gmp_library"
3708 echo "Package gmp-library : $withval" &&
3709 gmp_library_package=$withval &&
3710 GMP_LIB=$gmp_library_package &&
3711 NEED_MP="yes"
3714 PACKAGES="$CLOOGLIB $CLOOG"
3715 INSTALL_PACKAGES="$INSTALL_CLOOGLIB $INSTALL_CLOOG"
3719 polylibs="64 32"
3720 case "$VERSION" in
3721 32|64|gmp)
3722 polylibs=$VERSION
3724 esac
3727 echo "$as_me:$LINENO: checking whether PolyLib works" >&5
3728 echo $ECHO_N "checking whether PolyLib works... $ECHO_C" >&6
3729 if test "$polylib_package" = "no"; then
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 { { echo "$as_me:$LINENO: error: Can't find PolyLib." >&5
3733 echo "$as_me: error: Can't find PolyLib." >&2;}
3734 { (exit 1); exit 1; }; }
3735 else
3736 echo "$as_me:$LINENO: result: " >&5
3737 echo "${ECHO_T}" >&6
3738 if test "$polylib_package" != "yes"; then
3739 POLYLIB_DIR=$polylib_package
3740 POLYLIB_LIB=$POLYLIB_DIR/lib
3741 CPPFLAGS="-I$POLYLIB_DIR/include $CPPFLAGS"
3742 LDFLAGS="-L$POLYLIB_DIR/lib $LDFLAGS"
3744 for VERSION in $polylibs; do
3745 cl_cv_polylib="polylib$VERSION"
3746 as_ac_Lib=`echo "ac_cv_lib_$cl_cv_polylib''_PolyhedronTSort" | $as_tr_sh`
3747 echo "$as_me:$LINENO: checking for PolyhedronTSort in -l$cl_cv_polylib" >&5
3748 echo $ECHO_N "checking for PolyhedronTSort in -l$cl_cv_polylib... $ECHO_C" >&6
3749 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 ac_check_lib_save_LIBS=$LIBS
3753 LIBS="-l$cl_cv_polylib $LIBS"
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3761 /* Override any gcc2 internal prototype to avoid an error. */
3762 #ifdef __cplusplus
3763 extern "C"
3764 #endif
3765 /* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3767 char PolyhedronTSort ();
3769 main ()
3771 PolyhedronTSort ();
3773 return 0;
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>conftest.er1
3779 ac_status=$?
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -z "$ac_c_werror_flag"
3786 || test ! -s conftest.err'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; } &&
3792 { ac_try='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 eval "$as_ac_Lib=yes"
3799 else
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 eval "$as_ac_Lib=no"
3805 rm -f conftest.err conftest.$ac_objext \
3806 conftest$ac_exeext conftest.$ac_ext
3807 LIBS=$ac_check_lib_save_LIBS
3809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
3810 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
3811 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
3812 break
3815 cl_cv_polylib=missing
3816 done
3817 if test "$cl_cv_polylib" = "missing"; then
3818 { { echo "$as_me:$LINENO: error: Can't find PolyLib." >&5
3819 echo "$as_me: error: Can't find PolyLib." >&2;}
3820 { (exit 1); exit 1; }; }
3821 else
3822 LIBS="-l$cl_cv_polylib $LIBS"
3824 as_ac_Header=`echo "ac_cv_header_polylib/$cl_cv_polylib.h" | $as_tr_sh`
3825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3826 echo "$as_me:$LINENO: checking for polylib/$cl_cv_polylib.h" >&5
3827 echo $ECHO_N "checking for polylib/$cl_cv_polylib.h... $ECHO_C" >&6
3828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3833 else
3834 # Is the header compilable?
3835 echo "$as_me:$LINENO: checking polylib/$cl_cv_polylib.h usability" >&5
3836 echo $ECHO_N "checking polylib/$cl_cv_polylib.h usability... $ECHO_C" >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 $ac_includes_default
3844 #include <polylib/$cl_cv_polylib.h>
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848 (eval $ac_compile) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 ac_header_compiler=yes
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 ac_header_compiler=no
3875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3877 echo "${ECHO_T}$ac_header_compiler" >&6
3879 # Is the header present?
3880 echo "$as_me:$LINENO: checking polylib/$cl_cv_polylib.h presence" >&5
3881 echo $ECHO_N "checking polylib/$cl_cv_polylib.h presence... $ECHO_C" >&6
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 #include <polylib/$cl_cv_polylib.h>
3889 _ACEOF
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev/null; then
3898 if test -s conftest.err; then
3899 ac_cpp_err=$ac_c_preproc_warn_flag
3900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3901 else
3902 ac_cpp_err=
3904 else
3905 ac_cpp_err=yes
3907 if test -z "$ac_cpp_err"; then
3908 ac_header_preproc=yes
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 ac_header_preproc=no
3915 rm -f conftest.err conftest.$ac_ext
3916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3917 echo "${ECHO_T}$ac_header_preproc" >&6
3919 # So? What about this header?
3920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3921 yes:no: )
3922 { echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3923 echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: proceeding with the compiler's result" >&5
3925 echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: proceeding with the compiler's result" >&2;}
3926 ac_header_preproc=yes
3928 no:yes:* )
3929 { echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: present but cannot be compiled" >&5
3930 echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: present but cannot be compiled" >&2;}
3931 { echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: check for missing prerequisite headers?" >&5
3932 echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: check for missing prerequisite headers?" >&2;}
3933 { echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: see the Autoconf documentation" >&5
3934 echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: see the Autoconf documentation" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: section \"Present But Cannot Be Compiled\"" >&5
3936 echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: proceeding with the preprocessor's result" >&5
3938 echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: proceeding with the preprocessor's result" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: in the future, the compiler will take precedence" >&5
3940 echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: in the future, the compiler will take precedence" >&2;}
3942 cat <<\_ASBOX
3943 ## ------------------------------------------ ##
3944 ## Report this to the AC_PACKAGE_NAME lists. ##
3945 ## ------------------------------------------ ##
3946 _ASBOX
3948 sed "s/^/$as_me: WARNING: /" >&2
3950 esac
3951 echo "$as_me:$LINENO: checking for polylib/$cl_cv_polylib.h" >&5
3952 echo $ECHO_N "checking for polylib/$cl_cv_polylib.h... $ECHO_C" >&6
3953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 eval "$as_ac_Header=\$ac_header_preproc"
3958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3964 else
3965 { { echo "$as_me:$LINENO: error: Can't find PolyLib headers." >&5
3966 echo "$as_me: error: Can't find PolyLib headers." >&2;}
3967 { (exit 1); exit 1; }; }
3976 echo "$as_me:$LINENO: checking whether gmp works" >&5
3977 echo $ECHO_N "checking whether gmp works... $ECHO_C" >&6
3978 if test "$gmp_package" = "no"; then
3979 echo "GMP package not defined"
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982 TO_BUILD_MP=""
3983 else
3984 if test "$NEED_MP" = "no"; then
3985 echo "Mode normal GMP"
3986 TO_BUILD="$TO_BUILD MP"
3987 if test "${ac_cv_header_gmp_h+set}" = set; then
3988 echo "$as_me:$LINENO: checking for gmp.h" >&5
3989 echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
3990 if test "${ac_cv_header_gmp_h+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
3994 echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
3995 else
3996 # Is the header compilable?
3997 echo "$as_me:$LINENO: checking gmp.h usability" >&5
3998 echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4006 #include <gmp.h>
4007 _ACEOF
4008 rm -f conftest.$ac_objext
4009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4010 (eval $ac_compile) 2>conftest.er1
4011 ac_status=$?
4012 grep -v '^ *+' conftest.er1 >conftest.err
4013 rm -f conftest.er1
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } &&
4017 { ac_try='test -z "$ac_c_werror_flag"
4018 || test ! -s conftest.err'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 (eval $ac_try) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; } &&
4024 { ac_try='test -s conftest.$ac_objext'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 (eval $ac_try) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 ac_header_compiler=yes
4031 else
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 ac_header_compiler=no
4037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4039 echo "${ECHO_T}$ac_header_compiler" >&6
4041 # Is the header present?
4042 echo "$as_me:$LINENO: checking gmp.h presence" >&5
4043 echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 #include <gmp.h>
4051 _ACEOF
4052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } >/dev/null; then
4060 if test -s conftest.err; then
4061 ac_cpp_err=$ac_c_preproc_warn_flag
4062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4063 else
4064 ac_cpp_err=
4066 else
4067 ac_cpp_err=yes
4069 if test -z "$ac_cpp_err"; then
4070 ac_header_preproc=yes
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 ac_header_preproc=no
4077 rm -f conftest.err conftest.$ac_ext
4078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4079 echo "${ECHO_T}$ac_header_preproc" >&6
4081 # So? What about this header?
4082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4083 yes:no: )
4084 { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
4085 echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4086 { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
4087 echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
4088 ac_header_preproc=yes
4090 no:yes:* )
4091 { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
4092 echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
4093 { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
4094 echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
4095 { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
4096 echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5
4098 echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
4100 echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
4102 echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
4104 cat <<\_ASBOX
4105 ## ------------------------------------------ ##
4106 ## Report this to the AC_PACKAGE_NAME lists. ##
4107 ## ------------------------------------------ ##
4108 _ASBOX
4110 sed "s/^/$as_me: WARNING: /" >&2
4112 esac
4113 echo "$as_me:$LINENO: checking for gmp.h" >&5
4114 echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
4115 if test "${ac_cv_header_gmp_h+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 ac_cv_header_gmp_h=$ac_header_preproc
4120 echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
4121 echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
4124 if test $ac_cv_header_gmp_h = yes; then
4125 echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
4126 echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
4127 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 ac_check_lib_save_LIBS=$LIBS
4131 LIBS="-lgmp $LIBS"
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4139 /* Override any gcc2 internal prototype to avoid an error. */
4140 #ifdef __cplusplus
4141 extern "C"
4142 #endif
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4145 char __gmpz_init ();
4147 main ()
4149 __gmpz_init ();
4151 return 0;
4153 _ACEOF
4154 rm -f conftest.$ac_objext conftest$ac_exeext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4156 (eval $ac_link) 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_c_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_lib_gmp___gmpz_init=yes
4177 else
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4181 ac_cv_lib_gmp___gmpz_init=no
4183 rm -f conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185 LIBS=$ac_check_lib_save_LIBS
4187 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
4188 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
4189 if test $ac_cv_lib_gmp___gmpz_init = yes; then
4190 EXTRA_LIBS="$EXTRA_LIBS -lgmp"
4191 else
4192 echo "Can't find gmp library." &&
4193 echo "MP version will not be builded." &&
4194 TO_BUILD_MP=""
4197 else
4198 echo "Can't find gmp headers." &&
4199 echo "MP version will not be builded." &&
4200 TO_BUILD_MP=""
4204 else
4206 if test "$gmp_package" != "yes" ; then
4207 echo "(GMP path has been set by user)"
4208 GMP_DIR=$gmp_package
4209 GMP_LIB=$GMP_DIR/lib
4210 GMP_INC=$GMP_DIR/include
4211 EXTRA_INC="-I$GMP_INC"
4212 EXTRA_LIBS="$EXTRA_LIBS -L$GMP_LIB"
4213 CPPFLAGS="-I$GMP_DIR/include $CPPFLAGS"
4214 LDFLAGS="-L$GMP_DIR/lib $LDFLAGS"
4217 if test "$gmp_include_package" != "yes" ; then
4218 CPPFLAGS="-I$GMP_DIR/include $CPPFLAGS"
4219 EXTRA_INC="-I$GMP_INC"
4222 if test "$gmp_library_package" != "yes" ; then
4223 EXTRA_LIBS="$EXTRA_LIBS -L$GMP_LIB"
4224 LDFLAGS="-L$GMP_DIR/lib $LDFLAGS"
4227 if test "${ac_cv_header_gmp_h+set}" = set; then
4228 echo "$as_me:$LINENO: checking for gmp.h" >&5
4229 echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
4230 if test "${ac_cv_header_gmp_h+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
4234 echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
4235 else
4236 # Is the header compilable?
4237 echo "$as_me:$LINENO: checking gmp.h usability" >&5
4238 echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 $ac_includes_default
4246 #include <gmp.h>
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 ac_header_compiler=yes
4271 else
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 ac_header_compiler=no
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4279 echo "${ECHO_T}$ac_header_compiler" >&6
4281 # Is the header present?
4282 echo "$as_me:$LINENO: checking gmp.h presence" >&5
4283 echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 #include <gmp.h>
4291 _ACEOF
4292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } >/dev/null; then
4300 if test -s conftest.err; then
4301 ac_cpp_err=$ac_c_preproc_warn_flag
4302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4303 else
4304 ac_cpp_err=
4306 else
4307 ac_cpp_err=yes
4309 if test -z "$ac_cpp_err"; then
4310 ac_header_preproc=yes
4311 else
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_header_preproc=no
4317 rm -f conftest.err conftest.$ac_ext
4318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4319 echo "${ECHO_T}$ac_header_preproc" >&6
4321 # So? What about this header?
4322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4323 yes:no: )
4324 { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
4325 echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4326 { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
4327 echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
4328 ac_header_preproc=yes
4330 no:yes:* )
4331 { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
4332 echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
4333 { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
4334 echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
4335 { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
4336 echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
4337 { echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5
4338 echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
4339 { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
4340 echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
4341 { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
4342 echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
4344 cat <<\_ASBOX
4345 ## ------------------------------------------ ##
4346 ## Report this to the AC_PACKAGE_NAME lists. ##
4347 ## ------------------------------------------ ##
4348 _ASBOX
4350 sed "s/^/$as_me: WARNING: /" >&2
4352 esac
4353 echo "$as_me:$LINENO: checking for gmp.h" >&5
4354 echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
4355 if test "${ac_cv_header_gmp_h+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 ac_cv_header_gmp_h=$ac_header_preproc
4360 echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
4361 echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
4364 if test $ac_cv_header_gmp_h = yes; then
4366 else
4367 { { echo "$as_me:$LINENO: error: Can't find gmp headers." >&5
4368 echo "$as_me: error: Can't find gmp headers." >&2;}
4369 { (exit 1); exit 1; }; }
4373 echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
4374 echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
4375 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 ac_check_lib_save_LIBS=$LIBS
4379 LIBS="-lgmp $LIBS"
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 #ifdef __cplusplus
4389 extern "C"
4390 #endif
4391 /* We use char because int might match the return type of a gcc2
4392 builtin and then its argument prototype would still apply. */
4393 char __gmpz_init ();
4395 main ()
4397 __gmpz_init ();
4399 return 0;
4401 _ACEOF
4402 rm -f conftest.$ac_objext conftest$ac_exeext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4404 (eval $ac_link) 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag"
4412 || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest$ac_exeext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_lib_gmp___gmpz_init=yes
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_lib_gmp___gmpz_init=no
4431 rm -f conftest.err conftest.$ac_objext \
4432 conftest$ac_exeext conftest.$ac_ext
4433 LIBS=$ac_check_lib_save_LIBS
4435 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
4436 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
4437 if test $ac_cv_lib_gmp___gmpz_init = yes; then
4438 EXTRA_LIBS="$EXTRA_LIBS -lgmp"
4439 else
4440 { { echo "$as_me:$LINENO: error: Can't find gmp library." >&5
4441 echo "$as_me: error: Can't find gmp library." >&2;}
4442 { (exit 1); exit 1; }; }
4446 echo "$as_me:$LINENO: result: yes" >&5
4447 echo "${ECHO_T}yes" >&6
4473 ac_config_files="$ac_config_files makefile:autoconf/makefile.in include/cloog/cloog.h autoconf/Doxyfile"
4474 cat >confcache <<\_ACEOF
4475 # This file is a shell script that caches the results of configure
4476 # tests run on this system so they can be shared between configure
4477 # scripts and configure runs, see configure's option --config-cache.
4478 # It is not useful on other systems. If it contains results you don't
4479 # want to keep, you may remove or edit it.
4481 # config.status only pays attention to the cache file if you give it
4482 # the --recheck option to rerun configure.
4484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4486 # following values.
4488 _ACEOF
4490 # The following way of writing the cache mishandles newlines in values,
4491 # but we know of no workaround that is simple, portable, and efficient.
4492 # So, don't put newlines in cache variables' values.
4493 # Ultrix sh set writes to stderr and can't be redirected directly,
4494 # and sets the high bit in the cache file unless we assign to the vars.
4496 (set) 2>&1 |
4497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4498 *ac_space=\ *)
4499 # `set' does not quote correctly, so add quotes (double-quote
4500 # substitution turns \\\\ into \\, and sed turns \\ into \).
4501 sed -n \
4502 "s/'/'\\\\''/g;
4503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4506 # `set' quotes correctly as required by POSIX, so do not add quotes.
4507 sed -n \
4508 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4510 esac;
4512 sed '
4513 t clear
4514 : clear
4515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4516 t end
4517 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4518 : end' >>confcache
4519 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4520 if test -w $cache_file; then
4521 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4522 cat confcache >$cache_file
4523 else
4524 echo "not updating unwritable cache $cache_file"
4527 rm -f confcache
4529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4530 # Let make expand exec_prefix.
4531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4535 # trailing colons and then remove the whole line if VPATH becomes empty
4536 # (actually we leave an empty line to preserve line numbers).
4537 if test "x$srcdir" = x.; then
4538 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4539 s/:*\$(srcdir):*/:/;
4540 s/:*\${srcdir}:*/:/;
4541 s/:*@srcdir@:*/:/;
4542 s/^\([^=]*=[ ]*\):*/\1/;
4543 s/:*$//;
4544 s/^[^=]*=[ ]*$//;
4548 # Transform confdefs.h into DEFS.
4549 # Protect against shell expansion while executing Makefile rules.
4550 # Protect against Makefile macro expansion.
4552 # If the first sed substitution is executed (which looks for macros that
4553 # take arguments), then we branch to the quote section. Otherwise,
4554 # look for a macro that doesn't take arguments.
4555 cat >confdef2opt.sed <<\_ACEOF
4556 t clear
4557 : clear
4558 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4559 t quote
4560 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4561 t quote
4563 : quote
4564 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4565 s,\[,\\&,g
4566 s,\],\\&,g
4567 s,\$,$$,g
4569 _ACEOF
4570 # We use echo to avoid assuming a particular line-breaking character.
4571 # The extra dot is to prevent the shell from consuming trailing
4572 # line-breaks from the sub-command output. A line-break within
4573 # single-quotes doesn't work because, if this script is created in a
4574 # platform that uses two characters for line-breaks (e.g., DOS), tr
4575 # would break.
4576 ac_LF_and_DOT=`echo; echo .`
4577 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4578 rm -f confdef2opt.sed
4581 ac_libobjs=
4582 ac_ltlibobjs=
4583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4584 # 1. Remove the extension, and $U if already installed.
4585 ac_i=`echo "$ac_i" |
4586 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4587 # 2. Add them.
4588 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4589 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4590 done
4591 LIBOBJS=$ac_libobjs
4593 LTLIBOBJS=$ac_ltlibobjs
4597 : ${CONFIG_STATUS=./config.status}
4598 ac_clean_files_save=$ac_clean_files
4599 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4600 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4601 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4602 cat >$CONFIG_STATUS <<_ACEOF
4603 #! $SHELL
4604 # Generated by $as_me.
4605 # Run this file to recreate the current configuration.
4606 # Compiler output produced by configure, useful for debugging
4607 # configure, is in config.log if it exists.
4609 debug=false
4610 ac_cs_recheck=false
4611 ac_cs_silent=false
4612 SHELL=\${CONFIG_SHELL-$SHELL}
4613 _ACEOF
4615 cat >>$CONFIG_STATUS <<\_ACEOF
4616 ## --------------------- ##
4617 ## M4sh Initialization. ##
4618 ## --------------------- ##
4620 # Be Bourne compatible
4621 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4622 emulate sh
4623 NULLCMD=:
4624 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4625 # is contrary to our usage. Disable this feature.
4626 alias -g '${1+"$@"}'='"$@"'
4627 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4628 set -o posix
4630 DUALCASE=1; export DUALCASE # for MKS sh
4632 # Support unset when possible.
4633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4634 as_unset=unset
4635 else
4636 as_unset=false
4640 # Work around bugs in pre-3.0 UWIN ksh.
4641 $as_unset ENV MAIL MAILPATH
4642 PS1='$ '
4643 PS2='> '
4644 PS4='+ '
4646 # NLS nuisances.
4647 for as_var in \
4648 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4649 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4650 LC_TELEPHONE LC_TIME
4652 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4653 eval $as_var=C; export $as_var
4654 else
4655 $as_unset $as_var
4657 done
4659 # Required to use basename.
4660 if expr a : '\(a\)' >/dev/null 2>&1; then
4661 as_expr=expr
4662 else
4663 as_expr=false
4666 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4667 as_basename=basename
4668 else
4669 as_basename=false
4673 # Name of the executable.
4674 as_me=`$as_basename "$0" ||
4675 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4676 X"$0" : 'X\(//\)$' \| \
4677 X"$0" : 'X\(/\)$' \| \
4678 . : '\(.\)' 2>/dev/null ||
4679 echo X/"$0" |
4680 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4681 /^X\/\(\/\/\)$/{ s//\1/; q; }
4682 /^X\/\(\/\).*/{ s//\1/; q; }
4683 s/.*/./; q'`
4686 # PATH needs CR, and LINENO needs CR and PATH.
4687 # Avoid depending upon Character Ranges.
4688 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4689 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4690 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4691 as_cr_digits='0123456789'
4692 as_cr_alnum=$as_cr_Letters$as_cr_digits
4694 # The user is always right.
4695 if test "${PATH_SEPARATOR+set}" != set; then
4696 echo "#! /bin/sh" >conf$$.sh
4697 echo "exit 0" >>conf$$.sh
4698 chmod +x conf$$.sh
4699 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4700 PATH_SEPARATOR=';'
4701 else
4702 PATH_SEPARATOR=:
4704 rm -f conf$$.sh
4708 as_lineno_1=$LINENO
4709 as_lineno_2=$LINENO
4710 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4711 test "x$as_lineno_1" != "x$as_lineno_2" &&
4712 test "x$as_lineno_3" = "x$as_lineno_2" || {
4713 # Find who we are. Look in the path if we contain no path at all
4714 # relative or not.
4715 case $0 in
4716 *[\\/]* ) as_myself=$0 ;;
4717 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4723 done
4726 esac
4727 # We did not find ourselves, most probably we were run as `sh COMMAND'
4728 # in which case we are not to be found in the path.
4729 if test "x$as_myself" = x; then
4730 as_myself=$0
4732 if test ! -f "$as_myself"; then
4733 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4734 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4735 { (exit 1); exit 1; }; }
4737 case $CONFIG_SHELL in
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for as_base in sh bash ksh sh5; do
4745 case $as_dir in
4747 if ("$as_dir/$as_base" -c '
4748 as_lineno_1=$LINENO
4749 as_lineno_2=$LINENO
4750 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4751 test "x$as_lineno_1" != "x$as_lineno_2" &&
4752 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4753 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4754 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4755 CONFIG_SHELL=$as_dir/$as_base
4756 export CONFIG_SHELL
4757 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4758 fi;;
4759 esac
4760 done
4761 done
4763 esac
4765 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4766 # uniformly replaced by the line number. The first 'sed' inserts a
4767 # line-number line before each line; the second 'sed' does the real
4768 # work. The second script uses 'N' to pair each line-number line
4769 # with the numbered line, and appends trailing '-' during
4770 # substitution so that $LINENO is not a special case at line end.
4771 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4772 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4773 sed '=' <$as_myself |
4774 sed '
4776 s,$,-,
4777 : loop
4778 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4779 t loop
4780 s,-$,,
4781 s,^['$as_cr_digits']*\n,,
4782 ' >$as_me.lineno &&
4783 chmod +x $as_me.lineno ||
4784 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4785 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4786 { (exit 1); exit 1; }; }
4788 # Don't try to exec as it changes $[0], causing all sort of problems
4789 # (the dirname of $[0] is not the place where we might find the
4790 # original and so on. Autoconf is especially sensible to this).
4791 . ./$as_me.lineno
4792 # Exit status is that of the last command.
4793 exit
4797 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4798 *c*,-n*) ECHO_N= ECHO_C='
4799 ' ECHO_T=' ' ;;
4800 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4801 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4802 esac
4804 if expr a : '\(a\)' >/dev/null 2>&1; then
4805 as_expr=expr
4806 else
4807 as_expr=false
4810 rm -f conf$$ conf$$.exe conf$$.file
4811 echo >conf$$.file
4812 if ln -s conf$$.file conf$$ 2>/dev/null; then
4813 # We could just check for DJGPP; but this test a) works b) is more generic
4814 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4815 if test -f conf$$.exe; then
4816 # Don't use ln at all; we don't have any links
4817 as_ln_s='cp -p'
4818 else
4819 as_ln_s='ln -s'
4821 elif ln conf$$.file conf$$ 2>/dev/null; then
4822 as_ln_s=ln
4823 else
4824 as_ln_s='cp -p'
4826 rm -f conf$$ conf$$.exe conf$$.file
4828 if mkdir -p . 2>/dev/null; then
4829 as_mkdir_p=:
4830 else
4831 test -d ./-p && rmdir ./-p
4832 as_mkdir_p=false
4835 as_executable_p="test -f"
4837 # Sed expression to map a string onto a valid CPP name.
4838 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4840 # Sed expression to map a string onto a valid variable name.
4841 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4844 # IFS
4845 # We need space, tab and new line, in precisely that order.
4846 as_nl='
4848 IFS=" $as_nl"
4850 # CDPATH.
4851 $as_unset CDPATH
4853 exec 6>&1
4855 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4856 # report actual input values of CONFIG_FILES etc. instead of their
4857 # values after options handling. Logging --version etc. is OK.
4858 exec 5>>config.log
4860 echo
4861 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4862 ## Running $as_me. ##
4863 _ASBOX
4864 } >&5
4865 cat >&5 <<_CSEOF
4867 This file was extended by $as_me, which was
4868 generated by GNU Autoconf 2.59. Invocation command line was
4870 CONFIG_FILES = $CONFIG_FILES
4871 CONFIG_HEADERS = $CONFIG_HEADERS
4872 CONFIG_LINKS = $CONFIG_LINKS
4873 CONFIG_COMMANDS = $CONFIG_COMMANDS
4874 $ $0 $@
4876 _CSEOF
4877 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4878 echo >&5
4879 _ACEOF
4881 # Files that config.status was made for.
4882 if test -n "$ac_config_files"; then
4883 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4886 if test -n "$ac_config_headers"; then
4887 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4890 if test -n "$ac_config_links"; then
4891 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4894 if test -n "$ac_config_commands"; then
4895 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4898 cat >>$CONFIG_STATUS <<\_ACEOF
4900 ac_cs_usage="\
4901 \`$as_me' instantiates files from templates according to the
4902 current configuration.
4904 Usage: $0 [OPTIONS] [FILE]...
4906 -h, --help print this help, then exit
4907 -V, --version print version number, then exit
4908 -q, --quiet do not print progress messages
4909 -d, --debug don't remove temporary files
4910 --recheck update $as_me by reconfiguring in the same conditions
4911 --file=FILE[:TEMPLATE]
4912 instantiate the configuration file FILE
4914 Configuration files:
4915 $config_files
4917 Report bugs to <bug-autoconf@gnu.org>."
4918 _ACEOF
4920 cat >>$CONFIG_STATUS <<_ACEOF
4921 ac_cs_version="\\
4922 config.status
4923 configured by $0, generated by GNU Autoconf 2.59,
4924 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4926 Copyright (C) 2003 Free Software Foundation, Inc.
4927 This config.status script is free software; the Free Software Foundation
4928 gives unlimited permission to copy, distribute and modify it."
4929 srcdir=$srcdir
4930 INSTALL="$INSTALL"
4931 _ACEOF
4933 cat >>$CONFIG_STATUS <<\_ACEOF
4934 # If no file are specified by the user, then we need to provide default
4935 # value. By we need to know if files were specified by the user.
4936 ac_need_defaults=:
4937 while test $# != 0
4939 case $1 in
4940 --*=*)
4941 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4942 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4943 ac_shift=:
4946 ac_option=$1
4947 ac_optarg=$2
4948 ac_shift=shift
4950 *) # This is not an option, so the user has probably given explicit
4951 # arguments.
4952 ac_option=$1
4953 ac_need_defaults=false;;
4954 esac
4956 case $ac_option in
4957 # Handling of the options.
4958 _ACEOF
4959 cat >>$CONFIG_STATUS <<\_ACEOF
4960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4961 ac_cs_recheck=: ;;
4962 --version | --vers* | -V )
4963 echo "$ac_cs_version"; exit 0 ;;
4964 --he | --h)
4965 # Conflict between --help and --header
4966 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4967 Try \`$0 --help' for more information." >&5
4968 echo "$as_me: error: ambiguous option: $1
4969 Try \`$0 --help' for more information." >&2;}
4970 { (exit 1); exit 1; }; };;
4971 --help | --hel | -h )
4972 echo "$ac_cs_usage"; exit 0 ;;
4973 --debug | --d* | -d )
4974 debug=: ;;
4975 --file | --fil | --fi | --f )
4976 $ac_shift
4977 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4978 ac_need_defaults=false;;
4979 --header | --heade | --head | --hea )
4980 $ac_shift
4981 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4982 ac_need_defaults=false;;
4983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4985 ac_cs_silent=: ;;
4987 # This is an error.
4988 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4989 Try \`$0 --help' for more information." >&5
4990 echo "$as_me: error: unrecognized option: $1
4991 Try \`$0 --help' for more information." >&2;}
4992 { (exit 1); exit 1; }; } ;;
4994 *) ac_config_targets="$ac_config_targets $1" ;;
4996 esac
4997 shift
4998 done
5000 ac_configure_extra_args=
5002 if $ac_cs_silent; then
5003 exec 6>/dev/null
5004 ac_configure_extra_args="$ac_configure_extra_args --silent"
5007 _ACEOF
5008 cat >>$CONFIG_STATUS <<_ACEOF
5009 if \$ac_cs_recheck; then
5010 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5011 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5014 _ACEOF
5020 cat >>$CONFIG_STATUS <<\_ACEOF
5021 for ac_config_target in $ac_config_targets
5023 case "$ac_config_target" in
5024 # Handling of arguments.
5025 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile:autoconf/makefile.in" ;;
5026 "include/cloog/cloog.h" ) CONFIG_FILES="$CONFIG_FILES include/cloog/cloog.h" ;;
5027 "autoconf/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES autoconf/Doxyfile" ;;
5028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5029 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5030 { (exit 1); exit 1; }; };;
5031 esac
5032 done
5034 # If the user did not use the arguments to specify the items to instantiate,
5035 # then the envvar interface is used. Set only those that are not.
5036 # We use the long form for the default assignment because of an extremely
5037 # bizarre bug on SunOS 4.1.3.
5038 if $ac_need_defaults; then
5039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5042 # Have a temporary directory for convenience. Make it in the build tree
5043 # simply because there is no reason to put it here, and in addition,
5044 # creating and moving files from /tmp can sometimes cause problems.
5045 # Create a temporary directory, and hook for its removal unless debugging.
5046 $debug ||
5048 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5049 trap '{ (exit 1); exit 1; }' 1 2 13 15
5052 # Create a (secure) tmp directory for tmp files.
5055 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5056 test -n "$tmp" && test -d "$tmp"
5057 } ||
5059 tmp=./confstat$$-$RANDOM
5060 (umask 077 && mkdir $tmp)
5061 } ||
5063 echo "$me: cannot create a temporary directory in ." >&2
5064 { (exit 1); exit 1; }
5067 _ACEOF
5069 cat >>$CONFIG_STATUS <<_ACEOF
5072 # CONFIG_FILES section.
5075 # No need to generate the scripts if there are no CONFIG_FILES.
5076 # This happens for instance when ./config.status config.h
5077 if test -n "\$CONFIG_FILES"; then
5078 # Protect against being on the right side of a sed subst in config.status.
5079 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5080 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5081 s,@SHELL@,$SHELL,;t t
5082 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5083 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5084 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5085 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5086 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5087 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5088 s,@exec_prefix@,$exec_prefix,;t t
5089 s,@prefix@,$prefix,;t t
5090 s,@program_transform_name@,$program_transform_name,;t t
5091 s,@bindir@,$bindir,;t t
5092 s,@sbindir@,$sbindir,;t t
5093 s,@libexecdir@,$libexecdir,;t t
5094 s,@datadir@,$datadir,;t t
5095 s,@sysconfdir@,$sysconfdir,;t t
5096 s,@sharedstatedir@,$sharedstatedir,;t t
5097 s,@localstatedir@,$localstatedir,;t t
5098 s,@libdir@,$libdir,;t t
5099 s,@includedir@,$includedir,;t t
5100 s,@oldincludedir@,$oldincludedir,;t t
5101 s,@infodir@,$infodir,;t t
5102 s,@mandir@,$mandir,;t t
5103 s,@build_alias@,$build_alias,;t t
5104 s,@host_alias@,$host_alias,;t t
5105 s,@target_alias@,$target_alias,;t t
5106 s,@DEFS@,$DEFS,;t t
5107 s,@ECHO_C@,$ECHO_C,;t t
5108 s,@ECHO_N@,$ECHO_N,;t t
5109 s,@ECHO_T@,$ECHO_T,;t t
5110 s,@LIBS@,$LIBS,;t t
5111 s,@build@,$build,;t t
5112 s,@build_cpu@,$build_cpu,;t t
5113 s,@build_vendor@,$build_vendor,;t t
5114 s,@build_os@,$build_os,;t t
5115 s,@host@,$host,;t t
5116 s,@host_cpu@,$host_cpu,;t t
5117 s,@host_vendor@,$host_vendor,;t t
5118 s,@host_os@,$host_os,;t t
5119 s,@target@,$target,;t t
5120 s,@target_cpu@,$target_cpu,;t t
5121 s,@target_vendor@,$target_vendor,;t t
5122 s,@target_os@,$target_os,;t t
5123 s,@CC@,$CC,;t t
5124 s,@CFLAGS@,$CFLAGS,;t t
5125 s,@LDFLAGS@,$LDFLAGS,;t t
5126 s,@CPPFLAGS@,$CPPFLAGS,;t t
5127 s,@ac_ct_CC@,$ac_ct_CC,;t t
5128 s,@EXEEXT@,$EXEEXT,;t t
5129 s,@OBJEXT@,$OBJEXT,;t t
5130 s,@LN_S@,$LN_S,;t t
5131 s,@RANLIB@,$RANLIB,;t t
5132 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5133 s,@SET_MAKE@,$SET_MAKE,;t t
5134 s,@CD@,$CD,;t t
5135 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5136 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5137 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5138 s,@CPP@,$CPP,;t t
5139 s,@EGREP@,$EGREP,;t t
5140 s,@cl_cv_polylib@,$cl_cv_polylib,;t t
5141 s,@RELEASE@,$RELEASE,;t t
5142 s,@SHEXT@,$SHEXT,;t t
5143 s,@EXEC_SUFFIX@,$EXEC_SUFFIX,;t t
5144 s,@EXTRA_FLAGS@,$EXTRA_FLAGS,;t t
5145 s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
5146 s,@POLYLIB_LIB@,$POLYLIB_LIB,;t t
5147 s,@INSTALL@,$INSTALL,;t t
5148 s,@PACKAGES@,$PACKAGES,;t t
5149 s,@INSTALL_PACKAGES@,$INSTALL_PACKAGES,;t t
5150 s,@VERSION@,$VERSION,;t t
5151 s,@LIBOBJS@,$LIBOBJS,;t t
5152 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5153 CEOF
5155 _ACEOF
5157 cat >>$CONFIG_STATUS <<\_ACEOF
5158 # Split the substitutions into bite-sized pieces for seds with
5159 # small command number limits, like on Digital OSF/1 and HP-UX.
5160 ac_max_sed_lines=48
5161 ac_sed_frag=1 # Number of current file.
5162 ac_beg=1 # First line for current file.
5163 ac_end=$ac_max_sed_lines # Line after last line for current file.
5164 ac_more_lines=:
5165 ac_sed_cmds=
5166 while $ac_more_lines; do
5167 if test $ac_beg -gt 1; then
5168 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5169 else
5170 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5172 if test ! -s $tmp/subs.frag; then
5173 ac_more_lines=false
5174 else
5175 # The purpose of the label and of the branching condition is to
5176 # speed up the sed processing (if there are no `@' at all, there
5177 # is no need to browse any of the substitutions).
5178 # These are the two extra sed commands mentioned above.
5179 (echo ':t
5180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5181 if test -z "$ac_sed_cmds"; then
5182 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5183 else
5184 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5186 ac_sed_frag=`expr $ac_sed_frag + 1`
5187 ac_beg=$ac_end
5188 ac_end=`expr $ac_end + $ac_max_sed_lines`
5190 done
5191 if test -z "$ac_sed_cmds"; then
5192 ac_sed_cmds=cat
5194 fi # test -n "$CONFIG_FILES"
5196 _ACEOF
5197 cat >>$CONFIG_STATUS <<\_ACEOF
5198 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5199 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5200 case $ac_file in
5201 - | *:- | *:-:* ) # input from stdin
5202 cat >$tmp/stdin
5203 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5204 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5205 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5206 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5207 * ) ac_file_in=$ac_file.in ;;
5208 esac
5210 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5211 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5213 X"$ac_file" : 'X\(//\)[^/]' \| \
5214 X"$ac_file" : 'X\(//\)$' \| \
5215 X"$ac_file" : 'X\(/\)' \| \
5216 . : '\(.\)' 2>/dev/null ||
5217 echo X"$ac_file" |
5218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5220 /^X\(\/\/\)$/{ s//\1/; q; }
5221 /^X\(\/\).*/{ s//\1/; q; }
5222 s/.*/./; q'`
5223 { if $as_mkdir_p; then
5224 mkdir -p "$ac_dir"
5225 else
5226 as_dir="$ac_dir"
5227 as_dirs=
5228 while test ! -d "$as_dir"; do
5229 as_dirs="$as_dir $as_dirs"
5230 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5232 X"$as_dir" : 'X\(//\)[^/]' \| \
5233 X"$as_dir" : 'X\(//\)$' \| \
5234 X"$as_dir" : 'X\(/\)' \| \
5235 . : '\(.\)' 2>/dev/null ||
5236 echo X"$as_dir" |
5237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5239 /^X\(\/\/\)$/{ s//\1/; q; }
5240 /^X\(\/\).*/{ s//\1/; q; }
5241 s/.*/./; q'`
5242 done
5243 test ! -n "$as_dirs" || mkdir $as_dirs
5244 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5245 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5246 { (exit 1); exit 1; }; }; }
5248 ac_builddir=.
5250 if test "$ac_dir" != .; then
5251 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5252 # A "../" for each directory in $ac_dir_suffix.
5253 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5254 else
5255 ac_dir_suffix= ac_top_builddir=
5258 case $srcdir in
5259 .) # No --srcdir option. We are building in place.
5260 ac_srcdir=.
5261 if test -z "$ac_top_builddir"; then
5262 ac_top_srcdir=.
5263 else
5264 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5265 fi ;;
5266 [\\/]* | ?:[\\/]* ) # Absolute path.
5267 ac_srcdir=$srcdir$ac_dir_suffix;
5268 ac_top_srcdir=$srcdir ;;
5269 *) # Relative path.
5270 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5271 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5272 esac
5274 # Do not use `cd foo && pwd` to compute absolute paths, because
5275 # the directories may not exist.
5276 case `pwd` in
5277 .) ac_abs_builddir="$ac_dir";;
5279 case "$ac_dir" in
5280 .) ac_abs_builddir=`pwd`;;
5281 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5282 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5283 esac;;
5284 esac
5285 case $ac_abs_builddir in
5286 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5288 case ${ac_top_builddir}. in
5289 .) ac_abs_top_builddir=$ac_abs_builddir;;
5290 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5291 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5292 esac;;
5293 esac
5294 case $ac_abs_builddir in
5295 .) ac_abs_srcdir=$ac_srcdir;;
5297 case $ac_srcdir in
5298 .) ac_abs_srcdir=$ac_abs_builddir;;
5299 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5300 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5301 esac;;
5302 esac
5303 case $ac_abs_builddir in
5304 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5306 case $ac_top_srcdir in
5307 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5308 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5309 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5310 esac;;
5311 esac
5314 case $INSTALL in
5315 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5316 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5317 esac
5319 if test x"$ac_file" != x-; then
5320 { echo "$as_me:$LINENO: creating $ac_file" >&5
5321 echo "$as_me: creating $ac_file" >&6;}
5322 rm -f "$ac_file"
5324 # Let's still pretend it is `configure' which instantiates (i.e., don't
5325 # use $as_me), people would be surprised to read:
5326 # /* config.h. Generated by config.status. */
5327 if test x"$ac_file" = x-; then
5328 configure_input=
5329 else
5330 configure_input="$ac_file. "
5332 configure_input=$configure_input"Generated from `echo $ac_file_in |
5333 sed 's,.*/,,'` by configure."
5335 # First look for the input files in the build tree, otherwise in the
5336 # src tree.
5337 ac_file_inputs=`IFS=:
5338 for f in $ac_file_in; do
5339 case $f in
5340 -) echo $tmp/stdin ;;
5341 [\\/$]*)
5342 # Absolute (can't be DOS-style, as IFS=:)
5343 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5344 echo "$as_me: error: cannot find input file: $f" >&2;}
5345 { (exit 1); exit 1; }; }
5346 echo "$f";;
5347 *) # Relative
5348 if test -f "$f"; then
5349 # Build tree
5350 echo "$f"
5351 elif test -f "$srcdir/$f"; then
5352 # Source tree
5353 echo "$srcdir/$f"
5354 else
5355 # /dev/null tree
5356 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5357 echo "$as_me: error: cannot find input file: $f" >&2;}
5358 { (exit 1); exit 1; }; }
5359 fi;;
5360 esac
5361 done` || { (exit 1); exit 1; }
5362 _ACEOF
5363 cat >>$CONFIG_STATUS <<_ACEOF
5364 sed "$ac_vpsub
5365 $extrasub
5366 _ACEOF
5367 cat >>$CONFIG_STATUS <<\_ACEOF
5369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5370 s,@configure_input@,$configure_input,;t t
5371 s,@srcdir@,$ac_srcdir,;t t
5372 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5373 s,@top_srcdir@,$ac_top_srcdir,;t t
5374 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5375 s,@builddir@,$ac_builddir,;t t
5376 s,@abs_builddir@,$ac_abs_builddir,;t t
5377 s,@top_builddir@,$ac_top_builddir,;t t
5378 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5379 s,@INSTALL@,$ac_INSTALL,;t t
5380 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5381 rm -f $tmp/stdin
5382 if test x"$ac_file" != x-; then
5383 mv $tmp/out $ac_file
5384 else
5385 cat $tmp/out
5386 rm -f $tmp/out
5389 done
5390 _ACEOF
5392 cat >>$CONFIG_STATUS <<\_ACEOF
5394 { (exit 0); exit 0; }
5395 _ACEOF
5396 chmod +x $CONFIG_STATUS
5397 ac_clean_files=$ac_clean_files_save
5400 # configure is writing to config.log, and then calls config.status.
5401 # config.status does its own redirection, appending to config.log.
5402 # Unfortunately, on DOS this fails, as config.log is still kept open
5403 # by configure, so config.status won't be able to write to it; its
5404 # output is simply discarded. So we exec the FD to /dev/null,
5405 # effectively closing config.log, so it can be properly (re)opened and
5406 # appended to by config.status. When coming back to configure, we
5407 # need to make the FD available again.
5408 if test "$no_create" != yes; then
5409 ac_cs_success=:
5410 ac_config_status_args=
5411 test "$silent" = yes &&
5412 ac_config_status_args="$ac_config_status_args --quiet"
5413 exec 5>/dev/null
5414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5415 exec 5>>config.log
5416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5417 # would make configure fail if this is the last instruction.
5418 $ac_cs_success || { (exit 1); exit 1; }
5423 echo " /*-----------------------------------------------*"
5424 echo " * CLooG configuration is OK *"
5425 echo " *-----------------------------------------------*/"
5426 echo "It appears that your system is OK to start CLooG compilation. You need"
5427 echo "now to type \"make\". After compilation, you should check CLooG by typing"
5428 echo "\"make check\". If no problem occur, you can type \"make uninstall\" if"
5429 echo "you are upgrading an old version. Lastly type \"make install\" to install"
5430 echo "CLooG on your system (log as root if necessary)."