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