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