Fixed functionality for firm jni.
[libfirm] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 #
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
21
22 # Defaults:
23 ac_help=
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_help="$ac_help
27   --enable-debug          enable assertions and additional debugging routines"
28 ac_help="$ac_help
29   --enable-gcc_inline     enable gcc inline C-extension"
30 ac_help="$ac_help
31   --enable-profile        enable profiling"
32 ac_help="$ac_help
33   --enable-autodoc        enable auto documentation"
34 ac_help="$ac_help
35   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm"
36
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
40 build=NONE
41 cache_file=./config.cache
42 exec_prefix=NONE
43 host=NONE
44 no_create=
45 nonopt=NONE
46 no_recursion=
47 prefix=NONE
48 program_prefix=NONE
49 program_suffix=NONE
50 program_transform_name=s,x,x,
51 silent=
52 site=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
70
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
76 ac_max_here_lines=12
77
78 ac_prev=
79 for ac_option
80 do
81
82   # If the previous option needs an argument, assign it.
83   if test -n "$ac_prev"; then
84     eval "$ac_prev=\$ac_option"
85     ac_prev=
86     continue
87   fi
88
89   case "$ac_option" in
90   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91   *) ac_optarg= ;;
92   esac
93
94   # Accept the important Cygnus configure options, so we can diagnose typos.
95
96   case "$ac_option" in
97
98   -bindir | --bindir | --bindi | --bind | --bin | --bi)
99     ac_prev=bindir ;;
100   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101     bindir="$ac_optarg" ;;
102
103   -build | --build | --buil | --bui | --bu)
104     ac_prev=build ;;
105   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106     build="$ac_optarg" ;;
107
108   -cache-file | --cache-file | --cache-fil | --cache-fi \
109   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110     ac_prev=cache_file ;;
111   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113     cache_file="$ac_optarg" ;;
114
115   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116     ac_prev=datadir ;;
117   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118   | --da=*)
119     datadir="$ac_optarg" ;;
120
121   -disable-* | --disable-*)
122     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123     # Reject names that are not valid shell variable names.
124     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126     fi
127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128     eval "enable_${ac_feature}=no" ;;
129
130   -enable-* | --enable-*)
131     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132     # Reject names that are not valid shell variable names.
133     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135     fi
136     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137     case "$ac_option" in
138       *=*) ;;
139       *) ac_optarg=yes ;;
140     esac
141     eval "enable_${ac_feature}='$ac_optarg'" ;;
142
143   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145   | --exec | --exe | --ex)
146     ac_prev=exec_prefix ;;
147   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149   | --exec=* | --exe=* | --ex=*)
150     exec_prefix="$ac_optarg" ;;
151
152   -gas | --gas | --ga | --g)
153     # Obsolete; use --with-gas.
154     with_gas=yes ;;
155
156   -help | --help | --hel | --he)
157     # Omit some internal or obsolete options to make the list less imposing.
158     # This message is too long to be a string in the A/UX 3.1 sh.
159     cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163   --cache-file=FILE       cache test results in FILE
164   --help                  print this message
165   --no-create             do not create output files
166   --quiet, --silent       do not print \`checking...' messages
167   --version               print the version of autoconf that created configure
168 Directory and file names:
169   --prefix=PREFIX         install architecture-independent files in PREFIX
170                           [$ac_default_prefix]
171   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
172                           [same as prefix]
173   --bindir=DIR            user executables in DIR [EPREFIX/bin]
174   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
175   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
176   --datadir=DIR           read-only architecture-independent data in DIR
177                           [PREFIX/share]
178   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
179   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
180                           [PREFIX/com]
181   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
182   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
183   --includedir=DIR        C header files in DIR [PREFIX/include]
184   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
185   --infodir=DIR           info documentation in DIR [PREFIX/info]
186   --mandir=DIR            man documentation in DIR [PREFIX/man]
187   --srcdir=DIR            find the sources in DIR [configure dir or ..]
188   --program-prefix=PREFIX prepend PREFIX to installed program names
189   --program-suffix=SUFFIX append SUFFIX to installed program names
190   --program-transform-name=PROGRAM
191                           run sed PROGRAM on installed program names
192 EOF
193     cat << EOF
194 Host type:
195   --build=BUILD           configure for building on BUILD [BUILD=HOST]
196   --host=HOST             configure for HOST [guessed]
197   --target=TARGET         configure for TARGET [TARGET=HOST]
198 Features and packages:
199   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
200   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
201   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
202   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
203   --x-includes=DIR        X include files are in DIR
204   --x-libraries=DIR       X library files are in DIR
205 EOF
206     if test -n "$ac_help"; then
207       echo "--enable and --with options recognized:$ac_help"
208     fi
209     exit 0 ;;
210
211   -host | --host | --hos | --ho)
212     ac_prev=host ;;
213   -host=* | --host=* | --hos=* | --ho=*)
214     host="$ac_optarg" ;;
215
216   -includedir | --includedir | --includedi | --included | --include \
217   | --includ | --inclu | --incl | --inc)
218     ac_prev=includedir ;;
219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220   | --includ=* | --inclu=* | --incl=* | --inc=*)
221     includedir="$ac_optarg" ;;
222
223   -infodir | --infodir | --infodi | --infod | --info | --inf)
224     ac_prev=infodir ;;
225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226     infodir="$ac_optarg" ;;
227
228   -libdir | --libdir | --libdi | --libd)
229     ac_prev=libdir ;;
230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
231     libdir="$ac_optarg" ;;
232
233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234   | --libexe | --libex | --libe)
235     ac_prev=libexecdir ;;
236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237   | --libexe=* | --libex=* | --libe=*)
238     libexecdir="$ac_optarg" ;;
239
240   -localstatedir | --localstatedir | --localstatedi | --localstated \
241   | --localstate | --localstat | --localsta | --localst \
242   | --locals | --local | --loca | --loc | --lo)
243     ac_prev=localstatedir ;;
244   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247     localstatedir="$ac_optarg" ;;
248
249   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250     ac_prev=mandir ;;
251   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252     mandir="$ac_optarg" ;;
253
254   -nfp | --nfp | --nf)
255     # Obsolete; use --without-fp.
256     with_fp=no ;;
257
258   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259   | --no-cr | --no-c)
260     no_create=yes ;;
261
262   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264     no_recursion=yes ;;
265
266   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268   | --oldin | --oldi | --old | --ol | --o)
269     ac_prev=oldincludedir ;;
270   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273     oldincludedir="$ac_optarg" ;;
274
275   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276     ac_prev=prefix ;;
277   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278     prefix="$ac_optarg" ;;
279
280   -program-prefix | --program-prefix | --program-prefi | --program-pref \
281   | --program-pre | --program-pr | --program-p)
282     ac_prev=program_prefix ;;
283   -program-prefix=* | --program-prefix=* | --program-prefi=* \
284   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285     program_prefix="$ac_optarg" ;;
286
287   -program-suffix | --program-suffix | --program-suffi | --program-suff \
288   | --program-suf | --program-su | --program-s)
289     ac_prev=program_suffix ;;
290   -program-suffix=* | --program-suffix=* | --program-suffi=* \
291   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292     program_suffix="$ac_optarg" ;;
293
294   -program-transform-name | --program-transform-name \
295   | --program-transform-nam | --program-transform-na \
296   | --program-transform-n | --program-transform- \
297   | --program-transform | --program-transfor \
298   | --program-transfo | --program-transf \
299   | --program-trans | --program-tran \
300   | --progr-tra | --program-tr | --program-t)
301     ac_prev=program_transform_name ;;
302   -program-transform-name=* | --program-transform-name=* \
303   | --program-transform-nam=* | --program-transform-na=* \
304   | --program-transform-n=* | --program-transform-=* \
305   | --program-transform=* | --program-transfor=* \
306   | --program-transfo=* | --program-transf=* \
307   | --program-trans=* | --program-tran=* \
308   | --progr-tra=* | --program-tr=* | --program-t=*)
309     program_transform_name="$ac_optarg" ;;
310
311   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312   | -silent | --silent | --silen | --sile | --sil)
313     silent=yes ;;
314
315   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316     ac_prev=sbindir ;;
317   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318   | --sbi=* | --sb=*)
319     sbindir="$ac_optarg" ;;
320
321   -sharedstatedir | --sharedstatedir | --sharedstatedi \
322   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323   | --sharedst | --shareds | --shared | --share | --shar \
324   | --sha | --sh)
325     ac_prev=sharedstatedir ;;
326   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329   | --sha=* | --sh=*)
330     sharedstatedir="$ac_optarg" ;;
331
332   -site | --site | --sit)
333     ac_prev=site ;;
334   -site=* | --site=* | --sit=*)
335     site="$ac_optarg" ;;
336
337   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338     ac_prev=srcdir ;;
339   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340     srcdir="$ac_optarg" ;;
341
342   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343   | --syscon | --sysco | --sysc | --sys | --sy)
344     ac_prev=sysconfdir ;;
345   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347     sysconfdir="$ac_optarg" ;;
348
349   -target | --target | --targe | --targ | --tar | --ta | --t)
350     ac_prev=target ;;
351   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352     target="$ac_optarg" ;;
353
354   -v | -verbose | --verbose | --verbos | --verbo | --verb)
355     verbose=yes ;;
356
357   -version | --version | --versio | --versi | --vers)
358     echo "configure generated by autoconf version 2.13"
359     exit 0 ;;
360
361   -with-* | --with-*)
362     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     case "$ac_option" in
369       *=*) ;;
370       *) ac_optarg=yes ;;
371     esac
372     eval "with_${ac_package}='$ac_optarg'" ;;
373
374   -without-* | --without-*)
375     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376     # Reject names that are not valid shell variable names.
377     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379     fi
380     ac_package=`echo $ac_package| sed 's/-/_/g'`
381     eval "with_${ac_package}=no" ;;
382
383   --x)
384     # Obsolete; use --with-x.
385     with_x=yes ;;
386
387   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388   | --x-incl | --x-inc | --x-in | --x-i)
389     ac_prev=x_includes ;;
390   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392     x_includes="$ac_optarg" ;;
393
394   -x-libraries | --x-libraries | --x-librarie | --x-librari \
395   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396     ac_prev=x_libraries ;;
397   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399     x_libraries="$ac_optarg" ;;
400
401   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402     ;;
403
404   *)
405     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406       echo "configure: warning: $ac_option: invalid host type" 1>&2
407     fi
408     if test "x$nonopt" != xNONE; then
409       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410     fi
411     nonopt="$ac_option"
412     ;;
413
414   esac
415 done
416
417 if test -n "$ac_prev"; then
418   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 fi
420
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422
423 # File descriptor usage:
424 # 0 standard input
425 # 1 file creation
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
432   exec 6>/dev/null
433 else
434   exec 6>&1
435 fi
436 exec 5>./config.log
437
438 echo "\
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
441 " 1>&5
442
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
445 ac_configure_args=
446 for ac_arg
447 do
448   case "$ac_arg" in
449   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450   | --no-cr | --no-c) ;;
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456   esac
457 done
458
459 # NLS nuisances.
460 # Only set these to C if already set.  These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
468
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 echo > confdefs.h
473
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=ir/ir/ircons.c
477
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480   ac_srcdir_defaulted=yes
481   # Try the directory containing this script, then its parent.
482   ac_prog=$0
483   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485   srcdir=$ac_confdir
486   if test ! -r $srcdir/$ac_unique_file; then
487     srcdir=..
488   fi
489 else
490   ac_srcdir_defaulted=no
491 fi
492 if test ! -r $srcdir/$ac_unique_file; then
493   if test "$ac_srcdir_defaulted" = yes; then
494     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495   else
496     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497   fi
498 fi
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503   if test "x$prefix" != xNONE; then
504     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505   else
506     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507   fi
508 fi
509 for ac_site_file in $CONFIG_SITE; do
510   if test -r "$ac_site_file"; then
511     echo "loading site script $ac_site_file"
512     . "$ac_site_file"
513   fi
514 done
515
516 if test -r "$cache_file"; then
517   echo "loading cache $cache_file"
518   . $cache_file
519 else
520   echo "creating cache $cache_file"
521   > $cache_file
522 fi
523
524 ac_ext=c
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
530
531 ac_exeext=
532 ac_objext=o
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536     ac_n= ac_c='
537 ' ac_t='        '
538   else
539     ac_n=-n ac_c= ac_t=
540   fi
541 else
542   ac_n= ac_c='\c' ac_t=
543 fi
544
545 ac_aux_dir=
546 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
547   if test -f $ac_dir/install-sh; then
548     ac_aux_dir=$ac_dir
549     ac_install_sh="$ac_aux_dir/install-sh -c"
550     break
551   elif test -f $ac_dir/install.sh; then
552     ac_aux_dir=$ac_dir
553     ac_install_sh="$ac_aux_dir/install.sh -c"
554     break
555   fi
556 done
557 if test -z "$ac_aux_dir"; then
558   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 fi
560 ac_config_guess=$ac_aux_dir/config.guess
561 ac_config_sub=$ac_aux_dir/config.sub
562 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563
564
565
566 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
567                 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
568                 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
569                 firmjni/Makefile firmjni/build_firm_jni firmjni/testprograms/Makefile"
570
571
572
573 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
574
575
576
577
578 # Check whether --enable-debug or --disable-debug was given.
579 if test "${enable_debug+set}" = set; then
580   enableval="$enable_debug"
581   if test "$enableval" = yes; then
582   cat >> confdefs.h <<\EOF
583 #define DEBUG_libfirm 1
584 EOF
585
586 else
587   cat >> confdefs.h <<\EOF
588 #define NDEBUG 1
589 EOF
590
591 fi
592 fi
593
594
595
596 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
597 if test "${enable_gcc_inline+set}" = set; then
598   enableval="$enable_gcc_inline"
599   if test "$enableval" = yes; then
600   cat >> confdefs.h <<\EOF
601 #define USE_GCC_INLINE 1
602 EOF
603
604 fi
605 fi
606
607
608
609
610 # Check whether --enable-profile or --disable-profile was given.
611 if test "${enable_profile+set}" = set; then
612   enableval="$enable_profile"
613   if test "$enableval"=yes; then
614   enable_profile_libfirm=yes
615 fi
616 else
617   enable_profile_libfirm=no
618 fi
619
620
621
622 # Check whether --enable-autodoc or --disable-autodoc was given.
623 if test "${enable_autodoc+set}" = set; then
624   enableval="$enable_autodoc"
625   if test "$enableval"=yes; then
626   enable_auto_documentation=yes
627 fi
628 else
629   enable_auto_documentation=no
630 fi
631
632
633
634
635 # Check whether --enable-firmjni or --disable-firmjni was given.
636 if test "${enable_firmjni+set}" = set; then
637   enableval="$enable_firmjni"
638   if test "$enableval"=yes; then
639   enable_firm_jni=yes
640 fi
641 else
642   enable_firm_jni=no
643 fi
644
645
646
647
648
649 # Extract the first word of "gcc", so it can be a program name with args.
650 set dummy gcc; ac_word=$2
651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
652 echo "configure:653: checking for $ac_word" >&5
653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
654   echo $ac_n "(cached) $ac_c" 1>&6
655 else
656   if test -n "$CC"; then
657   ac_cv_prog_CC="$CC" # Let the user override the test.
658 else
659   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
660   ac_dummy="$PATH"
661   for ac_dir in $ac_dummy; do
662     test -z "$ac_dir" && ac_dir=.
663     if test -f $ac_dir/$ac_word; then
664       ac_cv_prog_CC="gcc"
665       break
666     fi
667   done
668   IFS="$ac_save_ifs"
669 fi
670 fi
671 CC="$ac_cv_prog_CC"
672 if test -n "$CC"; then
673   echo "$ac_t""$CC" 1>&6
674 else
675   echo "$ac_t""no" 1>&6
676 fi
677
678 if test -z "$CC"; then
679   # Extract the first word of "cc", so it can be a program name with args.
680 set dummy cc; ac_word=$2
681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
682 echo "configure:683: checking for $ac_word" >&5
683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
684   echo $ac_n "(cached) $ac_c" 1>&6
685 else
686   if test -n "$CC"; then
687   ac_cv_prog_CC="$CC" # Let the user override the test.
688 else
689   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
690   ac_prog_rejected=no
691   ac_dummy="$PATH"
692   for ac_dir in $ac_dummy; do
693     test -z "$ac_dir" && ac_dir=.
694     if test -f $ac_dir/$ac_word; then
695       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
696         ac_prog_rejected=yes
697         continue
698       fi
699       ac_cv_prog_CC="cc"
700       break
701     fi
702   done
703   IFS="$ac_save_ifs"
704 if test $ac_prog_rejected = yes; then
705   # We found a bogon in the path, so make sure we never use it.
706   set dummy $ac_cv_prog_CC
707   shift
708   if test $# -gt 0; then
709     # We chose a different compiler from the bogus one.
710     # However, it has the same basename, so the bogon will be chosen
711     # first if we set CC to just the basename; use the full file name.
712     shift
713     set dummy "$ac_dir/$ac_word" "$@"
714     shift
715     ac_cv_prog_CC="$@"
716   fi
717 fi
718 fi
719 fi
720 CC="$ac_cv_prog_CC"
721 if test -n "$CC"; then
722   echo "$ac_t""$CC" 1>&6
723 else
724   echo "$ac_t""no" 1>&6
725 fi
726
727   if test -z "$CC"; then
728     case "`uname -s`" in
729     *win32* | *WIN32*)
730       # Extract the first word of "cl", so it can be a program name with args.
731 set dummy cl; ac_word=$2
732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733 echo "configure:734: checking for $ac_word" >&5
734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
735   echo $ac_n "(cached) $ac_c" 1>&6
736 else
737   if test -n "$CC"; then
738   ac_cv_prog_CC="$CC" # Let the user override the test.
739 else
740   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
741   ac_dummy="$PATH"
742   for ac_dir in $ac_dummy; do
743     test -z "$ac_dir" && ac_dir=.
744     if test -f $ac_dir/$ac_word; then
745       ac_cv_prog_CC="cl"
746       break
747     fi
748   done
749   IFS="$ac_save_ifs"
750 fi
751 fi
752 CC="$ac_cv_prog_CC"
753 if test -n "$CC"; then
754   echo "$ac_t""$CC" 1>&6
755 else
756   echo "$ac_t""no" 1>&6
757 fi
758  ;;
759     esac
760   fi
761   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
762 fi
763
764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
765 echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
766
767 ac_ext=c
768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
769 ac_cpp='$CPP $CPPFLAGS'
770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
772 cross_compiling=$ac_cv_prog_cc_cross
773
774 cat > conftest.$ac_ext << EOF
775
776 #line 777 "configure"
777 #include "confdefs.h"
778
779 main(){return(0);}
780 EOF
781 if { (eval echo configure:782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
782   ac_cv_prog_cc_works=yes
783   # If we can't run a trivial program, we are probably using a cross compiler.
784   if (./conftest; exit) 2>/dev/null; then
785     ac_cv_prog_cc_cross=no
786   else
787     ac_cv_prog_cc_cross=yes
788   fi
789 else
790   echo "configure: failed program was:" >&5
791   cat conftest.$ac_ext >&5
792   ac_cv_prog_cc_works=no
793 fi
794 rm -fr conftest*
795 ac_ext=c
796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
797 ac_cpp='$CPP $CPPFLAGS'
798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
800 cross_compiling=$ac_cv_prog_cc_cross
801
802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
803 if test $ac_cv_prog_cc_works = no; then
804   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
805 fi
806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
807 echo "configure:808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
809 cross_compiling=$ac_cv_prog_cc_cross
810
811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
812 echo "configure:813: checking whether we are using GNU C" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
814   echo $ac_n "(cached) $ac_c" 1>&6
815 else
816   cat > conftest.c <<EOF
817 #ifdef __GNUC__
818   yes;
819 #endif
820 EOF
821 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
822   ac_cv_prog_gcc=yes
823 else
824   ac_cv_prog_gcc=no
825 fi
826 fi
827
828 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
829
830 if test $ac_cv_prog_gcc = yes; then
831   GCC=yes
832 else
833   GCC=
834 fi
835
836 ac_test_CFLAGS="${CFLAGS+set}"
837 ac_save_CFLAGS="$CFLAGS"
838 CFLAGS=
839 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
840 echo "configure:841: checking whether ${CC-cc} accepts -g" >&5
841 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
842   echo $ac_n "(cached) $ac_c" 1>&6
843 else
844   echo 'void f(){}' > conftest.c
845 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
846   ac_cv_prog_cc_g=yes
847 else
848   ac_cv_prog_cc_g=no
849 fi
850 rm -f conftest*
851
852 fi
853
854 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
855 if test "$ac_test_CFLAGS" = set; then
856   CFLAGS="$ac_save_CFLAGS"
857 elif test $ac_cv_prog_cc_g = yes; then
858   if test "$GCC" = yes; then
859     CFLAGS="-g -O2"
860   else
861     CFLAGS="-g"
862   fi
863 else
864   if test "$GCC" = yes; then
865     CFLAGS="-O2"
866   else
867     CFLAGS=
868   fi
869 fi
870
871
872
873 # Make sure we can run config.sub.
874 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
875 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
876 fi
877
878 echo $ac_n "checking host system type""... $ac_c" 1>&6
879 echo "configure:880: checking host system type" >&5
880
881 host_alias=$host
882 case "$host_alias" in
883 NONE)
884   case $nonopt in
885   NONE)
886     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
887     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
888     fi ;;
889   *) host_alias=$nonopt ;;
890   esac ;;
891 esac
892
893 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
894 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897 echo "$ac_t""$host" 1>&6
898
899 echo $ac_n "checking build system type""... $ac_c" 1>&6
900 echo "configure:901: checking build system type" >&5
901
902 build_alias=$build
903 case "$build_alias" in
904 NONE)
905   case $nonopt in
906   NONE) build_alias=$host_alias ;;
907   *) build_alias=$nonopt ;;
908   esac ;;
909 esac
910
911 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
912 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
913 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
914 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
915 echo "$ac_t""$build" 1>&6
916
917 if test $host != $build; then
918   ac_tool_prefix=${host_alias}-
919 else
920   ac_tool_prefix=
921 fi
922
923 if test -z "$LD" && test "$GCC" = yes; then
924   # Extract the first word of "${ac_tool_prefix}gld", so it can be a program name with args.
925 set dummy ${ac_tool_prefix}gld; ac_word=$2
926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
927 echo "configure:928: checking for $ac_word" >&5
928 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
929   echo $ac_n "(cached) $ac_c" 1>&6
930 else
931   if test -n "$LD"; then
932   ac_cv_prog_LD="$LD" # Let the user override the test.
933 else
934   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
935   ac_dummy="$PATH"
936   for ac_dir in $ac_dummy; do
937     test -z "$ac_dir" && ac_dir=.
938     if test -f $ac_dir/$ac_word; then
939       ac_cv_prog_LD="${ac_tool_prefix}gld"
940       break
941     fi
942   done
943   IFS="$ac_save_ifs"
944 fi
945 fi
946 LD="$ac_cv_prog_LD"
947 if test -n "$LD"; then
948   echo "$ac_t""$LD" 1>&6
949 else
950   echo "$ac_t""no" 1>&6
951 fi
952
953
954 if test -z "$ac_cv_prog_LD"; then
955 if test -n "$ac_tool_prefix"; then
956   # Extract the first word of "gld", so it can be a program name with args.
957 set dummy gld; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
961   echo $ac_n "(cached) $ac_c" 1>&6
962 else
963   if test -n "$LD"; then
964   ac_cv_prog_LD="$LD" # Let the user override the test.
965 else
966   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
967   ac_dummy="$PATH"
968   for ac_dir in $ac_dummy; do
969     test -z "$ac_dir" && ac_dir=.
970     if test -f $ac_dir/$ac_word; then
971       ac_cv_prog_LD="gld"
972       break
973     fi
974   done
975   IFS="$ac_save_ifs"
976   test -z "$ac_cv_prog_LD" && ac_cv_prog_LD=""""
977 fi
978 fi
979 LD="$ac_cv_prog_LD"
980 if test -n "$LD"; then
981   echo "$ac_t""$LD" 1>&6
982 else
983   echo "$ac_t""no" 1>&6
984 fi
985
986 else
987   LD=""""
988 fi
989 fi
990
991 fi
992 if test -z "$LD"; then
993   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
994 set dummy ${ac_tool_prefix}ld; ac_word=$2
995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
996 echo "configure:997: checking for $ac_word" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
998   echo $ac_n "(cached) $ac_c" 1>&6
999 else
1000   if test -n "$LD"; then
1001   ac_cv_prog_LD="$LD" # Let the user override the test.
1002 else
1003   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1004   ac_dummy="$PATH"
1005   for ac_dir in $ac_dummy; do
1006     test -z "$ac_dir" && ac_dir=.
1007     if test -f $ac_dir/$ac_word; then
1008       ac_cv_prog_LD="${ac_tool_prefix}ld"
1009       break
1010     fi
1011   done
1012   IFS="$ac_save_ifs"
1013   test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1014 fi
1015 fi
1016 LD="$ac_cv_prog_LD"
1017 if test -n "$LD"; then
1018   echo "$ac_t""$LD" 1>&6
1019 else
1020   echo "$ac_t""no" 1>&6
1021 fi
1022
1023
1024
1025 fi
1026
1027 echo $ac_n "checking whether $LD accepts -r""... $ac_c" 1>&6
1028 echo "configure:1029: checking whether $LD accepts -r" >&5
1029 if eval "test \"`echo '$''{'libfirm_cv_prog_ld_r'+set}'`\" = set"; then
1030   echo $ac_n "(cached) $ac_c" 1>&6
1031 else
1032
1033 libfirm_cv_prog_ld_r=no
1034 if test "$LD"; then
1035   cat > conftest.$ac_ext <<EOF
1036 int foo() { return 0; }
1037 EOF
1038   if eval $ac_compile && mv conftest.o conftest2.o; then
1039     cat > conftest.$ac_ext <<EOF
1040 int main() { return foo(); }
1041 EOF
1042     if eval $ac_compile; then
1043       if $LD -r -o conftest conftest.o conftest2.o; then
1044         libfirm_cv_prog_ld_r=yes
1045       fi
1046     fi
1047   fi
1048 fi
1049 rm -f conftest*
1050 fi
1051
1052 echo "$ac_t""$libfirm_cv_prog_ld_r" 1>&6
1053
1054
1055 if test "$libfirm_cv_prog_ld_r" != "yes"; then
1056   { echo "configure: error: need a prelinkcapable linker" 1>&2; exit 1; }
1057 fi
1058
1059 # Extract the first word of "ar", so it can be a program name with args.
1060 set dummy ar; ac_word=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 echo "configure:1063: checking for $ac_word" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1064   echo $ac_n "(cached) $ac_c" 1>&6
1065 else
1066   if test -n "$AR"; then
1067   ac_cv_prog_AR="$AR" # Let the user override the test.
1068 else
1069   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1070   ac_dummy="$PATH"
1071   for ac_dir in $ac_dummy; do
1072     test -z "$ac_dir" && ac_dir=.
1073     if test -f $ac_dir/$ac_word; then
1074       ac_cv_prog_AR=""ar""
1075       break
1076     fi
1077   done
1078   IFS="$ac_save_ifs"
1079   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
1080 fi
1081 fi
1082 AR="$ac_cv_prog_AR"
1083 if test -n "$AR"; then
1084   echo "$ac_t""$AR" 1>&6
1085 else
1086   echo "$ac_t""no" 1>&6
1087 fi
1088
1089 if test "$AR" != "ar"; then
1090   { echo "configure: error: need ar for creating archives" 1>&2; exit 1; }
1091 fi
1092
1093 # Extract the first word of "tar", so it can be a program name with args.
1094 set dummy tar; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1098   echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100   if test -n "$TAR"; then
1101   ac_cv_prog_TAR="$TAR" # Let the user override the test.
1102 else
1103   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1104   ac_dummy="$PATH"
1105   for ac_dir in $ac_dummy; do
1106     test -z "$ac_dir" && ac_dir=.
1107     if test -f $ac_dir/$ac_word; then
1108       ac_cv_prog_TAR=""tar""
1109       break
1110     fi
1111   done
1112   IFS="$ac_save_ifs"
1113   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
1114 fi
1115 fi
1116 TAR="$ac_cv_prog_TAR"
1117 if test -n "$TAR"; then
1118   echo "$ac_t""$TAR" 1>&6
1119 else
1120   echo "$ac_t""no" 1>&6
1121 fi
1122
1123 if test "$TAR" != "tar"; then
1124   { echo "configure: error: need tar for creating archives in distribution" 1>&2; exit 1; }
1125 fi
1126
1127
1128 # Extract the first word of "ranlib", so it can be a program name with args.
1129 set dummy ranlib; ac_word=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1133   echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135   if test -n "$RANLIB"; then
1136   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1137 else
1138   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1139   ac_dummy="$PATH"
1140   for ac_dir in $ac_dummy; do
1141     test -z "$ac_dir" && ac_dir=.
1142     if test -f $ac_dir/$ac_word; then
1143       ac_cv_prog_RANLIB="ranlib"
1144       break
1145     fi
1146   done
1147   IFS="$ac_save_ifs"
1148   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1149 fi
1150 fi
1151 RANLIB="$ac_cv_prog_RANLIB"
1152 if test -n "$RANLIB"; then
1153   echo "$ac_t""$RANLIB" 1>&6
1154 else
1155   echo "$ac_t""no" 1>&6
1156 fi
1157
1158
1159 # Find a good install program.  We prefer a C program (faster),
1160 # so one script is as good as another.  But avoid the broken or
1161 # incompatible versions:
1162 # SysV /etc/install, /usr/sbin/install
1163 # SunOS /usr/etc/install
1164 # IRIX /sbin/install
1165 # AIX /bin/install
1166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1169 # ./install, which can be erroneously created by make from ./install.sh.
1170 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1171 echo "configure:1172: checking for a BSD compatible install" >&5
1172 if test -z "$INSTALL"; then
1173 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1174   echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1177   for ac_dir in $PATH; do
1178     # Account for people who put trailing slashes in PATH elements.
1179     case "$ac_dir/" in
1180     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1181     *)
1182       # OSF1 and SCO ODT 3.0 have their own names for install.
1183       # Don't use installbsd from OSF since it installs stuff as root
1184       # by default.
1185       for ac_prog in ginstall scoinst install; do
1186         if test -f $ac_dir/$ac_prog; then
1187           if test $ac_prog = install &&
1188             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1189             # AIX install.  It has an incompatible calling convention.
1190             :
1191           else
1192             ac_cv_path_install="$ac_dir/$ac_prog -c"
1193             break 2
1194           fi
1195         fi
1196       done
1197       ;;
1198     esac
1199   done
1200   IFS="$ac_save_IFS"
1201
1202 fi
1203   if test "${ac_cv_path_install+set}" = set; then
1204     INSTALL="$ac_cv_path_install"
1205   else
1206     # As a last resort, use the slow shell script.  We don't cache a
1207     # path for INSTALL within a source directory, because that will
1208     # break other packages using the cache if that directory is
1209     # removed, or if the path is relative.
1210     INSTALL="$ac_install_sh"
1211   fi
1212 fi
1213 echo "$ac_t""$INSTALL" 1>&6
1214
1215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1216 # It thinks the first close brace ends the variable substitution.
1217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1218
1219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1220
1221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1222
1223
1224 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ln -s works" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   rm -f conftestdata
1230 if ln -s X conftestdata 2>/dev/null
1231 then
1232   rm -f conftestdata
1233   ac_cv_prog_LN_S="ln -s"
1234 else
1235   ac_cv_prog_LN_S=ln
1236 fi
1237 fi
1238 LN_S="$ac_cv_prog_LN_S"
1239 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1240   echo "$ac_t""yes" 1>&6
1241 else
1242   echo "$ac_t""no" 1>&6
1243 fi
1244
1245
1246 if test "$enable_auto_documentation" = yes; then
1247   # Extract the first word of "robodoc", so it can be a program name with args.
1248 set dummy robodoc; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_ROBODOC'+set}'`\" = set"; then
1252   echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254   if test -n "$ROBODOC"; then
1255   ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
1256 else
1257   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1258   ac_dummy="$PATH"
1259   for ac_dir in $ac_dummy; do
1260     test -z "$ac_dir" && ac_dir=.
1261     if test -f $ac_dir/$ac_word; then
1262       ac_cv_prog_ROBODOC=""robodoc""
1263       break
1264     fi
1265   done
1266   IFS="$ac_save_ifs"
1267   test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
1268 fi
1269 fi
1270 ROBODOC="$ac_cv_prog_ROBODOC"
1271 if test -n "$ROBODOC"; then
1272   echo "$ac_t""$ROBODOC" 1>&6
1273 else
1274   echo "$ac_t""no" 1>&6
1275 fi
1276
1277   if test "$ROBODOC" != "robodoc"; then
1278     { echo "configure: error: need robodoc for auto documentation (IPD: module add robodoc)" 1>&2; exit 1; }
1279   fi
1280 fi
1281
1282
1283 if test "$enable_firm_jni" = yes; then
1284   # Extract the first word of "javac", so it can be a program name with args.
1285 set dummy javac; ac_word=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
1289   echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291   if test -n "$JAVAC"; then
1292   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1293 else
1294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1295   ac_dummy="$PATH"
1296   for ac_dir in $ac_dummy; do
1297     test -z "$ac_dir" && ac_dir=.
1298     if test -f $ac_dir/$ac_word; then
1299       ac_cv_prog_JAVAC=""javac""
1300       break
1301     fi
1302   done
1303   IFS="$ac_save_ifs"
1304   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
1305 fi
1306 fi
1307 JAVAC="$ac_cv_prog_JAVAC"
1308 if test -n "$JAVAC"; then
1309   echo "$ac_t""$JAVAC" 1>&6
1310 else
1311   echo "$ac_t""no" 1>&6
1312 fi
1313
1314   if test "$JAVAC" != "javac"; then
1315     { echo "configure: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" 1>&2; exit 1; }
1316   fi
1317   # Extract the first word of "javah", so it can be a program name with args.
1318 set dummy javah; ac_word=$2
1319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1320 echo "configure:1321: checking for $ac_word" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_JAVAH'+set}'`\" = set"; then
1322   echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324   if test -n "$JAVAH"; then
1325   ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
1326 else
1327   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1328   ac_dummy="$PATH"
1329   for ac_dir in $ac_dummy; do
1330     test -z "$ac_dir" && ac_dir=.
1331     if test -f $ac_dir/$ac_word; then
1332       ac_cv_prog_JAVAH=""javah""
1333       break
1334     fi
1335   done
1336   IFS="$ac_save_ifs"
1337   test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
1338 fi
1339 fi
1340 JAVAH="$ac_cv_prog_JAVAH"
1341 if test -n "$JAVAH"; then
1342   echo "$ac_t""$JAVAH" 1>&6
1343 else
1344   echo "$ac_t""no" 1>&6
1345 fi
1346
1347   if test "$JAVAH" != "javah"; then
1348     { echo "configure: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" 1>&2; exit 1; }
1349   fi
1350 fi
1351
1352
1353
1354 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1355 echo "configure:1356: checking how to run the C preprocessor" >&5
1356 # On Suns, sometimes $CPP names a directory.
1357 if test -n "$CPP" && test -d "$CPP"; then
1358   CPP=
1359 fi
1360 if test -z "$CPP"; then
1361 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1362   echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364     # This must be in double quotes, not single quotes, because CPP may get
1365   # substituted into the Makefile and "${CC-cc}" will confuse make.
1366   CPP="${CC-cc} -E"
1367   # On the NeXT, cc -E runs the code through the compiler's parser,
1368   # not just through cpp.
1369   cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1372 #include <assert.h>
1373 Syntax Error
1374 EOF
1375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376 { (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1378 if test -z "$ac_err"; then
1379   :
1380 else
1381   echo "$ac_err" >&5
1382   echo "configure: failed program was:" >&5
1383   cat conftest.$ac_ext >&5
1384   rm -rf conftest*
1385   CPP="${CC-cc} -E -traditional-cpp"
1386   cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 #include <assert.h>
1390 Syntax Error
1391 EOF
1392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393 { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1395 if test -z "$ac_err"; then
1396   :
1397 else
1398   echo "$ac_err" >&5
1399   echo "configure: failed program was:" >&5
1400   cat conftest.$ac_ext >&5
1401   rm -rf conftest*
1402   CPP="${CC-cc} -nologo -E"
1403   cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 #include <assert.h>
1407 Syntax Error
1408 EOF
1409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1410 { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1412 if test -z "$ac_err"; then
1413   :
1414 else
1415   echo "$ac_err" >&5
1416   echo "configure: failed program was:" >&5
1417   cat conftest.$ac_ext >&5
1418   rm -rf conftest*
1419   CPP=/lib/cpp
1420 fi
1421 rm -f conftest*
1422 fi
1423 rm -f conftest*
1424 fi
1425 rm -f conftest*
1426   ac_cv_prog_CPP="$CPP"
1427 fi
1428   CPP="$ac_cv_prog_CPP"
1429 else
1430   ac_cv_prog_CPP="$CPP"
1431 fi
1432 echo "$ac_t""$CPP" 1>&6
1433
1434 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1435 echo "configure:1436: checking for ANSI C header files" >&5
1436 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1437   echo $ac_n "(cached) $ac_c" 1>&6
1438 else
1439   cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1442 #include <stdlib.h>
1443 #include <stdarg.h>
1444 #include <string.h>
1445 #include <float.h>
1446 EOF
1447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1448 { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1450 if test -z "$ac_err"; then
1451   rm -rf conftest*
1452   ac_cv_header_stdc=yes
1453 else
1454   echo "$ac_err" >&5
1455   echo "configure: failed program was:" >&5
1456   cat conftest.$ac_ext >&5
1457   rm -rf conftest*
1458   ac_cv_header_stdc=no
1459 fi
1460 rm -f conftest*
1461
1462 if test $ac_cv_header_stdc = yes; then
1463   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <string.h>
1468 EOF
1469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1470   egrep "memchr" >/dev/null 2>&1; then
1471   :
1472 else
1473   rm -rf conftest*
1474   ac_cv_header_stdc=no
1475 fi
1476 rm -f conftest*
1477
1478 fi
1479
1480 if test $ac_cv_header_stdc = yes; then
1481   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1482 cat > conftest.$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1485 #include <stdlib.h>
1486 EOF
1487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1488   egrep "free" >/dev/null 2>&1; then
1489   :
1490 else
1491   rm -rf conftest*
1492   ac_cv_header_stdc=no
1493 fi
1494 rm -f conftest*
1495
1496 fi
1497
1498 if test $ac_cv_header_stdc = yes; then
1499   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1500 if test "$cross_compiling" = yes; then
1501   :
1502 else
1503   cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1506 #include <ctype.h>
1507 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1508 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1510 int main () { int i; for (i = 0; i < 256; i++)
1511 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1512 exit (0); }
1513
1514 EOF
1515 if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1516 then
1517   :
1518 else
1519   echo "configure: failed program was:" >&5
1520   cat conftest.$ac_ext >&5
1521   rm -fr conftest*
1522   ac_cv_header_stdc=no
1523 fi
1524 rm -fr conftest*
1525 fi
1526
1527 fi
1528 fi
1529
1530 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1531 if test $ac_cv_header_stdc = yes; then
1532   cat >> confdefs.h <<\EOF
1533 #define STDC_HEADERS 1
1534 EOF
1535
1536 fi
1537
1538
1539
1540 for ac_hdr in math.h
1541 do
1542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1544 echo "configure:1545: checking for $ac_hdr" >&5
1545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1546   echo $ac_n "(cached) $ac_c" 1>&6
1547 else
1548   cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 #include <$ac_hdr>
1552 EOF
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1557   rm -rf conftest*
1558   eval "ac_cv_header_$ac_safe=yes"
1559 else
1560   echo "$ac_err" >&5
1561   echo "configure: failed program was:" >&5
1562   cat conftest.$ac_ext >&5
1563   rm -rf conftest*
1564   eval "ac_cv_header_$ac_safe=no"
1565 fi
1566 rm -f conftest*
1567 fi
1568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1569   echo "$ac_t""yes" 1>&6
1570     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1571   cat >> confdefs.h <<EOF
1572 #define $ac_tr_hdr 1
1573 EOF
1574  ac_math_headers="yes"
1575 else
1576   echo "$ac_t""no" 1>&6
1577 ac_math_headers="no"
1578 fi
1579 done
1580
1581 if test "$ac_math_headers" != yes; then
1582     { echo "configure: error: "math header file not found"" 1>&2; exit 1; }
1583 fi
1584
1585
1586
1587 for ac_hdr in gmp.h
1588 do
1589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_hdr" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593   echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595   cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 #include <$ac_hdr>
1599 EOF
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1604   rm -rf conftest*
1605   eval "ac_cv_header_$ac_safe=yes"
1606 else
1607   echo "$ac_err" >&5
1608   echo "configure: failed program was:" >&5
1609   cat conftest.$ac_ext >&5
1610   rm -rf conftest*
1611   eval "ac_cv_header_$ac_safe=no"
1612 fi
1613 rm -f conftest*
1614 fi
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616   echo "$ac_t""yes" 1>&6
1617     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1618   cat >> confdefs.h <<EOF
1619 #define $ac_tr_hdr 1
1620 EOF
1621  ac_gmp_headers="yes"
1622 else
1623   echo "$ac_t""no" 1>&6
1624 ac_gmp_headers="no"
1625 fi
1626 done
1627
1628 if test "$ac_gmp_headers" != yes; then
1629     { echo "configure: error: "GNU multiprecission gmp header file not found"" 1>&2; exit 1; }
1630 fi
1631
1632
1633
1634 for ac_hdr in obstack.h
1635 do
1636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1638 echo "configure:1639: checking for $ac_hdr" >&5
1639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1640   echo $ac_n "(cached) $ac_c" 1>&6
1641 else
1642   cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 #include <$ac_hdr>
1646 EOF
1647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1648 { (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1650 if test -z "$ac_err"; then
1651   rm -rf conftest*
1652   eval "ac_cv_header_$ac_safe=yes"
1653 else
1654   echo "$ac_err" >&5
1655   echo "configure: failed program was:" >&5
1656   cat conftest.$ac_ext >&5
1657   rm -rf conftest*
1658   eval "ac_cv_header_$ac_safe=no"
1659 fi
1660 rm -f conftest*
1661 fi
1662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1663   echo "$ac_t""yes" 1>&6
1664     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1665   cat >> confdefs.h <<EOF
1666 #define $ac_tr_hdr 1
1667 EOF
1668  ac_obstack_headers="yes"
1669 else
1670   echo "$ac_t""no" 1>&6
1671 ac_obstack_headers="no"
1672 fi
1673 done
1674
1675 if test "$ac_obstack_headers" != yes; then
1676     { echo "configure: error: "obstack header file not found"" 1>&2; exit 1; }
1677 fi
1678
1679
1680
1681 if test "$enable_firm_jni" = yes; then
1682   for ac_hdr in jni.h
1683 do
1684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_hdr" >&5
1687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1688   echo $ac_n "(cached) $ac_c" 1>&6
1689 else
1690   cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1693 #include <$ac_hdr>
1694 EOF
1695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1696 { (eval echo configure:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1698 if test -z "$ac_err"; then
1699   rm -rf conftest*
1700   eval "ac_cv_header_$ac_safe=yes"
1701 else
1702   echo "$ac_err" >&5
1703   echo "configure: failed program was:" >&5
1704   cat conftest.$ac_ext >&5
1705   rm -rf conftest*
1706   eval "ac_cv_header_$ac_safe=no"
1707 fi
1708 rm -f conftest*
1709 fi
1710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1711   echo "$ac_t""yes" 1>&6
1712     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1713   cat >> confdefs.h <<EOF
1714 #define $ac_tr_hdr 1
1715 EOF
1716  ac_jni_headers="yes"
1717 else
1718   echo "$ac_t""no" 1>&6
1719 ac_jni_headers="no"
1720 fi
1721 done
1722
1723   if test "$ac_jni_headers" != yes; then
1724     { echo "configure: 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)" 1>&2; exit 1; }
1725   fi
1726 fi
1727
1728
1729
1730
1731 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1732 echo "configure:1733: checking for main in -lgmp" >&5
1733 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1735   echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737   ac_save_LIBS="$LIBS"
1738 LIBS="-lgmp  $LIBS"
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742
1743 int main() {
1744 main()
1745 ; return 0; }
1746 EOF
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748   rm -rf conftest*
1749   eval "ac_cv_lib_$ac_lib_var=yes"
1750 else
1751   echo "configure: failed program was:" >&5
1752   cat conftest.$ac_ext >&5
1753   rm -rf conftest*
1754   eval "ac_cv_lib_$ac_lib_var=no"
1755 fi
1756 rm -f conftest*
1757 LIBS="$ac_save_LIBS"
1758
1759 fi
1760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1761   echo "$ac_t""yes" 1>&6
1762   ac_gmp_library="yes"
1763 else
1764   echo "$ac_t""no" 1>&6
1765 ac_gmp_library="no"
1766 fi
1767
1768 if test "$ac_gmp_library" != yes; then
1769     { echo "configure: error: "GNU multiprecission gmp library not found"" 1>&2; exit 1; }
1770 fi
1771
1772
1773 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1774 echo "configure:1775: checking for main in -lm" >&5
1775 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1777   echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779   ac_save_LIBS="$LIBS"
1780 LIBS="-lm  $LIBS"
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784
1785 int main() {
1786 main()
1787 ; return 0; }
1788 EOF
1789 if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1790   rm -rf conftest*
1791   eval "ac_cv_lib_$ac_lib_var=yes"
1792 else
1793   echo "configure: failed program was:" >&5
1794   cat conftest.$ac_ext >&5
1795   rm -rf conftest*
1796   eval "ac_cv_lib_$ac_lib_var=no"
1797 fi
1798 rm -f conftest*
1799 LIBS="$ac_save_LIBS"
1800
1801 fi
1802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1803   echo "$ac_t""yes" 1>&6
1804   ac_m_library="yes"
1805 else
1806   echo "$ac_t""no" 1>&6
1807 ac_m_library="no"
1808 fi
1809
1810 if test "$ac_m_library" != yes; then
1811     { echo "configure: error: "standard math library not found"" 1>&2; exit 1; }
1812 fi
1813
1814
1815
1816
1817
1818
1819 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1820 echo "configure:1821: checking for strerror" >&5
1821 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
1822   echo $ac_n "(cached) $ac_c" 1>&6
1823 else
1824   cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 /* System header to define __stub macros and hopefully few prototypes,
1828     which can conflict with char strerror(); below.  */
1829 #include <assert.h>
1830 /* Override any gcc2 internal prototype to avoid an error.  */
1831 /* We use char because int might match the return type of a gcc2
1832     builtin and then its argument prototype would still apply.  */
1833 char strerror();
1834
1835 int main() {
1836
1837 /* The GNU C library defines this for functions which it implements
1838     to always fail with ENOSYS.  Some functions are actually named
1839     something starting with __ and the normal name is an alias.  */
1840 #if defined (__stub_strerror) || defined (__stub___strerror)
1841 choke me
1842 #else
1843 strerror();
1844 #endif
1845
1846 ; return 0; }
1847 EOF
1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1849   rm -rf conftest*
1850   eval "ac_cv_func_strerror=yes"
1851 else
1852   echo "configure: failed program was:" >&5
1853   cat conftest.$ac_ext >&5
1854   rm -rf conftest*
1855   eval "ac_cv_func_strerror=no"
1856 fi
1857 rm -f conftest*
1858 fi
1859
1860 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
1861   echo "$ac_t""yes" 1>&6
1862   :
1863 else
1864   echo "$ac_t""no" 1>&6
1865 { echo "configure: error: "need strerror function"" 1>&2; exit 1; }
1866
1867 fi
1868
1869
1870
1871
1872
1873 trap '' 1 2 15
1874 cat > confcache <<\EOF
1875 # This file is a shell script that caches the results of configure
1876 # tests run on this system so they can be shared between configure
1877 # scripts and configure runs.  It is not useful on other systems.
1878 # If it contains results you don't want to keep, you may remove or edit it.
1879 #
1880 # By default, configure uses ./config.cache as the cache file,
1881 # creating it if it does not exist already.  You can give configure
1882 # the --cache-file=FILE option to use a different cache file; that is
1883 # what configure does when it calls configure scripts in
1884 # subdirectories, so they share the cache.
1885 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1886 # config.status only pays attention to the cache file if you give it the
1887 # --recheck option to rerun configure.
1888 #
1889 EOF
1890 # The following way of writing the cache mishandles newlines in values,
1891 # but we know of no workaround that is simple, portable, and efficient.
1892 # So, don't put newlines in cache variables' values.
1893 # Ultrix sh set writes to stderr and can't be redirected directly,
1894 # and sets the high bit in the cache file unless we assign to the vars.
1895 (set) 2>&1 |
1896   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1897   *ac_space=\ *)
1898     # `set' does not quote correctly, so add quotes (double-quote substitution
1899     # turns \\\\ into \\, and sed turns \\ into \).
1900     sed -n \
1901       -e "s/'/'\\\\''/g" \
1902       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1903     ;;
1904   *)
1905     # `set' quotes correctly as required by POSIX, so do not add quotes.
1906     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1907     ;;
1908   esac >> confcache
1909 if cmp -s $cache_file confcache; then
1910   :
1911 else
1912   if test -w $cache_file; then
1913     echo "updating cache $cache_file"
1914     cat confcache > $cache_file
1915   else
1916     echo "not updating unwritable cache $cache_file"
1917   fi
1918 fi
1919 rm -f confcache
1920
1921 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1922
1923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1924 # Let make expand exec_prefix.
1925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1926
1927 # Any assignment to VPATH causes Sun make to only execute
1928 # the first set of double-colon rules, so remove it if not needed.
1929 # If there is a colon in the path, we need to keep it.
1930 if test "x$srcdir" = x.; then
1931   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1932 fi
1933
1934 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1935
1936 DEFS=-DHAVE_CONFIG_H
1937
1938 # Without the "./", some shells look in PATH for config.status.
1939 : ${CONFIG_STATUS=./config.status}
1940
1941 echo creating $CONFIG_STATUS
1942 rm -f $CONFIG_STATUS
1943 cat > $CONFIG_STATUS <<EOF
1944 #! /bin/sh
1945 # Generated automatically by configure.
1946 # Run this file to recreate the current configuration.
1947 # This directory was configured as follows,
1948 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1949 #
1950 # $0 $ac_configure_args
1951 #
1952 # Compiler output produced by configure, useful for debugging
1953 # configure, is in ./config.log if it exists.
1954
1955 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1956 for ac_option
1957 do
1958   case "\$ac_option" in
1959   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1960     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1961     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1962   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1963     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1964     exit 0 ;;
1965   -help | --help | --hel | --he | --h)
1966     echo "\$ac_cs_usage"; exit 0 ;;
1967   *) echo "\$ac_cs_usage"; exit 1 ;;
1968   esac
1969 done
1970
1971 ac_given_srcdir=$srcdir
1972 ac_given_INSTALL="$INSTALL"
1973
1974 trap 'rm -fr `echo "$ac_output_file config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1975 EOF
1976 cat >> $CONFIG_STATUS <<EOF
1977
1978 # Protect against being on the right side of a sed subst in config.status.
1979 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1980  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1981 $ac_vpsub
1982 $extrasub
1983 s%@SHELL@%$SHELL%g
1984 s%@CFLAGS@%$CFLAGS%g
1985 s%@CPPFLAGS@%$CPPFLAGS%g
1986 s%@CXXFLAGS@%$CXXFLAGS%g
1987 s%@FFLAGS@%$FFLAGS%g
1988 s%@DEFS@%$DEFS%g
1989 s%@LDFLAGS@%$LDFLAGS%g
1990 s%@LIBS@%$LIBS%g
1991 s%@exec_prefix@%$exec_prefix%g
1992 s%@prefix@%$prefix%g
1993 s%@program_transform_name@%$program_transform_name%g
1994 s%@bindir@%$bindir%g
1995 s%@sbindir@%$sbindir%g
1996 s%@libexecdir@%$libexecdir%g
1997 s%@datadir@%$datadir%g
1998 s%@sysconfdir@%$sysconfdir%g
1999 s%@sharedstatedir@%$sharedstatedir%g
2000 s%@localstatedir@%$localstatedir%g
2001 s%@libdir@%$libdir%g
2002 s%@includedir@%$includedir%g
2003 s%@oldincludedir@%$oldincludedir%g
2004 s%@infodir@%$infodir%g
2005 s%@mandir@%$mandir%g
2006 s%@libfirm_conf_env@%$libfirm_conf_env%g
2007 s%@enable_debug_libfirm@%$enable_debug_libfirm%g
2008 s%@enable_gcc_inline@%$enable_gcc_inline%g
2009 s%@enable_profile_libfirm@%$enable_profile_libfirm%g
2010 s%@enable_auto_documentation@%$enable_auto_documentation%g
2011 s%@enable_firm_jni@%$enable_firm_jni%g
2012 s%@CC@%$CC%g
2013 s%@host@%$host%g
2014 s%@host_alias@%$host_alias%g
2015 s%@host_cpu@%$host_cpu%g
2016 s%@host_vendor@%$host_vendor%g
2017 s%@host_os@%$host_os%g
2018 s%@build@%$build%g
2019 s%@build_alias@%$build_alias%g
2020 s%@build_cpu@%$build_cpu%g
2021 s%@build_vendor@%$build_vendor%g
2022 s%@build_os@%$build_os%g
2023 s%@LD@%$LD%g
2024 s%@libfirm_cv_prog_ld_r@%$libfirm_cv_prog_ld_r%g
2025 s%@AR@%$AR%g
2026 s%@TAR@%$TAR%g
2027 s%@RANLIB@%$RANLIB%g
2028 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2029 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2030 s%@INSTALL_DATA@%$INSTALL_DATA%g
2031 s%@LN_S@%$LN_S%g
2032 s%@ROBODOC@%$ROBODOC%g
2033 s%@JAVAC@%$JAVAC%g
2034 s%@JAVAH@%$JAVAH%g
2035 s%@CPP@%$CPP%g
2036
2037 CEOF
2038 EOF
2039
2040 cat >> $CONFIG_STATUS <<\EOF
2041
2042 # Split the substitutions into bite-sized pieces for seds with
2043 # small command number limits, like on Digital OSF/1 and HP-UX.
2044 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2045 ac_file=1 # Number of current file.
2046 ac_beg=1 # First line for current file.
2047 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2048 ac_more_lines=:
2049 ac_sed_cmds=""
2050 while $ac_more_lines; do
2051   if test $ac_beg -gt 1; then
2052     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2053   else
2054     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2055   fi
2056   if test ! -s conftest.s$ac_file; then
2057     ac_more_lines=false
2058     rm -f conftest.s$ac_file
2059   else
2060     if test -z "$ac_sed_cmds"; then
2061       ac_sed_cmds="sed -f conftest.s$ac_file"
2062     else
2063       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2064     fi
2065     ac_file=`expr $ac_file + 1`
2066     ac_beg=$ac_end
2067     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2068   fi
2069 done
2070 if test -z "$ac_sed_cmds"; then
2071   ac_sed_cmds=cat
2072 fi
2073 EOF
2074
2075 cat >> $CONFIG_STATUS <<EOF
2076
2077 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_file"}
2078 EOF
2079 cat >> $CONFIG_STATUS <<\EOF
2080 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2081   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2082   case "$ac_file" in
2083   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2084        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2085   *) ac_file_in="${ac_file}.in" ;;
2086   esac
2087
2088   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2089
2090   # Remove last slash and all that follows it.  Not all systems have dirname.
2091   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2092   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2093     # The file is in a subdirectory.
2094     test ! -d "$ac_dir" && mkdir "$ac_dir"
2095     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2096     # A "../" for each directory in $ac_dir_suffix.
2097     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2098   else
2099     ac_dir_suffix= ac_dots=
2100   fi
2101
2102   case "$ac_given_srcdir" in
2103   .)  srcdir=.
2104       if test -z "$ac_dots"; then top_srcdir=.
2105       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2106   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2107   *) # Relative path.
2108     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2109     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2110   esac
2111
2112   case "$ac_given_INSTALL" in
2113   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2114   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2115   esac
2116
2117   echo creating "$ac_file"
2118   rm -f "$ac_file"
2119   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2120   case "$ac_file" in
2121   *Makefile*) ac_comsub="1i\\
2122 # $configure_input" ;;
2123   *) ac_comsub= ;;
2124   esac
2125
2126   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2127   sed -e "$ac_comsub
2128 s%@configure_input@%$configure_input%g
2129 s%@srcdir@%$srcdir%g
2130 s%@top_srcdir@%$top_srcdir%g
2131 s%@INSTALL@%$INSTALL%g
2132 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2133 fi; done
2134 rm -f conftest.s*
2135
2136 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2137 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2138 #
2139 # ac_d sets the value in "#define NAME VALUE" lines.
2140 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2141 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2142 ac_dC='\3'
2143 ac_dD='%g'
2144 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2145 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2146 ac_uB='\([      ]\)%\1#\2define\3'
2147 ac_uC=' '
2148 ac_uD='\4%g'
2149 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2150 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2151 ac_eB='$%\1#\2define\3'
2152 ac_eC=' '
2153 ac_eD='%g'
2154
2155 if test "${CONFIG_HEADERS+set}" != set; then
2156 EOF
2157 cat >> $CONFIG_STATUS <<EOF
2158   CONFIG_HEADERS="config.h"
2159 EOF
2160 cat >> $CONFIG_STATUS <<\EOF
2161 fi
2162 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2163   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2164   case "$ac_file" in
2165   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2166        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2167   *) ac_file_in="${ac_file}.in" ;;
2168   esac
2169
2170   echo creating $ac_file
2171
2172   rm -f conftest.frag conftest.in conftest.out
2173   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2174   cat $ac_file_inputs > conftest.in
2175
2176 EOF
2177
2178 # Transform confdefs.h into a sed script conftest.vals that substitutes
2179 # the proper values into config.h.in to produce config.h.  And first:
2180 # Protect against being on the right side of a sed subst in config.status.
2181 # Protect against being in an unquoted here document in config.status.
2182 rm -f conftest.vals
2183 cat > conftest.hdr <<\EOF
2184 s/[\\&%]/\\&/g
2185 s%[\\$`]%\\&%g
2186 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2187 s%ac_d%ac_u%gp
2188 s%ac_u%ac_e%gp
2189 EOF
2190 sed -n -f conftest.hdr confdefs.h > conftest.vals
2191 rm -f conftest.hdr
2192
2193 # This sed command replaces #undef with comments.  This is necessary, for
2194 # example, in the case of _POSIX_SOURCE, which is predefined and required
2195 # on some systems where configure will not decide to define it.
2196 cat >> conftest.vals <<\EOF
2197 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2198 EOF
2199
2200 # Break up conftest.vals because some shells have a limit on
2201 # the size of here documents, and old seds have small limits too.
2202
2203 rm -f conftest.tail
2204 while :
2205 do
2206   ac_lines=`grep -c . conftest.vals`
2207   # grep -c gives empty output for an empty file on some AIX systems.
2208   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2209   # Write a limited-size here document to conftest.frag.
2210   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2211   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2212   echo 'CEOF
2213   sed -f conftest.frag conftest.in > conftest.out
2214   rm -f conftest.in
2215   mv conftest.out conftest.in
2216 ' >> $CONFIG_STATUS
2217   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2218   rm -f conftest.vals
2219   mv conftest.tail conftest.vals
2220 done
2221 rm -f conftest.vals
2222
2223 cat >> $CONFIG_STATUS <<\EOF
2224   rm -f conftest.frag conftest.h
2225   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2226   cat conftest.in >> conftest.h
2227   rm -f conftest.in
2228   if cmp -s $ac_file conftest.h 2>/dev/null; then
2229     echo "$ac_file is unchanged"
2230     rm -f conftest.h
2231   else
2232     # Remove last slash and all that follows it.  Not all systems have dirname.
2233       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2234       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2235       # The file is in a subdirectory.
2236       test ! -d "$ac_dir" && mkdir "$ac_dir"
2237     fi
2238     rm -f $ac_file
2239     mv conftest.h $ac_file
2240   fi
2241 fi; done
2242
2243 EOF
2244 cat >> $CONFIG_STATUS <<EOF
2245
2246 EOF
2247 cat >> $CONFIG_STATUS <<\EOF
2248  touch stamp-h
2249 exit 0
2250 EOF
2251 chmod +x $CONFIG_STATUS
2252 rm -fr confdefs* $ac_clean_files
2253 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1