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