]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 0.1.59
[lilypond.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   enable-printing         turn on debug printing. Default: off"
16 ac_help="$ac_help
17   enable-checking         set runtime checks (assert calls). Default: on"
18 ac_help="$ac_help
19   enable-optimise         use maximal speed optimisations. Default: off"
20 ac_help="$ac_help
21   enable-profiling        compile with gprof support. Default: off"
22 ac_help="$ac_help
23   enable-debugging        set debug info. Default: on"
24 ac_help="$ac_help
25   enable-mingw-prefix=DIR        set the mingw32 directory (standalone windows32 exes)"
26 ac_help="$ac_help
27   enable-tex-prefix=DIR          set the tex-directory to find TeX subdirectories. (default: PREFIX)"
28 ac_help="$ac_help
29   enable-tex-dir=DIR             set the directory to put LilyPond TeX files in. "
30 ac_help="$ac_help
31   enable-mf-dir=DIR             set the directory to put LilyPond MetaFont files in. "
32 ac_help="$ac_help
33   enable-config=FILE            put configure settings in config-FILE.make"
34
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
38 build=NONE
39 cache_file=./config.cache
40 exec_prefix=NONE
41 host=NONE
42 no_create=
43 nonopt=NONE
44 no_recursion=
45 prefix=NONE
46 program_prefix=NONE
47 program_suffix=NONE
48 program_transform_name=s,x,x,
49 silent=
50 site=
51 srcdir=
52 target=NONE
53 verbose=
54 x_includes=NONE
55 x_libraries=NONE
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
68
69 # Initialize some other variables.
70 subdirs=
71 MFLAGS= MAKEFLAGS=
72 # Maximum number of lines to put in a shell here document.
73 ac_max_here_lines=12
74
75 ac_prev=
76 for ac_option
77 do
78
79   # If the previous option needs an argument, assign it.
80   if test -n "$ac_prev"; then
81     eval "$ac_prev=\$ac_option"
82     ac_prev=
83     continue
84   fi
85
86   case "$ac_option" in
87   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88   *) ac_optarg= ;;
89   esac
90
91   # Accept the important Cygnus configure options, so we can diagnose typos.
92
93   case "$ac_option" in
94
95   -bindir | --bindir | --bindi | --bind | --bin | --bi)
96     ac_prev=bindir ;;
97   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98     bindir="$ac_optarg" ;;
99
100   -build | --build | --buil | --bui | --bu)
101     ac_prev=build ;;
102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103     build="$ac_optarg" ;;
104
105   -cache-file | --cache-file | --cache-fil | --cache-fi \
106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107     ac_prev=cache_file ;;
108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110     cache_file="$ac_optarg" ;;
111
112   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113     ac_prev=datadir ;;
114   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115   | --da=*)
116     datadir="$ac_optarg" ;;
117
118   -disable-* | --disable-*)
119     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120     # Reject names that are not valid shell variable names.
121     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123     fi
124     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125     eval "enable_${ac_feature}=no" ;;
126
127   -enable-* | --enable-*)
128     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129     # Reject names that are not valid shell variable names.
130     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132     fi
133     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134     case "$ac_option" in
135       *=*) ;;
136       *) ac_optarg=yes ;;
137     esac
138     eval "enable_${ac_feature}='$ac_optarg'" ;;
139
140   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142   | --exec | --exe | --ex)
143     ac_prev=exec_prefix ;;
144   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146   | --exec=* | --exe=* | --ex=*)
147     exec_prefix="$ac_optarg" ;;
148
149   -gas | --gas | --ga | --g)
150     # Obsolete; use --with-gas.
151     with_gas=yes ;;
152
153   -help | --help | --hel | --he)
154     # Omit some internal or obsolete options to make the list less imposing.
155     # This message is too long to be a string in the A/UX 3.1 sh.
156     cat << EOF
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
159 Configuration:
160   --cache-file=FILE       cache test results in FILE
161   --help                  print this message
162   --no-create             do not create output files
163   --quiet, --silent       do not print \`checking...' messages
164   --version               print the version of autoconf that created configure
165 Directory and file names:
166   --prefix=PREFIX         install architecture-independent files in PREFIX
167                           [$ac_default_prefix]
168   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
169                           [same as prefix]
170   --bindir=DIR            user executables in DIR [EPREFIX/bin]
171   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
172   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
173   --datadir=DIR           read-only architecture-independent data in DIR
174                           [PREFIX/share]
175   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
176   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
177                           [PREFIX/com]
178   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
179   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
180   --includedir=DIR        C header files in DIR [PREFIX/include]
181   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
182   --infodir=DIR           info documentation in DIR [PREFIX/info]
183   --mandir=DIR            man documentation in DIR [PREFIX/man]
184   --srcdir=DIR            find the sources in DIR [configure dir or ..]
185   --program-prefix=PREFIX prepend PREFIX to installed program names
186   --program-suffix=SUFFIX append SUFFIX to installed program names
187   --program-transform-name=PROGRAM
188                           run sed PROGRAM on installed program names
189 EOF
190     cat << EOF
191 Host type:
192   --build=BUILD           configure for building on BUILD [BUILD=HOST]
193   --host=HOST             configure for HOST [guessed]
194   --target=TARGET         configure for TARGET [TARGET=HOST]
195 Features and packages:
196   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
197   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
198   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
199   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
200   --x-includes=DIR        X include files are in DIR
201   --x-libraries=DIR       X library files are in DIR
202 EOF
203     if test -n "$ac_help"; then
204       echo "--enable and --with options recognized:$ac_help"
205     fi
206     exit 0 ;;
207
208   -host | --host | --hos | --ho)
209     ac_prev=host ;;
210   -host=* | --host=* | --hos=* | --ho=*)
211     host="$ac_optarg" ;;
212
213   -includedir | --includedir | --includedi | --included | --include \
214   | --includ | --inclu | --incl | --inc)
215     ac_prev=includedir ;;
216   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217   | --includ=* | --inclu=* | --incl=* | --inc=*)
218     includedir="$ac_optarg" ;;
219
220   -infodir | --infodir | --infodi | --infod | --info | --inf)
221     ac_prev=infodir ;;
222   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223     infodir="$ac_optarg" ;;
224
225   -libdir | --libdir | --libdi | --libd)
226     ac_prev=libdir ;;
227   -libdir=* | --libdir=* | --libdi=* | --libd=*)
228     libdir="$ac_optarg" ;;
229
230   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231   | --libexe | --libex | --libe)
232     ac_prev=libexecdir ;;
233   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234   | --libexe=* | --libex=* | --libe=*)
235     libexecdir="$ac_optarg" ;;
236
237   -localstatedir | --localstatedir | --localstatedi | --localstated \
238   | --localstate | --localstat | --localsta | --localst \
239   | --locals | --local | --loca | --loc | --lo)
240     ac_prev=localstatedir ;;
241   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244     localstatedir="$ac_optarg" ;;
245
246   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247     ac_prev=mandir ;;
248   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249     mandir="$ac_optarg" ;;
250
251   -nfp | --nfp | --nf)
252     # Obsolete; use --without-fp.
253     with_fp=no ;;
254
255   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256   | --no-cr | --no-c)
257     no_create=yes ;;
258
259   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261     no_recursion=yes ;;
262
263   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265   | --oldin | --oldi | --old | --ol | --o)
266     ac_prev=oldincludedir ;;
267   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270     oldincludedir="$ac_optarg" ;;
271
272   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273     ac_prev=prefix ;;
274   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275     prefix="$ac_optarg" ;;
276
277   -program-prefix | --program-prefix | --program-prefi | --program-pref \
278   | --program-pre | --program-pr | --program-p)
279     ac_prev=program_prefix ;;
280   -program-prefix=* | --program-prefix=* | --program-prefi=* \
281   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282     program_prefix="$ac_optarg" ;;
283
284   -program-suffix | --program-suffix | --program-suffi | --program-suff \
285   | --program-suf | --program-su | --program-s)
286     ac_prev=program_suffix ;;
287   -program-suffix=* | --program-suffix=* | --program-suffi=* \
288   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289     program_suffix="$ac_optarg" ;;
290
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     ac_prev=program_transform_name ;;
299   -program-transform-name=* | --program-transform-name=* \
300   | --program-transform-nam=* | --program-transform-na=* \
301   | --program-transform-n=* | --program-transform-=* \
302   | --program-transform=* | --program-transfor=* \
303   | --program-transfo=* | --program-transf=* \
304   | --program-trans=* | --program-tran=* \
305   | --progr-tra=* | --program-tr=* | --program-t=*)
306     program_transform_name="$ac_optarg" ;;
307
308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309   | -silent | --silent | --silen | --sile | --sil)
310     silent=yes ;;
311
312   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313     ac_prev=sbindir ;;
314   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315   | --sbi=* | --sb=*)
316     sbindir="$ac_optarg" ;;
317
318   -sharedstatedir | --sharedstatedir | --sharedstatedi \
319   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320   | --sharedst | --shareds | --shared | --share | --shar \
321   | --sha | --sh)
322     ac_prev=sharedstatedir ;;
323   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326   | --sha=* | --sh=*)
327     sharedstatedir="$ac_optarg" ;;
328
329   -site | --site | --sit)
330     ac_prev=site ;;
331   -site=* | --site=* | --sit=*)
332     site="$ac_optarg" ;;
333
334   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335     ac_prev=srcdir ;;
336   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337     srcdir="$ac_optarg" ;;
338
339   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340   | --syscon | --sysco | --sysc | --sys | --sy)
341     ac_prev=sysconfdir ;;
342   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344     sysconfdir="$ac_optarg" ;;
345
346   -target | --target | --targe | --targ | --tar | --ta | --t)
347     ac_prev=target ;;
348   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349     target="$ac_optarg" ;;
350
351   -v | -verbose | --verbose | --verbos | --verbo | --verb)
352     verbose=yes ;;
353
354   -version | --version | --versio | --versi | --vers)
355     echo "configure generated by autoconf version 2.12"
356     exit 0 ;;
357
358   -with-* | --with-*)
359     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360     # Reject names that are not valid shell variable names.
361     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363     fi
364     ac_package=`echo $ac_package| sed 's/-/_/g'`
365     case "$ac_option" in
366       *=*) ;;
367       *) ac_optarg=yes ;;
368     esac
369     eval "with_${ac_package}='$ac_optarg'" ;;
370
371   -without-* | --without-*)
372     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373     # Reject names that are not valid shell variable names.
374     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376     fi
377     ac_package=`echo $ac_package| sed 's/-/_/g'`
378     eval "with_${ac_package}=no" ;;
379
380   --x)
381     # Obsolete; use --with-x.
382     with_x=yes ;;
383
384   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385   | --x-incl | --x-inc | --x-in | --x-i)
386     ac_prev=x_includes ;;
387   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389     x_includes="$ac_optarg" ;;
390
391   -x-libraries | --x-libraries | --x-librarie | --x-librari \
392   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393     ac_prev=x_libraries ;;
394   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396     x_libraries="$ac_optarg" ;;
397
398   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399     ;;
400
401   *)
402     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403       echo "configure: warning: $ac_option: invalid host type" 1>&2
404     fi
405     if test "x$nonopt" != xNONE; then
406       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407     fi
408     nonopt="$ac_option"
409     ;;
410
411   esac
412 done
413
414 if test -n "$ac_prev"; then
415   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 fi
417
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
420 # File descriptor usage:
421 # 0 standard input
422 # 1 file creation
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
429   exec 6>/dev/null
430 else
431   exec 6>&1
432 fi
433 exec 5>./config.log
434
435 echo "\
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
438 " 1>&5
439
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
442 ac_configure_args=
443 for ac_arg
444 do
445   case "$ac_arg" in
446   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447   | --no-cr | --no-c) ;;
448   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453   esac
454 done
455
456 # NLS nuisances.
457 # Only set these to C if already set.  These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
465
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
470
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=flower/choleski.cc
474
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477   ac_srcdir_defaulted=yes
478   # Try the directory containing this script, then its parent.
479   ac_prog=$0
480   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482   srcdir=$ac_confdir
483   if test ! -r $srcdir/$ac_unique_file; then
484     srcdir=..
485   fi
486 else
487   ac_srcdir_defaulted=no
488 fi
489 if test ! -r $srcdir/$ac_unique_file; then
490   if test "$ac_srcdir_defaulted" = yes; then
491     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492   else
493     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494   fi
495 fi
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500   if test "x$prefix" != xNONE; then
501     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502   else
503     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504   fi
505 fi
506 for ac_site_file in $CONFIG_SITE; do
507   if test -r "$ac_site_file"; then
508     echo "loading site script $ac_site_file"
509     . "$ac_site_file"
510   fi
511 done
512
513 if test -r "$cache_file"; then
514   echo "loading cache $cache_file"
515   . $cache_file
516 else
517   echo "creating cache $cache_file"
518   > $cache_file
519 fi
520
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
527
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531     ac_n= ac_c='
532 ' ac_t='        '
533   else
534     ac_n=-n ac_c= ac_t=
535   fi
536 else
537   ac_n= ac_c='\c' ac_t=
538 fi
539
540
541  #ugh flower/out/
542 ac_aux_dir=
543 for ac_dir in bin $srcdir/bin; do
544   if test -f $ac_dir/install-sh; then
545     ac_aux_dir=$ac_dir
546     ac_install_sh="$ac_aux_dir/install-sh -c"
547     break
548   elif test -f $ac_dir/install.sh; then
549     ac_aux_dir=$ac_dir
550     ac_install_sh="$ac_aux_dir/install.sh -c"
551     break
552   fi
553 done
554 if test -z "$ac_aux_dir"; then
555   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
556 fi
557 ac_config_guess=$ac_aux_dir/config.guess
558 ac_config_sub=$ac_aux_dir/config.sub
559 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
561
562 # Make sure we can run config.sub.
563 if $ac_config_sub sun4 >/dev/null 2>&1; then :
564 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
565 fi
566
567 echo $ac_n "checking host system type""... $ac_c" 1>&6
568 echo "configure:569: checking host system type" >&5
569
570 host_alias=$host
571 case "$host_alias" in
572 NONE)
573   case $nonopt in
574   NONE)
575     if host_alias=`$ac_config_guess`; then :
576     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
577     fi ;;
578   *) host_alias=$nonopt ;;
579   esac ;;
580 esac
581
582 host=`$ac_config_sub $host_alias`
583 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
584 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
585 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
586 echo "$ac_t""$host" 1>&6
587
588
589
590 . $srcdir/VERSION
591 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
592 if test x$MY_PATCH_LEVEL != x; then
593         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
594 fi
595
596
597 . $srcdir/flower/VERSION
598 FULL_FLOWER_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
599
600 # libtool.info ...
601 # **Never** try to set library version numbers so that they correspond
602 # to the release number of your package.  This is an abuse that only
603 # fosters misunderstanding of the purpose of library versions.
604
605 REVISION=$PATCH_LEVEL
606 # CURRENT=$MINOR_VERSION
607 CURRENT=`expr $MINOR_VERSION + 1`
608 # AGE=$(expr $MAJOR_VERSION + 1)
609 AGE=$MAJOR_VERSION
610
611
612
613
614 # turn off shared libraries by default (may be enabled using --enable-shared)
615 #AM_DISABLE_SHARED
616 #AM_PROG_LIBTOOL
617
618 # ugh, automake: we want (and check for) bison
619 for ac_prog in 'bison -y' byacc
620 do
621 # Extract the first word of "$ac_prog", so it can be a program name with args.
622 set dummy $ac_prog; ac_word=$2
623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
624 echo "configure:625: checking for $ac_word" >&5
625 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
626   echo $ac_n "(cached) $ac_c" 1>&6
627 else
628   if test -n "$YACC"; then
629   ac_cv_prog_YACC="$YACC" # Let the user override the test.
630 else
631   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
632   for ac_dir in $PATH; do
633     test -z "$ac_dir" && ac_dir=.
634     if test -f $ac_dir/$ac_word; then
635       ac_cv_prog_YACC="$ac_prog"
636       break
637     fi
638   done
639   IFS="$ac_save_ifs"
640 fi
641 fi
642 YACC="$ac_cv_prog_YACC"
643 if test -n "$YACC"; then
644   echo "$ac_t""$YACC" 1>&6
645 else
646   echo "$ac_t""no" 1>&6
647 fi
648
649 test -n "$YACC" && break
650 done
651 test -n "$YACC" || YACC="yacc"
652
653
654 # ugh, automake: we want (and check for) flex
655 # AC_PROG_LEX
656 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
657
658 # AC_DECL_YYTEXT
659 # ugh, ugh
660 ac_cv_prog_lex_root=lex.yy
661
662 # -O is necessary to get inlining
663 OPTIMIZE="-O"
664 printing_b=no
665 checking_b=yes
666 optimise_b=no
667 profile_b=no
668 CONFIGSUFFIX=
669 debug_b=yes
670      
671
672
673 ac_ext=C
674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
675 ac_cpp='$CXXCPP $CPPFLAGS'
676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
677 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
678 cross_compiling=$ac_cv_prog_cxx_cross
679
680
681 # Check whether --enable-printing or --disable-printing was given.
682 if test "${enable_printing+set}" = set; then
683   enableval="$enable_printing"
684   printing_b=$enableval
685 fi
686
687
688 # Check whether --enable-checking or --disable-checking was given.
689 if test "${enable_checking+set}" = set; then
690   enableval="$enable_checking"
691   checking_b=$enableval 
692 fi
693
694
695 # Check whether --enable-optimise or --disable-optimise was given.
696 if test "${enable_optimise+set}" = set; then
697   enableval="$enable_optimise"
698   optimise_b=$enableval
699 fi
700
701     
702 # Check whether --enable-profiling or --disable-profiling was given.
703 if test "${enable_profiling+set}" = set; then
704   enableval="$enable_profiling"
705   profile_b=$enableval
706 fi
707
708     
709 # Check whether --enable-debugging or --disable-debugging was given.
710 if test "${enable_debugging+set}" = set; then
711   enableval="$enable_debugging"
712   debug_b=$enableval
713 fi
714
715
716 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
717 if test "${enable_mingw_prefix+set}" = set; then
718   enableval="$enable_mingw_prefix"
719   MINGWPREFIX=$enableval
720 else
721   MINGWPREFIX=no
722 fi
723
724     
725 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
726 if test "${enable_tex_prefix+set}" = set; then
727   enableval="$enable_tex_prefix"
728   TEXPREFIX=$enableval
729 else
730   TEXPREFIX=auto 
731 fi
732
733     
734 # Check whether --enable-tex-dir or --disable-tex-dir was given.
735 if test "${enable_tex_dir+set}" = set; then
736   enableval="$enable_tex_dir"
737   TEXDIR=$enableval
738 else
739   TEXDIR=auto 
740 fi
741
742
743 # Check whether --enable-mf-dir or --disable-mf-dir was given.
744 if test "${enable_mf_dir+set}" = set; then
745   enableval="$enable_mf_dir"
746   MFDIR=$enableval
747 else
748   MFDIR=auto
749 fi
750
751
752 # Check whether --enable-config or --disable-config was given.
753 if test "${enable_config+set}" = set; then
754   enableval="$enable_config"
755   CONFIGSUFFIX=$enableval
756 fi
757
758      
759
760 if test "$printing_b" = no; then
761     cat >> confdefs.h <<\EOF
762 #define NPRINT 1
763 EOF
764
765 fi
766     
767 if test "$checking_b" = no; then
768     cat >> confdefs.h <<\EOF
769 #define NDEBUG 1
770 EOF
771
772 fi
773
774 if test "$optimise_b" = yes; then
775     DEFINES="$DEFINES -finline-functions -DSTRING_UTILS_INLINED"
776     OPTIMIZE="-O2"
777     cat >> confdefs.h <<\EOF
778 #define STRINGS_UTILS_INLINED 1
779 EOF
780
781 fi
782
783 if test $profile_b = yes; then
784     EXTRA_LIBES="-pg"
785     DEFINES="$DEFINES -pg"
786 fi
787
788 if test $debug_b = yes; then    
789     DEFINES="$DEFINES -g"
790 fi
791
792 # however, C++ support in mingw32 v 0.1.4 is still flaky
793 if test x$MINGWPREFIX != xno; then 
794     ICFLAGS="-I$MINGWPREFIX/include"
795     ILDFLAGS="-$MINGWPREFIX/lib"
796 fi
797
798 if test "x$OSTYPE" = "xWindows_NT"; then
799     LN=cp # hard link does not work under cygnus-nt (yet?)
800     ZIP="zip -r -9" #
801 else
802     LN=ln
803     ZIP="zip -r -9"
804 fi
805
806 if test "$CONFIGSUFFIX" != "" ; then
807     CONFIGFILE=config-$CONFIGSUFFIX
808 else
809     CONFIGFILE=config
810 fi
811      
812
813
814 AUTOGENERATE="This file was automatically generated by configure"
815 CPPFLAGS=${CPPFLAGS:-""}        # we don't want -g -O junk
816 # CXXFLAGS=${CXXFLAGS:-""}      # we don't want -g -O junk
817 CXXFLAGS="$DEFINES $OPTIMIZE"
818 LDFLAGS=$EXTRA_LIBES
819
820 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
821 do
822 # Extract the first word of "$ac_prog", so it can be a program name with args.
823 set dummy $ac_prog; ac_word=$2
824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
825 echo "configure:826: checking for $ac_word" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
827   echo $ac_n "(cached) $ac_c" 1>&6
828 else
829   if test -n "$CXX"; then
830   ac_cv_prog_CXX="$CXX" # Let the user override the test.
831 else
832   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
833   for ac_dir in $PATH; do
834     test -z "$ac_dir" && ac_dir=.
835     if test -f $ac_dir/$ac_word; then
836       ac_cv_prog_CXX="$ac_prog"
837       break
838     fi
839   done
840   IFS="$ac_save_ifs"
841 fi
842 fi
843 CXX="$ac_cv_prog_CXX"
844 if test -n "$CXX"; then
845   echo "$ac_t""$CXX" 1>&6
846 else
847   echo "$ac_t""no" 1>&6
848 fi
849
850 test -n "$CXX" && break
851 done
852 test -n "$CXX" || CXX="gcc"
853
854
855 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
856 echo "configure:857: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
857
858 ac_ext=C
859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
860 ac_cpp='$CXXCPP $CPPFLAGS'
861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
862 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
863 cross_compiling=$ac_cv_prog_cxx_cross
864
865 cat > conftest.$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
868 main(){return(0);}
869 EOF
870 if { (eval echo configure:871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
871   ac_cv_prog_cxx_works=yes
872   # If we can't run a trivial program, we are probably using a cross compiler.
873   if (./conftest; exit) 2>/dev/null; then
874     ac_cv_prog_cxx_cross=no
875   else
876     ac_cv_prog_cxx_cross=yes
877   fi
878 else
879   echo "configure: failed program was:" >&5
880   cat conftest.$ac_ext >&5
881   ac_cv_prog_cxx_works=no
882 fi
883 rm -fr conftest*
884
885 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
886 if test $ac_cv_prog_cxx_works = no; then
887   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
888 fi
889 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
890 echo "configure:891: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
891 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
892 cross_compiling=$ac_cv_prog_cxx_cross
893
894 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
895 echo "configure:896: checking whether we are using GNU C++" >&5
896 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
897   echo $ac_n "(cached) $ac_c" 1>&6
898 else
899   cat > conftest.C <<EOF
900 #ifdef __GNUC__
901   yes;
902 #endif
903 EOF
904 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
905   ac_cv_prog_gxx=yes
906 else
907   ac_cv_prog_gxx=no
908 fi
909 fi
910
911 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
912
913 if test $ac_cv_prog_gxx = yes; then
914   GXX=yes
915   ac_test_CXXFLAGS="${CXXFLAGS+set}"
916   ac_save_CXXFLAGS="$CXXFLAGS"
917   CXXFLAGS=
918   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
919 echo "configure:920: checking whether ${CXX-g++} accepts -g" >&5
920 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
921   echo $ac_n "(cached) $ac_c" 1>&6
922 else
923   echo 'void f(){}' > conftest.cc
924 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
925   ac_cv_prog_cxx_g=yes
926 else
927   ac_cv_prog_cxx_g=no
928 fi
929 rm -f conftest*
930
931 fi
932
933 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
934   if test "$ac_test_CXXFLAGS" = set; then
935     CXXFLAGS="$ac_save_CXXFLAGS"
936   elif test $ac_cv_prog_cxx_g = yes; then
937     CXXFLAGS="-g -O2"
938   else
939     CXXFLAGS="-O2"
940   fi
941 else
942   GXX=
943   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
944 fi
945
946 # Extract the first word of "ranlib", so it can be a program name with args.
947 set dummy ranlib; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
951   echo $ac_n "(cached) $ac_c" 1>&6
952 else
953   if test -n "$RANLIB"; then
954   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
955 else
956   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
957   for ac_dir in $PATH; do
958     test -z "$ac_dir" && ac_dir=.
959     if test -f $ac_dir/$ac_word; then
960       ac_cv_prog_RANLIB="ranlib"
961       break
962     fi
963   done
964   IFS="$ac_save_ifs"
965   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
966 fi
967 fi
968 RANLIB="$ac_cv_prog_RANLIB"
969 if test -n "$RANLIB"; then
970   echo "$ac_t""$RANLIB" 1>&6
971 else
972   echo "$ac_t""no" 1>&6
973 fi
974
975 # Find a good install program.  We prefer a C program (faster),
976 # so one script is as good as another.  But avoid the broken or
977 # incompatible versions:
978 # SysV /etc/install, /usr/sbin/install
979 # SunOS /usr/etc/install
980 # IRIX /sbin/install
981 # AIX /bin/install
982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
984 # ./install, which can be erroneously created by make from ./install.sh.
985 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
986 echo "configure:987: checking for a BSD compatible install" >&5
987 if test -z "$INSTALL"; then
988 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
989   echo $ac_n "(cached) $ac_c" 1>&6
990 else
991     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
992   for ac_dir in $PATH; do
993     # Account for people who put trailing slashes in PATH elements.
994     case "$ac_dir/" in
995     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
996     *)
997       # OSF1 and SCO ODT 3.0 have their own names for install.
998       for ac_prog in ginstall installbsd scoinst install; do
999         if test -f $ac_dir/$ac_prog; then
1000           if test $ac_prog = install &&
1001             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1002             # AIX install.  It has an incompatible calling convention.
1003             # OSF/1 installbsd also uses dspmsg, but is usable.
1004             :
1005           else
1006             ac_cv_path_install="$ac_dir/$ac_prog -c"
1007             break 2
1008           fi
1009         fi
1010       done
1011       ;;
1012     esac
1013   done
1014   IFS="$ac_save_IFS"
1015
1016 fi
1017   if test "${ac_cv_path_install+set}" = set; then
1018     INSTALL="$ac_cv_path_install"
1019   else
1020     # As a last resort, use the slow shell script.  We don't cache a
1021     # path for INSTALL within a source directory, because that will
1022     # break other packages using the cache if that directory is
1023     # removed, or if the path is relative.
1024     INSTALL="$ac_install_sh"
1025   fi
1026 fi
1027 echo "$ac_t""$INSTALL" 1>&6
1028
1029 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1030 # It thinks the first close brace ends the variable substitution.
1031 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1032
1033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1034
1035 for ac_prog in tar
1036 do
1037 # Extract the first word of "$ac_prog", so it can be a program name with args.
1038 set dummy $ac_prog; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1042   echo $ac_n "(cached) $ac_c" 1>&6
1043 else
1044   if test -n "$TAR"; then
1045   ac_cv_prog_TAR="$TAR" # Let the user override the test.
1046 else
1047   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1048   for ac_dir in $PATH; do
1049     test -z "$ac_dir" && ac_dir=.
1050     if test -f $ac_dir/$ac_word; then
1051       ac_cv_prog_TAR="$ac_prog"
1052       break
1053     fi
1054   done
1055   IFS="$ac_save_ifs"
1056 fi
1057 fi
1058 TAR="$ac_cv_prog_TAR"
1059 if test -n "$TAR"; then
1060   echo "$ac_t""$TAR" 1>&6
1061 else
1062   echo "$ac_t""no" 1>&6
1063 fi
1064
1065 test -n "$TAR" && break
1066 done
1067 test -n "$TAR" || TAR="error"
1068
1069 for ac_prog in find
1070 do
1071 # Extract the first word of "$ac_prog", so it can be a program name with args.
1072 set dummy $ac_prog; ac_word=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
1076   echo $ac_n "(cached) $ac_c" 1>&6
1077 else
1078   if test -n "$FIND"; then
1079   ac_cv_prog_FIND="$FIND" # Let the user override the test.
1080 else
1081   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1082   for ac_dir in $PATH; do
1083     test -z "$ac_dir" && ac_dir=.
1084     if test -f $ac_dir/$ac_word; then
1085       ac_cv_prog_FIND="$ac_prog"
1086       break
1087     fi
1088   done
1089   IFS="$ac_save_ifs"
1090 fi
1091 fi
1092 FIND="$ac_cv_prog_FIND"
1093 if test -n "$FIND"; then
1094   echo "$ac_t""$FIND" 1>&6
1095 else
1096   echo "$ac_t""no" 1>&6
1097 fi
1098
1099 test -n "$FIND" && break
1100 done
1101 test -n "$FIND" || FIND="error"
1102
1103
1104
1105         if test $FIND = "error" 
1106         then
1107                 
1108     echo "configure: warning: can't find \`find\'. Please use --enable-tex-dir. " 1>&2
1109     warn_b=yes
1110
1111         fi
1112
1113
1114 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1115 echo "configure:1116: checking for 8-bit clean memcmp" >&5
1116 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1117   echo $ac_n "(cached) $ac_c" 1>&6
1118 else
1119   if test "$cross_compiling" = yes; then
1120   ac_cv_func_memcmp_clean=no
1121 else
1122   cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1125 #ifdef __cplusplus
1126 extern "C" void exit(int);
1127 #endif
1128
1129 main()
1130 {
1131   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1132   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1133 }
1134
1135 EOF
1136 if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1137 then
1138   ac_cv_func_memcmp_clean=yes
1139 else
1140   echo "configure: failed program was:" >&5
1141   cat conftest.$ac_ext >&5
1142   rm -fr conftest*
1143   ac_cv_func_memcmp_clean=no
1144 fi
1145 rm -fr conftest*
1146 fi
1147
1148 fi
1149
1150 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1151 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
1152
1153 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1154 echo "configure:1155: checking for vprintf" >&5
1155 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1156   echo $ac_n "(cached) $ac_c" 1>&6
1157 else
1158   cat > conftest.$ac_ext <<EOF
1159 #line 1160 "configure"
1160 #include "confdefs.h"
1161 /* System header to define __stub macros and hopefully few prototypes,
1162     which can conflict with char vprintf(); below.  */
1163 #include <assert.h>
1164 /* Override any gcc2 internal prototype to avoid an error.  */
1165 #ifdef __cplusplus
1166 extern "C"
1167 #endif
1168 /* We use char because int might match the return type of a gcc2
1169     builtin and then its argument prototype would still apply.  */
1170 char vprintf();
1171
1172 int main() {
1173
1174 /* The GNU C library defines this for functions which it implements
1175     to always fail with ENOSYS.  Some functions are actually named
1176     something starting with __ and the normal name is an alias.  */
1177 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1178 choke me
1179 #else
1180 vprintf();
1181 #endif
1182
1183 ; return 0; }
1184 EOF
1185 if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1186   rm -rf conftest*
1187   eval "ac_cv_func_vprintf=yes"
1188 else
1189   echo "configure: failed program was:" >&5
1190   cat conftest.$ac_ext >&5
1191   rm -rf conftest*
1192   eval "ac_cv_func_vprintf=no"
1193 fi
1194 rm -f conftest*
1195 fi
1196
1197 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1198   echo "$ac_t""yes" 1>&6
1199   cat >> confdefs.h <<\EOF
1200 #define HAVE_VPRINTF 1
1201 EOF
1202
1203 else
1204   echo "$ac_t""no" 1>&6
1205 fi
1206
1207 if test "$ac_cv_func_vprintf" != yes; then
1208 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1209 echo "configure:1210: checking for _doprnt" >&5
1210 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1211   echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213   cat > conftest.$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1216 /* System header to define __stub macros and hopefully few prototypes,
1217     which can conflict with char _doprnt(); below.  */
1218 #include <assert.h>
1219 /* Override any gcc2 internal prototype to avoid an error.  */
1220 #ifdef __cplusplus
1221 extern "C"
1222 #endif
1223 /* We use char because int might match the return type of a gcc2
1224     builtin and then its argument prototype would still apply.  */
1225 char _doprnt();
1226
1227 int main() {
1228
1229 /* The GNU C library defines this for functions which it implements
1230     to always fail with ENOSYS.  Some functions are actually named
1231     something starting with __ and the normal name is an alias.  */
1232 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1233 choke me
1234 #else
1235 _doprnt();
1236 #endif
1237
1238 ; return 0; }
1239 EOF
1240 if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1241   rm -rf conftest*
1242   eval "ac_cv_func__doprnt=yes"
1243 else
1244   echo "configure: failed program was:" >&5
1245   cat conftest.$ac_ext >&5
1246   rm -rf conftest*
1247   eval "ac_cv_func__doprnt=no"
1248 fi
1249 rm -f conftest*
1250 fi
1251
1252 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1253   echo "$ac_t""yes" 1>&6
1254   cat >> confdefs.h <<\EOF
1255 #define HAVE_DOPRNT 1
1256 EOF
1257
1258 else
1259   echo "$ac_t""no" 1>&6
1260 fi
1261
1262 fi
1263
1264 for ac_func in memmem snprintf 
1265 do
1266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1267 echo "configure:1268: checking for $ac_func" >&5
1268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1269   echo $ac_n "(cached) $ac_c" 1>&6
1270 else
1271   cat > conftest.$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1274 /* System header to define __stub macros and hopefully few prototypes,
1275     which can conflict with char $ac_func(); below.  */
1276 #include <assert.h>
1277 /* Override any gcc2 internal prototype to avoid an error.  */
1278 #ifdef __cplusplus
1279 extern "C"
1280 #endif
1281 /* We use char because int might match the return type of a gcc2
1282     builtin and then its argument prototype would still apply.  */
1283 char $ac_func();
1284
1285 int main() {
1286
1287 /* The GNU C library defines this for functions which it implements
1288     to always fail with ENOSYS.  Some functions are actually named
1289     something starting with __ and the normal name is an alias.  */
1290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1291 choke me
1292 #else
1293 $ac_func();
1294 #endif
1295
1296 ; return 0; }
1297 EOF
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1299   rm -rf conftest*
1300   eval "ac_cv_func_$ac_func=yes"
1301 else
1302   echo "configure: failed program was:" >&5
1303   cat conftest.$ac_ext >&5
1304   rm -rf conftest*
1305   eval "ac_cv_func_$ac_func=no"
1306 fi
1307 rm -f conftest*
1308 fi
1309
1310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1311   echo "$ac_t""yes" 1>&6
1312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1313   cat >> confdefs.h <<EOF
1314 #define $ac_tr_func 1
1315 EOF
1316  
1317 else
1318   echo "$ac_t""no" 1>&6
1319 fi
1320 done
1321
1322
1323 cat >> confdefs.h <<EOF
1324 #define TOPLEVEL_VERSION "${FULL_VERSION}"
1325 EOF
1326
1327 cat >> confdefs.h <<EOF
1328 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
1329 EOF
1330
1331 # ugh: produces "${prefix}/share/lilypond"
1332 # DIR_DATADIR=$datadir/lilypond
1333 # ugh: produces "NONE/share/lilypond"
1334 # DIR_DATADIR=$prefix/share/lilypond
1335
1336 DIR_DATADIR=$prefix/share/lilypond
1337 if test x$prefix = xNONE; then
1338         DIR_DATADIR=/usr/local/share/lilypond
1339 fi
1340 cat >> confdefs.h <<EOF
1341 #define DIR_DATADIR "${DIR_DATADIR}"
1342 EOF
1343
1344
1345 absolute_builddir="`pwd`"
1346     
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 for ac_prog in bison
1371 do
1372 # Extract the first word of "$ac_prog", so it can be a program name with args.
1373 set dummy $ac_prog; ac_word=$2
1374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1375 echo "configure:1376: checking for $ac_word" >&5
1376 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1377   echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379   if test -n "$BISON"; then
1380   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1381 else
1382   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1383   for ac_dir in $PATH; do
1384     test -z "$ac_dir" && ac_dir=.
1385     if test -f $ac_dir/$ac_word; then
1386       ac_cv_prog_BISON="$ac_prog"
1387       break
1388     fi
1389   done
1390   IFS="$ac_save_ifs"
1391 fi
1392 fi
1393 BISON="$ac_cv_prog_BISON"
1394 if test -n "$BISON"; then
1395   echo "$ac_t""$BISON" 1>&6
1396 else
1397   echo "$ac_t""no" 1>&6
1398 fi
1399
1400 test -n "$BISON" && break
1401 done
1402 test -n "$BISON" || BISON="error"
1403
1404 for ac_prog in flex
1405 do
1406 # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1409 echo "configure:1410: checking for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1411   echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413   if test -n "$FLEX"; then
1414   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1415 else
1416   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1417   for ac_dir in $PATH; do
1418     test -z "$ac_dir" && ac_dir=.
1419     if test -f $ac_dir/$ac_word; then
1420       ac_cv_prog_FLEX="$ac_prog"
1421       break
1422     fi
1423   done
1424   IFS="$ac_save_ifs"
1425 fi
1426 fi
1427 FLEX="$ac_cv_prog_FLEX"
1428 if test -n "$FLEX"; then
1429   echo "$ac_t""$FLEX" 1>&6
1430 else
1431   echo "$ac_t""no" 1>&6
1432 fi
1433
1434 test -n "$FLEX" && break
1435 done
1436 test -n "$FLEX" || FLEX="error"
1437
1438 for ac_prog in make
1439 do
1440 # Extract the first word of "$ac_prog", so it can be a program name with args.
1441 set dummy $ac_prog; ac_word=$2
1442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1443 echo "configure:1444: checking for $ac_word" >&5
1444 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1445   echo $ac_n "(cached) $ac_c" 1>&6
1446 else
1447   if test -n "$MAKE"; then
1448   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1449 else
1450   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1451   for ac_dir in $PATH; do
1452     test -z "$ac_dir" && ac_dir=.
1453     if test -f $ac_dir/$ac_word; then
1454       ac_cv_prog_MAKE="$ac_prog"
1455       break
1456     fi
1457   done
1458   IFS="$ac_save_ifs"
1459 fi
1460 fi
1461 MAKE="$ac_cv_prog_MAKE"
1462 if test -n "$MAKE"; then
1463   echo "$ac_t""$MAKE" 1>&6
1464 else
1465   echo "$ac_t""no" 1>&6
1466 fi
1467
1468 test -n "$MAKE" && break
1469 done
1470 test -n "$MAKE" || MAKE="error"
1471
1472 # Extract the first word of "perl", so it can be a program name with args.
1473 set dummy perl; ac_word=$2
1474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1475 echo "configure:1476: checking for $ac_word" >&5
1476 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1477   echo $ac_n "(cached) $ac_c" 1>&6
1478 else
1479   case "$PERL" in
1480   /*)
1481   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1482   ;;
1483   *)
1484   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1485   for ac_dir in $PATH; do
1486     test -z "$ac_dir" && ac_dir=.
1487     if test -f $ac_dir/$ac_word; then
1488       ac_cv_path_PERL="$ac_dir/$ac_word"
1489       break
1490     fi
1491   done
1492   IFS="$ac_save_ifs"
1493   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
1494   ;;
1495 esac
1496 fi
1497 PERL="$ac_cv_path_PERL"
1498 if test -n "$PERL"; then
1499   echo "$ac_t""$PERL" 1>&6
1500 else
1501   echo "$ac_t""no" 1>&6
1502 fi
1503
1504 # Extract the first word of "python", so it can be a program name with args.
1505 set dummy python; ac_word=$2
1506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1507 echo "configure:1508: checking for $ac_word" >&5
1508 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1509   echo $ac_n "(cached) $ac_c" 1>&6
1510 else
1511   case "$PYTHON" in
1512   /*)
1513   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1514   ;;
1515   *)
1516   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1517   for ac_dir in $PATH; do
1518     test -z "$ac_dir" && ac_dir=.
1519     if test -f $ac_dir/$ac_word; then
1520       ac_cv_path_PYTHON="$ac_dir/$ac_word"
1521       break
1522     fi
1523   done
1524   IFS="$ac_save_ifs"
1525   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="error"
1526   ;;
1527 esac
1528 fi
1529 PYTHON="$ac_cv_path_PYTHON"
1530 if test -n "$PYTHON"; then
1531   echo "$ac_t""$PYTHON" 1>&6
1532 else
1533   echo "$ac_t""no" 1>&6
1534 fi
1535
1536 for ac_prog in pod2html
1537 do
1538 # Extract the first word of "$ac_prog", so it can be a program name with args.
1539 set dummy $ac_prog; ac_word=$2
1540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1541 echo "configure:1542: checking for $ac_word" >&5
1542 if eval "test \"`echo '$''{'ac_cv_prog_POD2HTML'+set}'`\" = set"; then
1543   echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545   if test -n "$POD2HTML"; then
1546   ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
1547 else
1548   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1549   for ac_dir in $PATH; do
1550     test -z "$ac_dir" && ac_dir=.
1551     if test -f $ac_dir/$ac_word; then
1552       ac_cv_prog_POD2HTML="$ac_prog"
1553       break
1554     fi
1555   done
1556   IFS="$ac_save_ifs"
1557 fi
1558 fi
1559 POD2HTML="$ac_cv_prog_POD2HTML"
1560 if test -n "$POD2HTML"; then
1561   echo "$ac_t""$POD2HTML" 1>&6
1562 else
1563   echo "$ac_t""no" 1>&6
1564 fi
1565
1566 test -n "$POD2HTML" && break
1567 done
1568 test -n "$POD2HTML" || POD2HTML="error"
1569
1570 for ac_prog in pod2man
1571 do
1572 # Extract the first word of "$ac_prog", so it can be a program name with args.
1573 set dummy $ac_prog; ac_word=$2
1574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1575 echo "configure:1576: checking for $ac_word" >&5
1576 if eval "test \"`echo '$''{'ac_cv_prog_POD2MAN'+set}'`\" = set"; then
1577   echo $ac_n "(cached) $ac_c" 1>&6
1578 else
1579   if test -n "$POD2MAN"; then
1580   ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
1581 else
1582   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1583   for ac_dir in $PATH; do
1584     test -z "$ac_dir" && ac_dir=.
1585     if test -f $ac_dir/$ac_word; then
1586       ac_cv_prog_POD2MAN="$ac_prog"
1587       break
1588     fi
1589   done
1590   IFS="$ac_save_ifs"
1591 fi
1592 fi
1593 POD2MAN="$ac_cv_prog_POD2MAN"
1594 if test -n "$POD2MAN"; then
1595   echo "$ac_t""$POD2MAN" 1>&6
1596 else
1597   echo "$ac_t""no" 1>&6
1598 fi
1599
1600 test -n "$POD2MAN" && break
1601 done
1602 test -n "$POD2MAN" || POD2MAN="error"
1603
1604
1605
1606 if test "x$TEXPREFIX" = xauto ; then
1607     
1608     
1609
1610     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1611 echo "configure:1612: checking TeX/MF root dir directory" >&5    
1612
1613     find_root_prefix="$prefix"
1614     
1615
1616     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1617     find_texpostfix="";
1618     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1619         find_texprefix="$find_root_prefix$postfix"
1620         if test -d $find_texprefix; then
1621             find_texpostfix=$postfix
1622             break;
1623         fi
1624     done
1625     
1626     if test "x$find_texpostfix" = x; then
1627         find_texpostfix='/lib/texmf/tex'
1628         
1629     echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1630     warn_b=yes
1631
1632     fi
1633
1634     find_texprefix="$find_root_prefix/$find_texpostfix"
1635
1636     # only assign if variablename not empty
1637     if test x != "x$TEXPREFIX"; then
1638         TEXPREFIX='${prefix}'/"$find_texpostfix"
1639     fi
1640     echo "$ac_t""$find_texprefix" 1>&6
1641
1642
1643 else
1644  find_texprefix=$TEXPREFIX
1645 fi
1646
1647 if test "x$MFDIR" = xauto; then
1648     
1649     
1650     
1651     echo $ac_n "checking MF input directory""... $ac_c" 1>&6
1652 echo "configure:1653: checking MF input directory" >&5    
1653     find_dirdir=`(cd $find_texprefix; 
1654       $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
1655     
1656
1657     if test "x$find_dirdir" = x; then
1658        find_dirdir="/source";
1659        
1660     echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
1661     warn_b=yes
1662
1663         true
1664     fi
1665     MFDIR=$find_dirdir
1666     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1667
1668     MFDIR="$TEXPREFIX/$MFDIR"
1669
1670 fi
1671     
1672 if test "x$TEXDIR" = xauto ; then
1673     
1674     
1675     
1676     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
1677 echo "configure:1678: checking TeX input directory" >&5    
1678     find_dirdir=`(cd $find_texprefix; 
1679       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
1680     
1681
1682     if test "x$find_dirdir" = x; then
1683        find_dirdir="/tex";
1684        
1685     echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
1686     warn_b=yes
1687
1688         true
1689     fi
1690     TEXDIR=$find_dirdir
1691     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1692
1693     TEXDIR="$TEXPREFIX/$TEXDIR"
1694
1695 fi
1696
1697
1698 # AC_JUNK_ARGS( [if test "x$MFDIR" = xauto; then
1699 #      AC_MF_SUBDIR(MFDIR)
1700 #  fi]
1701 # )
1702
1703
1704         if test $MAKE = "error" 
1705         then
1706                 
1707     echo "configure: warning: can't find GNU make. You should install GNU make" 1>&2
1708     warn_b=yes
1709
1710         fi
1711
1712
1713         if test $BISON = "error" 
1714         then
1715                 
1716     echo "configure: warning: can't find bison. Please install Bison" 1>&2
1717     warn_b=yes
1718
1719         fi
1720
1721
1722         if test $PERL = "error" 
1723         then
1724                 
1725     echo "configure: warning: can't find perl. You should install Perl" 1>&2
1726     warn_b=yes
1727
1728         fi
1729
1730
1731         if test $PYTHON = "error" 
1732         then
1733                 
1734     echo "configure: warning: can't find python. You should install Python" 1>&2
1735     warn_b=yes
1736
1737         fi
1738
1739
1740         if test $FLEX = "error" 
1741         then
1742                 
1743     echo "configure: warning: can't find flex. Please install Flex" 1>&2
1744     warn_b=yes
1745
1746         fi
1747
1748
1749         if test $POD2MAN = "error" 
1750         then
1751                 
1752     echo "configure: warning: can't find pod. You should install Perl" 1>&2
1753     warn_b=yes
1754
1755         fi
1756
1757
1758
1759 if test $MAKE != "error" ; then
1760     $MAKE -v| grep GNU > /dev/null
1761     if test "$?" = 1
1762     then
1763             
1764     echo "configure: warning: Please install *GNU* make" 1>&2
1765     warn_b=yes
1766  
1767     fi 
1768 fi 
1769     
1770 if test $BISON != "error"; then
1771     bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1772     if test $bison_version -lt 25; then
1773         
1774     echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
1775     warn_b=yes
1776
1777     fi  
1778 fi
1779
1780
1781 # ugh autoconf
1782 if $CXX --version | grep '2\.[78]' > /dev/null ||
1783     $CXX --version | grep 'egcs' > /dev/null
1784 then
1785         true
1786 else
1787         
1788     echo "configure: warning: can't find g++ 2.7" 1>&2
1789     warn_b=yes
1790
1791 fi
1792
1793 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1794 echo "configure:1795: checking how to run the C++ preprocessor" >&5
1795 if test -z "$CXXCPP"; then
1796 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1797   echo $ac_n "(cached) $ac_c" 1>&6
1798 else
1799   ac_ext=C
1800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1801 ac_cpp='$CXXCPP $CPPFLAGS'
1802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1803 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1804 cross_compiling=$ac_cv_prog_cxx_cross
1805   CXXCPP="${CXX-g++} -E"
1806   cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 #include <stdlib.h>
1810 EOF
1811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1812 { (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1813 ac_err=`grep -v '^ *+' conftest.out`
1814 if test -z "$ac_err"; then
1815   :
1816 else
1817   echo "$ac_err" >&5
1818   echo "configure: failed program was:" >&5
1819   cat conftest.$ac_ext >&5
1820   rm -rf conftest*
1821   CXXCPP=/lib/cpp
1822 fi
1823 rm -f conftest*
1824   ac_cv_prog_CXXCPP="$CXXCPP"
1825 fi
1826 fi
1827 CXXCPP="$ac_cv_prog_CXXCPP"
1828 echo "$ac_t""$CXXCPP" 1>&6
1829
1830 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1831 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1832 echo "configure:1833: checking for FlexLexer.h" >&5
1833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1834   echo $ac_n "(cached) $ac_c" 1>&6
1835 else
1836   cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 #include <FlexLexer.h>
1840 EOF
1841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1842 { (eval echo configure:1843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1843 ac_err=`grep -v '^ *+' conftest.out`
1844 if test -z "$ac_err"; then
1845   rm -rf conftest*
1846   eval "ac_cv_header_$ac_safe=yes"
1847 else
1848   echo "$ac_err" >&5
1849   echo "configure: failed program was:" >&5
1850   cat conftest.$ac_ext >&5
1851   rm -rf conftest*
1852   eval "ac_cv_header_$ac_safe=no"
1853 fi
1854 rm -f conftest*
1855 fi
1856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1857   echo "$ac_t""yes" 1>&6
1858   true
1859 else
1860   echo "$ac_t""no" 1>&6
1861
1862     echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1863     warn_b=yes
1864
1865 fi
1866
1867
1868 touch stamp-h.in
1869
1870
1871
1872 # first do Foobar/Makefile then Foobar/include/Makefile
1873 trap '' 1 2 15
1874 cat > confcache <<\EOF
1875 # This file is a shell script that caches the results of configure
1876 # tests run on this system so they can be shared between configure
1877 # scripts and configure runs.  It is not useful on other systems.
1878 # If it contains results you don't want to keep, you may remove or edit it.
1879 #
1880 # By default, configure uses ./config.cache as the cache file,
1881 # creating it if it does not exist already.  You can give configure
1882 # the --cache-file=FILE option to use a different cache file; that is
1883 # what configure does when it calls configure scripts in
1884 # subdirectories, so they share the cache.
1885 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1886 # config.status only pays attention to the cache file if you give it the
1887 # --recheck option to rerun configure.
1888 #
1889 EOF
1890 # The following way of writing the cache mishandles newlines in values,
1891 # but we know of no workaround that is simple, portable, and efficient.
1892 # So, don't put newlines in cache variables' values.
1893 # Ultrix sh set writes to stderr and can't be redirected directly,
1894 # and sets the high bit in the cache file unless we assign to the vars.
1895 (set) 2>&1 |
1896   case `(ac_space=' '; set) 2>&1` in
1897   *ac_space=\ *)
1898     # `set' does not quote correctly, so add quotes (double-quote substitution
1899     # turns \\\\ into \\, and sed turns \\ into \).
1900     sed -n \
1901       -e "s/'/'\\\\''/g" \
1902       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1903     ;;
1904   *)
1905     # `set' quotes correctly as required by POSIX, so do not add quotes.
1906     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1907     ;;
1908   esac >> confcache
1909 if cmp -s $cache_file confcache; then
1910   :
1911 else
1912   if test -w $cache_file; then
1913     echo "updating cache $cache_file"
1914     cat confcache > $cache_file
1915   else
1916     echo "not updating unwritable cache $cache_file"
1917   fi
1918 fi
1919 rm -f confcache
1920
1921 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1922
1923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1924 # Let make expand exec_prefix.
1925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1926
1927 # Any assignment to VPATH causes Sun make to only execute
1928 # the first set of double-colon rules, so remove it if not needed.
1929 # If there is a colon in the path, we need to keep it.
1930 if test "x$srcdir" = x.; then
1931   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1932 fi
1933
1934 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1935
1936 DEFS=-DHAVE_CONFIG_H
1937
1938 # Without the "./", some shells look in PATH for config.status.
1939 : ${CONFIG_STATUS=./config.status}
1940
1941 echo creating $CONFIG_STATUS
1942 rm -f $CONFIG_STATUS
1943 cat > $CONFIG_STATUS <<EOF
1944 #! /bin/sh
1945 # Generated automatically by configure.
1946 # Run this file to recreate the current configuration.
1947 # This directory was configured as follows,
1948 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1949 #
1950 # $0 $ac_configure_args
1951 #
1952 # Compiler output produced by configure, useful for debugging
1953 # configure, is in ./config.log if it exists.
1954
1955 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1956 for ac_option
1957 do
1958   case "\$ac_option" in
1959   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1960     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1961     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1962   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1963     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1964     exit 0 ;;
1965   -help | --help | --hel | --he | --h)
1966     echo "\$ac_cs_usage"; exit 0 ;;
1967   *) echo "\$ac_cs_usage"; exit 1 ;;
1968   esac
1969 done
1970
1971 ac_given_srcdir=$srcdir
1972 ac_given_INSTALL="$INSTALL"
1973
1974 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1975 EOF
1976 cat >> $CONFIG_STATUS <<EOF
1977
1978 # Protect against being on the right side of a sed subst in config.status.
1979 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1980  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1981 $ac_vpsub
1982 $extrasub
1983 s%@CFLAGS@%$CFLAGS%g
1984 s%@CPPFLAGS@%$CPPFLAGS%g
1985 s%@CXXFLAGS@%$CXXFLAGS%g
1986 s%@DEFS@%$DEFS%g
1987 s%@LDFLAGS@%$LDFLAGS%g
1988 s%@LIBS@%$LIBS%g
1989 s%@exec_prefix@%$exec_prefix%g
1990 s%@prefix@%$prefix%g
1991 s%@program_transform_name@%$program_transform_name%g
1992 s%@bindir@%$bindir%g
1993 s%@sbindir@%$sbindir%g
1994 s%@libexecdir@%$libexecdir%g
1995 s%@datadir@%$datadir%g
1996 s%@sysconfdir@%$sysconfdir%g
1997 s%@sharedstatedir@%$sharedstatedir%g
1998 s%@localstatedir@%$localstatedir%g
1999 s%@libdir@%$libdir%g
2000 s%@includedir@%$includedir%g
2001 s%@oldincludedir@%$oldincludedir%g
2002 s%@infodir@%$infodir%g
2003 s%@mandir@%$mandir%g
2004 s%@host@%$host%g
2005 s%@host_alias@%$host_alias%g
2006 s%@host_cpu@%$host_cpu%g
2007 s%@host_vendor@%$host_vendor%g
2008 s%@host_os@%$host_os%g
2009 s%@CURRENT@%$CURRENT%g
2010 s%@REVISION@%$REVISION%g
2011 s%@AGE@%$AGE%g
2012 s%@YACC@%$YACC%g
2013 s%@CXX@%$CXX%g
2014 s%@RANLIB@%$RANLIB%g
2015 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2016 s%@INSTALL_DATA@%$INSTALL_DATA%g
2017 s%@TAR@%$TAR%g
2018 s%@FIND@%$FIND%g
2019 s%@LIBOBJS@%$LIBOBJS%g
2020 s%@ICFLAGS@%$ICFLAGS%g
2021 s%@ILDFLAGS@%$ILDFLAGS%g
2022 s%@DEFINES@%$DEFINES%g
2023 s%@COMPILEINFO@%$COMPILEINFO%g
2024 s%@AUTOGENERATE@%$AUTOGENERATE%g
2025 s%@BISON@%$BISON%g
2026 s%@FLEX@%$FLEX%g
2027 s%@LN@%$LN%g
2028 s%@PERL@%$PERL%g
2029 s%@PYTHON@%$PYTHON%g
2030 s%@ZIP@%$ZIP%g
2031 s%@TEXPREFIX@%$TEXPREFIX%g
2032 s%@TEXDIR@%$TEXDIR%g
2033 s%@MFDIR@%$MFDIR%g
2034 s%@DIR_DATADIR@%$DIR_DATADIR%g
2035 s%@absolute_builddir@%$absolute_builddir%g
2036 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2037 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
2038 s%@MAKE@%$MAKE%g
2039 s%@POD2HTML@%$POD2HTML%g
2040 s%@POD2MAN@%$POD2MAN%g
2041 s%@CXXCPP@%$CXXCPP%g
2042
2043 CEOF
2044 EOF
2045
2046 cat >> $CONFIG_STATUS <<\EOF
2047
2048 # Split the substitutions into bite-sized pieces for seds with
2049 # small command number limits, like on Digital OSF/1 and HP-UX.
2050 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2051 ac_file=1 # Number of current file.
2052 ac_beg=1 # First line for current file.
2053 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2054 ac_more_lines=:
2055 ac_sed_cmds=""
2056 while $ac_more_lines; do
2057   if test $ac_beg -gt 1; then
2058     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2059   else
2060     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2061   fi
2062   if test ! -s conftest.s$ac_file; then
2063     ac_more_lines=false
2064     rm -f conftest.s$ac_file
2065   else
2066     if test -z "$ac_sed_cmds"; then
2067       ac_sed_cmds="sed -f conftest.s$ac_file"
2068     else
2069       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2070     fi
2071     ac_file=`expr $ac_file + 1`
2072     ac_beg=$ac_end
2073     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2074   fi
2075 done
2076 if test -z "$ac_sed_cmds"; then
2077   ac_sed_cmds=cat
2078 fi
2079 EOF
2080
2081 cat >> $CONFIG_STATUS <<EOF
2082
2083 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
2084 EOF
2085 cat >> $CONFIG_STATUS <<\EOF
2086 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2087   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2088   case "$ac_file" in
2089   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2090        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2091   *) ac_file_in="${ac_file}.in" ;;
2092   esac
2093
2094   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2095
2096   # Remove last slash and all that follows it.  Not all systems have dirname.
2097   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2098   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2099     # The file is in a subdirectory.
2100     test ! -d "$ac_dir" && mkdir "$ac_dir"
2101     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2102     # A "../" for each directory in $ac_dir_suffix.
2103     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2104   else
2105     ac_dir_suffix= ac_dots=
2106   fi
2107
2108   case "$ac_given_srcdir" in
2109   .)  srcdir=.
2110       if test -z "$ac_dots"; then top_srcdir=.
2111       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2112   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2113   *) # Relative path.
2114     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2115     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2116   esac
2117
2118   case "$ac_given_INSTALL" in
2119   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2120   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2121   esac
2122
2123   echo creating "$ac_file"
2124   rm -f "$ac_file"
2125   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2126   case "$ac_file" in
2127   *Makefile*) ac_comsub="1i\\
2128 # $configure_input" ;;
2129   *) ac_comsub= ;;
2130   esac
2131
2132   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2133   sed -e "$ac_comsub
2134 s%@configure_input@%$configure_input%g
2135 s%@srcdir@%$srcdir%g
2136 s%@top_srcdir@%$top_srcdir%g
2137 s%@INSTALL@%$INSTALL%g
2138 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2139 fi; done
2140 rm -f conftest.s*
2141
2142 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2143 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2144 #
2145 # ac_d sets the value in "#define NAME VALUE" lines.
2146 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2147 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2148 ac_dC='\3'
2149 ac_dD='%g'
2150 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2151 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2152 ac_uB='\([      ]\)%\1#\2define\3'
2153 ac_uC=' '
2154 ac_uD='\4%g'
2155 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2156 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2157 ac_eB='$%\1#\2define\3'
2158 ac_eC=' '
2159 ac_eD='%g'
2160
2161 if test "${CONFIG_HEADERS+set}" != set; then
2162 EOF
2163 cat >> $CONFIG_STATUS <<EOF
2164   CONFIG_HEADERS="$CONFIGFILE.hh:config.hh.in"
2165 EOF
2166 cat >> $CONFIG_STATUS <<\EOF
2167 fi
2168 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2169   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2170   case "$ac_file" in
2171   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2172        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2173   *) ac_file_in="${ac_file}.in" ;;
2174   esac
2175
2176   echo creating $ac_file
2177
2178   rm -f conftest.frag conftest.in conftest.out
2179   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2180   cat $ac_file_inputs > conftest.in
2181
2182 EOF
2183
2184 # Transform confdefs.h into a sed script conftest.vals that substitutes
2185 # the proper values into config.h.in to produce config.h.  And first:
2186 # Protect against being on the right side of a sed subst in config.status.
2187 # Protect against being in an unquoted here document in config.status.
2188 rm -f conftest.vals
2189 cat > conftest.hdr <<\EOF
2190 s/[\\&%]/\\&/g
2191 s%[\\$`]%\\&%g
2192 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2193 s%ac_d%ac_u%gp
2194 s%ac_u%ac_e%gp
2195 EOF
2196 sed -n -f conftest.hdr confdefs.h > conftest.vals
2197 rm -f conftest.hdr
2198
2199 # This sed command replaces #undef with comments.  This is necessary, for
2200 # example, in the case of _POSIX_SOURCE, which is predefined and required
2201 # on some systems where configure will not decide to define it.
2202 cat >> conftest.vals <<\EOF
2203 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2204 EOF
2205
2206 # Break up conftest.vals because some shells have a limit on
2207 # the size of here documents, and old seds have small limits too.
2208
2209 rm -f conftest.tail
2210 while :
2211 do
2212   ac_lines=`grep -c . conftest.vals`
2213   # grep -c gives empty output for an empty file on some AIX systems.
2214   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2215   # Write a limited-size here document to conftest.frag.
2216   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2217   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2218   echo 'CEOF
2219   sed -f conftest.frag conftest.in > conftest.out
2220   rm -f conftest.in
2221   mv conftest.out conftest.in
2222 ' >> $CONFIG_STATUS
2223   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2224   rm -f conftest.vals
2225   mv conftest.tail conftest.vals
2226 done
2227 rm -f conftest.vals
2228
2229 cat >> $CONFIG_STATUS <<\EOF
2230   rm -f conftest.frag conftest.h
2231   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2232   cat conftest.in >> conftest.h
2233   rm -f conftest.in
2234   if cmp -s $ac_file conftest.h 2>/dev/null; then
2235     echo "$ac_file is unchanged"
2236     rm -f conftest.h
2237   else
2238     # Remove last slash and all that follows it.  Not all systems have dirname.
2239       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2240       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2241       # The file is in a subdirectory.
2242       test ! -d "$ac_dir" && mkdir "$ac_dir"
2243     fi
2244     rm -f $ac_file
2245     mv conftest.h $ac_file
2246   fi
2247 fi; done
2248
2249 EOF
2250 cat >> $CONFIG_STATUS <<EOF
2251
2252 EOF
2253 cat >> $CONFIG_STATUS <<\EOF
2254
2255 exit 0
2256 EOF
2257 chmod +x $CONFIG_STATUS
2258 rm -fr confdefs* $ac_clean_files
2259 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2260
2261
2262 rm -f Makefile
2263 cp make/Toplevel.make.in ./Makefile
2264 chmod 444 Makefile
2265