new reference: numbers of nodes larger because of new types
[libfirm] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.56 for libfirm 0.3.0.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
267 # Identity of this package.
268 PACKAGE_NAME='libfirm'
269 PACKAGE_TARNAME='libfirm'
270 PACKAGE_VERSION='0.3.0'
271 PACKAGE_STRING='libfirm 0.3.0'
272 PACKAGE_BUGREPORT=''
273
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 libfirm_conf_env enable_debug_libfirm enable_gcc_inline enable_profile_libfirm enable_auto_documentation enable_firm_jni disable_libiberty CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD ac_ct_LD libfirm_cv_prog_ld_r AR TAR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S DOXYGEN DOT JAVAC JAVAH CPP EGREP LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832 _ACEOF
833 fi
834
835 if test -n "$ac_init_help"; then
836   case $ac_init_help in
837      short | recursive ) echo "Configuration of libfirm 0.3.0:";;
838    esac
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --enable-debug          enable assertions and additional debugging routines
845   --enable-gcc_inline     enable gcc inline C-extension
846   --enable-profile        enable profiling
847   --enable-autodoc        enable auto documentation
848   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm
849   --disable-libiberty        disable own libiberty parts
850
851 Optional Packages:
852   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
853   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854   --with-includedir=add colon seperated list of directories to include search path
855   --with-libdir=add colon seperated list of directories to linker search path
856
857 Some influential environment variables:
858   CC          C compiler command
859   CFLAGS      C compiler flags
860   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
861               nonstandard directory <lib dir>
862   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
863               headers in a nonstandard directory <include dir>
864   CPP         C preprocessor
865
866 Use these variables to override the choices made by `configure' or to help
867 it to find libraries and programs with nonstandard names/locations.
868
869 _ACEOF
870 fi
871
872 if test "$ac_init_help" = "recursive"; then
873   # If there are subdirs, report their specific --help.
874   ac_popdir=`pwd`
875   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876     test -d $ac_dir || continue
877     ac_builddir=.
878
879 if test "$ac_dir" != .; then
880   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881   # A "../" for each directory in $ac_dir_suffix.
882   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883 else
884   ac_dir_suffix= ac_top_builddir=
885 fi
886
887 case $srcdir in
888   .)  # No --srcdir option.  We are building in place.
889     ac_srcdir=.
890     if test -z "$ac_top_builddir"; then
891        ac_top_srcdir=.
892     else
893        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894     fi ;;
895   [\\/]* | ?:[\\/]* )  # Absolute path.
896     ac_srcdir=$srcdir$ac_dir_suffix;
897     ac_top_srcdir=$srcdir ;;
898   *) # Relative path.
899     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900     ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 esac
902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
903 # absolute.
904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
908
909     cd $ac_dir
910     # Check for guested configure; otherwise get Cygnus style configure.
911     if test -f $ac_srcdir/configure.gnu; then
912       echo
913       $SHELL $ac_srcdir/configure.gnu  --help=recursive
914     elif test -f $ac_srcdir/configure; then
915       echo
916       $SHELL $ac_srcdir/configure  --help=recursive
917     elif test -f $ac_srcdir/configure.ac ||
918            test -f $ac_srcdir/configure.in; then
919       echo
920       $ac_configure --help
921     else
922       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
923     fi
924     cd $ac_popdir
925   done
926 fi
927
928 test -n "$ac_init_help" && exit 0
929 if $ac_init_version; then
930   cat <<\_ACEOF
931 libfirm configure 0.3.0
932 generated by GNU Autoconf 2.56
933
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
938 _ACEOF
939   exit 0
940 fi
941 exec 5>config.log
942 cat >&5 <<_ACEOF
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
945
946 It was created by libfirm $as_me 0.3.0, which was
947 generated by GNU Autoconf 2.56.  Invocation command line was
948
949   $ $0 $@
950
951 _ACEOF
952 {
953 cat <<_ASUNAME
954 ## --------- ##
955 ## Platform. ##
956 ## --------- ##
957
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
963
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
966
967 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
968 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
971 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
972 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
973 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
974
975 _ASUNAME
976
977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
978 for as_dir in $PATH
979 do
980   IFS=$as_save_IFS
981   test -z "$as_dir" && as_dir=.
982   echo "PATH: $as_dir"
983 done
984
985 } >&5
986
987 cat >&5 <<_ACEOF
988
989
990 ## ----------- ##
991 ## Core tests. ##
992 ## ----------- ##
993
994 _ACEOF
995
996
997 # Keep a trace of the command line.
998 # Strip out --no-create and --no-recursion so they do not pile up.
999 # Strip out --silent because we don't want to record it for future runs.
1000 # Also quote any args containing shell meta-characters.
1001 # Make two passes to allow for proper duplicate-argument suppression.
1002 ac_configure_args=
1003 ac_configure_args0=
1004 ac_configure_args1=
1005 ac_sep=
1006 ac_must_keep_next=false
1007 for ac_pass in 1 2
1008 do
1009   for ac_arg
1010   do
1011     case $ac_arg in
1012     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1013     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014     | -silent | --silent | --silen | --sile | --sil)
1015       continue ;;
1016     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1017       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1018     esac
1019     case $ac_pass in
1020     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1021     2)
1022       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1023       if test $ac_must_keep_next = true; then
1024         ac_must_keep_next=false # Got value, back to normal.
1025       else
1026         case $ac_arg in
1027           *=* | --config-cache | -C | -disable-* | --disable-* \
1028           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1029           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1030           | -with-* | --with-* | -without-* | --without-* | --x)
1031             case "$ac_configure_args0 " in
1032               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1033             esac
1034             ;;
1035           -* ) ac_must_keep_next=true ;;
1036         esac
1037       fi
1038       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039       # Get rid of the leading space.
1040       ac_sep=" "
1041       ;;
1042     esac
1043   done
1044 done
1045 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1046 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1047
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log.  We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close' the trap.
1053 trap 'exit_status=$?
1054   # Save into config.log some information that might help in debugging.
1055   {
1056     echo
1057
1058     cat <<\_ASBOX
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1062 _ASBOX
1063     echo
1064     # The following way of writing the cache mishandles newlines in values,
1065 {
1066   (set) 2>&1 |
1067     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068     *ac_space=\ *)
1069       sed -n \
1070         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1072       ;;
1073     *)
1074       sed -n \
1075         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076       ;;
1077     esac;
1078 }
1079     echo
1080
1081     cat <<\_ASBOX
1082 ## ----------------- ##
1083 ## Output variables. ##
1084 ## ----------------- ##
1085 _ASBOX
1086     echo
1087     for ac_var in $ac_subst_vars
1088     do
1089       eval ac_val=$`echo $ac_var`
1090       echo "$ac_var='"'"'$ac_val'"'"'"
1091     done | sort
1092     echo
1093
1094     if test -n "$ac_subst_files"; then
1095       cat <<\_ASBOX
1096 ## ------------- ##
1097 ## Output files. ##
1098 ## ------------- ##
1099 _ASBOX
1100       echo
1101       for ac_var in $ac_subst_files
1102       do
1103         eval ac_val=$`echo $ac_var`
1104         echo "$ac_var='"'"'$ac_val'"'"'"
1105       done | sort
1106       echo
1107     fi
1108
1109     if test -s confdefs.h; then
1110       cat <<\_ASBOX
1111 ## ----------- ##
1112 ## confdefs.h. ##
1113 ## ----------- ##
1114 _ASBOX
1115       echo
1116       sed "/^$/d" confdefs.h | sort
1117       echo
1118     fi
1119     test "$ac_signal" != 0 &&
1120       echo "$as_me: caught signal $ac_signal"
1121     echo "$as_me: exit $exit_status"
1122   } >&5
1123   rm -f core core.* *.core &&
1124   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1125     exit $exit_status
1126      ' 0
1127 for ac_signal in 1 2 13 15; do
1128   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1129 done
1130 ac_signal=0
1131
1132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1133 rm -rf conftest* confdefs.h
1134 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1135 echo >confdefs.h
1136
1137 # Predefined preprocessor variables.
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_NAME "$PACKAGE_NAME"
1141 _ACEOF
1142
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1146 _ACEOF
1147
1148
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1151 _ACEOF
1152
1153
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_STRING "$PACKAGE_STRING"
1156 _ACEOF
1157
1158
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1161 _ACEOF
1162
1163
1164 # Let the site file select an alternate cache file if it wants to.
1165 # Prefer explicitly selected file to automatically selected ones.
1166 if test -z "$CONFIG_SITE"; then
1167   if test "x$prefix" != xNONE; then
1168     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1169   else
1170     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1171   fi
1172 fi
1173 for ac_site_file in $CONFIG_SITE; do
1174   if test -r "$ac_site_file"; then
1175     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1176 echo "$as_me: loading site script $ac_site_file" >&6;}
1177     sed 's/^/| /' "$ac_site_file" >&5
1178     . "$ac_site_file"
1179   fi
1180 done
1181
1182 if test -r "$cache_file"; then
1183   # Some versions of bash will fail to source /dev/null (special
1184   # files actually), so we avoid doing that.
1185   if test -f "$cache_file"; then
1186     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1187 echo "$as_me: loading cache $cache_file" >&6;}
1188     case $cache_file in
1189       [\\/]* | ?:[\\/]* ) . $cache_file;;
1190       *)                      . ./$cache_file;;
1191     esac
1192   fi
1193 else
1194   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1195 echo "$as_me: creating cache $cache_file" >&6;}
1196   >$cache_file
1197 fi
1198
1199 # Check that the precious variables saved in the cache have kept the same
1200 # value.
1201 ac_cache_corrupted=false
1202 for ac_var in `(set) 2>&1 |
1203                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1204   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1205   eval ac_new_set=\$ac_env_${ac_var}_set
1206   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1207   eval ac_new_val="\$ac_env_${ac_var}_value"
1208   case $ac_old_set,$ac_new_set in
1209     set,)
1210       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1212       ac_cache_corrupted=: ;;
1213     ,set)
1214       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1215 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1216       ac_cache_corrupted=: ;;
1217     ,);;
1218     *)
1219       if test "x$ac_old_val" != "x$ac_new_val"; then
1220         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1221 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1222         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1223 echo "$as_me:   former value:  $ac_old_val" >&2;}
1224         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1225 echo "$as_me:   current value: $ac_new_val" >&2;}
1226         ac_cache_corrupted=:
1227       fi;;
1228   esac
1229   # Pass precious variables to config.status.
1230   if test "$ac_new_set" = set; then
1231     case $ac_new_val in
1232     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234     *) ac_arg=$ac_var=$ac_new_val ;;
1235     esac
1236     case " $ac_configure_args " in
1237       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1238       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1239     esac
1240   fi
1241 done
1242 if $ac_cache_corrupted; then
1243   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1244 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1245   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1246 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1247    { (exit 1); exit 1; }; }
1248 fi
1249
1250 ac_ext=c
1251 ac_cpp='$CPP $CPPFLAGS'
1252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1284                 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1285                 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1286                 firmjni/Makefile firmjni/testprograms/Makefile libfirm.doxygen"
1287
1288           ac_config_headers="$ac_config_headers config.h"
1289
1290
1291 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1292
1293
1294
1295 # Check whether --with-includedir or --without-includedir was given.
1296 if test "${with_includedir+set}" = set; then
1297   withval="$with_includedir"
1298   CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1299 else
1300   T_FLAG=""
1301 fi;
1302
1303
1304 # Check whether --with-libdir or --without-libdir was given.
1305 if test "${with_libdir+set}" = set; then
1306   withval="$with_libdir"
1307   LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1308 else
1309   T_FLAG=""
1310 fi;
1311
1312
1313
1314 # Check whether --enable-debug or --disable-debug was given.
1315 if test "${enable_debug+set}" = set; then
1316   enableval="$enable_debug"
1317   if test "$enableval" = yes; then
1318   cat >>confdefs.h <<\_ACEOF
1319 #define DEBUG_libfirm 1
1320 _ACEOF
1321
1322 else
1323   cat >>confdefs.h <<\_ACEOF
1324 #define NDEBUG 1
1325 _ACEOF
1326
1327 fi
1328 fi;
1329
1330
1331 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1332 if test "${enable_gcc_inline+set}" = set; then
1333   enableval="$enable_gcc_inline"
1334   if test "$enableval" = yes; then
1335   cat >>confdefs.h <<\_ACEOF
1336 #define USE_GCC_INLINE 1
1337 _ACEOF
1338
1339 fi
1340 fi;
1341
1342
1343
1344 # Check whether --enable-profile or --disable-profile was given.
1345 if test "${enable_profile+set}" = set; then
1346   enableval="$enable_profile"
1347   if test "$enableval"=yes; then
1348   enable_profile_libfirm=yes
1349 fi
1350 else
1351   enable_profile_libfirm=no
1352 fi;
1353
1354
1355 # Check whether --enable-autodoc or --disable-autodoc was given.
1356 if test "${enable_autodoc+set}" = set; then
1357   enableval="$enable_autodoc"
1358   if test "$enableval"=yes; then
1359   enable_auto_documentation=yes
1360 fi
1361 else
1362   enable_auto_documentation=no
1363 fi;
1364
1365
1366
1367 # Check whether --enable-firmjni or --disable-firmjni was given.
1368 if test "${enable_firmjni+set}" = set; then
1369   enableval="$enable_firmjni"
1370   if test "$enableval"=yes; then
1371   enable_firm_jni=yes
1372 fi
1373 else
1374   enable_firm_jni=no
1375 fi;
1376
1377
1378 # Check whether --enable-libiberty or --disable-libiberty was given.
1379 if test "${enable_libiberty+set}" = set; then
1380   enableval="$enable_libiberty"
1381   if test "$enableval"=yes; then
1382   disable_libiberty_=yes
1383 fi
1384 else
1385   disable_libiberty=no
1386 fi;
1387
1388
1389
1390
1391 ac_ext=c
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1396 if test -n "$ac_tool_prefix"; then
1397   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1399 echo "$as_me:$LINENO: checking for $ac_word" >&5
1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401 if test "${ac_cv_prog_CC+set}" = set; then
1402   echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404   if test -n "$CC"; then
1405   ac_cv_prog_CC="$CC" # Let the user override the test.
1406 else
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 for as_dir in $PATH
1409 do
1410   IFS=$as_save_IFS
1411   test -z "$as_dir" && as_dir=.
1412   for ac_exec_ext in '' $ac_executable_extensions; do
1413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1414     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1416     break 2
1417   fi
1418 done
1419 done
1420
1421 fi
1422 fi
1423 CC=$ac_cv_prog_CC
1424 if test -n "$CC"; then
1425   echo "$as_me:$LINENO: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1427 else
1428   echo "$as_me:$LINENO: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1430 fi
1431
1432 fi
1433 if test -z "$ac_cv_prog_CC"; then
1434   ac_ct_CC=$CC
1435   # Extract the first word of "gcc", so it can be a program name with args.
1436 set dummy gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   if test -n "$ac_ct_CC"; then
1443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448   IFS=$as_save_IFS
1449   test -z "$as_dir" && as_dir=.
1450   for ac_exec_ext in '' $ac_executable_extensions; do
1451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452     ac_cv_prog_ac_ct_CC="gcc"
1453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454     break 2
1455   fi
1456 done
1457 done
1458
1459 fi
1460 fi
1461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1462 if test -n "$ac_ct_CC"; then
1463   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1464 echo "${ECHO_T}$ac_ct_CC" >&6
1465 else
1466   echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 fi
1469
1470   CC=$ac_ct_CC
1471 else
1472   CC="$ac_cv_prog_CC"
1473 fi
1474
1475 if test -z "$CC"; then
1476   if test -n "$ac_tool_prefix"; then
1477   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1478 set dummy ${ac_tool_prefix}cc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482   echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484   if test -n "$CC"; then
1485   ac_cv_prog_CC="$CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490   IFS=$as_save_IFS
1491   test -z "$as_dir" && as_dir=.
1492   for ac_exec_ext in '' $ac_executable_extensions; do
1493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494     ac_cv_prog_CC="${ac_tool_prefix}cc"
1495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496     break 2
1497   fi
1498 done
1499 done
1500
1501 fi
1502 fi
1503 CC=$ac_cv_prog_CC
1504 if test -n "$CC"; then
1505   echo "$as_me:$LINENO: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1507 else
1508   echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1510 fi
1511
1512 fi
1513 if test -z "$ac_cv_prog_CC"; then
1514   ac_ct_CC=$CC
1515   # Extract the first word of "cc", so it can be a program name with args.
1516 set dummy cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520   echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522   if test -n "$ac_ct_CC"; then
1523   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528   IFS=$as_save_IFS
1529   test -z "$as_dir" && as_dir=.
1530   for ac_exec_ext in '' $ac_executable_extensions; do
1531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532     ac_cv_prog_ac_ct_CC="cc"
1533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534     break 2
1535   fi
1536 done
1537 done
1538
1539 fi
1540 fi
1541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1542 if test -n "$ac_ct_CC"; then
1543   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1544 echo "${ECHO_T}$ac_ct_CC" >&6
1545 else
1546   echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 fi
1549
1550   CC=$ac_ct_CC
1551 else
1552   CC="$ac_cv_prog_CC"
1553 fi
1554
1555 fi
1556 if test -z "$CC"; then
1557   # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   if test -n "$CC"; then
1565   ac_cv_prog_CC="$CC" # Let the user override the test.
1566 else
1567   ac_prog_rejected=no
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1576        ac_prog_rejected=yes
1577        continue
1578      fi
1579     ac_cv_prog_CC="cc"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 if test $ac_prog_rejected = yes; then
1587   # We found a bogon in the path, so make sure we never use it.
1588   set dummy $ac_cv_prog_CC
1589   shift
1590   if test $# != 0; then
1591     # We chose a different compiler from the bogus one.
1592     # However, it has the same basename, so the bogon will be chosen
1593     # first if we set CC to just the basename; use the full file name.
1594     shift
1595     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1596   fi
1597 fi
1598 fi
1599 fi
1600 CC=$ac_cv_prog_CC
1601 if test -n "$CC"; then
1602   echo "$as_me:$LINENO: result: $CC" >&5
1603 echo "${ECHO_T}$CC" >&6
1604 else
1605   echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609 fi
1610 if test -z "$CC"; then
1611   if test -n "$ac_tool_prefix"; then
1612   for ac_prog in cl
1613   do
1614     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   if test -n "$CC"; then
1622   ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   for ac_exec_ext in '' $ac_executable_extensions; do
1630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633     break 2
1634   fi
1635 done
1636 done
1637
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642   echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645   echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649     test -n "$CC" && break
1650   done
1651 fi
1652 if test -z "$CC"; then
1653   ac_ct_CC=$CC
1654   for ac_prog in cl
1655 do
1656   # Extract the first word of "$ac_prog", so it can be a program name with args.
1657 set dummy $ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$ac_ct_CC"; then
1664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_ac_ct_CC="$ac_prog"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691   test -n "$ac_ct_CC" && break
1692 done
1693
1694   CC=$ac_ct_CC
1695 fi
1696
1697 fi
1698
1699
1700 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1701 See \`config.log' for more details." >&5
1702 echo "$as_me: error: no acceptable C compiler found in \$PATH
1703 See \`config.log' for more details." >&2;}
1704    { (exit 1); exit 1; }; }
1705
1706 # Provide some information about the compiler.
1707 echo "$as_me:$LINENO:" \
1708      "checking for C compiler version" >&5
1709 ac_compiler=`set X $ac_compile; echo $2`
1710 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1711   (eval $ac_compiler --version </dev/null >&5) 2>&5
1712   ac_status=$?
1713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714   (exit $ac_status); }
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1716   (eval $ac_compiler -v </dev/null >&5) 2>&5
1717   ac_status=$?
1718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719   (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1721   (eval $ac_compiler -V </dev/null >&5) 2>&5
1722   ac_status=$?
1723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724   (exit $ac_status); }
1725
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line $LINENO "configure"
1728 /* confdefs.h.  */
1729 _ACEOF
1730 cat confdefs.h >>conftest.$ac_ext
1731 cat >>conftest.$ac_ext <<_ACEOF
1732 /* end confdefs.h.  */
1733
1734 int
1735 main ()
1736 {
1737
1738   ;
1739   return 0;
1740 }
1741 _ACEOF
1742 ac_clean_files_save=$ac_clean_files
1743 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1744 # Try to create an executable without -o first, disregard a.out.
1745 # It will help us diagnose broken compilers, and finding out an intuition
1746 # of exeext.
1747 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1748 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1749 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1750 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1751   (eval $ac_link_default) 2>&5
1752   ac_status=$?
1753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754   (exit $ac_status); }; then
1755   # Find the output, starting from the most likely.  This scheme is
1756 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1757 # resort.
1758
1759 # Be careful to initialize this variable, since it used to be cached.
1760 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1761 ac_cv_exeext=
1762 # b.out is created by i960 compilers.
1763 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1764 do
1765   test -f "$ac_file" || continue
1766   case $ac_file in
1767     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1768         ;;
1769     conftest.$ac_ext )
1770         # This is the source file.
1771         ;;
1772     [ab].out )
1773         # We found the default executable, but exeext='' is most
1774         # certainly right.
1775         break;;
1776     *.* )
1777         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1778         # FIXME: I believe we export ac_cv_exeext for Libtool,
1779         # but it would be cool to find out if it's true.  Does anybody
1780         # maintain Libtool? --akim.
1781         export ac_cv_exeext
1782         break;;
1783     * )
1784         break;;
1785   esac
1786 done
1787 else
1788   echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: C compiler cannot create executables
1794 See \`config.log' for more details." >&2;}
1795    { (exit 77); exit 77; }; }
1796 fi
1797
1798 ac_exeext=$ac_cv_exeext
1799 echo "$as_me:$LINENO: result: $ac_file" >&5
1800 echo "${ECHO_T}$ac_file" >&6
1801
1802 # Check the compiler produces executables we can run.  If not, either
1803 # the compiler is broken, or we cross compile.
1804 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1807 # If not cross compiling, check that we can run a simple program.
1808 if test "$cross_compiling" != yes; then
1809   if { ac_try='./$ac_file'
1810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1811   (eval $ac_try) 2>&5
1812   ac_status=$?
1813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814   (exit $ac_status); }; }; then
1815     cross_compiling=no
1816   else
1817     if test "$cross_compiling" = maybe; then
1818         cross_compiling=yes
1819     else
1820         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1821 If you meant to cross compile, use \`--host'.
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: cannot run C compiled programs.
1824 If you meant to cross compile, use \`--host'.
1825 See \`config.log' for more details." >&2;}
1826    { (exit 1); exit 1; }; }
1827     fi
1828   fi
1829 fi
1830 echo "$as_me:$LINENO: result: yes" >&5
1831 echo "${ECHO_T}yes" >&6
1832
1833 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1834 ac_clean_files=$ac_clean_files_save
1835 # Check the compiler produces executables we can run.  If not, either
1836 # the compiler is broken, or we cross compile.
1837 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1838 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1839 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1840 echo "${ECHO_T}$cross_compiling" >&6
1841
1842 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1843 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1845   (eval $ac_link) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }; then
1849   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1850 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1851 # work properly (i.e., refer to `conftest.exe'), while it won't with
1852 # `rm'.
1853 for ac_file in conftest.exe conftest conftest.*; do
1854   test -f "$ac_file" || continue
1855   case $ac_file in
1856     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1857     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1858           export ac_cv_exeext
1859           break;;
1860     * ) break;;
1861   esac
1862 done
1863 else
1864   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1867 See \`config.log' for more details." >&2;}
1868    { (exit 1); exit 1; }; }
1869 fi
1870
1871 rm -f conftest$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1873 echo "${ECHO_T}$ac_cv_exeext" >&6
1874
1875 rm -f conftest.$ac_ext
1876 EXEEXT=$ac_cv_exeext
1877 ac_exeext=$EXEEXT
1878 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1879 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1880 if test "${ac_cv_objext+set}" = set; then
1881   echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883   cat >conftest.$ac_ext <<_ACEOF
1884 #line $LINENO "configure"
1885 /* confdefs.h.  */
1886 _ACEOF
1887 cat confdefs.h >>conftest.$ac_ext
1888 cat >>conftest.$ac_ext <<_ACEOF
1889 /* end confdefs.h.  */
1890
1891 int
1892 main ()
1893 {
1894
1895   ;
1896   return 0;
1897 }
1898 _ACEOF
1899 rm -f conftest.o conftest.obj
1900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1901   (eval $ac_compile) 2>&5
1902   ac_status=$?
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); }; then
1905   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1906   case $ac_file in
1907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1908     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1909        break;;
1910   esac
1911 done
1912 else
1913   echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1917 See \`config.log' for more details." >&5
1918 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1919 See \`config.log' for more details." >&2;}
1920    { (exit 1); exit 1; }; }
1921 fi
1922
1923 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1924 fi
1925 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1926 echo "${ECHO_T}$ac_cv_objext" >&6
1927 OBJEXT=$ac_cv_objext
1928 ac_objext=$OBJEXT
1929 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1930 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1931 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 /* confdefs.h.  */
1937 _ACEOF
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h.  */
1941
1942 int
1943 main ()
1944 {
1945 #ifndef __GNUC__
1946        choke me
1947 #endif
1948
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 rm -f conftest.$ac_objext
1954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955   (eval $ac_compile) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); } &&
1959          { ac_try='test -s conftest.$ac_objext'
1960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961   (eval $ac_try) 2>&5
1962   ac_status=$?
1963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964   (exit $ac_status); }; }; then
1965   ac_compiler_gnu=yes
1966 else
1967   echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_compiler_gnu=no
1971 fi
1972 rm -f conftest.$ac_objext conftest.$ac_ext
1973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1974
1975 fi
1976 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1978 GCC=`test $ac_compiler_gnu = yes && echo yes`
1979 ac_test_CFLAGS=${CFLAGS+set}
1980 ac_save_CFLAGS=$CFLAGS
1981 CFLAGS="-g"
1982 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1983 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1984 if test "${ac_cv_prog_cc_g+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   cat >conftest.$ac_ext <<_ACEOF
1988 #line $LINENO "configure"
1989 /* confdefs.h.  */
1990 _ACEOF
1991 cat confdefs.h >>conftest.$ac_ext
1992 cat >>conftest.$ac_ext <<_ACEOF
1993 /* end confdefs.h.  */
1994
1995 int
1996 main ()
1997 {
1998
1999   ;
2000   return 0;
2001 }
2002 _ACEOF
2003 rm -f conftest.$ac_objext
2004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2005   (eval $ac_compile) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); } &&
2009          { ac_try='test -s conftest.$ac_objext'
2010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011   (eval $ac_try) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }; }; then
2015   ac_cv_prog_cc_g=yes
2016 else
2017   echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_cv_prog_cc_g=no
2021 fi
2022 rm -f conftest.$ac_objext conftest.$ac_ext
2023 fi
2024 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2026 if test "$ac_test_CFLAGS" = set; then
2027   CFLAGS=$ac_save_CFLAGS
2028 elif test $ac_cv_prog_cc_g = yes; then
2029   if test "$GCC" = yes; then
2030     CFLAGS="-g -O2"
2031   else
2032     CFLAGS="-g"
2033   fi
2034 else
2035   if test "$GCC" = yes; then
2036     CFLAGS="-O2"
2037   else
2038     CFLAGS=
2039   fi
2040 fi
2041 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2042 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2043 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   ac_cv_prog_cc_stdc=no
2047 ac_save_CC=$CC
2048 cat >conftest.$ac_ext <<_ACEOF
2049 #line $LINENO "configure"
2050 /* confdefs.h.  */
2051 _ACEOF
2052 cat confdefs.h >>conftest.$ac_ext
2053 cat >>conftest.$ac_ext <<_ACEOF
2054 /* end confdefs.h.  */
2055 #include <stdarg.h>
2056 #include <stdio.h>
2057 #include <sys/types.h>
2058 #include <sys/stat.h>
2059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2060 struct buf { int x; };
2061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2062 static char *e (p, i)
2063      char **p;
2064      int i;
2065 {
2066   return p[i];
2067 }
2068 static char *f (char * (*g) (char **, int), char **p, ...)
2069 {
2070   char *s;
2071   va_list v;
2072   va_start (v,p);
2073   s = g (p, va_arg (v,int));
2074   va_end (v);
2075   return s;
2076 }
2077 int test (int i, double x);
2078 struct s1 {int (*f) (int a);};
2079 struct s2 {int (*f) (double a);};
2080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081 int argc;
2082 char **argv;
2083 int
2084 main ()
2085 {
2086 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 # Don't try gcc -ansi; that turns off useful extensions and
2092 # breaks some systems' header files.
2093 # AIX                   -qlanglvl=ansi
2094 # Ultrix and OSF/1      -std1
2095 # HP-UX 10.20 and later -Ae
2096 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2097 # SVR4                  -Xc -D__EXTENSIONS__
2098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099 do
2100   CC="$ac_save_CC $ac_arg"
2101   rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103   (eval $ac_compile) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); } &&
2107          { ac_try='test -s conftest.$ac_objext'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113   ac_cv_prog_cc_stdc=$ac_arg
2114 break
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 fi
2120 rm -f conftest.$ac_objext
2121 done
2122 rm -f conftest.$ac_ext conftest.$ac_objext
2123 CC=$ac_save_CC
2124
2125 fi
2126
2127 case "x$ac_cv_prog_cc_stdc" in
2128   x|xno)
2129     echo "$as_me:$LINENO: result: none needed" >&5
2130 echo "${ECHO_T}none needed" >&6 ;;
2131   *)
2132     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2133 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2134     CC="$CC $ac_cv_prog_cc_stdc" ;;
2135 esac
2136
2137 # Some people use a C++ compiler to compile C.  Since we use `exit',
2138 # in C++ we need to declare it.  In case someone uses the same compiler
2139 # for both compiling C and C++ we need to have the C++ compiler decide
2140 # the declaration of exit, since it's the most demanding environment.
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #ifndef __cplusplus
2143   choke me
2144 #endif
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -s conftest.$ac_objext'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158   for ac_declaration in \
2159    ''\
2160    '#include <stdlib.h>' \
2161    'extern "C" void std::exit (int) throw (); using std::exit;' \
2162    'extern "C" void std::exit (int); using std::exit;' \
2163    'extern "C" void exit (int) throw ();' \
2164    'extern "C" void exit (int);' \
2165    'void exit (int);'
2166 do
2167   cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 /* confdefs.h.  */
2170 _ACEOF
2171 cat confdefs.h >>conftest.$ac_ext
2172 cat >>conftest.$ac_ext <<_ACEOF
2173 /* end confdefs.h.  */
2174 #include <stdlib.h>
2175 $ac_declaration
2176 int
2177 main ()
2178 {
2179 exit (42);
2180   ;
2181   return 0;
2182 }
2183 _ACEOF
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186   (eval $ac_compile) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); } &&
2190          { ac_try='test -s conftest.$ac_objext'
2191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192   (eval $ac_try) 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; }; then
2196   :
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 continue
2202 fi
2203 rm -f conftest.$ac_objext conftest.$ac_ext
2204   cat >conftest.$ac_ext <<_ACEOF
2205 #line $LINENO "configure"
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211 $ac_declaration
2212 int
2213 main ()
2214 {
2215 exit (42);
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222   (eval $ac_compile) 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); } &&
2226          { ac_try='test -s conftest.$ac_objext'
2227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228   (eval $ac_try) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; }; then
2232   break
2233 else
2234   echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 fi
2238 rm -f conftest.$ac_objext conftest.$ac_ext
2239 done
2240 rm -f conftest*
2241 if test -n "$ac_declaration"; then
2242   echo '#ifdef __cplusplus' >>confdefs.h
2243   echo $ac_declaration      >>confdefs.h
2244   echo '#endif'             >>confdefs.h
2245 fi
2246
2247 else
2248   echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 fi
2252 rm -f conftest.$ac_objext conftest.$ac_ext
2253 ac_ext=c
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2258
2259
2260
2261 if test -z "$LD"; then
2262   if test -n "$ac_tool_prefix"; then
2263   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2264 set dummy ${ac_tool_prefix}ld; ac_word=$2
2265 echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267 if test "${ac_cv_prog_LD+set}" = set; then
2268   echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270   if test -n "$LD"; then
2271   ac_cv_prog_LD="$LD" # Let the user override the test.
2272 else
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278   for ac_exec_ext in '' $ac_executable_extensions; do
2279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280     ac_cv_prog_LD="${ac_tool_prefix}ld"
2281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282     break 2
2283   fi
2284 done
2285 done
2286
2287 fi
2288 fi
2289 LD=$ac_cv_prog_LD
2290 if test -n "$LD"; then
2291   echo "$as_me:$LINENO: result: $LD" >&5
2292 echo "${ECHO_T}$LD" >&6
2293 else
2294   echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2296 fi
2297
2298 fi
2299 if test -z "$ac_cv_prog_LD"; then
2300   ac_ct_LD=$LD
2301   # Extract the first word of "ld", so it can be a program name with args.
2302 set dummy ld; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$ac_ct_LD"; then
2309   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316   for ac_exec_ext in '' $ac_executable_extensions; do
2317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318     ac_cv_prog_ac_ct_LD="ld"
2319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320     break 2
2321   fi
2322 done
2323 done
2324
2325 fi
2326 fi
2327 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2328 if test -n "$ac_ct_LD"; then
2329   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2330 echo "${ECHO_T}$ac_ct_LD" >&6
2331 else
2332   echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2334 fi
2335
2336   LD=$ac_ct_LD
2337 else
2338   LD="$ac_cv_prog_LD"
2339 fi
2340
2341 fi
2342
2343 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2344 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2345 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348
2349 libfirm_cv_prog_ld_r=no
2350 if test "$LD"; then
2351   cat > conftest.$ac_ext <<EOF
2352 int foo() { return 0; }
2353 EOF
2354   if eval $ac_compile && mv conftest.o conftest2.o; then
2355     cat > conftest.$ac_ext <<EOF
2356 extern int foo();
2357 int main() { return foo(); }
2358 EOF
2359     if eval $ac_compile; then
2360       if $LD -r -o conftest conftest.o conftest2.o; then
2361         libfirm_cv_prog_ld_r=yes
2362       fi
2363     fi
2364   fi
2365 fi
2366 rm -f conftest*
2367 fi
2368 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2369 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2370
2371
2372 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2373   { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2374 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2375    { (exit 1); exit 1; }; }
2376 fi
2377
2378 # Extract the first word of "ar", so it can be a program name with args.
2379 set dummy ar; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_AR+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   if test -n "$AR"; then
2386   ac_cv_prog_AR="$AR" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391   IFS=$as_save_IFS
2392   test -z "$as_dir" && as_dir=.
2393   for ac_exec_ext in '' $ac_executable_extensions; do
2394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395     ac_cv_prog_AR=""ar""
2396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397     break 2
2398   fi
2399 done
2400 done
2401
2402   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2403 fi
2404 fi
2405 AR=$ac_cv_prog_AR
2406 if test -n "$AR"; then
2407   echo "$as_me:$LINENO: result: $AR" >&5
2408 echo "${ECHO_T}$AR" >&6
2409 else
2410   echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6
2412 fi
2413
2414 if test "$AR" != "ar"; then
2415   { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2416 echo "$as_me: error: need ar for creating archives" >&2;}
2417    { (exit 1); exit 1; }; }
2418 fi
2419
2420 # Extract the first word of "tar", so it can be a program name with args.
2421 set dummy tar; ac_word=$2
2422 echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424 if test "${ac_cv_prog_TAR+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   if test -n "$TAR"; then
2428   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435   for ac_exec_ext in '' $ac_executable_extensions; do
2436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437     ac_cv_prog_TAR=""tar""
2438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440   fi
2441 done
2442 done
2443
2444   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2445 fi
2446 fi
2447 TAR=$ac_cv_prog_TAR
2448 if test -n "$TAR"; then
2449   echo "$as_me:$LINENO: result: $TAR" >&5
2450 echo "${ECHO_T}$TAR" >&6
2451 else
2452   echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6
2454 fi
2455
2456 if test "$TAR" != "tar"; then
2457   { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2458 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2459    { (exit 1); exit 1; }; }
2460 fi
2461
2462
2463 if test -n "$ac_tool_prefix"; then
2464   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2466 echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_RANLIB+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test -n "$RANLIB"; then
2472   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479   for ac_exec_ext in '' $ac_executable_extensions; do
2480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487
2488 fi
2489 fi
2490 RANLIB=$ac_cv_prog_RANLIB
2491 if test -n "$RANLIB"; then
2492   echo "$as_me:$LINENO: result: $RANLIB" >&5
2493 echo "${ECHO_T}$RANLIB" >&6
2494 else
2495   echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6
2497 fi
2498
2499 fi
2500 if test -z "$ac_cv_prog_RANLIB"; then
2501   ac_ct_RANLIB=$RANLIB
2502   # Extract the first word of "ranlib", so it can be a program name with args.
2503 set dummy ranlib; ac_word=$2
2504 echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2506 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   if test -n "$ac_ct_RANLIB"; then
2510   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517   for ac_exec_ext in '' $ac_executable_extensions; do
2518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519     ac_cv_prog_ac_ct_RANLIB="ranlib"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525
2526   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2527 fi
2528 fi
2529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2530 if test -n "$ac_ct_RANLIB"; then
2531   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2532 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2533 else
2534   echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2536 fi
2537
2538   RANLIB=$ac_ct_RANLIB
2539 else
2540   RANLIB="$ac_cv_prog_RANLIB"
2541 fi
2542
2543
2544 ac_aux_dir=
2545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2546   if test -f $ac_dir/install-sh; then
2547     ac_aux_dir=$ac_dir
2548     ac_install_sh="$ac_aux_dir/install-sh -c"
2549     break
2550   elif test -f $ac_dir/install.sh; then
2551     ac_aux_dir=$ac_dir
2552     ac_install_sh="$ac_aux_dir/install.sh -c"
2553     break
2554   elif test -f $ac_dir/shtool; then
2555     ac_aux_dir=$ac_dir
2556     ac_install_sh="$ac_aux_dir/shtool install -c"
2557     break
2558   fi
2559 done
2560 if test -z "$ac_aux_dir"; then
2561   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2563    { (exit 1); exit 1; }; }
2564 fi
2565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2568
2569 # Find a good install program.  We prefer a C program (faster),
2570 # so one script is as good as another.  But avoid the broken or
2571 # incompatible versions:
2572 # SysV /etc/install, /usr/sbin/install
2573 # SunOS /usr/etc/install
2574 # IRIX /sbin/install
2575 # AIX /bin/install
2576 # AmigaOS /C/install, which installs bootblocks on floppy discs
2577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2580 # ./install, which can be erroneously created by make from ./install.sh.
2581 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2582 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2583 if test -z "$INSTALL"; then
2584 if test "${ac_cv_path_install+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592   # Account for people who put trailing slashes in PATH elements.
2593 case $as_dir/ in
2594   ./ | .// | /cC/* | \
2595   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2596   /usr/ucb/* ) ;;
2597   *)
2598     # OSF1 and SCO ODT 3.0 have their own names for install.
2599     # Don't use installbsd from OSF since it installs stuff as root
2600     # by default.
2601     for ac_prog in ginstall scoinst install; do
2602       for ac_exec_ext in '' $ac_executable_extensions; do
2603         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2604           if test $ac_prog = install &&
2605             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606             # AIX install.  It has an incompatible calling convention.
2607             :
2608           elif test $ac_prog = install &&
2609             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610             # program-specific install script used by HP pwplus--don't use.
2611             :
2612           else
2613             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2614             break 3
2615           fi
2616         fi
2617       done
2618     done
2619     ;;
2620 esac
2621 done
2622
2623
2624 fi
2625   if test "${ac_cv_path_install+set}" = set; then
2626     INSTALL=$ac_cv_path_install
2627   else
2628     # As a last resort, use the slow shell script.  We don't cache a
2629     # path for INSTALL within a source directory, because that will
2630     # break other packages using the cache if that directory is
2631     # removed, or if the path is relative.
2632     INSTALL=$ac_install_sh
2633   fi
2634 fi
2635 echo "$as_me:$LINENO: result: $INSTALL" >&5
2636 echo "${ECHO_T}$INSTALL" >&6
2637
2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639 # It thinks the first close brace ends the variable substitution.
2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2641
2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2643
2644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2645
2646
2647 touch tmp-install.a tmp-install.b
2648 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2649     INSTALL="$INSTALL -C"
2650 fi
2651 rm tmp-install.a tmp-install.b
2652
2653
2654 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2656 LN_S=$as_ln_s
2657 if test "$LN_S" = "ln -s"; then
2658   echo "$as_me:$LINENO: result: yes" >&5
2659 echo "${ECHO_T}yes" >&6
2660 else
2661   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2662 echo "${ECHO_T}no, using $LN_S" >&6
2663 fi
2664
2665
2666 if test "$enable_auto_documentation" = yes; then
2667   # Extract the first word of "doxygen", so it can be a program name with args.
2668 set dummy doxygen; ac_word=$2
2669 echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   if test -n "$DOXYGEN"; then
2675   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682   for ac_exec_ext in '' $ac_executable_extensions; do
2683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684     ac_cv_prog_DOXYGEN=""doxygen""
2685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689 done
2690
2691   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2692 fi
2693 fi
2694 DOXYGEN=$ac_cv_prog_DOXYGEN
2695 if test -n "$DOXYGEN"; then
2696   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2697 echo "${ECHO_T}$DOXYGEN" >&6
2698 else
2699   echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6
2701 fi
2702
2703   if test "$DOXYGEN" != "doxygen"; then
2704     { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2705 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2706    { (exit 1); exit 1; }; }
2707   fi
2708   # Extract the first word of "dot", so it can be a program name with args.
2709 set dummy dot; ac_word=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_prog_DOT+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   if test -n "$DOT"; then
2716   ac_cv_prog_DOT="$DOT" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721   IFS=$as_save_IFS
2722   test -z "$as_dir" && as_dir=.
2723   for ac_exec_ext in '' $ac_executable_extensions; do
2724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725     ac_cv_prog_DOT=""dot""
2726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727     break 2
2728   fi
2729 done
2730 done
2731
2732   test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2733 fi
2734 fi
2735 DOT=$ac_cv_prog_DOT
2736 if test -n "$DOT"; then
2737   echo "$as_me:$LINENO: result: $DOT" >&5
2738 echo "${ECHO_T}$DOT" >&6
2739 else
2740   echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742 fi
2743
2744   if test "$DOT" != "dot"; then
2745     { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2746 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2747    { (exit 1); exit 1; }; }
2748   fi
2749 fi
2750
2751 if test "$enable_firm_jni" = yes; then
2752   # Extract the first word of "javac", so it can be a program name with args.
2753 set dummy javac; ac_word=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_JAVAC+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   if test -n "$JAVAC"; then
2760   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767   for ac_exec_ext in '' $ac_executable_extensions; do
2768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769     ac_cv_prog_JAVAC=""javac""
2770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771     break 2
2772   fi
2773 done
2774 done
2775
2776   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2777 fi
2778 fi
2779 JAVAC=$ac_cv_prog_JAVAC
2780 if test -n "$JAVAC"; then
2781   echo "$as_me:$LINENO: result: $JAVAC" >&5
2782 echo "${ECHO_T}$JAVAC" >&6
2783 else
2784   echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2786 fi
2787
2788   if test "$JAVAC" != "javac"; then
2789     { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2790 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2791    { (exit 1); exit 1; }; }
2792   fi
2793   # Extract the first word of "javah", so it can be a program name with args.
2794 set dummy javah; ac_word=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_prog_JAVAH+set}" = set; then
2798   echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800   if test -n "$JAVAH"; then
2801   ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808   for ac_exec_ext in '' $ac_executable_extensions; do
2809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810     ac_cv_prog_JAVAH=""javah""
2811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812     break 2
2813   fi
2814 done
2815 done
2816
2817   test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2818 fi
2819 fi
2820 JAVAH=$ac_cv_prog_JAVAH
2821 if test -n "$JAVAH"; then
2822   echo "$as_me:$LINENO: result: $JAVAH" >&5
2823 echo "${ECHO_T}$JAVAH" >&6
2824 else
2825   echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2827 fi
2828
2829   if test "$JAVAH" != "javah"; then
2830     { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2831 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2832    { (exit 1); exit 1; }; }
2833   fi
2834 fi
2835
2836
2837
2838
2839 ac_ext=c
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2845 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2846 # On Suns, sometimes $CPP names a directory.
2847 if test -n "$CPP" && test -d "$CPP"; then
2848   CPP=
2849 fi
2850 if test -z "$CPP"; then
2851   if test "${ac_cv_prog_CPP+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854       # Double quotes because CPP needs to be expanded
2855     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2856     do
2857       ac_preproc_ok=false
2858 for ac_c_preproc_warn_flag in '' yes
2859 do
2860   # Use a header file that comes with gcc, so configuring glibc
2861   # with a fresh cross-compiler works.
2862   # On the NeXT, cc -E runs the code through the compiler's parser,
2863   # not just through cpp. "Syntax error" is here to catch this case.
2864   cat >conftest.$ac_ext <<_ACEOF
2865 #line $LINENO "configure"
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871 #include <assert.h>
2872                      Syntax error
2873 _ACEOF
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } >/dev/null; then
2882   if test -s conftest.err; then
2883     ac_cpp_err=$ac_c_preproc_warn_flag
2884   else
2885     ac_cpp_err=
2886   fi
2887 else
2888   ac_cpp_err=yes
2889 fi
2890 if test -z "$ac_cpp_err"; then
2891   :
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896   # Broken: fails on valid input.
2897 continue
2898 fi
2899 rm -f conftest.err conftest.$ac_ext
2900
2901   # OK, works on sane cases.  Now check whether non-existent headers
2902   # can be detected and how.
2903   cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 #include <ac_nonexistent.h>
2911 _ACEOF
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914   ac_status=$?
2915   grep -v '^ *+' conftest.er1 >conftest.err
2916   rm -f conftest.er1
2917   cat conftest.err >&5
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); } >/dev/null; then
2920   if test -s conftest.err; then
2921     ac_cpp_err=$ac_c_preproc_warn_flag
2922   else
2923     ac_cpp_err=
2924   fi
2925 else
2926   ac_cpp_err=yes
2927 fi
2928 if test -z "$ac_cpp_err"; then
2929   # Broken: success on invalid input.
2930 continue
2931 else
2932   echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935   # Passes both tests.
2936 ac_preproc_ok=:
2937 break
2938 fi
2939 rm -f conftest.err conftest.$ac_ext
2940
2941 done
2942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2943 rm -f conftest.err conftest.$ac_ext
2944 if $ac_preproc_ok; then
2945   break
2946 fi
2947
2948     done
2949     ac_cv_prog_CPP=$CPP
2950
2951 fi
2952   CPP=$ac_cv_prog_CPP
2953 else
2954   ac_cv_prog_CPP=$CPP
2955 fi
2956 echo "$as_me:$LINENO: result: $CPP" >&5
2957 echo "${ECHO_T}$CPP" >&6
2958 ac_preproc_ok=false
2959 for ac_c_preproc_warn_flag in '' yes
2960 do
2961   # Use a header file that comes with gcc, so configuring glibc
2962   # with a fresh cross-compiler works.
2963   # On the NeXT, cc -E runs the code through the compiler's parser,
2964   # not just through cpp. "Syntax error" is here to catch this case.
2965   cat >conftest.$ac_ext <<_ACEOF
2966 #line $LINENO "configure"
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #include <assert.h>
2973                      Syntax error
2974 _ACEOF
2975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } >/dev/null; then
2983   if test -s conftest.err; then
2984     ac_cpp_err=$ac_c_preproc_warn_flag
2985   else
2986     ac_cpp_err=
2987   fi
2988 else
2989   ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992   :
2993 else
2994   echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997   # Broken: fails on valid input.
2998 continue
2999 fi
3000 rm -f conftest.err conftest.$ac_ext
3001
3002   # OK, works on sane cases.  Now check whether non-existent headers
3003   # can be detected and how.
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <ac_nonexistent.h>
3012 _ACEOF
3013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } >/dev/null; then
3021   if test -s conftest.err; then
3022     ac_cpp_err=$ac_c_preproc_warn_flag
3023   else
3024     ac_cpp_err=
3025   fi
3026 else
3027   ac_cpp_err=yes
3028 fi
3029 if test -z "$ac_cpp_err"; then
3030   # Broken: success on invalid input.
3031 continue
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036   # Passes both tests.
3037 ac_preproc_ok=:
3038 break
3039 fi
3040 rm -f conftest.err conftest.$ac_ext
3041
3042 done
3043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3044 rm -f conftest.err conftest.$ac_ext
3045 if $ac_preproc_ok; then
3046   :
3047 else
3048   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3049 See \`config.log' for more details." >&5
3050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3051 See \`config.log' for more details." >&2;}
3052    { (exit 1); exit 1; }; }
3053 fi
3054
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060
3061
3062 echo "$as_me:$LINENO: checking for egrep" >&5
3063 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3064 if test "${ac_cv_prog_egrep+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3068     then ac_cv_prog_egrep='grep -E'
3069     else ac_cv_prog_egrep='egrep'
3070     fi
3071 fi
3072 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3073 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3074  EGREP=$ac_cv_prog_egrep
3075
3076
3077 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3078 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3079 if test "${ac_cv_header_stdc+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082   cat >conftest.$ac_ext <<_ACEOF
3083 #line $LINENO "configure"
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089 #include <stdlib.h>
3090 #include <stdarg.h>
3091 #include <string.h>
3092 #include <float.h>
3093
3094 int
3095 main ()
3096 {
3097
3098   ;
3099   return 0;
3100 }
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104   (eval $ac_compile) 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -s conftest.$ac_objext'
3109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110   (eval $ac_try) 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   ac_cv_header_stdc=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 ac_cv_header_stdc=no
3120 fi
3121 rm -f conftest.$ac_objext conftest.$ac_ext
3122
3123 if test $ac_cv_header_stdc = yes; then
3124   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3125   cat >conftest.$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132 #include <string.h>
3133
3134 _ACEOF
3135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3136   $EGREP "memchr" >/dev/null 2>&1; then
3137   :
3138 else
3139   ac_cv_header_stdc=no
3140 fi
3141 rm -f conftest*
3142
3143 fi
3144
3145 if test $ac_cv_header_stdc = yes; then
3146   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3147   cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154 #include <stdlib.h>
3155
3156 _ACEOF
3157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3158   $EGREP "free" >/dev/null 2>&1; then
3159   :
3160 else
3161   ac_cv_header_stdc=no
3162 fi
3163 rm -f conftest*
3164
3165 fi
3166
3167 if test $ac_cv_header_stdc = yes; then
3168   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3169   if test "$cross_compiling" = yes; then
3170   :
3171 else
3172   cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179 #include <ctype.h>
3180 #if ((' ' & 0x0FF) == 0x020)
3181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3183 #else
3184 # define ISLOWER(c) \
3185                    (('a' <= (c) && (c) <= 'i') \
3186                      || ('j' <= (c) && (c) <= 'r') \
3187                      || ('s' <= (c) && (c) <= 'z'))
3188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3189 #endif
3190
3191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3192 int
3193 main ()
3194 {
3195   int i;
3196   for (i = 0; i < 256; i++)
3197     if (XOR (islower (i), ISLOWER (i))
3198         || toupper (i) != TOUPPER (i))
3199       exit(2);
3200   exit (0);
3201 }
3202 _ACEOF
3203 rm -f conftest$ac_exeext
3204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3205   (eval $ac_link) 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210   (eval $ac_try) 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; }; then
3214   :
3215 else
3216   echo "$as_me: program exited with status $ac_status" >&5
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 ( exit $ac_status )
3221 ac_cv_header_stdc=no
3222 fi
3223 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3224 fi
3225 fi
3226 fi
3227 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3228 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3229 if test $ac_cv_header_stdc = yes; then
3230
3231 cat >>confdefs.h <<\_ACEOF
3232 #define STDC_HEADERS 1
3233 _ACEOF
3234
3235 fi
3236
3237
3238
3239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3250                   inttypes.h stdint.h unistd.h
3251 do
3252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3253 echo "$as_me:$LINENO: checking for $ac_header" >&5
3254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 $ac_includes_default
3266
3267 #include <$ac_header>
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271   (eval $ac_compile) 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } &&
3275          { ac_try='test -s conftest.$ac_objext'
3276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277   (eval $ac_try) 2>&5
3278   ac_status=$?
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); }; }; then
3281   eval "$as_ac_Header=yes"
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 eval "$as_ac_Header=no"
3287 fi
3288 rm -f conftest.$ac_objext conftest.$ac_ext
3289 fi
3290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3293   cat >>confdefs.h <<_ACEOF
3294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3295 _ACEOF
3296
3297 fi
3298
3299 done
3300
3301
3302
3303 for ac_header in math.h
3304 do
3305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3307   echo "$as_me:$LINENO: checking for $ac_header" >&5
3308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 fi
3312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3314 else
3315   # Is the header compilable?
3316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3320 /* confdefs.h.  */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h.  */
3325 $ac_includes_default
3326 #include <$ac_header>
3327 _ACEOF
3328 rm -f conftest.$ac_objext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330   (eval $ac_compile) 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } &&
3334          { ac_try='test -s conftest.$ac_objext'
3335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336   (eval $ac_try) 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; }; then
3340   ac_header_compiler=yes
3341 else
3342   echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 ac_header_compiler=no
3346 fi
3347 rm -f conftest.$ac_objext conftest.$ac_ext
3348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3349 echo "${ECHO_T}$ac_header_compiler" >&6
3350
3351 # Is the header present?
3352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3354 cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361 #include <$ac_header>
3362 _ACEOF
3363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3365   ac_status=$?
3366   grep -v '^ *+' conftest.er1 >conftest.err
3367   rm -f conftest.er1
3368   cat conftest.err >&5
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); } >/dev/null; then
3371   if test -s conftest.err; then
3372     ac_cpp_err=$ac_c_preproc_warn_flag
3373   else
3374     ac_cpp_err=
3375   fi
3376 else
3377   ac_cpp_err=yes
3378 fi
3379 if test -z "$ac_cpp_err"; then
3380   ac_header_preproc=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385   ac_header_preproc=no
3386 fi
3387 rm -f conftest.err conftest.$ac_ext
3388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3389 echo "${ECHO_T}$ac_header_preproc" >&6
3390
3391 # So?  What about this header?
3392 case $ac_header_compiler:$ac_header_preproc in
3393   yes:no )
3394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3398     (
3399       cat <<\_ASBOX
3400 ## ------------------------------------ ##
3401 ## Report this to bug-autoconf@gnu.org. ##
3402 ## ------------------------------------ ##
3403 _ASBOX
3404     ) |
3405       sed "s/^/$as_me: WARNING:     /" >&2
3406     ;;
3407   no:yes )
3408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3410     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3414     (
3415       cat <<\_ASBOX
3416 ## ------------------------------------ ##
3417 ## Report this to bug-autoconf@gnu.org. ##
3418 ## ------------------------------------ ##
3419 _ASBOX
3420     ) |
3421       sed "s/^/$as_me: WARNING:     /" >&2
3422     ;;
3423 esac
3424 echo "$as_me:$LINENO: checking for $ac_header" >&5
3425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   eval "$as_ac_Header=$ac_header_preproc"
3430 fi
3431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3433
3434 fi
3435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3436   cat >>confdefs.h <<_ACEOF
3437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3438 _ACEOF
3439  ac_math_headers="yes"
3440 else
3441   ac_math_headers="no"
3442 fi
3443
3444 done
3445
3446 if test "$ac_math_headers" != yes; then
3447     { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3448 echo "$as_me: error: \"math header file not found\"" >&2;}
3449    { (exit 1); exit 1; }; }
3450 fi
3451
3452
3453 #dnl check for the gnu multiprecission (gmp) header file
3454
3455 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3456 #if test "$ac_gmp_headers" != yes; then
3457 #  dnl gmp header not found.
3458 #  AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3459 #fi
3460
3461
3462 #AC_FUNC_OBSTACK
3463
3464
3465 for ac_header in obstack.h
3466 do
3467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3469   echo "$as_me:$LINENO: checking for $ac_header" >&5
3470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3472   echo $ECHO_N "(cached) $ECHO_C" >&6
3473 fi
3474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3476 else
3477   # Is the header compilable?
3478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3480 cat >conftest.$ac_ext <<_ACEOF
3481 #line $LINENO "configure"
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487 $ac_includes_default
3488 #include <$ac_header>
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492   (eval $ac_compile) 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } &&
3496          { ac_try='test -s conftest.$ac_objext'
3497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }; }; then
3502   ac_header_compiler=yes
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 ac_header_compiler=no
3508 fi
3509 rm -f conftest.$ac_objext conftest.$ac_ext
3510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3511 echo "${ECHO_T}$ac_header_compiler" >&6
3512
3513 # Is the header present?
3514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3516 cat >conftest.$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523 #include <$ac_header>
3524 _ACEOF
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } >/dev/null; then
3533   if test -s conftest.err; then
3534     ac_cpp_err=$ac_c_preproc_warn_flag
3535   else
3536     ac_cpp_err=
3537   fi
3538 else
3539   ac_cpp_err=yes
3540 fi
3541 if test -z "$ac_cpp_err"; then
3542   ac_header_preproc=yes
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547   ac_header_preproc=no
3548 fi
3549 rm -f conftest.err conftest.$ac_ext
3550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3551 echo "${ECHO_T}$ac_header_preproc" >&6
3552
3553 # So?  What about this header?
3554 case $ac_header_compiler:$ac_header_preproc in
3555   yes:no )
3556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3560     (
3561       cat <<\_ASBOX
3562 ## ------------------------------------ ##
3563 ## Report this to bug-autoconf@gnu.org. ##
3564 ## ------------------------------------ ##
3565 _ASBOX
3566     ) |
3567       sed "s/^/$as_me: WARNING:     /" >&2
3568     ;;
3569   no:yes )
3570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3572     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3576     (
3577       cat <<\_ASBOX
3578 ## ------------------------------------ ##
3579 ## Report this to bug-autoconf@gnu.org. ##
3580 ## ------------------------------------ ##
3581 _ASBOX
3582     ) |
3583       sed "s/^/$as_me: WARNING:     /" >&2
3584     ;;
3585 esac
3586 echo "$as_me:$LINENO: checking for $ac_header" >&5
3587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   eval "$as_ac_Header=$ac_header_preproc"
3592 fi
3593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3595
3596 fi
3597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3598   cat >>confdefs.h <<_ACEOF
3599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3600 _ACEOF
3601  ac_obstack_headers="yes"
3602 else
3603   ac_obstack_headers="no"
3604 fi
3605
3606 done
3607
3608 if test "$ac_obstack_headers" != yes; then
3609     { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3610 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614
3615
3616 if test "$enable_firm_jni" = yes; then
3617
3618 for ac_header in jni.h
3619 do
3620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3622   echo "$as_me:$LINENO: checking for $ac_header" >&5
3623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 fi
3627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3629 else
3630   # Is the header compilable?
3631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3633 cat >conftest.$ac_ext <<_ACEOF
3634 #line $LINENO "configure"
3635 /* confdefs.h.  */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h.  */
3640 $ac_includes_default
3641 #include <$ac_header>
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645   (eval $ac_compile) 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } &&
3649          { ac_try='test -s conftest.$ac_objext'
3650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651   (eval $ac_try) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); }; }; then
3655   ac_header_compiler=yes
3656 else
3657   echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660 ac_header_compiler=no
3661 fi
3662 rm -f conftest.$ac_objext conftest.$ac_ext
3663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3664 echo "${ECHO_T}$ac_header_compiler" >&6
3665
3666 # Is the header present?
3667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3670 #line $LINENO "configure"
3671 /* confdefs.h.  */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h.  */
3676 #include <$ac_header>
3677 _ACEOF
3678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } >/dev/null; then
3686   if test -s conftest.err; then
3687     ac_cpp_err=$ac_c_preproc_warn_flag
3688   else
3689     ac_cpp_err=
3690   fi
3691 else
3692   ac_cpp_err=yes
3693 fi
3694 if test -z "$ac_cpp_err"; then
3695   ac_header_preproc=yes
3696 else
3697   echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700   ac_header_preproc=no
3701 fi
3702 rm -f conftest.err conftest.$ac_ext
3703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3704 echo "${ECHO_T}$ac_header_preproc" >&6
3705
3706 # So?  What about this header?
3707 case $ac_header_compiler:$ac_header_preproc in
3708   yes:no )
3709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3713     (
3714       cat <<\_ASBOX
3715 ## ------------------------------------ ##
3716 ## Report this to bug-autoconf@gnu.org. ##
3717 ## ------------------------------------ ##
3718 _ASBOX
3719     ) |
3720       sed "s/^/$as_me: WARNING:     /" >&2
3721     ;;
3722   no:yes )
3723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3725     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3729     (
3730       cat <<\_ASBOX
3731 ## ------------------------------------ ##
3732 ## Report this to bug-autoconf@gnu.org. ##
3733 ## ------------------------------------ ##
3734 _ASBOX
3735     ) |
3736       sed "s/^/$as_me: WARNING:     /" >&2
3737     ;;
3738 esac
3739 echo "$as_me:$LINENO: checking for $ac_header" >&5
3740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744   eval "$as_ac_Header=$ac_header_preproc"
3745 fi
3746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3748
3749 fi
3750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3751   cat >>confdefs.h <<_ACEOF
3752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3753 _ACEOF
3754  ac_jni_headers="yes"
3755 else
3756   ac_jni_headers="no"
3757 fi
3758
3759 done
3760
3761   if test "$ac_jni_headers" != yes; then
3762     { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&5
3763 echo "$as_me: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&2;}
3764    { (exit 1); exit 1; }; }
3765   fi
3766 fi
3767
3768
3769
3770 #dnl check for the gnu multiprecission (gmp) library
3771
3772 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3773 #if test "$ac_gmp_library" != yes; then
3774 #  dnl gmp library not found.
3775 #  AC_MSG_ERROR("GNU multiprecission gmp library not found")
3776 #fi
3777
3778
3779 echo "$as_me:$LINENO: checking for main in -lm" >&5
3780 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3781 if test "${ac_cv_lib_m_main+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   ac_check_lib_save_LIBS=$LIBS
3785 LIBS="-lm  $LIBS"
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3788 /* confdefs.h.  */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h.  */
3793
3794
3795 int
3796 main ()
3797 {
3798 main ();
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805   (eval $ac_link) 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } &&
3809          { ac_try='test -s conftest$ac_exeext'
3810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811   (eval $ac_try) 2>&5
3812   ac_status=$?
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); }; }; then
3815   ac_cv_lib_m_main=yes
3816 else
3817   echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 ac_cv_lib_m_main=no
3821 fi
3822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823 LIBS=$ac_check_lib_save_LIBS
3824 fi
3825 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3826 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3827 if test $ac_cv_lib_m_main = yes; then
3828   ac_m_library="yes"
3829 else
3830   ac_m_library="no"
3831 fi
3832
3833 if test "$ac_m_library" != yes; then
3834     { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3835 echo "$as_me: error: \"standard math library not found\"" >&2;}
3836    { (exit 1); exit 1; }; }
3837 fi
3838
3839
3840 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3841 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3842 if test "${ac_cv_c_bigendian+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   # See if sys/param.h defines the BYTE_ORDER macro.
3846 cat >conftest.$ac_ext <<_ACEOF
3847 #line $LINENO "configure"
3848 /* confdefs.h.  */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h.  */
3853 #include <sys/types.h>
3854 #include <sys/param.h>
3855
3856 int
3857 main ()
3858 {
3859 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3860  bogus endian macros
3861 #endif
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869   (eval $ac_compile) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   # It does; now see whether it defined to BIG_ENDIAN or not.
3880 cat >conftest.$ac_ext <<_ACEOF
3881 #line $LINENO "configure"
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #include <sys/types.h>
3888 #include <sys/param.h>
3889
3890 int
3891 main ()
3892 {
3893 #if BYTE_ORDER != BIG_ENDIAN
3894  not big endian
3895 #endif
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 rm -f conftest.$ac_objext
3902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3903   (eval $ac_compile) 2>&5
3904   ac_status=$?
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } &&
3907          { ac_try='test -s conftest.$ac_objext'
3908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909   (eval $ac_try) 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); }; }; then
3913   ac_cv_c_bigendian=yes
3914 else
3915   echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 ac_cv_c_bigendian=no
3919 fi
3920 rm -f conftest.$ac_objext conftest.$ac_ext
3921 else
3922   echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925 # It does not; compile a test program.
3926 if test "$cross_compiling" = yes; then
3927   # try to guess the endianness by grepping values into an object file
3928   ac_cv_c_bigendian=unknown
3929   cat >conftest.$ac_ext <<_ACEOF
3930 #line $LINENO "configure"
3931 /* confdefs.h.  */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h.  */
3936 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3937 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3938 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3939 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3940 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3941 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3942 int
3943 main ()
3944 {
3945  _ascii (); _ebcdic ();
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } &&
3956          { ac_try='test -s conftest.$ac_objext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3963   ac_cv_c_bigendian=yes
3964 fi
3965 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3966   if test "$ac_cv_c_bigendian" = unknown; then
3967     ac_cv_c_bigendian=no
3968   else
3969     # finding both strings is unlikely to happen, but who knows?
3970     ac_cv_c_bigendian=unknown
3971   fi
3972 fi
3973 else
3974   echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 fi
3978 rm -f conftest.$ac_objext conftest.$ac_ext
3979 else
3980   cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 /* confdefs.h.  */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h.  */
3987 int
3988 main ()
3989 {
3990   /* Are we little or big endian?  From Harbison&Steele.  */
3991   union
3992   {
3993     long l;
3994     char c[sizeof (long)];
3995   } u;
3996   u.l = 1;
3997   exit (u.c[sizeof (long) - 1] == 1);
3998 }
3999 _ACEOF
4000 rm -f conftest$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002   (eval $ac_link) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007   (eval $ac_try) 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }; }; then
4011   ac_cv_c_bigendian=no
4012 else
4013   echo "$as_me: program exited with status $ac_status" >&5
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017 ( exit $ac_status )
4018 ac_cv_c_bigendian=yes
4019 fi
4020 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 fi
4023 rm -f conftest.$ac_objext conftest.$ac_ext
4024 fi
4025 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4026 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4027 case $ac_cv_c_bigendian in
4028   yes)
4029
4030 cat >>confdefs.h <<\_ACEOF
4031 #define WORDS_BIGENDIAN 1
4032 _ACEOF
4033  ;;
4034   no)
4035      ;;
4036   *)
4037     { { echo "$as_me:$LINENO: error: unknown endianness
4038 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4039 echo "$as_me: error: unknown endianness
4040 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4041    { (exit 1); exit 1; }; } ;;
4042 esac
4043
4044 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4045 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4046 if test "${ac_cv_c_long_double+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   cat >conftest.$ac_ext <<_ACEOF
4050 #line $LINENO "configure"
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056 #include <float.h>
4057           long double foo = 0.0;
4058 int
4059 main ()
4060 {
4061 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
4062           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4063           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4064 test_array [0] = 0
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072   (eval $ac_compile) 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -s conftest.$ac_objext'
4077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078   (eval $ac_try) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; }; then
4082   ac_cv_c_long_double=yes
4083 else
4084   echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 ac_cv_c_long_double=no
4088 fi
4089 rm -f conftest.$ac_objext conftest.$ac_ext
4090 fi
4091 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4092 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4093 if test $ac_cv_c_long_double = yes; then
4094
4095 cat >>confdefs.h <<\_ACEOF
4096 #define HAVE_LONG_DOUBLE 1
4097 _ACEOF
4098
4099 fi
4100
4101
4102
4103
4104 echo "$as_me:$LINENO: checking for strerror" >&5
4105 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4106 if test "${ac_cv_func_strerror+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   cat >conftest.$ac_ext <<_ACEOF
4110 #line $LINENO "configure"
4111 /* confdefs.h.  */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h.  */
4116 /* System header to define __stub macros and hopefully few prototypes,
4117     which can conflict with char strerror (); below.  */
4118 #include <assert.h>
4119 /* Override any gcc2 internal prototype to avoid an error.  */
4120 #ifdef __cplusplus
4121 extern "C"
4122 {
4123 #endif
4124 /* We use char because int might match the return type of a gcc2
4125    builtin and then its argument prototype would still apply.  */
4126 char strerror ();
4127 /* The GNU C library defines this for functions which it implements
4128     to always fail with ENOSYS.  Some functions are actually named
4129     something starting with __ and the normal name is an alias.  */
4130 #if defined (__stub_strerror) || defined (__stub___strerror)
4131 choke me
4132 #else
4133 char (*f) () = strerror;
4134 #endif
4135 #ifdef __cplusplus
4136 }
4137 #endif
4138
4139 int
4140 main ()
4141 {
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149   (eval $ac_link) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); } &&
4153          { ac_try='test -s conftest$ac_exeext'
4154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155   (eval $ac_try) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; }; then
4159   ac_cv_func_strerror=yes
4160 else
4161   echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 ac_cv_func_strerror=no
4165 fi
4166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4167 fi
4168 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4169 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4170 if test $ac_cv_func_strerror = yes; then
4171   :
4172 else
4173   { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4174 echo "$as_me: error: \"need strerror function\"" >&2;}
4175    { (exit 1); exit 1; }; }
4176
4177 fi
4178
4179
4180
4181
4182
4183           ac_config_files="$ac_config_files $ac_output_file"
4184           ac_config_commands="$ac_config_commands default"
4185 cat >confcache <<\_ACEOF
4186 # This file is a shell script that caches the results of configure
4187 # tests run on this system so they can be shared between configure
4188 # scripts and configure runs, see configure's option --config-cache.
4189 # It is not useful on other systems.  If it contains results you don't
4190 # want to keep, you may remove or edit it.
4191 #
4192 # config.status only pays attention to the cache file if you give it
4193 # the --recheck option to rerun configure.
4194 #
4195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4197 # following values.
4198
4199 _ACEOF
4200
4201 # The following way of writing the cache mishandles newlines in values,
4202 # but we know of no workaround that is simple, portable, and efficient.
4203 # So, don't put newlines in cache variables' values.
4204 # Ultrix sh set writes to stderr and can't be redirected directly,
4205 # and sets the high bit in the cache file unless we assign to the vars.
4206 {
4207   (set) 2>&1 |
4208     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4209     *ac_space=\ *)
4210       # `set' does not quote correctly, so add quotes (double-quote
4211       # substitution turns \\\\ into \\, and sed turns \\ into \).
4212       sed -n \
4213         "s/'/'\\\\''/g;
4214           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4215       ;;
4216     *)
4217       # `set' quotes correctly as required by POSIX, so do not add quotes.
4218       sed -n \
4219         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4220       ;;
4221     esac;
4222 } |
4223   sed '
4224      t clear
4225      : clear
4226      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4227      t end
4228      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4229      : end' >>confcache
4230 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4231   if test -w $cache_file; then
4232     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4233     cat confcache >$cache_file
4234   else
4235     echo "not updating unwritable cache $cache_file"
4236   fi
4237 fi
4238 rm -f confcache
4239
4240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4241 # Let make expand exec_prefix.
4242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4243
4244 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4245 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4246 # trailing colons and then remove the whole line if VPATH becomes empty
4247 # (actually we leave an empty line to preserve line numbers).
4248 if test "x$srcdir" = x.; then
4249   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4250 s/:*\$(srcdir):*/:/;
4251 s/:*\${srcdir}:*/:/;
4252 s/:*@srcdir@:*/:/;
4253 s/^\([^=]*=[    ]*\):*/\1/;
4254 s/:*$//;
4255 s/^[^=]*=[      ]*$//;
4256 }'
4257 fi
4258
4259 DEFS=-DHAVE_CONFIG_H
4260
4261 ac_libobjs=
4262 ac_ltlibobjs=
4263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4264   # 1. Remove the extension, and $U if already installed.
4265   ac_i=`echo "$ac_i" |
4266          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4267   # 2. Add them.
4268   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4269   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4270 done
4271 LIBOBJS=$ac_libobjs
4272
4273 LTLIBOBJS=$ac_ltlibobjs
4274
4275
4276
4277 : ${CONFIG_STATUS=./config.status}
4278 ac_clean_files_save=$ac_clean_files
4279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4280 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4281 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4282 cat >$CONFIG_STATUS <<_ACEOF
4283 #! $SHELL
4284 # Generated by $as_me.
4285 # Run this file to recreate the current configuration.
4286 # Compiler output produced by configure, useful for debugging
4287 # configure, is in config.log if it exists.
4288
4289 debug=false
4290 ac_cs_recheck=false
4291 ac_cs_silent=false
4292 SHELL=\${CONFIG_SHELL-$SHELL}
4293 _ACEOF
4294
4295 cat >>$CONFIG_STATUS <<\_ACEOF
4296 ## --------------------- ##
4297 ## M4sh Initialization.  ##
4298 ## --------------------- ##
4299
4300 # Be Bourne compatible
4301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4302   emulate sh
4303   NULLCMD=:
4304   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4305   # is contrary to our usage.  Disable this feature.
4306   alias -g '${1+"$@"}'='"$@"'
4307 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4308   set -o posix
4309 fi
4310
4311 # Support unset when possible.
4312 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4313   as_unset=unset
4314 else
4315   as_unset=false
4316 fi
4317
4318
4319 # Work around bugs in pre-3.0 UWIN ksh.
4320 $as_unset ENV MAIL MAILPATH
4321 PS1='$ '
4322 PS2='> '
4323 PS4='+ '
4324
4325 # NLS nuisances.
4326 for as_var in \
4327   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4328   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4329   LC_TELEPHONE LC_TIME
4330 do
4331   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4332     eval $as_var=C; export $as_var
4333   else
4334     $as_unset $as_var
4335   fi
4336 done
4337
4338 # Required to use basename.
4339 if expr a : '\(a\)' >/dev/null 2>&1; then
4340   as_expr=expr
4341 else
4342   as_expr=false
4343 fi
4344
4345 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4346   as_basename=basename
4347 else
4348   as_basename=false
4349 fi
4350
4351
4352 # Name of the executable.
4353 as_me=`$as_basename "$0" ||
4354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4355          X"$0" : 'X\(//\)$' \| \
4356          X"$0" : 'X\(/\)$' \| \
4357          .     : '\(.\)' 2>/dev/null ||
4358 echo X/"$0" |
4359     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4360           /^X\/\(\/\/\)$/{ s//\1/; q; }
4361           /^X\/\(\/\).*/{ s//\1/; q; }
4362           s/.*/./; q'`
4363
4364
4365 # PATH needs CR, and LINENO needs CR and PATH.
4366 # Avoid depending upon Character Ranges.
4367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4370 as_cr_digits='0123456789'
4371 as_cr_alnum=$as_cr_Letters$as_cr_digits
4372
4373 # The user is always right.
4374 if test "${PATH_SEPARATOR+set}" != set; then
4375   echo "#! /bin/sh" >conf$$.sh
4376   echo  "exit 0"   >>conf$$.sh
4377   chmod +x conf$$.sh
4378   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4379     PATH_SEPARATOR=';'
4380   else
4381     PATH_SEPARATOR=:
4382   fi
4383   rm -f conf$$.sh
4384 fi
4385
4386
4387   as_lineno_1=$LINENO
4388   as_lineno_2=$LINENO
4389   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4390   test "x$as_lineno_1" != "x$as_lineno_2" &&
4391   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4392   # Find who we are.  Look in the path if we contain no path at all
4393   # relative or not.
4394   case $0 in
4395     *[\\/]* ) as_myself=$0 ;;
4396     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4402 done
4403
4404        ;;
4405   esac
4406   # We did not find ourselves, most probably we were run as `sh COMMAND'
4407   # in which case we are not to be found in the path.
4408   if test "x$as_myself" = x; then
4409     as_myself=$0
4410   fi
4411   if test ! -f "$as_myself"; then
4412     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4413 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4414    { (exit 1); exit 1; }; }
4415   fi
4416   case $CONFIG_SHELL in
4417   '')
4418     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for as_base in sh bash ksh sh5; do
4424          case $as_dir in
4425          /*)
4426            if ("$as_dir/$as_base" -c '
4427   as_lineno_1=$LINENO
4428   as_lineno_2=$LINENO
4429   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4430   test "x$as_lineno_1" != "x$as_lineno_2" &&
4431   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4432              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4433              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4434              CONFIG_SHELL=$as_dir/$as_base
4435              export CONFIG_SHELL
4436              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4437            fi;;
4438          esac
4439        done
4440 done
4441 ;;
4442   esac
4443
4444   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4445   # uniformly replaced by the line number.  The first 'sed' inserts a
4446   # line-number line before each line; the second 'sed' does the real
4447   # work.  The second script uses 'N' to pair each line-number line
4448   # with the numbered line, and appends trailing '-' during
4449   # substitution so that $LINENO is not a special case at line end.
4450   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4451   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4452   sed '=' <$as_myself |
4453     sed '
4454       N
4455       s,$,-,
4456       : loop
4457       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4458       t loop
4459       s,-$,,
4460       s,^['$as_cr_digits']*\n,,
4461     ' >$as_me.lineno &&
4462   chmod +x $as_me.lineno ||
4463     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4464 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4465    { (exit 1); exit 1; }; }
4466
4467   # Don't try to exec as it changes $[0], causing all sort of problems
4468   # (the dirname of $[0] is not the place where we might find the
4469   # original and so on.  Autoconf is especially sensible to this).
4470   . ./$as_me.lineno
4471   # Exit status is that of the last command.
4472   exit
4473 }
4474
4475
4476 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4477   *c*,-n*) ECHO_N= ECHO_C='
4478 ' ECHO_T='      ' ;;
4479   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4480   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4481 esac
4482
4483 if expr a : '\(a\)' >/dev/null 2>&1; then
4484   as_expr=expr
4485 else
4486   as_expr=false
4487 fi
4488
4489 rm -f conf$$ conf$$.exe conf$$.file
4490 echo >conf$$.file
4491 if ln -s conf$$.file conf$$ 2>/dev/null; then
4492   # We could just check for DJGPP; but this test a) works b) is more generic
4493   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4494   if test -f conf$$.exe; then
4495     # Don't use ln at all; we don't have any links
4496     as_ln_s='cp -p'
4497   else
4498     as_ln_s='ln -s'
4499   fi
4500 elif ln conf$$.file conf$$ 2>/dev/null; then
4501   as_ln_s=ln
4502 else
4503   as_ln_s='cp -p'
4504 fi
4505 rm -f conf$$ conf$$.exe conf$$.file
4506
4507 if mkdir -p . 2>/dev/null; then
4508   as_mkdir_p=:
4509 else
4510   as_mkdir_p=false
4511 fi
4512
4513 as_executable_p="test -f"
4514
4515 # Sed expression to map a string onto a valid CPP name.
4516 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4517
4518 # Sed expression to map a string onto a valid variable name.
4519 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4520
4521
4522 # IFS
4523 # We need space, tab and new line, in precisely that order.
4524 as_nl='
4525 '
4526 IFS="   $as_nl"
4527
4528 # CDPATH.
4529 $as_unset CDPATH
4530
4531 exec 6>&1
4532
4533 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4534 # report actual input values of CONFIG_FILES etc. instead of their
4535 # values after options handling.  Logging --version etc. is OK.
4536 exec 5>>config.log
4537 {
4538   echo
4539   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4540 ## Running $as_me. ##
4541 _ASBOX
4542 } >&5
4543 cat >&5 <<_CSEOF
4544
4545 This file was extended by libfirm $as_me 0.3.0, which was
4546 generated by GNU Autoconf 2.56.  Invocation command line was
4547
4548   CONFIG_FILES    = $CONFIG_FILES
4549   CONFIG_HEADERS  = $CONFIG_HEADERS
4550   CONFIG_LINKS    = $CONFIG_LINKS
4551   CONFIG_COMMANDS = $CONFIG_COMMANDS
4552   $ $0 $@
4553
4554 _CSEOF
4555 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4556 echo >&5
4557 _ACEOF
4558
4559 # Files that config.status was made for.
4560 if test -n "$ac_config_files"; then
4561   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4562 fi
4563
4564 if test -n "$ac_config_headers"; then
4565   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4566 fi
4567
4568 if test -n "$ac_config_links"; then
4569   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4570 fi
4571
4572 if test -n "$ac_config_commands"; then
4573   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4574 fi
4575
4576 cat >>$CONFIG_STATUS <<\_ACEOF
4577
4578 ac_cs_usage="\
4579 \`$as_me' instantiates files from templates according to the
4580 current configuration.
4581
4582 Usage: $0 [OPTIONS] [FILE]...
4583
4584   -h, --help       print this help, then exit
4585   -V, --version    print version number, then exit
4586   -q, --quiet      do not print progress messages
4587   -d, --debug      don't remove temporary files
4588       --recheck    update $as_me by reconfiguring in the same conditions
4589   --file=FILE[:TEMPLATE]
4590                    instantiate the configuration file FILE
4591   --header=FILE[:TEMPLATE]
4592                    instantiate the configuration header FILE
4593
4594 Configuration files:
4595 $config_files
4596
4597 Configuration headers:
4598 $config_headers
4599
4600 Configuration commands:
4601 $config_commands
4602
4603 Report bugs to <bug-autoconf@gnu.org>."
4604 _ACEOF
4605
4606 cat >>$CONFIG_STATUS <<_ACEOF
4607 ac_cs_version="\\
4608 libfirm config.status 0.3.0
4609 configured by $0, generated by GNU Autoconf 2.56,
4610   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4611
4612 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4613 Free Software Foundation, Inc.
4614 This config.status script is free software; the Free Software Foundation
4615 gives unlimited permission to copy, distribute and modify it."
4616 srcdir=$srcdir
4617 INSTALL="$INSTALL"
4618 _ACEOF
4619
4620 cat >>$CONFIG_STATUS <<\_ACEOF
4621 # If no file are specified by the user, then we need to provide default
4622 # value.  By we need to know if files were specified by the user.
4623 ac_need_defaults=:
4624 while test $# != 0
4625 do
4626   case $1 in
4627   --*=*)
4628     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4629     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4630     ac_shift=:
4631     ;;
4632   -*)
4633     ac_option=$1
4634     ac_optarg=$2
4635     ac_shift=shift
4636     ;;
4637   *) # This is not an option, so the user has probably given explicit
4638      # arguments.
4639      ac_option=$1
4640      ac_need_defaults=false;;
4641   esac
4642
4643   case $ac_option in
4644   # Handling of the options.
4645 _ACEOF
4646 cat >>$CONFIG_STATUS <<\_ACEOF
4647   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4648     ac_cs_recheck=: ;;
4649   --version | --vers* | -V )
4650     echo "$ac_cs_version"; exit 0 ;;
4651   --he | --h)
4652     # Conflict between --help and --header
4653     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4654 Try \`$0 --help' for more information." >&5
4655 echo "$as_me: error: ambiguous option: $1
4656 Try \`$0 --help' for more information." >&2;}
4657    { (exit 1); exit 1; }; };;
4658   --help | --hel | -h )
4659     echo "$ac_cs_usage"; exit 0 ;;
4660   --debug | --d* | -d )
4661     debug=: ;;
4662   --file | --fil | --fi | --f )
4663     $ac_shift
4664     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4665     ac_need_defaults=false;;
4666   --header | --heade | --head | --hea )
4667     $ac_shift
4668     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4669     ac_need_defaults=false;;
4670   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4671   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4672     ac_cs_silent=: ;;
4673
4674   # This is an error.
4675   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4676 Try \`$0 --help' for more information." >&5
4677 echo "$as_me: error: unrecognized option: $1
4678 Try \`$0 --help' for more information." >&2;}
4679    { (exit 1); exit 1; }; } ;;
4680
4681   *) ac_config_targets="$ac_config_targets $1" ;;
4682
4683   esac
4684   shift
4685 done
4686
4687 ac_configure_extra_args=
4688
4689 if $ac_cs_silent; then
4690   exec 6>/dev/null
4691   ac_configure_extra_args="$ac_configure_extra_args --silent"
4692 fi
4693
4694 _ACEOF
4695 cat >>$CONFIG_STATUS <<_ACEOF
4696 if \$ac_cs_recheck; then
4697   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4698   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4699 fi
4700
4701 _ACEOF
4702
4703
4704
4705
4706
4707 cat >>$CONFIG_STATUS <<\_ACEOF
4708 for ac_config_target in $ac_config_targets
4709 do
4710   case "$ac_config_target" in
4711   # Handling of arguments.
4712   "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4713   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4714   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4715   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4717    { (exit 1); exit 1; }; };;
4718   esac
4719 done
4720
4721 # If the user did not use the arguments to specify the items to instantiate,
4722 # then the envvar interface is used.  Set only those that are not.
4723 # We use the long form for the default assignment because of an extremely
4724 # bizarre bug on SunOS 4.1.3.
4725 if $ac_need_defaults; then
4726   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4727   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4728   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4729 fi
4730
4731 # Have a temporary directory for convenience.  Make it in the build tree
4732 # simply because there is no reason to put it here, and in addition,
4733 # creating and moving files from /tmp can sometimes cause problems.
4734 # Create a temporary directory, and hook for its removal unless debugging.
4735 $debug ||
4736 {
4737   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4738   trap '{ (exit 1); exit 1; }' 1 2 13 15
4739 }
4740
4741 # Create a (secure) tmp directory for tmp files.
4742
4743 {
4744   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4745   test -n "$tmp" && test -d "$tmp"
4746 }  ||
4747 {
4748   tmp=./confstat$$-$RANDOM
4749   (umask 077 && mkdir $tmp)
4750 } ||
4751 {
4752    echo "$me: cannot create a temporary directory in ." >&2
4753    { (exit 1); exit 1; }
4754 }
4755
4756 _ACEOF
4757
4758 cat >>$CONFIG_STATUS <<_ACEOF
4759
4760 #
4761 # CONFIG_FILES section.
4762 #
4763
4764 # No need to generate the scripts if there are no CONFIG_FILES.
4765 # This happens for instance when ./config.status config.h
4766 if test -n "\$CONFIG_FILES"; then
4767   # Protect against being on the right side of a sed subst in config.status.
4768   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4769    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4770 s,@SHELL@,$SHELL,;t t
4771 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4772 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4773 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4774 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4775 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4776 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4777 s,@exec_prefix@,$exec_prefix,;t t
4778 s,@prefix@,$prefix,;t t
4779 s,@program_transform_name@,$program_transform_name,;t t
4780 s,@bindir@,$bindir,;t t
4781 s,@sbindir@,$sbindir,;t t
4782 s,@libexecdir@,$libexecdir,;t t
4783 s,@datadir@,$datadir,;t t
4784 s,@sysconfdir@,$sysconfdir,;t t
4785 s,@sharedstatedir@,$sharedstatedir,;t t
4786 s,@localstatedir@,$localstatedir,;t t
4787 s,@libdir@,$libdir,;t t
4788 s,@includedir@,$includedir,;t t
4789 s,@oldincludedir@,$oldincludedir,;t t
4790 s,@infodir@,$infodir,;t t
4791 s,@mandir@,$mandir,;t t
4792 s,@build_alias@,$build_alias,;t t
4793 s,@host_alias@,$host_alias,;t t
4794 s,@target_alias@,$target_alias,;t t
4795 s,@DEFS@,$DEFS,;t t
4796 s,@ECHO_C@,$ECHO_C,;t t
4797 s,@ECHO_N@,$ECHO_N,;t t
4798 s,@ECHO_T@,$ECHO_T,;t t
4799 s,@LIBS@,$LIBS,;t t
4800 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4801 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4802 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4803 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4804 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4805 s,@enable_firm_jni@,$enable_firm_jni,;t t
4806 s,@disable_libiberty@,$disable_libiberty,;t t
4807 s,@CC@,$CC,;t t
4808 s,@CFLAGS@,$CFLAGS,;t t
4809 s,@LDFLAGS@,$LDFLAGS,;t t
4810 s,@CPPFLAGS@,$CPPFLAGS,;t t
4811 s,@ac_ct_CC@,$ac_ct_CC,;t t
4812 s,@EXEEXT@,$EXEEXT,;t t
4813 s,@OBJEXT@,$OBJEXT,;t t
4814 s,@LD@,$LD,;t t
4815 s,@ac_ct_LD@,$ac_ct_LD,;t t
4816 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4817 s,@AR@,$AR,;t t
4818 s,@TAR@,$TAR,;t t
4819 s,@RANLIB@,$RANLIB,;t t
4820 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4821 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4822 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4823 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4824 s,@LN_S@,$LN_S,;t t
4825 s,@DOXYGEN@,$DOXYGEN,;t t
4826 s,@DOT@,$DOT,;t t
4827 s,@JAVAC@,$JAVAC,;t t
4828 s,@JAVAH@,$JAVAH,;t t
4829 s,@CPP@,$CPP,;t t
4830 s,@EGREP@,$EGREP,;t t
4831 s,@LIBOBJS@,$LIBOBJS,;t t
4832 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4833 CEOF
4834
4835 _ACEOF
4836
4837   cat >>$CONFIG_STATUS <<\_ACEOF
4838   # Split the substitutions into bite-sized pieces for seds with
4839   # small command number limits, like on Digital OSF/1 and HP-UX.
4840   ac_max_sed_lines=48
4841   ac_sed_frag=1 # Number of current file.
4842   ac_beg=1 # First line for current file.
4843   ac_end=$ac_max_sed_lines # Line after last line for current file.
4844   ac_more_lines=:
4845   ac_sed_cmds=
4846   while $ac_more_lines; do
4847     if test $ac_beg -gt 1; then
4848       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4849     else
4850       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4851     fi
4852     if test ! -s $tmp/subs.frag; then
4853       ac_more_lines=false
4854     else
4855       # The purpose of the label and of the branching condition is to
4856       # speed up the sed processing (if there are no `@' at all, there
4857       # is no need to browse any of the substitutions).
4858       # These are the two extra sed commands mentioned above.
4859       (echo ':t
4860   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4861       if test -z "$ac_sed_cmds"; then
4862         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4863       else
4864         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4865       fi
4866       ac_sed_frag=`expr $ac_sed_frag + 1`
4867       ac_beg=$ac_end
4868       ac_end=`expr $ac_end + $ac_max_sed_lines`
4869     fi
4870   done
4871   if test -z "$ac_sed_cmds"; then
4872     ac_sed_cmds=cat
4873   fi
4874 fi # test -n "$CONFIG_FILES"
4875
4876 _ACEOF
4877 cat >>$CONFIG_STATUS <<\_ACEOF
4878 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4879   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4880   case $ac_file in
4881   - | *:- | *:-:* ) # input from stdin
4882         cat >$tmp/stdin
4883         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4884         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4885   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4886         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4887   * )   ac_file_in=$ac_file.in ;;
4888   esac
4889
4890   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4891   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4893          X"$ac_file" : 'X\(//\)[^/]' \| \
4894          X"$ac_file" : 'X\(//\)$' \| \
4895          X"$ac_file" : 'X\(/\)' \| \
4896          .     : '\(.\)' 2>/dev/null ||
4897 echo X"$ac_file" |
4898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4900           /^X\(\/\/\)$/{ s//\1/; q; }
4901           /^X\(\/\).*/{ s//\1/; q; }
4902           s/.*/./; q'`
4903   { if $as_mkdir_p; then
4904     mkdir -p "$ac_dir"
4905   else
4906     as_dir="$ac_dir"
4907     as_dirs=
4908     while test ! -d "$as_dir"; do
4909       as_dirs="$as_dir $as_dirs"
4910       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4912          X"$as_dir" : 'X\(//\)[^/]' \| \
4913          X"$as_dir" : 'X\(//\)$' \| \
4914          X"$as_dir" : 'X\(/\)' \| \
4915          .     : '\(.\)' 2>/dev/null ||
4916 echo X"$as_dir" |
4917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4919           /^X\(\/\/\)$/{ s//\1/; q; }
4920           /^X\(\/\).*/{ s//\1/; q; }
4921           s/.*/./; q'`
4922     done
4923     test ! -n "$as_dirs" || mkdir $as_dirs
4924   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4926    { (exit 1); exit 1; }; }; }
4927
4928   ac_builddir=.
4929
4930 if test "$ac_dir" != .; then
4931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4932   # A "../" for each directory in $ac_dir_suffix.
4933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4934 else
4935   ac_dir_suffix= ac_top_builddir=
4936 fi
4937
4938 case $srcdir in
4939   .)  # No --srcdir option.  We are building in place.
4940     ac_srcdir=.
4941     if test -z "$ac_top_builddir"; then
4942        ac_top_srcdir=.
4943     else
4944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4945     fi ;;
4946   [\\/]* | ?:[\\/]* )  # Absolute path.
4947     ac_srcdir=$srcdir$ac_dir_suffix;
4948     ac_top_srcdir=$srcdir ;;
4949   *) # Relative path.
4950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4952 esac
4953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4954 # absolute.
4955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4959
4960
4961   case $INSTALL in
4962   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4963   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4964   esac
4965
4966   if test x"$ac_file" != x-; then
4967     { echo "$as_me:$LINENO: creating $ac_file" >&5
4968 echo "$as_me: creating $ac_file" >&6;}
4969     rm -f "$ac_file"
4970   fi
4971   # Let's still pretend it is `configure' which instantiates (i.e., don't
4972   # use $as_me), people would be surprised to read:
4973   #    /* config.h.  Generated by config.status.  */
4974   if test x"$ac_file" = x-; then
4975     configure_input=
4976   else
4977     configure_input="$ac_file.  "
4978   fi
4979   configure_input=$configure_input"Generated from `echo $ac_file_in |
4980                                      sed 's,.*/,,'` by configure."
4981
4982   # First look for the input files in the build tree, otherwise in the
4983   # src tree.
4984   ac_file_inputs=`IFS=:
4985     for f in $ac_file_in; do
4986       case $f in
4987       -) echo $tmp/stdin ;;
4988       [\\/$]*)
4989          # Absolute (can't be DOS-style, as IFS=:)
4990          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4991 echo "$as_me: error: cannot find input file: $f" >&2;}
4992    { (exit 1); exit 1; }; }
4993          echo $f;;
4994       *) # Relative
4995          if test -f "$f"; then
4996            # Build tree
4997            echo $f
4998          elif test -f "$srcdir/$f"; then
4999            # Source tree
5000            echo $srcdir/$f
5001          else
5002            # /dev/null tree
5003            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5004 echo "$as_me: error: cannot find input file: $f" >&2;}
5005    { (exit 1); exit 1; }; }
5006          fi;;
5007       esac
5008     done` || { (exit 1); exit 1; }
5009 _ACEOF
5010 cat >>$CONFIG_STATUS <<_ACEOF
5011   sed "$ac_vpsub
5012 $extrasub
5013 _ACEOF
5014 cat >>$CONFIG_STATUS <<\_ACEOF
5015 :t
5016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5017 s,@configure_input@,$configure_input,;t t
5018 s,@srcdir@,$ac_srcdir,;t t
5019 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5020 s,@top_srcdir@,$ac_top_srcdir,;t t
5021 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5022 s,@builddir@,$ac_builddir,;t t
5023 s,@abs_builddir@,$ac_abs_builddir,;t t
5024 s,@top_builddir@,$ac_top_builddir,;t t
5025 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5026 s,@INSTALL@,$ac_INSTALL,;t t
5027 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5028   rm -f $tmp/stdin
5029   if test x"$ac_file" != x-; then
5030     mv $tmp/out $ac_file
5031   else
5032     cat $tmp/out
5033     rm -f $tmp/out
5034   fi
5035
5036 done
5037 _ACEOF
5038 cat >>$CONFIG_STATUS <<\_ACEOF
5039
5040 #
5041 # CONFIG_HEADER section.
5042 #
5043
5044 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5045 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5046 #
5047 # ac_d sets the value in "#define NAME VALUE" lines.
5048 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5049 ac_dB='[        ].*$,\1#\2'
5050 ac_dC=' '
5051 ac_dD=',;t'
5052 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5053 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5054 ac_uB='$,\1#\2define\3'
5055 ac_uC=' '
5056 ac_uD=',;t'
5057
5058 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5059   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5060   case $ac_file in
5061   - | *:- | *:-:* ) # input from stdin
5062         cat >$tmp/stdin
5063         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5064         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5065   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5066         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5067   * )   ac_file_in=$ac_file.in ;;
5068   esac
5069
5070   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5071 echo "$as_me: creating $ac_file" >&6;}
5072
5073   # First look for the input files in the build tree, otherwise in the
5074   # src tree.
5075   ac_file_inputs=`IFS=:
5076     for f in $ac_file_in; do
5077       case $f in
5078       -) echo $tmp/stdin ;;
5079       [\\/$]*)
5080          # Absolute (can't be DOS-style, as IFS=:)
5081          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5082 echo "$as_me: error: cannot find input file: $f" >&2;}
5083    { (exit 1); exit 1; }; }
5084          echo $f;;
5085       *) # Relative
5086          if test -f "$f"; then
5087            # Build tree
5088            echo $f
5089          elif test -f "$srcdir/$f"; then
5090            # Source tree
5091            echo $srcdir/$f
5092          else
5093            # /dev/null tree
5094            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5095 echo "$as_me: error: cannot find input file: $f" >&2;}
5096    { (exit 1); exit 1; }; }
5097          fi;;
5098       esac
5099     done` || { (exit 1); exit 1; }
5100   # Remove the trailing spaces.
5101   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5102
5103 _ACEOF
5104
5105 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5106 # `conftest.undefs', that substitutes the proper values into
5107 # config.h.in to produce config.h.  The first handles `#define'
5108 # templates, and the second `#undef' templates.
5109 # And first: Protect against being on the right side of a sed subst in
5110 # config.status.  Protect against being in an unquoted here document
5111 # in config.status.
5112 rm -f conftest.defines conftest.undefs
5113 # Using a here document instead of a string reduces the quoting nightmare.
5114 # Putting comments in sed scripts is not portable.
5115 #
5116 # `end' is used to avoid that the second main sed command (meant for
5117 # 0-ary CPP macros) applies to n-ary macro definitions.
5118 # See the Autoconf documentation for `clear'.
5119 cat >confdef2sed.sed <<\_ACEOF
5120 s/[\\&,]/\\&/g
5121 s,[\\$`],\\&,g
5122 t clear
5123 : clear
5124 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5125 t end
5126 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5127 : end
5128 _ACEOF
5129 # If some macros were called several times there might be several times
5130 # the same #defines, which is useless.  Nevertheless, we may not want to
5131 # sort them, since we want the *last* AC-DEFINE to be honored.
5132 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5133 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5134 rm -f confdef2sed.sed
5135
5136 # This sed command replaces #undef with comments.  This is necessary, for
5137 # example, in the case of _POSIX_SOURCE, which is predefined and required
5138 # on some systems where configure will not decide to define it.
5139 cat >>conftest.undefs <<\_ACEOF
5140 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5141 _ACEOF
5142
5143 # Break up conftest.defines because some shells have a limit on the size
5144 # of here documents, and old seds have small limits too (100 cmds).
5145 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5146 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5147 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5148 echo '  :' >>$CONFIG_STATUS
5149 rm -f conftest.tail
5150 while grep . conftest.defines >/dev/null
5151 do
5152   # Write a limited-size here document to $tmp/defines.sed.
5153   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5154   # Speed up: don't consider the non `#define' lines.
5155   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
5156   # Work around the forget-to-reset-the-flag bug.
5157   echo 't clr' >>$CONFIG_STATUS
5158   echo ': clr' >>$CONFIG_STATUS
5159   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5160   echo 'CEOF
5161   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5162   rm -f $tmp/in
5163   mv $tmp/out $tmp/in
5164 ' >>$CONFIG_STATUS
5165   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5166   rm -f conftest.defines
5167   mv conftest.tail conftest.defines
5168 done
5169 rm -f conftest.defines
5170 echo '  fi # grep' >>$CONFIG_STATUS
5171 echo >>$CONFIG_STATUS
5172
5173 # Break up conftest.undefs because some shells have a limit on the size
5174 # of here documents, and old seds have small limits too (100 cmds).
5175 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5176 rm -f conftest.tail
5177 while grep . conftest.undefs >/dev/null
5178 do
5179   # Write a limited-size here document to $tmp/undefs.sed.
5180   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5181   # Speed up: don't consider the non `#undef'
5182   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5183   # Work around the forget-to-reset-the-flag bug.
5184   echo 't clr' >>$CONFIG_STATUS
5185   echo ': clr' >>$CONFIG_STATUS
5186   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5187   echo 'CEOF
5188   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5189   rm -f $tmp/in
5190   mv $tmp/out $tmp/in
5191 ' >>$CONFIG_STATUS
5192   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5193   rm -f conftest.undefs
5194   mv conftest.tail conftest.undefs
5195 done
5196 rm -f conftest.undefs
5197
5198 cat >>$CONFIG_STATUS <<\_ACEOF
5199   # Let's still pretend it is `configure' which instantiates (i.e., don't
5200   # use $as_me), people would be surprised to read:
5201   #    /* config.h.  Generated by config.status.  */
5202   if test x"$ac_file" = x-; then
5203     echo "/* Generated by configure.  */" >$tmp/config.h
5204   else
5205     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5206   fi
5207   cat $tmp/in >>$tmp/config.h
5208   rm -f $tmp/in
5209   if test x"$ac_file" != x-; then
5210     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5211       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5212 echo "$as_me: $ac_file is unchanged" >&6;}
5213     else
5214       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5216          X"$ac_file" : 'X\(//\)[^/]' \| \
5217          X"$ac_file" : 'X\(//\)$' \| \
5218          X"$ac_file" : 'X\(/\)' \| \
5219          .     : '\(.\)' 2>/dev/null ||
5220 echo X"$ac_file" |
5221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5222           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5223           /^X\(\/\/\)$/{ s//\1/; q; }
5224           /^X\(\/\).*/{ s//\1/; q; }
5225           s/.*/./; q'`
5226       { if $as_mkdir_p; then
5227     mkdir -p "$ac_dir"
5228   else
5229     as_dir="$ac_dir"
5230     as_dirs=
5231     while test ! -d "$as_dir"; do
5232       as_dirs="$as_dir $as_dirs"
5233       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5234 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5235          X"$as_dir" : 'X\(//\)[^/]' \| \
5236          X"$as_dir" : 'X\(//\)$' \| \
5237          X"$as_dir" : 'X\(/\)' \| \
5238          .     : '\(.\)' 2>/dev/null ||
5239 echo X"$as_dir" |
5240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5241           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5242           /^X\(\/\/\)$/{ s//\1/; q; }
5243           /^X\(\/\).*/{ s//\1/; q; }
5244           s/.*/./; q'`
5245     done
5246     test ! -n "$as_dirs" || mkdir $as_dirs
5247   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5248 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5249    { (exit 1); exit 1; }; }; }
5250
5251       rm -f $ac_file
5252       mv $tmp/config.h $ac_file
5253     fi
5254   else
5255     cat $tmp/config.h
5256     rm -f $tmp/config.h
5257   fi
5258 done
5259 _ACEOF
5260 cat >>$CONFIG_STATUS <<\_ACEOF
5261
5262 #
5263 # CONFIG_COMMANDS section.
5264 #
5265 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5266   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5267   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5268   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5269 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5270          X"$ac_dest" : 'X\(//\)[^/]' \| \
5271          X"$ac_dest" : 'X\(//\)$' \| \
5272          X"$ac_dest" : 'X\(/\)' \| \
5273          .     : '\(.\)' 2>/dev/null ||
5274 echo X"$ac_dest" |
5275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5277           /^X\(\/\/\)$/{ s//\1/; q; }
5278           /^X\(\/\).*/{ s//\1/; q; }
5279           s/.*/./; q'`
5280   ac_builddir=.
5281
5282 if test "$ac_dir" != .; then
5283   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5284   # A "../" for each directory in $ac_dir_suffix.
5285   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5286 else
5287   ac_dir_suffix= ac_top_builddir=
5288 fi
5289
5290 case $srcdir in
5291   .)  # No --srcdir option.  We are building in place.
5292     ac_srcdir=.
5293     if test -z "$ac_top_builddir"; then
5294        ac_top_srcdir=.
5295     else
5296        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5297     fi ;;
5298   [\\/]* | ?:[\\/]* )  # Absolute path.
5299     ac_srcdir=$srcdir$ac_dir_suffix;
5300     ac_top_srcdir=$srcdir ;;
5301   *) # Relative path.
5302     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5303     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5304 esac
5305 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5306 # absolute.
5307 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5308 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5309 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5310 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5311
5312
5313   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5314 echo "$as_me: executing $ac_dest commands" >&6;}
5315   case $ac_dest in
5316     default )  touch stamp-h  ;;
5317   esac
5318 done
5319 _ACEOF
5320
5321 cat >>$CONFIG_STATUS <<\_ACEOF
5322
5323 { (exit 0); exit 0; }
5324 _ACEOF
5325 chmod +x $CONFIG_STATUS
5326 ac_clean_files=$ac_clean_files_save
5327
5328
5329 # configure is writing to config.log, and then calls config.status.
5330 # config.status does its own redirection, appending to config.log.
5331 # Unfortunately, on DOS this fails, as config.log is still kept open
5332 # by configure, so config.status won't be able to write to it; its
5333 # output is simply discarded.  So we exec the FD to /dev/null,
5334 # effectively closing config.log, so it can be properly (re)opened and
5335 # appended to by config.status.  When coming back to configure, we
5336 # need to make the FD available again.
5337 if test "$no_create" != yes; then
5338   ac_cs_success=:
5339   ac_config_status_args=
5340   test "$silent" = yes &&
5341     ac_config_status_args="$ac_config_status_args --quiet"
5342   exec 5>/dev/null
5343   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5344   exec 5>>config.log
5345   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5346   # would make configure fail if this is the last instruction.
5347   $ac_cs_success || { (exit 1); exit 1; }
5348 fi