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 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
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'
67 # Initialize some other variables.
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
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" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
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; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
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; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
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.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
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
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
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" ;;
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" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
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" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.12"
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; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
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" ;;
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" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
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
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
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; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
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
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
535 ac_n= ac_c='\c' ac_t=
541 for ac_dir in bin $srcdir/bin; do
542 if test -f $ac_dir/install-sh; then
544 ac_install_sh="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh; then
548 ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
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; }
565 echo $ac_n "checking host system type""... $ac_c" 1>&6
566 echo "configure:567: checking host system type" >&5
569 case "$host_alias" in
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; }
576 *) host_alias=$nonopt ;;
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
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
595 . $srcdir/flower/VERSION
596 FULL_FLOWER_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
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.
603 REVISION=$PATCH_LEVEL
604 # CURRENT=$MINOR_VERSION
605 CURRENT=`expr $MINOR_VERSION + 1`
606 # AGE=$(expr $MAJOR_VERSION + 1)
612 # turn off shared libraries by default (may be enabled using --enable-shared)
616 # ugh, automake: we want (and check for) bison
617 for ac_prog in 'bison -y' byacc
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
626 if test -n "$YACC"; then
627 ac_cv_prog_YACC="$YACC" # Let the user override the test.
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"
640 YACC="$ac_cv_prog_YACC"
641 if test -n "$YACC"; then
642 echo "$ac_t""$YACC" 1>&6
644 echo "$ac_t""no" 1>&6
647 test -n "$YACC" && break
649 test -n "$YACC" || YACC="yacc"
652 # ugh, automake: we want (and check for) flex
654 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
658 ac_cv_prog_lex_root=lex.yy
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
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
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
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
696 # Check whether --enable-profiling or --disable-profiling was given.
697 if test "${enable_profiling+set}" = set; then
698 enableval="$enable_profiling"
703 # Check whether --enable-debugging or --disable-debugging was given.
704 if test "${enable_debugging+set}" = set; then
705 enableval="$enable_debugging"
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
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"
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"
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"
746 if test "$printing_b" = no; then
747 cat >> confdefs.h <<\EOF
753 if test "$checking_b" = no; then
754 cat >> confdefs.h <<\EOF
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
768 if test $profile_b = yes; then
770 DEFINES="$DEFINES -pg"
773 if test $debug_b = yes; then
774 DEFINES="$DEFINES -g"
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"
783 if test "x$OSTYPE" = "xWindows_NT"; then
784 LN=cp # hard link does not work under cygnus-nt (yet?)
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
797 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
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
806 if test -n "$CXX"; then
807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
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"
820 CXX="$ac_cv_prog_CXX"
821 if test -n "$CXX"; then
822 echo "$ac_t""$CXX" 1>&6
824 echo "$ac_t""no" 1>&6
827 test -n "$CXX" && break
829 test -n "$CXX" || CXX="gcc"
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
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
842 cat > conftest.$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
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
853 ac_cv_prog_cxx_cross=yes
856 echo "configure: failed program was:" >&5
857 cat conftest.$ac_ext >&5
858 ac_cv_prog_cxx_works=no
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; }
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
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
876 cat > conftest.C <<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
888 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
890 if test $ac_cv_prog_gxx = yes; then
892 ac_test_CXXFLAGS="${CXXFLAGS+set}"
893 ac_save_CXXFLAGS="$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
900 echo 'void f(){}' > conftest.cc
901 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
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
920 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
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
930 if test -n "$RANLIB"; then
931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
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"
942 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
945 RANLIB="$ac_cv_prog_RANLIB"
946 if test -n "$RANLIB"; then
947 echo "$ac_t""$RANLIB" 1>&6
949 echo "$ac_t""no" 1>&6
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
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
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.
972 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
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.
983 ac_cv_path_install="$ac_dir/$ac_prog -c"
994 if test "${ac_cv_path_install+set}" = set; then
995 INSTALL="$ac_cv_path_install"
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"
1004 echo "$ac_t""$INSTALL" 1>&6
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}'
1010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
1021 if test -n "$TAR"; then
1022 ac_cv_prog_TAR="$TAR" # Let the user override the test.
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"
1035 TAR="$ac_cv_prog_TAR"
1036 if test -n "$TAR"; then
1037 echo "$ac_t""$TAR" 1>&6
1039 echo "$ac_t""no" 1>&6
1042 test -n "$TAR" && break
1044 test -n "$TAR" || TAR="error"
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
1055 if test -n "$FIND"; then
1056 ac_cv_prog_FIND="$FIND" # Let the user override the test.
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"
1069 FIND="$ac_cv_prog_FIND"
1070 if test -n "$FIND"; then
1071 echo "$ac_t""$FIND" 1>&6
1073 echo "$ac_t""no" 1>&6
1076 test -n "$FIND" && break
1078 test -n "$FIND" || FIND="error"
1082 if test $FIND = "error"
1085 echo "configure: warning: can't find \`find\'. Please use --enable-tex-dir. " 1>&2
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
1096 if test "$cross_compiling" = yes; then
1097 ac_cv_func_memcmp_clean=no
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1103 extern "C" void exit(int);
1108 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1109 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1113 if { (eval echo configure:1114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1115 ac_cv_func_memcmp_clean=yes
1117 echo "configure: failed program was:" >&5
1118 cat conftest.$ac_ext >&5
1120 ac_cv_func_memcmp_clean=no
1127 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1128 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
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
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. */
1141 /* Override any gcc2 internal prototype to avoid an error. */
1145 /* We use char because int might match the return type of a gcc2
1146 builtin and then its argument prototype would still apply. */
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)
1162 if { (eval echo configure:1163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1164 eval "ac_cv_func_vprintf=yes"
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1169 eval "ac_cv_func_vprintf=no"
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
1181 echo "$ac_t""no" 1>&6
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
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. */
1196 /* Override any gcc2 internal prototype to avoid an error. */
1200 /* We use char because int might match the return type of a gcc2
1201 builtin and then its argument prototype would still apply. */
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)
1217 if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1219 eval "ac_cv_func__doprnt=yes"
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1224 eval "ac_cv_func__doprnt=no"
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
1236 echo "$ac_t""no" 1>&6
1241 for ac_func in memmem snprintf
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
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. */
1254 /* Override any gcc2 internal prototype to avoid an error. */
1258 /* We use char because int might match the return type of a gcc2
1259 builtin and then its argument prototype would still apply. */
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)
1275 if { (eval echo configure:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1277 eval "ac_cv_func_$ac_func=yes"
1279 echo "configure: failed program was:" >&5
1280 cat conftest.$ac_ext >&5
1282 eval "ac_cv_func_$ac_func=no"
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
1295 echo "$ac_t""no" 1>&6
1300 cat >> confdefs.h <<EOF
1301 #define TOPLEVEL_VERSION "${FULL_VERSION}"
1304 cat >> confdefs.h <<EOF
1305 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
1308 # ugh: produces "${prefix}/share/lilypond"
1309 # DIR_DATADIR=$datadir/lilypond
1310 # ugh: produces "NONE/share/lilypond"
1311 # DIR_DATADIR=$prefix/share/lilypond
1313 DIR_DATADIR=$prefix/share/lilypond
1314 if test x$prefix = xNONE; then
1315 DIR_DATADIR=/usr/local/share/lilypond
1317 cat >> confdefs.h <<EOF
1318 #define DIR_DATADIR "${DIR_DATADIR}"
1322 absolute_builddir="`pwd`"
1347 for ac_prog in bison
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
1356 if test -n "$BISON"; then
1357 ac_cv_prog_BISON="$BISON" # Let the user override the test.
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"
1370 BISON="$ac_cv_prog_BISON"
1371 if test -n "$BISON"; then
1372 echo "$ac_t""$BISON" 1>&6
1374 echo "$ac_t""no" 1>&6
1377 test -n "$BISON" && break
1379 test -n "$BISON" || BISON="error"
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
1390 if test -n "$FLEX"; then
1391 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
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"
1404 FLEX="$ac_cv_prog_FLEX"
1405 if test -n "$FLEX"; then
1406 echo "$ac_t""$FLEX" 1>&6
1408 echo "$ac_t""no" 1>&6
1411 test -n "$FLEX" && break
1413 test -n "$FLEX" || FLEX="error"
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
1424 if test -n "$MAKE"; then
1425 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
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"
1438 MAKE="$ac_cv_prog_MAKE"
1439 if test -n "$MAKE"; then
1440 echo "$ac_t""$MAKE" 1>&6
1442 echo "$ac_t""no" 1>&6
1445 test -n "$MAKE" && break
1447 test -n "$MAKE" || MAKE="error"
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
1458 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
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"
1470 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
1474 PERL="$ac_cv_path_PERL"
1475 if test -n "$PERL"; then
1476 echo "$ac_t""$PERL" 1>&6
1478 echo "$ac_t""no" 1>&6
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
1490 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
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"
1502 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="error"
1506 PYTHON="$ac_cv_path_PYTHON"
1507 if test -n "$PYTHON"; then
1508 echo "$ac_t""$PYTHON" 1>&6
1510 echo "$ac_t""no" 1>&6
1513 for ac_prog in pod2html
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
1522 if test -n "$POD2HTML"; then
1523 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test.
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"
1536 POD2HTML="$ac_cv_prog_POD2HTML"
1537 if test -n "$POD2HTML"; then
1538 echo "$ac_t""$POD2HTML" 1>&6
1540 echo "$ac_t""no" 1>&6
1543 test -n "$POD2HTML" && break
1545 test -n "$POD2HTML" || POD2HTML="error"
1547 for ac_prog in pod2man
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
1556 if test -n "$POD2MAN"; then
1557 ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
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"
1570 POD2MAN="$ac_cv_prog_POD2MAN"
1571 if test -n "$POD2MAN"; then
1572 echo "$ac_t""$POD2MAN" 1>&6
1574 echo "$ac_t""no" 1>&6
1577 test -n "$POD2MAN" && break
1579 test -n "$POD2MAN" || POD2MAN="error"
1583 if test "x$TEXPREFIX" = xauto ; then
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
1590 find_root_prefix="$prefix"
1593 test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
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
1603 if test "x$find_texpostfix" = x; then
1604 find_texpostfix='/lib/texmf/tex'
1606 echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1611 find_texprefix="$find_root_prefix/$find_texpostfix"
1613 # only assign if variablename not empty
1614 if test x != "x$TEXPREFIX"; then
1615 TEXPREFIX='${prefix}'/"$find_texpostfix"
1617 echo "$ac_t""$find_texprefix" 1>&6
1621 find_texprefix=$TEXPREFIX
1624 if test "x$MFDIR" = xauto; then
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#^\./##')`
1634 if test "x$find_dirdir" = x; then
1635 find_dirdir="/source";
1637 echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
1643 echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1645 MFDIR="$TEXPREFIX/$MFDIR"
1649 if test "x$TEXDIR" = xauto ; then
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#^\./##')`
1659 if test "x$find_dirdir" = x; then
1662 echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
1668 echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1670 TEXDIR="$TEXPREFIX/$TEXDIR"
1675 # AC_JUNK_ARGS( [if test "x$MFDIR" = xauto; then
1676 # AC_MF_SUBDIR(MFDIR)
1681 if test $MAKE = "error"
1684 echo "configure: warning: can't find GNU make. You should install GNU make" 1>&2
1690 if test $BISON = "error"
1693 echo "configure: warning: can't find bison. Please install Bison" 1>&2
1699 if test $PERL = "error"
1702 echo "configure: warning: can't find perl. You should install Perl" 1>&2
1708 if test $PYTHON = "error"
1711 echo "configure: warning: can't find python. You should install Python" 1>&2
1717 if test $FLEX = "error"
1720 echo "configure: warning: can't find flex. Please install Flex" 1>&2
1726 if test $POD2MAN = "error"
1729 echo "configure: warning: can't find pod. You should install Perl" 1>&2
1736 if test $MAKE != "error" ; then
1737 $MAKE -v| grep GNU > /dev/null
1741 echo "configure: warning: Please install *GNU* make" 1>&2
1747 if test $BISON != "error"; then
1748 bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1749 if test $bison_version -lt 25; then
1751 echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
1759 if $CXX --version | grep '2\.[78]' > /dev/null ||
1760 $CXX --version | grep 'egcs' > /dev/null
1765 echo "configure: warning: can't find g++ 2.7" 1>&2
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
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"
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
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1801 ac_cv_prog_CXXCPP="$CXXCPP"
1804 CXXCPP="$ac_cv_prog_CXXCPP"
1805 echo "$ac_t""$CXXCPP" 1>&6
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
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816 #include <FlexLexer.h>
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
1823 eval "ac_cv_header_$ac_safe=yes"
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 eval "ac_cv_header_$ac_safe=no"
1833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1834 echo "$ac_t""yes" 1>&6
1837 echo "$ac_t""no" 1>&6
1839 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1849 # first do Foobar/Makefile then Foobar/include/Makefile
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.
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.
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.
1873 case `(ac_space=' '; set) 2>&1` in
1875 # `set' does not quote correctly, so add quotes (double-quote substitution
1876 # turns \\\\ into \\, and sed turns \\ into \).
1878 -e "s/'/'\\\\''/g" \
1879 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
1886 if cmp -s $cache_file confcache; then
1889 if test -w $cache_file; then
1890 echo "updating cache $cache_file"
1891 cat confcache > $cache_file
1893 echo "not updating unwritable cache $cache_file"
1898 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1901 # Let make expand exec_prefix.
1902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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'
1911 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1913 DEFS=-DHAVE_CONFIG_H
1915 # Without the "./", some shells look in PATH for config.status.
1916 : ${CONFIG_STATUS=./config.status}
1918 echo creating $CONFIG_STATUS
1919 rm -f $CONFIG_STATUS
1920 cat > $CONFIG_STATUS <<EOF
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`:
1927 # $0 $ac_configure_args
1929 # Compiler output produced by configure, useful for debugging
1930 # configure, is in ./config.log if it exists.
1932 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
1942 -help | --help | --hel | --he | --h)
1943 echo "\$ac_cs_usage"; exit 0 ;;
1944 *) echo "\$ac_cs_usage"; exit 1 ;;
1948 ac_given_srcdir=$srcdir
1949 ac_given_INSTALL="$INSTALL"
1951 trap 'rm -fr `echo "config.make config.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1953 cat >> $CONFIG_STATUS <<EOF
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
1960 s%@CFLAGS@%$CFLAGS%g
1961 s%@CPPFLAGS@%$CPPFLAGS%g
1962 s%@CXXFLAGS@%$CXXFLAGS%g
1964 s%@LDFLAGS@%$LDFLAGS%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
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
1991 s%@RANLIB@%$RANLIB%g
1992 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1993 s%@INSTALL_DATA@%$INSTALL_DATA%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
2006 s%@PYTHON@%$PYTHON%g
2008 s%@TEXPREFIX@%$TEXPREFIX%g
2009 s%@TEXDIR@%$TEXDIR%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
2016 s%@POD2HTML@%$POD2HTML%g
2017 s%@POD2MAN@%$POD2MAN%g
2018 s%@CXXCPP@%$CXXCPP%g
2023 cat >> $CONFIG_STATUS <<\EOF
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.
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
2037 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2039 if test ! -s conftest.s$ac_file; then
2041 rm -f conftest.s$ac_file
2043 if test -z "$ac_sed_cmds"; then
2044 ac_sed_cmds="sed -f conftest.s$ac_file"
2046 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2048 ac_file=`expr $ac_file + 1`
2050 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2053 if test -z "$ac_sed_cmds"; then
2058 cat >> $CONFIG_STATUS <<EOF
2060 CONFIG_FILES=\${CONFIG_FILES-"config.make"}
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".
2066 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2067 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2068 *) ac_file_in="${ac_file}.in" ;;
2071 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
2082 ac_dir_suffix= ac_dots=
2085 case "$ac_given_srcdir" in
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" ;;
2091 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2092 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2095 case "$ac_given_INSTALL" in
2096 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2097 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2100 echo creating "$ac_file"
2102 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2104 *Makefile*) ac_comsub="1i\\
2105 # $configure_input" ;;
2109 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
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.
2122 # ac_d sets the value in "#define NAME VALUE" lines.
2123 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2124 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2127 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2128 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2129 ac_uB='\([ ]\)%\1#\2define\3'
2132 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2133 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2134 ac_eB='$%\1#\2define\3'
2138 if test "${CONFIG_HEADERS+set}" != set; then
2140 cat >> $CONFIG_STATUS <<EOF
2141 CONFIG_HEADERS="config.hh:config.hh.in"
2143 cat >> $CONFIG_STATUS <<\EOF
2145 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2146 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
2153 echo creating $ac_file
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
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.
2166 cat > conftest.hdr <<\EOF
2169 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2173 sed -n -f conftest.hdr confdefs.h > conftest.vals
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]*%/* & */%
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.
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
2196 sed -f conftest.frag conftest.in > conftest.out
2198 mv conftest.out conftest.in
2200 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2202 mv conftest.tail conftest.vals
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
2211 if cmp -s $ac_file conftest.h 2>/dev/null; then
2212 echo "$ac_file is unchanged"
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"
2222 mv conftest.h $ac_file
2227 cat >> $CONFIG_STATUS <<EOF
2230 cat >> $CONFIG_STATUS <<\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
2240 cp make/Toplevel.make.in ./Makefile