]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 1.0.15
[lilypond.git] / configure
1 #! /bin/sh
2
3 ac_help="$ac_help
4   --with-gtkmm-prefix=PREFIX
5                           Prefix where GTK-- is installed (optional)"
6 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
7 if test "${with_gtkmm_prefix+set}" = set; then
8   withval="$with_gtkmm_prefix"
9   gtkmm_config_prefix="$withval"
10 else
11   gtkmm_config_prefix=""
12 fi
13
14 ac_help="$ac_help
15   --with-gtkmm-exec-prefix=PREFIX
16                           Exec prefix where GTK-- is installed (optional)"
17 # Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given.
18 if test "${with_gtkmm_exec_prefix+set}" = set; then
19   withval="$with_gtkmm_exec_prefix"
20   gtkmm_config_exec_prefix="$withval"
21 else
22   gtkmm_config_exec_prefix=""
23 fi
24
25 ac_help="$ac_help
26   --disable-gtkmmtest     Do not try to compile and run a test GTK-- program"
27 # Check whether --enable-gtkmmtest or --disable-gtkmmtest was given.
28 if test "${enable_gtkmmtest+set}" = set; then
29   enableval="$enable_gtkmmtest"
30   :
31 else
32   enable_gtkmmtest=yes
33 fi
34
35
36   if test x$gtkmm_config_exec_prefix != x ; then
37      gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
38      if test x${GTKMM_CONFIG+set} != xset ; then
39         GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
40      fi
41   fi
42   if test x$gtkmm_config_prefix != x ; then
43      gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
44      if test x${GTKMM_CONFIG+set} != xset ; then
45         GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
46      fi
47   fi
48
49
50
51
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt   98-08-21  (adapted from Jan Nieuwenhuizen's code)
54
55
56
57 # Guess values for system-dependent variables and create Makefiles.
58 # Generated automatically using autoconf version 2.12 
59 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 #
61 # This configure script is free software; the Free Software Foundation
62 # gives unlimited permission to copy, distribute and modify it.
63
64 # Defaults:
65 ac_help=
66 ac_default_prefix=/usr/local
67 # Any additions from configure.in:
68 ac_help="$ac_help
69   enable-config=FILE      put configure settings in config-FILE.make"
70 ac_help="$ac_help
71   enable-checking         set runtime checks (assert calls). Default: on"
72 ac_help="$ac_help
73   enable-optimise         use maximal speed optimisations. Default: off"
74 ac_help="$ac_help
75   enable-profiling        compile with gprof support. Default: off"
76 ac_help="$ac_help
77   enable-debugging        set debug info. Default: on"
78 ac_help="$ac_help
79   enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
80 ac_help="$ac_help
81   enable-printing         turn on debug printing. Default: off"
82 ac_help="$ac_help
83   with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale "
84 ac_help="$ac_help
85   with-lang=LANG          use LANG as language to emit messages"
86
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
90 build=NONE
91 cache_file=./config.cache
92 exec_prefix=NONE
93 host=NONE
94 no_create=
95 nonopt=NONE
96 no_recursion=
97 prefix=NONE
98 program_prefix=NONE
99 program_suffix=NONE
100 program_transform_name=s,x,x,
101 silent=
102 site=
103 srcdir=
104 target=NONE
105 verbose=
106 x_includes=NONE
107 x_libraries=NONE
108 bindir='${exec_prefix}/bin'
109 sbindir='${exec_prefix}/sbin'
110 libexecdir='${exec_prefix}/libexec'
111 datadir='${prefix}/share'
112 sysconfdir='${prefix}/etc'
113 sharedstatedir='${prefix}/com'
114 localstatedir='${prefix}/var'
115 libdir='${exec_prefix}/lib'
116 includedir='${prefix}/include'
117 oldincludedir='/usr/include'
118 infodir='${prefix}/info'
119 mandir='${prefix}/man'
120
121 # Initialize some other variables.
122 subdirs=
123 MFLAGS= MAKEFLAGS=
124 # Maximum number of lines to put in a shell here document.
125 ac_max_here_lines=12
126
127 ac_prev=
128 for ac_option
129 do
130
131   # If the previous option needs an argument, assign it.
132   if test -n "$ac_prev"; then
133     eval "$ac_prev=\$ac_option"
134     ac_prev=
135     continue
136   fi
137
138   case "$ac_option" in
139   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140   *) ac_optarg= ;;
141   esac
142
143   # Accept the important Cygnus configure options, so we can diagnose typos.
144
145   case "$ac_option" in
146
147   -bindir | --bindir | --bindi | --bind | --bin | --bi)
148     ac_prev=bindir ;;
149   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
150     bindir="$ac_optarg" ;;
151
152   -build | --build | --buil | --bui | --bu)
153     ac_prev=build ;;
154   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
155     build="$ac_optarg" ;;
156
157   -cache-file | --cache-file | --cache-fil | --cache-fi \
158   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
159     ac_prev=cache_file ;;
160   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
161   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
162     cache_file="$ac_optarg" ;;
163
164   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
165     ac_prev=datadir ;;
166   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
167   | --da=*)
168     datadir="$ac_optarg" ;;
169
170   -disable-* | --disable-*)
171     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
172     # Reject names that are not valid shell variable names.
173     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
174       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175     fi
176     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177     eval "enable_${ac_feature}=no" ;;
178
179   -enable-* | --enable-*)
180     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181     # Reject names that are not valid shell variable names.
182     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184     fi
185     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
186     case "$ac_option" in
187       *=*) ;;
188       *) ac_optarg=yes ;;
189     esac
190     eval "enable_${ac_feature}='$ac_optarg'" ;;
191
192   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
193   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
194   | --exec | --exe | --ex)
195     ac_prev=exec_prefix ;;
196   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
197   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
198   | --exec=* | --exe=* | --ex=*)
199     exec_prefix="$ac_optarg" ;;
200
201   -gas | --gas | --ga | --g)
202     # Obsolete; use --with-gas.
203     with_gas=yes ;;
204
205   -help | --help | --hel | --he)
206     # Omit some internal or obsolete options to make the list less imposing.
207     # This message is too long to be a string in the A/UX 3.1 sh.
208     cat << EOF
209 Usage: configure [options] [host]
210 Options: [defaults in brackets after descriptions]
211 Configuration:
212   --cache-file=FILE       cache test results in FILE
213   --help                  print this message
214   --no-create             do not create output files
215   --quiet, --silent       do not print \`checking...' messages
216   --version               print the version of autoconf that created configure
217 Directory and file names:
218   --prefix=PREFIX         install architecture-independent files in PREFIX
219                           [$ac_default_prefix]
220   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
221                           [same as prefix]
222   --bindir=DIR            user executables in DIR [EPREFIX/bin]
223   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
224   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
225   --datadir=DIR           read-only architecture-independent data in DIR
226                           [PREFIX/share]
227   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
228   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
229                           [PREFIX/com]
230   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
231   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
232   --includedir=DIR        C header files in DIR [PREFIX/include]
233   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
234   --infodir=DIR           info documentation in DIR [PREFIX/info]
235   --mandir=DIR            man documentation in DIR [PREFIX/man]
236   --srcdir=DIR            find the sources in DIR [configure dir or ..]
237   --program-prefix=PREFIX prepend PREFIX to installed program names
238   --program-suffix=SUFFIX append SUFFIX to installed program names
239   --program-transform-name=PROGRAM
240                           run sed PROGRAM on installed program names
241 EOF
242     cat << EOF
243 Host type:
244   --build=BUILD           configure for building on BUILD [BUILD=HOST]
245   --host=HOST             configure for HOST [guessed]
246   --target=TARGET         configure for TARGET [TARGET=HOST]
247 Features and packages:
248   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
249   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
250   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
251   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
252   --x-includes=DIR        X include files are in DIR
253   --x-libraries=DIR       X library files are in DIR
254 EOF
255     if test -n "$ac_help"; then
256       echo "--enable and --with options recognized:$ac_help"
257     fi
258     exit 0 ;;
259
260   -host | --host | --hos | --ho)
261     ac_prev=host ;;
262   -host=* | --host=* | --hos=* | --ho=*)
263     host="$ac_optarg" ;;
264
265   -includedir | --includedir | --includedi | --included | --include \
266   | --includ | --inclu | --incl | --inc)
267     ac_prev=includedir ;;
268   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
269   | --includ=* | --inclu=* | --incl=* | --inc=*)
270     includedir="$ac_optarg" ;;
271
272   -infodir | --infodir | --infodi | --infod | --info | --inf)
273     ac_prev=infodir ;;
274   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
275     infodir="$ac_optarg" ;;
276
277   -libdir | --libdir | --libdi | --libd)
278     ac_prev=libdir ;;
279   -libdir=* | --libdir=* | --libdi=* | --libd=*)
280     libdir="$ac_optarg" ;;
281
282   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
283   | --libexe | --libex | --libe)
284     ac_prev=libexecdir ;;
285   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
286   | --libexe=* | --libex=* | --libe=*)
287     libexecdir="$ac_optarg" ;;
288
289   -localstatedir | --localstatedir | --localstatedi | --localstated \
290   | --localstate | --localstat | --localsta | --localst \
291   | --locals | --local | --loca | --loc | --lo)
292     ac_prev=localstatedir ;;
293   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
294   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
295   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
296     localstatedir="$ac_optarg" ;;
297
298   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
299     ac_prev=mandir ;;
300   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
301     mandir="$ac_optarg" ;;
302
303   -nfp | --nfp | --nf)
304     # Obsolete; use --without-fp.
305     with_fp=no ;;
306
307   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
308   | --no-cr | --no-c)
309     no_create=yes ;;
310
311   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
312   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
313     no_recursion=yes ;;
314
315   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
316   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
317   | --oldin | --oldi | --old | --ol | --o)
318     ac_prev=oldincludedir ;;
319   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
320   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
321   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
322     oldincludedir="$ac_optarg" ;;
323
324   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
325     ac_prev=prefix ;;
326   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
327     prefix="$ac_optarg" ;;
328
329   -program-prefix | --program-prefix | --program-prefi | --program-pref \
330   | --program-pre | --program-pr | --program-p)
331     ac_prev=program_prefix ;;
332   -program-prefix=* | --program-prefix=* | --program-prefi=* \
333   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
334     program_prefix="$ac_optarg" ;;
335
336   -program-suffix | --program-suffix | --program-suffi | --program-suff \
337   | --program-suf | --program-su | --program-s)
338     ac_prev=program_suffix ;;
339   -program-suffix=* | --program-suffix=* | --program-suffi=* \
340   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
341     program_suffix="$ac_optarg" ;;
342
343   -program-transform-name | --program-transform-name \
344   | --program-transform-nam | --program-transform-na \
345   | --program-transform-n | --program-transform- \
346   | --program-transform | --program-transfor \
347   | --program-transfo | --program-transf \
348   | --program-trans | --program-tran \
349   | --progr-tra | --program-tr | --program-t)
350     ac_prev=program_transform_name ;;
351   -program-transform-name=* | --program-transform-name=* \
352   | --program-transform-nam=* | --program-transform-na=* \
353   | --program-transform-n=* | --program-transform-=* \
354   | --program-transform=* | --program-transfor=* \
355   | --program-transfo=* | --program-transf=* \
356   | --program-trans=* | --program-tran=* \
357   | --progr-tra=* | --program-tr=* | --program-t=*)
358     program_transform_name="$ac_optarg" ;;
359
360   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
361   | -silent | --silent | --silen | --sile | --sil)
362     silent=yes ;;
363
364   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
365     ac_prev=sbindir ;;
366   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
367   | --sbi=* | --sb=*)
368     sbindir="$ac_optarg" ;;
369
370   -sharedstatedir | --sharedstatedir | --sharedstatedi \
371   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
372   | --sharedst | --shareds | --shared | --share | --shar \
373   | --sha | --sh)
374     ac_prev=sharedstatedir ;;
375   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
376   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
377   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
378   | --sha=* | --sh=*)
379     sharedstatedir="$ac_optarg" ;;
380
381   -site | --site | --sit)
382     ac_prev=site ;;
383   -site=* | --site=* | --sit=*)
384     site="$ac_optarg" ;;
385
386   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
387     ac_prev=srcdir ;;
388   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
389     srcdir="$ac_optarg" ;;
390
391   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
392   | --syscon | --sysco | --sysc | --sys | --sy)
393     ac_prev=sysconfdir ;;
394   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
395   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
396     sysconfdir="$ac_optarg" ;;
397
398   -target | --target | --targe | --targ | --tar | --ta | --t)
399     ac_prev=target ;;
400   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
401     target="$ac_optarg" ;;
402
403   -v | -verbose | --verbose | --verbos | --verbo | --verb)
404     verbose=yes ;;
405
406   -version | --version | --versio | --versi | --vers)
407     echo "configure generated by autoconf version 2.12"
408     exit 0 ;;
409
410   -with-* | --with-*)
411     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
412     # Reject names that are not valid shell variable names.
413     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
414       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415     fi
416     ac_package=`echo $ac_package| sed 's/-/_/g'`
417     case "$ac_option" in
418       *=*) ;;
419       *) ac_optarg=yes ;;
420     esac
421     eval "with_${ac_package}='$ac_optarg'" ;;
422
423   -without-* | --without-*)
424     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
425     # Reject names that are not valid shell variable names.
426     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
427       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428     fi
429     ac_package=`echo $ac_package| sed 's/-/_/g'`
430     eval "with_${ac_package}=no" ;;
431
432   --x)
433     # Obsolete; use --with-x.
434     with_x=yes ;;
435
436   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
437   | --x-incl | --x-inc | --x-in | --x-i)
438     ac_prev=x_includes ;;
439   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
440   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
441     x_includes="$ac_optarg" ;;
442
443   -x-libraries | --x-libraries | --x-librarie | --x-librari \
444   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
445     ac_prev=x_libraries ;;
446   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
447   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
448     x_libraries="$ac_optarg" ;;
449
450   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451     ;;
452
453   *)
454     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
455       echo "configure: warning: $ac_option: invalid host type" 1>&2
456     fi
457     if test "x$nonopt" != xNONE; then
458       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459     fi
460     nonopt="$ac_option"
461     ;;
462
463   esac
464 done
465
466 if test -n "$ac_prev"; then
467   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 fi
469
470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
471
472 # File descriptor usage:
473 # 0 standard input
474 # 1 file creation
475 # 2 errors and warnings
476 # 3 some systems may open it to /dev/tty
477 # 4 used on the Kubota Titan
478 # 6 checking for... messages and results
479 # 5 compiler messages saved in config.log
480 if test "$silent" = yes; then
481   exec 6>/dev/null
482 else
483   exec 6>&1
484 fi
485 exec 5>./config.log
486
487 echo "\
488 This file contains any messages produced by compilers while
489 running configure, to aid debugging if configure makes a mistake.
490 " 1>&5
491
492 # Strip out --no-create and --no-recursion so they do not pile up.
493 # Also quote any args containing shell metacharacters.
494 ac_configure_args=
495 for ac_arg
496 do
497   case "$ac_arg" in
498   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
499   | --no-cr | --no-c) ;;
500   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
501   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
502   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
503   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
504   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
505   esac
506 done
507
508 # NLS nuisances.
509 # Only set these to C if already set.  These must not be set unconditionally
510 # because not all systems understand e.g. LANG=C (notably SCO).
511 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
512 # Non-C LC_CTYPE values break the ctype check.
513 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
514 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
515 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
516 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
517
518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
519 rm -rf conftest* confdefs.h
520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 echo > confdefs.h
522
523 # A filename unique to this package, relative to the directory that
524 # configure is in, which we can look for to find out if srcdir is correct.
525 ac_unique_file=make/lilypond.lsm.in
526
527 # Find the source files, if location was not specified.
528 if test -z "$srcdir"; then
529   ac_srcdir_defaulted=yes
530   # Try the directory containing this script, then its parent.
531   ac_prog=$0
532   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
533   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
534   srcdir=$ac_confdir
535   if test ! -r $srcdir/$ac_unique_file; then
536     srcdir=..
537   fi
538 else
539   ac_srcdir_defaulted=no
540 fi
541 if test ! -r $srcdir/$ac_unique_file; then
542   if test "$ac_srcdir_defaulted" = yes; then
543     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
544   else
545     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546   fi
547 fi
548 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
549
550 # Prefer explicitly selected file to automatically selected ones.
551 if test -z "$CONFIG_SITE"; then
552   if test "x$prefix" != xNONE; then
553     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
554   else
555     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556   fi
557 fi
558 for ac_site_file in $CONFIG_SITE; do
559   if test -r "$ac_site_file"; then
560     echo "loading site script $ac_site_file"
561     . "$ac_site_file"
562   fi
563 done
564
565 if test -r "$cache_file"; then
566   echo "loading cache $cache_file"
567   . $cache_file
568 else
569   echo "creating cache $cache_file"
570   > $cache_file
571 fi
572
573 ac_ext=c
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp='$CPP $CPPFLAGS'
576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling=$ac_cv_prog_cc_cross
579
580 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
581   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
583     ac_n= ac_c='
584 ' ac_t='        '
585   else
586     ac_n=-n ac_c= ac_t=
587   fi
588 else
589   ac_n= ac_c='\c' ac_t=
590 fi
591
592
593
594
595 # Bootstrap StepMake configure
596
597
598     . $srcdir/VERSION
599     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
600     if test x$MY_PATCH_LEVEL != x; then
601         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
602     fi
603
604     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
605         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
606     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
607     
608     if test "x$PACKAGE" = "xSTEPMAKE"; then
609         echo Stepmake package!
610         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
611         (cd stepmake; rm -f bin; ln -s ../bin .)
612         ac_aux_dir=
613 for ac_dir in bin $srcdir/bin; do
614   if test -f $ac_dir/install-sh; then
615     ac_aux_dir=$ac_dir
616     ac_install_sh="$ac_aux_dir/install-sh -c"
617     break
618   elif test -f $ac_dir/install.sh; then
619     ac_aux_dir=$ac_dir
620     ac_install_sh="$ac_aux_dir/install.sh -c"
621     break
622   fi
623 done
624 if test -z "$ac_aux_dir"; then
625   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
626 fi
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630
631     else
632         echo Package: $PACKAGE
633         ac_aux_dir=
634 for ac_dir in stepmake/bin $srcdir/stepmake/bin; do
635   if test -f $ac_dir/install-sh; then
636     ac_aux_dir=$ac_dir
637     ac_install_sh="$ac_aux_dir/install-sh -c"
638     break
639   elif test -f $ac_dir/install.sh; then
640     ac_aux_dir=$ac_dir
641     ac_install_sh="$ac_aux_dir/install.sh -c"
642     break
643   fi
644 done
645 if test -z "$ac_aux_dir"; then
646   { echo "configure: error: can not find install-sh or install.sh in stepmake/bin $srcdir/stepmake/bin" 1>&2; exit 1; }
647 fi
648 ac_config_guess=$ac_aux_dir/config.guess
649 ac_config_sub=$ac_aux_dir/config.sub
650 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
651
652     fi
653
654     
655     
656     
657     cat >> confdefs.h <<EOF
658 #define PACKAGE "${PACKAGE_NAME}"
659 EOF
660
661     cat >> confdefs.h <<EOF
662 #define TOPLEVEL_VERSION "${FULL_VERSION}"
663 EOF
664
665
666     package_depth=`dirname $cache_file`
667     
668
669     AUTOGENERATE="This file was automatically generated by configure"
670     
671     absolute_builddir="`pwd`"
672     
673
674     # No versioning on directory names of sub-packages 
675     stepmake=stepmake
676     
677
678     STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
679     if test "x$STATE_VECTOR" != "x"; then
680         STATE_VECTOR="\$(depth)/$STATE_VECTOR"
681     fi
682     
683
684     CONFIGSUFFIX=
685     # Check whether --enable-config or --disable-config was given.
686 if test "${enable_config+set}" = set; then
687   enableval="$enable_config"
688   CONFIGSUFFIX=$enableval
689 fi
690
691
692     if test "$CONFIGSUFFIX" != "" ; then
693         CONFIGFILE=config-$CONFIGSUFFIX
694     else
695         CONFIGFILE=config
696     fi
697     
698      
699     
700 # Make sure we can run config.sub.
701 if $ac_config_sub sun4 >/dev/null 2>&1; then :
702 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
703 fi
704
705 echo $ac_n "checking host system type""... $ac_c" 1>&6
706 echo "configure:707: checking host system type" >&5
707
708 host_alias=$host
709 case "$host_alias" in
710 NONE)
711   case $nonopt in
712   NONE)
713     if host_alias=`$ac_config_guess`; then :
714     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
715     fi ;;
716   *) host_alias=$nonopt ;;
717   esac ;;
718 esac
719
720 host=`$ac_config_sub $host_alias`
721 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$host" 1>&6
725
726     for ac_prog in make
727 do
728 # Extract the first word of "$ac_prog", so it can be a program name with args.
729 set dummy $ac_prog; ac_word=$2
730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
731 echo "configure:732: checking for $ac_word" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
733   echo $ac_n "(cached) $ac_c" 1>&6
734 else
735   if test -n "$MAKE"; then
736   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
737 else
738   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
739   for ac_dir in $PATH; do
740     test -z "$ac_dir" && ac_dir=.
741     if test -f $ac_dir/$ac_word; then
742       ac_cv_prog_MAKE="$ac_prog"
743       break
744     fi
745   done
746   IFS="$ac_save_ifs"
747 fi
748 fi
749 MAKE="$ac_cv_prog_MAKE"
750 if test -n "$MAKE"; then
751   echo "$ac_t""$MAKE" 1>&6
752 else
753   echo "$ac_t""no" 1>&6
754 fi
755
756 test -n "$MAKE" && break
757 done
758 test -n "$MAKE" || MAKE="error"
759
760     for ac_prog in find
761 do
762 # Extract the first word of "$ac_prog", so it can be a program name with args.
763 set dummy $ac_prog; ac_word=$2
764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
765 echo "configure:766: checking for $ac_word" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
767   echo $ac_n "(cached) $ac_c" 1>&6
768 else
769   if test -n "$FIND"; then
770   ac_cv_prog_FIND="$FIND" # Let the user override the test.
771 else
772   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
773   for ac_dir in $PATH; do
774     test -z "$ac_dir" && ac_dir=.
775     if test -f $ac_dir/$ac_word; then
776       ac_cv_prog_FIND="$ac_prog"
777       break
778     fi
779   done
780   IFS="$ac_save_ifs"
781 fi
782 fi
783 FIND="$ac_cv_prog_FIND"
784 if test -n "$FIND"; then
785   echo "$ac_t""$FIND" 1>&6
786 else
787   echo "$ac_t""no" 1>&6
788 fi
789
790 test -n "$FIND" && break
791 done
792 test -n "$FIND" || FIND="error"
793
794
795
796
797     for ac_prog in tar
798 do
799 # Extract the first word of "$ac_prog", so it can be a program name with args.
800 set dummy $ac_prog; ac_word=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
804   echo $ac_n "(cached) $ac_c" 1>&6
805 else
806   if test -n "$TAR"; then
807   ac_cv_prog_TAR="$TAR" # Let the user override the test.
808 else
809   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
810   for ac_dir in $PATH; do
811     test -z "$ac_dir" && ac_dir=.
812     if test -f $ac_dir/$ac_word; then
813       ac_cv_prog_TAR="$ac_prog"
814       break
815     fi
816   done
817   IFS="$ac_save_ifs"
818 fi
819 fi
820 TAR="$ac_cv_prog_TAR"
821 if test -n "$TAR"; then
822   echo "$ac_t""$TAR" 1>&6
823 else
824   echo "$ac_t""no" 1>&6
825 fi
826
827 test -n "$TAR" && break
828 done
829 test -n "$TAR" || TAR="error"
830
831     for ac_prog in bash
832 do
833 # Extract the first word of "$ac_prog", so it can be a program name with args.
834 set dummy $ac_prog; ac_word=$2
835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
836 echo "configure:837: checking for $ac_word" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
838   echo $ac_n "(cached) $ac_c" 1>&6
839 else
840   if test -n "$BASH"; then
841   ac_cv_prog_BASH="$BASH" # Let the user override the test.
842 else
843   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
844   for ac_dir in $PATH; do
845     test -z "$ac_dir" && ac_dir=.
846     if test -f $ac_dir/$ac_word; then
847       ac_cv_prog_BASH="$ac_prog"
848       break
849     fi
850   done
851   IFS="$ac_save_ifs"
852 fi
853 fi
854 BASH="$ac_cv_prog_BASH"
855 if test -n "$BASH"; then
856   echo "$ac_t""$BASH" 1>&6
857 else
858   echo "$ac_t""no" 1>&6
859 fi
860
861 test -n "$BASH" && break
862 done
863 test -n "$BASH" || BASH="/bin/sh"
864
865
866     # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
867 set dummy ${PYTHON:-python}; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
871   echo $ac_n "(cached) $ac_c" 1>&6
872 else
873   case "$PYTHON" in
874   /*)
875   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
876   ;;
877   *)
878   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
879   for ac_dir in $PATH; do
880     test -z "$ac_dir" && ac_dir=.
881     if test -f $ac_dir/$ac_word; then
882       ac_cv_path_PYTHON="$ac_dir/$ac_word"
883       break
884     fi
885   done
886   IFS="$ac_save_ifs"
887   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
888   ;;
889 esac
890 fi
891 PYTHON="$ac_cv_path_PYTHON"
892 if test -n "$PYTHON"; then
893   echo "$ac_t""$PYTHON" 1>&6
894 else
895   echo "$ac_t""no" 1>&6
896 fi
897
898     
899
900
901     
902         result="`echo \"$MAKE\" | grep echo`"
903         if test "x$MAKE" = "xerror" -o "x$result" != "x"; then
904                 
905     echo "configure: warning: can\'t find GNU make. You should install GNU make" 1>&2
906     warn_b=yes
907
908         fi
909
910     if test $MAKE != "error" ; then
911         $MAKE -v| grep GNU > /dev/null
912         if test "$?" = 1
913         then
914                 
915     echo "configure: warning: Please install *GNU* make" 1>&2
916     warn_b=yes
917  
918         fi 
919     fi 
920
921     
922         result="`echo \"$PYTHON\" | grep echo`"
923         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
924                 
925     echo "configure: warning: can\'t find python. You should install Python" 1>&2
926     warn_b=yes
927
928         fi
929
930
931     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
932         LN=cp # hard link does not work under cygnus-nt
933         LN_S=cp # symbolic link does not work for native nt
934         ZIP="zip -r -9" #
935         DOTEXE=.exe
936        DIRSEP='\\'
937         PATHSEP=';'
938        INSTALL="\$(stepdir)/../bin/install-dot-exe.sh -c"
939     else
940         DIRSEP='/'
941         PATHSEP=':'
942         LN=ln
943         LN_S='ln -s'
944         ZIP="zip -r -9"
945         INSTALL="\$(stepdir)/../bin/install-sh -c"
946     fi
947     
948     
949     
950     
951     
952     cat >> confdefs.h <<EOF
953 #define DIRSEP '${DIRSEP}'
954 EOF
955
956     cat >> confdefs.h <<EOF
957 #define PATHSEP '${PATHSEP}'
958 EOF
959
960     
961     
962   
963    
964     
965     if test "$datadir" = "\${prefix}/share"; then
966             datadir='${prefix}/share/'$package
967     fi
968     DIR_DATADIR=${datadir}
969     presome=${prefix}
970     if test "$prefix" = "NONE"; then
971             presome=${ac_default_prefix}
972     fi
973     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
974     
975     
976     cat >> confdefs.h <<EOF
977 #define DIR_DATADIR "${DIR_DATADIR}"
978 EOF
979
980
981
982
983 # For all packages except the StepMake package itself
984 subdirs="stepmake"
985
986
987 # Uncomment the configuration options your package needs.
988
989     # -O is necessary to get inlining
990     OPTIMIZE=""
991     CXXFLAGS=${CXXFLAGS:-""}
992     CFLAGS=${CFLAGS:-""}
993     checking_b=yes
994     optimise_b=no
995     profile_b=no
996     debug_b=yes
997
998     # Check whether --enable-checking or --disable-checking was given.
999 if test "${enable_checking+set}" = set; then
1000   enableval="$enable_checking"
1001   checking_b=$enableval 
1002 fi
1003
1004
1005     # actually, the default is: tja='-O' to get inlining...
1006     # off=''  --jcn
1007
1008     #actually, that sucks.
1009     #  tja looks like a typo.  Default is optimisation off. --hwn
1010     
1011     # Check whether --enable-optimise or --disable-optimise was given.
1012 if test "${enable_optimise+set}" = set; then
1013   enableval="$enable_optimise"
1014   optimise_b=$enableval
1015 fi
1016
1017     
1018     # Check whether --enable-profiling or --disable-profiling was given.
1019 if test "${enable_profiling+set}" = set; then
1020   enableval="$enable_profiling"
1021   profile_b=$enableval
1022 fi
1023
1024     
1025     # Check whether --enable-debugging or --disable-debugging was given.
1026 if test "${enable_debugging+set}" = set; then
1027   enableval="$enable_debugging"
1028   debug_b=$enableval
1029 fi
1030
1031
1032     # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1033 if test "${enable_mingw_prefix+set}" = set; then
1034   enableval="$enable_mingw_prefix"
1035   MINGWPREFIX=$enableval
1036 else
1037   MINGWPREFIX=no
1038 fi
1039
1040
1041     if test "$printing_b" = no; then
1042         # ugh
1043         cat >> confdefs.h <<\EOF
1044 #define NPRINT 1
1045 EOF
1046
1047         DEFINES="$DEFINES -DNPRINT"
1048     fi
1049         
1050     if test "$checking_b" = no; then
1051         # ugh
1052         cat >> confdefs.h <<\EOF
1053 #define NDEBUG 1
1054 EOF
1055
1056         DEFINES="$DEFINES -DNDEBUG"
1057     fi
1058
1059     if test "$optimise_b" = yes; then
1060         OPTIMIZE="-O2 -finline-functions"
1061     fi
1062
1063     if test "$optimise_b" = no; then
1064         OPTIMIZE=""
1065     fi
1066
1067     if test $profile_b = yes; then
1068         EXTRA_LIBES="-pg"
1069         OPTIMIZE="$OPTIMIZE -pg"
1070     fi
1071
1072     if test $debug_b = yes; then        
1073         OPTIMIZE="$OPTIMIZE -g"
1074     fi
1075
1076     # however, C++ support in mingw32 v 0.1.4 is still flaky
1077     if test x$MINGWPREFIX != xno; then 
1078         ICFLAGS="-I$MINGWPREFIX/include"
1079         ILDFLAGS="-$MINGWPREFIX/lib"
1080     fi
1081
1082     # Extract the first word of "gcc", so it can be a program name with args.
1083 set dummy gcc; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087   echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089   if test -n "$CC"; then
1090   ac_cv_prog_CC="$CC" # Let the user override the test.
1091 else
1092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1093   for ac_dir in $PATH; do
1094     test -z "$ac_dir" && ac_dir=.
1095     if test -f $ac_dir/$ac_word; then
1096       ac_cv_prog_CC="gcc"
1097       break
1098     fi
1099   done
1100   IFS="$ac_save_ifs"
1101 fi
1102 fi
1103 CC="$ac_cv_prog_CC"
1104 if test -n "$CC"; then
1105   echo "$ac_t""$CC" 1>&6
1106 else
1107   echo "$ac_t""no" 1>&6
1108 fi
1109
1110 if test -z "$CC"; then
1111   # Extract the first word of "cc", so it can be a program name with args.
1112 set dummy cc; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116   echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118   if test -n "$CC"; then
1119   ac_cv_prog_CC="$CC" # Let the user override the test.
1120 else
1121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1122   ac_prog_rejected=no
1123   for ac_dir in $PATH; do
1124     test -z "$ac_dir" && ac_dir=.
1125     if test -f $ac_dir/$ac_word; then
1126       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1127         ac_prog_rejected=yes
1128         continue
1129       fi
1130       ac_cv_prog_CC="cc"
1131       break
1132     fi
1133   done
1134   IFS="$ac_save_ifs"
1135 if test $ac_prog_rejected = yes; then
1136   # We found a bogon in the path, so make sure we never use it.
1137   set dummy $ac_cv_prog_CC
1138   shift
1139   if test $# -gt 0; then
1140     # We chose a different compiler from the bogus one.
1141     # However, it has the same basename, so the bogon will be chosen
1142     # first if we set CC to just the basename; use the full file name.
1143     shift
1144     set dummy "$ac_dir/$ac_word" "$@"
1145     shift
1146     ac_cv_prog_CC="$@"
1147   fi
1148 fi
1149 fi
1150 fi
1151 CC="$ac_cv_prog_CC"
1152 if test -n "$CC"; then
1153   echo "$ac_t""$CC" 1>&6
1154 else
1155   echo "$ac_t""no" 1>&6
1156 fi
1157
1158   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1159 fi
1160
1161 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1163
1164 ac_ext=c
1165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1166 ac_cpp='$CPP $CPPFLAGS'
1167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1168 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1169 cross_compiling=$ac_cv_prog_cc_cross
1170
1171 cat > conftest.$ac_ext <<EOF
1172 #line 1173 "configure"
1173 #include "confdefs.h"
1174 main(){return(0);}
1175 EOF
1176 if { (eval echo configure:1177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1177   ac_cv_prog_cc_works=yes
1178   # If we can't run a trivial program, we are probably using a cross compiler.
1179   if (./conftest; exit) 2>/dev/null; then
1180     ac_cv_prog_cc_cross=no
1181   else
1182     ac_cv_prog_cc_cross=yes
1183   fi
1184 else
1185   echo "configure: failed program was:" >&5
1186   cat conftest.$ac_ext >&5
1187   ac_cv_prog_cc_works=no
1188 fi
1189 rm -fr conftest*
1190
1191 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1192 if test $ac_cv_prog_cc_works = no; then
1193   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1194 fi
1195 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1197 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1198 cross_compiling=$ac_cv_prog_cc_cross
1199
1200 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether we are using GNU C" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1203   echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205   cat > conftest.c <<EOF
1206 #ifdef __GNUC__
1207   yes;
1208 #endif
1209 EOF
1210 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1211   ac_cv_prog_gcc=yes
1212 else
1213   ac_cv_prog_gcc=no
1214 fi
1215 fi
1216
1217 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1218
1219 if test $ac_cv_prog_gcc = yes; then
1220   GCC=yes
1221   ac_test_CFLAGS="${CFLAGS+set}"
1222   ac_save_CFLAGS="$CFLAGS"
1223   CFLAGS=
1224   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1231   ac_cv_prog_cc_g=yes
1232 else
1233   ac_cv_prog_cc_g=no
1234 fi
1235 rm -f conftest*
1236
1237 fi
1238
1239 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1240   if test "$ac_test_CFLAGS" = set; then
1241     CFLAGS="$ac_save_CFLAGS"
1242   elif test $ac_cv_prog_cc_g = yes; then
1243     CFLAGS="-g -O2"
1244   else
1245     CFLAGS="-O2"
1246   fi
1247 else
1248   GCC=
1249   test "${CFLAGS+set}" = set || CFLAGS="-g"
1250 fi
1251
1252     LD='$(CC)'
1253     
1254
1255     CPPFLAGS=${CPPFLAGS:-""}
1256     
1257     
1258     
1259     
1260     
1261     
1262
1263 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1264
1265 printing_b=no
1266 # Check whether --enable-printing or --disable-printing was given.
1267 if test "${enable_printing+set}" = set; then
1268   enableval="$enable_printing"
1269   printing_b=$enableval
1270 fi
1271
1272
1273 if test "$optimise_b" = yes; then
1274     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1275     cat >> confdefs.h <<\EOF
1276 #define STRINGS_UTILS_INLINED 1
1277 EOF
1278
1279 fi
1280
1281 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1282 echo "configure:1283: checking how to run the C++ preprocessor" >&5
1283 if test -z "$CXXCPP"; then
1284 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1285   echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287   ac_ext=C
1288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1289 ac_cpp='$CXXCPP $CPPFLAGS'
1290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1291 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1292 cross_compiling=$ac_cv_prog_cxx_cross
1293   CXXCPP="${CXX-g++} -E"
1294   cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1297 #include <stdlib.h>
1298 EOF
1299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1300 { (eval echo configure:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1301 ac_err=`grep -v '^ *+' conftest.out`
1302 if test -z "$ac_err"; then
1303   :
1304 else
1305   echo "$ac_err" >&5
1306   echo "configure: failed program was:" >&5
1307   cat conftest.$ac_ext >&5
1308   rm -rf conftest*
1309   CXXCPP=/lib/cpp
1310 fi
1311 rm -f conftest*
1312   ac_cv_prog_CXXCPP="$CXXCPP"
1313 fi
1314 fi
1315 CXXCPP="$ac_cv_prog_CXXCPP"
1316 echo "$ac_t""$CXXCPP" 1>&6
1317
1318
1319     ac_ext=C
1320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1321 ac_cpp='$CXXCPP $CPPFLAGS'
1322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1323 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1324 cross_compiling=$ac_cv_prog_cxx_cross
1325
1326     for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1327 do
1328 # Extract the first word of "$ac_prog", so it can be a program name with args.
1329 set dummy $ac_prog; ac_word=$2
1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_word" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1333   echo $ac_n "(cached) $ac_c" 1>&6
1334 else
1335   if test -n "$CXX"; then
1336   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1337 else
1338   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1339   for ac_dir in $PATH; do
1340     test -z "$ac_dir" && ac_dir=.
1341     if test -f $ac_dir/$ac_word; then
1342       ac_cv_prog_CXX="$ac_prog"
1343       break
1344     fi
1345   done
1346   IFS="$ac_save_ifs"
1347 fi
1348 fi
1349 CXX="$ac_cv_prog_CXX"
1350 if test -n "$CXX"; then
1351   echo "$ac_t""$CXX" 1>&6
1352 else
1353   echo "$ac_t""no" 1>&6
1354 fi
1355
1356 test -n "$CXX" && break
1357 done
1358 test -n "$CXX" || CXX="gcc"
1359
1360
1361 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1362 echo "configure:1363: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1363
1364 ac_ext=C
1365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1366 ac_cpp='$CXXCPP $CPPFLAGS'
1367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1368 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1369 cross_compiling=$ac_cv_prog_cxx_cross
1370
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 main(){return(0);}
1375 EOF
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1377   ac_cv_prog_cxx_works=yes
1378   # If we can't run a trivial program, we are probably using a cross compiler.
1379   if (./conftest; exit) 2>/dev/null; then
1380     ac_cv_prog_cxx_cross=no
1381   else
1382     ac_cv_prog_cxx_cross=yes
1383   fi
1384 else
1385   echo "configure: failed program was:" >&5
1386   cat conftest.$ac_ext >&5
1387   ac_cv_prog_cxx_works=no
1388 fi
1389 rm -fr conftest*
1390
1391 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1392 if test $ac_cv_prog_cxx_works = no; then
1393   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1394 fi
1395 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1397 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1398 cross_compiling=$ac_cv_prog_cxx_cross
1399
1400 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1401 echo "configure:1402: checking whether we are using GNU C++" >&5
1402 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1403   echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405   cat > conftest.C <<EOF
1406 #ifdef __GNUC__
1407   yes;
1408 #endif
1409 EOF
1410 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1411   ac_cv_prog_gxx=yes
1412 else
1413   ac_cv_prog_gxx=no
1414 fi
1415 fi
1416
1417 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1418
1419 if test $ac_cv_prog_gxx = yes; then
1420   GXX=yes
1421   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1422   ac_save_CXXFLAGS="$CXXFLAGS"
1423   CXXFLAGS=
1424   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether ${CXX-g++} accepts -g" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1427   echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429   echo 'void f(){}' > conftest.cc
1430 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1431   ac_cv_prog_cxx_g=yes
1432 else
1433   ac_cv_prog_cxx_g=no
1434 fi
1435 rm -f conftest*
1436
1437 fi
1438
1439 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1440   if test "$ac_test_CXXFLAGS" = set; then
1441     CXXFLAGS="$ac_save_CXXFLAGS"
1442   elif test $ac_cv_prog_cxx_g = yes; then
1443     CXXFLAGS="-g -O2"
1444   else
1445     CXXFLAGS="-O2"
1446   fi
1447 else
1448   GXX=
1449   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1450 fi
1451
1452
1453     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1454 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1455 echo "configure:1456: checking for FlexLexer.h" >&5
1456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1457   echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459   cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 #include <FlexLexer.h>
1463 EOF
1464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1465 { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1466 ac_err=`grep -v '^ *+' conftest.out`
1467 if test -z "$ac_err"; then
1468   rm -rf conftest*
1469   eval "ac_cv_header_$ac_safe=yes"
1470 else
1471   echo "$ac_err" >&5
1472   echo "configure: failed program was:" >&5
1473   cat conftest.$ac_ext >&5
1474   rm -rf conftest*
1475   eval "ac_cv_header_$ac_safe=no"
1476 fi
1477 rm -f conftest*
1478 fi
1479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1480   echo "$ac_t""yes" 1>&6
1481   true
1482 else
1483   echo "$ac_t""no" 1>&6
1484
1485     echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1486     warn_b=yes
1487
1488 fi
1489
1490
1491     CPPFLAGS="$CPPFLAGS $DEFINES"
1492     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1493     LDFLAGS=$EXTRA_LIBES
1494
1495     
1496     
1497     LD='$(CXX)'
1498     
1499
1500
1501     # ugh autoconf
1502         if $CXX --version | grep '2\.[78]' > /dev/null ||
1503         $CXX --version | grep 'egcs' > /dev/null
1504         then
1505             true
1506     else
1507             
1508     echo "configure: warning: can\'t find g++ 2.7" 1>&2
1509     warn_b=yes
1510
1511     fi
1512
1513
1514     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether explicit instantiation is needed" >&5
1516 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1517   echo $ac_n "(cached) $ac_c" 1>&6
1518 else
1519   cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522
1523     template <class T> struct foo { static int baz; };
1524     template <class T> int foo<T>::baz = 1;
1525     
1526 int main() {
1527  return foo<int>::baz; 
1528 ; return 0; }
1529 EOF
1530 if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1531   rm -rf conftest*
1532   lily_cv_need_explicit_instantiation=no
1533 else
1534   echo "configure: failed program was:" >&5
1535   cat conftest.$ac_ext >&5
1536   rm -rf conftest*
1537   lily_cv_need_explicit_instantiation=yes
1538 fi
1539 rm -f conftest*
1540 fi
1541
1542 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1543     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1544         cat >> confdefs.h <<\EOF
1545 #define NEED_EXPLICIT_INSTANTIATION 1
1546 EOF
1547
1548     fi
1549
1550
1551     # ugh, automake: we want (and check for) bison
1552     for ac_prog in 'bison -y' byacc
1553 do
1554 # Extract the first word of "$ac_prog", so it can be a program name with args.
1555 set dummy $ac_prog; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1559   echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561   if test -n "$YACC"; then
1562   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1563 else
1564   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1565   for ac_dir in $PATH; do
1566     test -z "$ac_dir" && ac_dir=.
1567     if test -f $ac_dir/$ac_word; then
1568       ac_cv_prog_YACC="$ac_prog"
1569       break
1570     fi
1571   done
1572   IFS="$ac_save_ifs"
1573 fi
1574 fi
1575 YACC="$ac_cv_prog_YACC"
1576 if test -n "$YACC"; then
1577   echo "$ac_t""$YACC" 1>&6
1578 else
1579   echo "$ac_t""no" 1>&6
1580 fi
1581
1582 test -n "$YACC" && break
1583 done
1584 test -n "$YACC" || YACC="yacc"
1585
1586     # ugh, automake: we want (and check for) flex
1587     # AC_PROG_LEX
1588     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1589
1590     # AC_DECL_YYTEXT
1591     # ugh, ugh
1592     ac_cv_prog_lex_root=lex.yy
1593
1594     for ac_prog in bison
1595 do
1596 # Extract the first word of "$ac_prog", so it can be a program name with args.
1597 set dummy $ac_prog; ac_word=$2
1598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1599 echo "configure:1600: checking for $ac_word" >&5
1600 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1601   echo $ac_n "(cached) $ac_c" 1>&6
1602 else
1603   if test -n "$BISON"; then
1604   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1605 else
1606   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1607   for ac_dir in $PATH; do
1608     test -z "$ac_dir" && ac_dir=.
1609     if test -f $ac_dir/$ac_word; then
1610       ac_cv_prog_BISON="$ac_prog"
1611       break
1612     fi
1613   done
1614   IFS="$ac_save_ifs"
1615 fi
1616 fi
1617 BISON="$ac_cv_prog_BISON"
1618 if test -n "$BISON"; then
1619   echo "$ac_t""$BISON" 1>&6
1620 else
1621   echo "$ac_t""no" 1>&6
1622 fi
1623
1624 test -n "$BISON" && break
1625 done
1626 test -n "$BISON" || BISON="error"
1627
1628     for ac_prog in flex
1629 do
1630 # Extract the first word of "$ac_prog", so it can be a program name with args.
1631 set dummy $ac_prog; ac_word=$2
1632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1633 echo "configure:1634: checking for $ac_word" >&5
1634 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1635   echo $ac_n "(cached) $ac_c" 1>&6
1636 else
1637   if test -n "$FLEX"; then
1638   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1639 else
1640   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1641   for ac_dir in $PATH; do
1642     test -z "$ac_dir" && ac_dir=.
1643     if test -f $ac_dir/$ac_word; then
1644       ac_cv_prog_FLEX="$ac_prog"
1645       break
1646     fi
1647   done
1648   IFS="$ac_save_ifs"
1649 fi
1650 fi
1651 FLEX="$ac_cv_prog_FLEX"
1652 if test -n "$FLEX"; then
1653   echo "$ac_t""$FLEX" 1>&6
1654 else
1655   echo "$ac_t""no" 1>&6
1656 fi
1657
1658 test -n "$FLEX" && break
1659 done
1660 test -n "$FLEX" || FLEX="error"
1661
1662     
1663         result="`echo \"$BISON\" | grep echo`"
1664         if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1665                 
1666     echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1667     warn_b=yes
1668
1669         fi
1670
1671     
1672         result="`echo \"$FLEX\" | grep echo`"
1673         if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1674                 
1675     echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1676     warn_b=yes
1677
1678         fi
1679
1680
1681     if test $BISON != "error"; then
1682         bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1683         if test $bison_version -lt 25; then
1684             
1685     echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1686     warn_b=yes
1687
1688         fi      
1689     fi
1690
1691     
1692     
1693
1694
1695     for ac_prog in ar
1696 do
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_word" >&5
1701 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1702   echo $ac_n "(cached) $ac_c" 1>&6
1703 else
1704   if test -n "$AR"; then
1705   ac_cv_prog_AR="$AR" # Let the user override the test.
1706 else
1707   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1708   for ac_dir in $PATH; do
1709     test -z "$ac_dir" && ac_dir=.
1710     if test -f $ac_dir/$ac_word; then
1711       ac_cv_prog_AR="$ac_prog"
1712       break
1713     fi
1714   done
1715   IFS="$ac_save_ifs"
1716 fi
1717 fi
1718 AR="$ac_cv_prog_AR"
1719 if test -n "$AR"; then
1720   echo "$ac_t""$AR" 1>&6
1721 else
1722   echo "$ac_t""no" 1>&6
1723 fi
1724
1725 test -n "$AR" && break
1726 done
1727 test -n "$AR" || AR="error"
1728
1729     # Extract the first word of "ranlib", so it can be a program name with args.
1730 set dummy ranlib; ac_word=$2
1731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_word" >&5
1733 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1734   echo $ac_n "(cached) $ac_c" 1>&6
1735 else
1736   if test -n "$RANLIB"; then
1737   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1738 else
1739   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1740   for ac_dir in $PATH; do
1741     test -z "$ac_dir" && ac_dir=.
1742     if test -f $ac_dir/$ac_word; then
1743       ac_cv_prog_RANLIB="ranlib"
1744       break
1745     fi
1746   done
1747   IFS="$ac_save_ifs"
1748   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1749 fi
1750 fi
1751 RANLIB="$ac_cv_prog_RANLIB"
1752 if test -n "$RANLIB"; then
1753   echo "$ac_t""$RANLIB" 1>&6
1754 else
1755   echo "$ac_t""no" 1>&6
1756 fi
1757
1758
1759     
1760     
1761
1762 # AC_STEPMAKE_LIBTOOL
1763
1764     lang=English
1765     ALL_LINGUAS="en nl"
1766
1767     # with/enable ??
1768     # Check whether --with-localedir or --without-localedir was given.
1769 if test "${with_localedir+set}" = set; then
1770   withval="$with_localedir"
1771   localedir=$with_localedir
1772 else
1773   localedir='${prefix}/share/locale'
1774 fi
1775
1776
1777     # Check whether --with-lang or --without-lang was given.
1778 if test "${with_lang+set}" = set; then
1779   withval="$with_lang"
1780   language=$with_lang
1781 else
1782   language=English
1783 fi
1784
1785
1786     echo $ac_n "checking language""... $ac_c" 1>&6
1787 echo "configure:1788: checking language" >&5    
1788     case "$language" in
1789       En* | en* | Am* | am* | US* | us*)
1790             lang=English;;
1791       NL | nl | Du* | du* | Ned* | ned*)
1792             lang=Dutch;;
1793       "")
1794             lang=English;;
1795       *)
1796             lang=unknown;;
1797     esac
1798     echo "$ac_t""$lang" 1>&6
1799
1800     if test "$lang" = "unknown" ; then
1801         
1802     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1803     warn_b=yes
1804
1805     fi
1806
1807
1808
1809     DIR_LOCALEDIR=${localedir}
1810     presome=${prefix}
1811     if test "$prefix" = "NONE"; then
1812             presome=${ac_default_prefix}
1813     fi
1814     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
1815     
1816     
1817     cat >> confdefs.h <<EOF
1818 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
1819 EOF
1820
1821
1822     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1823 echo "configure:1824: checking for gettext in -lintl" >&5
1824 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1826   echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828   ac_save_LIBS="$LIBS"
1829 LIBS="-lintl  $LIBS"
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1833 /* Override any gcc2 internal prototype to avoid an error.  */
1834 #ifdef __cplusplus
1835 extern "C"
1836 #endif
1837 /* We use char because int might match the return type of a gcc2
1838     builtin and then its argument prototype would still apply.  */
1839 char gettext();
1840
1841 int main() {
1842 gettext()
1843 ; return 0; }
1844 EOF
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1846   rm -rf conftest*
1847   eval "ac_cv_lib_$ac_lib_var=yes"
1848 else
1849   echo "configure: failed program was:" >&5
1850   cat conftest.$ac_ext >&5
1851   rm -rf conftest*
1852   eval "ac_cv_lib_$ac_lib_var=no"
1853 fi
1854 rm -f conftest*
1855 LIBS="$ac_save_LIBS"
1856
1857 fi
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859   echo "$ac_t""yes" 1>&6
1860     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1861     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1862   cat >> confdefs.h <<EOF
1863 #define $ac_tr_lib 1
1864 EOF
1865
1866   LIBS="-lintl $LIBS"
1867
1868 else
1869   echo "$ac_t""no" 1>&6
1870 fi
1871
1872     for ac_func in gettext
1873 do
1874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_func" >&5
1876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1877   echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879   cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 /* System header to define __stub macros and hopefully few prototypes,
1883     which can conflict with char $ac_func(); below.  */
1884 #include <assert.h>
1885 /* Override any gcc2 internal prototype to avoid an error.  */
1886 #ifdef __cplusplus
1887 extern "C"
1888 #endif
1889 /* We use char because int might match the return type of a gcc2
1890     builtin and then its argument prototype would still apply.  */
1891 char $ac_func();
1892
1893 int main() {
1894
1895 /* The GNU C library defines this for functions which it implements
1896     to always fail with ENOSYS.  Some functions are actually named
1897     something starting with __ and the normal name is an alias.  */
1898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1899 choke me
1900 #else
1901 $ac_func();
1902 #endif
1903
1904 ; return 0; }
1905 EOF
1906 if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1907   rm -rf conftest*
1908   eval "ac_cv_func_$ac_func=yes"
1909 else
1910   echo "configure: failed program was:" >&5
1911   cat conftest.$ac_ext >&5
1912   rm -rf conftest*
1913   eval "ac_cv_func_$ac_func=no"
1914 fi
1915 rm -f conftest*
1916 fi
1917
1918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1919   echo "$ac_t""yes" 1>&6
1920     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1921   cat >> confdefs.h <<EOF
1922 #define $ac_tr_func 1
1923 EOF
1924  
1925 else
1926   echo "$ac_t""no" 1>&6
1927 fi
1928 done
1929
1930
1931
1932     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
1933     for ac_prog in msgfmt
1934 do
1935 # Extract the first word of "$ac_prog", so it can be a program name with args.
1936 set dummy $ac_prog; ac_word=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1940   echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942   if test -n "$MSGFMT"; then
1943   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1944 else
1945   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1946   for ac_dir in $PATH; do
1947     test -z "$ac_dir" && ac_dir=.
1948     if test -f $ac_dir/$ac_word; then
1949       ac_cv_prog_MSGFMT="$ac_prog"
1950       break
1951     fi
1952   done
1953   IFS="$ac_save_ifs"
1954 fi
1955 fi
1956 MSGFMT="$ac_cv_prog_MSGFMT"
1957 if test -n "$MSGFMT"; then
1958   echo "$ac_t""$MSGFMT" 1>&6
1959 else
1960   echo "$ac_t""no" 1>&6
1961 fi
1962
1963 test -n "$MSGFMT" && break
1964 done
1965 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
1966
1967     echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether msgfmt accepts -o" >&5
1969     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
1970     if test "$msgfmt_output" = ""; then
1971         echo "$ac_t""yes" 1>&6
1972     else
1973         # urg
1974         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
1975         echo "$ac_t""no" 1>&6
1976         
1977     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1978     warn_b=yes
1979
1980     fi
1981     if test ! -n "$MSGFMT"; then
1982         
1983     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1984     warn_b=yes
1985
1986     fi
1987
1988 # AC_STEPMAKE_TEXMF
1989
1990     if test "x$YODL" = "x"; then 
1991         for ac_prog in striproff
1992 do
1993 # Extract the first word of "$ac_prog", so it can be a program name with args.
1994 set dummy $ac_prog; ac_word=$2
1995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1996 echo "configure:1997: checking for $ac_word" >&5
1997 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
1998   echo $ac_n "(cached) $ac_c" 1>&6
1999 else
2000   if test -n "$STRIPROFF"; then
2001   ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
2002 else
2003   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2004   for ac_dir in $PATH; do
2005     test -z "$ac_dir" && ac_dir=.
2006     if test -f $ac_dir/$ac_word; then
2007       ac_cv_prog_STRIPROFF="$ac_prog"
2008       break
2009     fi
2010   done
2011   IFS="$ac_save_ifs"
2012 fi
2013 fi
2014 STRIPROFF="$ac_cv_prog_STRIPROFF"
2015 if test -n "$STRIPROFF"; then
2016   echo "$ac_t""$STRIPROFF" 1>&6
2017 else
2018   echo "$ac_t""no" 1>&6
2019 fi
2020
2021 test -n "$STRIPROFF" && break
2022 done
2023 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
2024
2025         for ac_prog in yodl
2026 do
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030 echo "configure:2031: checking for $ac_word" >&5
2031 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2032   echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034   if test -n "$YODL"; then
2035   ac_cv_prog_YODL="$YODL" # Let the user override the test.
2036 else
2037   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2038   for ac_dir in $PATH; do
2039     test -z "$ac_dir" && ac_dir=.
2040     if test -f $ac_dir/$ac_word; then
2041       ac_cv_prog_YODL="$ac_prog"
2042       break
2043     fi
2044   done
2045   IFS="$ac_save_ifs"
2046 fi
2047 fi
2048 YODL="$ac_cv_prog_YODL"
2049 if test -n "$YODL"; then
2050   echo "$ac_t""$YODL" 1>&6
2051 else
2052   echo "$ac_t""no" 1>&6
2053 fi
2054
2055 test -n "$YODL" && break
2056 done
2057 test -n "$YODL" || YODL="-echo no yodl"
2058
2059         for ac_prog in yodl2html
2060 do
2061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2062 set dummy $ac_prog; ac_word=$2
2063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2064 echo "configure:2065: checking for $ac_word" >&5
2065 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2066   echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068   if test -n "$YODL2HTML"; then
2069   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2070 else
2071   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2072   for ac_dir in $PATH; do
2073     test -z "$ac_dir" && ac_dir=.
2074     if test -f $ac_dir/$ac_word; then
2075       ac_cv_prog_YODL2HTML="$ac_prog"
2076       break
2077     fi
2078   done
2079   IFS="$ac_save_ifs"
2080 fi
2081 fi
2082 YODL2HTML="$ac_cv_prog_YODL2HTML"
2083 if test -n "$YODL2HTML"; then
2084   echo "$ac_t""$YODL2HTML" 1>&6
2085 else
2086   echo "$ac_t""no" 1>&6
2087 fi
2088
2089 test -n "$YODL2HTML" && break
2090 done
2091 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2092
2093         for ac_prog in yodl2latex
2094 do
2095 # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2098 echo "configure:2099: checking for $ac_word" >&5
2099 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2100   echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102   if test -n "$YODL2LATEX"; then
2103   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2104 else
2105   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2106   for ac_dir in $PATH; do
2107     test -z "$ac_dir" && ac_dir=.
2108     if test -f $ac_dir/$ac_word; then
2109       ac_cv_prog_YODL2LATEX="$ac_prog"
2110       break
2111     fi
2112   done
2113   IFS="$ac_save_ifs"
2114 fi
2115 fi
2116 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2117 if test -n "$YODL2LATEX"; then
2118   echo "$ac_t""$YODL2LATEX" 1>&6
2119 else
2120   echo "$ac_t""no" 1>&6
2121 fi
2122
2123 test -n "$YODL2LATEX" && break
2124 done
2125
2126         for ac_prog in yodl2man
2127 do
2128 # Extract the first word of "$ac_prog", so it can be a program name with args.
2129 set dummy $ac_prog; ac_word=$2
2130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_word" >&5
2132 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2133   echo $ac_n "(cached) $ac_c" 1>&6
2134 else
2135   if test -n "$YODL2MAN"; then
2136   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2137 else
2138   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2139   for ac_dir in $PATH; do
2140     test -z "$ac_dir" && ac_dir=.
2141     if test -f $ac_dir/$ac_word; then
2142       ac_cv_prog_YODL2MAN="$ac_prog"
2143       break
2144     fi
2145   done
2146   IFS="$ac_save_ifs"
2147 fi
2148 fi
2149 YODL2MAN="$ac_cv_prog_YODL2MAN"
2150 if test -n "$YODL2MAN"; then
2151   echo "$ac_t""$YODL2MAN" 1>&6
2152 else
2153   echo "$ac_t""no" 1>&6
2154 fi
2155
2156 test -n "$YODL2MAN" && break
2157 done
2158 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2159
2160         for ac_prog in yodl2msless
2161 do
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_word" >&5
2166 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
2167   echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169   if test -n "$YODL2MSLESS"; then
2170   ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
2171 else
2172   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2173   for ac_dir in $PATH; do
2174     test -z "$ac_dir" && ac_dir=.
2175     if test -f $ac_dir/$ac_word; then
2176       ac_cv_prog_YODL2MSLESS="$ac_prog"
2177       break
2178     fi
2179   done
2180   IFS="$ac_save_ifs"
2181 fi
2182 fi
2183 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
2184 if test -n "$YODL2MSLESS"; then
2185   echo "$ac_t""$YODL2MSLESS" 1>&6
2186 else
2187   echo "$ac_t""no" 1>&6
2188 fi
2189
2190 test -n "$YODL2MSLESS" && break
2191 done
2192 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
2193
2194         for ac_prog in yodl2texinfo
2195 do
2196 # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2199 echo "configure:2200: checking for $ac_word" >&5
2200 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2201   echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203   if test -n "$YODL2TEXINFO"; then
2204   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2205 else
2206   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2207   for ac_dir in $PATH; do
2208     test -z "$ac_dir" && ac_dir=.
2209     if test -f $ac_dir/$ac_word; then
2210       ac_cv_prog_YODL2TEXINFO="$ac_prog"
2211       break
2212     fi
2213   done
2214   IFS="$ac_save_ifs"
2215 fi
2216 fi
2217 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2218 if test -n "$YODL2TEXINFO"; then
2219   echo "$ac_t""$YODL2TEXINFO" 1>&6
2220 else
2221   echo "$ac_t""no" 1>&6
2222 fi
2223
2224 test -n "$YODL2TEXINFO" && break
2225 done
2226 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2227
2228         for ac_prog in yodl2txt
2229 do
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_word" >&5
2234 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2235   echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237   if test -n "$YODL2TXT"; then
2238   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2239 else
2240   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2241   for ac_dir in $PATH; do
2242     test -z "$ac_dir" && ac_dir=.
2243     if test -f $ac_dir/$ac_word; then
2244       ac_cv_prog_YODL2TXT="$ac_prog"
2245       break
2246     fi
2247   done
2248   IFS="$ac_save_ifs"
2249 fi
2250 fi
2251 YODL2TXT="$ac_cv_prog_YODL2TXT"
2252 if test -n "$YODL2TXT"; then
2253   echo "$ac_t""$YODL2TXT" 1>&6
2254 else
2255   echo "$ac_t""no" 1>&6
2256 fi
2257
2258 test -n "$YODL2TXT" && break
2259 done
2260 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2261
2262     else
2263         
2264         
2265         
2266         
2267         
2268         
2269         
2270         
2271         export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
2272     fi
2273     if test "x$YODL" = "-echo no yodl"; then
2274         
2275     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2276     warn_b=yes
2277
2278     fi    
2279
2280
2281
2282
2283 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2284 echo "configure:2285: checking for 8-bit clean memcmp" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2286   echo $ac_n "(cached) $ac_c" 1>&6
2287 else
2288   if test "$cross_compiling" = yes; then
2289   ac_cv_func_memcmp_clean=no
2290 else
2291   cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 #ifdef __cplusplus
2295 extern "C" void exit(int);
2296 #endif
2297
2298 main()
2299 {
2300   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2301   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2302 }
2303
2304 EOF
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2306 then
2307   ac_cv_func_memcmp_clean=yes
2308 else
2309   echo "configure: failed program was:" >&5
2310   cat conftest.$ac_ext >&5
2311   rm -fr conftest*
2312   ac_cv_func_memcmp_clean=no
2313 fi
2314 rm -fr conftest*
2315 fi
2316
2317 fi
2318
2319 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2320 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2321
2322 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2323 echo "configure:2324: checking for vprintf" >&5
2324 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2325   echo $ac_n "(cached) $ac_c" 1>&6
2326 else
2327   cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* System header to define __stub macros and hopefully few prototypes,
2331     which can conflict with char vprintf(); below.  */
2332 #include <assert.h>
2333 /* Override any gcc2 internal prototype to avoid an error.  */
2334 #ifdef __cplusplus
2335 extern "C"
2336 #endif
2337 /* We use char because int might match the return type of a gcc2
2338     builtin and then its argument prototype would still apply.  */
2339 char vprintf();
2340
2341 int main() {
2342
2343 /* The GNU C library defines this for functions which it implements
2344     to always fail with ENOSYS.  Some functions are actually named
2345     something starting with __ and the normal name is an alias.  */
2346 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2347 choke me
2348 #else
2349 vprintf();
2350 #endif
2351
2352 ; return 0; }
2353 EOF
2354 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2355   rm -rf conftest*
2356   eval "ac_cv_func_vprintf=yes"
2357 else
2358   echo "configure: failed program was:" >&5
2359   cat conftest.$ac_ext >&5
2360   rm -rf conftest*
2361   eval "ac_cv_func_vprintf=no"
2362 fi
2363 rm -f conftest*
2364 fi
2365
2366 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2367   echo "$ac_t""yes" 1>&6
2368   cat >> confdefs.h <<\EOF
2369 #define HAVE_VPRINTF 1
2370 EOF
2371
2372 else
2373   echo "$ac_t""no" 1>&6
2374 fi
2375
2376 if test "$ac_cv_func_vprintf" != yes; then
2377 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2378 echo "configure:2379: checking for _doprnt" >&5
2379 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2380   echo $ac_n "(cached) $ac_c" 1>&6
2381 else
2382   cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 /* System header to define __stub macros and hopefully few prototypes,
2386     which can conflict with char _doprnt(); below.  */
2387 #include <assert.h>
2388 /* Override any gcc2 internal prototype to avoid an error.  */
2389 #ifdef __cplusplus
2390 extern "C"
2391 #endif
2392 /* We use char because int might match the return type of a gcc2
2393     builtin and then its argument prototype would still apply.  */
2394 char _doprnt();
2395
2396 int main() {
2397
2398 /* The GNU C library defines this for functions which it implements
2399     to always fail with ENOSYS.  Some functions are actually named
2400     something starting with __ and the normal name is an alias.  */
2401 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2402 choke me
2403 #else
2404 _doprnt();
2405 #endif
2406
2407 ; return 0; }
2408 EOF
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2410   rm -rf conftest*
2411   eval "ac_cv_func__doprnt=yes"
2412 else
2413   echo "configure: failed program was:" >&5
2414   cat conftest.$ac_ext >&5
2415   rm -rf conftest*
2416   eval "ac_cv_func__doprnt=no"
2417 fi
2418 rm -f conftest*
2419 fi
2420
2421 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2422   echo "$ac_t""yes" 1>&6
2423   cat >> confdefs.h <<\EOF
2424 #define HAVE_DOPRNT 1
2425 EOF
2426
2427 else
2428   echo "$ac_t""no" 1>&6
2429 fi
2430
2431 fi
2432
2433 for ac_func in memmem snprintf vsnprintf gettext
2434 do
2435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_func" >&5
2437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2438   echo $ac_n "(cached) $ac_c" 1>&6
2439 else
2440   cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 /* System header to define __stub macros and hopefully few prototypes,
2444     which can conflict with char $ac_func(); below.  */
2445 #include <assert.h>
2446 /* Override any gcc2 internal prototype to avoid an error.  */
2447 #ifdef __cplusplus
2448 extern "C"
2449 #endif
2450 /* We use char because int might match the return type of a gcc2
2451     builtin and then its argument prototype would still apply.  */
2452 char $ac_func();
2453
2454 int main() {
2455
2456 /* The GNU C library defines this for functions which it implements
2457     to always fail with ENOSYS.  Some functions are actually named
2458     something starting with __ and the normal name is an alias.  */
2459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2460 choke me
2461 #else
2462 $ac_func();
2463 #endif
2464
2465 ; return 0; }
2466 EOF
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2468   rm -rf conftest*
2469   eval "ac_cv_func_$ac_func=yes"
2470 else
2471   echo "configure: failed program was:" >&5
2472   cat conftest.$ac_ext >&5
2473   rm -rf conftest*
2474   eval "ac_cv_func_$ac_func=no"
2475 fi
2476 rm -f conftest*
2477 fi
2478
2479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2480   echo "$ac_t""yes" 1>&6
2481     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2482   cat >> confdefs.h <<EOF
2483 #define $ac_tr_func 1
2484 EOF
2485  
2486 else
2487   echo "$ac_t""no" 1>&6
2488 fi
2489 done
2490
2491
2492 cat >> confdefs.h <<EOF
2493 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2494 EOF
2495
2496 cat >> confdefs.h <<EOF
2497 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
2498 EOF
2499
2500
2501 for ac_prog in makeinfo
2502 do
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_word" >&5
2507 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2508   echo $ac_n "(cached) $ac_c" 1>&6
2509 else
2510   if test -n "$MAKEINFO"; then
2511   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2512 else
2513   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2514   for ac_dir in $PATH; do
2515     test -z "$ac_dir" && ac_dir=.
2516     if test -f $ac_dir/$ac_word; then
2517       ac_cv_prog_MAKEINFO="$ac_prog"
2518       break
2519     fi
2520   done
2521   IFS="$ac_save_ifs"
2522 fi
2523 fi
2524 MAKEINFO="$ac_cv_prog_MAKEINFO"
2525 if test -n "$MAKEINFO"; then
2526   echo "$ac_t""$MAKEINFO" 1>&6
2527 else
2528   echo "$ac_t""no" 1>&6
2529 fi
2530
2531 test -n "$MAKEINFO" && break
2532 done
2533 test -n "$MAKEINFO" || MAKEINFO="error"
2534
2535
2536         result="`echo \"$YODL2TEXINFO\" | grep echo`"
2537         if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
2538                 
2539     echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or better" 1>&2
2540     warn_b=yes
2541
2542         fi
2543
2544
2545
2546     trap '' 1 2 15
2547 cat > confcache <<\EOF
2548 # This file is a shell script that caches the results of configure
2549 # tests run on this system so they can be shared between configure
2550 # scripts and configure runs.  It is not useful on other systems.
2551 # If it contains results you don't want to keep, you may remove or edit it.
2552 #
2553 # By default, configure uses ./config.cache as the cache file,
2554 # creating it if it does not exist already.  You can give configure
2555 # the --cache-file=FILE option to use a different cache file; that is
2556 # what configure does when it calls configure scripts in
2557 # subdirectories, so they share the cache.
2558 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2559 # config.status only pays attention to the cache file if you give it the
2560 # --recheck option to rerun configure.
2561 #
2562 EOF
2563 # The following way of writing the cache mishandles newlines in values,
2564 # but we know of no workaround that is simple, portable, and efficient.
2565 # So, don't put newlines in cache variables' values.
2566 # Ultrix sh set writes to stderr and can't be redirected directly,
2567 # and sets the high bit in the cache file unless we assign to the vars.
2568 (set) 2>&1 |
2569   case `(ac_space=' '; set) 2>&1` in
2570   *ac_space=\ *)
2571     # `set' does not quote correctly, so add quotes (double-quote substitution
2572     # turns \\\\ into \\, and sed turns \\ into \).
2573     sed -n \
2574       -e "s/'/'\\\\''/g" \
2575       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2576     ;;
2577   *)
2578     # `set' quotes correctly as required by POSIX, so do not add quotes.
2579     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2580     ;;
2581   esac >> confcache
2582 if cmp -s $cache_file confcache; then
2583   :
2584 else
2585   if test -w $cache_file; then
2586     echo "updating cache $cache_file"
2587     cat confcache > $cache_file
2588   else
2589     echo "not updating unwritable cache $cache_file"
2590   fi
2591 fi
2592 rm -f confcache
2593
2594 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2595
2596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2597 # Let make expand exec_prefix.
2598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2599
2600 # Any assignment to VPATH causes Sun make to only execute
2601 # the first set of double-colon rules, so remove it if not needed.
2602 # If there is a colon in the path, we need to keep it.
2603 if test "x$srcdir" = x.; then
2604   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2605 fi
2606
2607 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2608
2609 DEFS=-DHAVE_CONFIG_H
2610
2611 # Without the "./", some shells look in PATH for config.status.
2612 : ${CONFIG_STATUS=./config.status}
2613
2614 echo creating $CONFIG_STATUS
2615 rm -f $CONFIG_STATUS
2616 cat > $CONFIG_STATUS <<EOF
2617 #! /bin/sh
2618 # Generated automatically by configure.
2619 # Run this file to recreate the current configuration.
2620 # This directory was configured as follows,
2621 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2622 #
2623 # $0 $ac_configure_args
2624 #
2625 # Compiler output produced by configure, useful for debugging
2626 # configure, is in ./config.log if it exists.
2627
2628 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2629 for ac_option
2630 do
2631   case "\$ac_option" in
2632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2633     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2634     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2635   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2636     echo "$CONFIG_STATUS generated by autoconf version 2.12"
2637     exit 0 ;;
2638   -help | --help | --hel | --he | --h)
2639     echo "\$ac_cs_usage"; exit 0 ;;
2640   *) echo "\$ac_cs_usage"; exit 1 ;;
2641   esac
2642 done
2643
2644 ac_given_srcdir=$srcdir
2645
2646 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2647 EOF
2648 cat >> $CONFIG_STATUS <<EOF
2649
2650 # Protect against being on the right side of a sed subst in config.status.
2651 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2652  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2653 $ac_vpsub
2654 $extrasub
2655 s%@CFLAGS@%$CFLAGS%g
2656 s%@CPPFLAGS@%$CPPFLAGS%g
2657 s%@CXXFLAGS@%$CXXFLAGS%g
2658 s%@DEFS@%$DEFS%g
2659 s%@LDFLAGS@%$LDFLAGS%g
2660 s%@LIBS@%$LIBS%g
2661 s%@exec_prefix@%$exec_prefix%g
2662 s%@prefix@%$prefix%g
2663 s%@program_transform_name@%$program_transform_name%g
2664 s%@bindir@%$bindir%g
2665 s%@sbindir@%$sbindir%g
2666 s%@libexecdir@%$libexecdir%g
2667 s%@datadir@%$datadir%g
2668 s%@sysconfdir@%$sysconfdir%g
2669 s%@sharedstatedir@%$sharedstatedir%g
2670 s%@localstatedir@%$localstatedir%g
2671 s%@libdir@%$libdir%g
2672 s%@includedir@%$includedir%g
2673 s%@oldincludedir@%$oldincludedir%g
2674 s%@infodir@%$infodir%g
2675 s%@mandir@%$mandir%g
2676 s%@package@%$package%g
2677 s%@PACKAGE@%$PACKAGE%g
2678 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
2679 s%@package_depth@%$package_depth%g
2680 s%@AUTOGENERATE@%$AUTOGENERATE%g
2681 s%@absolute_builddir@%$absolute_builddir%g
2682 s%@stepmake@%$stepmake%g
2683 s%@STATE_VECTOR@%$STATE_VECTOR%g
2684 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
2685 s%@host@%$host%g
2686 s%@host_alias@%$host_alias%g
2687 s%@host_cpu@%$host_cpu%g
2688 s%@host_vendor@%$host_vendor%g
2689 s%@host_os@%$host_os%g
2690 s%@MAKE@%$MAKE%g
2691 s%@FIND@%$FIND%g
2692 s%@TAR@%$TAR%g
2693 s%@BASH@%$BASH%g
2694 s%@PYTHON@%$PYTHON%g
2695 s%@DOTEXE@%$DOTEXE%g
2696 s%@ZIP@%$ZIP%g
2697 s%@LN@%$LN%g
2698 s%@LN_S@%$LN_S%g
2699 s%@INSTALL@%$INSTALL%g
2700 s%@PATHSEP@%$PATHSEP%g
2701 s%@DIRSEP@%$DIRSEP%g
2702 s%@DIR_DATADIR@%$DIR_DATADIR%g
2703 s%@subdirs@%$subdirs%g
2704 s%@CC@%$CC%g
2705 s%@LD@%$LD%g
2706 s%@ICFLAGS@%$ICFLAGS%g
2707 s%@ILDFLAGS@%$ILDFLAGS%g
2708 s%@DEFINES@%$DEFINES%g
2709 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2710 s%@CXX@%$CXX%g
2711 s%@CXXCPP@%$CXXCPP%g
2712 s%@YACC@%$YACC%g
2713 s%@BISON@%$BISON%g
2714 s%@FLEX@%$FLEX%g
2715 s%@AR@%$AR%g
2716 s%@RANLIB@%$RANLIB%g
2717 s%@localedir@%$localedir%g
2718 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
2719 s%@MSGFMT@%$MSGFMT%g
2720 s%@STRIPROFF@%$STRIPROFF%g
2721 s%@YODL@%$YODL%g
2722 s%@YODL2HTML@%$YODL2HTML%g
2723 s%@YODL2LATEX@%$YODL2LATEX%g
2724 s%@YODL2MAN@%$YODL2MAN%g
2725 s%@YODL2MSLESS@%$YODL2MSLESS%g
2726 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
2727 s%@YODL2TXT@%$YODL2TXT%g
2728 s%@LIBOBJS@%$LIBOBJS%g
2729 s%@MAKEINFO@%$MAKEINFO%g
2730
2731 CEOF
2732 EOF
2733
2734 cat >> $CONFIG_STATUS <<\EOF
2735
2736 # Split the substitutions into bite-sized pieces for seds with
2737 # small command number limits, like on Digital OSF/1 and HP-UX.
2738 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2739 ac_file=1 # Number of current file.
2740 ac_beg=1 # First line for current file.
2741 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2742 ac_more_lines=:
2743 ac_sed_cmds=""
2744 while $ac_more_lines; do
2745   if test $ac_beg -gt 1; then
2746     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2747   else
2748     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2749   fi
2750   if test ! -s conftest.s$ac_file; then
2751     ac_more_lines=false
2752     rm -f conftest.s$ac_file
2753   else
2754     if test -z "$ac_sed_cmds"; then
2755       ac_sed_cmds="sed -f conftest.s$ac_file"
2756     else
2757       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2758     fi
2759     ac_file=`expr $ac_file + 1`
2760     ac_beg=$ac_end
2761     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2762   fi
2763 done
2764 if test -z "$ac_sed_cmds"; then
2765   ac_sed_cmds=cat
2766 fi
2767 EOF
2768
2769 cat >> $CONFIG_STATUS <<EOF
2770
2771 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
2772 EOF
2773 cat >> $CONFIG_STATUS <<\EOF
2774 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2775   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2776   case "$ac_file" in
2777   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2778        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2779   *) ac_file_in="${ac_file}.in" ;;
2780   esac
2781
2782   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2783
2784   # Remove last slash and all that follows it.  Not all systems have dirname.
2785   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2786   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2787     # The file is in a subdirectory.
2788     test ! -d "$ac_dir" && mkdir "$ac_dir"
2789     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2790     # A "../" for each directory in $ac_dir_suffix.
2791     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2792   else
2793     ac_dir_suffix= ac_dots=
2794   fi
2795
2796   case "$ac_given_srcdir" in
2797   .)  srcdir=.
2798       if test -z "$ac_dots"; then top_srcdir=.
2799       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2800   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2801   *) # Relative path.
2802     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2803     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2804   esac
2805
2806
2807   echo creating "$ac_file"
2808   rm -f "$ac_file"
2809   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2810   case "$ac_file" in
2811   *Makefile*) ac_comsub="1i\\
2812 # $configure_input" ;;
2813   *) ac_comsub= ;;
2814   esac
2815
2816   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2817   sed -e "$ac_comsub
2818 s%@configure_input@%$configure_input%g
2819 s%@srcdir@%$srcdir%g
2820 s%@top_srcdir@%$top_srcdir%g
2821 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2822 fi; done
2823 rm -f conftest.s*
2824
2825 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2826 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2827 #
2828 # ac_d sets the value in "#define NAME VALUE" lines.
2829 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2830 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2831 ac_dC='\3'
2832 ac_dD='%g'
2833 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2834 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2835 ac_uB='\([      ]\)%\1#\2define\3'
2836 ac_uC=' '
2837 ac_uD='\4%g'
2838 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2839 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2840 ac_eB='$%\1#\2define\3'
2841 ac_eC=' '
2842 ac_eD='%g'
2843
2844 if test "${CONFIG_HEADERS+set}" != set; then
2845 EOF
2846 cat >> $CONFIG_STATUS <<EOF
2847   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
2848 EOF
2849 cat >> $CONFIG_STATUS <<\EOF
2850 fi
2851 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2852   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2853   case "$ac_file" in
2854   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2855        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2856   *) ac_file_in="${ac_file}.in" ;;
2857   esac
2858
2859   echo creating $ac_file
2860
2861   rm -f conftest.frag conftest.in conftest.out
2862   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2863   cat $ac_file_inputs > conftest.in
2864
2865 EOF
2866
2867 # Transform confdefs.h into a sed script conftest.vals that substitutes
2868 # the proper values into config.h.in to produce config.h.  And first:
2869 # Protect against being on the right side of a sed subst in config.status.
2870 # Protect against being in an unquoted here document in config.status.
2871 rm -f conftest.vals
2872 cat > conftest.hdr <<\EOF
2873 s/[\\&%]/\\&/g
2874 s%[\\$`]%\\&%g
2875 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2876 s%ac_d%ac_u%gp
2877 s%ac_u%ac_e%gp
2878 EOF
2879 sed -n -f conftest.hdr confdefs.h > conftest.vals
2880 rm -f conftest.hdr
2881
2882 # This sed command replaces #undef with comments.  This is necessary, for
2883 # example, in the case of _POSIX_SOURCE, which is predefined and required
2884 # on some systems where configure will not decide to define it.
2885 cat >> conftest.vals <<\EOF
2886 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2887 EOF
2888
2889 # Break up conftest.vals because some shells have a limit on
2890 # the size of here documents, and old seds have small limits too.
2891
2892 rm -f conftest.tail
2893 while :
2894 do
2895   ac_lines=`grep -c . conftest.vals`
2896   # grep -c gives empty output for an empty file on some AIX systems.
2897   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2898   # Write a limited-size here document to conftest.frag.
2899   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2900   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2901   echo 'CEOF
2902   sed -f conftest.frag conftest.in > conftest.out
2903   rm -f conftest.in
2904   mv conftest.out conftest.in
2905 ' >> $CONFIG_STATUS
2906   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2907   rm -f conftest.vals
2908   mv conftest.tail conftest.vals
2909 done
2910 rm -f conftest.vals
2911
2912 cat >> $CONFIG_STATUS <<\EOF
2913   rm -f conftest.frag conftest.h
2914   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2915   cat conftest.in >> conftest.h
2916   rm -f conftest.in
2917   if cmp -s $ac_file conftest.h 2>/dev/null; then
2918     echo "$ac_file is unchanged"
2919     rm -f conftest.h
2920   else
2921     # Remove last slash and all that follows it.  Not all systems have dirname.
2922       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2923       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2924       # The file is in a subdirectory.
2925       test ! -d "$ac_dir" && mkdir "$ac_dir"
2926     fi
2927     rm -f $ac_file
2928     mv conftest.h $ac_file
2929   fi
2930 fi; done
2931
2932 EOF
2933 cat >> $CONFIG_STATUS <<EOF
2934
2935 EOF
2936 cat >> $CONFIG_STATUS <<\EOF
2937
2938 exit 0
2939 EOF
2940 chmod +x $CONFIG_STATUS
2941 rm -fr confdefs* $ac_clean_files
2942 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2943
2944 if test "$no_recursion" != yes; then
2945
2946   # Remove --cache-file and --srcdir arguments so they do not pile up.
2947   ac_sub_configure_args=
2948   ac_prev=
2949   for ac_arg in $ac_configure_args; do
2950     if test -n "$ac_prev"; then
2951       ac_prev=
2952       continue
2953     fi
2954     case "$ac_arg" in
2955     -cache-file | --cache-file | --cache-fil | --cache-fi \
2956     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2957       ac_prev=cache_file ;;
2958     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2959     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2960       ;;
2961     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2962       ac_prev=srcdir ;;
2963     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2964       ;;
2965     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2966     esac
2967   done
2968
2969   for ac_config_dir in stepmake; do
2970
2971     # Do not complain, so a configure script can configure whichever
2972     # parts of a large source tree are present.
2973     if test ! -d $srcdir/$ac_config_dir; then
2974       continue
2975     fi
2976
2977     echo configuring in $ac_config_dir
2978
2979     case "$srcdir" in
2980     .) ;;
2981     *)
2982       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2983       else
2984         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2985       fi
2986       ;;
2987     esac
2988
2989     ac_popdir=`pwd`
2990     cd $ac_config_dir
2991
2992       # A "../" for each directory in /$ac_config_dir.
2993       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2994
2995     case "$srcdir" in
2996     .) # No --srcdir option.  We are building in place.
2997       ac_sub_srcdir=$srcdir ;;
2998     /*) # Absolute path.
2999       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3000     *) # Relative path.
3001       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3002     esac
3003
3004     # Check for guested configure; otherwise get Cygnus style configure.
3005     if test -f $ac_sub_srcdir/configure; then
3006       ac_sub_configure=$ac_sub_srcdir/configure
3007     elif test -f $ac_sub_srcdir/configure.in; then
3008       ac_sub_configure=$ac_configure
3009     else
3010       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3011       ac_sub_configure=
3012     fi
3013
3014     # The recursion is here.
3015     if test -n "$ac_sub_configure"; then
3016
3017       # Make the cache file name correct relative to the subdirectory.
3018       case "$cache_file" in
3019       /*) ac_sub_cache_file=$cache_file ;;
3020       *) # Relative path.
3021         ac_sub_cache_file="$ac_dots$cache_file" ;;
3022       esac
3023
3024       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3025       # The eval makes quoting arguments work.
3026       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3027       then :
3028       else
3029         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3030       fi
3031     fi
3032
3033     cd $ac_popdir
3034   done
3035 fi
3036
3037
3038     rm -f GNUmakefile
3039     cp make/toplevel.make.in ./GNUmakefile
3040     chmod 444 GNUmakefile
3041
3042