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