]> git.donarmstrong.com Git - lilypond.git/blob - configure
bd351d2ca46ef8a85824ebbee977e8dadc5364d9
[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   printing       set debug printing"
16 ac_help="$ac_help
17   checking       set runtime checks"
18 ac_help="$ac_help
19   debug          set debug info"
20 ac_help="$ac_help
21   optimise       use maximal speed optimisations"
22 ac_help="$ac_help
23   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/lib/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 ac_ext=C
528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CXXCPP $CPPFLAGS'
530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532
533
534 # Check whether --enable-printing or --disable-printing was given.
535 if test "${enable_printing+set}" = set; then
536   enableval="$enable_printing"
537   :
538 else
539   DEFINES="$DEFINES -DNPRINT=1"
540 fi
541
542 # Check whether --enable-checking or --disable-checking was given.
543 if test "${enable_checking+set}" = set; then
544   enableval="$enable_checking"
545   :
546 else
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   DEFINES="$DEFINES -g"
554 fi
555
556 # Check whether --enable-optimise or --disable-optimise was given.
557 if test "${enable_optimise+set}" = set; then
558   enableval="$enable_optimise"
559   DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
560 fi
561
562 # Check whether --enable-profiling or --disable-profiling was given.
563 if test "${enable_profiling+set}" = set; then
564   enableval="$enable_profiling"
565   DEFINES="$DEFINES -pg"
566 fi
567
568 # Check whether --enable-texprefix or --disable-texprefix was given.
569 if test "${enable_texprefix+set}" = set; then
570   enableval="$enable_texprefix"
571   TEXPREFIX=$enableval
572 else
573   TEXPREFIX=auto 
574 fi
575
576
577 AUTOHEADER="This file was automatically generated by configure"
578 CXXFLAGS=${CXXFLAGS:-""}        # we don't want -g -O junk
579 for ac_prog in $CCC c++ g++ gcc CC cxx
580 do
581 # Extract the first word of "$ac_prog", so it can be a program name with args.
582 set dummy $ac_prog; ac_word=$2
583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
585   echo $ac_n "(cached) $ac_c" 1>&6
586 else
587   if test -n "$CXX"; then
588   ac_cv_prog_CXX="$CXX" # Let the user override the test.
589 else
590   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
591   for ac_dir in $PATH; do
592     test -z "$ac_dir" && ac_dir=.
593     if test -f $ac_dir/$ac_word; then
594       ac_cv_prog_CXX="$ac_prog"
595       break
596     fi
597   done
598   IFS="$ac_save_ifs"
599 fi
600 fi
601 CXX="$ac_cv_prog_CXX"
602 if test -n "$CXX"; then
603   echo "$ac_t""$CXX" 1>&6
604 else
605   echo "$ac_t""no" 1>&6
606 fi
607
608 test -n "$CXX" && break
609 done
610 test -n "$CXX" || CXX="gcc"
611
612
613 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
614 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
615   echo $ac_n "(cached) $ac_c" 1>&6
616 else
617   cat > conftest.C <<EOF
618 #ifdef __GNUC__
619   yes;
620 #endif
621 EOF
622 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
623   ac_cv_prog_gxx=yes
624 else
625   ac_cv_prog_gxx=no
626 fi
627 fi
628
629 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
630 if test $ac_cv_prog_gxx = yes; then
631   GXX=yes
632   if test "${CXXFLAGS+set}" != set; then
633     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
634 if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
635   echo $ac_n "(cached) $ac_c" 1>&6
636 else
637   echo 'void f(){}' > conftest.cc
638 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
639   ac_cv_prog_gxx_g=yes
640 else
641   ac_cv_prog_gxx_g=no
642 fi
643 rm -f conftest*
644
645 fi
646
647 echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
648     if test $ac_cv_prog_gxx_g = yes; then
649       CXXFLAGS="-g -O"
650     else
651       CXXFLAGS="-O"
652     fi
653   fi
654 else
655   GXX=
656   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
657 fi
658
659 # Extract the first word of "ranlib", so it can be a program name with args.
660 set dummy ranlib; ac_word=$2
661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
662 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
663   echo $ac_n "(cached) $ac_c" 1>&6
664 else
665   if test -n "$RANLIB"; then
666   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
667 else
668   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
669   for ac_dir in $PATH; do
670     test -z "$ac_dir" && ac_dir=.
671     if test -f $ac_dir/$ac_word; then
672       ac_cv_prog_RANLIB="ranlib"
673       break
674     fi
675   done
676   IFS="$ac_save_ifs"
677   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
678 fi
679 fi
680 RANLIB="$ac_cv_prog_RANLIB"
681 if test -n "$RANLIB"; then
682   echo "$ac_t""$RANLIB" 1>&6
683 else
684   echo "$ac_t""no" 1>&6
685 fi
686
687 ac_aux_dir=
688 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
689   if test -f $ac_dir/install-sh; then
690     ac_aux_dir=$ac_dir
691     ac_install_sh="$ac_aux_dir/install-sh -c"
692     break
693   elif test -f $ac_dir/install.sh; then
694     ac_aux_dir=$ac_dir
695     ac_install_sh="$ac_aux_dir/install.sh -c"
696     break
697   fi
698 done
699 if test -z "$ac_aux_dir"; then
700   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
701 fi
702 ac_config_guess=$ac_aux_dir/config.guess
703 ac_config_sub=$ac_aux_dir/config.sub
704 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
705
706 # Find a good install program.  We prefer a C program (faster),
707 # so one script is as good as another.  But avoid the broken or
708 # incompatible versions:
709 # SysV /etc/install, /usr/sbin/install
710 # SunOS /usr/etc/install
711 # IRIX /sbin/install
712 # AIX /bin/install
713 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
714 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
715 # ./install, which can be erroneously created by make from ./install.sh.
716 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
717 if test -z "$INSTALL"; then
718 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
719   echo $ac_n "(cached) $ac_c" 1>&6
720 else
721     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
722   for ac_dir in $PATH; do
723     # Account for people who put trailing slashes in PATH elements.
724     case "$ac_dir/" in
725     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
726     *)
727       # OSF1 and SCO ODT 3.0 have their own names for install.
728       for ac_prog in ginstall installbsd scoinst install; do
729         if test -f $ac_dir/$ac_prog; then
730           if test $ac_prog = install &&
731             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
732             # AIX install.  It has an incompatible calling convention.
733             # OSF/1 installbsd also uses dspmsg, but is usable.
734             :
735           else
736             ac_cv_path_install="$ac_dir/$ac_prog -c"
737             break 2
738           fi
739         fi
740       done
741       ;;
742     esac
743   done
744   IFS="$ac_save_ifs"
745
746 fi
747   if test "${ac_cv_path_install+set}" = set; then
748     INSTALL="$ac_cv_path_install"
749   else
750     # As a last resort, use the slow shell script.  We don't cache a
751     # path for INSTALL within a source directory, because that will
752     # break other packages using the cache if that directory is
753     # removed, or if the path is relative.
754     INSTALL="$ac_install_sh"
755   fi
756 fi
757 echo "$ac_t""$INSTALL" 1>&6
758
759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
760 # It thinks the first close brace ends the variable substitution.
761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
762
763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
764
765 for ac_prog in find
766 do
767 # Extract the first word of "$ac_prog", so it can be a program name with args.
768 set dummy $ac_prog; ac_word=$2
769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
770 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
771   echo $ac_n "(cached) $ac_c" 1>&6
772 else
773   if test -n "$FIND"; then
774   ac_cv_prog_FIND="$FIND" # Let the user override the test.
775 else
776   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
777   for ac_dir in $PATH; do
778     test -z "$ac_dir" && ac_dir=.
779     if test -f $ac_dir/$ac_word; then
780       ac_cv_prog_FIND="$ac_prog"
781       break
782     fi
783   done
784   IFS="$ac_save_ifs"
785 fi
786 fi
787 FIND="$ac_cv_prog_FIND"
788 if test -n "$FIND"; then
789   echo "$ac_t""$FIND" 1>&6
790 else
791   echo "$ac_t""no" 1>&6
792 fi
793
794 test -n "$FIND" && break
795 done
796 test -n "$FIND" || FIND="error"
797
798
799 if test FIND = error; then
800    echo "configure: warning: Couldn't find \`find'.  Please use --enable-texprefix" 1>&2
801 else 
802     
803
804
805
806
807
808
809
810
811
812 for ac_prog in bison
813 do
814 # Extract the first word of "$ac_prog", so it can be a program name with args.
815 set dummy $ac_prog; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
818   echo $ac_n "(cached) $ac_c" 1>&6
819 else
820   if test -n "$BISON"; then
821   ac_cv_prog_BISON="$BISON" # Let the user override the test.
822 else
823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
824   for ac_dir in $PATH; do
825     test -z "$ac_dir" && ac_dir=.
826     if test -f $ac_dir/$ac_word; then
827       ac_cv_prog_BISON="$ac_prog"
828       break
829     fi
830   done
831   IFS="$ac_save_ifs"
832 fi
833 fi
834 BISON="$ac_cv_prog_BISON"
835 if test -n "$BISON"; then
836   echo "$ac_t""$BISON" 1>&6
837 else
838   echo "$ac_t""no" 1>&6
839 fi
840
841 test -n "$BISON" && break
842 done
843 test -n "$BISON" || BISON="error"
844
845 for ac_prog in flex
846 do
847 # Extract the first word of "$ac_prog", so it can be a program name with args.
848 set dummy $ac_prog; ac_word=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
851   echo $ac_n "(cached) $ac_c" 1>&6
852 else
853   if test -n "$FLEX"; then
854   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
855 else
856   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
857   for ac_dir in $PATH; do
858     test -z "$ac_dir" && ac_dir=.
859     if test -f $ac_dir/$ac_word; then
860       ac_cv_prog_FLEX="$ac_prog"
861       break
862     fi
863   done
864   IFS="$ac_save_ifs"
865 fi
866 fi
867 FLEX="$ac_cv_prog_FLEX"
868 if test -n "$FLEX"; then
869   echo "$ac_t""$FLEX" 1>&6
870 else
871   echo "$ac_t""no" 1>&6
872 fi
873
874 test -n "$FLEX" && break
875 done
876 test -n "$FLEX" || FLEX="error"
877
878 for ac_prog in make
879 do
880 # Extract the first word of "$ac_prog", so it can be a program name with args.
881 set dummy $ac_prog; ac_word=$2
882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   if test -n "$MAKE"; then
887   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
888 else
889   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
890   for ac_dir in $PATH; do
891     test -z "$ac_dir" && ac_dir=.
892     if test -f $ac_dir/$ac_word; then
893       ac_cv_prog_MAKE="$ac_prog"
894       break
895     fi
896   done
897   IFS="$ac_save_ifs"
898 fi
899 fi
900 MAKE="$ac_cv_prog_MAKE"
901 if test -n "$MAKE"; then
902   echo "$ac_t""$MAKE" 1>&6
903 else
904   echo "$ac_t""no" 1>&6
905 fi
906
907 test -n "$MAKE" && break
908 done
909 test -n "$MAKE" || MAKE="error"
910
911 for ac_prog in pod2man
912 do
913 # Extract the first word of "$ac_prog", so it can be a program name with args.
914 set dummy $ac_prog; ac_word=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
917   echo $ac_n "(cached) $ac_c" 1>&6
918 else
919   if test -n "$PODMAN"; then
920   ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
921 else
922   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
923   for ac_dir in $PATH; do
924     test -z "$ac_dir" && ac_dir=.
925     if test -f $ac_dir/$ac_word; then
926       ac_cv_prog_PODMAN="$ac_prog"
927       break
928     fi
929   done
930   IFS="$ac_save_ifs"
931 fi
932 fi
933 PODMAN="$ac_cv_prog_PODMAN"
934 if test -n "$PODMAN"; then
935   echo "$ac_t""$PODMAN" 1>&6
936 else
937   echo "$ac_t""no" 1>&6
938 fi
939
940 test -n "$PODMAN" && break
941 done
942 test -n "$PODMAN" || PODMAN="error"
943
944
945 if test $TEXPREFIX = auto ; then
946     
947
948     # do something sensible if root hasn't specced dir yet attempts install
949
950     echo $ac_n "checking TeX installation directory""... $ac_c" 1>&6
951
952     ac_tmp_prefix=$prefix
953     test "x$ac_tmp_prefix" = xNONE && ac_tmp_prefix=$ac_default_prefix
954
955     for texdir in $ac_tmp_prefix $ac_tmp_prefix/lib; do
956         if test -d $texdir/texmf; then
957             TEXTOP=$texdir/texmf
958             break
959         else    
960         if test -d $texdir/tex; then 
961             TEXTOP=$texdir/tex
962             break
963         fi
964         fi
965     done
966     TEXPREFIX=$ac_tmp_prefix/lib/texmf/tex
967     if test x = "x$TEXTOP"; then
968         echo "configure: warning: Cannot determine a tex-directory. Please use --enable-texprefix" 1>&2
969     else
970         TEXPREFIX=`$FIND $TEXTOP -type d -a -name tex -print |sort|head -1`
971     fi
972     fi
973
974     echo "$ac_t""$TEXPREFIX" 1>&6
975
976 fi
977
978 if test $MAKE = "error" 
979 then
980         { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
981 else
982         $MAKE -v| grep -q GNU
983         if test "$?" = 1
984         then
985                 echo "configure: warning: Please install *GNU* make" 1>&2
986         fi
987 fi
988
989
990 if test $BISON = "error" 
991 then
992         echo "configure: warning: can't find bison. Please install Bison (1.24 or better)" 1>&2
993 fi
994
995 if test $PODMAN = "error" 
996 then
997         echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
998 fi
999
1000 if test $FLEX = "error" 
1001 then
1002         echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1003 fi
1004
1005 if $CXX --version | grep -q '2\.7'
1006 then
1007         true
1008 else
1009         echo "configure: warning: can't find g++ 2.7" 1>&2
1010 fi
1011
1012 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1013 if test -z "$CXXCPP"; then
1014 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1015   echo $ac_n "(cached) $ac_c" 1>&6
1016 else
1017   ac_ext=C
1018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1019 ac_cpp='$CXXCPP $CPPFLAGS'
1020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1021 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1022   CXXCPP="${CXX-g++} -E"
1023   cat > conftest.$ac_ext <<EOF
1024 #line 1025 "configure"
1025 #include "confdefs.h"
1026 #include <stdlib.h>
1027 EOF
1028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1029 { (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1030 ac_err=`grep -v '^ *+' conftest.out`
1031 if test -z "$ac_err"; then
1032   :
1033 else
1034   echo "$ac_err" >&5
1035   rm -rf conftest*
1036   CXXCPP=/lib/cpp
1037 fi
1038 rm -f conftest*
1039   ac_cv_prog_CXXCPP="$CXXCPP"
1040 fi
1041 fi
1042 CXXCPP="$ac_cv_prog_CXXCPP"
1043 echo "$ac_t""$CXXCPP" 1>&6
1044
1045 ac_safe=`echo "FlexLexer.h" | tr './\055' '___'`
1046 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1047 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1048   echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050   cat > conftest.$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1053 #include <FlexLexer.h>
1054 EOF
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out`
1058 if test -z "$ac_err"; then
1059   rm -rf conftest*
1060   eval "ac_cv_header_$ac_safe=yes"
1061 else
1062   echo "$ac_err" >&5
1063   rm -rf conftest*
1064   eval "ac_cv_header_$ac_safe=no"
1065 fi
1066 rm -f conftest*
1067 fi
1068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1069   echo "$ac_t""yes" 1>&6
1070   true
1071 else
1072   echo "$ac_t""no" 1>&6
1073 { echo "configure: error: can't find flex header. Please install Flex headers correctly" 1>&2; exit 1; }
1074 fi
1075
1076 subdirs="flower"
1077
1078 trap '' 1 2 15
1079 cat > confcache <<\EOF
1080 # This file is a shell script that caches the results of configure
1081 # tests run on this system so they can be shared between configure
1082 # scripts and configure runs.  It is not useful on other systems.
1083 # If it contains results you don't want to keep, you may remove or edit it.
1084 #
1085 # By default, configure uses ./config.cache as the cache file,
1086 # creating it if it does not exist already.  You can give configure
1087 # the --cache-file=FILE option to use a different cache file; that is
1088 # what configure does when it calls configure scripts in
1089 # subdirectories, so they share the cache.
1090 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1091 # config.status only pays attention to the cache file if you give it the
1092 # --recheck option to rerun configure.
1093 #
1094 EOF
1095 # Ultrix sh set writes to stderr and can't be redirected directly,
1096 # and sets the high bit in the cache file unless we assign to the vars.
1097 (set) 2>&1 |
1098   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1099   >> confcache
1100 if cmp -s $cache_file confcache; then
1101   :
1102 else
1103   if test -w $cache_file; then
1104     echo "updating cache $cache_file"
1105     cat confcache > $cache_file
1106   else
1107     echo "not updating unwritable cache $cache_file"
1108   fi
1109 fi
1110 rm -f confcache
1111
1112 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1113
1114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1115 # Let make expand exec_prefix.
1116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1117
1118 # Any assignment to VPATH causes Sun make to only execute
1119 # the first set of double-colon rules, so remove it if not needed.
1120 # If there is a colon in the path, we need to keep it.
1121 if test "x$srcdir" = x.; then
1122   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1123 fi
1124
1125 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1126
1127 # Transform confdefs.h into DEFS.
1128 # Protect against shell expansion while executing Makefile rules.
1129 # Protect against Makefile macro expansion.
1130 cat > conftest.defs <<\EOF
1131 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1132 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1133 s%\[%\\&%g
1134 s%\]%\\&%g
1135 s%\$%$$%g
1136 EOF
1137 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1138 rm -f conftest.defs
1139
1140
1141 # Without the "./", some shells look in PATH for config.status.
1142 : ${CONFIG_STATUS=./config.status}
1143
1144 echo creating $CONFIG_STATUS
1145 rm -f $CONFIG_STATUS
1146 cat > $CONFIG_STATUS <<EOF
1147 #! /bin/sh
1148 # Generated automatically by configure.
1149 # Run this file to recreate the current configuration.
1150 # This directory was configured as follows,
1151 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1152 #
1153 # $0 $ac_configure_args
1154 #
1155 # Compiler output produced by configure, useful for debugging
1156 # configure, is in ./config.log if it exists.
1157
1158 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1159 for ac_option
1160 do
1161   case "\$ac_option" in
1162   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1163     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1164     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1165   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1166     echo "$CONFIG_STATUS generated by autoconf version 2.10"
1167     exit 0 ;;
1168   -help | --help | --hel | --he | --h)
1169     echo "\$ac_cs_usage"; exit 0 ;;
1170   *) echo "\$ac_cs_usage"; exit 1 ;;
1171   esac
1172 done
1173
1174 ac_given_srcdir=$srcdir
1175 ac_given_INSTALL="$INSTALL"
1176
1177 trap 'rm -fr `echo "make/out/Configure_variables.make:make/Configure_variables.make.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1178 EOF
1179 cat >> $CONFIG_STATUS <<EOF
1180
1181 # Protect against being on the right side of a sed subst in config.status.
1182 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1183  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1184 $ac_vpsub
1185 $extrasub
1186 s%@CFLAGS@%$CFLAGS%g
1187 s%@CPPFLAGS@%$CPPFLAGS%g
1188 s%@CXXFLAGS@%$CXXFLAGS%g
1189 s%@DEFS@%$DEFS%g
1190 s%@LDFLAGS@%$LDFLAGS%g
1191 s%@LIBS@%$LIBS%g
1192 s%@exec_prefix@%$exec_prefix%g
1193 s%@prefix@%$prefix%g
1194 s%@program_transform_name@%$program_transform_name%g
1195 s%@bindir@%$bindir%g
1196 s%@sbindir@%$sbindir%g
1197 s%@libexecdir@%$libexecdir%g
1198 s%@datadir@%$datadir%g
1199 s%@sysconfdir@%$sysconfdir%g
1200 s%@sharedstatedir@%$sharedstatedir%g
1201 s%@localstatedir@%$localstatedir%g
1202 s%@libdir@%$libdir%g
1203 s%@includedir@%$includedir%g
1204 s%@oldincludedir@%$oldincludedir%g
1205 s%@infodir@%$infodir%g
1206 s%@mandir@%$mandir%g
1207 s%@CXX@%$CXX%g
1208 s%@RANLIB@%$RANLIB%g
1209 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1210 s%@INSTALL_DATA@%$INSTALL_DATA%g
1211 s%@FIND@%$FIND%g
1212 s%@DEFINES@%$DEFINES%g
1213 s%@COMPILEINFO@%$COMPILEINFO%g
1214 s%@AUTOHEADER@%$AUTOHEADER%g
1215 s%@BISON@%$BISON%g
1216 s%@FLEX@%$FLEX%g
1217 s%@TEXPREFIX@%$TEXPREFIX%g
1218 s%@MAKE@%$MAKE%g
1219 s%@PODMAN@%$PODMAN%g
1220 s%@CXXCPP@%$CXXCPP%g
1221 s%@subdirs@%$subdirs%g
1222
1223 CEOF
1224 EOF
1225 cat >> $CONFIG_STATUS <<EOF
1226
1227 CONFIG_FILES=\${CONFIG_FILES-"make/out/Configure_variables.make:make/Configure_variables.make.in"}
1228 EOF
1229 cat >> $CONFIG_STATUS <<\EOF
1230 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1231   # Support "outfile[:infile]", defaulting infile="outfile.in".
1232   case "$ac_file" in
1233   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1234        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1235   *) ac_file_in="${ac_file}.in" ;;
1236   esac
1237
1238   # Adjust relative srcdir, etc. for subdirectories.
1239
1240   # Remove last slash and all that follows it.  Not all systems have dirname.
1241   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1242   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1243     # The file is in a subdirectory.
1244     test ! -d "$ac_dir" && mkdir "$ac_dir"
1245     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1246     # A "../" for each directory in $ac_dir_suffix.
1247     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1248   else
1249     ac_dir_suffix= ac_dots=
1250   fi
1251
1252   case "$ac_given_srcdir" in
1253   .)  srcdir=.
1254       if test -z "$ac_dots"; then top_srcdir=.
1255       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1256   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1257   *) # Relative path.
1258     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1259     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1260   esac
1261
1262   case "$ac_given_INSTALL" in
1263   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1264   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1265   esac
1266   echo creating "$ac_file"
1267   rm -f "$ac_file"
1268   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1269   case "$ac_file" in
1270   *Makefile*) ac_comsub="1i\\
1271 # $configure_input" ;;
1272   *) ac_comsub= ;;
1273   esac
1274   sed -e "$ac_comsub
1275 s%@configure_input@%$configure_input%g
1276 s%@srcdir@%$srcdir%g
1277 s%@top_srcdir@%$top_srcdir%g
1278 s%@INSTALL@%$INSTALL%g
1279 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1280 fi; done
1281 rm -f conftest.subs
1282
1283
1284
1285 exit 0
1286 EOF
1287 chmod +x $CONFIG_STATUS
1288 rm -fr confdefs* $ac_clean_files
1289 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1290
1291 if test "$no_recursion" != yes; then
1292
1293   # Remove --cache-file and --srcdir arguments so they do not pile up.
1294   ac_sub_configure_args=
1295   ac_prev=
1296   for ac_arg in $ac_configure_args; do
1297     if test -n "$ac_prev"; then
1298       ac_prev=
1299       continue
1300     fi
1301     case "$ac_arg" in
1302     -cache-file | --cache-file | --cache-fil | --cache-fi \
1303     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1304       ac_prev=cache_file ;;
1305     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1306     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1307       ;;
1308     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1309       ac_prev=srcdir ;;
1310     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1311       ;;
1312     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1313     esac
1314   done
1315
1316   for ac_config_dir in flower; do
1317
1318     # Do not complain, so a configure script can configure whichever
1319     # parts of a large source tree are present.
1320     if test ! -d $srcdir/$ac_config_dir; then
1321       continue
1322     fi
1323
1324     echo configuring in $ac_config_dir
1325
1326     case "$srcdir" in
1327     .) ;;
1328     *)
1329       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1330       else
1331         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1332       fi
1333       ;;
1334     esac
1335
1336     ac_popdir=`pwd`
1337     cd $ac_config_dir
1338
1339     case "$srcdir" in
1340     .) # No --srcdir option.  We are building in place.
1341       ac_sub_srcdir=$srcdir ;;
1342     /*) # Absolute path.
1343       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1344     *) # Relative path.
1345       ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
1346     esac
1347
1348     # Check for guested configure; otherwise get Cygnus style configure.
1349     if test -f $ac_sub_srcdir/configure; then
1350       ac_sub_configure=$ac_sub_srcdir/configure
1351     elif test -f $ac_sub_srcdir/configure.in; then
1352       ac_sub_configure=$ac_configure
1353     else
1354       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1355       ac_sub_configure=
1356     fi
1357
1358     # The recursion is here.
1359     if test -n "$ac_sub_configure"; then
1360
1361       # Make the cache file name correct relative to the subdirectory.
1362       # A "../" for each directory in /$ac_config_dir.
1363       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1364       case "$cache_file" in
1365       /*) ac_sub_cache_file=$cache_file ;;
1366       *) # Relative path.
1367         ac_sub_cache_file="$ac_dots$cache_file" ;;
1368       esac
1369   case "$ac_given_INSTALL" in
1370         [/$]*) INSTALL="$ac_given_INSTALL" ;;
1371         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1372         esac
1373
1374       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1375       # The eval makes quoting arguments work.
1376       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1377       then :
1378       else
1379         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1380       fi
1381     fi
1382
1383     cd $ac_popdir
1384   done
1385 fi
1386
1387
1388
1389
1390 eval "DIR_DATADIR=$datadir"
1391 DIR_DATADIR="$DIR_DATADIR/lilypond"
1392 echo $ac_n "checking ""... $ac_c" 1>&6
1393
1394 cat << EOF > lib/out/config.hh
1395
1396 /* automatically generated by configure */
1397 /* include this file only once! */
1398
1399 #define  DIR_DATADIR "$DIR_DATADIR"
1400
1401 EOF
1402
1403 CXX="$ac_cv_prog_CXX" bin/make_version >> lib/out/config.hh
1404
1405 touch make/out/Site.make
1406
1407 # ugr
1408 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1409 )
1410 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1411 )
1412  (cd flower;
1413 )
1414 cat << END
1415
1416 Finished configuring. For making everything, do:
1417
1418         make all
1419
1420 If you only want help on the make targets, do a
1421
1422         make help
1423
1424 END