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:-""}
1506 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1507 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1508 echo "configure:1509: checking how to run the C preprocessor" >&5
1509 # On Suns, sometimes $CPP names a directory.
1510 if test -n "$CPP" && test -d "$CPP"; then
1513 if test -z "$CPP"; then
1514 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 # This must be in double quotes, not single quotes, because CPP may get
1518 # substituted into the Makefile and "${CC-cc}" will confuse make.
1520 # On the NeXT, cc -E runs the code through the compiler's parser,
1521 # not just through cpp.
1522 cat > conftest.$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1529 { (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1531 if test -z "$ac_err"; then
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 CPP="${CC-cc} -E -traditional-cpp"
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1546 { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1548 if test -z "$ac_err"; then
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1555 CPP="${CC-cc} -nologo -E"
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1563 { (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1565 if test -z "$ac_err"; then
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1579 ac_cv_prog_CPP="$CPP"
1581 CPP="$ac_cv_prog_CPP"
1583 ac_cv_prog_CPP="$CPP"
1585 echo "$ac_t""$CPP" 1>&6
1587 for ac_hdr in assert.h sys/stat.h
1589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_hdr" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1618 cat >> confdefs.h <<EOF
1619 #define $ac_tr_hdr 1
1623 echo "$ac_t""no" 1>&6
1627 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1628 echo "configure:1629: checking whether stat file-mode macros are broken" >&5
1629 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 #include <sys/types.h>
1636 #include <sys/stat.h>
1638 #if defined(S_ISBLK) && defined(S_IFDIR)
1639 # if S_ISBLK (S_IFDIR)
1644 #if defined(S_ISBLK) && defined(S_IFCHR)
1645 # if S_ISBLK (S_IFCHR)
1650 #if defined(S_ISLNK) && defined(S_IFREG)
1651 # if S_ISLNK (S_IFREG)
1656 #if defined(S_ISSOCK) && defined(S_IFREG)
1657 # if S_ISSOCK (S_IFREG)
1663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1664 egrep "You lose" >/dev/null 2>&1; then
1666 ac_cv_header_stat_broken=yes
1669 ac_cv_header_stat_broken=no
1675 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1676 if test $ac_cv_header_stat_broken = yes; then
1677 cat >> confdefs.h <<\EOF
1678 #define STAT_MACROS_BROKEN 1
1684 if test "$optimise_b" = yes; then
1685 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1686 cat >> confdefs.h <<\EOF
1687 #define STRINGS_UTILS_INLINED 1
1693 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1694 echo "configure:1695: checking how to run the C++ preprocessor" >&5
1695 if test -z "$CXXCPP"; then
1696 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1700 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1701 ac_cpp='$CXXCPP $CPPFLAGS'
1702 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1703 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1704 cross_compiling=$ac_cv_prog_cxx_cross
1705 CXXCPP="${CXX-g++} -E"
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1712 { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1714 if test -z "$ac_err"; then
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1724 ac_cv_prog_CXXCPP="$CXXCPP"
1726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1727 ac_cpp='$CXXCPP $CPPFLAGS'
1728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1730 cross_compiling=$ac_cv_prog_cxx_cross
1733 CXXCPP="$ac_cv_prog_CXXCPP"
1734 echo "$ac_t""$CXXCPP" 1>&6
1738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1739 ac_cpp='$CXXCPP $CPPFLAGS'
1740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1742 cross_compiling=$ac_cv_prog_cxx_cross
1744 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1749 echo "configure:1750: checking for $ac_word" >&5
1750 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 if test -n "$CXX"; then
1754 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1758 for ac_dir in $ac_dummy; do
1759 test -z "$ac_dir" && ac_dir=.
1760 if test -f $ac_dir/$ac_word; then
1761 ac_cv_prog_CXX="$ac_prog"
1768 CXX="$ac_cv_prog_CXX"
1769 if test -n "$CXX"; then
1770 echo "$ac_t""$CXX" 1>&6
1772 echo "$ac_t""no" 1>&6
1775 test -n "$CXX" && break
1777 test -n "$CXX" || CXX="gcc"
1780 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1785 ac_cpp='$CXXCPP $CPPFLAGS'
1786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1788 cross_compiling=$ac_cv_prog_cxx_cross
1790 cat > conftest.$ac_ext << EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1795 int main(){return(0);}
1797 if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1798 ac_cv_prog_cxx_works=yes
1799 # If we can't run a trivial program, we are probably using a cross compiler.
1800 if (./conftest; exit) 2>/dev/null; then
1801 ac_cv_prog_cxx_cross=no
1803 ac_cv_prog_cxx_cross=yes
1806 echo "configure: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1808 ac_cv_prog_cxx_works=no
1812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1813 ac_cpp='$CXXCPP $CPPFLAGS'
1814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1816 cross_compiling=$ac_cv_prog_cxx_cross
1818 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1819 if test $ac_cv_prog_cxx_works = no; then
1820 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1822 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1823 echo "configure:1824: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1824 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1825 cross_compiling=$ac_cv_prog_cxx_cross
1827 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1828 echo "configure:1829: checking whether we are using GNU C++" >&5
1829 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 cat > conftest.C <<EOF
1837 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1844 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1846 if test $ac_cv_prog_gxx = yes; then
1852 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1853 ac_save_CXXFLAGS="$CXXFLAGS"
1855 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1856 echo "configure:1857: checking whether ${CXX-g++} accepts -g" >&5
1857 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 echo 'void f(){}' > conftest.cc
1861 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1862 ac_cv_prog_cxx_g=yes
1870 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1871 if test "$ac_test_CXXFLAGS" = set; then
1872 CXXFLAGS="$ac_save_CXXFLAGS"
1873 elif test $ac_cv_prog_cxx_g = yes; then
1874 if test "$GXX" = yes; then
1880 if test "$GXX" = yes; then
1888 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1889 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1890 echo "configure:1891: checking for FlexLexer.h" >&5
1891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 #include <FlexLexer.h>
1899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1900 { (eval echo configure:1901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1902 if test -z "$ac_err"; then
1904 eval "ac_cv_header_$ac_safe=yes"
1907 echo "configure: failed program was:" >&5
1908 cat conftest.$ac_ext >&5
1910 eval "ac_cv_header_$ac_safe=no"
1914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1918 echo "$ac_t""no" 1>&6
1920 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1926 CPPFLAGS="$CPPFLAGS $DEFINES"
1927 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1928 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1937 # urg, egcs: how to check for egcs >= 1.1?
1938 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1939 $CXX --version | grep 'egcs' > /dev/null
1944 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1950 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1951 echo "configure:1952: checking whether explicit instantiation is needed" >&5
1952 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1959 template <class T> struct foo { static int baz; };
1960 template <class T> int foo<T>::baz = 1;
1963 return foo<int>::baz;
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1968 lily_cv_need_explicit_instantiation=no
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1973 lily_cv_need_explicit_instantiation=yes
1978 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1979 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1980 cat >> confdefs.h <<\EOF
1981 #define NEED_EXPLICIT_INSTANTIATION 1
1987 # ugh, automake: we want (and check for) bison
1988 for ac_prog in 'bison -y' byacc
1990 # Extract the first word of "$ac_prog", so it can be a program name with args.
1991 set dummy $ac_prog; ac_word=$2
1992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1993 echo "configure:1994: checking for $ac_word" >&5
1994 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 if test -n "$YACC"; then
1998 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2002 for ac_dir in $ac_dummy; do
2003 test -z "$ac_dir" && ac_dir=.
2004 if test -f $ac_dir/$ac_word; then
2005 ac_cv_prog_YACC="$ac_prog"
2012 YACC="$ac_cv_prog_YACC"
2013 if test -n "$YACC"; then
2014 echo "$ac_t""$YACC" 1>&6
2016 echo "$ac_t""no" 1>&6
2019 test -n "$YACC" && break
2021 test -n "$YACC" || YACC="yacc"
2023 # ugh, automake: we want (and check for) flex
2025 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2029 ac_cv_prog_lex_root=lex.yy
2031 for ac_prog in bison
2033 # Extract the first word of "$ac_prog", so it can be a program name with args.
2034 set dummy $ac_prog; ac_word=$2
2035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2036 echo "configure:2037: checking for $ac_word" >&5
2037 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 if test -n "$BISON"; then
2041 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2045 for ac_dir in $ac_dummy; do
2046 test -z "$ac_dir" && ac_dir=.
2047 if test -f $ac_dir/$ac_word; then
2048 ac_cv_prog_BISON="$ac_prog"
2055 BISON="$ac_cv_prog_BISON"
2056 if test -n "$BISON"; then
2057 echo "$ac_t""$BISON" 1>&6
2059 echo "$ac_t""no" 1>&6
2062 test -n "$BISON" && break
2064 test -n "$BISON" || BISON="error"
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 if test -n "$FLEX"; then
2076 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 ac_cv_prog_FLEX="$ac_prog"
2090 FLEX="$ac_cv_prog_FLEX"
2091 if test -n "$FLEX"; then
2092 echo "$ac_t""$FLEX" 1>&6
2094 echo "$ac_t""no" 1>&6
2097 test -n "$FLEX" && break
2099 test -n "$FLEX" || FLEX="error"
2102 result="`echo \"$BISON\" | grep echo`"
2103 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2105 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2111 result="`echo \"$FLEX\" | grep echo`"
2112 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2114 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2120 if test $BISON != "error"; then
2121 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2122 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2124 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2136 # Extract the first word of "$ac_prog", so it can be a program name with args.
2137 set dummy $ac_prog; ac_word=$2
2138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_word" >&5
2140 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 if test -n "$AR"; then
2144 ac_cv_prog_AR="$AR" # Let the user override the test.
2146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2148 for ac_dir in $ac_dummy; do
2149 test -z "$ac_dir" && ac_dir=.
2150 if test -f $ac_dir/$ac_word; then
2151 ac_cv_prog_AR="$ac_prog"
2159 if test -n "$AR"; then
2160 echo "$ac_t""$AR" 1>&6
2162 echo "$ac_t""no" 1>&6
2165 test -n "$AR" && break
2167 test -n "$AR" || AR="error"
2169 # Extract the first word of "ranlib", so it can be a program name with args.
2170 set dummy ranlib; ac_word=$2
2171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_word" >&5
2173 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 if test -n "$RANLIB"; then
2177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2181 for ac_dir in $ac_dummy; do
2182 test -z "$ac_dir" && ac_dir=.
2183 if test -f $ac_dir/$ac_word; then
2184 ac_cv_prog_RANLIB="ranlib"
2189 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2192 RANLIB="$ac_cv_prog_RANLIB"
2193 if test -n "$RANLIB"; then
2194 echo "$ac_t""$RANLIB" 1>&6
2196 echo "$ac_t""no" 1>&6
2203 # AC_STEPMAKE_LIBTOOL
2209 # Check whether --with-localedir or --without-localedir was given.
2210 if test "${with_localedir+set}" = set; then
2211 withval="$with_localedir"
2212 localedir=$with_localedir
2214 localedir='${prefix}/share/locale'
2218 # Check whether --with-lang or --without-lang was given.
2219 if test "${with_lang+set}" = set; then
2220 withval="$with_lang"
2227 echo $ac_n "checking language""... $ac_c" 1>&6
2228 echo "configure:2229: checking language" >&5
2230 En* | en* | Am* | am* | US* | us*)
2232 NL | nl | Du* | du* | Ned* | ned*)
2239 echo "$ac_t""$lang" 1>&6
2241 if test "$lang" = "unknown" ; then
2243 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2250 DIR_LOCALEDIR=${localedir}
2252 if test "$prefix" = "NONE"; then
2253 presome=${ac_default_prefix}
2255 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2258 cat >> confdefs.h <<EOF
2259 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2263 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2264 echo "configure:2265: checking for gettext in -lintl" >&5
2265 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 ac_save_LIBS="$LIBS"
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 /* Override any gcc2 internal prototype to avoid an error. */
2278 /* We use char because int might match the return type of a gcc2
2279 builtin and then its argument prototype would still apply. */
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2288 eval "ac_cv_lib_$ac_lib_var=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2293 eval "ac_cv_lib_$ac_lib_var=no"
2296 LIBS="$ac_save_LIBS"
2299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2303 cat >> confdefs.h <<EOF
2304 #define $ac_tr_lib 1
2310 echo "$ac_t""no" 1>&6
2313 for ac_func in gettext
2315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_func" >&5
2317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 /* System header to define __stub macros and hopefully few prototypes,
2324 which can conflict with char $ac_func(); below. */
2326 /* Override any gcc2 internal prototype to avoid an error. */
2330 /* We use char because int might match the return type of a gcc2
2331 builtin and then its argument prototype would still apply. */
2336 /* The GNU C library defines this for functions which it implements
2337 to always fail with ENOSYS. Some functions are actually named
2338 something starting with __ and the normal name is an alias. */
2339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2349 eval "ac_cv_func_$ac_func=yes"
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2354 eval "ac_cv_func_$ac_func=no"
2359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2360 echo "$ac_t""yes" 1>&6
2361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2362 cat >> confdefs.h <<EOF
2363 #define $ac_tr_func 1
2367 echo "$ac_t""no" 1>&6
2373 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2374 for ac_prog in msgfmt
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 if test -n "$MSGFMT"; then
2384 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2388 for ac_dir in $ac_dummy; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_prog_MSGFMT="$ac_prog"
2398 MSGFMT="$ac_cv_prog_MSGFMT"
2399 if test -n "$MSGFMT"; then
2400 echo "$ac_t""$MSGFMT" 1>&6
2402 echo "$ac_t""no" 1>&6
2405 test -n "$MSGFMT" && break
2407 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2409 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether msgfmt accepts -o" >&5
2411 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2412 if test "$msgfmt_output" = ""; then
2413 echo "$ac_t""yes" 1>&6
2416 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2417 echo "$ac_t""no" 1>&6
2419 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2423 if test ! -n "$MSGFMT"; then
2425 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2431 # urg, never know what names these teTeX guys will think up
2435 # Extract the first word of "$ac_prog", so it can be a program name with args.
2436 set dummy $ac_prog; ac_word=$2
2437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_word" >&5
2439 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 if test -n "$METAFONT"; then
2443 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2447 for ac_dir in $ac_dummy; do
2448 test -z "$ac_dir" && ac_dir=.
2449 if test -f $ac_dir/$ac_word; then
2450 ac_cv_prog_METAFONT="$ac_prog"
2457 METAFONT="$ac_cv_prog_METAFONT"
2458 if test -n "$METAFONT"; then
2459 echo "$ac_t""$METAFONT" 1>&6
2461 echo "$ac_t""no" 1>&6
2464 test -n "$METAFONT" && break
2466 test -n "$METAFONT" || METAFONT="no"
2468 if test "x$METAFONT" = "xno"; then
2469 for ac_prog in mfont
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_word" >&5
2475 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 if test -n "$MFONT"; then
2479 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2483 for ac_dir in $ac_dummy; do
2484 test -z "$ac_dir" && ac_dir=.
2485 if test -f $ac_dir/$ac_word; then
2486 ac_cv_prog_MFONT="$ac_prog"
2493 MFONT="$ac_cv_prog_MFONT"
2494 if test -n "$MFONT"; then
2495 echo "$ac_t""$MFONT" 1>&6
2497 echo "$ac_t""no" 1>&6
2500 test -n "$MFONT" && break
2502 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2509 # Extract the first word of "$ac_prog", so it can be a program name with args.
2510 set dummy $ac_prog; ac_word=$2
2511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_word" >&5
2513 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 if test -n "$METAPOST"; then
2517 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2521 for ac_dir in $ac_dummy; do
2522 test -z "$ac_dir" && ac_dir=.
2523 if test -f $ac_dir/$ac_word; then
2524 ac_cv_prog_METAPOST="$ac_prog"
2531 METAPOST="$ac_cv_prog_METAPOST"
2532 if test -n "$METAPOST"; then
2533 echo "$ac_t""$METAPOST" 1>&6
2535 echo "$ac_t""no" 1>&6
2538 test -n "$METAPOST" && break
2540 test -n "$METAPOST" || METAPOST="no"
2542 if test "x$METAPOST" = "xno"; then
2543 for ac_prog in mpost
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546 set dummy $ac_prog; ac_word=$2
2547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_word" >&5
2549 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 if test -n "$MPOST"; then
2553 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2557 for ac_dir in $ac_dummy; do
2558 test -z "$ac_dir" && ac_dir=.
2559 if test -f $ac_dir/$ac_word; then
2560 ac_cv_prog_MPOST="$ac_prog"
2567 MPOST="$ac_cv_prog_MPOST"
2568 if test -n "$MPOST"; then
2569 echo "$ac_t""$MPOST" 1>&6
2571 echo "$ac_t""no" 1>&6
2574 test -n "$MPOST" && break
2576 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2582 for ac_prog in inimf
2584 # Extract the first word of "$ac_prog", so it can be a program name with args.
2585 set dummy $ac_prog; ac_word=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 if test -n "$INIMETAFONT"; then
2592 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2596 for ac_dir in $ac_dummy; do
2597 test -z "$ac_dir" && ac_dir=.
2598 if test -f $ac_dir/$ac_word; then
2599 ac_cv_prog_INIMETAFONT="$ac_prog"
2606 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2607 if test -n "$INIMETAFONT"; then
2608 echo "$ac_t""$INIMETAFONT" 1>&6
2610 echo "$ac_t""no" 1>&6
2613 test -n "$INIMETAFONT" && break
2615 test -n "$INIMETAFONT" || INIMETAFONT="no"
2617 if test "x$INIMETAFONT" = "xno"; then
2618 for ac_prog in inimfont
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_word" >&5
2624 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 if test -n "$INIMFONT"; then
2628 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2632 for ac_dir in $ac_dummy; do
2633 test -z "$ac_dir" && ac_dir=.
2634 if test -f $ac_dir/$ac_word; then
2635 ac_cv_prog_INIMFONT="$ac_prog"
2642 INIMFONT="$ac_cv_prog_INIMFONT"
2643 if test -n "$INIMFONT"; then
2644 echo "$ac_t""$INIMFONT" 1>&6
2646 echo "$ac_t""no" 1>&6
2649 test -n "$INIMFONT" && break
2651 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2653 INIMETAFONT=$INIMFONT
2656 for ac_prog in inimp
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 if test -n "$INIMETAPOST"; then
2666 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2670 for ac_dir in $ac_dummy; do
2671 test -z "$ac_dir" && ac_dir=.
2672 if test -f $ac_dir/$ac_word; then
2673 ac_cv_prog_INIMETAPOST="$ac_prog"
2680 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2681 if test -n "$INIMETAPOST"; then
2682 echo "$ac_t""$INIMETAPOST" 1>&6
2684 echo "$ac_t""no" 1>&6
2687 test -n "$INIMETAPOST" && break
2689 test -n "$INIMETAPOST" || INIMETAPOST="no"
2691 if test "x$INIMETAPOST" = "xno"; then
2692 for ac_prog in inimpost
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_word" >&5
2698 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 if test -n "$INIMPOST"; then
2702 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2706 for ac_dir in $ac_dummy; do
2707 test -z "$ac_dir" && ac_dir=.
2708 if test -f $ac_dir/$ac_word; then
2709 ac_cv_prog_INIMPOST="$ac_prog"
2716 INIMPOST="$ac_cv_prog_INIMPOST"
2717 if test -n "$INIMPOST"; then
2718 echo "$ac_t""$INIMPOST" 1>&6
2720 echo "$ac_t""no" 1>&6
2723 test -n "$INIMPOST" && break
2725 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2727 INIMETAPOST=$INIMPOST
2730 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2731 echo "configure:2732: checking for working metafont mode" >&5
2732 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2733 for MFMODE in $modelist; do
2734 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2735 if test -f mfput.tfm; then
2739 echo "$ac_t""$MFMODE" 1>&6
2741 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2742 echo "configure:2743: checking for mfplain.mp" >&5
2744 # For now let people define these in their environments
2746 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2747 echo "$ac_t""$MFPLAIN_MP" 1>&6
2749 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2750 echo "configure:2751: checking for inimetapost flags" >&5
2751 if test ${INIMETAPOST} = "inimp" ; then
2752 : ${INIMETAPOST_FLAGS=''}
2754 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2756 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2769 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2770 if test "${enable_tfm_path+set}" = set; then
2771 enableval="$enable_tfm_path"
2778 for ac_prog in kpsewhich
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781 set dummy $ac_prog; ac_word=$2
2782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_word" >&5
2784 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 if test -n "$KPSEWHICH"; then
2788 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2792 for ac_dir in $ac_dummy; do
2793 test -z "$ac_dir" && ac_dir=.
2794 if test -f $ac_dir/$ac_word; then
2795 ac_cv_prog_KPSEWHICH="$ac_prog"
2802 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2803 if test -n "$KPSEWHICH"; then
2804 echo "$ac_t""$KPSEWHICH" 1>&6
2806 echo "$ac_t""no" 1>&6
2809 test -n "$KPSEWHICH" && break
2811 test -n "$KPSEWHICH" || KPSEWHICH="no"
2813 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2814 echo "configure:2815: checking for tfm path" >&5
2816 TFM_FONTS="cmr msam"
2818 if test "x$tfm_path" = xauto ; then
2819 if test "x$KPSEWHICH" != "xno" ; then
2820 for i in $TFM_FONTS; do
2821 dir=`$KPSEWHICH tfm ${i}10.tfm`
2822 TFM_PATH="$TFM_PATH `dirname $dir`"
2826 echo "configure: warning: Please specify where cmr10.tfm lives:
2827 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2835 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2836 echo "$ac_t""$TFM_PATH" 1>&6
2840 ## First, let's just see if we can find Guile at all.
2841 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2842 echo "configure:2843: checking "for guile-config"" >&5
2843 for guile_config in guile-config $target-guile-config $build-guile-config; do
2844 echo "$ac_t"""$guile_config"" 1>&6
2845 if ! $guile_config --version > /dev/null 2>&1 ; then
2846 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2847 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2848 echo "configure:2849: checking "if we are cross compiling"" >&5
2854 if test "$guile_config" = "error"; then
2855 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2858 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2859 echo "configure:2860: checking "Guile version"" >&5
2860 need_guile_version="1.3.4"
2861 need_guile_version_numeric=100304
2862 guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2863 guile_version_numeric=`echo $guile_version | awk -F. '
2864 {if ($3) {last = $3}
2866 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2867 echo "$ac_t"""$guile_version"" 1>&6
2868 if test $guile_version_numeric -lt $need_guile_version_numeric
2871 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2876 ## The GUILE_FLAGS macro.
2877 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2878 echo "configure:2879: checking for Guile" >&5
2879 if ! $guile_config link > /dev/null ; then
2880 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2881 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2884 GUILE_CFLAGS="`$guile_config compile`"
2885 GUILE_LDFLAGS="`$guile_config link`"
2888 echo "$ac_t""yes" 1>&6
2890 # Extract the first word of "guile", so it can be a program name with args.
2891 set dummy guile; ac_word=$2
2892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2893 echo "configure:2894: checking for $ac_word" >&5
2894 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2899 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2902 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2907 for ac_dir in $ac_dummy; do
2908 test -z "$ac_dir" && ac_dir=.
2909 if test -f $ac_dir/$ac_word; then
2910 ac_cv_path_GUILE="$ac_dir/$ac_word"
2915 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2919 GUILE="$ac_cv_path_GUILE"
2920 if test -n "$GUILE"; then
2921 echo "$ac_t""$GUILE" 1>&6
2923 echo "$ac_t""no" 1>&6
2931 # Check whether --enable-kpathsea or --disable-kpathsea was given.
2932 if test "${enable_kpathsea+set}" = set; then
2933 enableval="$enable_kpathsea"
2934 kpathsea_b=$enableval
2938 if test $kpathsea_b = yes; then
2939 for ac_hdr in kpathsea/kpathsea.h
2941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2957 eval "ac_cv_header_$ac_safe=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2963 eval "ac_cv_header_$ac_safe=no"
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h <<EOF
2971 #define $ac_tr_hdr 1
2975 echo "$ac_t""no" 1>&6
2979 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2980 echo "configure:2981: checking for kpse_find_file in -lkpathsea" >&5
2981 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 ac_save_LIBS="$LIBS"
2986 LIBS="-lkpathsea $LIBS"
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* Override any gcc2 internal prototype to avoid an error. */
2994 /* We use char because int might match the return type of a gcc2
2995 builtin and then its argument prototype would still apply. */
2996 char kpse_find_file();
3002 if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3004 eval "ac_cv_lib_$ac_lib_var=yes"
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3009 eval "ac_cv_lib_$ac_lib_var=no"
3012 LIBS="$ac_save_LIBS"
3015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3016 echo "$ac_t""yes" 1>&6
3017 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3018 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3019 cat >> confdefs.h <<EOF
3020 #define $ac_tr_lib 1
3023 LIBS="-lkpathsea $LIBS"
3026 echo "$ac_t""no" 1>&6
3029 # urg: kpse_find_tfm is a #define, how to check for this?
3030 # AC_CHECK_LIB(kpathsea, kpse_find_tfm)
3031 # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions. You may have to create TFM files manually.))
3032 for ac_func in kpse_find_file
3034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3035 echo "configure:3036: checking for $ac_func" >&5
3036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 /* System header to define __stub macros and hopefully few prototypes,
3043 which can conflict with char $ac_func(); below. */
3045 /* Override any gcc2 internal prototype to avoid an error. */
3049 /* We use char because int might match the return type of a gcc2
3050 builtin and then its argument prototype would still apply. */
3055 /* The GNU C library defines this for functions which it implements
3056 to always fail with ENOSYS. Some functions are actually named
3057 something starting with __ and the normal name is an alias. */
3058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3066 if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3068 eval "ac_cv_func_$ac_func=yes"
3070 echo "configure: failed program was:" >&5
3071 cat conftest.$ac_ext >&5
3073 eval "ac_cv_func_$ac_func=no"
3078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3079 echo "$ac_t""yes" 1>&6
3080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3081 cat >> confdefs.h <<EOF
3082 #define $ac_tr_func 1
3086 echo "$ac_t""no" 1>&6
3087 echo "configure: warning: Cannot find kpathsea functions. You may have to create TFM files manually." 1>&2
3094 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3095 echo "configure:3096: checking whether to use kpathsea" >&5
3096 if test $kpathsea_b = yes; then
3097 echo "$ac_t""yes" 1>&6
3100 echo "$ac_t""no" 1>&6
3105 cat >> confdefs.h <<EOF
3106 #define KPATHSEA $KPATHSEA
3111 for ac_prog in bibtex2html bib2html
3113 # Extract the first word of "$ac_prog", so it can be a program name with args.
3114 set dummy $ac_prog; ac_word=$2
3115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_word" >&5
3117 if eval "test \"`echo '$''{'ac_cv_prog_BIBTEX2HTML'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 if test -n "$BIBTEX2HTML"; then
3121 ac_cv_prog_BIBTEX2HTML="$BIBTEX2HTML" # Let the user override the test.
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_prog_BIBTEX2HTML="$ac_prog"
3135 BIBTEX2HTML="$ac_cv_prog_BIBTEX2HTML"
3136 if test -n "$BIBTEX2HTML"; then
3137 echo "$ac_t""$BIBTEX2HTML" 1>&6
3139 echo "$ac_t""no" 1>&6
3142 test -n "$BIBTEX2HTML" && break
3144 test -n "$BIBTEX2HTML" || BIBTEX2HTML="error"
3146 if test "$BIBTEX2HTML" = "bib2html"; then
3147 BIBTEX2HTML_FLAGS='$< $(@)'
3149 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
3156 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3157 echo "configure:3158: checking for 8-bit clean memcmp" >&5
3158 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 if test "$cross_compiling" = yes; then
3162 ac_cv_func_memcmp_clean=no
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3168 extern "C" void exit(int);
3173 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3174 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3180 ac_cv_func_memcmp_clean=yes
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 ac_cv_func_memcmp_clean=no
3192 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3193 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3195 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3196 echo "configure:3197: checking for vprintf" >&5
3197 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 /* System header to define __stub macros and hopefully few prototypes,
3204 which can conflict with char vprintf(); below. */
3206 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3216 /* The GNU C library defines this for functions which it implements
3217 to always fail with ENOSYS. Some functions are actually named
3218 something starting with __ and the normal name is an alias. */
3219 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3229 eval "ac_cv_func_vprintf=yes"
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 eval "ac_cv_func_vprintf=no"
3239 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3241 cat >> confdefs.h <<\EOF
3242 #define HAVE_VPRINTF 1
3246 echo "$ac_t""no" 1>&6
3249 if test "$ac_cv_func_vprintf" != yes; then
3250 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3251 echo "configure:3252: checking for _doprnt" >&5
3252 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 /* System header to define __stub macros and hopefully few prototypes,
3259 which can conflict with char _doprnt(); below. */
3261 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3271 /* The GNU C library defines this for functions which it implements
3272 to always fail with ENOSYS. Some functions are actually named
3273 something starting with __ and the normal name is an alias. */
3274 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3282 if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3284 eval "ac_cv_func__doprnt=yes"
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3289 eval "ac_cv_func__doprnt=no"
3294 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3296 cat >> confdefs.h <<\EOF
3297 #define HAVE_DOPRNT 1
3301 echo "$ac_t""no" 1>&6
3306 for ac_func in memmem snprintf vsnprintf gettext isinf
3308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_func" >&5
3310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* System header to define __stub macros and hopefully few prototypes,
3317 which can conflict with char $ac_func(); below. */
3319 /* Override any gcc2 internal prototype to avoid an error. */
3323 /* We use char because int might match the return type of a gcc2
3324 builtin and then its argument prototype would still apply. */
3329 /* The GNU C library defines this for functions which it implements
3330 to always fail with ENOSYS. Some functions are actually named
3331 something starting with __ and the normal name is an alias. */
3332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3342 eval "ac_cv_func_$ac_func=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_func_$ac_func=no"
3352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3353 echo "$ac_t""yes" 1>&6
3354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3355 cat >> confdefs.h <<EOF
3356 #define $ac_tr_func 1
3360 echo "$ac_t""no" 1>&6
3365 cat >> confdefs.h <<EOF
3366 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3369 cat >> confdefs.h <<EOF
3370 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3374 for ac_prog in makeinfo
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3379 echo "configure:3380: checking for $ac_word" >&5
3380 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 if test -n "$MAKEINFO"; then
3384 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3388 for ac_dir in $ac_dummy; do
3389 test -z "$ac_dir" && ac_dir=.
3390 if test -f $ac_dir/$ac_word; then
3391 ac_cv_prog_MAKEINFO="$ac_prog"
3398 MAKEINFO="$ac_cv_prog_MAKEINFO"
3399 if test -n "$MAKEINFO"; then
3400 echo "$ac_t""$MAKEINFO" 1>&6
3402 echo "$ac_t""no" 1>&6
3405 test -n "$MAKEINFO" && break
3407 test -n "$MAKEINFO" || MAKEINFO="error"
3409 # Extract the first word of "perl", so it can be a program name with args.
3410 set dummy perl; ac_word=$2
3411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_word" >&5
3413 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3418 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3421 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3426 for ac_dir in $ac_dummy; do
3427 test -z "$ac_dir" && ac_dir=.
3428 if test -f $ac_dir/$ac_word; then
3429 ac_cv_path_PERL="$ac_dir/$ac_word"
3434 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3438 PERL="$ac_cv_path_PERL"
3439 if test -n "$PERL"; then
3440 echo "$ac_t""$PERL" 1>&6
3442 echo "$ac_t""no" 1>&6
3448 cat > confcache <<\EOF
3449 # This file is a shell script that caches the results of configure
3450 # tests run on this system so they can be shared between configure
3451 # scripts and configure runs. It is not useful on other systems.
3452 # If it contains results you don't want to keep, you may remove or edit it.
3454 # By default, configure uses ./config.cache as the cache file,
3455 # creating it if it does not exist already. You can give configure
3456 # the --cache-file=FILE option to use a different cache file; that is
3457 # what configure does when it calls configure scripts in
3458 # subdirectories, so they share the cache.
3459 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3460 # config.status only pays attention to the cache file if you give it the
3461 # --recheck option to rerun configure.
3464 # The following way of writing the cache mishandles newlines in values,
3465 # but we know of no workaround that is simple, portable, and efficient.
3466 # So, don't put newlines in cache variables' values.
3467 # Ultrix sh set writes to stderr and can't be redirected directly,
3468 # and sets the high bit in the cache file unless we assign to the vars.
3470 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3472 # `set' does not quote correctly, so add quotes (double-quote substitution
3473 # turns \\\\ into \\, and sed turns \\ into \).
3475 -e "s/'/'\\\\''/g" \
3476 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3479 # `set' quotes correctly as required by POSIX, so do not add quotes.
3480 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3483 if cmp -s $cache_file confcache; then
3486 if test -w $cache_file; then
3487 echo "updating cache $cache_file"
3488 cat confcache > $cache_file
3490 echo "not updating unwritable cache $cache_file"
3495 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3497 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3498 # Let make expand exec_prefix.
3499 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3501 # Any assignment to VPATH causes Sun make to only execute
3502 # the first set of double-colon rules, so remove it if not needed.
3503 # If there is a colon in the path, we need to keep it.
3504 if test "x$srcdir" = x.; then
3505 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3508 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3510 DEFS=-DHAVE_CONFIG_H
3512 # Without the "./", some shells look in PATH for config.status.
3513 : ${CONFIG_STATUS=./config.status}
3515 echo creating $CONFIG_STATUS
3516 rm -f $CONFIG_STATUS
3517 cat > $CONFIG_STATUS <<EOF
3519 # Generated automatically by configure.
3520 # Run this file to recreate the current configuration.
3521 # This directory was configured as follows,
3522 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3524 # $0 $ac_configure_args
3526 # Compiler output produced by configure, useful for debugging
3527 # configure, is in ./config.log if it exists.
3529 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3532 case "\$ac_option" in
3533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3534 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3535 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3536 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3537 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3539 -help | --help | --hel | --he | --h)
3540 echo "\$ac_cs_usage"; exit 0 ;;
3541 *) echo "\$ac_cs_usage"; exit 1 ;;
3545 ac_given_srcdir=$srcdir
3547 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3549 cat >> $CONFIG_STATUS <<EOF
3551 # Protect against being on the right side of a sed subst in config.status.
3552 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3553 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3557 s%@CFLAGS@%$CFLAGS%g
3558 s%@CPPFLAGS@%$CPPFLAGS%g
3559 s%@CXXFLAGS@%$CXXFLAGS%g
3560 s%@FFLAGS@%$FFLAGS%g
3562 s%@LDFLAGS@%$LDFLAGS%g
3564 s%@exec_prefix@%$exec_prefix%g
3565 s%@prefix@%$prefix%g
3566 s%@program_transform_name@%$program_transform_name%g
3567 s%@bindir@%$bindir%g
3568 s%@sbindir@%$sbindir%g
3569 s%@libexecdir@%$libexecdir%g
3570 s%@datadir@%$datadir%g
3571 s%@sysconfdir@%$sysconfdir%g
3572 s%@sharedstatedir@%$sharedstatedir%g
3573 s%@localstatedir@%$localstatedir%g
3574 s%@libdir@%$libdir%g
3575 s%@includedir@%$includedir%g
3576 s%@oldincludedir@%$oldincludedir%g
3577 s%@infodir@%$infodir%g
3578 s%@mandir@%$mandir%g
3579 s%@builddir@%$builddir%g
3580 s%@stepmake@%$stepmake%g
3581 s%@package@%$package%g
3582 s%@PACKAGE@%$PACKAGE%g
3583 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3584 s%@package_depth@%$package_depth%g
3585 s%@AUTOGENERATE@%$AUTOGENERATE%g
3586 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3588 s%@host_alias@%$host_alias%g
3589 s%@host_cpu@%$host_cpu%g
3590 s%@host_vendor@%$host_vendor%g
3591 s%@host_os@%$host_os%g
3596 s%@PYTHON@%$PYTHON%g
3597 s%@program_prefix@%$program_prefix%g
3598 s%@program_suffix@%$program_suffix%g
3602 s%@INSTALL@%$INSTALL%g
3603 s%@PATHSEP@%$PATHSEP%g
3604 s%@DIRSEP@%$DIRSEP%g
3605 s%@DIR_DATADIR@%$DIR_DATADIR%g
3606 s%@subdirs@%$subdirs%g
3609 s%@cross_compiling@%$cross_compiling%g
3610 s%@ICFLAGS@%$ICFLAGS%g
3611 s%@ILDFLAGS@%$ILDFLAGS%g
3612 s%@DEFINES@%$DEFINES%g
3613 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3616 s%@CXXCPP@%$CXXCPP%g
3621 s%@RANLIB@%$RANLIB%g
3622 s%@localedir@%$localedir%g
3623 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3624 s%@MSGFMT@%$MSGFMT%g
3625 s%@METAFONT@%$METAFONT%g
3627 s%@METAPOST@%$METAPOST%g
3629 s%@INIMETAFONT@%$INIMETAFONT%g
3630 s%@INIMFONT@%$INIMFONT%g
3631 s%@INIMETAPOST@%$INIMETAPOST%g
3632 s%@INIMPOST@%$INIMPOST%g
3633 s%@MFMODE@%$MFMODE%g
3634 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3635 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3636 s%@KPSEWHICH@%$KPSEWHICH%g
3637 s%@TFM_PATH@%$TFM_PATH%g
3638 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3639 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3641 s%@KPATHSEA@%$KPATHSEA%g
3642 s%@BIBTEX2HTML@%$BIBTEX2HTML%g
3643 s%@BIBTEX2HTML_FLAGS@%$BIBTEX2HTML_FLAGS%g
3644 s%@LIBOBJS@%$LIBOBJS%g
3645 s%@MAKEINFO@%$MAKEINFO%g
3651 cat >> $CONFIG_STATUS <<\EOF
3653 # Split the substitutions into bite-sized pieces for seds with
3654 # small command number limits, like on Digital OSF/1 and HP-UX.
3655 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3656 ac_file=1 # Number of current file.
3657 ac_beg=1 # First line for current file.
3658 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3661 while $ac_more_lines; do
3662 if test $ac_beg -gt 1; then
3663 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3665 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3667 if test ! -s conftest.s$ac_file; then
3669 rm -f conftest.s$ac_file
3671 if test -z "$ac_sed_cmds"; then
3672 ac_sed_cmds="sed -f conftest.s$ac_file"
3674 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3676 ac_file=`expr $ac_file + 1`
3678 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3681 if test -z "$ac_sed_cmds"; then
3686 cat >> $CONFIG_STATUS <<EOF
3688 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3690 cat >> $CONFIG_STATUS <<\EOF
3691 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3692 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3694 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3695 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3696 *) ac_file_in="${ac_file}.in" ;;
3699 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3701 # Remove last slash and all that follows it. Not all systems have dirname.
3702 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3703 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3704 # The file is in a subdirectory.
3705 test ! -d "$ac_dir" && mkdir "$ac_dir"
3706 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3707 # A "../" for each directory in $ac_dir_suffix.
3708 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3710 ac_dir_suffix= ac_dots=
3713 case "$ac_given_srcdir" in
3715 if test -z "$ac_dots"; then top_srcdir=.
3716 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3717 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3719 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3720 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3724 echo creating "$ac_file"
3726 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3728 *Makefile*) ac_comsub="1i\\
3729 # $configure_input" ;;
3733 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3735 s%@configure_input@%$configure_input%g
3736 s%@srcdir@%$srcdir%g
3737 s%@top_srcdir@%$top_srcdir%g
3738 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3745 # ac_d sets the value in "#define NAME VALUE" lines.
3746 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3747 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3750 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3751 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3752 ac_uB='\([ ]\)%\1#\2define\3'
3755 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3756 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3757 ac_eB='$%\1#\2define\3'
3761 if test "${CONFIG_HEADERS+set}" != set; then
3763 cat >> $CONFIG_STATUS <<EOF
3764 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3766 cat >> $CONFIG_STATUS <<\EOF
3768 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3771 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3772 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3773 *) ac_file_in="${ac_file}.in" ;;
3776 echo creating $ac_file
3778 rm -f conftest.frag conftest.in conftest.out
3779 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3780 cat $ac_file_inputs > conftest.in
3784 # Transform confdefs.h into a sed script conftest.vals that substitutes
3785 # the proper values into config.h.in to produce config.h. And first:
3786 # Protect against being on the right side of a sed subst in config.status.
3787 # Protect against being in an unquoted here document in config.status.
3789 cat > conftest.hdr <<\EOF
3792 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3796 sed -n -f conftest.hdr confdefs.h > conftest.vals
3799 # This sed command replaces #undef with comments. This is necessary, for
3800 # example, in the case of _POSIX_SOURCE, which is predefined and required
3801 # on some systems where configure will not decide to define it.
3802 cat >> conftest.vals <<\EOF
3803 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3806 # Break up conftest.vals because some shells have a limit on
3807 # the size of here documents, and old seds have small limits too.
3812 ac_lines=`grep -c . conftest.vals`
3813 # grep -c gives empty output for an empty file on some AIX systems.
3814 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3815 # Write a limited-size here document to conftest.frag.
3816 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3817 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3819 sed -f conftest.frag conftest.in > conftest.out
3821 mv conftest.out conftest.in
3823 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3825 mv conftest.tail conftest.vals
3829 cat >> $CONFIG_STATUS <<\EOF
3830 rm -f conftest.frag conftest.h
3831 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3832 cat conftest.in >> conftest.h
3834 if cmp -s $ac_file conftest.h 2>/dev/null; then
3835 echo "$ac_file is unchanged"
3838 # Remove last slash and all that follows it. Not all systems have dirname.
3839 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3840 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3841 # The file is in a subdirectory.
3842 test ! -d "$ac_dir" && mkdir "$ac_dir"
3845 mv conftest.h $ac_file
3850 cat >> $CONFIG_STATUS <<EOF
3853 cat >> $CONFIG_STATUS <<\EOF
3857 chmod +x $CONFIG_STATUS
3858 rm -fr confdefs* $ac_clean_files
3859 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3861 if test "$no_recursion" != yes; then
3863 # Remove --cache-file and --srcdir arguments so they do not pile up.
3864 ac_sub_configure_args=
3866 for ac_arg in $ac_configure_args; do
3867 if test -n "$ac_prev"; then
3872 -cache-file | --cache-file | --cache-fil | --cache-fi \
3873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3874 ac_prev=cache_file ;;
3875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3878 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3880 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3882 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3886 for ac_config_dir in stepmake; do
3888 # Do not complain, so a configure script can configure whichever
3889 # parts of a large source tree are present.
3890 if test ! -d $srcdir/$ac_config_dir; then
3894 echo configuring in $ac_config_dir
3899 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3901 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3909 # A "../" for each directory in /$ac_config_dir.
3910 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3913 .) # No --srcdir option. We are building in place.
3914 ac_sub_srcdir=$srcdir ;;
3915 /*) # Absolute path.
3916 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3918 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3921 # Check for guested configure; otherwise get Cygnus style configure.
3922 if test -f $ac_sub_srcdir/configure; then
3923 ac_sub_configure=$ac_sub_srcdir/configure
3924 elif test -f $ac_sub_srcdir/configure.in; then
3925 ac_sub_configure=$ac_configure
3927 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3931 # The recursion is here.
3932 if test -n "$ac_sub_configure"; then
3934 # Make the cache file name correct relative to the subdirectory.
3935 case "$cache_file" in
3936 /*) ac_sub_cache_file=$cache_file ;;
3938 ac_sub_cache_file="$ac_dots$cache_file" ;;
3941 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3942 # The eval makes quoting arguments work.
3943 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3946 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3955 rm -f $srcdir/GNUmakefile
3956 cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3957 chmod 444 $srcdir/GNUmakefile
3958 if test "$builddir" != "."; then
3960 cp $srcdir/make/srcdir.make.in GNUmakefile
3961 chmod 444 GNUmakefile