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