4 --with-gtkmm-prefix=PREFIX
5 Prefix where GTK-- is installed (optional)"
6 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
7 if test "${with_gtkmm_prefix+set}" = set; then
8 withval="$with_gtkmm_prefix"
9 gtkmm_config_prefix="$withval"
11 gtkmm_config_prefix=""
15 --with-gtkmm-exec-prefix=PREFIX
16 Exec prefix where GTK-- is installed (optional)"
17 # Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given.
18 if test "${with_gtkmm_exec_prefix+set}" = set; then
19 withval="$with_gtkmm_exec_prefix"
20 gtkmm_config_exec_prefix="$withval"
22 gtkmm_config_exec_prefix=""
26 --disable-gtkmmtest Do not try to compile and run a test GTK-- program"
27 # Check whether --enable-gtkmmtest or --disable-gtkmmtest was given.
28 if test "${enable_gtkmmtest+set}" = set; then
29 enableval="$enable_gtkmmtest"
36 if test x$gtkmm_config_exec_prefix != x ; then
37 gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
38 if test x${GTKMM_CONFIG+set} != xset ; then
39 GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
42 if test x$gtkmm_config_prefix != x ; then
43 gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
44 if test x${GTKMM_CONFIG+set} != xset ; then
45 GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt 98-08-21 (adapted from Jan Nieuwenhuizen's code)
56 # Guess values for system-dependent variables and create Makefiles.
57 # Generated automatically using autoconf version 2.13
58 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 # This configure script is free software; the Free Software Foundation
61 # gives unlimited permission to copy, distribute and modify it.
65 ac_default_prefix=/usr/local
66 # Any additions from configure.in:
68 enable-config=FILE put configure settings in config-FILE.make"
70 enable-checking set runtime checks (assert calls). Default: on"
72 enable-optimise use maximal speed optimisations. Default: off"
74 enable-profiling compile with gprof support. Default: off"
76 enable-debugging set debug info. Default: on"
78 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
80 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
82 with-lang=LANG use LANG as language to emit messages"
84 enable-tfm-path=PATH set path of tex directories where tfm files live, esp.: cmr10.tfm. Default: use kpsewhich"
86 enable-kpathsea use kpathsea lib. Default: on"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=make/lilypond.lsm.in
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
599 # Bootstrap StepMake configure
603 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
604 if test x$MY_PATCH_LEVEL != x; then
605 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
608 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
609 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
610 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
612 # No versioning on directory names of sub-packages
614 stepmake=${datadir}/stepmake
616 if test "$prefix" = "NONE"; then
617 presome=${ac_default_prefix}
619 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
621 # urg, how is this supposed to work?
622 if test "$program_prefix" = "NONE"; then
625 if test "$program_suffix" = "NONE"; then
629 echo $ac_n "checking Package""... $ac_c" 1>&6
630 echo "configure:631: checking Package" >&5
631 if test "x$PACKAGE" = "xSTEPMAKE"; then
632 echo "$ac_t""Stepmake package!" 1>&6
634 #if test "x$builddir" != "x"; then
635 # builddir="../$builddir"
639 if test "$srcdir" != "."; then
640 absolute_builddir="`pwd`"
641 package_absolute_builddir="`dirname $absolute_builddir`"
642 package_srcdir="`dirname $srcdir`"
643 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
648 (cd stepmake 2>/dev/null || mkdir stepmake)
649 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
650 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
652 for ac_dir in bin $srcdir/bin; do
653 if test -f $ac_dir/install-sh; then
655 ac_install_sh="$ac_aux_dir/install-sh -c"
657 elif test -f $ac_dir/install.sh; then
659 ac_install_sh="$ac_aux_dir/install.sh -c"
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
666 ac_config_guess=$ac_aux_dir/config.guess
667 ac_config_sub=$ac_aux_dir/config.sub
668 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
672 echo "$ac_t""$PACKAGE" 1>&6
674 if test "$srcdir" != "."; then
675 absolute_builddir="`pwd`"
676 builddir="`dirname $srcdir`/`basename $absolute_builddir`"
681 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
682 echo "configure:683: checking for stepmake" >&5
683 # Check for installed stepmake
684 if test -d $stepmake; then
685 echo "$ac_t""$stepmake" 1>&6
687 stepmake='$(depth)'/$srcdir/stepmake
688 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
692 $HOME/usr/local/share/stepmake/bin\
693 $HOME/usr/local/lib/stepmake/bin\
694 $HOME/usr/share/stepmake/bin\
695 $HOME/usr/lib/stepmake/bin\
696 /usr/local/share/stepmake/bin\
697 /usr/local/lib/stepmake/bin\
698 /usr/share/stepmake/bin\
699 /usr/lib/stepmake/bin\
701 $srcdir/stepmake/bin\
703 $HOME/usr/local/share/stepmake/bin\
704 $HOME/usr/local/lib/stepmake/bin\
705 $HOME/usr/share/stepmake/bin\
706 $HOME/usr/lib/stepmake/bin\
707 /usr/local/share/stepmake/bin\
708 /usr/local/lib/stepmake/bin\
709 /usr/share/stepmake/bin\
710 /usr/lib/stepmake/bin\
712 $srcdir/stepmake/bin\
714 if test -f $ac_dir/install-sh; then
716 ac_install_sh="$ac_aux_dir/install-sh -c"
718 elif test -f $ac_dir/install.sh; then
720 ac_install_sh="$ac_aux_dir/install.sh -c"
724 if test -z "$ac_aux_dir"; then
725 { echo "configure: error: can not find install-sh or install.sh in \
726 $HOME/usr/local/share/stepmake/bin\
727 $HOME/usr/local/lib/stepmake/bin\
728 $HOME/usr/share/stepmake/bin\
729 $HOME/usr/lib/stepmake/bin\
730 /usr/local/share/stepmake/bin\
731 /usr/local/lib/stepmake/bin\
732 /usr/share/stepmake/bin\
733 /usr/lib/stepmake/bin\
735 $srcdir/stepmake/bin\
737 $HOME/usr/local/share/stepmake/bin\
738 $HOME/usr/local/lib/stepmake/bin\
739 $HOME/usr/share/stepmake/bin\
740 $HOME/usr/lib/stepmake/bin\
741 /usr/local/share/stepmake/bin\
742 /usr/local/lib/stepmake/bin\
743 /usr/share/stepmake/bin\
744 /usr/lib/stepmake/bin\
746 $srcdir/stepmake/bin\
749 ac_config_guess=$ac_aux_dir/config.guess
750 ac_config_sub=$ac_aux_dir/config.sub
751 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
760 cat >> confdefs.h <<EOF
761 #define PACKAGE "${PACKAGE_NAME}"
764 cat >> confdefs.h <<EOF
765 #define TOPLEVEL_VERSION "${FULL_VERSION}"
769 if test "$package_depth" = "" ; then
772 package_depth="../$package_depth"
777 AUTOGENERATE="This file was automatically generated by configure"
781 # Check whether --enable-config or --disable-config was given.
782 if test "${enable_config+set}" = set; then
783 enableval="$enable_config"
784 CONFIGSUFFIX=-$enableval
788 CONFIGFILE=config$CONFIGSUFFIX
792 # Make sure we can run config.sub.
793 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
794 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
797 echo $ac_n "checking host system type""... $ac_c" 1>&6
798 echo "configure:799: checking host system type" >&5
801 case "$host_alias" in
805 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
806 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
808 *) host_alias=$nonopt ;;
812 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
813 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
814 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
815 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
816 echo "$ac_t""$host" 1>&6
818 for ac_prog in gmake make
820 # Extract the first word of "$ac_prog", so it can be a program name with args.
821 set dummy $ac_prog; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$MAKE"; then
828 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
835 ac_cv_prog_MAKE="$ac_prog"
842 MAKE="$ac_cv_prog_MAKE"
843 if test -n "$MAKE"; then
844 echo "$ac_t""$MAKE" 1>&6
846 echo "$ac_t""no" 1>&6
849 test -n "$MAKE" && break
851 test -n "$MAKE" || MAKE="error"
855 # Extract the first word of "$ac_prog", so it can be a program name with args.
856 set dummy $ac_prog; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 if test -n "$FIND"; then
863 ac_cv_prog_FIND="$FIND" # Let the user override the test.
865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
870 ac_cv_prog_FIND="$ac_prog"
877 FIND="$ac_cv_prog_FIND"
878 if test -n "$FIND"; then
879 echo "$ac_t""$FIND" 1>&6
881 echo "$ac_t""no" 1>&6
884 test -n "$FIND" && break
886 test -n "$FIND" || FIND="error"
892 # Extract the first word of "$ac_prog", so it can be a program name with args.
893 set dummy $ac_prog; ac_word=$2
894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
895 echo "configure:896: checking for $ac_word" >&5
896 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
899 if test -n "$TAR"; then
900 ac_cv_prog_TAR="$TAR" # Let the user override the test.
902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
904 for ac_dir in $ac_dummy; do
905 test -z "$ac_dir" && ac_dir=.
906 if test -f $ac_dir/$ac_word; then
907 ac_cv_prog_TAR="$ac_prog"
914 TAR="$ac_cv_prog_TAR"
915 if test -n "$TAR"; then
916 echo "$ac_t""$TAR" 1>&6
918 echo "$ac_t""no" 1>&6
921 test -n "$TAR" && break
923 test -n "$TAR" || TAR="error"
926 if test "x`uname`" = "xHP-UX"; then
927 # Extract the first word of "bash", so it can be a program name with args.
928 set dummy bash; ac_word=$2
929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
930 echo "configure:931: checking for $ac_word" >&5
931 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
936 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
939 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 for ac_dir in $ac_dummy; do
945 test -z "$ac_dir" && ac_dir=.
946 if test -f $ac_dir/$ac_word; then
947 ac_cv_path_BASH="$ac_dir/$ac_word"
952 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
956 BASH="$ac_cv_path_BASH"
957 if test -n "$BASH"; then
958 echo "$ac_t""$BASH" 1>&6
960 echo "$ac_t""no" 1>&6
964 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
967 # Extract the first word of "bash", so it can be a program name with args.
968 set dummy bash; ac_word=$2
969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970 echo "configure:971: checking for $ac_word" >&5
971 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
976 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
979 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
984 for ac_dir in $ac_dummy; do
985 test -z "$ac_dir" && ac_dir=.
986 if test -f $ac_dir/$ac_word; then
987 ac_cv_path_SHELL="$ac_dir/$ac_word"
992 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
996 SHELL="$ac_cv_path_SHELL"
997 if test -n "$SHELL"; then
998 echo "$ac_t""$SHELL" 1>&6
1000 echo "$ac_t""no" 1>&6
1004 # Extract the first word of "bash", so it can be a program name with args.
1005 set dummy bash; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1013 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1016 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1021 for ac_dir in $ac_dummy; do
1022 test -z "$ac_dir" && ac_dir=.
1023 if test -f $ac_dir/$ac_word; then
1024 ac_cv_path_BASH="$ac_dir/$ac_word"
1029 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1033 BASH="$ac_cv_path_BASH"
1034 if test -n "$BASH"; then
1035 echo "$ac_t""$BASH" 1>&6
1037 echo "$ac_t""no" 1>&6
1045 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1046 set dummy ${PYTHON:-python}; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1054 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1057 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1062 for ac_dir in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir=.
1064 if test -f $ac_dir/$ac_word; then
1065 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1070 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1074 PYTHON="$ac_cv_path_PYTHON"
1075 if test -n "$PYTHON"; then
1076 echo "$ac_t""$PYTHON" 1>&6
1078 echo "$ac_t""no" 1>&6
1083 if test $MAKE != "error" ; then
1084 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1088 echo "configure: warning: Please install *GNU* make" 1>&2
1095 result="`echo \"$PYTHON\" | grep echo`"
1096 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1098 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1104 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1105 LN=cp # hard link does not work under cygnus-nt
1106 LN_S='cp -r' # symbolic link does not work for native nt
1113 # cygwin fixes all these things.
1114 # it seems these were used because of dos-style TEXINPUTS and
1115 # MFINPUTS needed for miktex.
1116 # but this breaks parsing of all other cygwin/unix style paths.
1118 # if your (mik)tex breaks, make a:
1119 # /usr/local/bin/tex:
1121 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1125 # /usr/local/bin/mf:
1127 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1129 # this way, you may have buildscripts/out/lilypond-profile
1130 # 'automatically' sourced from /usr/etc/profile.d/ too.
1134 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1141 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1149 cat >> confdefs.h <<EOF
1150 #define DIRSEP '${DIRSEP}'
1153 cat >> confdefs.h <<EOF
1154 #define PATHSEP '${PATHSEP}'
1161 if test "$datadir" = "\${prefix}/share"; then
1162 datadir='${prefix}/share/'$package
1164 DIR_DATADIR=${datadir}
1166 if test "$prefix" = "NONE"; then
1167 presome=${ac_default_prefix}
1169 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1172 cat >> confdefs.h <<EOF
1173 #define DIR_DATADIR "${DIR_DATADIR}"
1179 # For all packages except the StepMake package itself
1183 # Uncomment the configuration options your package needs.
1185 # -O is necessary to get inlining
1187 CFLAGS=${CFLAGS:-""}
1188 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1189 LDFLAGS=${LDFLAGS:-""}
1195 # Check whether --enable-checking or --disable-checking was given.
1196 if test "${enable_checking+set}" = set; then
1197 enableval="$enable_checking"
1198 checking_b=$enableval
1202 # actually, the default is: tja='-O' to get inlining...
1205 #actually, that sucks.
1206 # tja looks like a typo. Default is optimisation off. --hwn
1208 # Check whether --enable-optimise or --disable-optimise was given.
1209 if test "${enable_optimise+set}" = set; then
1210 enableval="$enable_optimise"
1211 optimise_b=$enableval
1215 # Check whether --enable-profiling or --disable-profiling was given.
1216 if test "${enable_profiling+set}" = set; then
1217 enableval="$enable_profiling"
1218 profile_b=$enableval
1222 # Check whether --enable-debugging or --disable-debugging was given.
1223 if test "${enable_debugging+set}" = set; then
1224 enableval="$enable_debugging"
1229 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1230 if test "${enable_mingw_prefix+set}" = set; then
1231 enableval="$enable_mingw_prefix"
1232 MINGWPREFIX=$enableval
1238 if test "$checking_b" = no; then
1240 cat >> confdefs.h <<\EOF
1244 DEFINES="$DEFINES -DNDEBUG"
1247 if test "$optimise_b" = yes; then
1248 OPTIMIZE="-O2 -finline-functions"
1251 if test "$optimise_b" = no; then
1255 if test $profile_b = yes; then
1257 OPTIMIZE="$OPTIMIZE -pg"
1260 if test $debug_b = yes; then
1261 OPTIMIZE="$OPTIMIZE -g"
1264 # however, C++ support in mingw32 v 0.1.4 is still flaky
1265 if test x$MINGWPREFIX != xno; then
1266 ICFLAGS="-I$MINGWPREFIX/include"
1267 ILDFLAGS="-$MINGWPREFIX/lib"
1270 # Extract the first word of "gcc", so it can be a program name with args.
1271 set dummy gcc; ac_word=$2
1272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273 echo "configure:1274: checking for $ac_word" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 if test -n "$CC"; then
1278 ac_cv_prog_CC="$CC" # Let the user override the test.
1280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1282 for ac_dir in $ac_dummy; do
1283 test -z "$ac_dir" && ac_dir=.
1284 if test -f $ac_dir/$ac_word; then
1293 if test -n "$CC"; then
1294 echo "$ac_t""$CC" 1>&6
1296 echo "$ac_t""no" 1>&6
1299 if test -z "$CC"; then
1300 # Extract the first word of "cc", so it can be a program name with args.
1301 set dummy cc; ac_word=$2
1302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1303 echo "configure:1304: checking for $ac_word" >&5
1304 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 if test -n "$CC"; then
1308 ac_cv_prog_CC="$CC" # Let the user override the test.
1310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1317 ac_prog_rejected=yes
1325 if test $ac_prog_rejected = yes; then
1326 # We found a bogon in the path, so make sure we never use it.
1327 set dummy $ac_cv_prog_CC
1329 if test $# -gt 0; then
1330 # We chose a different compiler from the bogus one.
1331 # However, it has the same basename, so the bogon will be chosen
1332 # first if we set CC to just the basename; use the full file name.
1334 set dummy "$ac_dir/$ac_word" "$@"
1342 if test -n "$CC"; then
1343 echo "$ac_t""$CC" 1>&6
1345 echo "$ac_t""no" 1>&6
1348 if test -z "$CC"; then
1349 case "`uname -s`" in
1351 # Extract the first word of "cl", so it can be a program name with args.
1352 set dummy cl; ac_word=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 echo "configure:1355: checking for $ac_word" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 if test -n "$CC"; then
1359 ac_cv_prog_CC="$CC" # Let the user override the test.
1361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1363 for ac_dir in $ac_dummy; do
1364 test -z "$ac_dir" && ac_dir=.
1365 if test -f $ac_dir/$ac_word; then
1374 if test -n "$CC"; then
1375 echo "$ac_t""$CC" 1>&6
1377 echo "$ac_t""no" 1>&6
1382 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1385 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1390 ac_cpp='$CPP $CPPFLAGS'
1391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1393 cross_compiling=$ac_cv_prog_cc_cross
1395 cat > conftest.$ac_ext << EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1403 ac_cv_prog_cc_works=yes
1404 # If we can't run a trivial program, we are probably using a cross compiler.
1405 if (./conftest; exit) 2>/dev/null; then
1406 ac_cv_prog_cc_cross=no
1408 ac_cv_prog_cc_cross=yes
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1413 ac_cv_prog_cc_works=no
1417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1418 ac_cpp='$CPP $CPPFLAGS'
1419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1421 cross_compiling=$ac_cv_prog_cc_cross
1423 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1424 if test $ac_cv_prog_cc_works = no; then
1425 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1427 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1429 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1430 cross_compiling=$ac_cv_prog_cc_cross
1432 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether we are using GNU C" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.c <<EOF
1442 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1449 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1451 if test $ac_cv_prog_gcc = yes; then
1457 ac_test_CFLAGS="${CFLAGS+set}"
1458 ac_save_CFLAGS="$CFLAGS"
1460 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1461 echo "configure:1462: checking whether ${CC-cc} accepts -g" >&5
1462 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 echo 'void f(){}' > conftest.c
1466 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1475 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1476 if test "$ac_test_CFLAGS" = set; then
1477 CFLAGS="$ac_save_CFLAGS"
1478 elif test $ac_cv_prog_cc_g = yes; then
1479 if test "$GCC" = yes; then
1485 if test "$GCC" = yes; then
1495 CFLAGS="$CFLAGS $OPTIMIZE"
1496 CPPFLAGS=${CPPFLAGS:-""}
1505 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1506 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1507 echo "configure:1508: checking how to run the C preprocessor" >&5
1508 # On Suns, sometimes $CPP names a directory.
1509 if test -n "$CPP" && test -d "$CPP"; then
1512 if test -z "$CPP"; then
1513 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 # This must be in double quotes, not single quotes, because CPP may get
1517 # substituted into the Makefile and "${CC-cc}" will confuse make.
1519 # On the NeXT, cc -E runs the code through the compiler's parser,
1520 # not just through cpp.
1521 cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1528 { (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1530 if test -z "$ac_err"; then
1534 echo "configure: failed program was:" >&5
1535 cat conftest.$ac_ext >&5
1537 CPP="${CC-cc} -E -traditional-cpp"
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1545 { (eval echo configure:1546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1547 if test -z "$ac_err"; then
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1554 CPP="${CC-cc} -nologo -E"
1555 cat > conftest.$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1562 { (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1564 if test -z "$ac_err"; then
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1578 ac_cv_prog_CPP="$CPP"
1580 CPP="$ac_cv_prog_CPP"
1582 ac_cv_prog_CPP="$CPP"
1584 echo "$ac_t""$CPP" 1>&6
1586 for ac_hdr in assert.h sys/stat.h
1588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1590 echo "configure:1591: checking for $ac_hdr" >&5
1591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1600 { (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1602 if test -z "$ac_err"; then
1604 eval "ac_cv_header_$ac_safe=yes"
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1610 eval "ac_cv_header_$ac_safe=no"
1614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1617 cat >> confdefs.h <<EOF
1618 #define $ac_tr_hdr 1
1622 echo "$ac_t""no" 1>&6
1626 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1627 echo "configure:1628: checking whether stat file-mode macros are broken" >&5
1628 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #include <sys/types.h>
1635 #include <sys/stat.h>
1637 #if defined(S_ISBLK) && defined(S_IFDIR)
1638 # if S_ISBLK (S_IFDIR)
1643 #if defined(S_ISBLK) && defined(S_IFCHR)
1644 # if S_ISBLK (S_IFCHR)
1649 #if defined(S_ISLNK) && defined(S_IFREG)
1650 # if S_ISLNK (S_IFREG)
1655 #if defined(S_ISSOCK) && defined(S_IFREG)
1656 # if S_ISSOCK (S_IFREG)
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663 egrep "You lose" >/dev/null 2>&1; then
1665 ac_cv_header_stat_broken=yes
1668 ac_cv_header_stat_broken=no
1674 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1675 if test $ac_cv_header_stat_broken = yes; then
1676 cat >> confdefs.h <<\EOF
1677 #define STAT_MACROS_BROKEN 1
1683 if test "$optimise_b" = yes; then
1684 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1685 cat >> confdefs.h <<\EOF
1686 #define STRINGS_UTILS_INLINED 1
1692 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1693 echo "configure:1694: checking how to run the C++ preprocessor" >&5
1694 if test -z "$CXXCPP"; then
1695 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1699 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1700 ac_cpp='$CXXCPP $CPPFLAGS'
1701 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1702 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1703 cross_compiling=$ac_cv_prog_cxx_cross
1704 CXXCPP="${CXX-g++} -E"
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1713 if test -z "$ac_err"; then
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1723 ac_cv_prog_CXXCPP="$CXXCPP"
1725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1726 ac_cpp='$CXXCPP $CPPFLAGS'
1727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1729 cross_compiling=$ac_cv_prog_cxx_cross
1732 CXXCPP="$ac_cv_prog_CXXCPP"
1733 echo "$ac_t""$CXXCPP" 1>&6
1737 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1738 ac_cpp='$CXXCPP $CPPFLAGS'
1739 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1740 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1741 cross_compiling=$ac_cv_prog_cxx_cross
1743 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1745 # Extract the first word of "$ac_prog", so it can be a program name with args.
1746 set dummy $ac_prog; ac_word=$2
1747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_word" >&5
1749 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 if test -n "$CXX"; then
1753 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1757 for ac_dir in $ac_dummy; do
1758 test -z "$ac_dir" && ac_dir=.
1759 if test -f $ac_dir/$ac_word; then
1760 ac_cv_prog_CXX="$ac_prog"
1767 CXX="$ac_cv_prog_CXX"
1768 if test -n "$CXX"; then
1769 echo "$ac_t""$CXX" 1>&6
1771 echo "$ac_t""no" 1>&6
1774 test -n "$CXX" && break
1776 test -n "$CXX" || CXX="gcc"
1779 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1783 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1784 ac_cpp='$CXXCPP $CPPFLAGS'
1785 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1786 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1787 cross_compiling=$ac_cv_prog_cxx_cross
1789 cat > conftest.$ac_ext << EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1794 int main(){return(0);}
1796 if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1797 ac_cv_prog_cxx_works=yes
1798 # If we can't run a trivial program, we are probably using a cross compiler.
1799 if (./conftest; exit) 2>/dev/null; then
1800 ac_cv_prog_cxx_cross=no
1802 ac_cv_prog_cxx_cross=yes
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1807 ac_cv_prog_cxx_works=no
1811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1812 ac_cpp='$CXXCPP $CPPFLAGS'
1813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1815 cross_compiling=$ac_cv_prog_cxx_cross
1817 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1818 if test $ac_cv_prog_cxx_works = no; then
1819 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1821 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1822 echo "configure:1823: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1823 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1824 cross_compiling=$ac_cv_prog_cxx_cross
1826 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1827 echo "configure:1828: checking whether we are using GNU C++" >&5
1828 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 cat > conftest.C <<EOF
1836 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1843 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1845 if test $ac_cv_prog_gxx = yes; then
1851 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1852 ac_save_CXXFLAGS="$CXXFLAGS"
1854 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether ${CXX-g++} accepts -g" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 echo 'void f(){}' > conftest.cc
1860 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1861 ac_cv_prog_cxx_g=yes
1869 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1870 if test "$ac_test_CXXFLAGS" = set; then
1871 CXXFLAGS="$ac_save_CXXFLAGS"
1872 elif test $ac_cv_prog_cxx_g = yes; then
1873 if test "$GXX" = yes; then
1879 if test "$GXX" = yes; then
1887 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1888 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1889 echo "configure:1890: checking for FlexLexer.h" >&5
1890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1896 #include <FlexLexer.h>
1898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1899 { (eval echo configure:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1901 if test -z "$ac_err"; then
1903 eval "ac_cv_header_$ac_safe=yes"
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1909 eval "ac_cv_header_$ac_safe=no"
1913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1914 echo "$ac_t""yes" 1>&6
1917 echo "$ac_t""no" 1>&6
1919 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1925 CPPFLAGS="$CPPFLAGS $DEFINES"
1926 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1927 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1936 # urg, egcs: how to check for egcs >= 1.1?
1937 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1938 $CXX --version | grep 'egcs' > /dev/null
1943 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1949 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1950 echo "configure:1951: checking whether explicit instantiation is needed" >&5
1951 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1958 template <class T> struct foo { static int baz; };
1959 template <class T> int foo<T>::baz = 1;
1962 return foo<int>::baz;
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1967 lily_cv_need_explicit_instantiation=no
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1972 lily_cv_need_explicit_instantiation=yes
1977 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1978 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1979 cat >> confdefs.h <<\EOF
1980 #define NEED_EXPLICIT_INSTANTIATION 1
1986 # ugh, automake: we want (and check for) bison
1987 for ac_prog in 'bison -y' byacc
1989 # Extract the first word of "$ac_prog", so it can be a program name with args.
1990 set dummy $ac_prog; ac_word=$2
1991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_word" >&5
1993 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 if test -n "$YACC"; then
1997 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2001 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 if test -f $ac_dir/$ac_word; then
2004 ac_cv_prog_YACC="$ac_prog"
2011 YACC="$ac_cv_prog_YACC"
2012 if test -n "$YACC"; then
2013 echo "$ac_t""$YACC" 1>&6
2015 echo "$ac_t""no" 1>&6
2018 test -n "$YACC" && break
2020 test -n "$YACC" || YACC="yacc"
2022 # ugh, automake: we want (and check for) flex
2024 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2028 ac_cv_prog_lex_root=lex.yy
2030 for ac_prog in bison
2032 # Extract the first word of "$ac_prog", so it can be a program name with args.
2033 set dummy $ac_prog; ac_word=$2
2034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2035 echo "configure:2036: checking for $ac_word" >&5
2036 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 if test -n "$BISON"; then
2040 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2044 for ac_dir in $ac_dummy; do
2045 test -z "$ac_dir" && ac_dir=.
2046 if test -f $ac_dir/$ac_word; then
2047 ac_cv_prog_BISON="$ac_prog"
2054 BISON="$ac_cv_prog_BISON"
2055 if test -n "$BISON"; then
2056 echo "$ac_t""$BISON" 1>&6
2058 echo "$ac_t""no" 1>&6
2061 test -n "$BISON" && break
2063 test -n "$BISON" || BISON="error"
2067 # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2070 echo "configure:2071: checking for $ac_word" >&5
2071 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 if test -n "$FLEX"; then
2075 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2079 for ac_dir in $ac_dummy; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f $ac_dir/$ac_word; then
2082 ac_cv_prog_FLEX="$ac_prog"
2089 FLEX="$ac_cv_prog_FLEX"
2090 if test -n "$FLEX"; then
2091 echo "$ac_t""$FLEX" 1>&6
2093 echo "$ac_t""no" 1>&6
2096 test -n "$FLEX" && break
2098 test -n "$FLEX" || FLEX="error"
2101 result="`echo \"$BISON\" | grep echo`"
2102 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2104 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2110 result="`echo \"$FLEX\" | grep echo`"
2111 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2113 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2119 if test $BISON != "error"; then
2120 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2121 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2123 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2135 # Extract the first word of "$ac_prog", so it can be a program name with args.
2136 set dummy $ac_prog; ac_word=$2
2137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_word" >&5
2139 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 if test -n "$AR"; then
2143 ac_cv_prog_AR="$AR" # Let the user override the test.
2145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2147 for ac_dir in $ac_dummy; do
2148 test -z "$ac_dir" && ac_dir=.
2149 if test -f $ac_dir/$ac_word; then
2150 ac_cv_prog_AR="$ac_prog"
2158 if test -n "$AR"; then
2159 echo "$ac_t""$AR" 1>&6
2161 echo "$ac_t""no" 1>&6
2164 test -n "$AR" && break
2166 test -n "$AR" || AR="error"
2168 # Extract the first word of "ranlib", so it can be a program name with args.
2169 set dummy ranlib; ac_word=$2
2170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_word" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 if test -n "$RANLIB"; then
2176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2180 for ac_dir in $ac_dummy; do
2181 test -z "$ac_dir" && ac_dir=.
2182 if test -f $ac_dir/$ac_word; then
2183 ac_cv_prog_RANLIB="ranlib"
2188 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2191 RANLIB="$ac_cv_prog_RANLIB"
2192 if test -n "$RANLIB"; then
2193 echo "$ac_t""$RANLIB" 1>&6
2195 echo "$ac_t""no" 1>&6
2202 # AC_STEPMAKE_LIBTOOL
2208 # Check whether --with-localedir or --without-localedir was given.
2209 if test "${with_localedir+set}" = set; then
2210 withval="$with_localedir"
2211 localedir=$with_localedir
2213 localedir='${prefix}/share/locale'
2217 # Check whether --with-lang or --without-lang was given.
2218 if test "${with_lang+set}" = set; then
2219 withval="$with_lang"
2226 echo $ac_n "checking language""... $ac_c" 1>&6
2227 echo "configure:2228: checking language" >&5
2229 En* | en* | Am* | am* | US* | us*)
2231 NL | nl | Du* | du* | Ned* | ned*)
2238 echo "$ac_t""$lang" 1>&6
2240 if test "$lang" = "unknown" ; then
2242 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2249 DIR_LOCALEDIR=${localedir}
2251 if test "$prefix" = "NONE"; then
2252 presome=${ac_default_prefix}
2254 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2257 cat >> confdefs.h <<EOF
2258 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2262 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2263 echo "configure:2264: checking for gettext in -lintl" >&5
2264 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 ac_save_LIBS="$LIBS"
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 /* Override any gcc2 internal prototype to avoid an error. */
2277 /* We use char because int might match the return type of a gcc2
2278 builtin and then its argument prototype would still apply. */
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2292 eval "ac_cv_lib_$ac_lib_var=no"
2295 LIBS="$ac_save_LIBS"
2298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2302 cat >> confdefs.h <<EOF
2303 #define $ac_tr_lib 1
2309 echo "$ac_t""no" 1>&6
2312 for ac_func in gettext
2314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_func" >&5
2316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char $ac_func(); below. */
2325 /* Override any gcc2 internal prototype to avoid an error. */
2329 /* We use char because int might match the return type of a gcc2
2330 builtin and then its argument prototype would still apply. */
2335 /* The GNU C library defines this for functions which it implements
2336 to always fail with ENOSYS. Some functions are actually named
2337 something starting with __ and the normal name is an alias. */
2338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2348 eval "ac_cv_func_$ac_func=yes"
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2353 eval "ac_cv_func_$ac_func=no"
2358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2361 cat >> confdefs.h <<EOF
2362 #define $ac_tr_func 1
2366 echo "$ac_t""no" 1>&6
2372 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2373 for ac_prog in msgfmt
2375 # Extract the first word of "$ac_prog", so it can be a program name with args.
2376 set dummy $ac_prog; ac_word=$2
2377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_word" >&5
2379 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 if test -n "$MSGFMT"; then
2383 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2387 for ac_dir in $ac_dummy; do
2388 test -z "$ac_dir" && ac_dir=.
2389 if test -f $ac_dir/$ac_word; then
2390 ac_cv_prog_MSGFMT="$ac_prog"
2397 MSGFMT="$ac_cv_prog_MSGFMT"
2398 if test -n "$MSGFMT"; then
2399 echo "$ac_t""$MSGFMT" 1>&6
2401 echo "$ac_t""no" 1>&6
2404 test -n "$MSGFMT" && break
2406 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2408 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2409 echo "configure:2410: checking whether msgfmt accepts -o" >&5
2410 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2411 if test "$msgfmt_output" = ""; then
2412 echo "$ac_t""yes" 1>&6
2415 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2416 echo "$ac_t""no" 1>&6
2418 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2422 if test ! -n "$MSGFMT"; then
2424 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2430 # urg, never know what names these teTeX guys will think up
2434 # Extract the first word of "$ac_prog", so it can be a program name with args.
2435 set dummy $ac_prog; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 if test -n "$METAFONT"; then
2442 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2446 for ac_dir in $ac_dummy; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if test -f $ac_dir/$ac_word; then
2449 ac_cv_prog_METAFONT="$ac_prog"
2456 METAFONT="$ac_cv_prog_METAFONT"
2457 if test -n "$METAFONT"; then
2458 echo "$ac_t""$METAFONT" 1>&6
2460 echo "$ac_t""no" 1>&6
2463 test -n "$METAFONT" && break
2465 test -n "$METAFONT" || METAFONT="no"
2467 if test "x$METAFONT" = "xno"; then
2468 for ac_prog in mfont
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_word" >&5
2474 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 if test -n "$MFONT"; then
2478 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2482 for ac_dir in $ac_dummy; do
2483 test -z "$ac_dir" && ac_dir=.
2484 if test -f $ac_dir/$ac_word; then
2485 ac_cv_prog_MFONT="$ac_prog"
2492 MFONT="$ac_cv_prog_MFONT"
2493 if test -n "$MFONT"; then
2494 echo "$ac_t""$MFONT" 1>&6
2496 echo "$ac_t""no" 1>&6
2499 test -n "$MFONT" && break
2501 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2508 # Extract the first word of "$ac_prog", so it can be a program name with args.
2509 set dummy $ac_prog; ac_word=$2
2510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_word" >&5
2512 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 if test -n "$METAPOST"; then
2516 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2520 for ac_dir in $ac_dummy; do
2521 test -z "$ac_dir" && ac_dir=.
2522 if test -f $ac_dir/$ac_word; then
2523 ac_cv_prog_METAPOST="$ac_prog"
2530 METAPOST="$ac_cv_prog_METAPOST"
2531 if test -n "$METAPOST"; then
2532 echo "$ac_t""$METAPOST" 1>&6
2534 echo "$ac_t""no" 1>&6
2537 test -n "$METAPOST" && break
2539 test -n "$METAPOST" || METAPOST="no"
2541 if test "x$METAPOST" = "xno"; then
2542 for ac_prog in mpost
2544 # Extract the first word of "$ac_prog", so it can be a program name with args.
2545 set dummy $ac_prog; ac_word=$2
2546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2547 echo "configure:2548: checking for $ac_word" >&5
2548 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 if test -n "$MPOST"; then
2552 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2556 for ac_dir in $ac_dummy; do
2557 test -z "$ac_dir" && ac_dir=.
2558 if test -f $ac_dir/$ac_word; then
2559 ac_cv_prog_MPOST="$ac_prog"
2566 MPOST="$ac_cv_prog_MPOST"
2567 if test -n "$MPOST"; then
2568 echo "$ac_t""$MPOST" 1>&6
2570 echo "$ac_t""no" 1>&6
2573 test -n "$MPOST" && break
2575 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2581 for ac_prog in inimf
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_word" >&5
2587 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 if test -n "$INIMETAFONT"; then
2591 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2595 for ac_dir in $ac_dummy; do
2596 test -z "$ac_dir" && ac_dir=.
2597 if test -f $ac_dir/$ac_word; then
2598 ac_cv_prog_INIMETAFONT="$ac_prog"
2605 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2606 if test -n "$INIMETAFONT"; then
2607 echo "$ac_t""$INIMETAFONT" 1>&6
2609 echo "$ac_t""no" 1>&6
2612 test -n "$INIMETAFONT" && break
2614 test -n "$INIMETAFONT" || INIMETAFONT="no"
2616 if test "x$INIMETAFONT" = "xno"; then
2617 for ac_prog in inimfont
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2622 echo "configure:2623: checking for $ac_word" >&5
2623 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 if test -n "$INIMFONT"; then
2627 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2631 for ac_dir in $ac_dummy; do
2632 test -z "$ac_dir" && ac_dir=.
2633 if test -f $ac_dir/$ac_word; then
2634 ac_cv_prog_INIMFONT="$ac_prog"
2641 INIMFONT="$ac_cv_prog_INIMFONT"
2642 if test -n "$INIMFONT"; then
2643 echo "$ac_t""$INIMFONT" 1>&6
2645 echo "$ac_t""no" 1>&6
2648 test -n "$INIMFONT" && break
2650 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2652 INIMETAFONT=$INIMFONT
2655 for ac_prog in inimp
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_word" >&5
2661 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 if test -n "$INIMETAPOST"; then
2665 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2669 for ac_dir in $ac_dummy; do
2670 test -z "$ac_dir" && ac_dir=.
2671 if test -f $ac_dir/$ac_word; then
2672 ac_cv_prog_INIMETAPOST="$ac_prog"
2679 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2680 if test -n "$INIMETAPOST"; then
2681 echo "$ac_t""$INIMETAPOST" 1>&6
2683 echo "$ac_t""no" 1>&6
2686 test -n "$INIMETAPOST" && break
2688 test -n "$INIMETAPOST" || INIMETAPOST="no"
2690 if test "x$INIMETAPOST" = "xno"; then
2691 for ac_prog in inimpost
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_word" >&5
2697 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 if test -n "$INIMPOST"; then
2701 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2705 for ac_dir in $ac_dummy; do
2706 test -z "$ac_dir" && ac_dir=.
2707 if test -f $ac_dir/$ac_word; then
2708 ac_cv_prog_INIMPOST="$ac_prog"
2715 INIMPOST="$ac_cv_prog_INIMPOST"
2716 if test -n "$INIMPOST"; then
2717 echo "$ac_t""$INIMPOST" 1>&6
2719 echo "$ac_t""no" 1>&6
2722 test -n "$INIMPOST" && break
2724 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2726 INIMETAPOST=$INIMPOST
2729 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2730 echo "configure:2731: checking for working metafont mode" >&5
2731 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2732 for MFMODE in $modelist; do
2733 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2734 if test -f mfput.tfm; then
2738 echo "$ac_t""$MFMODE" 1>&6
2740 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2741 echo "configure:2742: checking for mfplain.mp" >&5
2743 # For now let people define these in their environments
2745 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2746 echo "$ac_t""$MFPLAIN_MP" 1>&6
2748 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2749 echo "configure:2750: checking for inimetapost flags" >&5
2750 if test ${INIMETAPOST} = "inimp" ; then
2751 : ${INIMETAPOST_FLAGS=''}
2753 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2755 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2768 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2769 if test "${enable_tfm_path+set}" = set; then
2770 enableval="$enable_tfm_path"
2777 for ac_prog in kpsewhich
2779 # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_word" >&5
2783 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 if test -n "$KPSEWHICH"; then
2787 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2791 for ac_dir in $ac_dummy; do
2792 test -z "$ac_dir" && ac_dir=.
2793 if test -f $ac_dir/$ac_word; then
2794 ac_cv_prog_KPSEWHICH="$ac_prog"
2801 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2802 if test -n "$KPSEWHICH"; then
2803 echo "$ac_t""$KPSEWHICH" 1>&6
2805 echo "$ac_t""no" 1>&6
2808 test -n "$KPSEWHICH" && break
2810 test -n "$KPSEWHICH" || KPSEWHICH="no"
2812 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2813 echo "configure:2814: checking for tfm path" >&5
2815 TFM_FONTS="cmr msam"
2817 if test "x$tfm_path" = xauto ; then
2818 if test "x$KPSEWHICH" != "xno" ; then
2819 for i in $TFM_FONTS; do
2820 dir=`$KPSEWHICH tfm ${i}10.tfm`
2821 TFM_PATH="$TFM_PATH `dirname $dir`"
2825 echo "configure: warning: Please specify where cmr10.tfm lives:
2826 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2834 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2835 echo "$ac_t""$TFM_PATH" 1>&6
2839 ## First, let's just see if we can find Guile at all.
2840 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2841 echo "configure:2842: checking "for guile-config"" >&5
2842 for guile_config in guile-config $target-guile-config $build-guile-config; do
2843 echo "$ac_t"""$guile_config"" 1>&6
2844 if ! $guile_config --version > /dev/null 2>&1 ; then
2845 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2846 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2847 echo "configure:2848: checking "if we are cross compiling"" >&5
2853 if test "$guile_config" = "error"; then
2854 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2857 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2858 echo "configure:2859: checking "Guile version"" >&5
2859 need_guile_version="1.3.4"
2860 guile_version=`expr "\`$guile_config --version 2>&1\`" : ".*\($need_guile_version\).*"`
2861 echo "$ac_t"""$guile_version"" 1>&6
2862 if test "$guile_version" != "$need_guile_version"; then
2864 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2869 ## The GUILE_FLAGS macro.
2870 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2871 echo "configure:2872: checking for Guile" >&5
2872 if ! $guile_config link > /dev/null ; then
2873 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2874 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2877 GUILE_CFLAGS="`$guile_config compile`"
2878 GUILE_LDFLAGS="`$guile_config link`"
2881 echo "$ac_t""yes" 1>&6
2883 # Extract the first word of "guile", so it can be a program name with args.
2884 set dummy guile; ac_word=$2
2885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_word" >&5
2887 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2892 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2895 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2900 for ac_dir in $ac_dummy; do
2901 test -z "$ac_dir" && ac_dir=.
2902 if test -f $ac_dir/$ac_word; then
2903 ac_cv_path_GUILE="$ac_dir/$ac_word"
2908 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2912 GUILE="$ac_cv_path_GUILE"
2913 if test -n "$GUILE"; then
2914 echo "$ac_t""$GUILE" 1>&6
2916 echo "$ac_t""no" 1>&6
2924 # Check whether --enable-kpathsea or --disable-kpathsea was given.
2925 if test "${enable_kpathsea+set}" = set; then
2926 enableval="$enable_kpathsea"
2927 kpathsea_b=$enableval
2931 if test $kpathsea_b = yes; then
2932 for ac_hdr in kpathsea/kpathsea.h
2934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_hdr" >&5
2937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2946 { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2948 if test -z "$ac_err"; then
2950 eval "ac_cv_header_$ac_safe=yes"
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 eval "ac_cv_header_$ac_safe=no"
2960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2963 cat >> confdefs.h <<EOF
2964 #define $ac_tr_hdr 1
2968 echo "$ac_t""no" 1>&6
2972 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2973 echo "configure:2974: checking for kpse_find_file in -lkpathsea" >&5
2974 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2978 ac_save_LIBS="$LIBS"
2979 LIBS="-lkpathsea $LIBS"
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 /* Override any gcc2 internal prototype to avoid an error. */
2987 /* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2989 char kpse_find_file();
2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2997 eval "ac_cv_lib_$ac_lib_var=yes"
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 eval "ac_cv_lib_$ac_lib_var=no"
3005 LIBS="$ac_save_LIBS"
3008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3009 echo "$ac_t""yes" 1>&6
3010 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3012 cat >> confdefs.h <<EOF
3013 #define $ac_tr_lib 1
3016 LIBS="-lkpathsea $LIBS"
3019 echo "$ac_t""no" 1>&6
3022 # urg: kpse_find_tfm is a #define, how to check for this?
3023 # AC_CHECK_LIB(kpathsea, kpse_find_tfm)
3024 # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions. You may have to create TFM files manually.))
3025 for ac_func in kpse_find_file
3027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_func" >&5
3029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* System header to define __stub macros and hopefully few prototypes,
3036 which can conflict with char $ac_func(); below. */
3038 /* Override any gcc2 internal prototype to avoid an error. */
3042 /* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3048 /* The GNU C library defines this for functions which it implements
3049 to always fail with ENOSYS. Some functions are actually named
3050 something starting with __ and the normal name is an alias. */
3051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3061 eval "ac_cv_func_$ac_func=yes"
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3066 eval "ac_cv_func_$ac_func=no"
3071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3074 cat >> confdefs.h <<EOF
3075 #define $ac_tr_func 1
3079 echo "$ac_t""no" 1>&6
3080 echo "configure: warning: Cannot find kpathsea functions. You may have to create TFM files manually." 1>&2
3087 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3088 echo "configure:3089: checking whether to use kpathsea" >&5
3089 if test $kpathsea_b = yes; then
3090 echo "$ac_t""yes" 1>&6
3093 echo "$ac_t""no" 1>&6
3098 cat >> confdefs.h <<EOF
3099 #define KPATHSEA $KPATHSEA
3105 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3106 echo "configure:3107: checking for 8-bit clean memcmp" >&5
3107 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 if test "$cross_compiling" = yes; then
3111 ac_cv_func_memcmp_clean=no
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3117 extern "C" void exit(int);
3122 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3123 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3127 if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3129 ac_cv_func_memcmp_clean=yes
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 ac_cv_func_memcmp_clean=no
3141 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3142 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3144 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3145 echo "configure:3146: checking for vprintf" >&5
3146 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 /* System header to define __stub macros and hopefully few prototypes,
3153 which can conflict with char vprintf(); below. */
3155 /* Override any gcc2 internal prototype to avoid an error. */
3159 /* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3165 /* The GNU C library defines this for functions which it implements
3166 to always fail with ENOSYS. Some functions are actually named
3167 something starting with __ and the normal name is an alias. */
3168 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3176 if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3178 eval "ac_cv_func_vprintf=yes"
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3183 eval "ac_cv_func_vprintf=no"
3188 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3189 echo "$ac_t""yes" 1>&6
3190 cat >> confdefs.h <<\EOF
3191 #define HAVE_VPRINTF 1
3195 echo "$ac_t""no" 1>&6
3198 if test "$ac_cv_func_vprintf" != yes; then
3199 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3200 echo "configure:3201: checking for _doprnt" >&5
3201 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 /* System header to define __stub macros and hopefully few prototypes,
3208 which can conflict with char _doprnt(); below. */
3210 /* Override any gcc2 internal prototype to avoid an error. */
3214 /* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3220 /* The GNU C library defines this for functions which it implements
3221 to always fail with ENOSYS. Some functions are actually named
3222 something starting with __ and the normal name is an alias. */
3223 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233 eval "ac_cv_func__doprnt=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 eval "ac_cv_func__doprnt=no"
3243 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 cat >> confdefs.h <<\EOF
3246 #define HAVE_DOPRNT 1
3250 echo "$ac_t""no" 1>&6
3255 for ac_func in memmem snprintf vsnprintf gettext isinf
3257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $ac_func" >&5
3259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 /* System header to define __stub macros and hopefully few prototypes,
3266 which can conflict with char $ac_func(); below. */
3268 /* Override any gcc2 internal prototype to avoid an error. */
3272 /* We use char because int might match the return type of a gcc2
3273 builtin and then its argument prototype would still apply. */
3278 /* The GNU C library defines this for functions which it implements
3279 to always fail with ENOSYS. Some functions are actually named
3280 something starting with __ and the normal name is an alias. */
3281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3291 eval "ac_cv_func_$ac_func=yes"
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 eval "ac_cv_func_$ac_func=no"
3301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3302 echo "$ac_t""yes" 1>&6
3303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3304 cat >> confdefs.h <<EOF
3305 #define $ac_tr_func 1
3309 echo "$ac_t""no" 1>&6
3314 cat >> confdefs.h <<EOF
3315 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3318 cat >> confdefs.h <<EOF
3319 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3323 for ac_prog in makeinfo
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3328 echo "configure:3329: checking for $ac_word" >&5
3329 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 if test -n "$MAKEINFO"; then
3333 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3337 for ac_dir in $ac_dummy; do
3338 test -z "$ac_dir" && ac_dir=.
3339 if test -f $ac_dir/$ac_word; then
3340 ac_cv_prog_MAKEINFO="$ac_prog"
3347 MAKEINFO="$ac_cv_prog_MAKEINFO"
3348 if test -n "$MAKEINFO"; then
3349 echo "$ac_t""$MAKEINFO" 1>&6
3351 echo "$ac_t""no" 1>&6
3354 test -n "$MAKEINFO" && break
3356 test -n "$MAKEINFO" || MAKEINFO="error"
3358 # Extract the first word of "perl", so it can be a program name with args.
3359 set dummy perl; ac_word=$2
3360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_word" >&5
3362 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3367 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3370 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3375 for ac_dir in $ac_dummy; do
3376 test -z "$ac_dir" && ac_dir=.
3377 if test -f $ac_dir/$ac_word; then
3378 ac_cv_path_PERL="$ac_dir/$ac_word"
3383 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3387 PERL="$ac_cv_path_PERL"
3388 if test -n "$PERL"; then
3389 echo "$ac_t""$PERL" 1>&6
3391 echo "$ac_t""no" 1>&6
3397 cat > confcache <<\EOF
3398 # This file is a shell script that caches the results of configure
3399 # tests run on this system so they can be shared between configure
3400 # scripts and configure runs. It is not useful on other systems.
3401 # If it contains results you don't want to keep, you may remove or edit it.
3403 # By default, configure uses ./config.cache as the cache file,
3404 # creating it if it does not exist already. You can give configure
3405 # the --cache-file=FILE option to use a different cache file; that is
3406 # what configure does when it calls configure scripts in
3407 # subdirectories, so they share the cache.
3408 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3409 # config.status only pays attention to the cache file if you give it the
3410 # --recheck option to rerun configure.
3413 # The following way of writing the cache mishandles newlines in values,
3414 # but we know of no workaround that is simple, portable, and efficient.
3415 # So, don't put newlines in cache variables' values.
3416 # Ultrix sh set writes to stderr and can't be redirected directly,
3417 # and sets the high bit in the cache file unless we assign to the vars.
3419 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3421 # `set' does not quote correctly, so add quotes (double-quote substitution
3422 # turns \\\\ into \\, and sed turns \\ into \).
3424 -e "s/'/'\\\\''/g" \
3425 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3428 # `set' quotes correctly as required by POSIX, so do not add quotes.
3429 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3432 if cmp -s $cache_file confcache; then
3435 if test -w $cache_file; then
3436 echo "updating cache $cache_file"
3437 cat confcache > $cache_file
3439 echo "not updating unwritable cache $cache_file"
3444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3447 # Let make expand exec_prefix.
3448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3450 # Any assignment to VPATH causes Sun make to only execute
3451 # the first set of double-colon rules, so remove it if not needed.
3452 # If there is a colon in the path, we need to keep it.
3453 if test "x$srcdir" = x.; then
3454 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3457 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3459 DEFS=-DHAVE_CONFIG_H
3461 # Without the "./", some shells look in PATH for config.status.
3462 : ${CONFIG_STATUS=./config.status}
3464 echo creating $CONFIG_STATUS
3465 rm -f $CONFIG_STATUS
3466 cat > $CONFIG_STATUS <<EOF
3468 # Generated automatically by configure.
3469 # Run this file to recreate the current configuration.
3470 # This directory was configured as follows,
3471 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3473 # $0 $ac_configure_args
3475 # Compiler output produced by configure, useful for debugging
3476 # configure, is in ./config.log if it exists.
3478 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3481 case "\$ac_option" in
3482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3483 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3484 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3485 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3486 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3488 -help | --help | --hel | --he | --h)
3489 echo "\$ac_cs_usage"; exit 0 ;;
3490 *) echo "\$ac_cs_usage"; exit 1 ;;
3494 ac_given_srcdir=$srcdir
3496 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3498 cat >> $CONFIG_STATUS <<EOF
3500 # Protect against being on the right side of a sed subst in config.status.
3501 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3502 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3506 s%@CFLAGS@%$CFLAGS%g
3507 s%@CPPFLAGS@%$CPPFLAGS%g
3508 s%@CXXFLAGS@%$CXXFLAGS%g
3509 s%@FFLAGS@%$FFLAGS%g
3511 s%@LDFLAGS@%$LDFLAGS%g
3513 s%@exec_prefix@%$exec_prefix%g
3514 s%@prefix@%$prefix%g
3515 s%@program_transform_name@%$program_transform_name%g
3516 s%@bindir@%$bindir%g
3517 s%@sbindir@%$sbindir%g
3518 s%@libexecdir@%$libexecdir%g
3519 s%@datadir@%$datadir%g
3520 s%@sysconfdir@%$sysconfdir%g
3521 s%@sharedstatedir@%$sharedstatedir%g
3522 s%@localstatedir@%$localstatedir%g
3523 s%@libdir@%$libdir%g
3524 s%@includedir@%$includedir%g
3525 s%@oldincludedir@%$oldincludedir%g
3526 s%@infodir@%$infodir%g
3527 s%@mandir@%$mandir%g
3528 s%@builddir@%$builddir%g
3529 s%@stepmake@%$stepmake%g
3530 s%@package@%$package%g
3531 s%@PACKAGE@%$PACKAGE%g
3532 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3533 s%@package_depth@%$package_depth%g
3534 s%@AUTOGENERATE@%$AUTOGENERATE%g
3535 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3537 s%@host_alias@%$host_alias%g
3538 s%@host_cpu@%$host_cpu%g
3539 s%@host_vendor@%$host_vendor%g
3540 s%@host_os@%$host_os%g
3545 s%@PYTHON@%$PYTHON%g
3546 s%@program_prefix@%$program_prefix%g
3547 s%@program_suffix@%$program_suffix%g
3551 s%@INSTALL@%$INSTALL%g
3552 s%@PATHSEP@%$PATHSEP%g
3553 s%@DIRSEP@%$DIRSEP%g
3554 s%@DIR_DATADIR@%$DIR_DATADIR%g
3555 s%@subdirs@%$subdirs%g
3558 s%@ICFLAGS@%$ICFLAGS%g
3559 s%@ILDFLAGS@%$ILDFLAGS%g
3560 s%@DEFINES@%$DEFINES%g
3561 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3564 s%@CXXCPP@%$CXXCPP%g
3569 s%@RANLIB@%$RANLIB%g
3570 s%@localedir@%$localedir%g
3571 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3572 s%@MSGFMT@%$MSGFMT%g
3573 s%@METAFONT@%$METAFONT%g
3575 s%@METAPOST@%$METAPOST%g
3577 s%@INIMETAFONT@%$INIMETAFONT%g
3578 s%@INIMFONT@%$INIMFONT%g
3579 s%@INIMETAPOST@%$INIMETAPOST%g
3580 s%@INIMPOST@%$INIMPOST%g
3581 s%@MFMODE@%$MFMODE%g
3582 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3583 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3584 s%@KPSEWHICH@%$KPSEWHICH%g
3585 s%@TFM_PATH@%$TFM_PATH%g
3586 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3587 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3589 s%@KPATHSEA@%$KPATHSEA%g
3590 s%@LIBOBJS@%$LIBOBJS%g
3591 s%@MAKEINFO@%$MAKEINFO%g
3597 cat >> $CONFIG_STATUS <<\EOF
3599 # Split the substitutions into bite-sized pieces for seds with
3600 # small command number limits, like on Digital OSF/1 and HP-UX.
3601 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3602 ac_file=1 # Number of current file.
3603 ac_beg=1 # First line for current file.
3604 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3607 while $ac_more_lines; do
3608 if test $ac_beg -gt 1; then
3609 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3611 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3613 if test ! -s conftest.s$ac_file; then
3615 rm -f conftest.s$ac_file
3617 if test -z "$ac_sed_cmds"; then
3618 ac_sed_cmds="sed -f conftest.s$ac_file"
3620 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3622 ac_file=`expr $ac_file + 1`
3624 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3627 if test -z "$ac_sed_cmds"; then
3632 cat >> $CONFIG_STATUS <<EOF
3634 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3636 cat >> $CONFIG_STATUS <<\EOF
3637 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3640 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3641 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3642 *) ac_file_in="${ac_file}.in" ;;
3645 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3647 # Remove last slash and all that follows it. Not all systems have dirname.
3648 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3650 # The file is in a subdirectory.
3651 test ! -d "$ac_dir" && mkdir "$ac_dir"
3652 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3653 # A "../" for each directory in $ac_dir_suffix.
3654 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3656 ac_dir_suffix= ac_dots=
3659 case "$ac_given_srcdir" in
3661 if test -z "$ac_dots"; then top_srcdir=.
3662 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3663 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3665 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3666 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3670 echo creating "$ac_file"
3672 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3674 *Makefile*) ac_comsub="1i\\
3675 # $configure_input" ;;
3679 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3681 s%@configure_input@%$configure_input%g
3682 s%@srcdir@%$srcdir%g
3683 s%@top_srcdir@%$top_srcdir%g
3684 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3688 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3689 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3691 # ac_d sets the value in "#define NAME VALUE" lines.
3692 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3693 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3696 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3697 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3698 ac_uB='\([ ]\)%\1#\2define\3'
3701 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3702 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3703 ac_eB='$%\1#\2define\3'
3707 if test "${CONFIG_HEADERS+set}" != set; then
3709 cat >> $CONFIG_STATUS <<EOF
3710 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3712 cat >> $CONFIG_STATUS <<\EOF
3714 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3717 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3718 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3719 *) ac_file_in="${ac_file}.in" ;;
3722 echo creating $ac_file
3724 rm -f conftest.frag conftest.in conftest.out
3725 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3726 cat $ac_file_inputs > conftest.in
3730 # Transform confdefs.h into a sed script conftest.vals that substitutes
3731 # the proper values into config.h.in to produce config.h. And first:
3732 # Protect against being on the right side of a sed subst in config.status.
3733 # Protect against being in an unquoted here document in config.status.
3735 cat > conftest.hdr <<\EOF
3738 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3742 sed -n -f conftest.hdr confdefs.h > conftest.vals
3745 # This sed command replaces #undef with comments. This is necessary, for
3746 # example, in the case of _POSIX_SOURCE, which is predefined and required
3747 # on some systems where configure will not decide to define it.
3748 cat >> conftest.vals <<\EOF
3749 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3752 # Break up conftest.vals because some shells have a limit on
3753 # the size of here documents, and old seds have small limits too.
3758 ac_lines=`grep -c . conftest.vals`
3759 # grep -c gives empty output for an empty file on some AIX systems.
3760 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3761 # Write a limited-size here document to conftest.frag.
3762 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3763 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3765 sed -f conftest.frag conftest.in > conftest.out
3767 mv conftest.out conftest.in
3769 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3771 mv conftest.tail conftest.vals
3775 cat >> $CONFIG_STATUS <<\EOF
3776 rm -f conftest.frag conftest.h
3777 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3778 cat conftest.in >> conftest.h
3780 if cmp -s $ac_file conftest.h 2>/dev/null; then
3781 echo "$ac_file is unchanged"
3784 # Remove last slash and all that follows it. Not all systems have dirname.
3785 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3786 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3787 # The file is in a subdirectory.
3788 test ! -d "$ac_dir" && mkdir "$ac_dir"
3791 mv conftest.h $ac_file
3796 cat >> $CONFIG_STATUS <<EOF
3799 cat >> $CONFIG_STATUS <<\EOF
3803 chmod +x $CONFIG_STATUS
3804 rm -fr confdefs* $ac_clean_files
3805 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3807 if test "$no_recursion" != yes; then
3809 # Remove --cache-file and --srcdir arguments so they do not pile up.
3810 ac_sub_configure_args=
3812 for ac_arg in $ac_configure_args; do
3813 if test -n "$ac_prev"; then
3818 -cache-file | --cache-file | --cache-fil | --cache-fi \
3819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3820 ac_prev=cache_file ;;
3821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3824 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3826 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3828 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3832 for ac_config_dir in stepmake; do
3834 # Do not complain, so a configure script can configure whichever
3835 # parts of a large source tree are present.
3836 if test ! -d $srcdir/$ac_config_dir; then
3840 echo configuring in $ac_config_dir
3845 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3847 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3855 # A "../" for each directory in /$ac_config_dir.
3856 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3859 .) # No --srcdir option. We are building in place.
3860 ac_sub_srcdir=$srcdir ;;
3861 /*) # Absolute path.
3862 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3864 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3867 # Check for guested configure; otherwise get Cygnus style configure.
3868 if test -f $ac_sub_srcdir/configure; then
3869 ac_sub_configure=$ac_sub_srcdir/configure
3870 elif test -f $ac_sub_srcdir/configure.in; then
3871 ac_sub_configure=$ac_configure
3873 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3877 # The recursion is here.
3878 if test -n "$ac_sub_configure"; then
3880 # Make the cache file name correct relative to the subdirectory.
3881 case "$cache_file" in
3882 /*) ac_sub_cache_file=$cache_file ;;
3884 ac_sub_cache_file="$ac_dots$cache_file" ;;
3887 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3888 # The eval makes quoting arguments work.
3889 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3892 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3901 rm -f $srcdir/GNUmakefile
3902 cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3903 chmod 444 $srcdir/GNUmakefile
3904 if test "$builddir" != "."; then
3906 cp $srcdir/make/srcdir.make.in GNUmakefile
3907 chmod 444 GNUmakefile