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