]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.0.72pre
[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   disable-checking        set runtime checks (assert calls)"
18 ac_help="$ac_help
19   disable-debugging       set debug info "
20 ac_help="$ac_help
21   enable-optimise         use maximal speed optimisations"
22 ac_help="$ac_help
23   enable-profiling        compile with gprof support"
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 printing_b=no
543 checking_b=yes
544 debug_b=yes
545 optimise_b=no
546 profile_b=no
547     
548 ac_ext=C
549 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp='$CXXCPP $CPPFLAGS'
551 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling=$ac_cv_prog_cxx_cross
554
555
556 # Check whether --enable-printing or --disable-printing was given.
557 if test "${enable_printing+set}" = set; then
558   enableval="$enable_printing"
559   printing_b=$enableval
560 fi
561
562
563         
564 # Check whether --enable-checking or --disable-checking was given.
565 if test "${enable_checking+set}" = set; then
566   enableval="$enable_checking"
567   checking_b=$enableval 
568 fi
569
570
571 # Check whether --enable-debugging or --disable-debugging was given.
572 if test "${enable_debugging+set}" = set; then
573   enableval="$enable_debugging"
574   debug_b=$enableval
575 fi
576
577
578 # Check whether --enable-optimise or --disable-optimise was given.
579 if test "${enable_optimise+set}" = set; then
580   enableval="$enable_optimise"
581   optimise_b=$enableval
582 fi
583
584     
585 # Check whether --enable-profiling or --disable-profiling was given.
586 if test "${enable_profiling+set}" = set; then
587   enableval="$enable_profiling"
588   profile_b=$enableval
589 fi
590
591     
592 # Check whether --enable-mingw32 or --disable-mingw32 was given.
593 if test "${enable_mingw32+set}" = set; then
594   enableval="$enable_mingw32"
595   MINGWPREFIX=$enableval
596 else
597   MINGWPREFIX=no
598 fi
599
600     
601 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
602 if test "${enable_tex_prefix+set}" = set; then
603   enableval="$enable_tex_prefix"
604   TEXPREFIX=$enableval
605 else
606   TEXPREFIX=auto 
607 fi
608
609     
610 # Check whether --enable-tex-dir or --disable-tex-dir was given.
611 if test "${enable_tex_dir+set}" = set; then
612   enableval="$enable_tex_dir"
613   TEXDIR=$enableval
614 else
615   TEXDIR=auto 
616 fi
617
618
619 # Check whether --enable-mf-dir or --disable-mf-dir was given.
620 if test "${enable_mf_dir+set}" = set; then
621   enableval="$enable_mf_dir"
622   MFDIR=$enableval
623 else
624   MFDIR=auto 
625 fi
626
627
628 if test $profile_b = yes; then
629     EXTRA_LIBES="-pg"
630     DEFINES="$DEFINES -pg"
631 fi
632     
633 if test $printing_b = no; then
634     DEFINES="$DEFINES -DNPRINT=1"
635 fi
636     
637 if test $debug_b = yes; then    
638     DEFINES="$DEFINES -g"
639 fi
640 if test $checking_b = no; then
641     DEFINES="$DEFINES -DNDEBUG=1"
642 fi
643
644 # however, C++ support in mingw32 v 0.1.4 is still flaky
645 if test x$MINGWPREFIX != xno; then 
646     ICFLAGS="-I$MINGWPREFIX/include"
647     ILDFLAGS="-$MINGWPREFIX/lib"
648 fi
649
650 if test $optimise_b = yes; then
651     DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
652 fi
653
654 AUTOHEADER="This file was automatically generated by configure"
655 CPPFLAGS=${CPPFLAGS:-""}        # we don't want -g -O junk
656 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
657
658 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
659 do
660 # Extract the first word of "$ac_prog", so it can be a program name with args.
661 set dummy $ac_prog; ac_word=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
665   echo $ac_n "(cached) $ac_c" 1>&6
666 else
667   if test -n "$CXX"; then
668   ac_cv_prog_CXX="$CXX" # Let the user override the test.
669 else
670   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
671   for ac_dir in $PATH; do
672     test -z "$ac_dir" && ac_dir=.
673     if test -f $ac_dir/$ac_word; then
674       ac_cv_prog_CXX="$ac_prog"
675       break
676     fi
677   done
678   IFS="$ac_save_ifs"
679 fi
680 fi
681 CXX="$ac_cv_prog_CXX"
682 if test -n "$CXX"; then
683   echo "$ac_t""$CXX" 1>&6
684 else
685   echo "$ac_t""no" 1>&6
686 fi
687
688 test -n "$CXX" && break
689 done
690 test -n "$CXX" || CXX="gcc"
691
692
693 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
694 echo "configure:695: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
695
696 ac_ext=C
697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
698 ac_cpp='$CXXCPP $CPPFLAGS'
699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
700 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
701 cross_compiling=$ac_cv_prog_cxx_cross
702
703 cat > conftest.$ac_ext <<EOF
704 #line 705 "configure"
705 #include "confdefs.h"
706 main(){return(0);}
707 EOF
708 if { (eval echo configure:709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
709   ac_cv_prog_cxx_works=yes
710   # If we can't run a trivial program, we are probably using a cross compiler.
711   if (./conftest; exit) 2>/dev/null; then
712     ac_cv_prog_cxx_cross=no
713   else
714     ac_cv_prog_cxx_cross=yes
715   fi
716 else
717   echo "configure: failed program was:" >&5
718   cat conftest.$ac_ext >&5
719   ac_cv_prog_cxx_works=no
720 fi
721 rm -fr conftest*
722
723 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
724 if test $ac_cv_prog_cxx_works = no; then
725   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
726 fi
727 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
728 echo "configure:729: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
729 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
730 cross_compiling=$ac_cv_prog_cxx_cross
731
732 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
733 echo "configure:734: checking whether we are using GNU C++" >&5
734 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
735   echo $ac_n "(cached) $ac_c" 1>&6
736 else
737   cat > conftest.C <<EOF
738 #ifdef __GNUC__
739   yes;
740 #endif
741 EOF
742 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
743   ac_cv_prog_gxx=yes
744 else
745   ac_cv_prog_gxx=no
746 fi
747 fi
748
749 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
750
751 if test $ac_cv_prog_gxx = yes; then
752   GXX=yes
753   ac_test_CXXFLAGS="${CXXFLAGS+set}"
754   ac_save_CXXFLAGS="$CXXFLAGS"
755   CXXFLAGS=
756   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
757 echo "configure:758: checking whether ${CXX-g++} accepts -g" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
759   echo $ac_n "(cached) $ac_c" 1>&6
760 else
761   echo 'void f(){}' > conftest.cc
762 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
763   ac_cv_prog_cxx_g=yes
764 else
765   ac_cv_prog_cxx_g=no
766 fi
767 rm -f conftest*
768
769 fi
770
771 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
772   if test "$ac_test_CXXFLAGS" = set; then
773     CXXFLAGS="$ac_save_CXXFLAGS"
774   elif test $ac_cv_prog_cxx_g = yes; then
775     CXXFLAGS="-g -O2"
776   else
777     CXXFLAGS="-O2"
778   fi
779 else
780   GXX=
781   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
782 fi
783
784 # Extract the first word of "ranlib", so it can be a program name with args.
785 set dummy ranlib; ac_word=$2
786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787 echo "configure:788: checking for $ac_word" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
789   echo $ac_n "(cached) $ac_c" 1>&6
790 else
791   if test -n "$RANLIB"; then
792   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
793 else
794   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
795   for ac_dir in $PATH; do
796     test -z "$ac_dir" && ac_dir=.
797     if test -f $ac_dir/$ac_word; then
798       ac_cv_prog_RANLIB="ranlib"
799       break
800     fi
801   done
802   IFS="$ac_save_ifs"
803   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
804 fi
805 fi
806 RANLIB="$ac_cv_prog_RANLIB"
807 if test -n "$RANLIB"; then
808   echo "$ac_t""$RANLIB" 1>&6
809 else
810   echo "$ac_t""no" 1>&6
811 fi
812
813 ac_aux_dir=
814 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
815   if test -f $ac_dir/install-sh; then
816     ac_aux_dir=$ac_dir
817     ac_install_sh="$ac_aux_dir/install-sh -c"
818     break
819   elif test -f $ac_dir/install.sh; then
820     ac_aux_dir=$ac_dir
821     ac_install_sh="$ac_aux_dir/install.sh -c"
822     break
823   fi
824 done
825 if test -z "$ac_aux_dir"; then
826   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
827 fi
828 ac_config_guess=$ac_aux_dir/config.guess
829 ac_config_sub=$ac_aux_dir/config.sub
830 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
831
832 # Find a good install program.  We prefer a C program (faster),
833 # so one script is as good as another.  But avoid the broken or
834 # incompatible versions:
835 # SysV /etc/install, /usr/sbin/install
836 # SunOS /usr/etc/install
837 # IRIX /sbin/install
838 # AIX /bin/install
839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
841 # ./install, which can be erroneously created by make from ./install.sh.
842 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
843 echo "configure:844: checking for a BSD compatible install" >&5
844 if test -z "$INSTALL"; then
845 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
846   echo $ac_n "(cached) $ac_c" 1>&6
847 else
848     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
849   for ac_dir in $PATH; do
850     # Account for people who put trailing slashes in PATH elements.
851     case "$ac_dir/" in
852     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
853     *)
854       # OSF1 and SCO ODT 3.0 have their own names for install.
855       for ac_prog in ginstall installbsd scoinst install; do
856         if test -f $ac_dir/$ac_prog; then
857           if test $ac_prog = install &&
858             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
859             # AIX install.  It has an incompatible calling convention.
860             # OSF/1 installbsd also uses dspmsg, but is usable.
861             :
862           else
863             ac_cv_path_install="$ac_dir/$ac_prog -c"
864             break 2
865           fi
866         fi
867       done
868       ;;
869     esac
870   done
871   IFS="$ac_save_IFS"
872
873 fi
874   if test "${ac_cv_path_install+set}" = set; then
875     INSTALL="$ac_cv_path_install"
876   else
877     # As a last resort, use the slow shell script.  We don't cache a
878     # path for INSTALL within a source directory, because that will
879     # break other packages using the cache if that directory is
880     # removed, or if the path is relative.
881     INSTALL="$ac_install_sh"
882   fi
883 fi
884 echo "$ac_t""$INSTALL" 1>&6
885
886 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
887 # It thinks the first close brace ends the variable substitution.
888 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
889
890 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
891
892 for ac_prog in tar
893 do
894 # Extract the first word of "$ac_prog", so it can be a program name with args.
895 set dummy $ac_prog; ac_word=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
899   echo $ac_n "(cached) $ac_c" 1>&6
900 else
901   if test -n "$TAR"; then
902   ac_cv_prog_TAR="$TAR" # Let the user override the test.
903 else
904   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
905   for ac_dir in $PATH; do
906     test -z "$ac_dir" && ac_dir=.
907     if test -f $ac_dir/$ac_word; then
908       ac_cv_prog_TAR="$ac_prog"
909       break
910     fi
911   done
912   IFS="$ac_save_ifs"
913 fi
914 fi
915 TAR="$ac_cv_prog_TAR"
916 if test -n "$TAR"; then
917   echo "$ac_t""$TAR" 1>&6
918 else
919   echo "$ac_t""no" 1>&6
920 fi
921
922 test -n "$TAR" && break
923 done
924 test -n "$TAR" || TAR="error"
925
926 for ac_prog in find
927 do
928 # Extract the first word of "$ac_prog", so it can be a program name with args.
929 set dummy $ac_prog; ac_word=$2
930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931 echo "configure:932: checking for $ac_word" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
933   echo $ac_n "(cached) $ac_c" 1>&6
934 else
935   if test -n "$FIND"; then
936   ac_cv_prog_FIND="$FIND" # Let the user override the test.
937 else
938   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
939   for ac_dir in $PATH; do
940     test -z "$ac_dir" && ac_dir=.
941     if test -f $ac_dir/$ac_word; then
942       ac_cv_prog_FIND="$ac_prog"
943       break
944     fi
945   done
946   IFS="$ac_save_ifs"
947 fi
948 fi
949 FIND="$ac_cv_prog_FIND"
950 if test -n "$FIND"; then
951   echo "$ac_t""$FIND" 1>&6
952 else
953   echo "$ac_t""no" 1>&6
954 fi
955
956 test -n "$FIND" && break
957 done
958 test -n "$FIND" || FIND="error"
959
960
961 if test FIND = error; then
962    echo "configure: warning: Couldn't find \`find'.  Please use --enable-tex-dir" 1>&2
963 fi
964     
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980 for ac_prog in bison
981 do
982 # Extract the first word of "$ac_prog", so it can be a program name with args.
983 set dummy $ac_prog; ac_word=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 echo "configure:986: checking for $ac_word" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
987   echo $ac_n "(cached) $ac_c" 1>&6
988 else
989   if test -n "$BISON"; then
990   ac_cv_prog_BISON="$BISON" # Let the user override the test.
991 else
992   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
993   for ac_dir in $PATH; do
994     test -z "$ac_dir" && ac_dir=.
995     if test -f $ac_dir/$ac_word; then
996       ac_cv_prog_BISON="$ac_prog"
997       break
998     fi
999   done
1000   IFS="$ac_save_ifs"
1001 fi
1002 fi
1003 BISON="$ac_cv_prog_BISON"
1004 if test -n "$BISON"; then
1005   echo "$ac_t""$BISON" 1>&6
1006 else
1007   echo "$ac_t""no" 1>&6
1008 fi
1009
1010 test -n "$BISON" && break
1011 done
1012 test -n "$BISON" || BISON="error"
1013
1014 for ac_prog in flex
1015 do
1016 # Extract the first word of "$ac_prog", so it can be a program name with args.
1017 set dummy $ac_prog; ac_word=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1021   echo $ac_n "(cached) $ac_c" 1>&6
1022 else
1023   if test -n "$FLEX"; then
1024   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1025 else
1026   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1027   for ac_dir in $PATH; do
1028     test -z "$ac_dir" && ac_dir=.
1029     if test -f $ac_dir/$ac_word; then
1030       ac_cv_prog_FLEX="$ac_prog"
1031       break
1032     fi
1033   done
1034   IFS="$ac_save_ifs"
1035 fi
1036 fi
1037 FLEX="$ac_cv_prog_FLEX"
1038 if test -n "$FLEX"; then
1039   echo "$ac_t""$FLEX" 1>&6
1040 else
1041   echo "$ac_t""no" 1>&6
1042 fi
1043
1044 test -n "$FLEX" && break
1045 done
1046 test -n "$FLEX" || FLEX="error"
1047
1048 for ac_prog in make
1049 do
1050 # Extract the first word of "$ac_prog", so it can be a program name with args.
1051 set dummy $ac_prog; ac_word=$2
1052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1053 echo "configure:1054: checking for $ac_word" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1055   echo $ac_n "(cached) $ac_c" 1>&6
1056 else
1057   if test -n "$MAKE"; then
1058   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1059 else
1060   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1061   for ac_dir in $PATH; do
1062     test -z "$ac_dir" && ac_dir=.
1063     if test -f $ac_dir/$ac_word; then
1064       ac_cv_prog_MAKE="$ac_prog"
1065       break
1066     fi
1067   done
1068   IFS="$ac_save_ifs"
1069 fi
1070 fi
1071 MAKE="$ac_cv_prog_MAKE"
1072 if test -n "$MAKE"; then
1073   echo "$ac_t""$MAKE" 1>&6
1074 else
1075   echo "$ac_t""no" 1>&6
1076 fi
1077
1078 test -n "$MAKE" && break
1079 done
1080 test -n "$MAKE" || MAKE="error"
1081
1082 for ac_prog in pod2man
1083 do
1084 # Extract the first word of "$ac_prog", so it can be a program name with args.
1085 set dummy $ac_prog; ac_word=$2
1086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1087 echo "configure:1088: checking for $ac_word" >&5
1088 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
1089   echo $ac_n "(cached) $ac_c" 1>&6
1090 else
1091   if test -n "$PODMAN"; then
1092   ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
1093 else
1094   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1095   for ac_dir in $PATH; do
1096     test -z "$ac_dir" && ac_dir=.
1097     if test -f $ac_dir/$ac_word; then
1098       ac_cv_prog_PODMAN="$ac_prog"
1099       break
1100     fi
1101   done
1102   IFS="$ac_save_ifs"
1103 fi
1104 fi
1105 PODMAN="$ac_cv_prog_PODMAN"
1106 if test -n "$PODMAN"; then
1107   echo "$ac_t""$PODMAN" 1>&6
1108 else
1109   echo "$ac_t""no" 1>&6
1110 fi
1111
1112 test -n "$PODMAN" && break
1113 done
1114 test -n "$PODMAN" || PODMAN="error"
1115
1116
1117     
1118 if test "x$TEXPREFIX" = xauto ; then
1119     
1120     
1121
1122     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1123 echo "configure:1124: checking TeX/MF root dir directory" >&5    
1124
1125     find_root_prefix="$prefix"
1126     
1127
1128     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1129     find_texpostfix="";
1130     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1131         find_texprefix="$find_root_prefix$postfix"
1132         if test -d $find_texprefix; then
1133             find_texpostfix=$postfix
1134             break;
1135         fi
1136     done
1137     
1138     if test "x$find_texpostfix" = x; then
1139         find_texpostfix='/lib/texmf/tex'
1140         echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1141     fi
1142
1143     find_texprefix="$find_root_prefix/$find_texpostfix"
1144
1145     # only assign if variablename not empty
1146     if test x != "xTEXPREFIX"; then
1147         TEXPREFIX='${prefix}'/"$find_texpostfix"
1148     fi
1149     echo "$ac_t""$find_texprefix" 1>&6
1150
1151
1152 else
1153  find_texprefix=$TEXPREFIX
1154 fi
1155     
1156 if test "x$TEXDIR" = xauto ; then
1157     
1158     
1159     
1160     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
1161 echo "configure:1162: checking TeX input directory" >&5    
1162     find_dirdir=`(cd $find_texprefix; 
1163       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
1164     
1165
1166     if test "x$find_dirdir" = x; then
1167        find_dirdir="/tex";
1168        echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
1169         true
1170     fi
1171     TEXDIR=$find_dirdir
1172     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1173
1174     TEXDIR="$TEXPREFIX/$TEXDIR"
1175
1176 fi
1177
1178 if test "x$MFDIR" = xauto; then
1179     
1180     
1181     
1182     echo $ac_n "checking MF input directory""... $ac_c" 1>&6
1183 echo "configure:1184: checking MF input directory" >&5    
1184     find_dirdir=`(cd $find_texprefix; 
1185       $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
1186     
1187
1188     if test "x$find_dirdir" = x; then
1189        find_dirdir="/source";
1190        echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
1191         true
1192     fi
1193     MFDIR=$find_dirdir
1194     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1195
1196     MFDIR="$TEXPREFIX/$MFDIR"
1197
1198 fi
1199     
1200 if test $MAKE = "error" 
1201 then
1202         { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
1203 else
1204         $MAKE -v| grep GNU > /dev/null
1205         if test "$?" = 1
1206         then
1207             echo "configure: warning: Please install *GNU* make" 1>&2 
1208     fi 
1209 fi 
1210     
1211 if test $BISON = "error" 
1212 then
1213         echo "configure: warning: can't find bison. Please install Bison (1.25 or better)" 1>&2
1214 else
1215     bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1216     if test $bison_version -lt 25; then
1217         echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
1218     fi  
1219 fi
1220
1221 if test $PODMAN = "error" 
1222 then
1223         echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
1224 fi
1225
1226 if test $FLEX = "error" 
1227 then
1228         echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1229 fi
1230
1231 if $CXX --version | grep '2\.7' > /dev/null
1232 then
1233         true
1234 else
1235         echo "configure: warning: can't find g++ 2.7" 1>&2
1236 fi
1237
1238 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1239 echo "configure:1240: checking how to run the C++ preprocessor" >&5
1240 if test -z "$CXXCPP"; then
1241 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1242   echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244   ac_ext=C
1245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1246 ac_cpp='$CXXCPP $CPPFLAGS'
1247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1248 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1249 cross_compiling=$ac_cv_prog_cxx_cross
1250   CXXCPP="${CXX-g++} -E"
1251   cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1254 #include <stdlib.h>
1255 EOF
1256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1257 { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1258 ac_err=`grep -v '^ *+' conftest.out`
1259 if test -z "$ac_err"; then
1260   :
1261 else
1262   echo "$ac_err" >&5
1263   echo "configure: failed program was:" >&5
1264   cat conftest.$ac_ext >&5
1265   rm -rf conftest*
1266   CXXCPP=/lib/cpp
1267 fi
1268 rm -f conftest*
1269   ac_cv_prog_CXXCPP="$CXXCPP"
1270 fi
1271 fi
1272 CXXCPP="$ac_cv_prog_CXXCPP"
1273 echo "$ac_t""$CXXCPP" 1>&6
1274
1275 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1276 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1277 echo "configure:1278: checking for FlexLexer.h" >&5
1278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1279   echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281   cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1284 #include <FlexLexer.h>
1285 EOF
1286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1287 { (eval echo configure:1288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1288 ac_err=`grep -v '^ *+' conftest.out`
1289 if test -z "$ac_err"; then
1290   rm -rf conftest*
1291   eval "ac_cv_header_$ac_safe=yes"
1292 else
1293   echo "$ac_err" >&5
1294   echo "configure: failed program was:" >&5
1295   cat conftest.$ac_ext >&5
1296   rm -rf conftest*
1297   eval "ac_cv_header_$ac_safe=no"
1298 fi
1299 rm -f conftest*
1300 fi
1301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1302   echo "$ac_t""yes" 1>&6
1303   true
1304 else
1305   echo "$ac_t""no" 1>&6
1306 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1307 fi
1308
1309 subdirs="flower"
1310
1311 trap '' 1 2 15
1312 cat > confcache <<\EOF
1313 # This file is a shell script that caches the results of configure
1314 # tests run on this system so they can be shared between configure
1315 # scripts and configure runs.  It is not useful on other systems.
1316 # If it contains results you don't want to keep, you may remove or edit it.
1317 #
1318 # By default, configure uses ./config.cache as the cache file,
1319 # creating it if it does not exist already.  You can give configure
1320 # the --cache-file=FILE option to use a different cache file; that is
1321 # what configure does when it calls configure scripts in
1322 # subdirectories, so they share the cache.
1323 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1324 # config.status only pays attention to the cache file if you give it the
1325 # --recheck option to rerun configure.
1326 #
1327 EOF
1328 # The following way of writing the cache mishandles newlines in values,
1329 # but we know of no workaround that is simple, portable, and efficient.
1330 # So, don't put newlines in cache variables' values.
1331 # Ultrix sh set writes to stderr and can't be redirected directly,
1332 # and sets the high bit in the cache file unless we assign to the vars.
1333 (set) 2>&1 |
1334   case `(ac_space=' '; set) 2>&1` in
1335   *ac_space=\ *)
1336     # `set' does not quote correctly, so add quotes (double-quote substitution
1337     # turns \\\\ into \\, and sed turns \\ into \).
1338     sed -n \
1339       -e "s/'/'\\\\''/g" \
1340       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1341     ;;
1342   *)
1343     # `set' quotes correctly as required by POSIX, so do not add quotes.
1344     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1345     ;;
1346   esac >> confcache
1347 if cmp -s $cache_file confcache; then
1348   :
1349 else
1350   if test -w $cache_file; then
1351     echo "updating cache $cache_file"
1352     cat confcache > $cache_file
1353   else
1354     echo "not updating unwritable cache $cache_file"
1355   fi
1356 fi
1357 rm -f confcache
1358
1359 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1360
1361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1362 # Let make expand exec_prefix.
1363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1364
1365 # Any assignment to VPATH causes Sun make to only execute
1366 # the first set of double-colon rules, so remove it if not needed.
1367 # If there is a colon in the path, we need to keep it.
1368 if test "x$srcdir" = x.; then
1369   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1370 fi
1371
1372 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1373
1374 # Transform confdefs.h into DEFS.
1375 # Protect against shell expansion while executing Makefile rules.
1376 # Protect against Makefile macro expansion.
1377 cat > conftest.defs <<\EOF
1378 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1379 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1380 s%\[%\\&%g
1381 s%\]%\\&%g
1382 s%\$%$$%g
1383 EOF
1384 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1385 rm -f conftest.defs
1386
1387
1388 # Without the "./", some shells look in PATH for config.status.
1389 : ${CONFIG_STATUS=./config.status}
1390
1391 echo creating $CONFIG_STATUS
1392 rm -f $CONFIG_STATUS
1393 cat > $CONFIG_STATUS <<EOF
1394 #! /bin/sh
1395 # Generated automatically by configure.
1396 # Run this file to recreate the current configuration.
1397 # This directory was configured as follows,
1398 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1399 #
1400 # $0 $ac_configure_args
1401 #
1402 # Compiler output produced by configure, useful for debugging
1403 # configure, is in ./config.log if it exists.
1404
1405 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1406 for ac_option
1407 do
1408   case "\$ac_option" in
1409   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1410     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1411     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1412   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1413     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1414     exit 0 ;;
1415   -help | --help | --hel | --he | --h)
1416     echo "\$ac_cs_usage"; exit 0 ;;
1417   *) echo "\$ac_cs_usage"; exit 1 ;;
1418   esac
1419 done
1420
1421 ac_given_srcdir=$srcdir
1422 ac_given_INSTALL="$INSTALL"
1423
1424 trap 'rm -fr `echo "make/out/Configure_variables.make:make/Configure_variables.make.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1425 EOF
1426 cat >> $CONFIG_STATUS <<EOF
1427
1428 # Protect against being on the right side of a sed subst in config.status.
1429 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1430  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1431 $ac_vpsub
1432 $extrasub
1433 s%@CFLAGS@%$CFLAGS%g
1434 s%@CPPFLAGS@%$CPPFLAGS%g
1435 s%@CXXFLAGS@%$CXXFLAGS%g
1436 s%@DEFS@%$DEFS%g
1437 s%@LDFLAGS@%$LDFLAGS%g
1438 s%@LIBS@%$LIBS%g
1439 s%@exec_prefix@%$exec_prefix%g
1440 s%@prefix@%$prefix%g
1441 s%@program_transform_name@%$program_transform_name%g
1442 s%@bindir@%$bindir%g
1443 s%@sbindir@%$sbindir%g
1444 s%@libexecdir@%$libexecdir%g
1445 s%@datadir@%$datadir%g
1446 s%@sysconfdir@%$sysconfdir%g
1447 s%@sharedstatedir@%$sharedstatedir%g
1448 s%@localstatedir@%$localstatedir%g
1449 s%@libdir@%$libdir%g
1450 s%@includedir@%$includedir%g
1451 s%@oldincludedir@%$oldincludedir%g
1452 s%@infodir@%$infodir%g
1453 s%@mandir@%$mandir%g
1454 s%@CXX@%$CXX%g
1455 s%@RANLIB@%$RANLIB%g
1456 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1457 s%@INSTALL_DATA@%$INSTALL_DATA%g
1458 s%@TAR@%$TAR%g
1459 s%@FIND@%$FIND%g
1460 s%@ICFLAGS@%$ICFLAGS%g
1461 s%@ILDFLAGS@%$ILDFLAGS%g
1462 s%@DEFINES@%$DEFINES%g
1463 s%@COMPILEINFO@%$COMPILEINFO%g
1464 s%@AUTOHEADER@%$AUTOHEADER%g
1465 s%@BISON@%$BISON%g
1466 s%@FLEX@%$FLEX%g
1467 s%@TEXPREFIX@%$TEXPREFIX%g
1468 s%@TEXDIR@%$TEXDIR%g
1469 s%@MFDIR@%$MFDIR%g
1470 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
1471 s%@MAKE@%$MAKE%g
1472 s%@PODMAN@%$PODMAN%g
1473 s%@CXXCPP@%$CXXCPP%g
1474 s%@subdirs@%$subdirs%g
1475
1476 CEOF
1477 EOF
1478
1479 cat >> $CONFIG_STATUS <<\EOF
1480
1481 # Split the substitutions into bite-sized pieces for seds with
1482 # small command number limits, like on Digital OSF/1 and HP-UX.
1483 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1484 ac_file=1 # Number of current file.
1485 ac_beg=1 # First line for current file.
1486 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1487 ac_more_lines=:
1488 ac_sed_cmds=""
1489 while $ac_more_lines; do
1490   if test $ac_beg -gt 1; then
1491     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1492   else
1493     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1494   fi
1495   if test ! -s conftest.s$ac_file; then
1496     ac_more_lines=false
1497     rm -f conftest.s$ac_file
1498   else
1499     if test -z "$ac_sed_cmds"; then
1500       ac_sed_cmds="sed -f conftest.s$ac_file"
1501     else
1502       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1503     fi
1504     ac_file=`expr $ac_file + 1`
1505     ac_beg=$ac_end
1506     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1507   fi
1508 done
1509 if test -z "$ac_sed_cmds"; then
1510   ac_sed_cmds=cat
1511 fi
1512 EOF
1513
1514 cat >> $CONFIG_STATUS <<EOF
1515
1516 CONFIG_FILES=\${CONFIG_FILES-"make/out/Configure_variables.make:make/Configure_variables.make.in"}
1517 EOF
1518 cat >> $CONFIG_STATUS <<\EOF
1519 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1520   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1521   case "$ac_file" in
1522   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1523        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1524   *) ac_file_in="${ac_file}.in" ;;
1525   esac
1526
1527   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1528
1529   # Remove last slash and all that follows it.  Not all systems have dirname.
1530   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1531   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1532     # The file is in a subdirectory.
1533     test ! -d "$ac_dir" && mkdir "$ac_dir"
1534     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1535     # A "../" for each directory in $ac_dir_suffix.
1536     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1537   else
1538     ac_dir_suffix= ac_dots=
1539   fi
1540
1541   case "$ac_given_srcdir" in
1542   .)  srcdir=.
1543       if test -z "$ac_dots"; then top_srcdir=.
1544       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1545   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1546   *) # Relative path.
1547     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1548     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1549   esac
1550
1551   case "$ac_given_INSTALL" in
1552   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1553   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1554   esac
1555
1556   echo creating "$ac_file"
1557   rm -f "$ac_file"
1558   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1559   case "$ac_file" in
1560   *Makefile*) ac_comsub="1i\\
1561 # $configure_input" ;;
1562   *) ac_comsub= ;;
1563   esac
1564
1565   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1566   sed -e "$ac_comsub
1567 s%@configure_input@%$configure_input%g
1568 s%@srcdir@%$srcdir%g
1569 s%@top_srcdir@%$top_srcdir%g
1570 s%@INSTALL@%$INSTALL%g
1571 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1572 fi; done
1573 rm -f conftest.s*
1574
1575 EOF
1576 cat >> $CONFIG_STATUS <<EOF
1577
1578 EOF
1579 cat >> $CONFIG_STATUS <<\EOF
1580
1581 exit 0
1582 EOF
1583 chmod +x $CONFIG_STATUS
1584 rm -fr confdefs* $ac_clean_files
1585 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1586
1587 if test "$no_recursion" != yes; then
1588
1589   # Remove --cache-file and --srcdir arguments so they do not pile up.
1590   ac_sub_configure_args=
1591   ac_prev=
1592   for ac_arg in $ac_configure_args; do
1593     if test -n "$ac_prev"; then
1594       ac_prev=
1595       continue
1596     fi
1597     case "$ac_arg" in
1598     -cache-file | --cache-file | --cache-fil | --cache-fi \
1599     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1600       ac_prev=cache_file ;;
1601     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1602     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1603       ;;
1604     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1605       ac_prev=srcdir ;;
1606     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1607       ;;
1608     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1609     esac
1610   done
1611
1612   for ac_config_dir in flower; do
1613
1614     # Do not complain, so a configure script can configure whichever
1615     # parts of a large source tree are present.
1616     if test ! -d $srcdir/$ac_config_dir; then
1617       continue
1618     fi
1619
1620     echo configuring in $ac_config_dir
1621
1622     case "$srcdir" in
1623     .) ;;
1624     *)
1625       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1626       else
1627         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1628       fi
1629       ;;
1630     esac
1631
1632     ac_popdir=`pwd`
1633     cd $ac_config_dir
1634
1635       # A "../" for each directory in /$ac_config_dir.
1636       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1637
1638     case "$srcdir" in
1639     .) # No --srcdir option.  We are building in place.
1640       ac_sub_srcdir=$srcdir ;;
1641     /*) # Absolute path.
1642       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1643     *) # Relative path.
1644       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1645     esac
1646
1647     # Check for guested configure; otherwise get Cygnus style configure.
1648     if test -f $ac_sub_srcdir/configure; then
1649       ac_sub_configure=$ac_sub_srcdir/configure
1650     elif test -f $ac_sub_srcdir/configure.in; then
1651       ac_sub_configure=$ac_configure
1652     else
1653       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1654       ac_sub_configure=
1655     fi
1656
1657     # The recursion is here.
1658     if test -n "$ac_sub_configure"; then
1659
1660       # Make the cache file name correct relative to the subdirectory.
1661       case "$cache_file" in
1662       /*) ac_sub_cache_file=$cache_file ;;
1663       *) # Relative path.
1664         ac_sub_cache_file="$ac_dots$cache_file" ;;
1665       esac
1666   case "$ac_given_INSTALL" in
1667         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1668         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1669         esac
1670
1671       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1672       # The eval makes quoting arguments work.
1673       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1674       then :
1675       else
1676         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1677       fi
1678     fi
1679
1680     cd $ac_popdir
1681   done
1682 fi
1683
1684
1685
1686
1687 eval "DIR_DATADIR=$datadir"
1688 DIR_DATADIR="$DIR_DATADIR/lilypond"
1689 echo $ac_n "checking ""... $ac_c" 1>&6
1690 echo "configure:1691: checking " >&5
1691
1692 cat << EOF > lib/out/config.hh
1693
1694 /* automatically generated by configure */
1695 /* include this file only once! */
1696
1697 #define  DIR_DATADIR "$DIR_DATADIR"
1698
1699 EOF
1700
1701 CXX="$ac_cv_prog_CXX" bin/make_version >> lib/out/config.hh
1702
1703 touch make/out/Site.make
1704
1705 # ugr
1706 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1707 )
1708 # rgu
1709 sed 's/TOPLEVEL_//g' <  .version >  lily/.version
1710 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1711 )
1712
1713 $MAKE -f make/Toplevel.make.in Makefile
1714
1715 cat << END
1716 Finished configuring. For making everything, do:
1717
1718         make all
1719
1720 If you only want help on the make targets, do a
1721
1722         make help
1723
1724 assuming that \`make' is GNU make, of course.
1725
1726 If you want to make site-wide extensions to the makefiles, please use
1727
1728     make/out/Site.make
1729
1730 If you can't find a toplevel makefile, please execute
1731
1732     make -f make/Toplevel.make.in Makefile              # GNU make, of course
1733     
1734 END
1735