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