]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.1.0
[lilypond.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   enable-printing         turn on debug printing"
16 ac_help="$ac_help
17   enable-checking        set runtime checks (assert calls). Default: on"
18 ac_help="$ac_help
19   enable-debugging       set debug info. Default: on"
20 ac_help="$ac_help
21   enable-optimise         use maximal speed optimisations. Default: off"
22 ac_help="$ac_help
23   enable-profiling        compile with gprof support. Default: off"
24 ac_help="$ac_help
25   mingw-prefix=DIR        set the mingw32 directory (standalone windows32 exes)"
26 ac_help="$ac_help
27   tex-prefix=DIR          set the tex-directory to find TeX subdirectories. (default: PREFIX)"
28 ac_help="$ac_help
29   tex-dir=DIR             set the directory to put LilyPond TeX files in. "
30 ac_help="$ac_help
31   mf-dir=DIR              set the directory to put LilyPond MetaFont files in."
32
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
36 build=NONE
37 cache_file=./config.cache
38 exec_prefix=NONE
39 host=NONE
40 no_create=
41 nonopt=NONE
42 no_recursion=
43 prefix=NONE
44 program_prefix=NONE
45 program_suffix=NONE
46 program_transform_name=s,x,x,
47 silent=
48 site=
49 srcdir=
50 target=NONE
51 verbose=
52 x_includes=NONE
53 x_libraries=NONE
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
66
67 # Initialize some other variables.
68 subdirs=
69 MFLAGS= MAKEFLAGS=
70 # Maximum number of lines to put in a shell here document.
71 ac_max_here_lines=12
72
73 ac_prev=
74 for ac_option
75 do
76
77   # If the previous option needs an argument, assign it.
78   if test -n "$ac_prev"; then
79     eval "$ac_prev=\$ac_option"
80     ac_prev=
81     continue
82   fi
83
84   case "$ac_option" in
85   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86   *) ac_optarg= ;;
87   esac
88
89   # Accept the important Cygnus configure options, so we can diagnose typos.
90
91   case "$ac_option" in
92
93   -bindir | --bindir | --bindi | --bind | --bin | --bi)
94     ac_prev=bindir ;;
95   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96     bindir="$ac_optarg" ;;
97
98   -build | --build | --buil | --bui | --bu)
99     ac_prev=build ;;
100   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101     build="$ac_optarg" ;;
102
103   -cache-file | --cache-file | --cache-fil | --cache-fi \
104   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105     ac_prev=cache_file ;;
106   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108     cache_file="$ac_optarg" ;;
109
110   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111     ac_prev=datadir ;;
112   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113   | --da=*)
114     datadir="$ac_optarg" ;;
115
116   -disable-* | --disable-*)
117     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118     # Reject names that are not valid shell variable names.
119     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121     fi
122     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123     eval "enable_${ac_feature}=no" ;;
124
125   -enable-* | --enable-*)
126     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127     # Reject names that are not valid shell variable names.
128     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130     fi
131     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132     case "$ac_option" in
133       *=*) ;;
134       *) ac_optarg=yes ;;
135     esac
136     eval "enable_${ac_feature}='$ac_optarg'" ;;
137
138   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140   | --exec | --exe | --ex)
141     ac_prev=exec_prefix ;;
142   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144   | --exec=* | --exe=* | --ex=*)
145     exec_prefix="$ac_optarg" ;;
146
147   -gas | --gas | --ga | --g)
148     # Obsolete; use --with-gas.
149     with_gas=yes ;;
150
151   -help | --help | --hel | --he)
152     # Omit some internal or obsolete options to make the list less imposing.
153     # This message is too long to be a string in the A/UX 3.1 sh.
154     cat << EOF
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
157 Configuration:
158   --cache-file=FILE       cache test results in FILE
159   --help                  print this message
160   --no-create             do not create output files
161   --quiet, --silent       do not print \`checking...' messages
162   --version               print the version of autoconf that created configure
163 Directory and file names:
164   --prefix=PREFIX         install architecture-independent files in PREFIX
165                           [$ac_default_prefix]
166   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
167                           [same as prefix]
168   --bindir=DIR            user executables in DIR [EPREFIX/bin]
169   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
170   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
171   --datadir=DIR           read-only architecture-independent data in DIR
172                           [PREFIX/share]
173   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
174   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
175                           [PREFIX/com]
176   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
177   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
178   --includedir=DIR        C header files in DIR [PREFIX/include]
179   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
180   --infodir=DIR           info documentation in DIR [PREFIX/info]
181   --mandir=DIR            man documentation in DIR [PREFIX/man]
182   --srcdir=DIR            find the sources in DIR [configure dir or ..]
183   --program-prefix=PREFIX prepend PREFIX to installed program names
184   --program-suffix=SUFFIX append SUFFIX to installed program names
185   --program-transform-name=PROGRAM
186                           run sed PROGRAM on installed program names
187 EOF
188     cat << EOF
189 Host type:
190   --build=BUILD           configure for building on BUILD [BUILD=HOST]
191   --host=HOST             configure for HOST [guessed]
192   --target=TARGET         configure for TARGET [TARGET=HOST]
193 Features and packages:
194   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
195   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
196   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
197   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
198   --x-includes=DIR        X include files are in DIR
199   --x-libraries=DIR       X library files are in DIR
200 EOF
201     if test -n "$ac_help"; then
202       echo "--enable and --with options recognized:$ac_help"
203     fi
204     exit 0 ;;
205
206   -host | --host | --hos | --ho)
207     ac_prev=host ;;
208   -host=* | --host=* | --hos=* | --ho=*)
209     host="$ac_optarg" ;;
210
211   -includedir | --includedir | --includedi | --included | --include \
212   | --includ | --inclu | --incl | --inc)
213     ac_prev=includedir ;;
214   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215   | --includ=* | --inclu=* | --incl=* | --inc=*)
216     includedir="$ac_optarg" ;;
217
218   -infodir | --infodir | --infodi | --infod | --info | --inf)
219     ac_prev=infodir ;;
220   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221     infodir="$ac_optarg" ;;
222
223   -libdir | --libdir | --libdi | --libd)
224     ac_prev=libdir ;;
225   -libdir=* | --libdir=* | --libdi=* | --libd=*)
226     libdir="$ac_optarg" ;;
227
228   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229   | --libexe | --libex | --libe)
230     ac_prev=libexecdir ;;
231   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232   | --libexe=* | --libex=* | --libe=*)
233     libexecdir="$ac_optarg" ;;
234
235   -localstatedir | --localstatedir | --localstatedi | --localstated \
236   | --localstate | --localstat | --localsta | --localst \
237   | --locals | --local | --loca | --loc | --lo)
238     ac_prev=localstatedir ;;
239   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242     localstatedir="$ac_optarg" ;;
243
244   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245     ac_prev=mandir ;;
246   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247     mandir="$ac_optarg" ;;
248
249   -nfp | --nfp | --nf)
250     # Obsolete; use --without-fp.
251     with_fp=no ;;
252
253   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254   | --no-cr | --no-c)
255     no_create=yes ;;
256
257   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259     no_recursion=yes ;;
260
261   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263   | --oldin | --oldi | --old | --ol | --o)
264     ac_prev=oldincludedir ;;
265   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268     oldincludedir="$ac_optarg" ;;
269
270   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271     ac_prev=prefix ;;
272   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273     prefix="$ac_optarg" ;;
274
275   -program-prefix | --program-prefix | --program-prefi | --program-pref \
276   | --program-pre | --program-pr | --program-p)
277     ac_prev=program_prefix ;;
278   -program-prefix=* | --program-prefix=* | --program-prefi=* \
279   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280     program_prefix="$ac_optarg" ;;
281
282   -program-suffix | --program-suffix | --program-suffi | --program-suff \
283   | --program-suf | --program-su | --program-s)
284     ac_prev=program_suffix ;;
285   -program-suffix=* | --program-suffix=* | --program-suffi=* \
286   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287     program_suffix="$ac_optarg" ;;
288
289   -program-transform-name | --program-transform-name \
290   | --program-transform-nam | --program-transform-na \
291   | --program-transform-n | --program-transform- \
292   | --program-transform | --program-transfor \
293   | --program-transfo | --program-transf \
294   | --program-trans | --program-tran \
295   | --progr-tra | --program-tr | --program-t)
296     ac_prev=program_transform_name ;;
297   -program-transform-name=* | --program-transform-name=* \
298   | --program-transform-nam=* | --program-transform-na=* \
299   | --program-transform-n=* | --program-transform-=* \
300   | --program-transform=* | --program-transfor=* \
301   | --program-transfo=* | --program-transf=* \
302   | --program-trans=* | --program-tran=* \
303   | --progr-tra=* | --program-tr=* | --program-t=*)
304     program_transform_name="$ac_optarg" ;;
305
306   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307   | -silent | --silent | --silen | --sile | --sil)
308     silent=yes ;;
309
310   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311     ac_prev=sbindir ;;
312   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313   | --sbi=* | --sb=*)
314     sbindir="$ac_optarg" ;;
315
316   -sharedstatedir | --sharedstatedir | --sharedstatedi \
317   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318   | --sharedst | --shareds | --shared | --share | --shar \
319   | --sha | --sh)
320     ac_prev=sharedstatedir ;;
321   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324   | --sha=* | --sh=*)
325     sharedstatedir="$ac_optarg" ;;
326
327   -site | --site | --sit)
328     ac_prev=site ;;
329   -site=* | --site=* | --sit=*)
330     site="$ac_optarg" ;;
331
332   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333     ac_prev=srcdir ;;
334   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335     srcdir="$ac_optarg" ;;
336
337   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338   | --syscon | --sysco | --sysc | --sys | --sy)
339     ac_prev=sysconfdir ;;
340   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342     sysconfdir="$ac_optarg" ;;
343
344   -target | --target | --targe | --targ | --tar | --ta | --t)
345     ac_prev=target ;;
346   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347     target="$ac_optarg" ;;
348
349   -v | -verbose | --verbose | --verbos | --verbo | --verb)
350     verbose=yes ;;
351
352   -version | --version | --versio | --versi | --vers)
353     echo "configure generated by autoconf version 2.12"
354     exit 0 ;;
355
356   -with-* | --with-*)
357     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358     # Reject names that are not valid shell variable names.
359     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361     fi
362     ac_package=`echo $ac_package| sed 's/-/_/g'`
363     case "$ac_option" in
364       *=*) ;;
365       *) ac_optarg=yes ;;
366     esac
367     eval "with_${ac_package}='$ac_optarg'" ;;
368
369   -without-* | --without-*)
370     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371     # Reject names that are not valid shell variable names.
372     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374     fi
375     ac_package=`echo $ac_package| sed 's/-/_/g'`
376     eval "with_${ac_package}=no" ;;
377
378   --x)
379     # Obsolete; use --with-x.
380     with_x=yes ;;
381
382   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383   | --x-incl | --x-inc | --x-in | --x-i)
384     ac_prev=x_includes ;;
385   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387     x_includes="$ac_optarg" ;;
388
389   -x-libraries | --x-libraries | --x-librarie | --x-librari \
390   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391     ac_prev=x_libraries ;;
392   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394     x_libraries="$ac_optarg" ;;
395
396   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397     ;;
398
399   *)
400     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401       echo "configure: warning: $ac_option: invalid host type" 1>&2
402     fi
403     if test "x$nonopt" != xNONE; then
404       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405     fi
406     nonopt="$ac_option"
407     ;;
408
409   esac
410 done
411
412 if test -n "$ac_prev"; then
413   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 fi
415
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
418 # File descriptor usage:
419 # 0 standard input
420 # 1 file creation
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
427   exec 6>/dev/null
428 else
429   exec 6>&1
430 fi
431 exec 5>./config.log
432
433 echo "\
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
436 " 1>&5
437
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
440 ac_configure_args=
441 for ac_arg
442 do
443   case "$ac_arg" in
444   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445   | --no-cr | --no-c) ;;
446   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451   esac
452 done
453
454 # NLS nuisances.
455 # Only set these to C if already set.  These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
463
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 echo > confdefs.h
468
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=flower/choleski.cc
472
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475   ac_srcdir_defaulted=yes
476   # Try the directory containing this script, then its parent.
477   ac_prog=$0
478   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480   srcdir=$ac_confdir
481   if test ! -r $srcdir/$ac_unique_file; then
482     srcdir=..
483   fi
484 else
485   ac_srcdir_defaulted=no
486 fi
487 if test ! -r $srcdir/$ac_unique_file; then
488   if test "$ac_srcdir_defaulted" = yes; then
489     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490   else
491     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492   fi
493 fi
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498   if test "x$prefix" != xNONE; then
499     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500   else
501     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502   fi
503 fi
504 for ac_site_file in $CONFIG_SITE; do
505   if test -r "$ac_site_file"; then
506     echo "loading site script $ac_site_file"
507     . "$ac_site_file"
508   fi
509 done
510
511 if test -r "$cache_file"; then
512   echo "loading cache $cache_file"
513   . $cache_file
514 else
515   echo "creating cache $cache_file"
516   > $cache_file
517 fi
518
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
525
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529     ac_n= ac_c='
530 ' ac_t='        '
531   else
532     ac_n=-n ac_c= ac_t=
533   fi
534 else
535   ac_n= ac_c='\c' ac_t=
536 fi
537
538
539
540
541 # if given here, these vars are initted at the checking point.
542 if test x$host = xNONE; then
543     buildprefix=.
544 else
545     buildprefix="$host-build-dir"
546     mkdir $buildprefix;
547     for a in `find -type d -and -not -name '*-build-dir'`; do
548         mkdir $buildprefix/$a;
549     done
550 fi
551 printing_b=no
552 checking_b=yes
553 debug_b=yes
554 optimise_b=no
555 profile_b=no
556 warn_b=no    
557 ac_ext=C
558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
559 ac_cpp='$CXXCPP $CPPFLAGS'
560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
561 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
562 cross_compiling=$ac_cv_prog_cxx_cross
563
564
565 # Check whether --enable-printing or --disable-printing was given.
566 if test "${enable_printing+set}" = set; then
567   enableval="$enable_printing"
568   printing_b=$enableval
569 fi
570
571
572         
573 # Check whether --enable-checking or --disable-checking was given.
574 if test "${enable_checking+set}" = set; then
575   enableval="$enable_checking"
576   checking_b=$enableval 
577 fi
578
579
580 # Check whether --enable-debugging or --disable-debugging was given.
581 if test "${enable_debugging+set}" = set; then
582   enableval="$enable_debugging"
583   debug_b=$enableval
584 fi
585
586
587 # Check whether --enable-optimise or --disable-optimise was given.
588 if test "${enable_optimise+set}" = set; then
589   enableval="$enable_optimise"
590   optimise_b=$enableval
591 fi
592
593     
594 # Check whether --enable-profiling or --disable-profiling was given.
595 if test "${enable_profiling+set}" = set; then
596   enableval="$enable_profiling"
597   profile_b=$enableval
598 fi
599
600     
601 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
602 if test "${enable_mingw_prefix+set}" = set; then
603   enableval="$enable_mingw_prefix"
604   MINGWPREFIX=$enableval
605 else
606   MINGWPREFIX=no
607 fi
608
609     
610 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
611 if test "${enable_tex_prefix+set}" = set; then
612   enableval="$enable_tex_prefix"
613   TEXPREFIX=$enableval
614 else
615   TEXPREFIX=auto 
616 fi
617
618     
619 # Check whether --enable-tex-dir or --disable-tex-dir was given.
620 if test "${enable_tex_dir+set}" = set; then
621   enableval="$enable_tex_dir"
622   TEXDIR=$enableval
623 else
624   TEXDIR=auto 
625 fi
626
627
628 # Check whether --enable-mf-dir or --disable-mf-dir was given.
629 if test "${enable_mf_dir+set}" = set; then
630   enableval="$enable_mf_dir"
631   MFDIR=$enableval
632 else
633   MFDIR=auto 
634 fi
635
636
637 if test $profile_b = yes; then
638     EXTRA_LIBES="-pg"
639     DEFINES="$DEFINES -pg"
640 fi
641     
642 if test $printing_b = no; then
643     DEFINES="$DEFINES -DNPRINT=1"
644 fi
645     
646 if test $debug_b = yes; then    
647     DEFINES="$DEFINES -g"
648 fi
649 if test $checking_b = no; then
650     DEFINES="$DEFINES -DNDEBUG=1"
651 fi
652
653 # however, C++ support in mingw32 v 0.1.4 is still flaky
654 if test x$MINGWPREFIX != xno; then 
655     ICFLAGS="-I$MINGWPREFIX/include"
656     ILDFLAGS="-$MINGWPREFIX/lib"
657 fi
658
659 if test $optimise_b = yes; then
660     DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
661 fi
662
663 AUTOHEADER="This file was automatically generated by configure"
664 CPPFLAGS=${CPPFLAGS:-""}        # we don't want -g -O junk
665 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
666
667 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
668 do
669 # Extract the first word of "$ac_prog", so it can be a program name with args.
670 set dummy $ac_prog; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
674   echo $ac_n "(cached) $ac_c" 1>&6
675 else
676   if test -n "$CXX"; then
677   ac_cv_prog_CXX="$CXX" # Let the user override the test.
678 else
679   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
680   for ac_dir in $PATH; do
681     test -z "$ac_dir" && ac_dir=.
682     if test -f $ac_dir/$ac_word; then
683       ac_cv_prog_CXX="$ac_prog"
684       break
685     fi
686   done
687   IFS="$ac_save_ifs"
688 fi
689 fi
690 CXX="$ac_cv_prog_CXX"
691 if test -n "$CXX"; then
692   echo "$ac_t""$CXX" 1>&6
693 else
694   echo "$ac_t""no" 1>&6
695 fi
696
697 test -n "$CXX" && break
698 done
699 test -n "$CXX" || CXX="gcc"
700
701
702 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
704
705 ac_ext=C
706 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
707 ac_cpp='$CXXCPP $CPPFLAGS'
708 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
709 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
710 cross_compiling=$ac_cv_prog_cxx_cross
711
712 cat > conftest.$ac_ext <<EOF
713 #line 714 "configure"
714 #include "confdefs.h"
715 main(){return(0);}
716 EOF
717 if { (eval echo configure:718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
718   ac_cv_prog_cxx_works=yes
719   # If we can't run a trivial program, we are probably using a cross compiler.
720   if (./conftest; exit) 2>/dev/null; then
721     ac_cv_prog_cxx_cross=no
722   else
723     ac_cv_prog_cxx_cross=yes
724   fi
725 else
726   echo "configure: failed program was:" >&5
727   cat conftest.$ac_ext >&5
728   ac_cv_prog_cxx_works=no
729 fi
730 rm -fr conftest*
731
732 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
733 if test $ac_cv_prog_cxx_works = no; then
734   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
735 fi
736 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
737 echo "configure:738: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
738 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
739 cross_compiling=$ac_cv_prog_cxx_cross
740
741 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
742 echo "configure:743: checking whether we are using GNU C++" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
744   echo $ac_n "(cached) $ac_c" 1>&6
745 else
746   cat > conftest.C <<EOF
747 #ifdef __GNUC__
748   yes;
749 #endif
750 EOF
751 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
752   ac_cv_prog_gxx=yes
753 else
754   ac_cv_prog_gxx=no
755 fi
756 fi
757
758 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
759
760 if test $ac_cv_prog_gxx = yes; then
761   GXX=yes
762   ac_test_CXXFLAGS="${CXXFLAGS+set}"
763   ac_save_CXXFLAGS="$CXXFLAGS"
764   CXXFLAGS=
765   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
766 echo "configure:767: checking whether ${CXX-g++} accepts -g" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
768   echo $ac_n "(cached) $ac_c" 1>&6
769 else
770   echo 'void f(){}' > conftest.cc
771 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
772   ac_cv_prog_cxx_g=yes
773 else
774   ac_cv_prog_cxx_g=no
775 fi
776 rm -f conftest*
777
778 fi
779
780 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
781   if test "$ac_test_CXXFLAGS" = set; then
782     CXXFLAGS="$ac_save_CXXFLAGS"
783   elif test $ac_cv_prog_cxx_g = yes; then
784     CXXFLAGS="-g -O2"
785   else
786     CXXFLAGS="-O2"
787   fi
788 else
789   GXX=
790   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
791 fi
792
793 # Extract the first word of "ranlib", so it can be a program name with args.
794 set dummy ranlib; ac_word=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
798   echo $ac_n "(cached) $ac_c" 1>&6
799 else
800   if test -n "$RANLIB"; then
801   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
802 else
803   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
804   for ac_dir in $PATH; do
805     test -z "$ac_dir" && ac_dir=.
806     if test -f $ac_dir/$ac_word; then
807       ac_cv_prog_RANLIB="ranlib"
808       break
809     fi
810   done
811   IFS="$ac_save_ifs"
812   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
813 fi
814 fi
815 RANLIB="$ac_cv_prog_RANLIB"
816 if test -n "$RANLIB"; then
817   echo "$ac_t""$RANLIB" 1>&6
818 else
819   echo "$ac_t""no" 1>&6
820 fi
821
822 ac_aux_dir=
823 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
824   if test -f $ac_dir/install-sh; then
825     ac_aux_dir=$ac_dir
826     ac_install_sh="$ac_aux_dir/install-sh -c"
827     break
828   elif test -f $ac_dir/install.sh; then
829     ac_aux_dir=$ac_dir
830     ac_install_sh="$ac_aux_dir/install.sh -c"
831     break
832   fi
833 done
834 if test -z "$ac_aux_dir"; then
835   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
836 fi
837 ac_config_guess=$ac_aux_dir/config.guess
838 ac_config_sub=$ac_aux_dir/config.sub
839 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
840
841 # Find a good install program.  We prefer a C program (faster),
842 # so one script is as good as another.  But avoid the broken or
843 # incompatible versions:
844 # SysV /etc/install, /usr/sbin/install
845 # SunOS /usr/etc/install
846 # IRIX /sbin/install
847 # AIX /bin/install
848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
850 # ./install, which can be erroneously created by make from ./install.sh.
851 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
852 echo "configure:853: checking for a BSD compatible install" >&5
853 if test -z "$INSTALL"; then
854 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
855   echo $ac_n "(cached) $ac_c" 1>&6
856 else
857     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
858   for ac_dir in $PATH; do
859     # Account for people who put trailing slashes in PATH elements.
860     case "$ac_dir/" in
861     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
862     *)
863       # OSF1 and SCO ODT 3.0 have their own names for install.
864       for ac_prog in ginstall installbsd scoinst install; do
865         if test -f $ac_dir/$ac_prog; then
866           if test $ac_prog = install &&
867             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
868             # AIX install.  It has an incompatible calling convention.
869             # OSF/1 installbsd also uses dspmsg, but is usable.
870             :
871           else
872             ac_cv_path_install="$ac_dir/$ac_prog -c"
873             break 2
874           fi
875         fi
876       done
877       ;;
878     esac
879   done
880   IFS="$ac_save_IFS"
881
882 fi
883   if test "${ac_cv_path_install+set}" = set; then
884     INSTALL="$ac_cv_path_install"
885   else
886     # As a last resort, use the slow shell script.  We don't cache a
887     # path for INSTALL within a source directory, because that will
888     # break other packages using the cache if that directory is
889     # removed, or if the path is relative.
890     INSTALL="$ac_install_sh"
891   fi
892 fi
893 echo "$ac_t""$INSTALL" 1>&6
894
895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
896 # It thinks the first close brace ends the variable substitution.
897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
898
899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
900
901 for ac_prog in tar
902 do
903 # Extract the first word of "$ac_prog", so it can be a program name with args.
904 set dummy $ac_prog; ac_word=$2
905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
906 echo "configure:907: checking for $ac_word" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
908   echo $ac_n "(cached) $ac_c" 1>&6
909 else
910   if test -n "$TAR"; then
911   ac_cv_prog_TAR="$TAR" # Let the user override the test.
912 else
913   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
914   for ac_dir in $PATH; do
915     test -z "$ac_dir" && ac_dir=.
916     if test -f $ac_dir/$ac_word; then
917       ac_cv_prog_TAR="$ac_prog"
918       break
919     fi
920   done
921   IFS="$ac_save_ifs"
922 fi
923 fi
924 TAR="$ac_cv_prog_TAR"
925 if test -n "$TAR"; then
926   echo "$ac_t""$TAR" 1>&6
927 else
928   echo "$ac_t""no" 1>&6
929 fi
930
931 test -n "$TAR" && break
932 done
933 test -n "$TAR" || TAR="error"
934
935 for ac_prog in find
936 do
937 # Extract the first word of "$ac_prog", so it can be a program name with args.
938 set dummy $ac_prog; ac_word=$2
939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
940 echo "configure:941: checking for $ac_word" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
942   echo $ac_n "(cached) $ac_c" 1>&6
943 else
944   if test -n "$FIND"; then
945   ac_cv_prog_FIND="$FIND" # Let the user override the test.
946 else
947   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
948   for ac_dir in $PATH; do
949     test -z "$ac_dir" && ac_dir=.
950     if test -f $ac_dir/$ac_word; then
951       ac_cv_prog_FIND="$ac_prog"
952       break
953     fi
954   done
955   IFS="$ac_save_ifs"
956 fi
957 fi
958 FIND="$ac_cv_prog_FIND"
959 if test -n "$FIND"; then
960   echo "$ac_t""$FIND" 1>&6
961 else
962   echo "$ac_t""no" 1>&6
963 fi
964
965 test -n "$FIND" && break
966 done
967 test -n "$FIND" || FIND="error"
968
969
970 if test FIND = error; then
971    
972     echo "configure: warning: Couldn't find \`find'.  Please use --enable-tex-dir" 1>&2
973     warn_b=yes
974
975 fi
976     
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993 for ac_prog in bison
994 do
995 # Extract the first word of "$ac_prog", so it can be a program name with args.
996 set dummy $ac_prog; ac_word=$2
997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998 echo "configure:999: checking for $ac_word" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1000   echo $ac_n "(cached) $ac_c" 1>&6
1001 else
1002   if test -n "$BISON"; then
1003   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1004 else
1005   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1006   for ac_dir in $PATH; do
1007     test -z "$ac_dir" && ac_dir=.
1008     if test -f $ac_dir/$ac_word; then
1009       ac_cv_prog_BISON="$ac_prog"
1010       break
1011     fi
1012   done
1013   IFS="$ac_save_ifs"
1014 fi
1015 fi
1016 BISON="$ac_cv_prog_BISON"
1017 if test -n "$BISON"; then
1018   echo "$ac_t""$BISON" 1>&6
1019 else
1020   echo "$ac_t""no" 1>&6
1021 fi
1022
1023 test -n "$BISON" && break
1024 done
1025 test -n "$BISON" || BISON="error"
1026
1027 for ac_prog in flex
1028 do
1029 # Extract the first word of "$ac_prog", so it can be a program name with args.
1030 set dummy $ac_prog; ac_word=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1034   echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036   if test -n "$FLEX"; then
1037   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1038 else
1039   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1040   for ac_dir in $PATH; do
1041     test -z "$ac_dir" && ac_dir=.
1042     if test -f $ac_dir/$ac_word; then
1043       ac_cv_prog_FLEX="$ac_prog"
1044       break
1045     fi
1046   done
1047   IFS="$ac_save_ifs"
1048 fi
1049 fi
1050 FLEX="$ac_cv_prog_FLEX"
1051 if test -n "$FLEX"; then
1052   echo "$ac_t""$FLEX" 1>&6
1053 else
1054   echo "$ac_t""no" 1>&6
1055 fi
1056
1057 test -n "$FLEX" && break
1058 done
1059 test -n "$FLEX" || FLEX="error"
1060
1061 for ac_prog in make
1062 do
1063 # Extract the first word of "$ac_prog", so it can be a program name with args.
1064 set dummy $ac_prog; 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_prog_MAKE'+set}'`\" = set"; then
1068   echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070   if test -n "$MAKE"; then
1071   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1072 else
1073   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1074   for ac_dir in $PATH; do
1075     test -z "$ac_dir" && ac_dir=.
1076     if test -f $ac_dir/$ac_word; then
1077       ac_cv_prog_MAKE="$ac_prog"
1078       break
1079     fi
1080   done
1081   IFS="$ac_save_ifs"
1082 fi
1083 fi
1084 MAKE="$ac_cv_prog_MAKE"
1085 if test -n "$MAKE"; then
1086   echo "$ac_t""$MAKE" 1>&6
1087 else
1088   echo "$ac_t""no" 1>&6
1089 fi
1090
1091 test -n "$MAKE" && break
1092 done
1093 test -n "$MAKE" || MAKE="error"
1094
1095 # Extract the first word of "perl", so it can be a program name with args.
1096 set dummy perl; ac_word=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1100   echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102   case "$PERL" in
1103   /*)
1104   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1105   ;;
1106   *)
1107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1108   for ac_dir in $PATH; do
1109     test -z "$ac_dir" && ac_dir=.
1110     if test -f $ac_dir/$ac_word; then
1111       ac_cv_path_PERL="$ac_dir/$ac_word"
1112       break
1113     fi
1114   done
1115   IFS="$ac_save_ifs"
1116   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
1117   ;;
1118 esac
1119 fi
1120 PERL="$ac_cv_path_PERL"
1121 if test -n "$PERL"; then
1122   echo "$ac_t""$PERL" 1>&6
1123 else
1124   echo "$ac_t""no" 1>&6
1125 fi
1126
1127 for ac_prog in pod2man
1128 do
1129 # Extract the first word of "$ac_prog", so it can be a program name with args.
1130 set dummy $ac_prog; ac_word=$2
1131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1132 echo "configure:1133: checking for $ac_word" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
1134   echo $ac_n "(cached) $ac_c" 1>&6
1135 else
1136   if test -n "$PODMAN"; then
1137   ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
1138 else
1139   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1140   for ac_dir in $PATH; do
1141     test -z "$ac_dir" && ac_dir=.
1142     if test -f $ac_dir/$ac_word; then
1143       ac_cv_prog_PODMAN="$ac_prog"
1144       break
1145     fi
1146   done
1147   IFS="$ac_save_ifs"
1148 fi
1149 fi
1150 PODMAN="$ac_cv_prog_PODMAN"
1151 if test -n "$PODMAN"; then
1152   echo "$ac_t""$PODMAN" 1>&6
1153 else
1154   echo "$ac_t""no" 1>&6
1155 fi
1156
1157 test -n "$PODMAN" && break
1158 done
1159 test -n "$PODMAN" || PODMAN="error"
1160
1161
1162
1163 if test "x$TEXPREFIX" = xauto ; then
1164     
1165     
1166
1167     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1168 echo "configure:1169: checking TeX/MF root dir directory" >&5    
1169
1170     find_root_prefix="$prefix"
1171     
1172
1173     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1174     find_texpostfix="";
1175     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1176         find_texprefix="$find_root_prefix$postfix"
1177         if test -d $find_texprefix; then
1178             find_texpostfix=$postfix
1179             break;
1180         fi
1181     done
1182     
1183     if test "x$find_texpostfix" = x; then
1184         find_texpostfix='/lib/texmf/tex'
1185         
1186     echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1187     warn_b=yes
1188
1189     fi
1190
1191     find_texprefix="$find_root_prefix/$find_texpostfix"
1192
1193     # only assign if variablename not empty
1194     if test x != "xTEXPREFIX"; then
1195         TEXPREFIX='${prefix}'/"$find_texpostfix"
1196     fi
1197     echo "$ac_t""$find_texprefix" 1>&6
1198
1199
1200 else
1201  find_texprefix=$TEXPREFIX
1202 fi
1203     
1204 if test "x$TEXDIR" = xauto ; then
1205     
1206     
1207     
1208     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
1209 echo "configure:1210: checking TeX input directory" >&5    
1210     find_dirdir=`(cd $find_texprefix; 
1211       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
1212     
1213
1214     if test "x$find_dirdir" = x; then
1215        find_dirdir="/tex";
1216        
1217     echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
1218     warn_b=yes
1219
1220         true
1221     fi
1222     TEXDIR=$find_dirdir
1223     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1224
1225     TEXDIR="$TEXPREFIX/$TEXDIR"
1226
1227 fi
1228
1229     
1230 if test $MAKE = "error" 
1231 then
1232         { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
1233 else
1234         $MAKE -v| grep GNU > /dev/null
1235         if test "$?" = 1
1236         then
1237             
1238     echo "configure: warning: Please install *GNU* make" 1>&2
1239     warn_b=yes
1240  
1241     fi 
1242 fi 
1243     
1244 if test $BISON = "error" 
1245 then
1246         
1247     echo "configure: warning: can't find bison. Please install Bison (1.25 or better)" 1>&2
1248     warn_b=yes
1249
1250 else
1251     bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1252     if test $bison_version -lt 25; then
1253         
1254     echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
1255     warn_b=yes
1256
1257     fi  
1258 fi
1259
1260 if test $PERL = "error" 
1261 then
1262         
1263     echo "configure: warning: can't find perl. You should install Perl (version 5 or better)" 1>&2
1264     warn_b=yes
1265
1266         PERL=/usr/bin/perl
1267 fi
1268
1269 if test $PODMAN = "error" 
1270 then
1271         
1272     echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
1273     warn_b=yes
1274
1275 fi
1276
1277 if test $FLEX = "error" 
1278 then
1279         
1280     echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1281     warn_b=yes
1282
1283 fi
1284
1285 if $CXX --version | grep '2\.7' > /dev/null
1286 then
1287         true
1288 else
1289         
1290     echo "configure: warning: can't find g++ 2.7" 1>&2
1291     warn_b=yes
1292
1293 fi
1294
1295 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1296 echo "configure:1297: checking how to run the C++ preprocessor" >&5
1297 if test -z "$CXXCPP"; then
1298 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1299   echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301   ac_ext=C
1302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1303 ac_cpp='$CXXCPP $CPPFLAGS'
1304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1305 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1306 cross_compiling=$ac_cv_prog_cxx_cross
1307   CXXCPP="${CXX-g++} -E"
1308   cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 #include <stdlib.h>
1312 EOF
1313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1314 { (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1315 ac_err=`grep -v '^ *+' conftest.out`
1316 if test -z "$ac_err"; then
1317   :
1318 else
1319   echo "$ac_err" >&5
1320   echo "configure: failed program was:" >&5
1321   cat conftest.$ac_ext >&5
1322   rm -rf conftest*
1323   CXXCPP=/lib/cpp
1324 fi
1325 rm -f conftest*
1326   ac_cv_prog_CXXCPP="$CXXCPP"
1327 fi
1328 fi
1329 CXXCPP="$ac_cv_prog_CXXCPP"
1330 echo "$ac_t""$CXXCPP" 1>&6
1331
1332 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1333 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1334 echo "configure:1335: checking for FlexLexer.h" >&5
1335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1336   echo $ac_n "(cached) $ac_c" 1>&6
1337 else
1338   cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1341 #include <FlexLexer.h>
1342 EOF
1343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1344 { (eval echo configure:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1345 ac_err=`grep -v '^ *+' conftest.out`
1346 if test -z "$ac_err"; then
1347   rm -rf conftest*
1348   eval "ac_cv_header_$ac_safe=yes"
1349 else
1350   echo "$ac_err" >&5
1351   echo "configure: failed program was:" >&5
1352   cat conftest.$ac_ext >&5
1353   rm -rf conftest*
1354   eval "ac_cv_header_$ac_safe=no"
1355 fi
1356 rm -f conftest*
1357 fi
1358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1359   echo "$ac_t""yes" 1>&6
1360   true
1361 else
1362   echo "$ac_t""no" 1>&6
1363
1364     echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1365     warn_b=yes
1366
1367 fi
1368
1369
1370 subdirs="flower"
1371
1372 trap '' 1 2 15
1373 cat > confcache <<\EOF
1374 # This file is a shell script that caches the results of configure
1375 # tests run on this system so they can be shared between configure
1376 # scripts and configure runs.  It is not useful on other systems.
1377 # If it contains results you don't want to keep, you may remove or edit it.
1378 #
1379 # By default, configure uses ./config.cache as the cache file,
1380 # creating it if it does not exist already.  You can give configure
1381 # the --cache-file=FILE option to use a different cache file; that is
1382 # what configure does when it calls configure scripts in
1383 # subdirectories, so they share the cache.
1384 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1385 # config.status only pays attention to the cache file if you give it the
1386 # --recheck option to rerun configure.
1387 #
1388 EOF
1389 # The following way of writing the cache mishandles newlines in values,
1390 # but we know of no workaround that is simple, portable, and efficient.
1391 # So, don't put newlines in cache variables' values.
1392 # Ultrix sh set writes to stderr and can't be redirected directly,
1393 # and sets the high bit in the cache file unless we assign to the vars.
1394 (set) 2>&1 |
1395   case `(ac_space=' '; set) 2>&1` in
1396   *ac_space=\ *)
1397     # `set' does not quote correctly, so add quotes (double-quote substitution
1398     # turns \\\\ into \\, and sed turns \\ into \).
1399     sed -n \
1400       -e "s/'/'\\\\''/g" \
1401       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1402     ;;
1403   *)
1404     # `set' quotes correctly as required by POSIX, so do not add quotes.
1405     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1406     ;;
1407   esac >> confcache
1408 if cmp -s $cache_file confcache; then
1409   :
1410 else
1411   if test -w $cache_file; then
1412     echo "updating cache $cache_file"
1413     cat confcache > $cache_file
1414   else
1415     echo "not updating unwritable cache $cache_file"
1416   fi
1417 fi
1418 rm -f confcache
1419
1420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1421
1422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1423 # Let make expand exec_prefix.
1424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1425
1426 # Any assignment to VPATH causes Sun make to only execute
1427 # the first set of double-colon rules, so remove it if not needed.
1428 # If there is a colon in the path, we need to keep it.
1429 if test "x$srcdir" = x.; then
1430   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1431 fi
1432
1433 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1434
1435 # Transform confdefs.h into DEFS.
1436 # Protect against shell expansion while executing Makefile rules.
1437 # Protect against Makefile macro expansion.
1438 cat > conftest.defs <<\EOF
1439 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1440 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1441 s%\[%\\&%g
1442 s%\]%\\&%g
1443 s%\$%$$%g
1444 EOF
1445 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1446 rm -f conftest.defs
1447
1448
1449 # Without the "./", some shells look in PATH for config.status.
1450 : ${CONFIG_STATUS=./config.status}
1451
1452 echo creating $CONFIG_STATUS
1453 rm -f $CONFIG_STATUS
1454 cat > $CONFIG_STATUS <<EOF
1455 #! /bin/sh
1456 # Generated automatically by configure.
1457 # Run this file to recreate the current configuration.
1458 # This directory was configured as follows,
1459 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1460 #
1461 # $0 $ac_configure_args
1462 #
1463 # Compiler output produced by configure, useful for debugging
1464 # configure, is in ./config.log if it exists.
1465
1466 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1467 for ac_option
1468 do
1469   case "\$ac_option" in
1470   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1471     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1472     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1473   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1474     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1475     exit 0 ;;
1476   -help | --help | --hel | --he | --h)
1477     echo "\$ac_cs_usage"; exit 0 ;;
1478   *) echo "\$ac_cs_usage"; exit 1 ;;
1479   esac
1480 done
1481
1482 ac_given_srcdir=$srcdir
1483 ac_given_INSTALL="$INSTALL"
1484
1485 trap 'rm -fr `echo "$buildprefix/make/out/Configure_variables.make:make/Configure_variables.make.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1486 EOF
1487 cat >> $CONFIG_STATUS <<EOF
1488
1489 # Protect against being on the right side of a sed subst in config.status.
1490 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1491  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1492 $ac_vpsub
1493 $extrasub
1494 s%@CFLAGS@%$CFLAGS%g
1495 s%@CPPFLAGS@%$CPPFLAGS%g
1496 s%@CXXFLAGS@%$CXXFLAGS%g
1497 s%@DEFS@%$DEFS%g
1498 s%@LDFLAGS@%$LDFLAGS%g
1499 s%@LIBS@%$LIBS%g
1500 s%@exec_prefix@%$exec_prefix%g
1501 s%@prefix@%$prefix%g
1502 s%@program_transform_name@%$program_transform_name%g
1503 s%@bindir@%$bindir%g
1504 s%@sbindir@%$sbindir%g
1505 s%@libexecdir@%$libexecdir%g
1506 s%@datadir@%$datadir%g
1507 s%@sysconfdir@%$sysconfdir%g
1508 s%@sharedstatedir@%$sharedstatedir%g
1509 s%@localstatedir@%$localstatedir%g
1510 s%@libdir@%$libdir%g
1511 s%@includedir@%$includedir%g
1512 s%@oldincludedir@%$oldincludedir%g
1513 s%@infodir@%$infodir%g
1514 s%@mandir@%$mandir%g
1515 s%@CXX@%$CXX%g
1516 s%@RANLIB@%$RANLIB%g
1517 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1518 s%@INSTALL_DATA@%$INSTALL_DATA%g
1519 s%@TAR@%$TAR%g
1520 s%@FIND@%$FIND%g
1521 s%@ICFLAGS@%$ICFLAGS%g
1522 s%@ILDFLAGS@%$ILDFLAGS%g
1523 s%@DEFINES@%$DEFINES%g
1524 s%@COMPILEINFO@%$COMPILEINFO%g
1525 s%@AUTOHEADER@%$AUTOHEADER%g
1526 s%@BISON@%$BISON%g
1527 s%@FLEX@%$FLEX%g
1528 s%@PERL@%$PERL%g
1529 s%@TEXPREFIX@%$TEXPREFIX%g
1530 s%@TEXDIR@%$TEXDIR%g
1531 s%@MFDIR@%$MFDIR%g
1532 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
1533 s%@MAKE@%$MAKE%g
1534 s%@PODMAN@%$PODMAN%g
1535 s%@CXXCPP@%$CXXCPP%g
1536 s%@subdirs@%$subdirs%g
1537
1538 CEOF
1539 EOF
1540
1541 cat >> $CONFIG_STATUS <<\EOF
1542
1543 # Split the substitutions into bite-sized pieces for seds with
1544 # small command number limits, like on Digital OSF/1 and HP-UX.
1545 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1546 ac_file=1 # Number of current file.
1547 ac_beg=1 # First line for current file.
1548 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1549 ac_more_lines=:
1550 ac_sed_cmds=""
1551 while $ac_more_lines; do
1552   if test $ac_beg -gt 1; then
1553     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1554   else
1555     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1556   fi
1557   if test ! -s conftest.s$ac_file; then
1558     ac_more_lines=false
1559     rm -f conftest.s$ac_file
1560   else
1561     if test -z "$ac_sed_cmds"; then
1562       ac_sed_cmds="sed -f conftest.s$ac_file"
1563     else
1564       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1565     fi
1566     ac_file=`expr $ac_file + 1`
1567     ac_beg=$ac_end
1568     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1569   fi
1570 done
1571 if test -z "$ac_sed_cmds"; then
1572   ac_sed_cmds=cat
1573 fi
1574 EOF
1575
1576 cat >> $CONFIG_STATUS <<EOF
1577
1578 CONFIG_FILES=\${CONFIG_FILES-"$buildprefix/make/out/Configure_variables.make:make/Configure_variables.make.in"}
1579 EOF
1580 cat >> $CONFIG_STATUS <<\EOF
1581 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1582   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1583   case "$ac_file" in
1584   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1585        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1586   *) ac_file_in="${ac_file}.in" ;;
1587   esac
1588
1589   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1590
1591   # Remove last slash and all that follows it.  Not all systems have dirname.
1592   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1593   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1594     # The file is in a subdirectory.
1595     test ! -d "$ac_dir" && mkdir "$ac_dir"
1596     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1597     # A "../" for each directory in $ac_dir_suffix.
1598     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1599   else
1600     ac_dir_suffix= ac_dots=
1601   fi
1602
1603   case "$ac_given_srcdir" in
1604   .)  srcdir=.
1605       if test -z "$ac_dots"; then top_srcdir=.
1606       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1607   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1608   *) # Relative path.
1609     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1610     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1611   esac
1612
1613   case "$ac_given_INSTALL" in
1614   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1615   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1616   esac
1617
1618   echo creating "$ac_file"
1619   rm -f "$ac_file"
1620   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1621   case "$ac_file" in
1622   *Makefile*) ac_comsub="1i\\
1623 # $configure_input" ;;
1624   *) ac_comsub= ;;
1625   esac
1626
1627   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1628   sed -e "$ac_comsub
1629 s%@configure_input@%$configure_input%g
1630 s%@srcdir@%$srcdir%g
1631 s%@top_srcdir@%$top_srcdir%g
1632 s%@INSTALL@%$INSTALL%g
1633 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1634 fi; done
1635 rm -f conftest.s*
1636
1637 EOF
1638 cat >> $CONFIG_STATUS <<EOF
1639
1640 EOF
1641 cat >> $CONFIG_STATUS <<\EOF
1642
1643 exit 0
1644 EOF
1645 chmod +x $CONFIG_STATUS
1646 rm -fr confdefs* $ac_clean_files
1647 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1648
1649 if test "$no_recursion" != yes; then
1650
1651   # Remove --cache-file and --srcdir arguments so they do not pile up.
1652   ac_sub_configure_args=
1653   ac_prev=
1654   for ac_arg in $ac_configure_args; do
1655     if test -n "$ac_prev"; then
1656       ac_prev=
1657       continue
1658     fi
1659     case "$ac_arg" in
1660     -cache-file | --cache-file | --cache-fil | --cache-fi \
1661     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1662       ac_prev=cache_file ;;
1663     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1664     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1665       ;;
1666     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1667       ac_prev=srcdir ;;
1668     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1669       ;;
1670     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1671     esac
1672   done
1673
1674   for ac_config_dir in flower; do
1675
1676     # Do not complain, so a configure script can configure whichever
1677     # parts of a large source tree are present.
1678     if test ! -d $srcdir/$ac_config_dir; then
1679       continue
1680     fi
1681
1682     echo configuring in $ac_config_dir
1683
1684     case "$srcdir" in
1685     .) ;;
1686     *)
1687       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1688       else
1689         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1690       fi
1691       ;;
1692     esac
1693
1694     ac_popdir=`pwd`
1695     cd $ac_config_dir
1696
1697       # A "../" for each directory in /$ac_config_dir.
1698       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1699
1700     case "$srcdir" in
1701     .) # No --srcdir option.  We are building in place.
1702       ac_sub_srcdir=$srcdir ;;
1703     /*) # Absolute path.
1704       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1705     *) # Relative path.
1706       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1707     esac
1708
1709     # Check for guested configure; otherwise get Cygnus style configure.
1710     if test -f $ac_sub_srcdir/configure; then
1711       ac_sub_configure=$ac_sub_srcdir/configure
1712     elif test -f $ac_sub_srcdir/configure.in; then
1713       ac_sub_configure=$ac_configure
1714     else
1715       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1716       ac_sub_configure=
1717     fi
1718
1719     # The recursion is here.
1720     if test -n "$ac_sub_configure"; then
1721
1722       # Make the cache file name correct relative to the subdirectory.
1723       case "$cache_file" in
1724       /*) ac_sub_cache_file=$cache_file ;;
1725       *) # Relative path.
1726         ac_sub_cache_file="$ac_dots$cache_file" ;;
1727       esac
1728   case "$ac_given_INSTALL" in
1729         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1730         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1731         esac
1732
1733       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1734       # The eval makes quoting arguments work.
1735       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1736       then :
1737       else
1738         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1739       fi
1740     fi
1741
1742     cd $ac_popdir
1743   done
1744 fi
1745
1746
1747
1748
1749 eval "DIR_DATADIR=$datadir"
1750 DIR_DATADIR="$DIR_DATADIR/lilypond"
1751 echo $ac_n "checking ""... $ac_c" 1>&6
1752 echo "configure:1753: checking " >&5
1753
1754 cat << EOF > $buildprefix/lib/out/config.hh
1755
1756 /* automatically generated by configure */
1757 /* include this file only once! */
1758
1759 #define  DIR_DATADIR "$DIR_DATADIR"
1760
1761 EOF
1762
1763 CXX="$ac_cv_prog_CXX" bin/make-version >> $buildprefix/lib/out/config.hh
1764
1765 touch $buildprefix/make/out/Site.make
1766
1767 # ugr
1768 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make-version > ../$buildprefix/mi2mu/out/version.hh
1769
1770 )
1771 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make-version > ../$buildprefix/lily/out/version.hh
1772 )
1773
1774 echo '# WARNING : Automatically generated from make/Toplevel.make.in' \
1775     | cat - make/Toplevel.make.in > Makefile
1776
1777
1778 cat << END
1779 For making everything, do:
1780
1781     make                # GNU make
1782
1783 or if you used --host=SunUltraWitteReus
1784
1785     make buildprefix=SunUltraWitteReus-build-dir
1786     
1787 If you want to make site-wide extensions to the makefiles, please use
1788
1789     make/out/Site.make
1790     
1791 END
1792
1793 if test $warn_b = "yes" ; then
1794 cat <<EOF
1795     
1796     **************************************************
1797     Warning: configure encountered warnings or errors.
1798     Please try to resolve these, and rerun configure 
1799     before sending a bugreport.
1800     If you cannot resolve some warnings, the make 
1801     process may still be succesful, but be warned.
1802     **************************************************
1803     
1804 EOF
1805 fi
1806