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