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 enable-printing turn on debug printing. Default: off"
82 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
84 with-lang=LANG use LANG as language to emit messages"
86 enable-tex-tfmdir=DIR set the tex-directory where cmr10.tfm lives (default: use kpsewhich)"
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 echo $ac_n "checking Package""... $ac_c" 1>&6
622 echo "configure:623: checking Package" >&5
623 if test "x$PACKAGE" = "xSTEPMAKE"; then
624 echo "$ac_t""Stepmake package!" 1>&6
626 #if test "x$builddir" != "x"; then
627 # builddir="../$builddir"
631 if test "$srcdir" != "."; then
632 absolute_builddir="`pwd`"
633 package_absolute_builddir="`dirname $absolute_builddir`"
634 package_srcdir="`dirname $srcdir`"
635 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
640 (cd stepmake 2>/dev/null || mkdir stepmake)
641 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
642 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
644 for ac_dir in bin $srcdir/bin; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
655 if test -z "$ac_aux_dir"; then
656 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
658 ac_config_guess=$ac_aux_dir/config.guess
659 ac_config_sub=$ac_aux_dir/config.sub
660 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
664 echo "$ac_t""$PACKAGE" 1>&6
666 if test "$srcdir" != "."; then
667 absolute_builddir="`pwd`"
668 builddir="`dirname $srcdir`/`basename $absolute_builddir`"
673 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
674 echo "configure:675: checking for stepmake" >&5
675 # Check for installed stepmake
676 if test -d $stepmake; then
677 echo "$ac_t""$stepmake" 1>&6
679 stepmake='$(depth)'/$srcdir/stepmake
680 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
684 $HOME/usr/local/share/stepmake/bin\
685 $HOME/usr/local/lib/stepmake/bin\
686 $HOME/usr/share/stepmake/bin\
687 $HOME/usr/lib/stepmake/bin\
688 /usr/local/share/stepmake/bin\
689 /usr/local/lib/stepmake/bin\
690 /usr/share/stepmake/bin\
691 /usr/lib/stepmake/bin\
693 $srcdir/stepmake/bin\
695 $HOME/usr/local/share/stepmake/bin\
696 $HOME/usr/local/lib/stepmake/bin\
697 $HOME/usr/share/stepmake/bin\
698 $HOME/usr/lib/stepmake/bin\
699 /usr/local/share/stepmake/bin\
700 /usr/local/lib/stepmake/bin\
701 /usr/share/stepmake/bin\
702 /usr/lib/stepmake/bin\
704 $srcdir/stepmake/bin\
706 if test -f $ac_dir/install-sh; then
708 ac_install_sh="$ac_aux_dir/install-sh -c"
710 elif test -f $ac_dir/install.sh; then
712 ac_install_sh="$ac_aux_dir/install.sh -c"
716 if test -z "$ac_aux_dir"; then
717 { echo "configure: error: can not find install-sh or install.sh in \
718 $HOME/usr/local/share/stepmake/bin\
719 $HOME/usr/local/lib/stepmake/bin\
720 $HOME/usr/share/stepmake/bin\
721 $HOME/usr/lib/stepmake/bin\
722 /usr/local/share/stepmake/bin\
723 /usr/local/lib/stepmake/bin\
724 /usr/share/stepmake/bin\
725 /usr/lib/stepmake/bin\
727 $srcdir/stepmake/bin\
729 $HOME/usr/local/share/stepmake/bin\
730 $HOME/usr/local/lib/stepmake/bin\
731 $HOME/usr/share/stepmake/bin\
732 $HOME/usr/lib/stepmake/bin\
733 /usr/local/share/stepmake/bin\
734 /usr/local/lib/stepmake/bin\
735 /usr/share/stepmake/bin\
736 /usr/lib/stepmake/bin\
738 $srcdir/stepmake/bin\
741 ac_config_guess=$ac_aux_dir/config.guess
742 ac_config_sub=$ac_aux_dir/config.sub
743 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
752 cat >> confdefs.h <<EOF
753 #define PACKAGE "${PACKAGE_NAME}"
756 cat >> confdefs.h <<EOF
757 #define TOPLEVEL_VERSION "${FULL_VERSION}"
761 if test "$package_depth" = "" ; then
764 package_depth="../$package_depth"
769 AUTOGENERATE="This file was automatically generated by configure"
772 STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
773 if test "x$STATE_VECTOR" != "x"; then
774 STATE_VECTOR="\$(depth)/$STATE_VECTOR"
779 # Check whether --enable-config or --disable-config was given.
780 if test "${enable_config+set}" = set; then
781 enableval="$enable_config"
782 CONFIGSUFFIX=-$enableval
786 CONFIGFILE=config$CONFIGSUFFIX
790 # Make sure we can run config.sub.
791 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
792 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
795 echo $ac_n "checking host system type""... $ac_c" 1>&6
796 echo "configure:797: checking host system type" >&5
799 case "$host_alias" in
803 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
804 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
806 *) host_alias=$nonopt ;;
810 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
811 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
812 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
813 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
814 echo "$ac_t""$host" 1>&6
816 for ac_prog in gmake make
818 # Extract the first word of "$ac_prog", so it can be a program name with args.
819 set dummy $ac_prog; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$MAKE"; then
826 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 for ac_dir in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
833 ac_cv_prog_MAKE="$ac_prog"
840 MAKE="$ac_cv_prog_MAKE"
841 if test -n "$MAKE"; then
842 echo "$ac_t""$MAKE" 1>&6
844 echo "$ac_t""no" 1>&6
847 test -n "$MAKE" && break
849 test -n "$MAKE" || MAKE="error"
853 # Extract the first word of "$ac_prog", so it can be a program name with args.
854 set dummy $ac_prog; ac_word=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
860 if test -n "$FIND"; then
861 ac_cv_prog_FIND="$FIND" # Let the user override the test.
863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
865 for ac_dir in $ac_dummy; do
866 test -z "$ac_dir" && ac_dir=.
867 if test -f $ac_dir/$ac_word; then
868 ac_cv_prog_FIND="$ac_prog"
875 FIND="$ac_cv_prog_FIND"
876 if test -n "$FIND"; then
877 echo "$ac_t""$FIND" 1>&6
879 echo "$ac_t""no" 1>&6
882 test -n "$FIND" && break
884 test -n "$FIND" || FIND="error"
890 # Extract the first word of "$ac_prog", so it can be a program name with args.
891 set dummy $ac_prog; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 if test -n "$TAR"; then
898 ac_cv_prog_TAR="$TAR" # Let the user override the test.
900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
902 for ac_dir in $ac_dummy; do
903 test -z "$ac_dir" && ac_dir=.
904 if test -f $ac_dir/$ac_word; then
905 ac_cv_prog_TAR="$ac_prog"
912 TAR="$ac_cv_prog_TAR"
913 if test -n "$TAR"; then
914 echo "$ac_t""$TAR" 1>&6
916 echo "$ac_t""no" 1>&6
919 test -n "$TAR" && break
921 test -n "$TAR" || TAR="error"
924 if test "x`uname`" = "xHP-UX"; then
925 # Extract the first word of "bash", so it can be a program name with args.
926 set dummy bash; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
934 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
937 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
942 for ac_dir in $ac_dummy; do
943 test -z "$ac_dir" && ac_dir=.
944 if test -f $ac_dir/$ac_word; then
945 ac_cv_path_BASH="$ac_dir/$ac_word"
950 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
954 BASH="$ac_cv_path_BASH"
955 if test -n "$BASH"; then
956 echo "$ac_t""$BASH" 1>&6
958 echo "$ac_t""no" 1>&6
962 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
965 # Extract the first word of "bash", so it can be a program name with args.
966 set dummy bash; ac_word=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
974 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
977 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
982 for ac_dir in $ac_dummy; do
983 test -z "$ac_dir" && ac_dir=.
984 if test -f $ac_dir/$ac_word; then
985 ac_cv_path_SHELL="$ac_dir/$ac_word"
990 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
994 SHELL="$ac_cv_path_SHELL"
995 if test -n "$SHELL"; then
996 echo "$ac_t""$SHELL" 1>&6
998 echo "$ac_t""no" 1>&6
1002 # Extract the first word of "bash", so it can be a program name with args.
1003 set dummy bash; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1011 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1014 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1019 for ac_dir in $ac_dummy; do
1020 test -z "$ac_dir" && ac_dir=.
1021 if test -f $ac_dir/$ac_word; then
1022 ac_cv_path_BASH="$ac_dir/$ac_word"
1027 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1031 BASH="$ac_cv_path_BASH"
1032 if test -n "$BASH"; then
1033 echo "$ac_t""$BASH" 1>&6
1035 echo "$ac_t""no" 1>&6
1043 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1044 set dummy ${PYTHON:-python}; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1052 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1055 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1060 for ac_dir in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1068 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1072 PYTHON="$ac_cv_path_PYTHON"
1073 if test -n "$PYTHON"; then
1074 echo "$ac_t""$PYTHON" 1>&6
1076 echo "$ac_t""no" 1>&6
1081 if test $MAKE != "error" ; then
1082 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1086 echo "configure: warning: Please install *GNU* make" 1>&2
1093 result="`echo \"$PYTHON\" | grep echo`"
1094 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1096 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1102 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1103 LN=cp # hard link does not work under cygnus-nt
1104 LN_S='cp -r' # symbolic link does not work for native nt
1111 # cygwin fixes all these things.
1112 # it seems these were used because of dos-style TEXINPUTS and
1113 # MFINPUTS needed for miktex.
1114 # but this breaks parsing of all other cygwin/unix style paths.
1116 # if your (mik)tex breaks, make a:
1117 # /usr/local/bin/tex:
1119 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1123 # /usr/local/bin/mf:
1125 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1127 # this way, you may have buildscripts/out/lilypond-profile
1128 # 'automatically' sourced from /usr/etc/profile.d/ too.
1132 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1139 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1146 cat >> confdefs.h <<EOF
1147 #define DIRSEP '${DIRSEP}'
1150 cat >> confdefs.h <<EOF
1151 #define PATHSEP '${PATHSEP}'
1158 if test "$datadir" = "\${prefix}/share"; then
1159 datadir='${prefix}/share/'$package
1161 DIR_DATADIR=${datadir}
1163 if test "$prefix" = "NONE"; then
1164 presome=${ac_default_prefix}
1166 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1169 cat >> confdefs.h <<EOF
1170 #define DIR_DATADIR "${DIR_DATADIR}"
1176 # For all packages except the StepMake package itself
1180 # Uncomment the configuration options your package needs.
1182 # -O is necessary to get inlining
1184 CFLAGS=${CFLAGS:-""}
1185 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1186 LDFLAGS=${LDFLAGS:-""}
1192 # Check whether --enable-checking or --disable-checking was given.
1193 if test "${enable_checking+set}" = set; then
1194 enableval="$enable_checking"
1195 checking_b=$enableval
1199 # actually, the default is: tja='-O' to get inlining...
1202 #actually, that sucks.
1203 # tja looks like a typo. Default is optimisation off. --hwn
1205 # Check whether --enable-optimise or --disable-optimise was given.
1206 if test "${enable_optimise+set}" = set; then
1207 enableval="$enable_optimise"
1208 optimise_b=$enableval
1212 # Check whether --enable-profiling or --disable-profiling was given.
1213 if test "${enable_profiling+set}" = set; then
1214 enableval="$enable_profiling"
1215 profile_b=$enableval
1219 # Check whether --enable-debugging or --disable-debugging was given.
1220 if test "${enable_debugging+set}" = set; then
1221 enableval="$enable_debugging"
1226 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1227 if test "${enable_mingw_prefix+set}" = set; then
1228 enableval="$enable_mingw_prefix"
1229 MINGWPREFIX=$enableval
1235 if test "$checking_b" = no; then
1237 cat >> confdefs.h <<\EOF
1241 DEFINES="$DEFINES -DNDEBUG"
1244 if test "$optimise_b" = yes; then
1245 OPTIMIZE="-O2 -finline-functions"
1248 if test "$optimise_b" = no; then
1252 if test $profile_b = yes; then
1254 OPTIMIZE="$OPTIMIZE -pg"
1257 if test $debug_b = yes; then
1258 OPTIMIZE="$OPTIMIZE -g"
1261 # however, C++ support in mingw32 v 0.1.4 is still flaky
1262 if test x$MINGWPREFIX != xno; then
1263 ICFLAGS="-I$MINGWPREFIX/include"
1264 ILDFLAGS="-$MINGWPREFIX/lib"
1267 # Extract the first word of "gcc", so it can be a program name with args.
1268 set dummy gcc; ac_word=$2
1269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1270 echo "configure:1271: checking for $ac_word" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 if test -n "$CC"; then
1275 ac_cv_prog_CC="$CC" # Let the user override the test.
1277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1279 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 if test -f $ac_dir/$ac_word; then
1290 if test -n "$CC"; then
1291 echo "$ac_t""$CC" 1>&6
1293 echo "$ac_t""no" 1>&6
1296 if test -z "$CC"; then
1297 # Extract the first word of "cc", so it can be a program name with args.
1298 set dummy cc; ac_word=$2
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1300 echo "configure:1301: checking for $ac_word" >&5
1301 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 if test -n "$CC"; then
1305 ac_cv_prog_CC="$CC" # Let the user override the test.
1307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1310 for ac_dir in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir=.
1312 if test -f $ac_dir/$ac_word; then
1313 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1314 ac_prog_rejected=yes
1322 if test $ac_prog_rejected = yes; then
1323 # We found a bogon in the path, so make sure we never use it.
1324 set dummy $ac_cv_prog_CC
1326 if test $# -gt 0; then
1327 # We chose a different compiler from the bogus one.
1328 # However, it has the same basename, so the bogon will be chosen
1329 # first if we set CC to just the basename; use the full file name.
1331 set dummy "$ac_dir/$ac_word" "$@"
1339 if test -n "$CC"; then
1340 echo "$ac_t""$CC" 1>&6
1342 echo "$ac_t""no" 1>&6
1345 if test -z "$CC"; then
1346 case "`uname -s`" in
1348 # Extract the first word of "cl", so it can be a program name with args.
1349 set dummy cl; ac_word=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5
1352 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 if test -n "$CC"; then
1356 ac_cv_prog_CC="$CC" # Let the user override the test.
1358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1360 for ac_dir in $ac_dummy; do
1361 test -z "$ac_dir" && ac_dir=.
1362 if test -f $ac_dir/$ac_word; then
1371 if test -n "$CC"; then
1372 echo "$ac_t""$CC" 1>&6
1374 echo "$ac_t""no" 1>&6
1379 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1382 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1383 echo "configure:1384: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1387 ac_cpp='$CPP $CPPFLAGS'
1388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1390 cross_compiling=$ac_cv_prog_cc_cross
1392 cat > conftest.$ac_ext << EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1399 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1400 ac_cv_prog_cc_works=yes
1401 # If we can't run a trivial program, we are probably using a cross compiler.
1402 if (./conftest; exit) 2>/dev/null; then
1403 ac_cv_prog_cc_cross=no
1405 ac_cv_prog_cc_cross=yes
1408 echo "configure: failed program was:" >&5
1409 cat conftest.$ac_ext >&5
1410 ac_cv_prog_cc_works=no
1414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1415 ac_cpp='$CPP $CPPFLAGS'
1416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1418 cross_compiling=$ac_cv_prog_cc_cross
1420 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1421 if test $ac_cv_prog_cc_works = no; then
1422 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1424 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1426 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1427 cross_compiling=$ac_cv_prog_cc_cross
1429 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1430 echo "configure:1431: checking whether we are using GNU C" >&5
1431 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 cat > conftest.c <<EOF
1439 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1446 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1448 if test $ac_cv_prog_gcc = yes; then
1454 ac_test_CFLAGS="${CFLAGS+set}"
1455 ac_save_CFLAGS="$CFLAGS"
1457 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1458 echo "configure:1459: checking whether ${CC-cc} accepts -g" >&5
1459 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 echo 'void f(){}' > conftest.c
1463 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1472 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1473 if test "$ac_test_CFLAGS" = set; then
1474 CFLAGS="$ac_save_CFLAGS"
1475 elif test $ac_cv_prog_cc_g = yes; then
1476 if test "$GCC" = yes; then
1482 if test "$GCC" = yes; then
1492 CFLAGS="$CFLAGS $OPTIMIZE"
1493 CPPFLAGS=${CPPFLAGS:-""}
1502 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1505 # Check whether --enable-printing or --disable-printing was given.
1506 if test "${enable_printing+set}" = set; then
1507 enableval="$enable_printing"
1508 printing_b=$enableval
1512 if test "$optimise_b" = yes; then
1513 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1514 cat >> confdefs.h <<\EOF
1515 #define STRINGS_UTILS_INLINED 1
1520 if test "$printing_b" = no; then
1522 cat >> confdefs.h <<\EOF
1526 DEFINES="$DEFINES -DNPRINT"
1529 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1530 echo "configure:1531: checking how to run the C++ preprocessor" >&5
1531 if test -z "$CXXCPP"; then
1532 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1536 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1537 ac_cpp='$CXXCPP $CPPFLAGS'
1538 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1539 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1540 cross_compiling=$ac_cv_prog_cxx_cross
1541 CXXCPP="${CXX-g++} -E"
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1548 { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1550 if test -z "$ac_err"; then
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1560 ac_cv_prog_CXXCPP="$CXXCPP"
1562 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1563 ac_cpp='$CXXCPP $CPPFLAGS'
1564 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1565 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1566 cross_compiling=$ac_cv_prog_cxx_cross
1569 CXXCPP="$ac_cv_prog_CXXCPP"
1570 echo "$ac_t""$CXXCPP" 1>&6
1574 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1575 ac_cpp='$CXXCPP $CPPFLAGS'
1576 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1577 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1578 cross_compiling=$ac_cv_prog_cxx_cross
1580 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1582 # Extract the first word of "$ac_prog", so it can be a program name with args.
1583 set dummy $ac_prog; ac_word=$2
1584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1585 echo "configure:1586: checking for $ac_word" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 if test -n "$CXX"; then
1590 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1594 for ac_dir in $ac_dummy; do
1595 test -z "$ac_dir" && ac_dir=.
1596 if test -f $ac_dir/$ac_word; then
1597 ac_cv_prog_CXX="$ac_prog"
1604 CXX="$ac_cv_prog_CXX"
1605 if test -n "$CXX"; then
1606 echo "$ac_t""$CXX" 1>&6
1608 echo "$ac_t""no" 1>&6
1611 test -n "$CXX" && break
1613 test -n "$CXX" || CXX="gcc"
1616 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1617 echo "configure:1618: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1620 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1621 ac_cpp='$CXXCPP $CPPFLAGS'
1622 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1623 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1624 cross_compiling=$ac_cv_prog_cxx_cross
1626 cat > conftest.$ac_ext << EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1631 int main(){return(0);}
1633 if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1634 ac_cv_prog_cxx_works=yes
1635 # If we can't run a trivial program, we are probably using a cross compiler.
1636 if (./conftest; exit) 2>/dev/null; then
1637 ac_cv_prog_cxx_cross=no
1639 ac_cv_prog_cxx_cross=yes
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1644 ac_cv_prog_cxx_works=no
1648 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1649 ac_cpp='$CXXCPP $CPPFLAGS'
1650 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1651 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1652 cross_compiling=$ac_cv_prog_cxx_cross
1654 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1655 if test $ac_cv_prog_cxx_works = no; then
1656 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1658 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1659 echo "configure:1660: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1660 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1661 cross_compiling=$ac_cv_prog_cxx_cross
1663 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1664 echo "configure:1665: checking whether we are using GNU C++" >&5
1665 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 cat > conftest.C <<EOF
1673 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1680 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1682 if test $ac_cv_prog_gxx = yes; then
1688 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1689 ac_save_CXXFLAGS="$CXXFLAGS"
1691 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1692 echo "configure:1693: checking whether ${CXX-g++} accepts -g" >&5
1693 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 echo 'void f(){}' > conftest.cc
1697 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1698 ac_cv_prog_cxx_g=yes
1706 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1707 if test "$ac_test_CXXFLAGS" = set; then
1708 CXXFLAGS="$ac_save_CXXFLAGS"
1709 elif test $ac_cv_prog_cxx_g = yes; then
1710 if test "$GXX" = yes; then
1716 if test "$GXX" = yes; then
1724 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1725 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1726 echo "configure:1727: checking for FlexLexer.h" >&5
1727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 #include <FlexLexer.h>
1735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1736 { (eval echo configure:1737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1738 if test -z "$ac_err"; then
1740 eval "ac_cv_header_$ac_safe=yes"
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1746 eval "ac_cv_header_$ac_safe=no"
1750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1754 echo "$ac_t""no" 1>&6
1756 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1762 CPPFLAGS="$CPPFLAGS $DEFINES"
1763 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1764 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1773 # urg, egcs: how to check for egcs >= 1.1?
1774 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1775 $CXX --version | grep 'egcs' > /dev/null
1780 echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2
1786 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1787 echo "configure:1788: checking whether explicit instantiation is needed" >&5
1788 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1795 template <class T> struct foo { static int baz; };
1796 template <class T> int foo<T>::baz = 1;
1799 return foo<int>::baz;
1802 if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1804 lily_cv_need_explicit_instantiation=no
1806 echo "configure: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1809 lily_cv_need_explicit_instantiation=yes
1814 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1815 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1816 cat >> confdefs.h <<\EOF
1817 #define NEED_EXPLICIT_INSTANTIATION 1
1823 # ugh, automake: we want (and check for) bison
1824 for ac_prog in 'bison -y' byacc
1826 # Extract the first word of "$ac_prog", so it can be a program name with args.
1827 set dummy $ac_prog; ac_word=$2
1828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $ac_word" >&5
1830 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 if test -n "$YACC"; then
1834 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1838 for ac_dir in $ac_dummy; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f $ac_dir/$ac_word; then
1841 ac_cv_prog_YACC="$ac_prog"
1848 YACC="$ac_cv_prog_YACC"
1849 if test -n "$YACC"; then
1850 echo "$ac_t""$YACC" 1>&6
1852 echo "$ac_t""no" 1>&6
1855 test -n "$YACC" && break
1857 test -n "$YACC" || YACC="yacc"
1859 # ugh, automake: we want (and check for) flex
1861 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1865 ac_cv_prog_lex_root=lex.yy
1867 for ac_prog in bison
1869 # Extract the first word of "$ac_prog", so it can be a program name with args.
1870 set dummy $ac_prog; ac_word=$2
1871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_word" >&5
1873 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 if test -n "$BISON"; then
1877 ac_cv_prog_BISON="$BISON" # Let the user override the test.
1879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1881 for ac_dir in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir=.
1883 if test -f $ac_dir/$ac_word; then
1884 ac_cv_prog_BISON="$ac_prog"
1891 BISON="$ac_cv_prog_BISON"
1892 if test -n "$BISON"; then
1893 echo "$ac_t""$BISON" 1>&6
1895 echo "$ac_t""no" 1>&6
1898 test -n "$BISON" && break
1900 test -n "$BISON" || BISON="error"
1904 # Extract the first word of "$ac_prog", so it can be a program name with args.
1905 set dummy $ac_prog; ac_word=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5
1908 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test -n "$FLEX"; then
1912 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1916 for ac_dir in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word; then
1919 ac_cv_prog_FLEX="$ac_prog"
1926 FLEX="$ac_cv_prog_FLEX"
1927 if test -n "$FLEX"; then
1928 echo "$ac_t""$FLEX" 1>&6
1930 echo "$ac_t""no" 1>&6
1933 test -n "$FLEX" && break
1935 test -n "$FLEX" || FLEX="error"
1938 result="`echo \"$BISON\" | grep echo`"
1939 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1941 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1947 result="`echo \"$FLEX\" | grep echo`"
1948 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1950 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1956 if test $BISON != "error"; then
1957 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
1958 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
1960 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1972 # Extract the first word of "$ac_prog", so it can be a program name with args.
1973 set dummy $ac_prog; ac_word=$2
1974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_word" >&5
1976 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 if test -n "$AR"; then
1980 ac_cv_prog_AR="$AR" # Let the user override the test.
1982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1984 for ac_dir in $ac_dummy; do
1985 test -z "$ac_dir" && ac_dir=.
1986 if test -f $ac_dir/$ac_word; then
1987 ac_cv_prog_AR="$ac_prog"
1995 if test -n "$AR"; then
1996 echo "$ac_t""$AR" 1>&6
1998 echo "$ac_t""no" 1>&6
2001 test -n "$AR" && break
2003 test -n "$AR" || AR="error"
2005 # Extract the first word of "ranlib", so it can be a program name with args.
2006 set dummy ranlib; ac_word=$2
2007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2008 echo "configure:2009: checking for $ac_word" >&5
2009 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 if test -n "$RANLIB"; then
2013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2017 for ac_dir in $ac_dummy; do
2018 test -z "$ac_dir" && ac_dir=.
2019 if test -f $ac_dir/$ac_word; then
2020 ac_cv_prog_RANLIB="ranlib"
2025 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2028 RANLIB="$ac_cv_prog_RANLIB"
2029 if test -n "$RANLIB"; then
2030 echo "$ac_t""$RANLIB" 1>&6
2032 echo "$ac_t""no" 1>&6
2039 # AC_STEPMAKE_LIBTOOL
2045 # Check whether --with-localedir or --without-localedir was given.
2046 if test "${with_localedir+set}" = set; then
2047 withval="$with_localedir"
2048 localedir=$with_localedir
2050 localedir='${prefix}/share/locale'
2054 # Check whether --with-lang or --without-lang was given.
2055 if test "${with_lang+set}" = set; then
2056 withval="$with_lang"
2063 echo $ac_n "checking language""... $ac_c" 1>&6
2064 echo "configure:2065: checking language" >&5
2066 En* | en* | Am* | am* | US* | us*)
2068 NL | nl | Du* | du* | Ned* | ned*)
2075 echo "$ac_t""$lang" 1>&6
2077 if test "$lang" = "unknown" ; then
2079 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2086 DIR_LOCALEDIR=${localedir}
2088 if test "$prefix" = "NONE"; then
2089 presome=${ac_default_prefix}
2091 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2094 cat >> confdefs.h <<EOF
2095 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2099 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2100 echo "configure:2101: checking for gettext in -lintl" >&5
2101 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 ac_save_LIBS="$LIBS"
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* Override any gcc2 internal prototype to avoid an error. */
2114 /* We use char because int might match the return type of a gcc2
2115 builtin and then its argument prototype would still apply. */
2122 if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2124 eval "ac_cv_lib_$ac_lib_var=yes"
2126 echo "configure: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2129 eval "ac_cv_lib_$ac_lib_var=no"
2132 LIBS="$ac_save_LIBS"
2135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2139 cat >> confdefs.h <<EOF
2140 #define $ac_tr_lib 1
2146 echo "$ac_t""no" 1>&6
2149 for ac_func in gettext
2151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2152 echo "configure:2153: checking for $ac_func" >&5
2153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 cat > conftest.$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2159 /* System header to define __stub macros and hopefully few prototypes,
2160 which can conflict with char $ac_func(); below. */
2162 /* Override any gcc2 internal prototype to avoid an error. */
2166 /* We use char because int might match the return type of a gcc2
2167 builtin and then its argument prototype would still apply. */
2172 /* The GNU C library defines this for functions which it implements
2173 to always fail with ENOSYS. Some functions are actually named
2174 something starting with __ and the normal name is an alias. */
2175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2183 if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2185 eval "ac_cv_func_$ac_func=yes"
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2190 eval "ac_cv_func_$ac_func=no"
2195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2196 echo "$ac_t""yes" 1>&6
2197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2198 cat >> confdefs.h <<EOF
2199 #define $ac_tr_func 1
2203 echo "$ac_t""no" 1>&6
2209 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2210 for ac_prog in msgfmt
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213 set dummy $ac_prog; ac_word=$2
2214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2215 echo "configure:2216: checking for $ac_word" >&5
2216 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 if test -n "$MSGFMT"; then
2220 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2224 for ac_dir in $ac_dummy; do
2225 test -z "$ac_dir" && ac_dir=.
2226 if test -f $ac_dir/$ac_word; then
2227 ac_cv_prog_MSGFMT="$ac_prog"
2234 MSGFMT="$ac_cv_prog_MSGFMT"
2235 if test -n "$MSGFMT"; then
2236 echo "$ac_t""$MSGFMT" 1>&6
2238 echo "$ac_t""no" 1>&6
2241 test -n "$MSGFMT" && break
2243 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2245 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2246 echo "configure:2247: checking whether msgfmt accepts -o" >&5
2247 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2248 if test "$msgfmt_output" = ""; then
2249 echo "$ac_t""yes" 1>&6
2252 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2253 echo "$ac_t""no" 1>&6
2255 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2259 if test ! -n "$MSGFMT"; then
2261 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2267 # urg, never know what names these teTeX guys will think up
2271 # Extract the first word of "$ac_prog", so it can be a program name with args.
2272 set dummy $ac_prog; ac_word=$2
2273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_word" >&5
2275 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 if test -n "$METAFONT"; then
2279 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2283 for ac_dir in $ac_dummy; do
2284 test -z "$ac_dir" && ac_dir=.
2285 if test -f $ac_dir/$ac_word; then
2286 ac_cv_prog_METAFONT="$ac_prog"
2293 METAFONT="$ac_cv_prog_METAFONT"
2294 if test -n "$METAFONT"; then
2295 echo "$ac_t""$METAFONT" 1>&6
2297 echo "$ac_t""no" 1>&6
2300 test -n "$METAFONT" && break
2302 test -n "$METAFONT" || METAFONT="no"
2304 if test "x$METAFONT" = "xno"; then
2305 for ac_prog in mfont
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2310 echo "configure:2311: checking for $ac_word" >&5
2311 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 if test -n "$MFONT"; then
2315 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2319 for ac_dir in $ac_dummy; do
2320 test -z "$ac_dir" && ac_dir=.
2321 if test -f $ac_dir/$ac_word; then
2322 ac_cv_prog_MFONT="$ac_prog"
2329 MFONT="$ac_cv_prog_MFONT"
2330 if test -n "$MFONT"; then
2331 echo "$ac_t""$MFONT" 1>&6
2333 echo "$ac_t""no" 1>&6
2336 test -n "$MFONT" && break
2338 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 if test -n "$METAPOST"; then
2353 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2357 for ac_dir in $ac_dummy; do
2358 test -z "$ac_dir" && ac_dir=.
2359 if test -f $ac_dir/$ac_word; then
2360 ac_cv_prog_METAPOST="$ac_prog"
2367 METAPOST="$ac_cv_prog_METAPOST"
2368 if test -n "$METAPOST"; then
2369 echo "$ac_t""$METAPOST" 1>&6
2371 echo "$ac_t""no" 1>&6
2374 test -n "$METAPOST" && break
2376 test -n "$METAPOST" || METAPOST="no"
2378 if test "x$METAPOST" = "xno"; then
2379 for ac_prog in mpost
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_word" >&5
2385 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 if test -n "$MPOST"; then
2389 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2393 for ac_dir in $ac_dummy; do
2394 test -z "$ac_dir" && ac_dir=.
2395 if test -f $ac_dir/$ac_word; then
2396 ac_cv_prog_MPOST="$ac_prog"
2403 MPOST="$ac_cv_prog_MPOST"
2404 if test -n "$MPOST"; then
2405 echo "$ac_t""$MPOST" 1>&6
2407 echo "$ac_t""no" 1>&6
2410 test -n "$MPOST" && break
2412 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2418 for ac_prog in inimf
2420 # Extract the first word of "$ac_prog", so it can be a program name with args.
2421 set dummy $ac_prog; ac_word=$2
2422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_word" >&5
2424 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 if test -n "$INIMETAFONT"; then
2428 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2432 for ac_dir in $ac_dummy; do
2433 test -z "$ac_dir" && ac_dir=.
2434 if test -f $ac_dir/$ac_word; then
2435 ac_cv_prog_INIMETAFONT="$ac_prog"
2442 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2443 if test -n "$INIMETAFONT"; then
2444 echo "$ac_t""$INIMETAFONT" 1>&6
2446 echo "$ac_t""no" 1>&6
2449 test -n "$INIMETAFONT" && break
2451 test -n "$INIMETAFONT" || INIMETAFONT="no"
2453 if test "x$INIMETAFONT" = "xno"; then
2454 for ac_prog in inimfont
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_word" >&5
2460 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 if test -n "$INIMFONT"; then
2464 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2468 for ac_dir in $ac_dummy; do
2469 test -z "$ac_dir" && ac_dir=.
2470 if test -f $ac_dir/$ac_word; then
2471 ac_cv_prog_INIMFONT="$ac_prog"
2478 INIMFONT="$ac_cv_prog_INIMFONT"
2479 if test -n "$INIMFONT"; then
2480 echo "$ac_t""$INIMFONT" 1>&6
2482 echo "$ac_t""no" 1>&6
2485 test -n "$INIMFONT" && break
2487 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2489 INIMETAFONT=$INIMFONT
2492 for ac_prog in inimp
2494 # Extract the first word of "$ac_prog", so it can be a program name with args.
2495 set dummy $ac_prog; ac_word=$2
2496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_word" >&5
2498 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 if test -n "$INIMETAPOST"; then
2502 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2506 for ac_dir in $ac_dummy; do
2507 test -z "$ac_dir" && ac_dir=.
2508 if test -f $ac_dir/$ac_word; then
2509 ac_cv_prog_INIMETAPOST="$ac_prog"
2516 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2517 if test -n "$INIMETAPOST"; then
2518 echo "$ac_t""$INIMETAPOST" 1>&6
2520 echo "$ac_t""no" 1>&6
2523 test -n "$INIMETAPOST" && break
2525 test -n "$INIMETAPOST" || INIMETAPOST="no"
2527 if test "x$INIMETAPOST" = "xno"; then
2528 for ac_prog in inimpost
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 if test -n "$INIMPOST"; then
2538 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2542 for ac_dir in $ac_dummy; do
2543 test -z "$ac_dir" && ac_dir=.
2544 if test -f $ac_dir/$ac_word; then
2545 ac_cv_prog_INIMPOST="$ac_prog"
2552 INIMPOST="$ac_cv_prog_INIMPOST"
2553 if test -n "$INIMPOST"; then
2554 echo "$ac_t""$INIMPOST" 1>&6
2556 echo "$ac_t""no" 1>&6
2559 test -n "$INIMPOST" && break
2561 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2563 INIMETAPOST=$INIMPOST
2566 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2567 echo "configure:2568: checking for working metafont mode" >&5
2568 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2569 for MFMODE in $modelist; do
2570 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2571 if test -f mfput.tfm; then
2577 # For now let people define these in their environments
2579 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2581 if test ${INIMETAPOST} = "inimp" ; then
2582 : ${INIMETAPOST_FLAGS=''}
2584 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2588 echo "$ac_t""$MFMODE" 1>&6
2599 # Check whether --enable-tex-tfmdir or --disable-tex-tfmdir was given.
2600 if test "${enable_tex_tfmdir+set}" = set; then
2601 enableval="$enable_tex_tfmdir"
2608 for ac_prog in kpsewhich
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2613 echo "configure:2614: checking for $ac_word" >&5
2614 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 if test -n "$KPSEWHICH"; then
2618 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2622 for ac_dir in $ac_dummy; do
2623 test -z "$ac_dir" && ac_dir=.
2624 if test -f $ac_dir/$ac_word; then
2625 ac_cv_prog_KPSEWHICH="$ac_prog"
2632 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2633 if test -n "$KPSEWHICH"; then
2634 echo "$ac_t""$KPSEWHICH" 1>&6
2636 echo "$ac_t""no" 1>&6
2639 test -n "$KPSEWHICH" && break
2641 test -n "$KPSEWHICH" || KPSEWHICH="no"
2643 echo $ac_n "checking for TeX TFM directory""... $ac_c" 1>&6
2644 echo "configure:2645: checking for TeX TFM directory" >&5
2645 if test "x$TFMDIR" = xauto ; then
2646 if test "x$TEX_TFMDIR" = "x" ; then
2647 if test "x$KPSEWHICH" != "xno" ; then
2648 CMR10=`kpsewhich tfm cmr10.tfm`
2649 TEX_TFMDIR=`dirname $CMR10`
2652 echo "configure: warning: Please set TEX_TFMDIR (to where cmr10.tfm lives):
2653 TEX_TFMDIR=/usr/local/TeX/lib/tex/fonts ./configure" 1>&2
2659 echo "$ac_t""$TEX_TFMDIR" 1>&6
2664 ## The GUILE_FLAGS macro.
2665 ## First, let's just see if we can find Guile at all.
2666 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2667 echo "configure:2668: checking for Guile" >&5
2668 guile-config link > /dev/null || {
2669 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
2672 GUILE_CFLAGS="`guile-config compile`"
2673 GUILE_LDFLAGS="`guile-config link`"
2676 echo "$ac_t""yes" 1>&6
2678 if guile-config --version 2>&1 | grep -q 'version 1\.012'; then
2680 echo "configure: warning: Guile version 1.3 or better needed" 1>&2
2684 # Extract the first word of "guile", so it can be a program name with args.
2685 set dummy guile; ac_word=$2
2686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2687 echo "configure:2688: checking for $ac_word" >&5
2688 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2693 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2696 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2701 for ac_dir in $ac_dummy; do
2702 test -z "$ac_dir" && ac_dir=.
2703 if test -f $ac_dir/$ac_word; then
2704 ac_cv_path_GUILE="$ac_dir/$ac_word"
2709 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2713 GUILE="$ac_cv_path_GUILE"
2714 if test -n "$GUILE"; then
2715 echo "$ac_t""$GUILE" 1>&6
2717 echo "$ac_t""no" 1>&6
2724 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2725 echo "configure:2726: checking for 8-bit clean memcmp" >&5
2726 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 if test "$cross_compiling" = yes; then
2730 ac_cv_func_memcmp_clean=no
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2736 extern "C" void exit(int);
2741 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2742 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2746 if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2748 ac_cv_func_memcmp_clean=yes
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2753 ac_cv_func_memcmp_clean=no
2760 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2761 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2763 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2764 echo "configure:2765: checking for vprintf" >&5
2765 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 cat > conftest.$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2771 /* System header to define __stub macros and hopefully few prototypes,
2772 which can conflict with char vprintf(); below. */
2774 /* Override any gcc2 internal prototype to avoid an error. */
2778 /* We use char because int might match the return type of a gcc2
2779 builtin and then its argument prototype would still apply. */
2784 /* The GNU C library defines this for functions which it implements
2785 to always fail with ENOSYS. Some functions are actually named
2786 something starting with __ and the normal name is an alias. */
2787 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2797 eval "ac_cv_func_vprintf=yes"
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2802 eval "ac_cv_func_vprintf=no"
2807 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2808 echo "$ac_t""yes" 1>&6
2809 cat >> confdefs.h <<\EOF
2810 #define HAVE_VPRINTF 1
2814 echo "$ac_t""no" 1>&6
2817 if test "$ac_cv_func_vprintf" != yes; then
2818 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2819 echo "configure:2820: checking for _doprnt" >&5
2820 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 /* System header to define __stub macros and hopefully few prototypes,
2827 which can conflict with char _doprnt(); below. */
2829 /* Override any gcc2 internal prototype to avoid an error. */
2833 /* We use char because int might match the return type of a gcc2
2834 builtin and then its argument prototype would still apply. */
2839 /* The GNU C library defines this for functions which it implements
2840 to always fail with ENOSYS. Some functions are actually named
2841 something starting with __ and the normal name is an alias. */
2842 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2850 if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2852 eval "ac_cv_func__doprnt=yes"
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 eval "ac_cv_func__doprnt=no"
2862 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2864 cat >> confdefs.h <<\EOF
2865 #define HAVE_DOPRNT 1
2869 echo "$ac_t""no" 1>&6
2874 for ac_func in memmem snprintf vsnprintf gettext
2876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_func" >&5
2878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2884 /* System header to define __stub macros and hopefully few prototypes,
2885 which can conflict with char $ac_func(); below. */
2887 /* Override any gcc2 internal prototype to avoid an error. */
2891 /* We use char because int might match the return type of a gcc2
2892 builtin and then its argument prototype would still apply. */
2897 /* The GNU C library defines this for functions which it implements
2898 to always fail with ENOSYS. Some functions are actually named
2899 something starting with __ and the normal name is an alias. */
2900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2908 if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2910 eval "ac_cv_func_$ac_func=yes"
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2915 eval "ac_cv_func_$ac_func=no"
2920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2921 echo "$ac_t""yes" 1>&6
2922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2923 cat >> confdefs.h <<EOF
2924 #define $ac_tr_func 1
2928 echo "$ac_t""no" 1>&6
2933 cat >> confdefs.h <<EOF
2934 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2937 cat >> confdefs.h <<EOF
2938 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
2942 for ac_prog in makeinfo
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945 set dummy $ac_prog; ac_word=$2
2946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2947 echo "configure:2948: checking for $ac_word" >&5
2948 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 if test -n "$MAKEINFO"; then
2952 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2956 for ac_dir in $ac_dummy; do
2957 test -z "$ac_dir" && ac_dir=.
2958 if test -f $ac_dir/$ac_word; then
2959 ac_cv_prog_MAKEINFO="$ac_prog"
2966 MAKEINFO="$ac_cv_prog_MAKEINFO"
2967 if test -n "$MAKEINFO"; then
2968 echo "$ac_t""$MAKEINFO" 1>&6
2970 echo "$ac_t""no" 1>&6
2973 test -n "$MAKEINFO" && break
2975 test -n "$MAKEINFO" || MAKEINFO="error"
2977 # Extract the first word of "perl", so it can be a program name with args.
2978 set dummy perl; ac_word=$2
2979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2980 echo "configure:2981: checking for $ac_word" >&5
2981 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2986 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2989 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2994 for ac_dir in $ac_dummy; do
2995 test -z "$ac_dir" && ac_dir=.
2996 if test -f $ac_dir/$ac_word; then
2997 ac_cv_path_PERL="$ac_dir/$ac_word"
3002 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3006 PERL="$ac_cv_path_PERL"
3007 if test -n "$PERL"; then
3008 echo "$ac_t""$PERL" 1>&6
3010 echo "$ac_t""no" 1>&6
3017 cat > confcache <<\EOF
3018 # This file is a shell script that caches the results of configure
3019 # tests run on this system so they can be shared between configure
3020 # scripts and configure runs. It is not useful on other systems.
3021 # If it contains results you don't want to keep, you may remove or edit it.
3023 # By default, configure uses ./config.cache as the cache file,
3024 # creating it if it does not exist already. You can give configure
3025 # the --cache-file=FILE option to use a different cache file; that is
3026 # what configure does when it calls configure scripts in
3027 # subdirectories, so they share the cache.
3028 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3029 # config.status only pays attention to the cache file if you give it the
3030 # --recheck option to rerun configure.
3033 # The following way of writing the cache mishandles newlines in values,
3034 # but we know of no workaround that is simple, portable, and efficient.
3035 # So, don't put newlines in cache variables' values.
3036 # Ultrix sh set writes to stderr and can't be redirected directly,
3037 # and sets the high bit in the cache file unless we assign to the vars.
3039 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3041 # `set' does not quote correctly, so add quotes (double-quote substitution
3042 # turns \\\\ into \\, and sed turns \\ into \).
3044 -e "s/'/'\\\\''/g" \
3045 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3048 # `set' quotes correctly as required by POSIX, so do not add quotes.
3049 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3052 if cmp -s $cache_file confcache; then
3055 if test -w $cache_file; then
3056 echo "updating cache $cache_file"
3057 cat confcache > $cache_file
3059 echo "not updating unwritable cache $cache_file"
3064 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3066 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3067 # Let make expand exec_prefix.
3068 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3070 # Any assignment to VPATH causes Sun make to only execute
3071 # the first set of double-colon rules, so remove it if not needed.
3072 # If there is a colon in the path, we need to keep it.
3073 if test "x$srcdir" = x.; then
3074 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3077 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3079 DEFS=-DHAVE_CONFIG_H
3081 # Without the "./", some shells look in PATH for config.status.
3082 : ${CONFIG_STATUS=./config.status}
3084 echo creating $CONFIG_STATUS
3085 rm -f $CONFIG_STATUS
3086 cat > $CONFIG_STATUS <<EOF
3088 # Generated automatically by configure.
3089 # Run this file to recreate the current configuration.
3090 # This directory was configured as follows,
3091 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3093 # $0 $ac_configure_args
3095 # Compiler output produced by configure, useful for debugging
3096 # configure, is in ./config.log if it exists.
3098 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3101 case "\$ac_option" in
3102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3103 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3104 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3105 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3106 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3108 -help | --help | --hel | --he | --h)
3109 echo "\$ac_cs_usage"; exit 0 ;;
3110 *) echo "\$ac_cs_usage"; exit 1 ;;
3114 ac_given_srcdir=$srcdir
3116 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3118 cat >> $CONFIG_STATUS <<EOF
3120 # Protect against being on the right side of a sed subst in config.status.
3121 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3122 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3126 s%@CFLAGS@%$CFLAGS%g
3127 s%@CPPFLAGS@%$CPPFLAGS%g
3128 s%@CXXFLAGS@%$CXXFLAGS%g
3129 s%@FFLAGS@%$FFLAGS%g
3131 s%@LDFLAGS@%$LDFLAGS%g
3133 s%@exec_prefix@%$exec_prefix%g
3134 s%@prefix@%$prefix%g
3135 s%@program_transform_name@%$program_transform_name%g
3136 s%@bindir@%$bindir%g
3137 s%@sbindir@%$sbindir%g
3138 s%@libexecdir@%$libexecdir%g
3139 s%@datadir@%$datadir%g
3140 s%@sysconfdir@%$sysconfdir%g
3141 s%@sharedstatedir@%$sharedstatedir%g
3142 s%@localstatedir@%$localstatedir%g
3143 s%@libdir@%$libdir%g
3144 s%@includedir@%$includedir%g
3145 s%@oldincludedir@%$oldincludedir%g
3146 s%@infodir@%$infodir%g
3147 s%@mandir@%$mandir%g
3148 s%@builddir@%$builddir%g
3149 s%@stepmake@%$stepmake%g
3150 s%@package@%$package%g
3151 s%@PACKAGE@%$PACKAGE%g
3152 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3153 s%@package_depth@%$package_depth%g
3154 s%@AUTOGENERATE@%$AUTOGENERATE%g
3155 s%@STATE_VECTOR@%$STATE_VECTOR%g
3156 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3158 s%@host_alias@%$host_alias%g
3159 s%@host_cpu@%$host_cpu%g
3160 s%@host_vendor@%$host_vendor%g
3161 s%@host_os@%$host_os%g
3166 s%@PYTHON@%$PYTHON%g
3167 s%@DOTEXE@%$DOTEXE%g
3171 s%@INSTALL@%$INSTALL%g
3172 s%@PATHSEP@%$PATHSEP%g
3173 s%@DIRSEP@%$DIRSEP%g
3174 s%@DIR_DATADIR@%$DIR_DATADIR%g
3175 s%@subdirs@%$subdirs%g
3178 s%@ICFLAGS@%$ICFLAGS%g
3179 s%@ILDFLAGS@%$ILDFLAGS%g
3180 s%@DEFINES@%$DEFINES%g
3181 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3183 s%@CXXCPP@%$CXXCPP%g
3188 s%@RANLIB@%$RANLIB%g
3189 s%@localedir@%$localedir%g
3190 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3191 s%@MSGFMT@%$MSGFMT%g
3192 s%@METAFONT@%$METAFONT%g
3194 s%@METAPOST@%$METAPOST%g
3196 s%@INIMETAFONT@%$INIMETAFONT%g
3197 s%@INIMFONT@%$INIMFONT%g
3198 s%@INIMETAPOST@%$INIMETAPOST%g
3199 s%@INIMPOST@%$INIMPOST%g
3200 s%@MFMODE@%$MFMODE%g
3201 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3202 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3203 s%@KPSEWHICH@%$KPSEWHICH%g
3204 s%@TEX_TFMDIR@%$TEX_TFMDIR%g
3205 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3206 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3208 s%@LIBOBJS@%$LIBOBJS%g
3209 s%@MAKEINFO@%$MAKEINFO%g
3215 cat >> $CONFIG_STATUS <<\EOF
3217 # Split the substitutions into bite-sized pieces for seds with
3218 # small command number limits, like on Digital OSF/1 and HP-UX.
3219 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3220 ac_file=1 # Number of current file.
3221 ac_beg=1 # First line for current file.
3222 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3225 while $ac_more_lines; do
3226 if test $ac_beg -gt 1; then
3227 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3229 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3231 if test ! -s conftest.s$ac_file; then
3233 rm -f conftest.s$ac_file
3235 if test -z "$ac_sed_cmds"; then
3236 ac_sed_cmds="sed -f conftest.s$ac_file"
3238 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3240 ac_file=`expr $ac_file + 1`
3242 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3245 if test -z "$ac_sed_cmds"; then
3250 cat >> $CONFIG_STATUS <<EOF
3252 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3254 cat >> $CONFIG_STATUS <<\EOF
3255 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3258 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3259 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3260 *) ac_file_in="${ac_file}.in" ;;
3263 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3265 # Remove last slash and all that follows it. Not all systems have dirname.
3266 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3267 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3268 # The file is in a subdirectory.
3269 test ! -d "$ac_dir" && mkdir "$ac_dir"
3270 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3271 # A "../" for each directory in $ac_dir_suffix.
3272 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3274 ac_dir_suffix= ac_dots=
3277 case "$ac_given_srcdir" in
3279 if test -z "$ac_dots"; then top_srcdir=.
3280 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3281 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3283 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3284 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3288 echo creating "$ac_file"
3290 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3292 *Makefile*) ac_comsub="1i\\
3293 # $configure_input" ;;
3297 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3299 s%@configure_input@%$configure_input%g
3300 s%@srcdir@%$srcdir%g
3301 s%@top_srcdir@%$top_srcdir%g
3302 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3306 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3307 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3309 # ac_d sets the value in "#define NAME VALUE" lines.
3310 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3311 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3314 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3315 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3316 ac_uB='\([ ]\)%\1#\2define\3'
3319 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3320 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3321 ac_eB='$%\1#\2define\3'
3325 if test "${CONFIG_HEADERS+set}" != set; then
3327 cat >> $CONFIG_STATUS <<EOF
3328 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3330 cat >> $CONFIG_STATUS <<\EOF
3332 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3335 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3336 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3337 *) ac_file_in="${ac_file}.in" ;;
3340 echo creating $ac_file
3342 rm -f conftest.frag conftest.in conftest.out
3343 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3344 cat $ac_file_inputs > conftest.in
3348 # Transform confdefs.h into a sed script conftest.vals that substitutes
3349 # the proper values into config.h.in to produce config.h. And first:
3350 # Protect against being on the right side of a sed subst in config.status.
3351 # Protect against being in an unquoted here document in config.status.
3353 cat > conftest.hdr <<\EOF
3356 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3360 sed -n -f conftest.hdr confdefs.h > conftest.vals
3363 # This sed command replaces #undef with comments. This is necessary, for
3364 # example, in the case of _POSIX_SOURCE, which is predefined and required
3365 # on some systems where configure will not decide to define it.
3366 cat >> conftest.vals <<\EOF
3367 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3370 # Break up conftest.vals because some shells have a limit on
3371 # the size of here documents, and old seds have small limits too.
3376 ac_lines=`grep -c . conftest.vals`
3377 # grep -c gives empty output for an empty file on some AIX systems.
3378 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3379 # Write a limited-size here document to conftest.frag.
3380 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3381 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3383 sed -f conftest.frag conftest.in > conftest.out
3385 mv conftest.out conftest.in
3387 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3389 mv conftest.tail conftest.vals
3393 cat >> $CONFIG_STATUS <<\EOF
3394 rm -f conftest.frag conftest.h
3395 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3396 cat conftest.in >> conftest.h
3398 if cmp -s $ac_file conftest.h 2>/dev/null; then
3399 echo "$ac_file is unchanged"
3402 # Remove last slash and all that follows it. Not all systems have dirname.
3403 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3404 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3405 # The file is in a subdirectory.
3406 test ! -d "$ac_dir" && mkdir "$ac_dir"
3409 mv conftest.h $ac_file
3414 cat >> $CONFIG_STATUS <<EOF
3417 cat >> $CONFIG_STATUS <<\EOF
3421 chmod +x $CONFIG_STATUS
3422 rm -fr confdefs* $ac_clean_files
3423 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3425 if test "$no_recursion" != yes; then
3427 # Remove --cache-file and --srcdir arguments so they do not pile up.
3428 ac_sub_configure_args=
3430 for ac_arg in $ac_configure_args; do
3431 if test -n "$ac_prev"; then
3436 -cache-file | --cache-file | --cache-fil | --cache-fi \
3437 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3438 ac_prev=cache_file ;;
3439 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3440 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3446 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3450 for ac_config_dir in stepmake; do
3452 # Do not complain, so a configure script can configure whichever
3453 # parts of a large source tree are present.
3454 if test ! -d $srcdir/$ac_config_dir; then
3458 echo configuring in $ac_config_dir
3463 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3465 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3473 # A "../" for each directory in /$ac_config_dir.
3474 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3477 .) # No --srcdir option. We are building in place.
3478 ac_sub_srcdir=$srcdir ;;
3479 /*) # Absolute path.
3480 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3482 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3485 # Check for guested configure; otherwise get Cygnus style configure.
3486 if test -f $ac_sub_srcdir/configure; then
3487 ac_sub_configure=$ac_sub_srcdir/configure
3488 elif test -f $ac_sub_srcdir/configure.in; then
3489 ac_sub_configure=$ac_configure
3491 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3495 # The recursion is here.
3496 if test -n "$ac_sub_configure"; then
3498 # Make the cache file name correct relative to the subdirectory.
3499 case "$cache_file" in
3500 /*) ac_sub_cache_file=$cache_file ;;
3502 ac_sub_cache_file="$ac_dots$cache_file" ;;
3505 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3506 # The eval makes quoting arguments work.
3507 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3510 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3519 rm -f $srcdir/GNUmakefile
3520 cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3521 chmod 444 $srcdir/GNUmakefile
3522 if test "$builddir" != "."; then
3524 cp $srcdir/make/srcdir.make.in GNUmakefile
3525 chmod 444 GNUmakefile