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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 enable-printing turn on debug printing. Default: off"
17 enable-checking set runtime checks (assert calls). Default: on"
19 enable-optimise use maximal speed optimisations. Default: off"
21 enable-profiling compile with gprof support. Default: off"
23 enable-debugging set debug info. Default: on"
25 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
27 enable-tex-prefix=DIR set the tex-directory to find TeX subdirectories. (default: PREFIX)"
29 enable-tex-dir=DIR set the directory to put LilyPond TeX files in. "
31 enable-mf-dir=DIR set the directory to put LilyPond MetaFont files in. "
33 enable-config=FILE put configure settings in config-FILE.make"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
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'
69 # Initialize some other variables.
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
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" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 datadir="$ac_optarg" ;;
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; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
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; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
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.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
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
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
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" ;;
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" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
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" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.12"
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; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
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" ;;
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" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
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
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted=no
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; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
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
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
537 ac_n= ac_c='\c' ac_t=
543 for ac_dir in bin $srcdir/bin; do
544 if test -f $ac_dir/install-sh; then
546 ac_install_sh="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh; then
550 ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
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; }
567 echo $ac_n "checking host system type""... $ac_c" 1>&6
568 echo "configure:569: checking host system type" >&5
571 case "$host_alias" in
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; }
578 *) host_alias=$nonopt ;;
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
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
597 . $srcdir/flower/VERSION
598 FULL_FLOWER_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
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.
605 REVISION=$PATCH_LEVEL
606 # CURRENT=$MINOR_VERSION
607 CURRENT=`expr $MINOR_VERSION + 1`
608 # AGE=$(expr $MAJOR_VERSION + 1)
614 # turn off shared libraries by default (may be enabled using --enable-shared)
618 # ugh, automake: we want (and check for) bison
619 for ac_prog in 'bison -y' byacc
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
628 if test -n "$YACC"; then
629 ac_cv_prog_YACC="$YACC" # Let the user override the test.
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"
642 YACC="$ac_cv_prog_YACC"
643 if test -n "$YACC"; then
644 echo "$ac_t""$YACC" 1>&6
646 echo "$ac_t""no" 1>&6
649 test -n "$YACC" && break
651 test -n "$YACC" || YACC="yacc"
654 # ugh, automake: we want (and check for) flex
656 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
660 ac_cv_prog_lex_root=lex.yy
662 # -O is necessary to get inlining
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
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
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
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
702 # Check whether --enable-profiling or --disable-profiling was given.
703 if test "${enable_profiling+set}" = set; then
704 enableval="$enable_profiling"
709 # Check whether --enable-debugging or --disable-debugging was given.
710 if test "${enable_debugging+set}" = set; then
711 enableval="$enable_debugging"
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
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"
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"
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"
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
760 if test "$printing_b" = no; then
762 cat >> confdefs.h <<\EOF
766 DEFINES="$DEFINES -DNPRINT"
769 if test "$checking_b" = no; then
771 cat >> confdefs.h <<\EOF
775 DEFINES="$DEFINES -DNDEBUG"
778 if test "$optimise_b" = yes; then
779 DEFINES="$DEFINES -finline-functions -DSTRING_UTILS_INLINED"
781 cat >> confdefs.h <<\EOF
782 #define STRINGS_UTILS_INLINED 1
787 if test $profile_b = yes; then
789 DEFINES="$DEFINES -pg"
792 if test $debug_b = yes; then
793 DEFINES="$DEFINES -g"
796 # however, C++ support in mingw32 v 0.1.4 is still flaky
797 if test x$MINGWPREFIX != xno; then
798 ICFLAGS="-I$MINGWPREFIX/include"
799 ILDFLAGS="-$MINGWPREFIX/lib"
802 if test "x$OSTYPE" = "xWindows_NT"; then
803 LN=cp # hard link does not work under cygnus-nt (yet?)
810 if test "$CONFIGSUFFIX" != "" ; then
811 CONFIGFILE=config-$CONFIGSUFFIX
818 AUTOGENERATE="This file was automatically generated by configure"
819 CPPFLAGS=${CPPFLAGS:-""} # we don't want -g -O junk
820 # CXXFLAGS=${CXXFLAGS:-""} # we don't want -g -O junk
821 CXXFLAGS="$DEFINES $OPTIMIZE"
824 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
826 # Extract the first word of "$ac_prog", so it can be a program name with args.
827 set dummy $ac_prog; ac_word=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 if test -n "$CXX"; then
834 ac_cv_prog_CXX="$CXX" # Let the user override the test.
836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
837 for ac_dir in $PATH; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
840 ac_cv_prog_CXX="$ac_prog"
847 CXX="$ac_cv_prog_CXX"
848 if test -n "$CXX"; then
849 echo "$ac_t""$CXX" 1>&6
851 echo "$ac_t""no" 1>&6
854 test -n "$CXX" && break
856 test -n "$CXX" || CXX="gcc"
859 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860 echo "configure:861: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
863 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp='$CXXCPP $CPPFLAGS'
865 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling=$ac_cv_prog_cxx_cross
869 cat > conftest.$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
874 if { (eval echo configure:875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
875 ac_cv_prog_cxx_works=yes
876 # If we can't run a trivial program, we are probably using a cross compiler.
877 if (./conftest; exit) 2>/dev/null; then
878 ac_cv_prog_cxx_cross=no
880 ac_cv_prog_cxx_cross=yes
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
885 ac_cv_prog_cxx_works=no
889 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
890 if test $ac_cv_prog_cxx_works = no; then
891 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
893 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
894 echo "configure:895: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
895 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
896 cross_compiling=$ac_cv_prog_cxx_cross
898 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
899 echo "configure:900: checking whether we are using GNU C++" >&5
900 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 cat > conftest.C <<EOF
908 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
915 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
917 if test $ac_cv_prog_gxx = yes; then
919 ac_test_CXXFLAGS="${CXXFLAGS+set}"
920 ac_save_CXXFLAGS="$CXXFLAGS"
922 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
923 echo "configure:924: checking whether ${CXX-g++} accepts -g" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 echo 'void f(){}' > conftest.cc
928 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
937 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
938 if test "$ac_test_CXXFLAGS" = set; then
939 CXXFLAGS="$ac_save_CXXFLAGS"
940 elif test $ac_cv_prog_cxx_g = yes; then
947 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
950 # Extract the first word of "ranlib", so it can be a program name with args.
951 set dummy ranlib; ac_word=$2
952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953 echo "configure:954: checking for $ac_word" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 if test -n "$RANLIB"; then
958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
961 for ac_dir in $PATH; do
962 test -z "$ac_dir" && ac_dir=.
963 if test -f $ac_dir/$ac_word; then
964 ac_cv_prog_RANLIB="ranlib"
969 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
972 RANLIB="$ac_cv_prog_RANLIB"
973 if test -n "$RANLIB"; then
974 echo "$ac_t""$RANLIB" 1>&6
976 echo "$ac_t""no" 1>&6
979 # Find a good install program. We prefer a C program (faster),
980 # so one script is as good as another. But avoid the broken or
981 # incompatible versions:
982 # SysV /etc/install, /usr/sbin/install
983 # SunOS /usr/etc/install
986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
988 # ./install, which can be erroneously created by make from ./install.sh.
989 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
990 echo "configure:991: checking for a BSD compatible install" >&5
991 if test -z "$INSTALL"; then
992 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
996 for ac_dir in $PATH; do
997 # Account for people who put trailing slashes in PATH elements.
999 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1001 # OSF1 and SCO ODT 3.0 have their own names for install.
1002 for ac_prog in ginstall installbsd scoinst install; do
1003 if test -f $ac_dir/$ac_prog; then
1004 if test $ac_prog = install &&
1005 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1006 # AIX install. It has an incompatible calling convention.
1007 # OSF/1 installbsd also uses dspmsg, but is usable.
1010 ac_cv_path_install="$ac_dir/$ac_prog -c"
1021 if test "${ac_cv_path_install+set}" = set; then
1022 INSTALL="$ac_cv_path_install"
1024 # As a last resort, use the slow shell script. We don't cache a
1025 # path for INSTALL within a source directory, because that will
1026 # break other packages using the cache if that directory is
1027 # removed, or if the path is relative.
1028 INSTALL="$ac_install_sh"
1031 echo "$ac_t""$INSTALL" 1>&6
1033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1034 # It thinks the first close brace ends the variable substitution.
1035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1041 # Extract the first word of "$ac_prog", so it can be a program name with args.
1042 set dummy $ac_prog; ac_word=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 if test -n "$TAR"; then
1049 ac_cv_prog_TAR="$TAR" # Let the user override the test.
1051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1052 for ac_dir in $PATH; do
1053 test -z "$ac_dir" && ac_dir=.
1054 if test -f $ac_dir/$ac_word; then
1055 ac_cv_prog_TAR="$ac_prog"
1062 TAR="$ac_cv_prog_TAR"
1063 if test -n "$TAR"; then
1064 echo "$ac_t""$TAR" 1>&6
1066 echo "$ac_t""no" 1>&6
1069 test -n "$TAR" && break
1071 test -n "$TAR" || TAR="error"
1075 # Extract the first word of "$ac_prog", so it can be a program name with args.
1076 set dummy $ac_prog; ac_word=$2
1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1078 echo "configure:1079: checking for $ac_word" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 if test -n "$FIND"; then
1083 ac_cv_prog_FIND="$FIND" # Let the user override the test.
1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1086 for ac_dir in $PATH; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_prog_FIND="$ac_prog"
1096 FIND="$ac_cv_prog_FIND"
1097 if test -n "$FIND"; then
1098 echo "$ac_t""$FIND" 1>&6
1100 echo "$ac_t""no" 1>&6
1103 test -n "$FIND" && break
1105 test -n "$FIND" || FIND="error"
1109 if test $FIND = "error"
1112 echo "configure: warning: can't find \`find\'. Please use --enable-tex-dir. " 1>&2
1118 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1119 echo "configure:1120: checking for 8-bit clean memcmp" >&5
1120 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 if test "$cross_compiling" = yes; then
1124 ac_cv_func_memcmp_clean=no
1126 cat > conftest.$ac_ext <<EOF
1127 #line 1128 "configure"
1128 #include "confdefs.h"
1130 extern "C" void exit(int);
1135 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1136 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1140 if { (eval echo configure:1141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1142 ac_cv_func_memcmp_clean=yes
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
1147 ac_cv_func_memcmp_clean=no
1154 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1155 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
1157 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1158 echo "configure:1159: checking for vprintf" >&5
1159 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 cat > conftest.$ac_ext <<EOF
1163 #line 1164 "configure"
1164 #include "confdefs.h"
1165 /* System header to define __stub macros and hopefully few prototypes,
1166 which can conflict with char vprintf(); below. */
1168 /* Override any gcc2 internal prototype to avoid an error. */
1172 /* We use char because int might match the return type of a gcc2
1173 builtin and then its argument prototype would still apply. */
1178 /* The GNU C library defines this for functions which it implements
1179 to always fail with ENOSYS. Some functions are actually named
1180 something starting with __ and the normal name is an alias. */
1181 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1189 if { (eval echo configure:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1191 eval "ac_cv_func_vprintf=yes"
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1196 eval "ac_cv_func_vprintf=no"
1201 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1202 echo "$ac_t""yes" 1>&6
1203 cat >> confdefs.h <<\EOF
1204 #define HAVE_VPRINTF 1
1208 echo "$ac_t""no" 1>&6
1211 if test "$ac_cv_func_vprintf" != yes; then
1212 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1213 echo "configure:1214: checking for _doprnt" >&5
1214 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1220 /* System header to define __stub macros and hopefully few prototypes,
1221 which can conflict with char _doprnt(); below. */
1223 /* Override any gcc2 internal prototype to avoid an error. */
1227 /* We use char because int might match the return type of a gcc2
1228 builtin and then its argument prototype would still apply. */
1233 /* The GNU C library defines this for functions which it implements
1234 to always fail with ENOSYS. Some functions are actually named
1235 something starting with __ and the normal name is an alias. */
1236 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1244 if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1246 eval "ac_cv_func__doprnt=yes"
1248 echo "configure: failed program was:" >&5
1249 cat conftest.$ac_ext >&5
1251 eval "ac_cv_func__doprnt=no"
1256 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1257 echo "$ac_t""yes" 1>&6
1258 cat >> confdefs.h <<\EOF
1259 #define HAVE_DOPRNT 1
1263 echo "$ac_t""no" 1>&6
1268 for ac_func in memmem snprintf
1270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_func" >&5
1272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 cat > conftest.$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1278 /* System header to define __stub macros and hopefully few prototypes,
1279 which can conflict with char $ac_func(); below. */
1281 /* Override any gcc2 internal prototype to avoid an error. */
1285 /* We use char because int might match the return type of a gcc2
1286 builtin and then its argument prototype would still apply. */
1291 /* The GNU C library defines this for functions which it implements
1292 to always fail with ENOSYS. Some functions are actually named
1293 something starting with __ and the normal name is an alias. */
1294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1302 if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1304 eval "ac_cv_func_$ac_func=yes"
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1309 eval "ac_cv_func_$ac_func=no"
1314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1315 echo "$ac_t""yes" 1>&6
1316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1317 cat >> confdefs.h <<EOF
1318 #define $ac_tr_func 1
1322 echo "$ac_t""no" 1>&6
1327 cat >> confdefs.h <<EOF
1328 #define TOPLEVEL_VERSION "${FULL_VERSION}"
1331 cat >> confdefs.h <<EOF
1332 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
1335 # ugh: produces "${prefix}/share/lilypond"
1336 # DIR_DATADIR=$datadir/lilypond
1337 # ugh: produces "NONE/share/lilypond"
1338 # DIR_DATADIR=$prefix/share/lilypond
1340 DIR_DATADIR=$prefix/share/lilypond
1341 if test x$prefix = xNONE; then
1342 DIR_DATADIR=/usr/local/share/lilypond
1344 cat >> confdefs.h <<EOF
1345 #define DIR_DATADIR "${DIR_DATADIR}"
1349 absolute_builddir="`pwd`"
1374 for ac_prog in bison
1376 # Extract the first word of "$ac_prog", so it can be a program name with args.
1377 set dummy $ac_prog; ac_word=$2
1378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_word" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 if test -n "$BISON"; then
1384 ac_cv_prog_BISON="$BISON" # Let the user override the test.
1386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1387 for ac_dir in $PATH; do
1388 test -z "$ac_dir" && ac_dir=.
1389 if test -f $ac_dir/$ac_word; then
1390 ac_cv_prog_BISON="$ac_prog"
1397 BISON="$ac_cv_prog_BISON"
1398 if test -n "$BISON"; then
1399 echo "$ac_t""$BISON" 1>&6
1401 echo "$ac_t""no" 1>&6
1404 test -n "$BISON" && break
1406 test -n "$BISON" || BISON="error"
1410 # Extract the first word of "$ac_prog", so it can be a program name with args.
1411 set dummy $ac_prog; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$FLEX"; then
1418 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1421 for ac_dir in $PATH; do
1422 test -z "$ac_dir" && ac_dir=.
1423 if test -f $ac_dir/$ac_word; then
1424 ac_cv_prog_FLEX="$ac_prog"
1431 FLEX="$ac_cv_prog_FLEX"
1432 if test -n "$FLEX"; then
1433 echo "$ac_t""$FLEX" 1>&6
1435 echo "$ac_t""no" 1>&6
1438 test -n "$FLEX" && break
1440 test -n "$FLEX" || FLEX="error"
1444 # Extract the first word of "$ac_prog", so it can be a program name with args.
1445 set dummy $ac_prog; ac_word=$2
1446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1447 echo "configure:1448: checking for $ac_word" >&5
1448 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1451 if test -n "$MAKE"; then
1452 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1455 for ac_dir in $PATH; do
1456 test -z "$ac_dir" && ac_dir=.
1457 if test -f $ac_dir/$ac_word; then
1458 ac_cv_prog_MAKE="$ac_prog"
1465 MAKE="$ac_cv_prog_MAKE"
1466 if test -n "$MAKE"; then
1467 echo "$ac_t""$MAKE" 1>&6
1469 echo "$ac_t""no" 1>&6
1472 test -n "$MAKE" && break
1474 test -n "$MAKE" || MAKE="error"
1476 # Extract the first word of "perl", so it can be a program name with args.
1477 set dummy perl; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1485 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1489 for ac_dir in $PATH; do
1490 test -z "$ac_dir" && ac_dir=.
1491 if test -f $ac_dir/$ac_word; then
1492 ac_cv_path_PERL="$ac_dir/$ac_word"
1497 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
1501 PERL="$ac_cv_path_PERL"
1502 if test -n "$PERL"; then
1503 echo "$ac_t""$PERL" 1>&6
1505 echo "$ac_t""no" 1>&6
1508 # Extract the first word of "python", so it can be a program name with args.
1509 set dummy python; ac_word=$2
1510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $ac_word" >&5
1512 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1517 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1521 for ac_dir in $PATH; do
1522 test -z "$ac_dir" && ac_dir=.
1523 if test -f $ac_dir/$ac_word; then
1524 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1529 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="error"
1533 PYTHON="$ac_cv_path_PYTHON"
1534 if test -n "$PYTHON"; then
1535 echo "$ac_t""$PYTHON" 1>&6
1537 echo "$ac_t""no" 1>&6
1540 for ac_prog in pod2html
1542 # Extract the first word of "$ac_prog", so it can be a program name with args.
1543 set dummy $ac_prog; ac_word=$2
1544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1545 echo "configure:1546: checking for $ac_word" >&5
1546 if eval "test \"`echo '$''{'ac_cv_prog_POD2HTML'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 if test -n "$POD2HTML"; then
1550 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
1552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1553 for ac_dir in $PATH; do
1554 test -z "$ac_dir" && ac_dir=.
1555 if test -f $ac_dir/$ac_word; then
1556 ac_cv_prog_POD2HTML="$ac_prog"
1563 POD2HTML="$ac_cv_prog_POD2HTML"
1564 if test -n "$POD2HTML"; then
1565 echo "$ac_t""$POD2HTML" 1>&6
1567 echo "$ac_t""no" 1>&6
1570 test -n "$POD2HTML" && break
1572 test -n "$POD2HTML" || POD2HTML="error"
1574 for ac_prog in pod2man
1576 # Extract the first word of "$ac_prog", so it can be a program name with args.
1577 set dummy $ac_prog; ac_word=$2
1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_word" >&5
1580 if eval "test \"`echo '$''{'ac_cv_prog_POD2MAN'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 if test -n "$POD2MAN"; then
1584 ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
1586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1587 for ac_dir in $PATH; do
1588 test -z "$ac_dir" && ac_dir=.
1589 if test -f $ac_dir/$ac_word; then
1590 ac_cv_prog_POD2MAN="$ac_prog"
1597 POD2MAN="$ac_cv_prog_POD2MAN"
1598 if test -n "$POD2MAN"; then
1599 echo "$ac_t""$POD2MAN" 1>&6
1601 echo "$ac_t""no" 1>&6
1604 test -n "$POD2MAN" && break
1606 test -n "$POD2MAN" || POD2MAN="error"
1610 if test "x$TEXPREFIX" = xauto ; then
1614 echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1615 echo "configure:1616: checking TeX/MF root dir directory" >&5
1617 find_root_prefix="$prefix"
1620 test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1622 for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1623 find_texprefix="$find_root_prefix$postfix"
1624 if test -d $find_texprefix; then
1625 find_texpostfix=$postfix
1630 if test "x$find_texpostfix" = x; then
1631 find_texpostfix='/lib/texmf/tex'
1633 echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1638 find_texprefix="$find_root_prefix/$find_texpostfix"
1640 # only assign if variablename not empty
1641 if test x != "x$TEXPREFIX"; then
1642 TEXPREFIX='${prefix}'/"$find_texpostfix"
1644 echo "$ac_t""$find_texprefix" 1>&6
1648 find_texprefix=$TEXPREFIX
1651 if test "x$MFDIR" = xauto; then
1655 echo $ac_n "checking MF input directory""... $ac_c" 1>&6
1656 echo "configure:1657: checking MF input directory" >&5
1657 find_dirdir=`(cd $find_texprefix;
1658 $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
1661 if test "x$find_dirdir" = x; then
1662 find_dirdir="/source";
1664 echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
1670 echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1672 MFDIR="$TEXPREFIX/$MFDIR"
1676 if test "x$TEXDIR" = xauto ; then
1680 echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
1681 echo "configure:1682: checking TeX input directory" >&5
1682 find_dirdir=`(cd $find_texprefix;
1683 $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
1686 if test "x$find_dirdir" = x; then
1689 echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
1695 echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1697 TEXDIR="$TEXPREFIX/$TEXDIR"
1702 # AC_JUNK_ARGS( [if test "x$MFDIR" = xauto; then
1703 # AC_MF_SUBDIR(MFDIR)
1708 if test $MAKE = "error"
1711 echo "configure: warning: can't find GNU make. You should install GNU make" 1>&2
1717 if test $BISON = "error"
1720 echo "configure: warning: can't find bison. Please install Bison" 1>&2
1726 if test $PERL = "error"
1729 echo "configure: warning: can't find perl. You should install Perl" 1>&2
1735 if test $PYTHON = "error"
1738 echo "configure: warning: can't find python. You should install Python" 1>&2
1744 if test $FLEX = "error"
1747 echo "configure: warning: can't find flex. Please install Flex" 1>&2
1753 if test $POD2MAN = "error"
1756 echo "configure: warning: can't find pod. You should install Perl" 1>&2
1763 if test $MAKE != "error" ; then
1764 $MAKE -v| grep GNU > /dev/null
1768 echo "configure: warning: Please install *GNU* make" 1>&2
1774 if test $BISON != "error"; then
1775 bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1776 if test $bison_version -lt 25; then
1778 echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
1786 if $CXX --version | grep '2\.[78]' > /dev/null ||
1787 $CXX --version | grep 'egcs' > /dev/null
1792 echo "configure: warning: can't find g++ 2.7" 1>&2
1797 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1798 echo "configure:1799: checking how to run the C++ preprocessor" >&5
1799 if test -z "$CXXCPP"; then
1800 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1805 ac_cpp='$CXXCPP $CPPFLAGS'
1806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1807 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1808 cross_compiling=$ac_cv_prog_cxx_cross
1809 CXXCPP="${CXX-g++} -E"
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1816 { (eval echo configure:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1817 ac_err=`grep -v '^ *+' conftest.out`
1818 if test -z "$ac_err"; then
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1828 ac_cv_prog_CXXCPP="$CXXCPP"
1831 CXXCPP="$ac_cv_prog_CXXCPP"
1832 echo "$ac_t""$CXXCPP" 1>&6
1834 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1835 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1836 echo "configure:1837: checking for FlexLexer.h" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <FlexLexer.h>
1845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1846 { (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1847 ac_err=`grep -v '^ *+' conftest.out`
1848 if test -z "$ac_err"; then
1850 eval "ac_cv_header_$ac_safe=yes"
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1856 eval "ac_cv_header_$ac_safe=no"
1860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1864 echo "$ac_t""no" 1>&6
1866 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1876 # first do Foobar/Makefile then Foobar/include/Makefile
1878 cat > confcache <<\EOF
1879 # This file is a shell script that caches the results of configure
1880 # tests run on this system so they can be shared between configure
1881 # scripts and configure runs. It is not useful on other systems.
1882 # If it contains results you don't want to keep, you may remove or edit it.
1884 # By default, configure uses ./config.cache as the cache file,
1885 # creating it if it does not exist already. You can give configure
1886 # the --cache-file=FILE option to use a different cache file; that is
1887 # what configure does when it calls configure scripts in
1888 # subdirectories, so they share the cache.
1889 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1890 # config.status only pays attention to the cache file if you give it the
1891 # --recheck option to rerun configure.
1894 # The following way of writing the cache mishandles newlines in values,
1895 # but we know of no workaround that is simple, portable, and efficient.
1896 # So, don't put newlines in cache variables' values.
1897 # Ultrix sh set writes to stderr and can't be redirected directly,
1898 # and sets the high bit in the cache file unless we assign to the vars.
1900 case `(ac_space=' '; set) 2>&1` in
1902 # `set' does not quote correctly, so add quotes (double-quote substitution
1903 # turns \\\\ into \\, and sed turns \\ into \).
1905 -e "s/'/'\\\\''/g" \
1906 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1909 # `set' quotes correctly as required by POSIX, so do not add quotes.
1910 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1913 if cmp -s $cache_file confcache; then
1916 if test -w $cache_file; then
1917 echo "updating cache $cache_file"
1918 cat confcache > $cache_file
1920 echo "not updating unwritable cache $cache_file"
1925 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1928 # Let make expand exec_prefix.
1929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1931 # Any assignment to VPATH causes Sun make to only execute
1932 # the first set of double-colon rules, so remove it if not needed.
1933 # If there is a colon in the path, we need to keep it.
1934 if test "x$srcdir" = x.; then
1935 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1938 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1940 DEFS=-DHAVE_CONFIG_H
1942 # Without the "./", some shells look in PATH for config.status.
1943 : ${CONFIG_STATUS=./config.status}
1945 echo creating $CONFIG_STATUS
1946 rm -f $CONFIG_STATUS
1947 cat > $CONFIG_STATUS <<EOF
1949 # Generated automatically by configure.
1950 # Run this file to recreate the current configuration.
1951 # This directory was configured as follows,
1952 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1954 # $0 $ac_configure_args
1956 # Compiler output produced by configure, useful for debugging
1957 # configure, is in ./config.log if it exists.
1959 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1962 case "\$ac_option" in
1963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1964 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1965 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1966 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1967 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1969 -help | --help | --hel | --he | --h)
1970 echo "\$ac_cs_usage"; exit 0 ;;
1971 *) echo "\$ac_cs_usage"; exit 1 ;;
1975 ac_given_srcdir=$srcdir
1976 ac_given_INSTALL="$INSTALL"
1978 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1980 cat >> $CONFIG_STATUS <<EOF
1982 # Protect against being on the right side of a sed subst in config.status.
1983 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1984 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1987 s%@CFLAGS@%$CFLAGS%g
1988 s%@CPPFLAGS@%$CPPFLAGS%g
1989 s%@CXXFLAGS@%$CXXFLAGS%g
1991 s%@LDFLAGS@%$LDFLAGS%g
1993 s%@exec_prefix@%$exec_prefix%g
1994 s%@prefix@%$prefix%g
1995 s%@program_transform_name@%$program_transform_name%g
1996 s%@bindir@%$bindir%g
1997 s%@sbindir@%$sbindir%g
1998 s%@libexecdir@%$libexecdir%g
1999 s%@datadir@%$datadir%g
2000 s%@sysconfdir@%$sysconfdir%g
2001 s%@sharedstatedir@%$sharedstatedir%g
2002 s%@localstatedir@%$localstatedir%g
2003 s%@libdir@%$libdir%g
2004 s%@includedir@%$includedir%g
2005 s%@oldincludedir@%$oldincludedir%g
2006 s%@infodir@%$infodir%g
2007 s%@mandir@%$mandir%g
2009 s%@host_alias@%$host_alias%g
2010 s%@host_cpu@%$host_cpu%g
2011 s%@host_vendor@%$host_vendor%g
2012 s%@host_os@%$host_os%g
2013 s%@CURRENT@%$CURRENT%g
2014 s%@REVISION@%$REVISION%g
2018 s%@RANLIB@%$RANLIB%g
2019 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2020 s%@INSTALL_DATA@%$INSTALL_DATA%g
2023 s%@LIBOBJS@%$LIBOBJS%g
2024 s%@ICFLAGS@%$ICFLAGS%g
2025 s%@ILDFLAGS@%$ILDFLAGS%g
2026 s%@DEFINES@%$DEFINES%g
2027 s%@COMPILEINFO@%$COMPILEINFO%g
2028 s%@AUTOGENERATE@%$AUTOGENERATE%g
2033 s%@PYTHON@%$PYTHON%g
2035 s%@TEXPREFIX@%$TEXPREFIX%g
2036 s%@TEXDIR@%$TEXDIR%g
2038 s%@DIR_DATADIR@%$DIR_DATADIR%g
2039 s%@absolute_builddir@%$absolute_builddir%g
2040 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2041 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
2043 s%@POD2HTML@%$POD2HTML%g
2044 s%@POD2MAN@%$POD2MAN%g
2045 s%@CXXCPP@%$CXXCPP%g
2050 cat >> $CONFIG_STATUS <<\EOF
2052 # Split the substitutions into bite-sized pieces for seds with
2053 # small command number limits, like on Digital OSF/1 and HP-UX.
2054 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2055 ac_file=1 # Number of current file.
2056 ac_beg=1 # First line for current file.
2057 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2060 while $ac_more_lines; do
2061 if test $ac_beg -gt 1; then
2062 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2064 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2066 if test ! -s conftest.s$ac_file; then
2068 rm -f conftest.s$ac_file
2070 if test -z "$ac_sed_cmds"; then
2071 ac_sed_cmds="sed -f conftest.s$ac_file"
2073 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2075 ac_file=`expr $ac_file + 1`
2077 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2080 if test -z "$ac_sed_cmds"; then
2085 cat >> $CONFIG_STATUS <<EOF
2087 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
2089 cat >> $CONFIG_STATUS <<\EOF
2090 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2093 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2094 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2095 *) ac_file_in="${ac_file}.in" ;;
2098 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2100 # Remove last slash and all that follows it. Not all systems have dirname.
2101 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2102 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2103 # The file is in a subdirectory.
2104 test ! -d "$ac_dir" && mkdir "$ac_dir"
2105 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2106 # A "../" for each directory in $ac_dir_suffix.
2107 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2109 ac_dir_suffix= ac_dots=
2112 case "$ac_given_srcdir" in
2114 if test -z "$ac_dots"; then top_srcdir=.
2115 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2116 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2118 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2119 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2122 case "$ac_given_INSTALL" in
2123 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2124 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2127 echo creating "$ac_file"
2129 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2131 *Makefile*) ac_comsub="1i\\
2132 # $configure_input" ;;
2136 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2138 s%@configure_input@%$configure_input%g
2139 s%@srcdir@%$srcdir%g
2140 s%@top_srcdir@%$top_srcdir%g
2141 s%@INSTALL@%$INSTALL%g
2142 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2146 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2147 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2149 # ac_d sets the value in "#define NAME VALUE" lines.
2150 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2151 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2154 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2155 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2156 ac_uB='\([ ]\)%\1#\2define\3'
2159 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2160 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2161 ac_eB='$%\1#\2define\3'
2165 if test "${CONFIG_HEADERS+set}" != set; then
2167 cat >> $CONFIG_STATUS <<EOF
2168 CONFIG_HEADERS="$CONFIGFILE.hh:config.hh.in"
2170 cat >> $CONFIG_STATUS <<\EOF
2172 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2173 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2175 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2176 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2177 *) ac_file_in="${ac_file}.in" ;;
2180 echo creating $ac_file
2182 rm -f conftest.frag conftest.in conftest.out
2183 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2184 cat $ac_file_inputs > conftest.in
2188 # Transform confdefs.h into a sed script conftest.vals that substitutes
2189 # the proper values into config.h.in to produce config.h. And first:
2190 # Protect against being on the right side of a sed subst in config.status.
2191 # Protect against being in an unquoted here document in config.status.
2193 cat > conftest.hdr <<\EOF
2196 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2200 sed -n -f conftest.hdr confdefs.h > conftest.vals
2203 # This sed command replaces #undef with comments. This is necessary, for
2204 # example, in the case of _POSIX_SOURCE, which is predefined and required
2205 # on some systems where configure will not decide to define it.
2206 cat >> conftest.vals <<\EOF
2207 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2210 # Break up conftest.vals because some shells have a limit on
2211 # the size of here documents, and old seds have small limits too.
2216 ac_lines=`grep -c . conftest.vals`
2217 # grep -c gives empty output for an empty file on some AIX systems.
2218 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2219 # Write a limited-size here document to conftest.frag.
2220 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2221 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2223 sed -f conftest.frag conftest.in > conftest.out
2225 mv conftest.out conftest.in
2227 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2229 mv conftest.tail conftest.vals
2233 cat >> $CONFIG_STATUS <<\EOF
2234 rm -f conftest.frag conftest.h
2235 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2236 cat conftest.in >> conftest.h
2238 if cmp -s $ac_file conftest.h 2>/dev/null; then
2239 echo "$ac_file is unchanged"
2242 # Remove last slash and all that follows it. Not all systems have dirname.
2243 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2244 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2245 # The file is in a subdirectory.
2246 test ! -d "$ac_dir" && mkdir "$ac_dir"
2249 mv conftest.h $ac_file
2254 cat >> $CONFIG_STATUS <<EOF
2257 cat >> $CONFIG_STATUS <<\EOF
2261 chmod +x $CONFIG_STATUS
2262 rm -fr confdefs* $ac_clean_files
2263 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2267 cp make/Toplevel.make.in ./Makefile