converted to doxygen comments
[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
856 Some influential environment variables:
857   CC          C compiler command
858   CFLAGS      C compiler flags
859   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
860               nonstandard directory <lib dir>
861   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
862               headers in a nonstandard directory <include dir>
863   CPP         C preprocessor
864
865 Use these variables to override the choices made by `configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
867
868 _ACEOF
869 fi
870
871 if test "$ac_init_help" = "recursive"; then
872   # If there are subdirs, report their specific --help.
873   ac_popdir=`pwd`
874   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875     test -d $ac_dir || continue
876     ac_builddir=.
877
878 if test "$ac_dir" != .; then
879   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880   # A "../" for each directory in $ac_dir_suffix.
881   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882 else
883   ac_dir_suffix= ac_top_builddir=
884 fi
885
886 case $srcdir in
887   .)  # No --srcdir option.  We are building in place.
888     ac_srcdir=.
889     if test -z "$ac_top_builddir"; then
890        ac_top_srcdir=.
891     else
892        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893     fi ;;
894   [\\/]* | ?:[\\/]* )  # Absolute path.
895     ac_srcdir=$srcdir$ac_dir_suffix;
896     ac_top_srcdir=$srcdir ;;
897   *) # Relative path.
898     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899     ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 esac
901 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
902 # absolute.
903 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
904 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
905 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
906 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
907
908     cd $ac_dir
909     # Check for guested configure; otherwise get Cygnus style configure.
910     if test -f $ac_srcdir/configure.gnu; then
911       echo
912       $SHELL $ac_srcdir/configure.gnu  --help=recursive
913     elif test -f $ac_srcdir/configure; then
914       echo
915       $SHELL $ac_srcdir/configure  --help=recursive
916     elif test -f $ac_srcdir/configure.ac ||
917            test -f $ac_srcdir/configure.in; then
918       echo
919       $ac_configure --help
920     else
921       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
922     fi
923     cd $ac_popdir
924   done
925 fi
926
927 test -n "$ac_init_help" && exit 0
928 if $ac_init_version; then
929   cat <<\_ACEOF
930 libfirm configure 0.3.0
931 generated by GNU Autoconf 2.56
932
933 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934 Free Software Foundation, Inc.
935 This configure script is free software; the Free Software Foundation
936 gives unlimited permission to copy, distribute and modify it.
937 _ACEOF
938   exit 0
939 fi
940 exec 5>config.log
941 cat >&5 <<_ACEOF
942 This file contains any messages produced by compilers while
943 running configure, to aid debugging if configure makes a mistake.
944
945 It was created by libfirm $as_me 0.3.0, which was
946 generated by GNU Autoconf 2.56.  Invocation command line was
947
948   $ $0 $@
949
950 _ACEOF
951 {
952 cat <<_ASUNAME
953 ## --------- ##
954 ## Platform. ##
955 ## --------- ##
956
957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962
963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
965
966 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
967 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
970 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
971 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
972 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
973
974 _ASUNAME
975
976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977 for as_dir in $PATH
978 do
979   IFS=$as_save_IFS
980   test -z "$as_dir" && as_dir=.
981   echo "PATH: $as_dir"
982 done
983
984 } >&5
985
986 cat >&5 <<_ACEOF
987
988
989 ## ----------- ##
990 ## Core tests. ##
991 ## ----------- ##
992
993 _ACEOF
994
995
996 # Keep a trace of the command line.
997 # Strip out --no-create and --no-recursion so they do not pile up.
998 # Strip out --silent because we don't want to record it for future runs.
999 # Also quote any args containing shell meta-characters.
1000 # Make two passes to allow for proper duplicate-argument suppression.
1001 ac_configure_args=
1002 ac_configure_args0=
1003 ac_configure_args1=
1004 ac_sep=
1005 ac_must_keep_next=false
1006 for ac_pass in 1 2
1007 do
1008   for ac_arg
1009   do
1010     case $ac_arg in
1011     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013     | -silent | --silent | --silen | --sile | --sil)
1014       continue ;;
1015     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017     esac
1018     case $ac_pass in
1019     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020     2)
1021       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022       if test $ac_must_keep_next = true; then
1023         ac_must_keep_next=false # Got value, back to normal.
1024       else
1025         case $ac_arg in
1026           *=* | --config-cache | -C | -disable-* | --disable-* \
1027           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029           | -with-* | --with-* | -without-* | --without-* | --x)
1030             case "$ac_configure_args0 " in
1031               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1032             esac
1033             ;;
1034           -* ) ac_must_keep_next=true ;;
1035         esac
1036       fi
1037       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038       # Get rid of the leading space.
1039       ac_sep=" "
1040       ;;
1041     esac
1042   done
1043 done
1044 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log.  We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053   # Save into config.log some information that might help in debugging.
1054   {
1055     echo
1056
1057     cat <<\_ASBOX
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1061 _ASBOX
1062     echo
1063     # The following way of writing the cache mishandles newlines in values,
1064 {
1065   (set) 2>&1 |
1066     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067     *ac_space=\ *)
1068       sed -n \
1069         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071       ;;
1072     *)
1073       sed -n \
1074         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075       ;;
1076     esac;
1077 }
1078     echo
1079
1080     cat <<\_ASBOX
1081 ## ----------------- ##
1082 ## Output variables. ##
1083 ## ----------------- ##
1084 _ASBOX
1085     echo
1086     for ac_var in $ac_subst_vars
1087     do
1088       eval ac_val=$`echo $ac_var`
1089       echo "$ac_var='"'"'$ac_val'"'"'"
1090     done | sort
1091     echo
1092
1093     if test -n "$ac_subst_files"; then
1094       cat <<\_ASBOX
1095 ## ------------- ##
1096 ## Output files. ##
1097 ## ------------- ##
1098 _ASBOX
1099       echo
1100       for ac_var in $ac_subst_files
1101       do
1102         eval ac_val=$`echo $ac_var`
1103         echo "$ac_var='"'"'$ac_val'"'"'"
1104       done | sort
1105       echo
1106     fi
1107
1108     if test -s confdefs.h; then
1109       cat <<\_ASBOX
1110 ## ----------- ##
1111 ## confdefs.h. ##
1112 ## ----------- ##
1113 _ASBOX
1114       echo
1115       sed "/^$/d" confdefs.h | sort
1116       echo
1117     fi
1118     test "$ac_signal" != 0 &&
1119       echo "$as_me: caught signal $ac_signal"
1120     echo "$as_me: exit $exit_status"
1121   } >&5
1122   rm -f core core.* *.core &&
1123   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1124     exit $exit_status
1125      ' 0
1126 for ac_signal in 1 2 13 15; do
1127   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128 done
1129 ac_signal=0
1130
1131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132 rm -rf conftest* confdefs.h
1133 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134 echo >confdefs.h
1135
1136 # Predefined preprocessor variables.
1137
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_NAME "$PACKAGE_NAME"
1140 _ACEOF
1141
1142
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145 _ACEOF
1146
1147
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1150 _ACEOF
1151
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_STRING "$PACKAGE_STRING"
1155 _ACEOF
1156
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160 _ACEOF
1161
1162
1163 # Let the site file select an alternate cache file if it wants to.
1164 # Prefer explicitly selected file to automatically selected ones.
1165 if test -z "$CONFIG_SITE"; then
1166   if test "x$prefix" != xNONE; then
1167     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168   else
1169     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1170   fi
1171 fi
1172 for ac_site_file in $CONFIG_SITE; do
1173   if test -r "$ac_site_file"; then
1174     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175 echo "$as_me: loading site script $ac_site_file" >&6;}
1176     sed 's/^/| /' "$ac_site_file" >&5
1177     . "$ac_site_file"
1178   fi
1179 done
1180
1181 if test -r "$cache_file"; then
1182   # Some versions of bash will fail to source /dev/null (special
1183   # files actually), so we avoid doing that.
1184   if test -f "$cache_file"; then
1185     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186 echo "$as_me: loading cache $cache_file" >&6;}
1187     case $cache_file in
1188       [\\/]* | ?:[\\/]* ) . $cache_file;;
1189       *)                      . ./$cache_file;;
1190     esac
1191   fi
1192 else
1193   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194 echo "$as_me: creating cache $cache_file" >&6;}
1195   >$cache_file
1196 fi
1197
1198 # Check that the precious variables saved in the cache have kept the same
1199 # value.
1200 ac_cache_corrupted=false
1201 for ac_var in `(set) 2>&1 |
1202                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204   eval ac_new_set=\$ac_env_${ac_var}_set
1205   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206   eval ac_new_val="\$ac_env_${ac_var}_value"
1207   case $ac_old_set,$ac_new_set in
1208     set,)
1209       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211       ac_cache_corrupted=: ;;
1212     ,set)
1213       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215       ac_cache_corrupted=: ;;
1216     ,);;
1217     *)
1218       if test "x$ac_old_val" != "x$ac_new_val"; then
1219         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1222 echo "$as_me:   former value:  $ac_old_val" >&2;}
1223         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1224 echo "$as_me:   current value: $ac_new_val" >&2;}
1225         ac_cache_corrupted=:
1226       fi;;
1227   esac
1228   # Pass precious variables to config.status.
1229   if test "$ac_new_set" = set; then
1230     case $ac_new_val in
1231     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233     *) ac_arg=$ac_var=$ac_new_val ;;
1234     esac
1235     case " $ac_configure_args " in
1236       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1237       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238     esac
1239   fi
1240 done
1241 if $ac_cache_corrupted; then
1242   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246    { (exit 1); exit 1; }; }
1247 fi
1248
1249 ac_ext=c
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254
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 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1283                 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1284                 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
1285                 firmjni/Makefile firmjni/build_firm_jni firmjni/testprograms/Makefile"
1286
1287           ac_config_headers="$ac_config_headers config.h"
1288
1289
1290 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1291
1292
1293
1294 # Check whether --with-includedir or --without-includedir was given.
1295 if test "${with_includedir+set}" = set; then
1296   withval="$with_includedir"
1297   CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1298 else
1299   T_FLAG=""
1300 fi;
1301
1302
1303 # Check whether --enable-debug or --disable-debug was given.
1304 if test "${enable_debug+set}" = set; then
1305   enableval="$enable_debug"
1306   if test "$enableval" = yes; then
1307   cat >>confdefs.h <<\_ACEOF
1308 #define DEBUG_libfirm 1
1309 _ACEOF
1310
1311 else
1312   cat >>confdefs.h <<\_ACEOF
1313 #define NDEBUG 1
1314 _ACEOF
1315
1316 fi
1317 fi;
1318
1319
1320 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
1321 if test "${enable_gcc_inline+set}" = set; then
1322   enableval="$enable_gcc_inline"
1323   if test "$enableval" = yes; then
1324   cat >>confdefs.h <<\_ACEOF
1325 #define USE_GCC_INLINE 1
1326 _ACEOF
1327
1328 fi
1329 fi;
1330
1331
1332
1333 # Check whether --enable-profile or --disable-profile was given.
1334 if test "${enable_profile+set}" = set; then
1335   enableval="$enable_profile"
1336   if test "$enableval"=yes; then
1337   enable_profile_libfirm=yes
1338 fi
1339 else
1340   enable_profile_libfirm=no
1341 fi;
1342
1343
1344 # Check whether --enable-autodoc or --disable-autodoc was given.
1345 if test "${enable_autodoc+set}" = set; then
1346   enableval="$enable_autodoc"
1347   if test "$enableval"=yes; then
1348   enable_auto_documentation=yes
1349 fi
1350 else
1351   enable_auto_documentation=no
1352 fi;
1353
1354
1355
1356 # Check whether --enable-firmjni or --disable-firmjni was given.
1357 if test "${enable_firmjni+set}" = set; then
1358   enableval="$enable_firmjni"
1359   if test "$enableval"=yes; then
1360   enable_firm_jni=yes
1361 fi
1362 else
1363   enable_firm_jni=no
1364 fi;
1365
1366
1367 # Check whether --enable-libiberty or --disable-libiberty was given.
1368 if test "${enable_libiberty+set}" = set; then
1369   enableval="$enable_libiberty"
1370   if test "$enableval"=yes; then
1371   disable_libiberty_=yes
1372 fi
1373 else
1374   disable_libiberty=no
1375 fi;
1376
1377
1378
1379
1380 ac_ext=c
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385 if test -n "$ac_tool_prefix"; then
1386   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_CC+set}" = set; then
1391   echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393   if test -n "$CC"; then
1394   ac_cv_prog_CC="$CC" # Let the user override the test.
1395 else
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1398 do
1399   IFS=$as_save_IFS
1400   test -z "$as_dir" && as_dir=.
1401   for ac_exec_ext in '' $ac_executable_extensions; do
1402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405     break 2
1406   fi
1407 done
1408 done
1409
1410 fi
1411 fi
1412 CC=$ac_cv_prog_CC
1413 if test -n "$CC"; then
1414   echo "$as_me:$LINENO: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1416 else
1417   echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1419 fi
1420
1421 fi
1422 if test -z "$ac_cv_prog_CC"; then
1423   ac_ct_CC=$CC
1424   # Extract the first word of "gcc", so it can be a program name with args.
1425 set dummy gcc; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1429   echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431   if test -n "$ac_ct_CC"; then
1432   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1433 else
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 for as_dir in $PATH
1436 do
1437   IFS=$as_save_IFS
1438   test -z "$as_dir" && as_dir=.
1439   for ac_exec_ext in '' $ac_executable_extensions; do
1440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441     ac_cv_prog_ac_ct_CC="gcc"
1442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443     break 2
1444   fi
1445 done
1446 done
1447
1448 fi
1449 fi
1450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451 if test -n "$ac_ct_CC"; then
1452   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1453 echo "${ECHO_T}$ac_ct_CC" >&6
1454 else
1455   echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1457 fi
1458
1459   CC=$ac_ct_CC
1460 else
1461   CC="$ac_cv_prog_CC"
1462 fi
1463
1464 if test -z "$CC"; then
1465   if test -n "$ac_tool_prefix"; then
1466   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1467 set dummy ${ac_tool_prefix}cc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471   echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473   if test -n "$CC"; then
1474   ac_cv_prog_CC="$CC" # Let the user override the test.
1475 else
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 for as_dir in $PATH
1478 do
1479   IFS=$as_save_IFS
1480   test -z "$as_dir" && as_dir=.
1481   for ac_exec_ext in '' $ac_executable_extensions; do
1482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483     ac_cv_prog_CC="${ac_tool_prefix}cc"
1484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485     break 2
1486   fi
1487 done
1488 done
1489
1490 fi
1491 fi
1492 CC=$ac_cv_prog_CC
1493 if test -n "$CC"; then
1494   echo "$as_me:$LINENO: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1496 else
1497   echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1499 fi
1500
1501 fi
1502 if test -z "$ac_cv_prog_CC"; then
1503   ac_ct_CC=$CC
1504   # Extract the first word of "cc", so it can be a program name with args.
1505 set dummy cc; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   if test -n "$ac_ct_CC"; then
1512   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1516 do
1517   IFS=$as_save_IFS
1518   test -z "$as_dir" && as_dir=.
1519   for ac_exec_ext in '' $ac_executable_extensions; do
1520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521     ac_cv_prog_ac_ct_CC="cc"
1522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523     break 2
1524   fi
1525 done
1526 done
1527
1528 fi
1529 fi
1530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1534 else
1535   echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539   CC=$ac_ct_CC
1540 else
1541   CC="$ac_cv_prog_CC"
1542 fi
1543
1544 fi
1545 if test -z "$CC"; then
1546   # Extract the first word of "cc", so it can be a program name with args.
1547 set dummy cc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   if test -n "$CC"; then
1554   ac_cv_prog_CC="$CC" # Let the user override the test.
1555 else
1556   ac_prog_rejected=no
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 for as_dir in $PATH
1559 do
1560   IFS=$as_save_IFS
1561   test -z "$as_dir" && as_dir=.
1562   for ac_exec_ext in '' $ac_executable_extensions; do
1563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1565        ac_prog_rejected=yes
1566        continue
1567      fi
1568     ac_cv_prog_CC="cc"
1569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571   fi
1572 done
1573 done
1574
1575 if test $ac_prog_rejected = yes; then
1576   # We found a bogon in the path, so make sure we never use it.
1577   set dummy $ac_cv_prog_CC
1578   shift
1579   if test $# != 0; then
1580     # We chose a different compiler from the bogus one.
1581     # However, it has the same basename, so the bogon will be chosen
1582     # first if we set CC to just the basename; use the full file name.
1583     shift
1584     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1585   fi
1586 fi
1587 fi
1588 fi
1589 CC=$ac_cv_prog_CC
1590 if test -n "$CC"; then
1591   echo "$as_me:$LINENO: result: $CC" >&5
1592 echo "${ECHO_T}$CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598 fi
1599 if test -z "$CC"; then
1600   if test -n "$ac_tool_prefix"; then
1601   for ac_prog in cl
1602   do
1603     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608   echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610   if test -n "$CC"; then
1611   ac_cv_prog_CC="$CC" # Let the user override the test.
1612 else
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616   IFS=$as_save_IFS
1617   test -z "$as_dir" && as_dir=.
1618   for ac_exec_ext in '' $ac_executable_extensions; do
1619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622     break 2
1623   fi
1624 done
1625 done
1626
1627 fi
1628 fi
1629 CC=$ac_cv_prog_CC
1630 if test -n "$CC"; then
1631   echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1633 else
1634   echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1636 fi
1637
1638     test -n "$CC" && break
1639   done
1640 fi
1641 if test -z "$CC"; then
1642   ac_ct_CC=$CC
1643   for ac_prog in cl
1644 do
1645   # Extract the first word of "$ac_prog", so it can be a program name with args.
1646 set dummy $ac_prog; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   if test -n "$ac_ct_CC"; then
1653   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_ac_ct_CC="$ac_prog"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665   fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1675 else
1676   echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680   test -n "$ac_ct_CC" && break
1681 done
1682
1683   CC=$ac_ct_CC
1684 fi
1685
1686 fi
1687
1688
1689 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1690 See \`config.log' for more details." >&5
1691 echo "$as_me: error: no acceptable C compiler found in \$PATH
1692 See \`config.log' for more details." >&2;}
1693    { (exit 1); exit 1; }; }
1694
1695 # Provide some information about the compiler.
1696 echo "$as_me:$LINENO:" \
1697      "checking for C compiler version" >&5
1698 ac_compiler=`set X $ac_compile; echo $2`
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1700   (eval $ac_compiler --version </dev/null >&5) 2>&5
1701   ac_status=$?
1702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703   (exit $ac_status); }
1704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1705   (eval $ac_compiler -v </dev/null >&5) 2>&5
1706   ac_status=$?
1707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708   (exit $ac_status); }
1709 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1710   (eval $ac_compiler -V </dev/null >&5) 2>&5
1711   ac_status=$?
1712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713   (exit $ac_status); }
1714
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line $LINENO "configure"
1717 /* confdefs.h.  */
1718 _ACEOF
1719 cat confdefs.h >>conftest.$ac_ext
1720 cat >>conftest.$ac_ext <<_ACEOF
1721 /* end confdefs.h.  */
1722
1723 int
1724 main ()
1725 {
1726
1727   ;
1728   return 0;
1729 }
1730 _ACEOF
1731 ac_clean_files_save=$ac_clean_files
1732 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1733 # Try to create an executable without -o first, disregard a.out.
1734 # It will help us diagnose broken compilers, and finding out an intuition
1735 # of exeext.
1736 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1737 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1739 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1740   (eval $ac_link_default) 2>&5
1741   ac_status=$?
1742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743   (exit $ac_status); }; then
1744   # Find the output, starting from the most likely.  This scheme is
1745 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1746 # resort.
1747
1748 # Be careful to initialize this variable, since it used to be cached.
1749 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1750 ac_cv_exeext=
1751 # b.out is created by i960 compilers.
1752 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1753 do
1754   test -f "$ac_file" || continue
1755   case $ac_file in
1756     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1757         ;;
1758     conftest.$ac_ext )
1759         # This is the source file.
1760         ;;
1761     [ab].out )
1762         # We found the default executable, but exeext='' is most
1763         # certainly right.
1764         break;;
1765     *.* )
1766         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1767         # FIXME: I believe we export ac_cv_exeext for Libtool,
1768         # but it would be cool to find out if it's true.  Does anybody
1769         # maintain Libtool? --akim.
1770         export ac_cv_exeext
1771         break;;
1772     * )
1773         break;;
1774   esac
1775 done
1776 else
1777   echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1781 See \`config.log' for more details." >&5
1782 echo "$as_me: error: C compiler cannot create executables
1783 See \`config.log' for more details." >&2;}
1784    { (exit 77); exit 77; }; }
1785 fi
1786
1787 ac_exeext=$ac_cv_exeext
1788 echo "$as_me:$LINENO: result: $ac_file" >&5
1789 echo "${ECHO_T}$ac_file" >&6
1790
1791 # Check the compiler produces executables we can run.  If not, either
1792 # the compiler is broken, or we cross compile.
1793 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1794 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1795 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1796 # If not cross compiling, check that we can run a simple program.
1797 if test "$cross_compiling" != yes; then
1798   if { ac_try='./$ac_file'
1799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1800   (eval $ac_try) 2>&5
1801   ac_status=$?
1802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803   (exit $ac_status); }; }; then
1804     cross_compiling=no
1805   else
1806     if test "$cross_compiling" = maybe; then
1807         cross_compiling=yes
1808     else
1809         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1810 If you meant to cross compile, use \`--host'.
1811 See \`config.log' for more details." >&5
1812 echo "$as_me: error: cannot run C compiled programs.
1813 If you meant to cross compile, use \`--host'.
1814 See \`config.log' for more details." >&2;}
1815    { (exit 1); exit 1; }; }
1816     fi
1817   fi
1818 fi
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821
1822 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1823 ac_clean_files=$ac_clean_files_save
1824 # Check the compiler produces executables we can run.  If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1828 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1829 echo "${ECHO_T}$cross_compiling" >&6
1830
1831 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1834   (eval $ac_link) 2>&5
1835   ac_status=$?
1836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837   (exit $ac_status); }; then
1838   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1839 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1840 # work properly (i.e., refer to `conftest.exe'), while it won't with
1841 # `rm'.
1842 for ac_file in conftest.exe conftest conftest.*; do
1843   test -f "$ac_file" || continue
1844   case $ac_file in
1845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1846     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1847           export ac_cv_exeext
1848           break;;
1849     * ) break;;
1850   esac
1851 done
1852 else
1853   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1856 See \`config.log' for more details." >&2;}
1857    { (exit 1); exit 1; }; }
1858 fi
1859
1860 rm -f conftest$ac_cv_exeext
1861 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1862 echo "${ECHO_T}$ac_cv_exeext" >&6
1863
1864 rm -f conftest.$ac_ext
1865 EXEEXT=$ac_cv_exeext
1866 ac_exeext=$EXEEXT
1867 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1868 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1869 if test "${ac_cv_objext+set}" = set; then
1870   echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872   cat >conftest.$ac_ext <<_ACEOF
1873 #line $LINENO "configure"
1874 /* confdefs.h.  */
1875 _ACEOF
1876 cat confdefs.h >>conftest.$ac_ext
1877 cat >>conftest.$ac_ext <<_ACEOF
1878 /* end confdefs.h.  */
1879
1880 int
1881 main ()
1882 {
1883
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 rm -f conftest.o conftest.obj
1889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1890   (eval $ac_compile) 2>&5
1891   ac_status=$?
1892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893   (exit $ac_status); }; then
1894   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1895   case $ac_file in
1896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1897     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1898        break;;
1899   esac
1900 done
1901 else
1902   echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1908 See \`config.log' for more details." >&2;}
1909    { (exit 1); exit 1; }; }
1910 fi
1911
1912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1913 fi
1914 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1915 echo "${ECHO_T}$ac_cv_objext" >&6
1916 OBJEXT=$ac_cv_objext
1917 ac_objext=$OBJEXT
1918 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1919 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1920 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   cat >conftest.$ac_ext <<_ACEOF
1924 #line $LINENO "configure"
1925 /* confdefs.h.  */
1926 _ACEOF
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h.  */
1930
1931 int
1932 main ()
1933 {
1934 #ifndef __GNUC__
1935        choke me
1936 #endif
1937
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 rm -f conftest.$ac_objext
1943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944   (eval $ac_compile) 2>&5
1945   ac_status=$?
1946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947   (exit $ac_status); } &&
1948          { ac_try='test -s conftest.$ac_objext'
1949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1950   (eval $ac_try) 2>&5
1951   ac_status=$?
1952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953   (exit $ac_status); }; }; then
1954   ac_compiler_gnu=yes
1955 else
1956   echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_compiler_gnu=no
1960 fi
1961 rm -f conftest.$ac_objext conftest.$ac_ext
1962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1963
1964 fi
1965 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1966 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1967 GCC=`test $ac_compiler_gnu = yes && echo yes`
1968 ac_test_CFLAGS=${CFLAGS+set}
1969 ac_save_CFLAGS=$CFLAGS
1970 CFLAGS="-g"
1971 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1972 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1973 if test "${ac_cv_prog_cc_g+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   cat >conftest.$ac_ext <<_ACEOF
1977 #line $LINENO "configure"
1978 /* confdefs.h.  */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h.  */
1983
1984 int
1985 main ()
1986 {
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994   (eval $ac_compile) 2>&5
1995   ac_status=$?
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); } &&
1998          { ac_try='test -s conftest.$ac_objext'
1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000   (eval $ac_try) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); }; }; then
2004   ac_cv_prog_cc_g=yes
2005 else
2006   echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_cv_prog_cc_g=no
2010 fi
2011 rm -f conftest.$ac_objext conftest.$ac_ext
2012 fi
2013 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2014 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2015 if test "$ac_test_CFLAGS" = set; then
2016   CFLAGS=$ac_save_CFLAGS
2017 elif test $ac_cv_prog_cc_g = yes; then
2018   if test "$GCC" = yes; then
2019     CFLAGS="-g -O2"
2020   else
2021     CFLAGS="-g"
2022   fi
2023 else
2024   if test "$GCC" = yes; then
2025     CFLAGS="-O2"
2026   else
2027     CFLAGS=
2028   fi
2029 fi
2030 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2031 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2032 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   ac_cv_prog_cc_stdc=no
2036 ac_save_CC=$CC
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2039 /* confdefs.h.  */
2040 _ACEOF
2041 cat confdefs.h >>conftest.$ac_ext
2042 cat >>conftest.$ac_ext <<_ACEOF
2043 /* end confdefs.h.  */
2044 #include <stdarg.h>
2045 #include <stdio.h>
2046 #include <sys/types.h>
2047 #include <sys/stat.h>
2048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2049 struct buf { int x; };
2050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2051 static char *e (p, i)
2052      char **p;
2053      int i;
2054 {
2055   return p[i];
2056 }
2057 static char *f (char * (*g) (char **, int), char **p, ...)
2058 {
2059   char *s;
2060   va_list v;
2061   va_start (v,p);
2062   s = g (p, va_arg (v,int));
2063   va_end (v);
2064   return s;
2065 }
2066 int test (int i, double x);
2067 struct s1 {int (*f) (int a);};
2068 struct s2 {int (*f) (double a);};
2069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2070 int argc;
2071 char **argv;
2072 int
2073 main ()
2074 {
2075 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 # Don't try gcc -ansi; that turns off useful extensions and
2081 # breaks some systems' header files.
2082 # AIX                   -qlanglvl=ansi
2083 # Ultrix and OSF/1      -std1
2084 # HP-UX 10.20 and later -Ae
2085 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2086 # SVR4                  -Xc -D__EXTENSIONS__
2087 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2088 do
2089   CC="$ac_save_CC $ac_arg"
2090   rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); } &&
2096          { ac_try='test -s conftest.$ac_objext'
2097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098   (eval $ac_try) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }; }; then
2102   ac_cv_prog_cc_stdc=$ac_arg
2103 break
2104 else
2105   echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108 fi
2109 rm -f conftest.$ac_objext
2110 done
2111 rm -f conftest.$ac_ext conftest.$ac_objext
2112 CC=$ac_save_CC
2113
2114 fi
2115
2116 case "x$ac_cv_prog_cc_stdc" in
2117   x|xno)
2118     echo "$as_me:$LINENO: result: none needed" >&5
2119 echo "${ECHO_T}none needed" >&6 ;;
2120   *)
2121     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2122 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2123     CC="$CC $ac_cv_prog_cc_stdc" ;;
2124 esac
2125
2126 # Some people use a C++ compiler to compile C.  Since we use `exit',
2127 # in C++ we need to declare it.  In case someone uses the same compiler
2128 # for both compiling C and C++ we need to have the C++ compiler decide
2129 # the declaration of exit, since it's the most demanding environment.
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #ifndef __cplusplus
2132   choke me
2133 #endif
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); } &&
2141          { ac_try='test -s conftest.$ac_objext'
2142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143   (eval $ac_try) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; }; then
2147   for ac_declaration in \
2148    ''\
2149    '#include <stdlib.h>' \
2150    'extern "C" void std::exit (int) throw (); using std::exit;' \
2151    'extern "C" void std::exit (int); using std::exit;' \
2152    'extern "C" void exit (int) throw ();' \
2153    'extern "C" void exit (int);' \
2154    'void exit (int);'
2155 do
2156   cat >conftest.$ac_ext <<_ACEOF
2157 #line $LINENO "configure"
2158 /* confdefs.h.  */
2159 _ACEOF
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h.  */
2163 #include <stdlib.h>
2164 $ac_declaration
2165 int
2166 main ()
2167 {
2168 exit (42);
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 rm -f conftest.$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175   (eval $ac_compile) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); } &&
2179          { ac_try='test -s conftest.$ac_objext'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185   :
2186 else
2187   echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 continue
2191 fi
2192 rm -f conftest.$ac_objext conftest.$ac_ext
2193   cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 /* confdefs.h.  */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h.  */
2200 $ac_declaration
2201 int
2202 main ()
2203 {
2204 exit (42);
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211   (eval $ac_compile) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); } &&
2215          { ac_try='test -s conftest.$ac_objext'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221   break
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 fi
2227 rm -f conftest.$ac_objext conftest.$ac_ext
2228 done
2229 rm -f conftest*
2230 if test -n "$ac_declaration"; then
2231   echo '#ifdef __cplusplus' >>confdefs.h
2232   echo $ac_declaration      >>confdefs.h
2233   echo '#endif'             >>confdefs.h
2234 fi
2235
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 fi
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249
2250 if test -z "$LD"; then
2251   if test -n "$ac_tool_prefix"; then
2252   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}ld; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_LD+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   if test -n "$LD"; then
2260   ac_cv_prog_LD="$LD" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267   for ac_exec_ext in '' $ac_executable_extensions; do
2268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269     ac_cv_prog_LD="${ac_tool_prefix}ld"
2270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271     break 2
2272   fi
2273 done
2274 done
2275
2276 fi
2277 fi
2278 LD=$ac_cv_prog_LD
2279 if test -n "$LD"; then
2280   echo "$as_me:$LINENO: result: $LD" >&5
2281 echo "${ECHO_T}$LD" >&6
2282 else
2283   echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2285 fi
2286
2287 fi
2288 if test -z "$ac_cv_prog_LD"; then
2289   ac_ct_LD=$LD
2290   # Extract the first word of "ld", so it can be a program name with args.
2291 set dummy ld; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   if test -n "$ac_ct_LD"; then
2298   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303   IFS=$as_save_IFS
2304   test -z "$as_dir" && as_dir=.
2305   for ac_exec_ext in '' $ac_executable_extensions; do
2306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307     ac_cv_prog_ac_ct_LD="ld"
2308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312 done
2313
2314 fi
2315 fi
2316 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2317 if test -n "$ac_ct_LD"; then
2318   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2319 echo "${ECHO_T}$ac_ct_LD" >&6
2320 else
2321   echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2323 fi
2324
2325   LD=$ac_ct_LD
2326 else
2327   LD="$ac_cv_prog_LD"
2328 fi
2329
2330 fi
2331
2332 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2333 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2334 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337
2338 libfirm_cv_prog_ld_r=no
2339 if test "$LD"; then
2340   cat > conftest.$ac_ext <<EOF
2341 int foo() { return 0; }
2342 EOF
2343   if eval $ac_compile && mv conftest.o conftest2.o; then
2344     cat > conftest.$ac_ext <<EOF
2345 extern int foo();
2346 int main() { return foo(); }
2347 EOF
2348     if eval $ac_compile; then
2349       if $LD -r -o conftest conftest.o conftest2.o; then
2350         libfirm_cv_prog_ld_r=yes
2351       fi
2352     fi
2353   fi
2354 fi
2355 rm -f conftest*
2356 fi
2357 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2358 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2359
2360
2361 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2362   { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2363 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2364    { (exit 1); exit 1; }; }
2365 fi
2366
2367 # Extract the first word of "ar", so it can be a program name with args.
2368 set dummy ar; ac_word=$2
2369 echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2371 if test "${ac_cv_prog_AR+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   if test -n "$AR"; then
2375   ac_cv_prog_AR="$AR" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382   for ac_exec_ext in '' $ac_executable_extensions; do
2383   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2384     ac_cv_prog_AR=""ar""
2385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386     break 2
2387   fi
2388 done
2389 done
2390
2391   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2392 fi
2393 fi
2394 AR=$ac_cv_prog_AR
2395 if test -n "$AR"; then
2396   echo "$as_me:$LINENO: result: $AR" >&5
2397 echo "${ECHO_T}$AR" >&6
2398 else
2399   echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2401 fi
2402
2403 if test "$AR" != "ar"; then
2404   { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2405 echo "$as_me: error: need ar for creating archives" >&2;}
2406    { (exit 1); exit 1; }; }
2407 fi
2408
2409 # Extract the first word of "tar", so it can be a program name with args.
2410 set dummy tar; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_TAR+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   if test -n "$TAR"; then
2417   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   for ac_exec_ext in '' $ac_executable_extensions; do
2425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426     ac_cv_prog_TAR=""tar""
2427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2432
2433   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2434 fi
2435 fi
2436 TAR=$ac_cv_prog_TAR
2437 if test -n "$TAR"; then
2438   echo "$as_me:$LINENO: result: $TAR" >&5
2439 echo "${ECHO_T}$TAR" >&6
2440 else
2441   echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6
2443 fi
2444
2445 if test "$TAR" != "tar"; then
2446   { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2447 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2448    { (exit 1); exit 1; }; }
2449 fi
2450
2451
2452 if test -n "$ac_tool_prefix"; then
2453   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2455 echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2457 if test "${ac_cv_prog_RANLIB+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$RANLIB"; then
2461   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476
2477 fi
2478 fi
2479 RANLIB=$ac_cv_prog_RANLIB
2480 if test -n "$RANLIB"; then
2481   echo "$as_me:$LINENO: result: $RANLIB" >&5
2482 echo "${ECHO_T}$RANLIB" >&6
2483 else
2484   echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2486 fi
2487
2488 fi
2489 if test -z "$ac_cv_prog_RANLIB"; then
2490   ac_ct_RANLIB=$RANLIB
2491   # Extract the first word of "ranlib", so it can be a program name with args.
2492 set dummy ranlib; ac_word=$2
2493 echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test -n "$ac_ct_RANLIB"; then
2499   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508     ac_cv_prog_ac_ct_RANLIB="ranlib"
2509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513 done
2514
2515   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2516 fi
2517 fi
2518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2519 if test -n "$ac_ct_RANLIB"; then
2520   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2521 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2522 else
2523   echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2525 fi
2526
2527   RANLIB=$ac_ct_RANLIB
2528 else
2529   RANLIB="$ac_cv_prog_RANLIB"
2530 fi
2531
2532
2533 ac_aux_dir=
2534 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2535   if test -f $ac_dir/install-sh; then
2536     ac_aux_dir=$ac_dir
2537     ac_install_sh="$ac_aux_dir/install-sh -c"
2538     break
2539   elif test -f $ac_dir/install.sh; then
2540     ac_aux_dir=$ac_dir
2541     ac_install_sh="$ac_aux_dir/install.sh -c"
2542     break
2543   elif test -f $ac_dir/shtool; then
2544     ac_aux_dir=$ac_dir
2545     ac_install_sh="$ac_aux_dir/shtool install -c"
2546     break
2547   fi
2548 done
2549 if test -z "$ac_aux_dir"; then
2550   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2551 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2552    { (exit 1); exit 1; }; }
2553 fi
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2557
2558 # Find a good install program.  We prefer a C program (faster),
2559 # so one script is as good as another.  But avoid the broken or
2560 # incompatible versions:
2561 # SysV /etc/install, /usr/sbin/install
2562 # SunOS /usr/etc/install
2563 # IRIX /sbin/install
2564 # AIX /bin/install
2565 # AmigaOS /C/install, which installs bootblocks on floppy discs
2566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569 # ./install, which can be erroneously created by make from ./install.sh.
2570 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2571 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2572 if test -z "$INSTALL"; then
2573 if test "${ac_cv_path_install+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581   # Account for people who put trailing slashes in PATH elements.
2582 case $as_dir/ in
2583   ./ | .// | /cC/* | \
2584   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2585   /usr/ucb/* ) ;;
2586   *)
2587     # OSF1 and SCO ODT 3.0 have their own names for install.
2588     # Don't use installbsd from OSF since it installs stuff as root
2589     # by default.
2590     for ac_prog in ginstall scoinst install; do
2591       for ac_exec_ext in '' $ac_executable_extensions; do
2592         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2593           if test $ac_prog = install &&
2594             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2595             # AIX install.  It has an incompatible calling convention.
2596             :
2597           elif test $ac_prog = install &&
2598             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599             # program-specific install script used by HP pwplus--don't use.
2600             :
2601           else
2602             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603             break 3
2604           fi
2605         fi
2606       done
2607     done
2608     ;;
2609 esac
2610 done
2611
2612
2613 fi
2614   if test "${ac_cv_path_install+set}" = set; then
2615     INSTALL=$ac_cv_path_install
2616   else
2617     # As a last resort, use the slow shell script.  We don't cache a
2618     # path for INSTALL within a source directory, because that will
2619     # break other packages using the cache if that directory is
2620     # removed, or if the path is relative.
2621     INSTALL=$ac_install_sh
2622   fi
2623 fi
2624 echo "$as_me:$LINENO: result: $INSTALL" >&5
2625 echo "${ECHO_T}$INSTALL" >&6
2626
2627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628 # It thinks the first close brace ends the variable substitution.
2629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2630
2631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2632
2633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2634
2635
2636 touch tmp-install.a tmp-install.b
2637 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2638     INSTALL="$INSTALL -C"
2639 fi
2640 rm tmp-install.a tmp-install.b
2641
2642
2643 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2645 LN_S=$as_ln_s
2646 if test "$LN_S" = "ln -s"; then
2647   echo "$as_me:$LINENO: result: yes" >&5
2648 echo "${ECHO_T}yes" >&6
2649 else
2650   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2651 echo "${ECHO_T}no, using $LN_S" >&6
2652 fi
2653
2654
2655 if test "$enable_auto_documentation" = yes; then
2656   # Extract the first word of "doxygen", so it can be a program name with args.
2657 set dummy doxygen; ac_word=$2
2658 echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2660 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2661   echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663   if test -n "$DOXYGEN"; then
2664   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671   for ac_exec_ext in '' $ac_executable_extensions; do
2672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673     ac_cv_prog_DOXYGEN=""doxygen""
2674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678 done
2679
2680   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2681 fi
2682 fi
2683 DOXYGEN=$ac_cv_prog_DOXYGEN
2684 if test -n "$DOXYGEN"; then
2685   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2686 echo "${ECHO_T}$DOXYGEN" >&6
2687 else
2688   echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6
2690 fi
2691
2692   if test "$DOXYGEN" != "doxygen"; then
2693     { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2694 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2695    { (exit 1); exit 1; }; }
2696   fi
2697   # Extract the first word of "dot", so it can be a program name with args.
2698 set dummy dot; ac_word=$2
2699 echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2701 if test "${ac_cv_prog_DOT+set}" = set; then
2702   echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704   if test -n "$DOT"; then
2705   ac_cv_prog_DOT="$DOT" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710   IFS=$as_save_IFS
2711   test -z "$as_dir" && as_dir=.
2712   for ac_exec_ext in '' $ac_executable_extensions; do
2713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714     ac_cv_prog_DOT=""dot""
2715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716     break 2
2717   fi
2718 done
2719 done
2720
2721   test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2722 fi
2723 fi
2724 DOT=$ac_cv_prog_DOT
2725 if test -n "$DOT"; then
2726   echo "$as_me:$LINENO: result: $DOT" >&5
2727 echo "${ECHO_T}$DOT" >&6
2728 else
2729   echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6
2731 fi
2732
2733   if test "$DOT" != "dot"; then
2734     { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2735 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2736    { (exit 1); exit 1; }; }
2737   fi
2738 fi
2739
2740 if test "$enable_firm_jni" = yes; then
2741   # Extract the first word of "javac", so it can be a program name with args.
2742 set dummy javac; ac_word=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_JAVAC+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   if test -n "$JAVAC"; then
2749   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758     ac_cv_prog_JAVAC=""javac""
2759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764
2765   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2766 fi
2767 fi
2768 JAVAC=$ac_cv_prog_JAVAC
2769 if test -n "$JAVAC"; then
2770   echo "$as_me:$LINENO: result: $JAVAC" >&5
2771 echo "${ECHO_T}$JAVAC" >&6
2772 else
2773   echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2775 fi
2776
2777   if test "$JAVAC" != "javac"; then
2778     { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2779 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2780    { (exit 1); exit 1; }; }
2781   fi
2782   # Extract the first word of "javah", so it can be a program name with args.
2783 set dummy javah; ac_word=$2
2784 echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786 if test "${ac_cv_prog_JAVAH+set}" = set; then
2787   echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789   if test -n "$JAVAH"; then
2790   ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799     ac_cv_prog_JAVAH=""javah""
2800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805
2806   test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2807 fi
2808 fi
2809 JAVAH=$ac_cv_prog_JAVAH
2810 if test -n "$JAVAH"; then
2811   echo "$as_me:$LINENO: result: $JAVAH" >&5
2812 echo "${ECHO_T}$JAVAH" >&6
2813 else
2814   echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6
2816 fi
2817
2818   if test "$JAVAH" != "javah"; then
2819     { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2820 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2821    { (exit 1); exit 1; }; }
2822   fi
2823 fi
2824
2825
2826
2827
2828 ac_ext=c
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2834 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2835 # On Suns, sometimes $CPP names a directory.
2836 if test -n "$CPP" && test -d "$CPP"; then
2837   CPP=
2838 fi
2839 if test -z "$CPP"; then
2840   if test "${ac_cv_prog_CPP+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843       # Double quotes because CPP needs to be expanded
2844     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2845     do
2846       ac_preproc_ok=false
2847 for ac_c_preproc_warn_flag in '' yes
2848 do
2849   # Use a header file that comes with gcc, so configuring glibc
2850   # with a fresh cross-compiler works.
2851   # On the NeXT, cc -E runs the code through the compiler's parser,
2852   # not just through cpp. "Syntax error" is here to catch this case.
2853   cat >conftest.$ac_ext <<_ACEOF
2854 #line $LINENO "configure"
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860 #include <assert.h>
2861                      Syntax error
2862 _ACEOF
2863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2865   ac_status=$?
2866   grep -v '^ *+' conftest.er1 >conftest.err
2867   rm -f conftest.er1
2868   cat conftest.err >&5
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } >/dev/null; then
2871   if test -s conftest.err; then
2872     ac_cpp_err=$ac_c_preproc_warn_flag
2873   else
2874     ac_cpp_err=
2875   fi
2876 else
2877   ac_cpp_err=yes
2878 fi
2879 if test -z "$ac_cpp_err"; then
2880   :
2881 else
2882   echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2884
2885   # Broken: fails on valid input.
2886 continue
2887 fi
2888 rm -f conftest.err conftest.$ac_ext
2889
2890   # OK, works on sane cases.  Now check whether non-existent headers
2891   # can be detected and how.
2892   cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899 #include <ac_nonexistent.h>
2900 _ACEOF
2901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2903   ac_status=$?
2904   grep -v '^ *+' conftest.er1 >conftest.err
2905   rm -f conftest.er1
2906   cat conftest.err >&5
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); } >/dev/null; then
2909   if test -s conftest.err; then
2910     ac_cpp_err=$ac_c_preproc_warn_flag
2911   else
2912     ac_cpp_err=
2913   fi
2914 else
2915   ac_cpp_err=yes
2916 fi
2917 if test -z "$ac_cpp_err"; then
2918   # Broken: success on invalid input.
2919 continue
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924   # Passes both tests.
2925 ac_preproc_ok=:
2926 break
2927 fi
2928 rm -f conftest.err conftest.$ac_ext
2929
2930 done
2931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2932 rm -f conftest.err conftest.$ac_ext
2933 if $ac_preproc_ok; then
2934   break
2935 fi
2936
2937     done
2938     ac_cv_prog_CPP=$CPP
2939
2940 fi
2941   CPP=$ac_cv_prog_CPP
2942 else
2943   ac_cv_prog_CPP=$CPP
2944 fi
2945 echo "$as_me:$LINENO: result: $CPP" >&5
2946 echo "${ECHO_T}$CPP" >&6
2947 ac_preproc_ok=false
2948 for ac_c_preproc_warn_flag in '' yes
2949 do
2950   # Use a header file that comes with gcc, so configuring glibc
2951   # with a fresh cross-compiler works.
2952   # On the NeXT, cc -E runs the code through the compiler's parser,
2953   # not just through cpp. "Syntax error" is here to catch this case.
2954   cat >conftest.$ac_ext <<_ACEOF
2955 #line $LINENO "configure"
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961 #include <assert.h>
2962                      Syntax error
2963 _ACEOF
2964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } >/dev/null; then
2972   if test -s conftest.err; then
2973     ac_cpp_err=$ac_c_preproc_warn_flag
2974   else
2975     ac_cpp_err=
2976   fi
2977 else
2978   ac_cpp_err=yes
2979 fi
2980 if test -z "$ac_cpp_err"; then
2981   :
2982 else
2983   echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986   # Broken: fails on valid input.
2987 continue
2988 fi
2989 rm -f conftest.err conftest.$ac_ext
2990
2991   # OK, works on sane cases.  Now check whether non-existent headers
2992   # can be detected and how.
2993   cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000 #include <ac_nonexistent.h>
3001 _ACEOF
3002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004   ac_status=$?
3005   grep -v '^ *+' conftest.er1 >conftest.err
3006   rm -f conftest.er1
3007   cat conftest.err >&5
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); } >/dev/null; then
3010   if test -s conftest.err; then
3011     ac_cpp_err=$ac_c_preproc_warn_flag
3012   else
3013     ac_cpp_err=
3014   fi
3015 else
3016   ac_cpp_err=yes
3017 fi
3018 if test -z "$ac_cpp_err"; then
3019   # Broken: success on invalid input.
3020 continue
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025   # Passes both tests.
3026 ac_preproc_ok=:
3027 break
3028 fi
3029 rm -f conftest.err conftest.$ac_ext
3030
3031 done
3032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3033 rm -f conftest.err conftest.$ac_ext
3034 if $ac_preproc_ok; then
3035   :
3036 else
3037   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3040 See \`config.log' for more details." >&2;}
3041    { (exit 1); exit 1; }; }
3042 fi
3043
3044 ac_ext=c
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049
3050
3051 echo "$as_me:$LINENO: checking for egrep" >&5
3052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3053 if test "${ac_cv_prog_egrep+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3057     then ac_cv_prog_egrep='grep -E'
3058     else ac_cv_prog_egrep='egrep'
3059     fi
3060 fi
3061 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3062 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3063  EGREP=$ac_cv_prog_egrep
3064
3065
3066 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3068 if test "${ac_cv_header_stdc+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   cat >conftest.$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078 #include <stdlib.h>
3079 #include <stdarg.h>
3080 #include <string.h>
3081 #include <float.h>
3082
3083 int
3084 main ()
3085 {
3086
3087   ;
3088   return 0;
3089 }
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093   (eval $ac_compile) 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } &&
3097          { ac_try='test -s conftest.$ac_objext'
3098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099   (eval $ac_try) 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   ac_cv_header_stdc=yes
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 ac_cv_header_stdc=no
3109 fi
3110 rm -f conftest.$ac_objext conftest.$ac_ext
3111
3112 if test $ac_cv_header_stdc = yes; then
3113   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3114   cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121 #include <string.h>
3122
3123 _ACEOF
3124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3125   $EGREP "memchr" >/dev/null 2>&1; then
3126   :
3127 else
3128   ac_cv_header_stdc=no
3129 fi
3130 rm -f conftest*
3131
3132 fi
3133
3134 if test $ac_cv_header_stdc = yes; then
3135   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3136   cat >conftest.$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 #include <stdlib.h>
3144
3145 _ACEOF
3146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3147   $EGREP "free" >/dev/null 2>&1; then
3148   :
3149 else
3150   ac_cv_header_stdc=no
3151 fi
3152 rm -f conftest*
3153
3154 fi
3155
3156 if test $ac_cv_header_stdc = yes; then
3157   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3158   if test "$cross_compiling" = yes; then
3159   :
3160 else
3161   cat >conftest.$ac_ext <<_ACEOF
3162 #line $LINENO "configure"
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <ctype.h>
3169 #if ((' ' & 0x0FF) == 0x020)
3170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3172 #else
3173 # define ISLOWER(c) \
3174                    (('a' <= (c) && (c) <= 'i') \
3175                      || ('j' <= (c) && (c) <= 'r') \
3176                      || ('s' <= (c) && (c) <= 'z'))
3177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3178 #endif
3179
3180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3181 int
3182 main ()
3183 {
3184   int i;
3185   for (i = 0; i < 256; i++)
3186     if (XOR (islower (i), ISLOWER (i))
3187         || toupper (i) != TOUPPER (i))
3188       exit(2);
3189   exit (0);
3190 }
3191 _ACEOF
3192 rm -f conftest$ac_exeext
3193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3194   (eval $ac_link) 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199   (eval $ac_try) 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; }; then
3203   :
3204 else
3205   echo "$as_me: program exited with status $ac_status" >&5
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 ( exit $ac_status )
3210 ac_cv_header_stdc=no
3211 fi
3212 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3213 fi
3214 fi
3215 fi
3216 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3217 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3218 if test $ac_cv_header_stdc = yes; then
3219
3220 cat >>confdefs.h <<\_ACEOF
3221 #define STDC_HEADERS 1
3222 _ACEOF
3223
3224 fi
3225
3226
3227
3228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3239                   inttypes.h stdint.h unistd.h
3240 do
3241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3242 echo "$as_me:$LINENO: checking for $ac_header" >&5
3243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   cat >conftest.$ac_ext <<_ACEOF
3248 #line $LINENO "configure"
3249 /* confdefs.h.  */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h.  */
3254 $ac_includes_default
3255
3256 #include <$ac_header>
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260   (eval $ac_compile) 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); } &&
3264          { ac_try='test -s conftest.$ac_objext'
3265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266   (eval $ac_try) 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; }; then
3270   eval "$as_ac_Header=yes"
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 eval "$as_ac_Header=no"
3276 fi
3277 rm -f conftest.$ac_objext conftest.$ac_ext
3278 fi
3279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3282   cat >>confdefs.h <<_ACEOF
3283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3284 _ACEOF
3285
3286 fi
3287
3288 done
3289
3290
3291
3292 for ac_header in math.h
3293 do
3294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3296   echo "$as_me:$LINENO: checking for $ac_header" >&5
3297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 fi
3301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3303 else
3304   # Is the header compilable?
3305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3307 cat >conftest.$ac_ext <<_ACEOF
3308 #line $LINENO "configure"
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314 $ac_includes_default
3315 #include <$ac_header>
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319   (eval $ac_compile) 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } &&
3323          { ac_try='test -s conftest.$ac_objext'
3324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325   (eval $ac_try) 2>&5
3326   ac_status=$?
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; }; then
3329   ac_header_compiler=yes
3330 else
3331   echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_header_compiler=no
3335 fi
3336 rm -f conftest.$ac_objext conftest.$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3338 echo "${ECHO_T}$ac_header_compiler" >&6
3339
3340 # Is the header present?
3341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3343 cat >conftest.$ac_ext <<_ACEOF
3344 #line $LINENO "configure"
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350 #include <$ac_header>
3351 _ACEOF
3352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } >/dev/null; then
3360   if test -s conftest.err; then
3361     ac_cpp_err=$ac_c_preproc_warn_flag
3362   else
3363     ac_cpp_err=
3364   fi
3365 else
3366   ac_cpp_err=yes
3367 fi
3368 if test -z "$ac_cpp_err"; then
3369   ac_header_preproc=yes
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374   ac_header_preproc=no
3375 fi
3376 rm -f conftest.err conftest.$ac_ext
3377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3378 echo "${ECHO_T}$ac_header_preproc" >&6
3379
3380 # So?  What about this header?
3381 case $ac_header_compiler:$ac_header_preproc in
3382   yes:no )
3383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3387     (
3388       cat <<\_ASBOX
3389 ## ------------------------------------ ##
3390 ## Report this to bug-autoconf@gnu.org. ##
3391 ## ------------------------------------ ##
3392 _ASBOX
3393     ) |
3394       sed "s/^/$as_me: WARNING:     /" >&2
3395     ;;
3396   no:yes )
3397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3399     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3403     (
3404       cat <<\_ASBOX
3405 ## ------------------------------------ ##
3406 ## Report this to bug-autoconf@gnu.org. ##
3407 ## ------------------------------------ ##
3408 _ASBOX
3409     ) |
3410       sed "s/^/$as_me: WARNING:     /" >&2
3411     ;;
3412 esac
3413 echo "$as_me:$LINENO: checking for $ac_header" >&5
3414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418   eval "$as_ac_Header=$ac_header_preproc"
3419 fi
3420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3422
3423 fi
3424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3425   cat >>confdefs.h <<_ACEOF
3426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3427 _ACEOF
3428  ac_math_headers="yes"
3429 else
3430   ac_math_headers="no"
3431 fi
3432
3433 done
3434
3435 if test "$ac_math_headers" != yes; then
3436     { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3437 echo "$as_me: error: \"math header file not found\"" >&2;}
3438    { (exit 1); exit 1; }; }
3439 fi
3440
3441
3442 #dnl check for the gnu multiprecission (gmp) header file
3443
3444 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3445 #if test "$ac_gmp_headers" != yes; then
3446 #  dnl gmp header not found.
3447 #  AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3448 #fi
3449
3450
3451 echo "$as_me:$LINENO: checking for obstacks" >&5
3452 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
3453 if test "${ac_cv_func_obstack+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   cat >conftest.$ac_ext <<_ACEOF
3457 #line $LINENO "configure"
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463 #include "obstack.h"
3464 int
3465 main ()
3466 {
3467 struct obstack *mem; obstack_free(mem,(char *) 0)
3468   ;
3469   return 0;
3470 }
3471 _ACEOF
3472 rm -f conftest.$ac_objext conftest$ac_exeext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3474   (eval $ac_link) 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } &&
3478          { ac_try='test -s conftest$ac_exeext'
3479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480   (eval $ac_try) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); }; }; then
3484   ac_cv_func_obstack=yes
3485 else
3486   echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 ac_cv_func_obstack=no
3490 fi
3491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3492 fi
3493 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
3494 echo "${ECHO_T}$ac_cv_func_obstack" >&6
3495 if test $ac_cv_func_obstack = yes; then
3496
3497 cat >>confdefs.h <<\_ACEOF
3498 #define HAVE_OBSTACK 1
3499 _ACEOF
3500
3501 else
3502   LIBOBJS="$LIBOBJS obstack.$ac_objext"
3503 fi
3504
3505
3506 #AC_CHECK_HEADERS(obstack.h, ac_obstack_headers="yes", ac_obstack_headers="no")
3507 #if test "$ac_obstack_headers" != yes; then
3508 if test $ac_cv_func_obstack != yes; then
3509     { { echo "$as_me:$LINENO: error: \"no obstack support\"" >&5
3510 echo "$as_me: error: \"no obstack support\"" >&2;}
3511    { (exit 1); exit 1; }; }
3512 fi
3513
3514
3515
3516 if test "$enable_firm_jni" = yes; then
3517
3518 for ac_header in jni.h
3519 do
3520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3522   echo "$as_me:$LINENO: checking for $ac_header" >&5
3523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 fi
3527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3529 else
3530   # Is the header compilable?
3531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3534 #line $LINENO "configure"
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540 $ac_includes_default
3541 #include <$ac_header>
3542 _ACEOF
3543 rm -f conftest.$ac_objext
3544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545   (eval $ac_compile) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } &&
3549          { ac_try='test -s conftest.$ac_objext'
3550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551   (eval $ac_try) 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; }; then
3555   ac_header_compiler=yes
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 ac_header_compiler=no
3561 fi
3562 rm -f conftest.$ac_objext conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3564 echo "${ECHO_T}$ac_header_compiler" >&6
3565
3566 # Is the header present?
3567 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #include <$ac_header>
3577 _ACEOF
3578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } >/dev/null; then
3586   if test -s conftest.err; then
3587     ac_cpp_err=$ac_c_preproc_warn_flag
3588   else
3589     ac_cpp_err=
3590   fi
3591 else
3592   ac_cpp_err=yes
3593 fi
3594 if test -z "$ac_cpp_err"; then
3595   ac_header_preproc=yes
3596 else
3597   echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600   ac_header_preproc=no
3601 fi
3602 rm -f conftest.err conftest.$ac_ext
3603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3604 echo "${ECHO_T}$ac_header_preproc" >&6
3605
3606 # So?  What about this header?
3607 case $ac_header_compiler:$ac_header_preproc in
3608   yes:no )
3609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3613     (
3614       cat <<\_ASBOX
3615 ## ------------------------------------ ##
3616 ## Report this to bug-autoconf@gnu.org. ##
3617 ## ------------------------------------ ##
3618 _ASBOX
3619     ) |
3620       sed "s/^/$as_me: WARNING:     /" >&2
3621     ;;
3622   no:yes )
3623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3625     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3629     (
3630       cat <<\_ASBOX
3631 ## ------------------------------------ ##
3632 ## Report this to bug-autoconf@gnu.org. ##
3633 ## ------------------------------------ ##
3634 _ASBOX
3635     ) |
3636       sed "s/^/$as_me: WARNING:     /" >&2
3637     ;;
3638 esac
3639 echo "$as_me:$LINENO: checking for $ac_header" >&5
3640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   eval "$as_ac_Header=$ac_header_preproc"
3645 fi
3646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3648
3649 fi
3650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3651   cat >>confdefs.h <<_ACEOF
3652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3653 _ACEOF
3654  ac_jni_headers="yes"
3655 else
3656   ac_jni_headers="no"
3657 fi
3658
3659 done
3660
3661   if test "$ac_jni_headers" != yes; then
3662     { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" >&5
3663 echo "$as_me: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" >&2;}
3664    { (exit 1); exit 1; }; }
3665   fi
3666 fi
3667
3668
3669
3670 #dnl check for the gnu multiprecission (gmp) library
3671
3672 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3673 #if test "$ac_gmp_library" != yes; then
3674 #  dnl gmp library not found.
3675 #  AC_MSG_ERROR("GNU multiprecission gmp library not found")
3676 #fi
3677
3678
3679 echo "$as_me:$LINENO: checking for main in -lm" >&5
3680 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3681 if test "${ac_cv_lib_m_main+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   ac_check_lib_save_LIBS=$LIBS
3685 LIBS="-lm  $LIBS"
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3688 /* confdefs.h.  */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h.  */
3693
3694
3695 int
3696 main ()
3697 {
3698 main ();
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705   (eval $ac_link) 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } &&
3709          { ac_try='test -s conftest$ac_exeext'
3710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711   (eval $ac_try) 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); }; }; then
3715   ac_cv_lib_m_main=yes
3716 else
3717   echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 ac_cv_lib_m_main=no
3721 fi
3722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3723 LIBS=$ac_check_lib_save_LIBS
3724 fi
3725 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3726 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3727 if test $ac_cv_lib_m_main = yes; then
3728   ac_m_library="yes"
3729 else
3730   ac_m_library="no"
3731 fi
3732
3733 if test "$ac_m_library" != yes; then
3734     { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3735 echo "$as_me: error: \"standard math library not found\"" >&2;}
3736    { (exit 1); exit 1; }; }
3737 fi
3738
3739
3740
3741
3742
3743
3744 echo "$as_me:$LINENO: checking for strerror" >&5
3745 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
3746 if test "${ac_cv_func_strerror+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   cat >conftest.$ac_ext <<_ACEOF
3750 #line $LINENO "configure"
3751 /* confdefs.h.  */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h.  */
3756 /* System header to define __stub macros and hopefully few prototypes,
3757     which can conflict with char strerror (); below.  */
3758 #include <assert.h>
3759 /* Override any gcc2 internal prototype to avoid an error.  */
3760 #ifdef __cplusplus
3761 extern "C"
3762 {
3763 #endif
3764 /* We use char because int might match the return type of a gcc2
3765    builtin and then its argument prototype would still apply.  */
3766 char strerror ();
3767 /* The GNU C library defines this for functions which it implements
3768     to always fail with ENOSYS.  Some functions are actually named
3769     something starting with __ and the normal name is an alias.  */
3770 #if defined (__stub_strerror) || defined (__stub___strerror)
3771 choke me
3772 #else
3773 char (*f) () = strerror;
3774 #endif
3775 #ifdef __cplusplus
3776 }
3777 #endif
3778
3779 int
3780 main ()
3781 {
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789   (eval $ac_link) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } &&
3793          { ac_try='test -s conftest$ac_exeext'
3794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795   (eval $ac_try) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; }; then
3799   ac_cv_func_strerror=yes
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 ac_cv_func_strerror=no
3805 fi
3806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807 fi
3808 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
3809 echo "${ECHO_T}$ac_cv_func_strerror" >&6
3810 if test $ac_cv_func_strerror = yes; then
3811   :
3812 else
3813   { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
3814 echo "$as_me: error: \"need strerror function\"" >&2;}
3815    { (exit 1); exit 1; }; }
3816
3817 fi
3818
3819
3820
3821
3822
3823           ac_config_files="$ac_config_files $ac_output_file"
3824           ac_config_commands="$ac_config_commands default"
3825 cat >confcache <<\_ACEOF
3826 # This file is a shell script that caches the results of configure
3827 # tests run on this system so they can be shared between configure
3828 # scripts and configure runs, see configure's option --config-cache.
3829 # It is not useful on other systems.  If it contains results you don't
3830 # want to keep, you may remove or edit it.
3831 #
3832 # config.status only pays attention to the cache file if you give it
3833 # the --recheck option to rerun configure.
3834 #
3835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3837 # following values.
3838
3839 _ACEOF
3840
3841 # The following way of writing the cache mishandles newlines in values,
3842 # but we know of no workaround that is simple, portable, and efficient.
3843 # So, don't put newlines in cache variables' values.
3844 # Ultrix sh set writes to stderr and can't be redirected directly,
3845 # and sets the high bit in the cache file unless we assign to the vars.
3846 {
3847   (set) 2>&1 |
3848     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3849     *ac_space=\ *)
3850       # `set' does not quote correctly, so add quotes (double-quote
3851       # substitution turns \\\\ into \\, and sed turns \\ into \).
3852       sed -n \
3853         "s/'/'\\\\''/g;
3854           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3855       ;;
3856     *)
3857       # `set' quotes correctly as required by POSIX, so do not add quotes.
3858       sed -n \
3859         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3860       ;;
3861     esac;
3862 } |
3863   sed '
3864      t clear
3865      : clear
3866      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3867      t end
3868      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3869      : end' >>confcache
3870 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3871   if test -w $cache_file; then
3872     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3873     cat confcache >$cache_file
3874   else
3875     echo "not updating unwritable cache $cache_file"
3876   fi
3877 fi
3878 rm -f confcache
3879
3880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3881 # Let make expand exec_prefix.
3882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3883
3884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3886 # trailing colons and then remove the whole line if VPATH becomes empty
3887 # (actually we leave an empty line to preserve line numbers).
3888 if test "x$srcdir" = x.; then
3889   ac_vpsub='/^[         ]*VPATH[        ]*=/{
3890 s/:*\$(srcdir):*/:/;
3891 s/:*\${srcdir}:*/:/;
3892 s/:*@srcdir@:*/:/;
3893 s/^\([^=]*=[    ]*\):*/\1/;
3894 s/:*$//;
3895 s/^[^=]*=[      ]*$//;
3896 }'
3897 fi
3898
3899 DEFS=-DHAVE_CONFIG_H
3900
3901 ac_libobjs=
3902 ac_ltlibobjs=
3903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3904   # 1. Remove the extension, and $U if already installed.
3905   ac_i=`echo "$ac_i" |
3906          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3907   # 2. Add them.
3908   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3909   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3910 done
3911 LIBOBJS=$ac_libobjs
3912
3913 LTLIBOBJS=$ac_ltlibobjs
3914
3915
3916
3917 : ${CONFIG_STATUS=./config.status}
3918 ac_clean_files_save=$ac_clean_files
3919 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3920 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3921 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3922 cat >$CONFIG_STATUS <<_ACEOF
3923 #! $SHELL
3924 # Generated by $as_me.
3925 # Run this file to recreate the current configuration.
3926 # Compiler output produced by configure, useful for debugging
3927 # configure, is in config.log if it exists.
3928
3929 debug=false
3930 ac_cs_recheck=false
3931 ac_cs_silent=false
3932 SHELL=\${CONFIG_SHELL-$SHELL}
3933 _ACEOF
3934
3935 cat >>$CONFIG_STATUS <<\_ACEOF
3936 ## --------------------- ##
3937 ## M4sh Initialization.  ##
3938 ## --------------------- ##
3939
3940 # Be Bourne compatible
3941 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3942   emulate sh
3943   NULLCMD=:
3944   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3945   # is contrary to our usage.  Disable this feature.
3946   alias -g '${1+"$@"}'='"$@"'
3947 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3948   set -o posix
3949 fi
3950
3951 # Support unset when possible.
3952 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3953   as_unset=unset
3954 else
3955   as_unset=false
3956 fi
3957
3958
3959 # Work around bugs in pre-3.0 UWIN ksh.
3960 $as_unset ENV MAIL MAILPATH
3961 PS1='$ '
3962 PS2='> '
3963 PS4='+ '
3964
3965 # NLS nuisances.
3966 for as_var in \
3967   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3968   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3969   LC_TELEPHONE LC_TIME
3970 do
3971   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3972     eval $as_var=C; export $as_var
3973   else
3974     $as_unset $as_var
3975   fi
3976 done
3977
3978 # Required to use basename.
3979 if expr a : '\(a\)' >/dev/null 2>&1; then
3980   as_expr=expr
3981 else
3982   as_expr=false
3983 fi
3984
3985 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3986   as_basename=basename
3987 else
3988   as_basename=false
3989 fi
3990
3991
3992 # Name of the executable.
3993 as_me=`$as_basename "$0" ||
3994 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3995          X"$0" : 'X\(//\)$' \| \
3996          X"$0" : 'X\(/\)$' \| \
3997          .     : '\(.\)' 2>/dev/null ||
3998 echo X/"$0" |
3999     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4000           /^X\/\(\/\/\)$/{ s//\1/; q; }
4001           /^X\/\(\/\).*/{ s//\1/; q; }
4002           s/.*/./; q'`
4003
4004
4005 # PATH needs CR, and LINENO needs CR and PATH.
4006 # Avoid depending upon Character Ranges.
4007 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4008 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4009 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4010 as_cr_digits='0123456789'
4011 as_cr_alnum=$as_cr_Letters$as_cr_digits
4012
4013 # The user is always right.
4014 if test "${PATH_SEPARATOR+set}" != set; then
4015   echo "#! /bin/sh" >conf$$.sh
4016   echo  "exit 0"   >>conf$$.sh
4017   chmod +x conf$$.sh
4018   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4019     PATH_SEPARATOR=';'
4020   else
4021     PATH_SEPARATOR=:
4022   fi
4023   rm -f conf$$.sh
4024 fi
4025
4026
4027   as_lineno_1=$LINENO
4028   as_lineno_2=$LINENO
4029   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4030   test "x$as_lineno_1" != "x$as_lineno_2" &&
4031   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4032   # Find who we are.  Look in the path if we contain no path at all
4033   # relative or not.
4034   case $0 in
4035     *[\\/]* ) as_myself=$0 ;;
4036     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4042 done
4043
4044        ;;
4045   esac
4046   # We did not find ourselves, most probably we were run as `sh COMMAND'
4047   # in which case we are not to be found in the path.
4048   if test "x$as_myself" = x; then
4049     as_myself=$0
4050   fi
4051   if test ! -f "$as_myself"; then
4052     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4053 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4054    { (exit 1); exit 1; }; }
4055   fi
4056   case $CONFIG_SHELL in
4057   '')
4058     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4060 do
4061   IFS=$as_save_IFS
4062   test -z "$as_dir" && as_dir=.
4063   for as_base in sh bash ksh sh5; do
4064          case $as_dir in
4065          /*)
4066            if ("$as_dir/$as_base" -c '
4067   as_lineno_1=$LINENO
4068   as_lineno_2=$LINENO
4069   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4070   test "x$as_lineno_1" != "x$as_lineno_2" &&
4071   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4072              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4073              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4074              CONFIG_SHELL=$as_dir/$as_base
4075              export CONFIG_SHELL
4076              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4077            fi;;
4078          esac
4079        done
4080 done
4081 ;;
4082   esac
4083
4084   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4085   # uniformly replaced by the line number.  The first 'sed' inserts a
4086   # line-number line before each line; the second 'sed' does the real
4087   # work.  The second script uses 'N' to pair each line-number line
4088   # with the numbered line, and appends trailing '-' during
4089   # substitution so that $LINENO is not a special case at line end.
4090   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4091   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4092   sed '=' <$as_myself |
4093     sed '
4094       N
4095       s,$,-,
4096       : loop
4097       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4098       t loop
4099       s,-$,,
4100       s,^['$as_cr_digits']*\n,,
4101     ' >$as_me.lineno &&
4102   chmod +x $as_me.lineno ||
4103     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4104 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4105    { (exit 1); exit 1; }; }
4106
4107   # Don't try to exec as it changes $[0], causing all sort of problems
4108   # (the dirname of $[0] is not the place where we might find the
4109   # original and so on.  Autoconf is especially sensible to this).
4110   . ./$as_me.lineno
4111   # Exit status is that of the last command.
4112   exit
4113 }
4114
4115
4116 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4117   *c*,-n*) ECHO_N= ECHO_C='
4118 ' ECHO_T='      ' ;;
4119   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4120   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4121 esac
4122
4123 if expr a : '\(a\)' >/dev/null 2>&1; then
4124   as_expr=expr
4125 else
4126   as_expr=false
4127 fi
4128
4129 rm -f conf$$ conf$$.exe conf$$.file
4130 echo >conf$$.file
4131 if ln -s conf$$.file conf$$ 2>/dev/null; then
4132   # We could just check for DJGPP; but this test a) works b) is more generic
4133   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4134   if test -f conf$$.exe; then
4135     # Don't use ln at all; we don't have any links
4136     as_ln_s='cp -p'
4137   else
4138     as_ln_s='ln -s'
4139   fi
4140 elif ln conf$$.file conf$$ 2>/dev/null; then
4141   as_ln_s=ln
4142 else
4143   as_ln_s='cp -p'
4144 fi
4145 rm -f conf$$ conf$$.exe conf$$.file
4146
4147 if mkdir -p . 2>/dev/null; then
4148   as_mkdir_p=:
4149 else
4150   as_mkdir_p=false
4151 fi
4152
4153 as_executable_p="test -f"
4154
4155 # Sed expression to map a string onto a valid CPP name.
4156 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4157
4158 # Sed expression to map a string onto a valid variable name.
4159 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4160
4161
4162 # IFS
4163 # We need space, tab and new line, in precisely that order.
4164 as_nl='
4165 '
4166 IFS="   $as_nl"
4167
4168 # CDPATH.
4169 $as_unset CDPATH
4170
4171 exec 6>&1
4172
4173 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4174 # report actual input values of CONFIG_FILES etc. instead of their
4175 # values after options handling.  Logging --version etc. is OK.
4176 exec 5>>config.log
4177 {
4178   echo
4179   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4180 ## Running $as_me. ##
4181 _ASBOX
4182 } >&5
4183 cat >&5 <<_CSEOF
4184
4185 This file was extended by libfirm $as_me 0.3.0, which was
4186 generated by GNU Autoconf 2.56.  Invocation command line was
4187
4188   CONFIG_FILES    = $CONFIG_FILES
4189   CONFIG_HEADERS  = $CONFIG_HEADERS
4190   CONFIG_LINKS    = $CONFIG_LINKS
4191   CONFIG_COMMANDS = $CONFIG_COMMANDS
4192   $ $0 $@
4193
4194 _CSEOF
4195 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4196 echo >&5
4197 _ACEOF
4198
4199 # Files that config.status was made for.
4200 if test -n "$ac_config_files"; then
4201   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4202 fi
4203
4204 if test -n "$ac_config_headers"; then
4205   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4206 fi
4207
4208 if test -n "$ac_config_links"; then
4209   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4210 fi
4211
4212 if test -n "$ac_config_commands"; then
4213   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4214 fi
4215
4216 cat >>$CONFIG_STATUS <<\_ACEOF
4217
4218 ac_cs_usage="\
4219 \`$as_me' instantiates files from templates according to the
4220 current configuration.
4221
4222 Usage: $0 [OPTIONS] [FILE]...
4223
4224   -h, --help       print this help, then exit
4225   -V, --version    print version number, then exit
4226   -q, --quiet      do not print progress messages
4227   -d, --debug      don't remove temporary files
4228       --recheck    update $as_me by reconfiguring in the same conditions
4229   --file=FILE[:TEMPLATE]
4230                    instantiate the configuration file FILE
4231   --header=FILE[:TEMPLATE]
4232                    instantiate the configuration header FILE
4233
4234 Configuration files:
4235 $config_files
4236
4237 Configuration headers:
4238 $config_headers
4239
4240 Configuration commands:
4241 $config_commands
4242
4243 Report bugs to <bug-autoconf@gnu.org>."
4244 _ACEOF
4245
4246 cat >>$CONFIG_STATUS <<_ACEOF
4247 ac_cs_version="\\
4248 libfirm config.status 0.3.0
4249 configured by $0, generated by GNU Autoconf 2.56,
4250   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4251
4252 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4253 Free Software Foundation, Inc.
4254 This config.status script is free software; the Free Software Foundation
4255 gives unlimited permission to copy, distribute and modify it."
4256 srcdir=$srcdir
4257 INSTALL="$INSTALL"
4258 _ACEOF
4259
4260 cat >>$CONFIG_STATUS <<\_ACEOF
4261 # If no file are specified by the user, then we need to provide default
4262 # value.  By we need to know if files were specified by the user.
4263 ac_need_defaults=:
4264 while test $# != 0
4265 do
4266   case $1 in
4267   --*=*)
4268     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4269     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4270     ac_shift=:
4271     ;;
4272   -*)
4273     ac_option=$1
4274     ac_optarg=$2
4275     ac_shift=shift
4276     ;;
4277   *) # This is not an option, so the user has probably given explicit
4278      # arguments.
4279      ac_option=$1
4280      ac_need_defaults=false;;
4281   esac
4282
4283   case $ac_option in
4284   # Handling of the options.
4285 _ACEOF
4286 cat >>$CONFIG_STATUS <<\_ACEOF
4287   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4288     ac_cs_recheck=: ;;
4289   --version | --vers* | -V )
4290     echo "$ac_cs_version"; exit 0 ;;
4291   --he | --h)
4292     # Conflict between --help and --header
4293     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4294 Try \`$0 --help' for more information." >&5
4295 echo "$as_me: error: ambiguous option: $1
4296 Try \`$0 --help' for more information." >&2;}
4297    { (exit 1); exit 1; }; };;
4298   --help | --hel | -h )
4299     echo "$ac_cs_usage"; exit 0 ;;
4300   --debug | --d* | -d )
4301     debug=: ;;
4302   --file | --fil | --fi | --f )
4303     $ac_shift
4304     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4305     ac_need_defaults=false;;
4306   --header | --heade | --head | --hea )
4307     $ac_shift
4308     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4309     ac_need_defaults=false;;
4310   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4311   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4312     ac_cs_silent=: ;;
4313
4314   # This is an error.
4315   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4316 Try \`$0 --help' for more information." >&5
4317 echo "$as_me: error: unrecognized option: $1
4318 Try \`$0 --help' for more information." >&2;}
4319    { (exit 1); exit 1; }; } ;;
4320
4321   *) ac_config_targets="$ac_config_targets $1" ;;
4322
4323   esac
4324   shift
4325 done
4326
4327 ac_configure_extra_args=
4328
4329 if $ac_cs_silent; then
4330   exec 6>/dev/null
4331   ac_configure_extra_args="$ac_configure_extra_args --silent"
4332 fi
4333
4334 _ACEOF
4335 cat >>$CONFIG_STATUS <<_ACEOF
4336 if \$ac_cs_recheck; then
4337   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4338   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4339 fi
4340
4341 _ACEOF
4342
4343
4344
4345
4346
4347 cat >>$CONFIG_STATUS <<\_ACEOF
4348 for ac_config_target in $ac_config_targets
4349 do
4350   case "$ac_config_target" in
4351   # Handling of arguments.
4352   "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
4353   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4354   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4355   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4356 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4357    { (exit 1); exit 1; }; };;
4358   esac
4359 done
4360
4361 # If the user did not use the arguments to specify the items to instantiate,
4362 # then the envvar interface is used.  Set only those that are not.
4363 # We use the long form for the default assignment because of an extremely
4364 # bizarre bug on SunOS 4.1.3.
4365 if $ac_need_defaults; then
4366   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4367   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4368   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4369 fi
4370
4371 # Have a temporary directory for convenience.  Make it in the build tree
4372 # simply because there is no reason to put it here, and in addition,
4373 # creating and moving files from /tmp can sometimes cause problems.
4374 # Create a temporary directory, and hook for its removal unless debugging.
4375 $debug ||
4376 {
4377   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4378   trap '{ (exit 1); exit 1; }' 1 2 13 15
4379 }
4380
4381 # Create a (secure) tmp directory for tmp files.
4382
4383 {
4384   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4385   test -n "$tmp" && test -d "$tmp"
4386 }  ||
4387 {
4388   tmp=./confstat$$-$RANDOM
4389   (umask 077 && mkdir $tmp)
4390 } ||
4391 {
4392    echo "$me: cannot create a temporary directory in ." >&2
4393    { (exit 1); exit 1; }
4394 }
4395
4396 _ACEOF
4397
4398 cat >>$CONFIG_STATUS <<_ACEOF
4399
4400 #
4401 # CONFIG_FILES section.
4402 #
4403
4404 # No need to generate the scripts if there are no CONFIG_FILES.
4405 # This happens for instance when ./config.status config.h
4406 if test -n "\$CONFIG_FILES"; then
4407   # Protect against being on the right side of a sed subst in config.status.
4408   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4409    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4410 s,@SHELL@,$SHELL,;t t
4411 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4412 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4413 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4414 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4415 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4416 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4417 s,@exec_prefix@,$exec_prefix,;t t
4418 s,@prefix@,$prefix,;t t
4419 s,@program_transform_name@,$program_transform_name,;t t
4420 s,@bindir@,$bindir,;t t
4421 s,@sbindir@,$sbindir,;t t
4422 s,@libexecdir@,$libexecdir,;t t
4423 s,@datadir@,$datadir,;t t
4424 s,@sysconfdir@,$sysconfdir,;t t
4425 s,@sharedstatedir@,$sharedstatedir,;t t
4426 s,@localstatedir@,$localstatedir,;t t
4427 s,@libdir@,$libdir,;t t
4428 s,@includedir@,$includedir,;t t
4429 s,@oldincludedir@,$oldincludedir,;t t
4430 s,@infodir@,$infodir,;t t
4431 s,@mandir@,$mandir,;t t
4432 s,@build_alias@,$build_alias,;t t
4433 s,@host_alias@,$host_alias,;t t
4434 s,@target_alias@,$target_alias,;t t
4435 s,@DEFS@,$DEFS,;t t
4436 s,@ECHO_C@,$ECHO_C,;t t
4437 s,@ECHO_N@,$ECHO_N,;t t
4438 s,@ECHO_T@,$ECHO_T,;t t
4439 s,@LIBS@,$LIBS,;t t
4440 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
4441 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
4442 s,@enable_gcc_inline@,$enable_gcc_inline,;t t
4443 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
4444 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
4445 s,@enable_firm_jni@,$enable_firm_jni,;t t
4446 s,@disable_libiberty@,$disable_libiberty,;t t
4447 s,@CC@,$CC,;t t
4448 s,@CFLAGS@,$CFLAGS,;t t
4449 s,@LDFLAGS@,$LDFLAGS,;t t
4450 s,@CPPFLAGS@,$CPPFLAGS,;t t
4451 s,@ac_ct_CC@,$ac_ct_CC,;t t
4452 s,@EXEEXT@,$EXEEXT,;t t
4453 s,@OBJEXT@,$OBJEXT,;t t
4454 s,@LD@,$LD,;t t
4455 s,@ac_ct_LD@,$ac_ct_LD,;t t
4456 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
4457 s,@AR@,$AR,;t t
4458 s,@TAR@,$TAR,;t t
4459 s,@RANLIB@,$RANLIB,;t t
4460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4461 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4462 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4463 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4464 s,@LN_S@,$LN_S,;t t
4465 s,@DOXYGEN@,$DOXYGEN,;t t
4466 s,@DOT@,$DOT,;t t
4467 s,@JAVAC@,$JAVAC,;t t
4468 s,@JAVAH@,$JAVAH,;t t
4469 s,@CPP@,$CPP,;t t
4470 s,@EGREP@,$EGREP,;t t
4471 s,@LIBOBJS@,$LIBOBJS,;t t
4472 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4473 CEOF
4474
4475 _ACEOF
4476
4477   cat >>$CONFIG_STATUS <<\_ACEOF
4478   # Split the substitutions into bite-sized pieces for seds with
4479   # small command number limits, like on Digital OSF/1 and HP-UX.
4480   ac_max_sed_lines=48
4481   ac_sed_frag=1 # Number of current file.
4482   ac_beg=1 # First line for current file.
4483   ac_end=$ac_max_sed_lines # Line after last line for current file.
4484   ac_more_lines=:
4485   ac_sed_cmds=
4486   while $ac_more_lines; do
4487     if test $ac_beg -gt 1; then
4488       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4489     else
4490       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4491     fi
4492     if test ! -s $tmp/subs.frag; then
4493       ac_more_lines=false
4494     else
4495       # The purpose of the label and of the branching condition is to
4496       # speed up the sed processing (if there are no `@' at all, there
4497       # is no need to browse any of the substitutions).
4498       # These are the two extra sed commands mentioned above.
4499       (echo ':t
4500   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4501       if test -z "$ac_sed_cmds"; then
4502         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4503       else
4504         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4505       fi
4506       ac_sed_frag=`expr $ac_sed_frag + 1`
4507       ac_beg=$ac_end
4508       ac_end=`expr $ac_end + $ac_max_sed_lines`
4509     fi
4510   done
4511   if test -z "$ac_sed_cmds"; then
4512     ac_sed_cmds=cat
4513   fi
4514 fi # test -n "$CONFIG_FILES"
4515
4516 _ACEOF
4517 cat >>$CONFIG_STATUS <<\_ACEOF
4518 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4519   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4520   case $ac_file in
4521   - | *:- | *:-:* ) # input from stdin
4522         cat >$tmp/stdin
4523         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4524         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4525   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4526         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4527   * )   ac_file_in=$ac_file.in ;;
4528   esac
4529
4530   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4531   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4533          X"$ac_file" : 'X\(//\)[^/]' \| \
4534          X"$ac_file" : 'X\(//\)$' \| \
4535          X"$ac_file" : 'X\(/\)' \| \
4536          .     : '\(.\)' 2>/dev/null ||
4537 echo X"$ac_file" |
4538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4539           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4540           /^X\(\/\/\)$/{ s//\1/; q; }
4541           /^X\(\/\).*/{ s//\1/; q; }
4542           s/.*/./; q'`
4543   { if $as_mkdir_p; then
4544     mkdir -p "$ac_dir"
4545   else
4546     as_dir="$ac_dir"
4547     as_dirs=
4548     while test ! -d "$as_dir"; do
4549       as_dirs="$as_dir $as_dirs"
4550       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4552          X"$as_dir" : 'X\(//\)[^/]' \| \
4553          X"$as_dir" : 'X\(//\)$' \| \
4554          X"$as_dir" : 'X\(/\)' \| \
4555          .     : '\(.\)' 2>/dev/null ||
4556 echo X"$as_dir" |
4557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4558           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4559           /^X\(\/\/\)$/{ s//\1/; q; }
4560           /^X\(\/\).*/{ s//\1/; q; }
4561           s/.*/./; q'`
4562     done
4563     test ! -n "$as_dirs" || mkdir $as_dirs
4564   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4566    { (exit 1); exit 1; }; }; }
4567
4568   ac_builddir=.
4569
4570 if test "$ac_dir" != .; then
4571   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4572   # A "../" for each directory in $ac_dir_suffix.
4573   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4574 else
4575   ac_dir_suffix= ac_top_builddir=
4576 fi
4577
4578 case $srcdir in
4579   .)  # No --srcdir option.  We are building in place.
4580     ac_srcdir=.
4581     if test -z "$ac_top_builddir"; then
4582        ac_top_srcdir=.
4583     else
4584        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4585     fi ;;
4586   [\\/]* | ?:[\\/]* )  # Absolute path.
4587     ac_srcdir=$srcdir$ac_dir_suffix;
4588     ac_top_srcdir=$srcdir ;;
4589   *) # Relative path.
4590     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4591     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4592 esac
4593 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4594 # absolute.
4595 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4596 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4597 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4598 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4599
4600
4601   case $INSTALL in
4602   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4603   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4604   esac
4605
4606   if test x"$ac_file" != x-; then
4607     { echo "$as_me:$LINENO: creating $ac_file" >&5
4608 echo "$as_me: creating $ac_file" >&6;}
4609     rm -f "$ac_file"
4610   fi
4611   # Let's still pretend it is `configure' which instantiates (i.e., don't
4612   # use $as_me), people would be surprised to read:
4613   #    /* config.h.  Generated by config.status.  */
4614   if test x"$ac_file" = x-; then
4615     configure_input=
4616   else
4617     configure_input="$ac_file.  "
4618   fi
4619   configure_input=$configure_input"Generated from `echo $ac_file_in |
4620                                      sed 's,.*/,,'` by configure."
4621
4622   # First look for the input files in the build tree, otherwise in the
4623   # src tree.
4624   ac_file_inputs=`IFS=:
4625     for f in $ac_file_in; do
4626       case $f in
4627       -) echo $tmp/stdin ;;
4628       [\\/$]*)
4629          # Absolute (can't be DOS-style, as IFS=:)
4630          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4631 echo "$as_me: error: cannot find input file: $f" >&2;}
4632    { (exit 1); exit 1; }; }
4633          echo $f;;
4634       *) # Relative
4635          if test -f "$f"; then
4636            # Build tree
4637            echo $f
4638          elif test -f "$srcdir/$f"; then
4639            # Source tree
4640            echo $srcdir/$f
4641          else
4642            # /dev/null tree
4643            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4644 echo "$as_me: error: cannot find input file: $f" >&2;}
4645    { (exit 1); exit 1; }; }
4646          fi;;
4647       esac
4648     done` || { (exit 1); exit 1; }
4649 _ACEOF
4650 cat >>$CONFIG_STATUS <<_ACEOF
4651   sed "$ac_vpsub
4652 $extrasub
4653 _ACEOF
4654 cat >>$CONFIG_STATUS <<\_ACEOF
4655 :t
4656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4657 s,@configure_input@,$configure_input,;t t
4658 s,@srcdir@,$ac_srcdir,;t t
4659 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4660 s,@top_srcdir@,$ac_top_srcdir,;t t
4661 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4662 s,@builddir@,$ac_builddir,;t t
4663 s,@abs_builddir@,$ac_abs_builddir,;t t
4664 s,@top_builddir@,$ac_top_builddir,;t t
4665 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4666 s,@INSTALL@,$ac_INSTALL,;t t
4667 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4668   rm -f $tmp/stdin
4669   if test x"$ac_file" != x-; then
4670     mv $tmp/out $ac_file
4671   else
4672     cat $tmp/out
4673     rm -f $tmp/out
4674   fi
4675
4676 done
4677 _ACEOF
4678 cat >>$CONFIG_STATUS <<\_ACEOF
4679
4680 #
4681 # CONFIG_HEADER section.
4682 #
4683
4684 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4685 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4686 #
4687 # ac_d sets the value in "#define NAME VALUE" lines.
4688 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4689 ac_dB='[        ].*$,\1#\2'
4690 ac_dC=' '
4691 ac_dD=',;t'
4692 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4693 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4694 ac_uB='$,\1#\2define\3'
4695 ac_uC=' '
4696 ac_uD=',;t'
4697
4698 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4699   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4700   case $ac_file in
4701   - | *:- | *:-:* ) # input from stdin
4702         cat >$tmp/stdin
4703         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4704         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4705   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4706         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4707   * )   ac_file_in=$ac_file.in ;;
4708   esac
4709
4710   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4711 echo "$as_me: creating $ac_file" >&6;}
4712
4713   # First look for the input files in the build tree, otherwise in the
4714   # src tree.
4715   ac_file_inputs=`IFS=:
4716     for f in $ac_file_in; do
4717       case $f in
4718       -) echo $tmp/stdin ;;
4719       [\\/$]*)
4720          # Absolute (can't be DOS-style, as IFS=:)
4721          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4722 echo "$as_me: error: cannot find input file: $f" >&2;}
4723    { (exit 1); exit 1; }; }
4724          echo $f;;
4725       *) # Relative
4726          if test -f "$f"; then
4727            # Build tree
4728            echo $f
4729          elif test -f "$srcdir/$f"; then
4730            # Source tree
4731            echo $srcdir/$f
4732          else
4733            # /dev/null tree
4734            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4735 echo "$as_me: error: cannot find input file: $f" >&2;}
4736    { (exit 1); exit 1; }; }
4737          fi;;
4738       esac
4739     done` || { (exit 1); exit 1; }
4740   # Remove the trailing spaces.
4741   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
4742
4743 _ACEOF
4744
4745 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4746 # `conftest.undefs', that substitutes the proper values into
4747 # config.h.in to produce config.h.  The first handles `#define'
4748 # templates, and the second `#undef' templates.
4749 # And first: Protect against being on the right side of a sed subst in
4750 # config.status.  Protect against being in an unquoted here document
4751 # in config.status.
4752 rm -f conftest.defines conftest.undefs
4753 # Using a here document instead of a string reduces the quoting nightmare.
4754 # Putting comments in sed scripts is not portable.
4755 #
4756 # `end' is used to avoid that the second main sed command (meant for
4757 # 0-ary CPP macros) applies to n-ary macro definitions.
4758 # See the Autoconf documentation for `clear'.
4759 cat >confdef2sed.sed <<\_ACEOF
4760 s/[\\&,]/\\&/g
4761 s,[\\$`],\\&,g
4762 t clear
4763 : clear
4764 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4765 t end
4766 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4767 : end
4768 _ACEOF
4769 # If some macros were called several times there might be several times
4770 # the same #defines, which is useless.  Nevertheless, we may not want to
4771 # sort them, since we want the *last* AC-DEFINE to be honored.
4772 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4773 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4774 rm -f confdef2sed.sed
4775
4776 # This sed command replaces #undef with comments.  This is necessary, for
4777 # example, in the case of _POSIX_SOURCE, which is predefined and required
4778 # on some systems where configure will not decide to define it.
4779 cat >>conftest.undefs <<\_ACEOF
4780 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4781 _ACEOF
4782
4783 # Break up conftest.defines because some shells have a limit on the size
4784 # of here documents, and old seds have small limits too (100 cmds).
4785 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4786 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4787 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4788 echo '  :' >>$CONFIG_STATUS
4789 rm -f conftest.tail
4790 while grep . conftest.defines >/dev/null
4791 do
4792   # Write a limited-size here document to $tmp/defines.sed.
4793   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4794   # Speed up: don't consider the non `#define' lines.
4795   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4796   # Work around the forget-to-reset-the-flag bug.
4797   echo 't clr' >>$CONFIG_STATUS
4798   echo ': clr' >>$CONFIG_STATUS
4799   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4800   echo 'CEOF
4801   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4802   rm -f $tmp/in
4803   mv $tmp/out $tmp/in
4804 ' >>$CONFIG_STATUS
4805   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4806   rm -f conftest.defines
4807   mv conftest.tail conftest.defines
4808 done
4809 rm -f conftest.defines
4810 echo '  fi # grep' >>$CONFIG_STATUS
4811 echo >>$CONFIG_STATUS
4812
4813 # Break up conftest.undefs because some shells have a limit on the size
4814 # of here documents, and old seds have small limits too (100 cmds).
4815 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4816 rm -f conftest.tail
4817 while grep . conftest.undefs >/dev/null
4818 do
4819   # Write a limited-size here document to $tmp/undefs.sed.
4820   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4821   # Speed up: don't consider the non `#undef'
4822   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4823   # Work around the forget-to-reset-the-flag bug.
4824   echo 't clr' >>$CONFIG_STATUS
4825   echo ': clr' >>$CONFIG_STATUS
4826   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4827   echo 'CEOF
4828   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4829   rm -f $tmp/in
4830   mv $tmp/out $tmp/in
4831 ' >>$CONFIG_STATUS
4832   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4833   rm -f conftest.undefs
4834   mv conftest.tail conftest.undefs
4835 done
4836 rm -f conftest.undefs
4837
4838 cat >>$CONFIG_STATUS <<\_ACEOF
4839   # Let's still pretend it is `configure' which instantiates (i.e., don't
4840   # use $as_me), people would be surprised to read:
4841   #    /* config.h.  Generated by config.status.  */
4842   if test x"$ac_file" = x-; then
4843     echo "/* Generated by configure.  */" >$tmp/config.h
4844   else
4845     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4846   fi
4847   cat $tmp/in >>$tmp/config.h
4848   rm -f $tmp/in
4849   if test x"$ac_file" != x-; then
4850     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4851       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4852 echo "$as_me: $ac_file is unchanged" >&6;}
4853     else
4854       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4856          X"$ac_file" : 'X\(//\)[^/]' \| \
4857          X"$ac_file" : 'X\(//\)$' \| \
4858          X"$ac_file" : 'X\(/\)' \| \
4859          .     : '\(.\)' 2>/dev/null ||
4860 echo X"$ac_file" |
4861     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4862           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4863           /^X\(\/\/\)$/{ s//\1/; q; }
4864           /^X\(\/\).*/{ s//\1/; q; }
4865           s/.*/./; q'`
4866       { if $as_mkdir_p; then
4867     mkdir -p "$ac_dir"
4868   else
4869     as_dir="$ac_dir"
4870     as_dirs=
4871     while test ! -d "$as_dir"; do
4872       as_dirs="$as_dir $as_dirs"
4873       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4875          X"$as_dir" : 'X\(//\)[^/]' \| \
4876          X"$as_dir" : 'X\(//\)$' \| \
4877          X"$as_dir" : 'X\(/\)' \| \
4878          .     : '\(.\)' 2>/dev/null ||
4879 echo X"$as_dir" |
4880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4881           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4882           /^X\(\/\/\)$/{ s//\1/; q; }
4883           /^X\(\/\).*/{ s//\1/; q; }
4884           s/.*/./; q'`
4885     done
4886     test ! -n "$as_dirs" || mkdir $as_dirs
4887   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4888 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4889    { (exit 1); exit 1; }; }; }
4890
4891       rm -f $ac_file
4892       mv $tmp/config.h $ac_file
4893     fi
4894   else
4895     cat $tmp/config.h
4896     rm -f $tmp/config.h
4897   fi
4898 done
4899 _ACEOF
4900 cat >>$CONFIG_STATUS <<\_ACEOF
4901
4902 #
4903 # CONFIG_COMMANDS section.
4904 #
4905 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4906   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4907   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4908   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4909 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4910          X"$ac_dest" : 'X\(//\)[^/]' \| \
4911          X"$ac_dest" : 'X\(//\)$' \| \
4912          X"$ac_dest" : 'X\(/\)' \| \
4913          .     : '\(.\)' 2>/dev/null ||
4914 echo X"$ac_dest" |
4915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4916           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4917           /^X\(\/\/\)$/{ s//\1/; q; }
4918           /^X\(\/\).*/{ s//\1/; q; }
4919           s/.*/./; q'`
4920   ac_builddir=.
4921
4922 if test "$ac_dir" != .; then
4923   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4924   # A "../" for each directory in $ac_dir_suffix.
4925   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4926 else
4927   ac_dir_suffix= ac_top_builddir=
4928 fi
4929
4930 case $srcdir in
4931   .)  # No --srcdir option.  We are building in place.
4932     ac_srcdir=.
4933     if test -z "$ac_top_builddir"; then
4934        ac_top_srcdir=.
4935     else
4936        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4937     fi ;;
4938   [\\/]* | ?:[\\/]* )  # Absolute path.
4939     ac_srcdir=$srcdir$ac_dir_suffix;
4940     ac_top_srcdir=$srcdir ;;
4941   *) # Relative path.
4942     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4943     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4944 esac
4945 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4946 # absolute.
4947 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4948 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4949 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4950 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4951
4952
4953   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4954 echo "$as_me: executing $ac_dest commands" >&6;}
4955   case $ac_dest in
4956     default )  touch stamp-h  ;;
4957   esac
4958 done
4959 _ACEOF
4960
4961 cat >>$CONFIG_STATUS <<\_ACEOF
4962
4963 { (exit 0); exit 0; }
4964 _ACEOF
4965 chmod +x $CONFIG_STATUS
4966 ac_clean_files=$ac_clean_files_save
4967
4968
4969 # configure is writing to config.log, and then calls config.status.
4970 # config.status does its own redirection, appending to config.log.
4971 # Unfortunately, on DOS this fails, as config.log is still kept open
4972 # by configure, so config.status won't be able to write to it; its
4973 # output is simply discarded.  So we exec the FD to /dev/null,
4974 # effectively closing config.log, so it can be properly (re)opened and
4975 # appended to by config.status.  When coming back to configure, we
4976 # need to make the FD available again.
4977 if test "$no_create" != yes; then
4978   ac_cs_success=:
4979   ac_config_status_args=
4980   test "$silent" = yes &&
4981     ac_config_status_args="$ac_config_status_args --quiet"
4982   exec 5>/dev/null
4983   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4984   exec 5>>config.log
4985   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4986   # would make configure fail if this is the last instruction.
4987   $ac_cs_success || { (exit 1); exit 1; }
4988 fi