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