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