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