changes to get a proper tar file
[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/Makefile 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 # Extract the first word of "tar", so it can be a program name with args.
1063 set dummy tar; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1067   echo $ac_n "(cached) $ac_c" 1>&6
1068 else
1069   if test -n "$TAR"; then
1070   ac_cv_prog_TAR="$TAR" # Let the user override the test.
1071 else
1072   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1073   ac_dummy="$PATH"
1074   for ac_dir in $ac_dummy; do
1075     test -z "$ac_dir" && ac_dir=.
1076     if test -f $ac_dir/$ac_word; then
1077       ac_cv_prog_TAR=""tar""
1078       break
1079     fi
1080   done
1081   IFS="$ac_save_ifs"
1082   test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
1083 fi
1084 fi
1085 TAR="$ac_cv_prog_TAR"
1086 if test -n "$TAR"; then
1087   echo "$ac_t""$TAR" 1>&6
1088 else
1089   echo "$ac_t""no" 1>&6
1090 fi
1091
1092 if test "$TAR" != "tar"; then
1093   { echo "configure: error: need tar for creating archives in distribution" 1>&2; exit 1; }
1094 fi
1095
1096
1097 # Extract the first word of "ranlib", so it can be a program name with args.
1098 set dummy ranlib; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1102   echo $ac_n "(cached) $ac_c" 1>&6
1103 else
1104   if test -n "$RANLIB"; then
1105   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1106 else
1107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1108   ac_dummy="$PATH"
1109   for ac_dir in $ac_dummy; do
1110     test -z "$ac_dir" && ac_dir=.
1111     if test -f $ac_dir/$ac_word; then
1112       ac_cv_prog_RANLIB="ranlib"
1113       break
1114     fi
1115   done
1116   IFS="$ac_save_ifs"
1117   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1118 fi
1119 fi
1120 RANLIB="$ac_cv_prog_RANLIB"
1121 if test -n "$RANLIB"; then
1122   echo "$ac_t""$RANLIB" 1>&6
1123 else
1124   echo "$ac_t""no" 1>&6
1125 fi
1126
1127
1128 # Find a good install program.  We prefer a C program (faster),
1129 # so one script is as good as another.  But avoid the broken or
1130 # incompatible versions:
1131 # SysV /etc/install, /usr/sbin/install
1132 # SunOS /usr/etc/install
1133 # IRIX /sbin/install
1134 # AIX /bin/install
1135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1138 # ./install, which can be erroneously created by make from ./install.sh.
1139 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1140 echo "configure:1141: checking for a BSD compatible install" >&5
1141 if test -z "$INSTALL"; then
1142 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1143   echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1146   for ac_dir in $PATH; do
1147     # Account for people who put trailing slashes in PATH elements.
1148     case "$ac_dir/" in
1149     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1150     *)
1151       # OSF1 and SCO ODT 3.0 have their own names for install.
1152       # Don't use installbsd from OSF since it installs stuff as root
1153       # by default.
1154       for ac_prog in ginstall scoinst install; do
1155         if test -f $ac_dir/$ac_prog; then
1156           if test $ac_prog = install &&
1157             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1158             # AIX install.  It has an incompatible calling convention.
1159             :
1160           else
1161             ac_cv_path_install="$ac_dir/$ac_prog -c"
1162             break 2
1163           fi
1164         fi
1165       done
1166       ;;
1167     esac
1168   done
1169   IFS="$ac_save_IFS"
1170
1171 fi
1172   if test "${ac_cv_path_install+set}" = set; then
1173     INSTALL="$ac_cv_path_install"
1174   else
1175     # As a last resort, use the slow shell script.  We don't cache a
1176     # path for INSTALL within a source directory, because that will
1177     # break other packages using the cache if that directory is
1178     # removed, or if the path is relative.
1179     INSTALL="$ac_install_sh"
1180   fi
1181 fi
1182 echo "$ac_t""$INSTALL" 1>&6
1183
1184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1185 # It thinks the first close brace ends the variable substitution.
1186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1187
1188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1189
1190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1191
1192
1193 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether ln -s works" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1196   echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198   rm -f conftestdata
1199 if ln -s X conftestdata 2>/dev/null
1200 then
1201   rm -f conftestdata
1202   ac_cv_prog_LN_S="ln -s"
1203 else
1204   ac_cv_prog_LN_S=ln
1205 fi
1206 fi
1207 LN_S="$ac_cv_prog_LN_S"
1208 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1209   echo "$ac_t""yes" 1>&6
1210 else
1211   echo "$ac_t""no" 1>&6
1212 fi
1213
1214
1215 if test "$enable_auto_documentation" = yes; then
1216   # Extract the first word of "robodoc", so it can be a program name with args.
1217 set dummy robodoc; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_ROBODOC'+set}'`\" = set"; then
1221   echo $ac_n "(cached) $ac_c" 1>&6
1222 else
1223   if test -n "$ROBODOC"; then
1224   ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
1225 else
1226   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1227   ac_dummy="$PATH"
1228   for ac_dir in $ac_dummy; do
1229     test -z "$ac_dir" && ac_dir=.
1230     if test -f $ac_dir/$ac_word; then
1231       ac_cv_prog_ROBODOC=""robodoc""
1232       break
1233     fi
1234   done
1235   IFS="$ac_save_ifs"
1236   test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
1237 fi
1238 fi
1239 ROBODOC="$ac_cv_prog_ROBODOC"
1240 if test -n "$ROBODOC"; then
1241   echo "$ac_t""$ROBODOC" 1>&6
1242 else
1243   echo "$ac_t""no" 1>&6
1244 fi
1245
1246   if test "$ROBODOC" != "robodoc"; then
1247     { echo "configure: error: need robodoc for auto documentation (IPD: module add robodoc)" 1>&2; exit 1; }
1248   fi
1249 fi
1250
1251
1252 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1253 echo "configure:1254: checking how to run the C preprocessor" >&5
1254 # On Suns, sometimes $CPP names a directory.
1255 if test -n "$CPP" && test -d "$CPP"; then
1256   CPP=
1257 fi
1258 if test -z "$CPP"; then
1259 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262     # This must be in double quotes, not single quotes, because CPP may get
1263   # substituted into the Makefile and "${CC-cc}" will confuse make.
1264   CPP="${CC-cc} -E"
1265   # On the NeXT, cc -E runs the code through the compiler's parser,
1266   # not just through cpp.
1267   cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1270 #include <assert.h>
1271 Syntax Error
1272 EOF
1273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1274 { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1276 if test -z "$ac_err"; then
1277   :
1278 else
1279   echo "$ac_err" >&5
1280   echo "configure: failed program was:" >&5
1281   cat conftest.$ac_ext >&5
1282   rm -rf conftest*
1283   CPP="${CC-cc} -E -traditional-cpp"
1284   cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1287 #include <assert.h>
1288 Syntax Error
1289 EOF
1290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1291 { (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1293 if test -z "$ac_err"; then
1294   :
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   CPP="${CC-cc} -nologo -E"
1301   cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 #include <assert.h>
1305 Syntax Error
1306 EOF
1307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1308 { (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1310 if test -z "$ac_err"; then
1311   :
1312 else
1313   echo "$ac_err" >&5
1314   echo "configure: failed program was:" >&5
1315   cat conftest.$ac_ext >&5
1316   rm -rf conftest*
1317   CPP=/lib/cpp
1318 fi
1319 rm -f conftest*
1320 fi
1321 rm -f conftest*
1322 fi
1323 rm -f conftest*
1324   ac_cv_prog_CPP="$CPP"
1325 fi
1326   CPP="$ac_cv_prog_CPP"
1327 else
1328   ac_cv_prog_CPP="$CPP"
1329 fi
1330 echo "$ac_t""$CPP" 1>&6
1331
1332 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1333 echo "configure:1334: checking for ANSI C header files" >&5
1334 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1335   echo $ac_n "(cached) $ac_c" 1>&6
1336 else
1337   cat > conftest.$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1340 #include <stdlib.h>
1341 #include <stdarg.h>
1342 #include <string.h>
1343 #include <float.h>
1344 EOF
1345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1346 { (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1348 if test -z "$ac_err"; then
1349   rm -rf conftest*
1350   ac_cv_header_stdc=yes
1351 else
1352   echo "$ac_err" >&5
1353   echo "configure: failed program was:" >&5
1354   cat conftest.$ac_ext >&5
1355   rm -rf conftest*
1356   ac_cv_header_stdc=no
1357 fi
1358 rm -f conftest*
1359
1360 if test $ac_cv_header_stdc = yes; then
1361   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1365 #include <string.h>
1366 EOF
1367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1368   egrep "memchr" >/dev/null 2>&1; then
1369   :
1370 else
1371   rm -rf conftest*
1372   ac_cv_header_stdc=no
1373 fi
1374 rm -f conftest*
1375
1376 fi
1377
1378 if test $ac_cv_header_stdc = yes; then
1379   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1383 #include <stdlib.h>
1384 EOF
1385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1386   egrep "free" >/dev/null 2>&1; then
1387   :
1388 else
1389   rm -rf conftest*
1390   ac_cv_header_stdc=no
1391 fi
1392 rm -f conftest*
1393
1394 fi
1395
1396 if test $ac_cv_header_stdc = yes; then
1397   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1398 if test "$cross_compiling" = yes; then
1399   :
1400 else
1401   cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404 #include <ctype.h>
1405 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1406 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1408 int main () { int i; for (i = 0; i < 256; i++)
1409 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1410 exit (0); }
1411
1412 EOF
1413 if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1414 then
1415   :
1416 else
1417   echo "configure: failed program was:" >&5
1418   cat conftest.$ac_ext >&5
1419   rm -fr conftest*
1420   ac_cv_header_stdc=no
1421 fi
1422 rm -fr conftest*
1423 fi
1424
1425 fi
1426 fi
1427
1428 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1429 if test $ac_cv_header_stdc = yes; then
1430   cat >> confdefs.h <<\EOF
1431 #define STDC_HEADERS 1
1432 EOF
1433
1434 fi
1435
1436
1437
1438 for ac_hdr in math.h
1439 do
1440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1442 echo "configure:1443: checking for $ac_hdr" >&5
1443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1444   echo $ac_n "(cached) $ac_c" 1>&6
1445 else
1446   cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 #include <$ac_hdr>
1450 EOF
1451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1452 { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1454 if test -z "$ac_err"; then
1455   rm -rf conftest*
1456   eval "ac_cv_header_$ac_safe=yes"
1457 else
1458   echo "$ac_err" >&5
1459   echo "configure: failed program was:" >&5
1460   cat conftest.$ac_ext >&5
1461   rm -rf conftest*
1462   eval "ac_cv_header_$ac_safe=no"
1463 fi
1464 rm -f conftest*
1465 fi
1466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1467   echo "$ac_t""yes" 1>&6
1468     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1469   cat >> confdefs.h <<EOF
1470 #define $ac_tr_hdr 1
1471 EOF
1472  ac_math_headers="yes"
1473 else
1474   echo "$ac_t""no" 1>&6
1475 ac_math_headers="no"
1476 fi
1477 done
1478
1479 if test "$ac_math_headers" != yes; then
1480     { echo "configure: error: "math header file not found"" 1>&2; exit 1; }
1481 fi
1482
1483
1484
1485 for ac_hdr in gmp.h
1486 do
1487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_hdr" >&5
1490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1491   echo $ac_n "(cached) $ac_c" 1>&6
1492 else
1493   cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1496 #include <$ac_hdr>
1497 EOF
1498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1499 { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1501 if test -z "$ac_err"; then
1502   rm -rf conftest*
1503   eval "ac_cv_header_$ac_safe=yes"
1504 else
1505   echo "$ac_err" >&5
1506   echo "configure: failed program was:" >&5
1507   cat conftest.$ac_ext >&5
1508   rm -rf conftest*
1509   eval "ac_cv_header_$ac_safe=no"
1510 fi
1511 rm -f conftest*
1512 fi
1513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1514   echo "$ac_t""yes" 1>&6
1515     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1516   cat >> confdefs.h <<EOF
1517 #define $ac_tr_hdr 1
1518 EOF
1519  ac_gmp_headers="yes"
1520 else
1521   echo "$ac_t""no" 1>&6
1522 ac_gmp_headers="no"
1523 fi
1524 done
1525
1526 if test "$ac_gmp_headers" != yes; then
1527     { echo "configure: error: "GNU multiprecission gmp header file not found"" 1>&2; exit 1; }
1528 fi
1529
1530
1531
1532 for ac_hdr in obstack.h
1533 do
1534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_hdr" >&5
1537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1538   echo $ac_n "(cached) $ac_c" 1>&6
1539 else
1540   cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1543 #include <$ac_hdr>
1544 EOF
1545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1546 { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1548 if test -z "$ac_err"; then
1549   rm -rf conftest*
1550   eval "ac_cv_header_$ac_safe=yes"
1551 else
1552   echo "$ac_err" >&5
1553   echo "configure: failed program was:" >&5
1554   cat conftest.$ac_ext >&5
1555   rm -rf conftest*
1556   eval "ac_cv_header_$ac_safe=no"
1557 fi
1558 rm -f conftest*
1559 fi
1560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1561   echo "$ac_t""yes" 1>&6
1562     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1563   cat >> confdefs.h <<EOF
1564 #define $ac_tr_hdr 1
1565 EOF
1566  ac_obstack_headers="yes"
1567 else
1568   echo "$ac_t""no" 1>&6
1569 ac_obstack_headers="no"
1570 fi
1571 done
1572
1573 if test "$ac_obstack_headers" != yes; then
1574     { echo "configure: error: "obstack header file not found"" 1>&2; exit 1; }
1575 fi
1576
1577
1578
1579
1580 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1581 echo "configure:1582: checking for main in -lgmp" >&5
1582 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1584   echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586   ac_save_LIBS="$LIBS"
1587 LIBS="-lgmp  $LIBS"
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591
1592 int main() {
1593 main()
1594 ; return 0; }
1595 EOF
1596 if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1597   rm -rf conftest*
1598   eval "ac_cv_lib_$ac_lib_var=yes"
1599 else
1600   echo "configure: failed program was:" >&5
1601   cat conftest.$ac_ext >&5
1602   rm -rf conftest*
1603   eval "ac_cv_lib_$ac_lib_var=no"
1604 fi
1605 rm -f conftest*
1606 LIBS="$ac_save_LIBS"
1607
1608 fi
1609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1610   echo "$ac_t""yes" 1>&6
1611   ac_gmp_library="yes"
1612 else
1613   echo "$ac_t""no" 1>&6
1614 ac_gmp_library="no"
1615 fi
1616
1617 if test "$ac_gmp_library" != yes; then
1618     { echo "configure: error: "GNU multiprecission gmp library not found"" 1>&2; exit 1; }
1619 fi
1620
1621
1622 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1623 echo "configure:1624: checking for main in -lm" >&5
1624 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1626   echo $ac_n "(cached) $ac_c" 1>&6
1627 else
1628   ac_save_LIBS="$LIBS"
1629 LIBS="-lm  $LIBS"
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633
1634 int main() {
1635 main()
1636 ; return 0; }
1637 EOF
1638 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1639   rm -rf conftest*
1640   eval "ac_cv_lib_$ac_lib_var=yes"
1641 else
1642   echo "configure: failed program was:" >&5
1643   cat conftest.$ac_ext >&5
1644   rm -rf conftest*
1645   eval "ac_cv_lib_$ac_lib_var=no"
1646 fi
1647 rm -f conftest*
1648 LIBS="$ac_save_LIBS"
1649
1650 fi
1651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1652   echo "$ac_t""yes" 1>&6
1653   ac_m_library="yes"
1654 else
1655   echo "$ac_t""no" 1>&6
1656 ac_m_library="no"
1657 fi
1658
1659 if test "$ac_m_library" != yes; then
1660     { echo "configure: error: "standard math library not found"" 1>&2; exit 1; }
1661 fi
1662
1663
1664
1665
1666
1667
1668 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1669 echo "configure:1670: checking for strerror" >&5
1670 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
1671   echo $ac_n "(cached) $ac_c" 1>&6
1672 else
1673   cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 /* System header to define __stub macros and hopefully few prototypes,
1677     which can conflict with char strerror(); below.  */
1678 #include <assert.h>
1679 /* Override any gcc2 internal prototype to avoid an error.  */
1680 /* We use char because int might match the return type of a gcc2
1681     builtin and then its argument prototype would still apply.  */
1682 char strerror();
1683
1684 int main() {
1685
1686 /* The GNU C library defines this for functions which it implements
1687     to always fail with ENOSYS.  Some functions are actually named
1688     something starting with __ and the normal name is an alias.  */
1689 #if defined (__stub_strerror) || defined (__stub___strerror)
1690 choke me
1691 #else
1692 strerror();
1693 #endif
1694
1695 ; return 0; }
1696 EOF
1697 if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1698   rm -rf conftest*
1699   eval "ac_cv_func_strerror=yes"
1700 else
1701   echo "configure: failed program was:" >&5
1702   cat conftest.$ac_ext >&5
1703   rm -rf conftest*
1704   eval "ac_cv_func_strerror=no"
1705 fi
1706 rm -f conftest*
1707 fi
1708
1709 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
1710   echo "$ac_t""yes" 1>&6
1711   :
1712 else
1713   echo "$ac_t""no" 1>&6
1714 { echo "configure: error: "need strerror function"" 1>&2; exit 1; }
1715
1716 fi
1717
1718
1719
1720
1721
1722 trap '' 1 2 15
1723 cat > confcache <<\EOF
1724 # This file is a shell script that caches the results of configure
1725 # tests run on this system so they can be shared between configure
1726 # scripts and configure runs.  It is not useful on other systems.
1727 # If it contains results you don't want to keep, you may remove or edit it.
1728 #
1729 # By default, configure uses ./config.cache as the cache file,
1730 # creating it if it does not exist already.  You can give configure
1731 # the --cache-file=FILE option to use a different cache file; that is
1732 # what configure does when it calls configure scripts in
1733 # subdirectories, so they share the cache.
1734 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1735 # config.status only pays attention to the cache file if you give it the
1736 # --recheck option to rerun configure.
1737 #
1738 EOF
1739 # The following way of writing the cache mishandles newlines in values,
1740 # but we know of no workaround that is simple, portable, and efficient.
1741 # So, don't put newlines in cache variables' values.
1742 # Ultrix sh set writes to stderr and can't be redirected directly,
1743 # and sets the high bit in the cache file unless we assign to the vars.
1744 (set) 2>&1 |
1745   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1746   *ac_space=\ *)
1747     # `set' does not quote correctly, so add quotes (double-quote substitution
1748     # turns \\\\ into \\, and sed turns \\ into \).
1749     sed -n \
1750       -e "s/'/'\\\\''/g" \
1751       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1752     ;;
1753   *)
1754     # `set' quotes correctly as required by POSIX, so do not add quotes.
1755     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1756     ;;
1757   esac >> confcache
1758 if cmp -s $cache_file confcache; then
1759   :
1760 else
1761   if test -w $cache_file; then
1762     echo "updating cache $cache_file"
1763     cat confcache > $cache_file
1764   else
1765     echo "not updating unwritable cache $cache_file"
1766   fi
1767 fi
1768 rm -f confcache
1769
1770 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1771
1772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1773 # Let make expand exec_prefix.
1774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1775
1776 # Any assignment to VPATH causes Sun make to only execute
1777 # the first set of double-colon rules, so remove it if not needed.
1778 # If there is a colon in the path, we need to keep it.
1779 if test "x$srcdir" = x.; then
1780   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1781 fi
1782
1783 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1784
1785 DEFS=-DHAVE_CONFIG_H
1786
1787 # Without the "./", some shells look in PATH for config.status.
1788 : ${CONFIG_STATUS=./config.status}
1789
1790 echo creating $CONFIG_STATUS
1791 rm -f $CONFIG_STATUS
1792 cat > $CONFIG_STATUS <<EOF
1793 #! /bin/sh
1794 # Generated automatically by configure.
1795 # Run this file to recreate the current configuration.
1796 # This directory was configured as follows,
1797 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1798 #
1799 # $0 $ac_configure_args
1800 #
1801 # Compiler output produced by configure, useful for debugging
1802 # configure, is in ./config.log if it exists.
1803
1804 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1805 for ac_option
1806 do
1807   case "\$ac_option" in
1808   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1809     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1810     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1811   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1812     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1813     exit 0 ;;
1814   -help | --help | --hel | --he | --h)
1815     echo "\$ac_cs_usage"; exit 0 ;;
1816   *) echo "\$ac_cs_usage"; exit 1 ;;
1817   esac
1818 done
1819
1820 ac_given_srcdir=$srcdir
1821 ac_given_INSTALL="$INSTALL"
1822
1823 trap 'rm -fr `echo "$ac_output_file config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1824 EOF
1825 cat >> $CONFIG_STATUS <<EOF
1826
1827 # Protect against being on the right side of a sed subst in config.status.
1828 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1829  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1830 $ac_vpsub
1831 $extrasub
1832 s%@SHELL@%$SHELL%g
1833 s%@CFLAGS@%$CFLAGS%g
1834 s%@CPPFLAGS@%$CPPFLAGS%g
1835 s%@CXXFLAGS@%$CXXFLAGS%g
1836 s%@FFLAGS@%$FFLAGS%g
1837 s%@DEFS@%$DEFS%g
1838 s%@LDFLAGS@%$LDFLAGS%g
1839 s%@LIBS@%$LIBS%g
1840 s%@exec_prefix@%$exec_prefix%g
1841 s%@prefix@%$prefix%g
1842 s%@program_transform_name@%$program_transform_name%g
1843 s%@bindir@%$bindir%g
1844 s%@sbindir@%$sbindir%g
1845 s%@libexecdir@%$libexecdir%g
1846 s%@datadir@%$datadir%g
1847 s%@sysconfdir@%$sysconfdir%g
1848 s%@sharedstatedir@%$sharedstatedir%g
1849 s%@localstatedir@%$localstatedir%g
1850 s%@libdir@%$libdir%g
1851 s%@includedir@%$includedir%g
1852 s%@oldincludedir@%$oldincludedir%g
1853 s%@infodir@%$infodir%g
1854 s%@mandir@%$mandir%g
1855 s%@libfirm_conf_env@%$libfirm_conf_env%g
1856 s%@enable_debug_libfirm@%$enable_debug_libfirm%g
1857 s%@enable_profile_libfirm@%$enable_profile_libfirm%g
1858 s%@enable_auto_documentation@%$enable_auto_documentation%g
1859 s%@CC@%$CC%g
1860 s%@host@%$host%g
1861 s%@host_alias@%$host_alias%g
1862 s%@host_cpu@%$host_cpu%g
1863 s%@host_vendor@%$host_vendor%g
1864 s%@host_os@%$host_os%g
1865 s%@build@%$build%g
1866 s%@build_alias@%$build_alias%g
1867 s%@build_cpu@%$build_cpu%g
1868 s%@build_vendor@%$build_vendor%g
1869 s%@build_os@%$build_os%g
1870 s%@LD@%$LD%g
1871 s%@libfirm_cv_prog_ld_r@%$libfirm_cv_prog_ld_r%g
1872 s%@AR@%$AR%g
1873 s%@TAR@%$TAR%g
1874 s%@RANLIB@%$RANLIB%g
1875 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1876 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1877 s%@INSTALL_DATA@%$INSTALL_DATA%g
1878 s%@LN_S@%$LN_S%g
1879 s%@ROBODOC@%$ROBODOC%g
1880 s%@CPP@%$CPP%g
1881
1882 CEOF
1883 EOF
1884
1885 cat >> $CONFIG_STATUS <<\EOF
1886
1887 # Split the substitutions into bite-sized pieces for seds with
1888 # small command number limits, like on Digital OSF/1 and HP-UX.
1889 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1890 ac_file=1 # Number of current file.
1891 ac_beg=1 # First line for current file.
1892 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1893 ac_more_lines=:
1894 ac_sed_cmds=""
1895 while $ac_more_lines; do
1896   if test $ac_beg -gt 1; then
1897     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1898   else
1899     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1900   fi
1901   if test ! -s conftest.s$ac_file; then
1902     ac_more_lines=false
1903     rm -f conftest.s$ac_file
1904   else
1905     if test -z "$ac_sed_cmds"; then
1906       ac_sed_cmds="sed -f conftest.s$ac_file"
1907     else
1908       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1909     fi
1910     ac_file=`expr $ac_file + 1`
1911     ac_beg=$ac_end
1912     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1913   fi
1914 done
1915 if test -z "$ac_sed_cmds"; then
1916   ac_sed_cmds=cat
1917 fi
1918 EOF
1919
1920 cat >> $CONFIG_STATUS <<EOF
1921
1922 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_file"}
1923 EOF
1924 cat >> $CONFIG_STATUS <<\EOF
1925 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1926   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1927   case "$ac_file" in
1928   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1929        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1930   *) ac_file_in="${ac_file}.in" ;;
1931   esac
1932
1933   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1934
1935   # Remove last slash and all that follows it.  Not all systems have dirname.
1936   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1937   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1938     # The file is in a subdirectory.
1939     test ! -d "$ac_dir" && mkdir "$ac_dir"
1940     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1941     # A "../" for each directory in $ac_dir_suffix.
1942     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1943   else
1944     ac_dir_suffix= ac_dots=
1945   fi
1946
1947   case "$ac_given_srcdir" in
1948   .)  srcdir=.
1949       if test -z "$ac_dots"; then top_srcdir=.
1950       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1951   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1952   *) # Relative path.
1953     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1954     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1955   esac
1956
1957   case "$ac_given_INSTALL" in
1958   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1959   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1960   esac
1961
1962   echo creating "$ac_file"
1963   rm -f "$ac_file"
1964   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1965   case "$ac_file" in
1966   *Makefile*) ac_comsub="1i\\
1967 # $configure_input" ;;
1968   *) ac_comsub= ;;
1969   esac
1970
1971   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1972   sed -e "$ac_comsub
1973 s%@configure_input@%$configure_input%g
1974 s%@srcdir@%$srcdir%g
1975 s%@top_srcdir@%$top_srcdir%g
1976 s%@INSTALL@%$INSTALL%g
1977 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1978 fi; done
1979 rm -f conftest.s*
1980
1981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1983 #
1984 # ac_d sets the value in "#define NAME VALUE" lines.
1985 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1986 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1987 ac_dC='\3'
1988 ac_dD='%g'
1989 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1990 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1991 ac_uB='\([      ]\)%\1#\2define\3'
1992 ac_uC=' '
1993 ac_uD='\4%g'
1994 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1995 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1996 ac_eB='$%\1#\2define\3'
1997 ac_eC=' '
1998 ac_eD='%g'
1999
2000 if test "${CONFIG_HEADERS+set}" != set; then
2001 EOF
2002 cat >> $CONFIG_STATUS <<EOF
2003   CONFIG_HEADERS="config.h"
2004 EOF
2005 cat >> $CONFIG_STATUS <<\EOF
2006 fi
2007 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2008   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2009   case "$ac_file" in
2010   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2011        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2012   *) ac_file_in="${ac_file}.in" ;;
2013   esac
2014
2015   echo creating $ac_file
2016
2017   rm -f conftest.frag conftest.in conftest.out
2018   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2019   cat $ac_file_inputs > conftest.in
2020
2021 EOF
2022
2023 # Transform confdefs.h into a sed script conftest.vals that substitutes
2024 # the proper values into config.h.in to produce config.h.  And first:
2025 # Protect against being on the right side of a sed subst in config.status.
2026 # Protect against being in an unquoted here document in config.status.
2027 rm -f conftest.vals
2028 cat > conftest.hdr <<\EOF
2029 s/[\\&%]/\\&/g
2030 s%[\\$`]%\\&%g
2031 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2032 s%ac_d%ac_u%gp
2033 s%ac_u%ac_e%gp
2034 EOF
2035 sed -n -f conftest.hdr confdefs.h > conftest.vals
2036 rm -f conftest.hdr
2037
2038 # This sed command replaces #undef with comments.  This is necessary, for
2039 # example, in the case of _POSIX_SOURCE, which is predefined and required
2040 # on some systems where configure will not decide to define it.
2041 cat >> conftest.vals <<\EOF
2042 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2043 EOF
2044
2045 # Break up conftest.vals because some shells have a limit on
2046 # the size of here documents, and old seds have small limits too.
2047
2048 rm -f conftest.tail
2049 while :
2050 do
2051   ac_lines=`grep -c . conftest.vals`
2052   # grep -c gives empty output for an empty file on some AIX systems.
2053   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2054   # Write a limited-size here document to conftest.frag.
2055   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2056   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2057   echo 'CEOF
2058   sed -f conftest.frag conftest.in > conftest.out
2059   rm -f conftest.in
2060   mv conftest.out conftest.in
2061 ' >> $CONFIG_STATUS
2062   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2063   rm -f conftest.vals
2064   mv conftest.tail conftest.vals
2065 done
2066 rm -f conftest.vals
2067
2068 cat >> $CONFIG_STATUS <<\EOF
2069   rm -f conftest.frag conftest.h
2070   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2071   cat conftest.in >> conftest.h
2072   rm -f conftest.in
2073   if cmp -s $ac_file conftest.h 2>/dev/null; then
2074     echo "$ac_file is unchanged"
2075     rm -f conftest.h
2076   else
2077     # Remove last slash and all that follows it.  Not all systems have dirname.
2078       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2079       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2080       # The file is in a subdirectory.
2081       test ! -d "$ac_dir" && mkdir "$ac_dir"
2082     fi
2083     rm -f $ac_file
2084     mv conftest.h $ac_file
2085   fi
2086 fi; done
2087
2088 EOF
2089 cat >> $CONFIG_STATUS <<EOF
2090
2091 EOF
2092 cat >> $CONFIG_STATUS <<\EOF
2093  touch stamp-h
2094 exit 0
2095 EOF
2096 chmod +x $CONFIG_STATUS
2097 rm -fr confdefs* $ac_clean_files
2098 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1