]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.0.42.pre3
[lilypond.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10 
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        set debug printing"
16 ac_help="$ac_help
17   disable-checking       set runtime checks"
18 ac_help="$ac_help
19   disable-debug          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   texprefix=DIR  set the tex-directory to put the lilypond subdir in."
26
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64
65 ac_prev=
66 for ac_option
67 do
68
69   # If the previous option needs an argument, assign it.
70   if test -n "$ac_prev"; then
71     eval "$ac_prev=\$ac_option"
72     ac_prev=
73     continue
74   fi
75
76   case "$ac_option" in
77   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78   *) ac_optarg= ;;
79   esac
80
81   # Accept the important Cygnus configure options, so we can diagnose typos.
82
83   case "$ac_option" in
84
85   -bindir | --bindir | --bindi | --bind | --bin | --bi)
86     ac_prev=bindir ;;
87   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88     bindir="$ac_optarg" ;;
89
90   -build | --build | --buil | --bui | --bu)
91     ac_prev=build ;;
92   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93     build="$ac_optarg" ;;
94
95   -cache-file | --cache-file | --cache-fil | --cache-fi \
96   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97     ac_prev=cache_file ;;
98   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100     cache_file="$ac_optarg" ;;
101
102   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103     ac_prev=datadir ;;
104   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105   | --da=*)
106     datadir="$ac_optarg" ;;
107
108   -disable-* | --disable-*)
109     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110     # Reject names that are not valid shell variable names.
111     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113     fi
114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115     eval "enable_${ac_feature}=no" ;;
116
117   -enable-* | --enable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     case "$ac_option" in
125       *=*) ;;
126       *) ac_optarg=yes ;;
127     esac
128     eval "enable_${ac_feature}='$ac_optarg'" ;;
129
130   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132   | --exec | --exe | --ex)
133     ac_prev=exec_prefix ;;
134   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136   | --exec=* | --exe=* | --ex=*)
137     exec_prefix="$ac_optarg" ;;
138
139   -gas | --gas | --ga | --g)
140     # Obsolete; use --with-gas.
141     with_gas=yes ;;
142
143   -help | --help | --hel | --he)
144     # Omit some internal or obsolete options to make the list less imposing.
145     # This message is too long to be a string in the A/UX 3.1 sh.
146     cat << EOF
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
149 Configuration:
150   --cache-file=FILE       cache test results in FILE
151   --help                  print this message
152   --no-create             do not create output files
153   --quiet, --silent       do not print \`checking...' messages
154   --version               print the version of autoconf that created configure
155 Directory and file names:
156   --prefix=PREFIX         install architecture-independent files in PREFIX
157                           [$ac_default_prefix]
158   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
159                           [same as prefix]
160   --bindir=DIR            user executables in DIR [EPREFIX/bin]
161   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
162   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
163   --datadir=DIR           read-only architecture-independent data in DIR
164                           [PREFIX/share]
165   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
166   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
167                           [PREFIX/com]
168   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
169   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
170   --includedir=DIR        C header files in DIR [PREFIX/include]
171   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
172   --infodir=DIR           info documentation in DIR [PREFIX/info]
173   --mandir=DIR            man documentation in DIR [PREFIX/man]
174   --srcdir=DIR            find the sources in DIR [configure dir or ..]
175   --program-prefix=PREFIX prepend PREFIX to installed program names
176   --program-suffix=SUFFIX append SUFFIX to installed program names
177   --program-transform-name=PROGRAM
178                           run sed PROGRAM on installed program names
179 EOF
180     cat << EOF
181 Host type:
182   --build=BUILD           configure for building on BUILD [BUILD=HOST]
183   --host=HOST             configure for HOST [guessed]
184   --target=TARGET         configure for TARGET [TARGET=HOST]
185 Features and packages:
186   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
187   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
188   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
189   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
190   --x-includes=DIR        X include files are in DIR
191   --x-libraries=DIR       X library files are in DIR
192 EOF
193     if test -n "$ac_help"; then
194       echo "--enable and --with options recognized:$ac_help"
195     fi
196     exit 0 ;;
197
198   -host | --host | --hos | --ho)
199     ac_prev=host ;;
200   -host=* | --host=* | --hos=* | --ho=*)
201     host="$ac_optarg" ;;
202
203   -includedir | --includedir | --includedi | --included | --include \
204   | --includ | --inclu | --incl | --inc)
205     ac_prev=includedir ;;
206   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207   | --includ=* | --inclu=* | --incl=* | --inc=*)
208     includedir="$ac_optarg" ;;
209
210   -infodir | --infodir | --infodi | --infod | --info | --inf)
211     ac_prev=infodir ;;
212   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213     infodir="$ac_optarg" ;;
214
215   -libdir | --libdir | --libdi | --libd)
216     ac_prev=libdir ;;
217   -libdir=* | --libdir=* | --libdi=* | --libd=*)
218     libdir="$ac_optarg" ;;
219
220   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221   | --libexe | --libex | --libe)
222     ac_prev=libexecdir ;;
223   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224   | --libexe=* | --libex=* | --libe=*)
225     libexecdir="$ac_optarg" ;;
226
227   -localstatedir | --localstatedir | --localstatedi | --localstated \
228   | --localstate | --localstat | --localsta | --localst \
229   | --locals | --local | --loca | --loc | --lo)
230     ac_prev=localstatedir ;;
231   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234     localstatedir="$ac_optarg" ;;
235
236   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237     ac_prev=mandir ;;
238   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239     mandir="$ac_optarg" ;;
240
241   -nfp | --nfp | --nf)
242     # Obsolete; use --without-fp.
243     with_fp=no ;;
244
245   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246   | --no-cr | --no-c)
247     no_create=yes ;;
248
249   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251     no_recursion=yes ;;
252
253   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255   | --oldin | --oldi | --old | --ol | --o)
256     ac_prev=oldincludedir ;;
257   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260     oldincludedir="$ac_optarg" ;;
261
262   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263     ac_prev=prefix ;;
264   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265     prefix="$ac_optarg" ;;
266
267   -program-prefix | --program-prefix | --program-prefi | --program-pref \
268   | --program-pre | --program-pr | --program-p)
269     ac_prev=program_prefix ;;
270   -program-prefix=* | --program-prefix=* | --program-prefi=* \
271   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272     program_prefix="$ac_optarg" ;;
273
274   -program-suffix | --program-suffix | --program-suffi | --program-suff \
275   | --program-suf | --program-su | --program-s)
276     ac_prev=program_suffix ;;
277   -program-suffix=* | --program-suffix=* | --program-suffi=* \
278   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279     program_suffix="$ac_optarg" ;;
280
281   -program-transform-name | --program-transform-name \
282   | --program-transform-nam | --program-transform-na \
283   | --program-transform-n | --program-transform- \
284   | --program-transform | --program-transfor \
285   | --program-transfo | --program-transf \
286   | --program-trans | --program-tran \
287   | --progr-tra | --program-tr | --program-t)
288     ac_prev=program_transform_name ;;
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     program_transform_name="$ac_optarg" ;;
297
298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299   | -silent | --silent | --silen | --sile | --sil)
300     silent=yes ;;
301
302   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303     ac_prev=sbindir ;;
304   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305   | --sbi=* | --sb=*)
306     sbindir="$ac_optarg" ;;
307
308   -sharedstatedir | --sharedstatedir | --sharedstatedi \
309   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310   | --sharedst | --shareds | --shared | --share | --shar \
311   | --sha | --sh)
312     ac_prev=sharedstatedir ;;
313   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316   | --sha=* | --sh=*)
317     sharedstatedir="$ac_optarg" ;;
318
319   -site | --site | --sit)
320     ac_prev=site ;;
321   -site=* | --site=* | --sit=*)
322     site="$ac_optarg" ;;
323
324   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325     ac_prev=srcdir ;;
326   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327     srcdir="$ac_optarg" ;;
328
329   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330   | --syscon | --sysco | --sysc | --sys | --sy)
331     ac_prev=sysconfdir ;;
332   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334     sysconfdir="$ac_optarg" ;;
335
336   -target | --target | --targe | --targ | --tar | --ta | --t)
337     ac_prev=target ;;
338   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339     target="$ac_optarg" ;;
340
341   -v | -verbose | --verbose | --verbos | --verbo | --verb)
342     verbose=yes ;;
343
344   -version | --version | --versio | --versi | --vers)
345     echo "configure generated by autoconf version 2.10"
346     exit 0 ;;
347
348   -with-* | --with-*)
349     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350     # Reject names that are not valid shell variable names.
351     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353     fi
354     ac_package=`echo $ac_package| sed 's/-/_/g'`
355     case "$ac_option" in
356       *=*) ;;
357       *) ac_optarg=yes ;;
358     esac
359     eval "with_${ac_package}='$ac_optarg'" ;;
360
361   -without-* | --without-*)
362     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     eval "with_${ac_package}=no" ;;
369
370   --x)
371     # Obsolete; use --with-x.
372     with_x=yes ;;
373
374   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375   | --x-incl | --x-inc | --x-in | --x-i)
376     ac_prev=x_includes ;;
377   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379     x_includes="$ac_optarg" ;;
380
381   -x-libraries | --x-libraries | --x-librarie | --x-librari \
382   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383     ac_prev=x_libraries ;;
384   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386     x_libraries="$ac_optarg" ;;
387
388   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389     ;;
390
391   *)
392     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393       echo "configure: warning: $ac_option: invalid host type" 1>&2
394     fi
395     if test "x$nonopt" != xNONE; then
396       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397     fi
398     nonopt="$ac_option"
399     ;;
400
401   esac
402 done
403
404 if test -n "$ac_prev"; then
405   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 fi
407
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409
410 # File descriptor usage:
411 # 0 standard input
412 # 1 file creation
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
419   exec 6>/dev/null
420 else
421   exec 6>&1
422 fi
423 exec 5>./config.log
424
425 echo "\
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
428 " 1>&5
429
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
432 ac_configure_args=
433 for ac_arg
434 do
435   case "$ac_arg" in
436   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437   | --no-cr | --no-c) ;;
438   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443   esac
444 done
445
446 # NLS nuisances.
447 # Only set LANG and LC_ALL to C if already set.
448 # These must not be set unconditionally because not all systems understand
449 # e.g. LANG=C (notably SCO).
450 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
452
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 echo > confdefs.h
457
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file=flower/choleski.cc
461
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464   ac_srcdir_defaulted=yes
465   # Try the directory containing this script, then its parent.
466   ac_prog=$0
467   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469   srcdir=$ac_confdir
470   if test ! -r $srcdir/$ac_unique_file; then
471     srcdir=..
472   fi
473 else
474   ac_srcdir_defaulted=no
475 fi
476 if test ! -r $srcdir/$ac_unique_file; then
477   if test "$ac_srcdir_defaulted" = yes; then
478     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479   else
480     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481   fi
482 fi
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487   if test "x$prefix" != xNONE; then
488     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489   else
490     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491   fi
492 fi
493 for ac_site_file in $CONFIG_SITE; do
494   if test -r "$ac_site_file"; then
495     echo "loading site script $ac_site_file"
496     . "$ac_site_file"
497   fi
498 done
499
500 if test -r "$cache_file"; then
501   echo "loading cache $cache_file"
502   . $cache_file
503 else
504   echo "creating cache $cache_file"
505   > $cache_file
506 fi
507
508 ac_ext=c
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517     ac_n= ac_c='
518 ' ac_t='        '
519   else
520     ac_n=-n ac_c= ac_t=
521   fi
522 else
523   ac_n= ac_c='\c' ac_t=
524 fi
525
526
527
528
529 ac_ext=C
530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CXXCPP $CPPFLAGS'
532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534
535
536 # Check whether --enable-printing or --disable-printing was given.
537 if test "${enable_printing+set}" = set; then
538   enableval="$enable_printing"
539   :
540 else
541   DEFINES="$DEFINES -DNPRINT=1"
542 fi
543
544 # Check whether --enable-checking or --disable-checking was given.
545 if test "${enable_checking+set}" = set; then
546   enableval="$enable_checking"
547   DEFINES="$DEFINES -DNDEBUG=1"
548 fi
549
550 # Check whether --enable-debug or --disable-debug was given.
551 if test "${enable_debug+set}" = set; then
552   enableval="$enable_debug"
553   :
554 else
555   DEFINES="$DEFINES -g"
556 fi
557
558 # Check whether --enable-optimise or --disable-optimise was given.
559 if test "${enable_optimise+set}" = set; then
560   enableval="$enable_optimise"
561   DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
562 fi
563
564 # Check whether --enable-profiling or --disable-profiling was given.
565 if test "${enable_profiling+set}" = set; then
566   enableval="$enable_profiling"
567   DEFINES="$DEFINES -pg"
568 fi
569
570 # Check whether --enable-texprefix or --disable-texprefix was given.
571 if test "${enable_texprefix+set}" = set; then
572   enableval="$enable_texprefix"
573   TEXPREFIX=$enableval
574 else
575   TEXPREFIX=auto 
576 fi
577
578
579 AUTOHEADER="This file was automatically generated by configure"
580 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
581 for ac_prog in $CCC c++ g++ gcc CC cxx
582 do
583 # Extract the first word of "$ac_prog", so it can be a program name with args.
584 set dummy $ac_prog; ac_word=$2
585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
586 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
587   echo $ac_n "(cached) $ac_c" 1>&6
588 else
589   if test -n "$CXX"; then
590   ac_cv_prog_CXX="$CXX" # Let the user override the test.
591 else
592   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
593   for ac_dir in $PATH; do
594     test -z "$ac_dir" && ac_dir=.
595     if test -f $ac_dir/$ac_word; then
596       ac_cv_prog_CXX="$ac_prog"
597       break
598     fi
599   done
600   IFS="$ac_save_ifs"
601 fi
602 fi
603 CXX="$ac_cv_prog_CXX"
604 if test -n "$CXX"; then
605   echo "$ac_t""$CXX" 1>&6
606 else
607   echo "$ac_t""no" 1>&6
608 fi
609
610 test -n "$CXX" && break
611 done
612 test -n "$CXX" || CXX="gcc"
613
614
615 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
616 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
617   echo $ac_n "(cached) $ac_c" 1>&6
618 else
619   cat > conftest.C <<EOF
620 #ifdef __GNUC__
621   yes;
622 #endif
623 EOF
624 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
625   ac_cv_prog_gxx=yes
626 else
627   ac_cv_prog_gxx=no
628 fi
629 fi
630
631 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
632 if test $ac_cv_prog_gxx = yes; then
633   GXX=yes
634   if test "${CXXFLAGS+set}" != set; then
635     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
636 if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
637   echo $ac_n "(cached) $ac_c" 1>&6
638 else
639   echo 'void f(){}' > conftest.cc
640 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
641   ac_cv_prog_gxx_g=yes
642 else
643   ac_cv_prog_gxx_g=no
644 fi
645 rm -f conftest*
646
647 fi
648
649 echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
650     if test $ac_cv_prog_gxx_g = yes; then
651       CXXFLAGS="-g -O"
652     else
653       CXXFLAGS="-O"
654     fi
655   fi
656 else
657   GXX=
658   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
659 fi
660
661 # Extract the first word of "ranlib", so it can be a program name with args.
662 set dummy ranlib; ac_word=$2
663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
664 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
665   echo $ac_n "(cached) $ac_c" 1>&6
666 else
667   if test -n "$RANLIB"; then
668   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib"
675       break
676     fi
677   done
678   IFS="$ac_save_ifs"
679   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
680 fi
681 fi
682 RANLIB="$ac_cv_prog_RANLIB"
683 if test -n "$RANLIB"; then
684   echo "$ac_t""$RANLIB" 1>&6
685 else
686   echo "$ac_t""no" 1>&6
687 fi
688
689 ac_aux_dir=
690 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
691   if test -f $ac_dir/install-sh; then
692     ac_aux_dir=$ac_dir
693     ac_install_sh="$ac_aux_dir/install-sh -c"
694     break
695   elif test -f $ac_dir/install.sh; then
696     ac_aux_dir=$ac_dir
697     ac_install_sh="$ac_aux_dir/install.sh -c"
698     break
699   fi
700 done
701 if test -z "$ac_aux_dir"; then
702   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
703 fi
704 ac_config_guess=$ac_aux_dir/config.guess
705 ac_config_sub=$ac_aux_dir/config.sub
706 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
707
708 # Find a good install program.  We prefer a C program (faster),
709 # so one script is as good as another.  But avoid the broken or
710 # incompatible versions:
711 # SysV /etc/install, /usr/sbin/install
712 # SunOS /usr/etc/install
713 # IRIX /sbin/install
714 # AIX /bin/install
715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
717 # ./install, which can be erroneously created by make from ./install.sh.
718 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
719 if test -z "$INSTALL"; then
720 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
721   echo $ac_n "(cached) $ac_c" 1>&6
722 else
723     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
724   for ac_dir in $PATH; do
725     # Account for people who put trailing slashes in PATH elements.
726     case "$ac_dir/" in
727     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
728     *)
729       # OSF1 and SCO ODT 3.0 have their own names for install.
730       for ac_prog in ginstall installbsd scoinst install; do
731         if test -f $ac_dir/$ac_prog; then
732           if test $ac_prog = install &&
733             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
734             # AIX install.  It has an incompatible calling convention.
735             # OSF/1 installbsd also uses dspmsg, but is usable.
736             :
737           else
738             ac_cv_path_install="$ac_dir/$ac_prog -c"
739             break 2
740           fi
741         fi
742       done
743       ;;
744     esac
745   done
746   IFS="$ac_save_ifs"
747
748 fi
749   if test "${ac_cv_path_install+set}" = set; then
750     INSTALL="$ac_cv_path_install"
751   else
752     # As a last resort, use the slow shell script.  We don't cache a
753     # path for INSTALL within a source directory, because that will
754     # break other packages using the cache if that directory is
755     # removed, or if the path is relative.
756     INSTALL="$ac_install_sh"
757   fi
758 fi
759 echo "$ac_t""$INSTALL" 1>&6
760
761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
762 # It thinks the first close brace ends the variable substitution.
763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
764
765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
766
767 for ac_prog in find
768 do
769 # Extract the first word of "$ac_prog", so it can be a program name with args.
770 set dummy $ac_prog; ac_word=$2
771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
773   echo $ac_n "(cached) $ac_c" 1>&6
774 else
775   if test -n "$FIND"; then
776   ac_cv_prog_FIND="$FIND" # Let the user override the test.
777 else
778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
779   for ac_dir in $PATH; do
780     test -z "$ac_dir" && ac_dir=.
781     if test -f $ac_dir/$ac_word; then
782       ac_cv_prog_FIND="$ac_prog"
783       break
784     fi
785   done
786   IFS="$ac_save_ifs"
787 fi
788 fi
789 FIND="$ac_cv_prog_FIND"
790 if test -n "$FIND"; then
791   echo "$ac_t""$FIND" 1>&6
792 else
793   echo "$ac_t""no" 1>&6
794 fi
795
796 test -n "$FIND" && break
797 done
798 test -n "$FIND" || FIND="error"
799
800
801 if test FIND = error; then
802    echo "configure: warning: Couldn't find \`find'.  Please use --enable-texprefix" 1>&2
803 else 
804     
805
806
807
808
809
810
811
812
813
814 for ac_prog in bison
815 do
816 # Extract the first word of "$ac_prog", so it can be a program name with args.
817 set dummy $ac_prog; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
820   echo $ac_n "(cached) $ac_c" 1>&6
821 else
822   if test -n "$BISON"; then
823   ac_cv_prog_BISON="$BISON" # Let the user override the test.
824 else
825   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
826   for ac_dir in $PATH; do
827     test -z "$ac_dir" && ac_dir=.
828     if test -f $ac_dir/$ac_word; then
829       ac_cv_prog_BISON="$ac_prog"
830       break
831     fi
832   done
833   IFS="$ac_save_ifs"
834 fi
835 fi
836 BISON="$ac_cv_prog_BISON"
837 if test -n "$BISON"; then
838   echo "$ac_t""$BISON" 1>&6
839 else
840   echo "$ac_t""no" 1>&6
841 fi
842
843 test -n "$BISON" && break
844 done
845 test -n "$BISON" || BISON="error"
846
847 for ac_prog in flex
848 do
849 # Extract the first word of "$ac_prog", so it can be a program name with args.
850 set dummy $ac_prog; ac_word=$2
851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
853   echo $ac_n "(cached) $ac_c" 1>&6
854 else
855   if test -n "$FLEX"; then
856   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
857 else
858   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
859   for ac_dir in $PATH; do
860     test -z "$ac_dir" && ac_dir=.
861     if test -f $ac_dir/$ac_word; then
862       ac_cv_prog_FLEX="$ac_prog"
863       break
864     fi
865   done
866   IFS="$ac_save_ifs"
867 fi
868 fi
869 FLEX="$ac_cv_prog_FLEX"
870 if test -n "$FLEX"; then
871   echo "$ac_t""$FLEX" 1>&6
872 else
873   echo "$ac_t""no" 1>&6
874 fi
875
876 test -n "$FLEX" && break
877 done
878 test -n "$FLEX" || FLEX="error"
879
880 for ac_prog in make
881 do
882 # Extract the first word of "$ac_prog", so it can be a program name with args.
883 set dummy $ac_prog; ac_word=$2
884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
885 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
886   echo $ac_n "(cached) $ac_c" 1>&6
887 else
888   if test -n "$MAKE"; then
889   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
890 else
891   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
892   for ac_dir in $PATH; do
893     test -z "$ac_dir" && ac_dir=.
894     if test -f $ac_dir/$ac_word; then
895       ac_cv_prog_MAKE="$ac_prog"
896       break
897     fi
898   done
899   IFS="$ac_save_ifs"
900 fi
901 fi
902 MAKE="$ac_cv_prog_MAKE"
903 if test -n "$MAKE"; then
904   echo "$ac_t""$MAKE" 1>&6
905 else
906   echo "$ac_t""no" 1>&6
907 fi
908
909 test -n "$MAKE" && break
910 done
911 test -n "$MAKE" || MAKE="error"
912
913 for ac_prog in pod2man
914 do
915 # Extract the first word of "$ac_prog", so it can be a program name with args.
916 set dummy $ac_prog; ac_word=$2
917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
919   echo $ac_n "(cached) $ac_c" 1>&6
920 else
921   if test -n "$PODMAN"; then
922   ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
923 else
924   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
925   for ac_dir in $PATH; do
926     test -z "$ac_dir" && ac_dir=.
927     if test -f $ac_dir/$ac_word; then
928       ac_cv_prog_PODMAN="$ac_prog"
929       break
930     fi
931   done
932   IFS="$ac_save_ifs"
933 fi
934 fi
935 PODMAN="$ac_cv_prog_PODMAN"
936 if test -n "$PODMAN"; then
937   echo "$ac_t""$PODMAN" 1>&6
938 else
939   echo "$ac_t""no" 1>&6
940 fi
941
942 test -n "$PODMAN" && break
943 done
944 test -n "$PODMAN" || PODMAN="error"
945
946
947 if test $TEXPREFIX = auto ; then
948     
949
950     # do something sensible if root hasn't specced dir yet attempts install
951
952     echo $ac_n "checking TeX installation directory""... $ac_c" 1>&6
953
954     ac_tmp_prefix=$prefix
955     test "x$ac_tmp_prefix" = xNONE && ac_tmp_prefix=$ac_default_prefix
956
957     for texdir in $ac_tmp_prefix $ac_tmp_prefix/lib; do
958         if test -d $texdir/texmf; then
959             TEXTOP=$texdir/texmf
960             break
961         else    
962         if test -d $texdir/tex; then 
963             TEXTOP=$texdir/tex
964             break
965         fi
966         fi
967     done
968     TEXPREFIX=$ac_tmp_prefix/lib/texmf/tex
969     if test x = "x$TEXTOP"; then
970         echo "configure: warning: Cannot determine a tex-directory. Please use --enable-texprefix" 1>&2
971     else
972         TEXPREFIX=`$FIND $TEXTOP -type d -a -name tex -print |sort|head -1`
973     fi
974     fi
975
976     echo "$ac_t""$TEXPREFIX" 1>&6
977
978 fi
979
980 if test $MAKE = "error" 
981 then
982         { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
983 else
984         $MAKE -v| grep -q GNU
985         if test "$?" = 1
986         then
987                 echo "configure: warning: Please install *GNU* make" 1>&2
988         fi
989 fi
990
991
992 if test $BISON = "error" 
993 then
994         echo "configure: warning: can't find bison. Please install Bison (1.24 or better)" 1>&2
995 fi
996
997 if test $PODMAN = "error" 
998 then
999         echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
1000 fi
1001
1002 if test $FLEX = "error" 
1003 then
1004         echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1005 fi
1006
1007 if $CXX --version | grep -q '2\.7'
1008 then
1009         true
1010 else
1011         echo "configure: warning: can't find g++ 2.7" 1>&2
1012 fi
1013
1014 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1015 if test -z "$CXXCPP"; then
1016 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1017   echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019   ac_ext=C
1020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1021 ac_cpp='$CXXCPP $CPPFLAGS'
1022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1023 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1024   CXXCPP="${CXX-g++} -E"
1025   cat > conftest.$ac_ext <<EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1028 #include <stdlib.h>
1029 EOF
1030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031 { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032 ac_err=`grep -v '^ *+' conftest.out`
1033 if test -z "$ac_err"; then
1034   :
1035 else
1036   echo "$ac_err" >&5
1037   rm -rf conftest*
1038   CXXCPP=/lib/cpp
1039 fi
1040 rm -f conftest*
1041   ac_cv_prog_CXXCPP="$CXXCPP"
1042 fi
1043 fi
1044 CXXCPP="$ac_cv_prog_CXXCPP"
1045 echo "$ac_t""$CXXCPP" 1>&6
1046
1047 ac_safe=`echo "FlexLexer.h" | tr './\055' '___'`
1048 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1050   echo $ac_n "(cached) $ac_c" 1>&6
1051 else
1052   cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1055 #include <FlexLexer.h>
1056 EOF
1057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058 { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059 ac_err=`grep -v '^ *+' conftest.out`
1060 if test -z "$ac_err"; then
1061   rm -rf conftest*
1062   eval "ac_cv_header_$ac_safe=yes"
1063 else
1064   echo "$ac_err" >&5
1065   rm -rf conftest*
1066   eval "ac_cv_header_$ac_safe=no"
1067 fi
1068 rm -f conftest*
1069 fi
1070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1071   echo "$ac_t""yes" 1>&6
1072   true
1073 else
1074   echo "$ac_t""no" 1>&6
1075 { echo "configure: error: can't find flex header. Please install Flex headers correctly" 1>&2; exit 1; }
1076 fi
1077
1078 subdirs="flower"
1079
1080 trap '' 1 2 15
1081 cat > confcache <<\EOF
1082 # This file is a shell script that caches the results of configure
1083 # tests run on this system so they can be shared between configure
1084 # scripts and configure runs.  It is not useful on other systems.
1085 # If it contains results you don't want to keep, you may remove or edit it.
1086 #
1087 # By default, configure uses ./config.cache as the cache file,
1088 # creating it if it does not exist already.  You can give configure
1089 # the --cache-file=FILE option to use a different cache file; that is
1090 # what configure does when it calls configure scripts in
1091 # subdirectories, so they share the cache.
1092 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1093 # config.status only pays attention to the cache file if you give it the
1094 # --recheck option to rerun configure.
1095 #
1096 EOF
1097 # Ultrix sh set writes to stderr and can't be redirected directly,
1098 # and sets the high bit in the cache file unless we assign to the vars.
1099 (set) 2>&1 |
1100   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1101   >> confcache
1102 if cmp -s $cache_file confcache; then
1103   :
1104 else
1105   if test -w $cache_file; then
1106     echo "updating cache $cache_file"
1107     cat confcache > $cache_file
1108   else
1109     echo "not updating unwritable cache $cache_file"
1110   fi
1111 fi
1112 rm -f confcache
1113
1114 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1115
1116 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1117 # Let make expand exec_prefix.
1118 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1119
1120 # Any assignment to VPATH causes Sun make to only execute
1121 # the first set of double-colon rules, so remove it if not needed.
1122 # If there is a colon in the path, we need to keep it.
1123 if test "x$srcdir" = x.; then
1124   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1125 fi
1126
1127 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1128
1129 # Transform confdefs.h into DEFS.
1130 # Protect against shell expansion while executing Makefile rules.
1131 # Protect against Makefile macro expansion.
1132 cat > conftest.defs <<\EOF
1133 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1134 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1135 s%\[%\\&%g
1136 s%\]%\\&%g
1137 s%\$%$$%g
1138 EOF
1139 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1140 rm -f conftest.defs
1141
1142
1143 # Without the "./", some shells look in PATH for config.status.
1144 : ${CONFIG_STATUS=./config.status}
1145
1146 echo creating $CONFIG_STATUS
1147 rm -f $CONFIG_STATUS
1148 cat > $CONFIG_STATUS <<EOF
1149 #! /bin/sh
1150 # Generated automatically by configure.
1151 # Run this file to recreate the current configuration.
1152 # This directory was configured as follows,
1153 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1154 #
1155 # $0 $ac_configure_args
1156 #
1157 # Compiler output produced by configure, useful for debugging
1158 # configure, is in ./config.log if it exists.
1159
1160 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1161 for ac_option
1162 do
1163   case "\$ac_option" in
1164   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1165     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1166     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1167   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1168     echo "$CONFIG_STATUS generated by autoconf version 2.10"
1169     exit 0 ;;
1170   -help | --help | --hel | --he | --h)
1171     echo "\$ac_cs_usage"; exit 0 ;;
1172   *) echo "\$ac_cs_usage"; exit 1 ;;
1173   esac
1174 done
1175
1176 ac_given_srcdir=$srcdir
1177 ac_given_INSTALL="$INSTALL"
1178
1179 trap 'rm -fr `echo "make/out/Configure_variables.make:make/Configure_variables.make.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1180 EOF
1181 cat >> $CONFIG_STATUS <<EOF
1182
1183 # Protect against being on the right side of a sed subst in config.status.
1184 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1185  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1186 $ac_vpsub
1187 $extrasub
1188 s%@CFLAGS@%$CFLAGS%g
1189 s%@CPPFLAGS@%$CPPFLAGS%g
1190 s%@CXXFLAGS@%$CXXFLAGS%g
1191 s%@DEFS@%$DEFS%g
1192 s%@LDFLAGS@%$LDFLAGS%g
1193 s%@LIBS@%$LIBS%g
1194 s%@exec_prefix@%$exec_prefix%g
1195 s%@prefix@%$prefix%g
1196 s%@program_transform_name@%$program_transform_name%g
1197 s%@bindir@%$bindir%g
1198 s%@sbindir@%$sbindir%g
1199 s%@libexecdir@%$libexecdir%g
1200 s%@datadir@%$datadir%g
1201 s%@sysconfdir@%$sysconfdir%g
1202 s%@sharedstatedir@%$sharedstatedir%g
1203 s%@localstatedir@%$localstatedir%g
1204 s%@libdir@%$libdir%g
1205 s%@includedir@%$includedir%g
1206 s%@oldincludedir@%$oldincludedir%g
1207 s%@infodir@%$infodir%g
1208 s%@mandir@%$mandir%g
1209 s%@CXX@%$CXX%g
1210 s%@RANLIB@%$RANLIB%g
1211 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1212 s%@INSTALL_DATA@%$INSTALL_DATA%g
1213 s%@FIND@%$FIND%g
1214 s%@DEFINES@%$DEFINES%g
1215 s%@COMPILEINFO@%$COMPILEINFO%g
1216 s%@AUTOHEADER@%$AUTOHEADER%g
1217 s%@BISON@%$BISON%g
1218 s%@FLEX@%$FLEX%g
1219 s%@TEXPREFIX@%$TEXPREFIX%g
1220 s%@MAKE@%$MAKE%g
1221 s%@PODMAN@%$PODMAN%g
1222 s%@CXXCPP@%$CXXCPP%g
1223 s%@subdirs@%$subdirs%g
1224
1225 CEOF
1226 EOF
1227 cat >> $CONFIG_STATUS <<EOF
1228
1229 CONFIG_FILES=\${CONFIG_FILES-"make/out/Configure_variables.make:make/Configure_variables.make.in"}
1230 EOF
1231 cat >> $CONFIG_STATUS <<\EOF
1232 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1233   # Support "outfile[:infile]", defaulting infile="outfile.in".
1234   case "$ac_file" in
1235   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1236        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1237   *) ac_file_in="${ac_file}.in" ;;
1238   esac
1239
1240   # Adjust relative srcdir, etc. for subdirectories.
1241
1242   # Remove last slash and all that follows it.  Not all systems have dirname.
1243   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1244   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1245     # The file is in a subdirectory.
1246     test ! -d "$ac_dir" && mkdir "$ac_dir"
1247     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1248     # A "../" for each directory in $ac_dir_suffix.
1249     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1250   else
1251     ac_dir_suffix= ac_dots=
1252   fi
1253
1254   case "$ac_given_srcdir" in
1255   .)  srcdir=.
1256       if test -z "$ac_dots"; then top_srcdir=.
1257       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1258   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1259   *) # Relative path.
1260     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1261     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1262   esac
1263
1264   case "$ac_given_INSTALL" in
1265   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1266   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1267   esac
1268   echo creating "$ac_file"
1269   rm -f "$ac_file"
1270   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1271   case "$ac_file" in
1272   *Makefile*) ac_comsub="1i\\
1273 # $configure_input" ;;
1274   *) ac_comsub= ;;
1275   esac
1276   sed -e "$ac_comsub
1277 s%@configure_input@%$configure_input%g
1278 s%@srcdir@%$srcdir%g
1279 s%@top_srcdir@%$top_srcdir%g
1280 s%@INSTALL@%$INSTALL%g
1281 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1282 fi; done
1283 rm -f conftest.subs
1284
1285
1286
1287 exit 0
1288 EOF
1289 chmod +x $CONFIG_STATUS
1290 rm -fr confdefs* $ac_clean_files
1291 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1292
1293 if test "$no_recursion" != yes; then
1294
1295   # Remove --cache-file and --srcdir arguments so they do not pile up.
1296   ac_sub_configure_args=
1297   ac_prev=
1298   for ac_arg in $ac_configure_args; do
1299     if test -n "$ac_prev"; then
1300       ac_prev=
1301       continue
1302     fi
1303     case "$ac_arg" in
1304     -cache-file | --cache-file | --cache-fil | --cache-fi \
1305     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1306       ac_prev=cache_file ;;
1307     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1308     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1309       ;;
1310     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311       ac_prev=srcdir ;;
1312     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313       ;;
1314     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1315     esac
1316   done
1317
1318   for ac_config_dir in flower; do
1319
1320     # Do not complain, so a configure script can configure whichever
1321     # parts of a large source tree are present.
1322     if test ! -d $srcdir/$ac_config_dir; then
1323       continue
1324     fi
1325
1326     echo configuring in $ac_config_dir
1327
1328     case "$srcdir" in
1329     .) ;;
1330     *)
1331       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1332       else
1333         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1334       fi
1335       ;;
1336     esac
1337
1338     ac_popdir=`pwd`
1339     cd $ac_config_dir
1340
1341     case "$srcdir" in
1342     .) # No --srcdir option.  We are building in place.
1343       ac_sub_srcdir=$srcdir ;;
1344     /*) # Absolute path.
1345       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1346     *) # Relative path.
1347       ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
1348     esac
1349
1350     # Check for guested configure; otherwise get Cygnus style configure.
1351     if test -f $ac_sub_srcdir/configure; then
1352       ac_sub_configure=$ac_sub_srcdir/configure
1353     elif test -f $ac_sub_srcdir/configure.in; then
1354       ac_sub_configure=$ac_configure
1355     else
1356       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1357       ac_sub_configure=
1358     fi
1359
1360     # The recursion is here.
1361     if test -n "$ac_sub_configure"; then
1362
1363       # Make the cache file name correct relative to the subdirectory.
1364       # A "../" for each directory in /$ac_config_dir.
1365       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1366       case "$cache_file" in
1367       /*) ac_sub_cache_file=$cache_file ;;
1368       *) # Relative path.
1369         ac_sub_cache_file="$ac_dots$cache_file" ;;
1370       esac
1371   case "$ac_given_INSTALL" in
1372         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1373         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1374         esac
1375
1376       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1377       # The eval makes quoting arguments work.
1378       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1379       then :
1380       else
1381         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1382       fi
1383     fi
1384
1385     cd $ac_popdir
1386   done
1387 fi
1388
1389
1390
1391
1392 eval "DIR_DATADIR=$datadir"
1393 DIR_DATADIR="$DIR_DATADIR/lilypond"
1394 echo $ac_n "checking ""... $ac_c" 1>&6
1395
1396 cat << EOF > lib/out/config.hh
1397
1398 /* automatically generated by configure */
1399 /* include this file only once! */
1400
1401 #define  DIR_DATADIR "$DIR_DATADIR"
1402
1403 EOF
1404
1405 CXX="$ac_cv_prog_CXX" bin/make_version >> lib/out/config.hh
1406
1407 touch make/out/Site.make
1408
1409 # ugr
1410 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1411 )
1412 # rgu
1413 sed 's/TOPLEVEL_//g' <  .version >  lily/.version
1414 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1415 )
1416  (cd flower;
1417 )
1418 cat << END
1419
1420 Finished configuring. For making everything, do:
1421
1422         make all
1423
1424 If you only want help on the make targets, do a
1425
1426         make help
1427
1428 END