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=CONF put settings in config-CONF.make and config-CONF.h;
69 do \`make conf=CONF' to get output in ./out-CONF"
71 --enable-checking set runtime checks (assert calls). Default: on"
73 --enable-debugging compile with debugging info. Default: on"
75 --enable-profiling compile with gprof support. Default: off"
77 --with-localedir=LOCALE use LOCALE as locale dir. Default:
80 --with-lang=LANG use LANG as language to emit messages"
82 --enable-tfm-path=PATH set path of tex directories where tfm files live,
83 esp.: cmr10.tfm. Default: use kpsewhich"
85 --with-kpathsea use kpathsea lib. Default: on"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
108 bindir
='${exec_prefix}/bin'
109 sbindir
='${exec_prefix}/sbin'
110 libexecdir
='${exec_prefix}/libexec'
111 datadir
='${prefix}/share'
112 sysconfdir
='${prefix}/etc'
113 sharedstatedir
='${prefix}/com'
114 localstatedir
='${prefix}/var'
115 libdir
='${exec_prefix}/lib'
116 includedir
='${prefix}/include'
117 oldincludedir
='/usr/include'
118 infodir
='${prefix}/info'
119 mandir
='${prefix}/man'
121 # Initialize some other variables.
124 SHELL
=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
150 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
151 bindir
="$ac_optarg" ;;
153 -build |
--build |
--buil |
--bui |
--bu)
155 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
156 build
="$ac_optarg" ;;
158 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
159 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
160 ac_prev
=cache_file
;;
161 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
162 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
163 cache_file
="$ac_optarg" ;;
165 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
167 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
169 datadir
="$ac_optarg" ;;
171 -disable-* |
--disable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* |
--enable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
194 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
195 |
--exec |
--exe |
--ex)
196 ac_prev
=exec_prefix
;;
197 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
198 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
199 |
--exec=* |
--exe=* |
--ex=*)
200 exec_prefix
="$ac_optarg" ;;
202 -gas |
--gas |
--ga |
--g)
203 # Obsolete; use --with-gas.
206 -help |
--help |
--hel |
--he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host |
--host |
--hos |
--ho)
263 -host=* |
--host=* |
--hos=* |
--ho=*)
266 -includedir |
--includedir |
--includedi |
--included |
--include \
267 |
--includ |
--inclu |
--incl |
--inc)
268 ac_prev
=includedir
;;
269 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
270 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
271 includedir
="$ac_optarg" ;;
273 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
275 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
276 infodir
="$ac_optarg" ;;
278 -libdir |
--libdir |
--libdi |
--libd)
280 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
281 libdir
="$ac_optarg" ;;
283 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
284 |
--libexe |
--libex |
--libe)
285 ac_prev
=libexecdir
;;
286 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
287 |
--libexe=* |
--libex=* |
--libe=*)
288 libexecdir
="$ac_optarg" ;;
290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
291 |
--localstate |
--localstat |
--localsta |
--localst \
292 |
--locals |
--local |
--loca |
--loc |
--lo)
293 ac_prev
=localstatedir
;;
294 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
295 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
296 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
297 localstatedir
="$ac_optarg" ;;
299 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
301 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
302 mandir
="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
312 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
313 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
316 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
317 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
318 |
--oldin |
--oldi |
--old |
--ol |
--o)
319 ac_prev
=oldincludedir
;;
320 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
321 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
322 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
323 oldincludedir
="$ac_optarg" ;;
325 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
327 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
328 prefix
="$ac_optarg" ;;
330 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
331 |
--program-pre |
--program-pr |
--program-p)
332 ac_prev
=program_prefix
;;
333 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
334 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
335 program_prefix
="$ac_optarg" ;;
337 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
338 |
--program-suf |
--program-su |
--program-s)
339 ac_prev
=program_suffix
;;
340 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
341 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
342 program_suffix
="$ac_optarg" ;;
344 -program-transform-name |
--program-transform-name \
345 |
--program-transform-nam |
--program-transform-na \
346 |
--program-transform-n |
--program-transform- \
347 |
--program-transform |
--program-transfor \
348 |
--program-transfo |
--program-transf \
349 |
--program-trans |
--program-tran \
350 |
--progr-tra |
--program-tr |
--program-t)
351 ac_prev
=program_transform_name
;;
352 -program-transform-name=* |
--program-transform-name=* \
353 |
--program-transform-nam=* |
--program-transform-na=* \
354 |
--program-transform-n=* |
--program-transform-=* \
355 |
--program-transform=* |
--program-transfor=* \
356 |
--program-transfo=* |
--program-transf=* \
357 |
--program-trans=* |
--program-tran=* \
358 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
359 program_transform_name
="$ac_optarg" ;;
361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
362 |
-silent |
--silent |
--silen |
--sile |
--sil)
365 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
367 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
369 sbindir
="$ac_optarg" ;;
371 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
372 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
373 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
375 ac_prev
=sharedstatedir
;;
376 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
377 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
378 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
380 sharedstatedir
="$ac_optarg" ;;
382 -site |
--site |
--sit)
384 -site=* |
--site=* |
--sit=*)
387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
390 srcdir
="$ac_optarg" ;;
392 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
393 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
394 ac_prev
=sysconfdir
;;
395 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
396 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
397 sysconfdir
="$ac_optarg" ;;
399 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
401 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
402 target
="$ac_optarg" ;;
404 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
407 -version |
--version |
--versio |
--versi |
--vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* |
--without-*)
425 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
438 |
--x-incl |
--x-inc |
--x-in |
--x-i)
439 ac_prev
=x_includes
;;
440 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
441 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
442 x_includes
="$ac_optarg" ;;
444 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
445 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
446 ac_prev
=x_libraries
;;
447 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
448 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
449 x_libraries
="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE
; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
500 |
--no-cr |
--no-c) ;;
501 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
502 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
503 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest
* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file
=make
/lilypond.lsm.
in
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted
=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted
=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE
; then
554 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file
in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp
='$CPP $CPPFLAGS'
577 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling
=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
592 ac_n
= ac_c
='\c' ac_t
=
598 # Bootstrap StepMake configure
602 FULL_VERSION
=$MAJOR_VERSION.
$MINOR_VERSION.
$PATCH_LEVEL
603 if test x
$MY_PATCH_LEVEL != x
; then
604 FULL_VERSION
=$FULL_VERSION.
$MY_PATCH_LEVEL
607 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
608 PACKAGE
=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
609 package
=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
611 # No versioning on directory names of sub-packages
613 stepmake
=${datadir}/stepmake
615 if test "$prefix" = "NONE"; then
616 presome
=${ac_default_prefix}
618 stepmake
=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
620 # urg, how is this supposed to work?
621 if test "$program_prefix" = "NONE"; then
624 if test "$program_suffix" = "NONE"; then
628 echo $ac_n "checking Package""... $ac_c" 1>&6
629 echo "configure:630: checking Package" >&5
630 if test "x$PACKAGE" = "xSTEPMAKE"; then
631 echo "$ac_t""Stepmake package!" 1>&6
633 echo $ac_n "checking builddir""... $ac_c" 1>&6
634 echo "configure:635: checking builddir" >&5
635 if test "$srcdir" = "."; then
638 absolute_builddir
="`pwd`"
639 package_absolute_builddir
="`dirname $absolute_builddir`"
640 package_srcdir
="`dirname $srcdir`"
641 builddir
="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
643 echo "$ac_t""$builddir" 1>&6
645 (cd stepmake
2>/dev
/null || mkdir stepmake
)
646 (cd stepmake
; rm -f stepmake
; ln -s ..
/$srcdir/stepmake .
)
647 (cd stepmake
; rm -f bin
; ln -s ..
/$srcdir/bin .
)
649 for ac_dir
in bin
$srcdir/bin
; do
650 if test -f $ac_dir/install-sh
; then
652 ac_install_sh
="$ac_aux_dir/install-sh -c"
654 elif test -f $ac_dir/install.sh
; then
656 ac_install_sh
="$ac_aux_dir/install.sh -c"
660 if test -z "$ac_aux_dir"; then
661 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
663 ac_config_guess
=$ac_aux_dir/config.guess
664 ac_config_sub
=$ac_aux_dir/config.sub
665 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
669 echo "$ac_t""$PACKAGE" 1>&6
671 echo $ac_n "checking builddir""... $ac_c" 1>&6
672 echo "configure:673: checking builddir" >&5
673 if test "$srcdir" = "."; then
677 absolute_builddir
="`pwd`"
678 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
679 builddir
="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
682 echo "$ac_t""$builddir" 1>&6
683 if expr "$srcdir" : '/' > /dev
/null
2>&1; then
686 echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
691 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
692 echo "configure:693: checking for stepmake" >&5
693 # Check for installed stepmake
694 if test -d $stepmake; then
695 echo "$ac_t""$stepmake" 1>&6
697 if test "$absolute_srcdir" != "yes"; then
698 stepmake
='$(depth)'/$srcdir/stepmake
700 stepmake
=$srcdir/stepmake
702 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
707 $HOME/usr
/local
/share
/stepmake
/bin\
708 $HOME/usr
/local
/lib
/stepmake
/bin\
709 $HOME/usr
/share
/stepmake
/bin\
710 $HOME/usr
/lib
/stepmake
/bin\
711 /usr
/local
/share
/stepmake
/bin\
712 /usr
/local
/lib
/stepmake
/bin\
713 /usr
/share
/stepmake
/bin\
714 /usr
/lib
/stepmake
/bin\
716 $srcdir/stepmake
/bin\
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 if test -f $ac_dir/install-sh
; then
731 ac_install_sh
="$ac_aux_dir/install-sh -c"
733 elif test -f $ac_dir/install.sh
; then
735 ac_install_sh
="$ac_aux_dir/install.sh -c"
739 if test -z "$ac_aux_dir"; then
740 { echo "configure: error: can not find install-sh or install.sh in \
741 $HOME/usr/local/share/stepmake/bin\
742 $HOME/usr/local/lib/stepmake/bin\
743 $HOME/usr/share/stepmake/bin\
744 $HOME/usr/lib/stepmake/bin\
745 /usr/local/share/stepmake/bin\
746 /usr/local/lib/stepmake/bin\
747 /usr/share/stepmake/bin\
748 /usr/lib/stepmake/bin\
750 $srcdir/stepmake/bin\
752 $HOME/usr/local/share/stepmake/bin\
753 $HOME/usr/local/lib/stepmake/bin\
754 $HOME/usr/share/stepmake/bin\
755 $HOME/usr/lib/stepmake/bin\
756 /usr/local/share/stepmake/bin\
757 /usr/local/lib/stepmake/bin\
758 /usr/share/stepmake/bin\
759 /usr/lib/stepmake/bin\
761 $srcdir/stepmake/bin\
764 ac_config_guess
=$ac_aux_dir/config.guess
765 ac_config_sub
=$ac_aux_dir/config.sub
766 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
775 cat >> confdefs.h
<<EOF
776 #define PACKAGE "${PACKAGE_NAME}"
779 cat >> confdefs.h
<<EOF
780 #define TOPLEVEL_VERSION "${FULL_VERSION}"
784 if test "$package_depth" = "" ; then
787 package_depth
="../$package_depth"
792 AUTOGENERATE
="This file was automatically generated by configure"
796 # Check whether --enable-config or --disable-config was given.
797 if test "${enable_config+set}" = set; then
798 enableval
="$enable_config"
799 CONFIGURATION
=$enableval
803 test -n "$CONFIGURATION" && CONFIGSUFFIX
="-$CONFIGURATION"
804 CONFIGFILE
=config
$CONFIGSUFFIX
808 # Make sure we can run config.sub.
809 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
810 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
813 echo $ac_n "checking host system type""... $ac_c" 1>&6
814 echo "configure:815: checking host system type" >&5
817 case "$host_alias" in
821 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
822 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
824 *) host_alias
=$nonopt ;;
828 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
829 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
830 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
831 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
832 echo "$ac_t""$host" 1>&6
834 for ac_prog
in gmake
make
836 # Extract the first word of "$ac_prog", so it can be a program name with args.
837 set dummy
$ac_prog; ac_word
=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$MAKE"; then
844 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
846 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
848 for ac_dir
in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir
=.
850 if test -f $ac_dir/$ac_word; then
851 ac_cv_prog_MAKE
="$ac_prog"
858 MAKE
="$ac_cv_prog_MAKE"
859 if test -n "$MAKE"; then
860 echo "$ac_t""$MAKE" 1>&6
862 echo "$ac_t""no" 1>&6
865 test -n "$MAKE" && break
867 test -n "$MAKE" || MAKE
="error"
871 # Extract the first word of "$ac_prog", so it can be a program name with args.
872 set dummy
$ac_prog; ac_word
=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 if test -n "$FIND"; then
879 ac_cv_prog_FIND
="$FIND" # Let the user override the test.
881 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
883 for ac_dir
in $ac_dummy; do
884 test -z "$ac_dir" && ac_dir
=.
885 if test -f $ac_dir/$ac_word; then
886 ac_cv_prog_FIND
="$ac_prog"
893 FIND
="$ac_cv_prog_FIND"
894 if test -n "$FIND"; then
895 echo "$ac_t""$FIND" 1>&6
897 echo "$ac_t""no" 1>&6
900 test -n "$FIND" && break
902 test -n "$FIND" || FIND
="error"
908 # Extract the first word of "$ac_prog", so it can be a program name with args.
909 set dummy
$ac_prog; ac_word
=$2
910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
911 echo "configure:912: checking for $ac_word" >&5
912 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
915 if test -n "$TAR"; then
916 ac_cv_prog_TAR
="$TAR" # Let the user override the test.
918 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
920 for ac_dir
in $ac_dummy; do
921 test -z "$ac_dir" && ac_dir
=.
922 if test -f $ac_dir/$ac_word; then
923 ac_cv_prog_TAR
="$ac_prog"
930 TAR
="$ac_cv_prog_TAR"
931 if test -n "$TAR"; then
932 echo "$ac_t""$TAR" 1>&6
934 echo "$ac_t""no" 1>&6
937 test -n "$TAR" && break
939 test -n "$TAR" || TAR
="error"
942 if test "x`uname`" = "xHP-UX"; then
943 # Extract the first word of "bash", so it can be a program name with args.
944 set dummy bash
; ac_word
=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 echo "configure:947: checking for $ac_word" >&5
947 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
952 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
955 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
960 for ac_dir
in $ac_dummy; do
961 test -z "$ac_dir" && ac_dir
=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_path_BASH
="$ac_dir/$ac_word"
968 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="/bin/sh"
972 BASH
="$ac_cv_path_BASH"
973 if test -n "$BASH"; then
974 echo "$ac_t""$BASH" 1>&6
976 echo "$ac_t""no" 1>&6
980 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
983 # Extract the first word of "bash", so it can be a program name with args.
984 set dummy bash
; ac_word
=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
992 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
995 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a dos path.
998 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1000 for ac_dir
in $ac_dummy; do
1001 test -z "$ac_dir" && ac_dir
=.
1002 if test -f $ac_dir/$ac_word; then
1003 ac_cv_path_SHELL
="$ac_dir/$ac_word"
1008 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
="/bin/ksh"
1012 SHELL
="$ac_cv_path_SHELL"
1013 if test -n "$SHELL"; then
1014 echo "$ac_t""$SHELL" 1>&6
1016 echo "$ac_t""no" 1>&6
1020 # Extract the first word of "bash", so it can be a program name with args.
1021 set dummy bash
; ac_word
=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1029 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1032 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
1035 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1037 for ac_dir
in $ac_dummy; do
1038 test -z "$ac_dir" && ac_dir
=.
1039 if test -f $ac_dir/$ac_word; then
1040 ac_cv_path_BASH
="$ac_dir/$ac_word"
1045 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="/bin/sh"
1049 BASH
="$ac_cv_path_BASH"
1050 if test -n "$BASH"; then
1051 echo "$ac_t""$BASH" 1>&6
1053 echo "$ac_t""no" 1>&6
1061 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1062 set dummy
${PYTHON:-python}; ac_word
=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1070 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
1073 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a dos path.
1076 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1078 for ac_dir
in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir
=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_path_PYTHON
="$ac_dir/$ac_word"
1086 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON
="-echo no python"
1090 PYTHON
="$ac_cv_path_PYTHON"
1091 if test -n "$PYTHON"; then
1092 echo "$ac_t""$PYTHON" 1>&6
1094 echo "$ac_t""no" 1>&6
1099 if test $MAKE != "error" ; then
1100 $MAKE -v 2> /dev
/null |
grep GNU
> /dev
/null
1104 echo "configure: warning: Please install *GNU* make" 1>&2
1111 result
="`echo \"$PYTHON\" | grep echo`"
1112 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1114 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1120 if test "x$OSTYPE" = "xcygwin32" ||
test "x$OSTYPE" = "xWindows_NT"; then
1121 LN
=cp # hard link does not work under cygnus-nt
1122 LN_S
='cp -r' # symbolic link does not work for native nt
1130 # cygwin fixes all these things.
1131 # it seems these were used because of dos-style TEXINPUTS and
1132 # MFINPUTS needed for miktex.
1133 # but this breaks parsing of all other cygwin/unix style paths.
1135 # if your (mik)tex breaks, make a:
1136 # /usr/local/bin/tex:
1138 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1142 # /usr/local/bin/mf:
1144 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1146 # this way, you may have buildscripts/out/lilypond-profile
1147 # 'automatically' sourced from /usr/etc/profile.d/ too.
1152 INSTALL
="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1160 INSTALL
="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1168 cat >> confdefs.h
<<EOF
1169 #define DIRSEP '${DIRSEP}'
1172 cat >> confdefs.h
<<EOF
1173 #define PATHSEP '${PATHSEP}'
1180 if test "$datadir" = "\${prefix}/share"; then
1181 datadir
='${prefix}/share/'$package
1183 DIR_DATADIR
=${datadir}
1185 if test "$prefix" = "NONE"; then
1186 presome
=${ac_default_prefix}
1188 DIR_DATADIR
=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1194 cat >> confdefs.h
<<EOF
1195 #define DIR_DATADIR "${DIR_DATADIR}"
1201 # For all packages except the StepMake package itself
1205 # Uncomment the configuration options your package needs.
1207 # -O is necessary to get inlining
1208 CFLAGS
=${CFLAGS:-""}
1209 CXXFLAGS
=${CXXFLAGS:-$CFLAGS}
1210 LDFLAGS
=${LDFLAGS:-""}
1216 # Check whether --enable-checking or --disable-checking was given.
1217 if test "${enable_checking+set}" = set; then
1218 enableval
="$enable_checking"
1219 checking_b
=$enableval
1223 # Check whether --enable-debugging or --disable-debugging was given.
1224 if test "${enable_debugging+set}" = set; then
1225 enableval
="$enable_debugging"
1230 # Check whether --enable-profiling or --disable-profiling was given.
1231 if test "${enable_profiling+set}" = set; then
1232 enableval
="$enable_profiling"
1233 profile_b
=$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"
1252 if test $profile_b = yes; then
1254 OPTIMIZE
="$OPTIMIZE -pg"
1257 if test $debug_b = yes; then
1258 OPTIMIZE
="$OPTIMIZE -g"
1262 # Extract the first word of "gcc", so it can be a program name with args.
1263 set dummy gcc
; ac_word
=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$CC"; then
1270 ac_cv_prog_CC
="$CC" # Let the user override the test.
1272 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1274 for ac_dir
in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir
=.
1276 if test -f $ac_dir/$ac_word; then
1285 if test -n "$CC"; then
1286 echo "$ac_t""$CC" 1>&6
1288 echo "$ac_t""no" 1>&6
1291 if test -z "$CC"; then
1292 # Extract the first word of "cc", so it can be a program name with args.
1293 set dummy cc
; ac_word
=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 if test -n "$CC"; then
1300 ac_cv_prog_CC
="$CC" # Let the user override the test.
1302 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1305 for ac_dir
in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir
=.
1307 if test -f $ac_dir/$ac_word; then
1308 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1309 ac_prog_rejected
=yes
1317 if test $ac_prog_rejected = yes; then
1318 # We found a bogon in the path, so make sure we never use it.
1319 set dummy
$ac_cv_prog_CC
1321 if test $# -gt 0; then
1322 # We chose a different compiler from the bogus one.
1323 # However, it has the same basename, so the bogon will be chosen
1324 # first if we set CC to just the basename; use the full file name.
1326 set dummy
"$ac_dir/$ac_word" "$@"
1334 if test -n "$CC"; then
1335 echo "$ac_t""$CC" 1>&6
1337 echo "$ac_t""no" 1>&6
1340 if test -z "$CC"; then
1341 case "`uname -s`" in
1343 # Extract the first word of "cl", so it can be a program name with args.
1344 set dummy cl
; ac_word
=$2
1345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_word" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 if test -n "$CC"; then
1351 ac_cv_prog_CC
="$CC" # Let the user override the test.
1353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1355 for ac_dir
in $ac_dummy; do
1356 test -z "$ac_dir" && ac_dir
=.
1357 if test -f $ac_dir/$ac_word; then
1366 if test -n "$CC"; then
1367 echo "$ac_t""$CC" 1>&6
1369 echo "$ac_t""no" 1>&6
1374 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1377 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1378 echo "configure:1379: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1382 ac_cpp
='$CPP $CPPFLAGS'
1383 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1384 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1385 cross_compiling
=$ac_cv_prog_cc_cross
1387 cat > conftest.
$ac_ext << EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1394 if { (eval echo configure
:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1395 ac_cv_prog_cc_works
=yes
1396 # If we can't run a trivial program, we are probably using a cross compiler.
1397 if (.
/conftest
; exit) 2>/dev
/null
; then
1398 ac_cv_prog_cc_cross
=no
1400 ac_cv_prog_cc_cross
=yes
1403 echo "configure: failed program was:" >&5
1404 cat conftest.
$ac_ext >&5
1405 ac_cv_prog_cc_works
=no
1409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1410 ac_cpp
='$CPP $CPPFLAGS'
1411 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1412 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1413 cross_compiling
=$ac_cv_prog_cc_cross
1415 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1416 if test $ac_cv_prog_cc_works = no
; then
1417 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1419 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1421 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1422 cross_compiling
=$ac_cv_prog_cc_cross
1424 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether we are using GNU C" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 cat > conftest.c
<<EOF
1434 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1441 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1443 if test $ac_cv_prog_gcc = yes; then
1449 ac_test_CFLAGS
="${CFLAGS+set}"
1450 ac_save_CFLAGS
="$CFLAGS"
1452 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1453 echo "configure:1454: checking whether ${CC-cc} accepts -g" >&5
1454 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 echo 'void f(){}' > conftest.c
1458 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1467 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1468 if test "$ac_test_CFLAGS" = set; then
1469 CFLAGS
="$ac_save_CFLAGS"
1470 elif test $ac_cv_prog_cc_g = yes; then
1471 if test "$GCC" = yes; then
1477 if test "$GCC" = yes; then
1487 CFLAGS
="$CFLAGS $OPTIMIZE"
1488 CPPFLAGS
=${CPPFLAGS:-""}
1490 echo $ac_n "checking for IEEE-conformance compiler flags""... $ac_c" 1>&6
1491 echo "configure:1492: checking for IEEE-conformance compiler flags" >&5
1492 save_cflags
="$CFLAGS"
1495 echo "$ac_t""-mieee" 1>&6
1496 CFLAGS
="-mieee $CFLAGS"
1499 echo "$ac_t""none" 1>&6
1511 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1512 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1513 echo "configure:1514: checking how to run the C preprocessor" >&5
1514 # On Suns, sometimes $CPP names a directory.
1515 if test -n "$CPP" && test -d "$CPP"; then
1518 if test -z "$CPP"; then
1519 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 # This must be in double quotes, not single quotes, because CPP may get
1523 # substituted into the Makefile and "${CC-cc}" will confuse make.
1525 # On the NeXT, cc -E runs the code through the compiler's parser,
1526 # not just through cpp.
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1533 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1534 { (eval echo configure
:1535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1535 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1536 if test -z "$ac_err"; then
1540 echo "configure: failed program was:" >&5
1541 cat conftest.
$ac_ext >&5
1543 CPP
="${CC-cc} -E -traditional-cpp"
1544 cat > conftest.
$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1550 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1551 { (eval echo configure
:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1552 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1553 if test -z "$ac_err"; then
1557 echo "configure: failed program was:" >&5
1558 cat conftest.
$ac_ext >&5
1560 CPP
="${CC-cc} -nologo -E"
1561 cat > conftest.
$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1567 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568 { (eval echo configure
:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1570 if test -z "$ac_err"; then
1574 echo "configure: failed program was:" >&5
1575 cat conftest.
$ac_ext >&5
1584 ac_cv_prog_CPP
="$CPP"
1586 CPP
="$ac_cv_prog_CPP"
1588 ac_cv_prog_CPP
="$CPP"
1590 echo "$ac_t""$CPP" 1>&6
1592 for ac_hdr
in assert.h sys
/stat.h
1594 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1596 echo "configure:1597: checking for $ac_hdr" >&5
1597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 cat > conftest.
$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1605 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1606 { (eval echo configure
:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1607 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1608 if test -z "$ac_err"; then
1610 eval "ac_cv_header_$ac_safe=yes"
1613 echo "configure: failed program was:" >&5
1614 cat conftest.
$ac_ext >&5
1616 eval "ac_cv_header_$ac_safe=no"
1620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1621 echo "$ac_t""yes" 1>&6
1622 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1623 cat >> confdefs.h
<<EOF
1624 #define $ac_tr_hdr 1
1628 echo "$ac_t""no" 1>&6
1632 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1633 echo "configure:1634: checking whether stat file-mode macros are broken" >&5
1634 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 cat > conftest.
$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 #include <sys/types.h>
1641 #include <sys/stat.h>
1643 #if defined(S_ISBLK) && defined(S_IFDIR)
1644 # if S_ISBLK (S_IFDIR)
1649 #if defined(S_ISBLK) && defined(S_IFCHR)
1650 # if S_ISBLK (S_IFCHR)
1655 #if defined(S_ISLNK) && defined(S_IFREG)
1656 # if S_ISLNK (S_IFREG)
1661 #if defined(S_ISSOCK) && defined(S_IFREG)
1662 # if S_ISSOCK (S_IFREG)
1668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1669 egrep "You lose" >/dev
/null
2>&1; then
1671 ac_cv_header_stat_broken
=yes
1674 ac_cv_header_stat_broken
=no
1680 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1681 if test $ac_cv_header_stat_broken = yes; then
1682 cat >> confdefs.h
<<\EOF
1683 #define STAT_MACROS_BROKEN 1
1689 DEFINES
="$DEFINES -DSTRING_UTILS_INLINED"
1690 cat >> confdefs.h
<<\EOF
1691 #define STRINGS_UTILS_INLINED 1
1695 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1696 echo "configure:1697: checking how to run the C++ preprocessor" >&5
1697 if test -z "$CXXCPP"; then
1698 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1703 ac_cpp
='$CXXCPP $CPPFLAGS'
1704 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1705 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1706 cross_compiling
=$ac_cv_prog_cxx_cross
1707 CXXCPP
="${CXX-g++} -E"
1708 cat > conftest.
$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1713 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure
:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1716 if test -z "$ac_err"; then
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1726 ac_cv_prog_CXXCPP
="$CXXCPP"
1728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1729 ac_cpp
='$CXXCPP $CPPFLAGS'
1730 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1731 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1732 cross_compiling
=$ac_cv_prog_cxx_cross
1735 CXXCPP
="$ac_cv_prog_CXXCPP"
1736 echo "$ac_t""$CXXCPP" 1>&6
1740 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1741 ac_cpp
='$CXXCPP $CPPFLAGS'
1742 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1743 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1744 cross_compiling
=$ac_cv_prog_cxx_cross
1746 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1748 # Extract the first word of "$ac_prog", so it can be a program name with args.
1749 set dummy
$ac_prog; ac_word
=$2
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_word" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 if test -n "$CXX"; then
1756 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1760 for ac_dir
in $ac_dummy; do
1761 test -z "$ac_dir" && ac_dir
=.
1762 if test -f $ac_dir/$ac_word; then
1763 ac_cv_prog_CXX
="$ac_prog"
1770 CXX
="$ac_cv_prog_CXX"
1771 if test -n "$CXX"; then
1772 echo "$ac_t""$CXX" 1>&6
1774 echo "$ac_t""no" 1>&6
1777 test -n "$CXX" && break
1779 test -n "$CXX" || CXX
="gcc"
1782 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1783 echo "configure:1784: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1787 ac_cpp
='$CXXCPP $CPPFLAGS'
1788 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1789 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1790 cross_compiling
=$ac_cv_prog_cxx_cross
1792 cat > conftest.
$ac_ext << EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1797 int main(){return(0);}
1799 if { (eval echo configure
:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1800 ac_cv_prog_cxx_works
=yes
1801 # If we can't run a trivial program, we are probably using a cross compiler.
1802 if (.
/conftest
; exit) 2>/dev
/null
; then
1803 ac_cv_prog_cxx_cross
=no
1805 ac_cv_prog_cxx_cross
=yes
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1810 ac_cv_prog_cxx_works
=no
1814 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1815 ac_cpp
='$CXXCPP $CPPFLAGS'
1816 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1817 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1818 cross_compiling
=$ac_cv_prog_cxx_cross
1820 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1821 if test $ac_cv_prog_cxx_works = no
; then
1822 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1824 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1825 echo "configure:1826: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1826 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1827 cross_compiling
=$ac_cv_prog_cxx_cross
1829 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1830 echo "configure:1831: checking whether we are using GNU C++" >&5
1831 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 cat > conftest.C
<<EOF
1839 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1846 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1848 if test $ac_cv_prog_gxx = yes; then
1854 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1855 ac_save_CXXFLAGS
="$CXXFLAGS"
1857 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1858 echo "configure:1859: checking whether ${CXX-g++} accepts -g" >&5
1859 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 echo 'void f(){}' > conftest.cc
1863 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1864 ac_cv_prog_cxx_g
=yes
1872 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1873 if test "$ac_test_CXXFLAGS" = set; then
1874 CXXFLAGS
="$ac_save_CXXFLAGS"
1875 elif test $ac_cv_prog_cxx_g = yes; then
1876 if test "$GXX" = yes; then
1882 if test "$GXX" = yes; then
1890 ac_safe
=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1891 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1892 echo "configure:1893: checking for FlexLexer.h" >&5
1893 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 cat > conftest.
$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1899 #include <FlexLexer.h>
1901 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1902 { (eval echo configure
:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1903 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1904 if test -z "$ac_err"; then
1906 eval "ac_cv_header_$ac_safe=yes"
1909 echo "configure: failed program was:" >&5
1910 cat conftest.
$ac_ext >&5
1912 eval "ac_cv_header_$ac_safe=no"
1916 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1917 echo "$ac_t""yes" 1>&6
1920 echo "$ac_t""no" 1>&6
1922 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1928 CPPFLAGS
="$CPPFLAGS $DEFINES"
1929 CXXFLAGS
="$CXXFLAGS $OPTIMIZE"
1930 LDFLAGS
="$LDFLAGS $EXTRA_LIBES"
1938 echo $ac_n "checking "g
++ version
"""... $ac_c" 1>&6
1939 echo "configure:1940: checking "g
++ version
"" >&5
1940 cxx_version
=`$CXX --version`
1941 echo "$ac_t"""$cxx_version"" 1>&6
1942 # urg, egcs: how to check for egcs >= 1.1?
1943 if expr "$cxx_version" : '.*2\.[89]' > /dev
/null ||
1944 expr "$cxx_version" : '.*egcs' > /dev
/null ||
1945 expr "$cxx_version" : '3\.0' > /dev
/null
1950 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1956 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1957 echo "configure:1958: checking whether explicit instantiation is needed" >&5
1958 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 cat > conftest.
$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1965 template <class T> struct foo { static int baz; };
1966 template <class T> int foo<T>::baz = 1;
1969 return foo<int>::baz;
1972 if { (eval echo configure
:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1974 lily_cv_need_explicit_instantiation
=no
1976 echo "configure: failed program was:" >&5
1977 cat conftest.
$ac_ext >&5
1979 lily_cv_need_explicit_instantiation
=yes
1984 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1985 if test x
"$lily_cv_need_explicit_instantiation"x
= x
"yes"x
; then
1986 cat >> confdefs.h
<<\EOF
1987 #define NEED_EXPLICIT_INSTANTIATION 1
1993 # ugh, automake: we want (and check for) bison
1994 for ac_prog
in 'bison -y' byacc
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy
$ac_prog; ac_word
=$2
1998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_word" >&5
2000 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 if test -n "$YACC"; then
2004 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2006 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2008 for ac_dir
in $ac_dummy; do
2009 test -z "$ac_dir" && ac_dir
=.
2010 if test -f $ac_dir/$ac_word; then
2011 ac_cv_prog_YACC
="$ac_prog"
2018 YACC
="$ac_cv_prog_YACC"
2019 if test -n "$YACC"; then
2020 echo "$ac_t""$YACC" 1>&6
2022 echo "$ac_t""no" 1>&6
2025 test -n "$YACC" && break
2027 test -n "$YACC" || YACC
="yacc"
2029 # ugh, automake: we want (and check for) flex
2031 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2035 ac_cv_prog_lex_root
=lex.yy
2037 for ac_prog
in bison
2039 # Extract the first word of "$ac_prog", so it can be a program name with args.
2040 set dummy
$ac_prog; ac_word
=$2
2041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_word" >&5
2043 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 if test -n "$BISON"; then
2047 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
2049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2051 for ac_dir
in $ac_dummy; do
2052 test -z "$ac_dir" && ac_dir
=.
2053 if test -f $ac_dir/$ac_word; then
2054 ac_cv_prog_BISON
="$ac_prog"
2061 BISON
="$ac_cv_prog_BISON"
2062 if test -n "$BISON"; then
2063 echo "$ac_t""$BISON" 1>&6
2065 echo "$ac_t""no" 1>&6
2068 test -n "$BISON" && break
2070 test -n "$BISON" || BISON
="error"
2074 # Extract the first word of "$ac_prog", so it can be a program name with args.
2075 set dummy
$ac_prog; ac_word
=$2
2076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_word" >&5
2078 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 if test -n "$FLEX"; then
2082 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
2084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2086 for ac_dir
in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir
=.
2088 if test -f $ac_dir/$ac_word; then
2089 ac_cv_prog_FLEX
="$ac_prog"
2096 FLEX
="$ac_cv_prog_FLEX"
2097 if test -n "$FLEX"; then
2098 echo "$ac_t""$FLEX" 1>&6
2100 echo "$ac_t""no" 1>&6
2103 test -n "$FLEX" && break
2105 test -n "$FLEX" || FLEX
="error"
2108 result
="`echo \"$BISON\" | grep echo`"
2109 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2111 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2117 result
="`echo \"$FLEX\" | grep echo`"
2118 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2120 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2126 if test $BISON != "error"; then
2127 bison_version
=`$BISON --version | sed 's/^.*version 1.//g'`
2128 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2130 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2142 # Extract the first word of "$ac_prog", so it can be a program name with args.
2143 set dummy
$ac_prog; ac_word
=$2
2144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_word" >&5
2146 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 if test -n "$AR"; then
2150 ac_cv_prog_AR
="$AR" # Let the user override the test.
2152 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2154 for ac_dir
in $ac_dummy; do
2155 test -z "$ac_dir" && ac_dir
=.
2156 if test -f $ac_dir/$ac_word; then
2157 ac_cv_prog_AR
="$ac_prog"
2165 if test -n "$AR"; then
2166 echo "$ac_t""$AR" 1>&6
2168 echo "$ac_t""no" 1>&6
2171 test -n "$AR" && break
2173 test -n "$AR" || AR
="error"
2175 # Extract the first word of "ranlib", so it can be a program name with args.
2176 set dummy ranlib
; ac_word
=$2
2177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_word" >&5
2179 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 if test -n "$RANLIB"; then
2183 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2187 for ac_dir
in $ac_dummy; do
2188 test -z "$ac_dir" && ac_dir
=.
2189 if test -f $ac_dir/$ac_word; then
2190 ac_cv_prog_RANLIB
="ranlib"
2195 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2198 RANLIB
="$ac_cv_prog_RANLIB"
2199 if test -n "$RANLIB"; then
2200 echo "$ac_t""$RANLIB" 1>&6
2202 echo "$ac_t""no" 1>&6
2214 # Check whether --with-localedir or --without-localedir was given.
2215 if test "${with_localedir+set}" = set; then
2216 withval
="$with_localedir"
2217 localedir
=$with_localedir
2219 localedir
='${prefix}/share/locale'
2223 # Check whether --with-lang or --without-lang was given.
2224 if test "${with_lang+set}" = set; then
2225 withval
="$with_lang"
2232 echo $ac_n "checking language""... $ac_c" 1>&6
2233 echo "configure:2234: checking language" >&5
2235 En
* | en
* | Am
* | am
* | US
* | us
*)
2237 NL |
nl | Du
* | du
* | Ned
* | ned
*)
2244 echo "$ac_t""$lang" 1>&6
2246 if test "$lang" = "unknown" ; then
2248 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2255 DIR_LOCALEDIR
=${localedir}
2257 if test "$prefix" = "NONE"; then
2258 presome
=${ac_default_prefix}
2260 DIR_LOCALEDIR
=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2263 cat >> confdefs.h
<<EOF
2264 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2268 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2269 echo "configure:2270: checking for gettext in -lintl" >&5
2270 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2274 ac_save_LIBS
="$LIBS"
2276 cat > conftest.
$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 /* Override any gcc2 internal prototype to avoid an error. */
2283 /* We use char because int might match the return type of a gcc2
2284 builtin and then its argument prototype would still apply. */
2291 if { (eval echo configure
:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2293 eval "ac_cv_lib_$ac_lib_var=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2298 eval "ac_cv_lib_$ac_lib_var=no"
2301 LIBS
="$ac_save_LIBS"
2304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2308 cat >> confdefs.h
<<EOF
2309 #define $ac_tr_lib 1
2315 echo "$ac_t""no" 1>&6
2318 for ac_func
in gettext
2320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_func" >&5
2322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.
$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 /* System header to define __stub macros and hopefully few prototypes,
2329 which can conflict with char $ac_func(); below. */
2331 /* Override any gcc2 internal prototype to avoid an error. */
2335 /* We use char because int might match the return type of a gcc2
2336 builtin and then its argument prototype would still apply. */
2341 /* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2352 if { (eval echo configure
:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2354 eval "ac_cv_func_$ac_func=yes"
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 eval "ac_cv_func_$ac_func=no"
2364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2367 cat >> confdefs.h
<<EOF
2368 #define $ac_tr_func 1
2372 echo "$ac_t""no" 1>&6
2378 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2379 for ac_prog
in msgfmt
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_MSGFMT'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 if test -n "$MSGFMT"; then
2389 ac_cv_prog_MSGFMT
="$MSGFMT" # 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_MSGFMT
="$ac_prog"
2403 MSGFMT
="$ac_cv_prog_MSGFMT"
2404 if test -n "$MSGFMT"; then
2405 echo "$ac_t""$MSGFMT" 1>&6
2407 echo "$ac_t""no" 1>&6
2410 test -n "$MSGFMT" && break
2412 test -n "$MSGFMT" || MSGFMT
="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2414 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2415 echo "configure:2416: checking whether msgfmt accepts -o" >&5
2416 msgfmt_output
="`msgfmt -o bla 2>&1 | grep usage`"
2417 if test "$msgfmt_output" = ""; then
2418 echo "$ac_t""yes" 1>&6
2421 MSGFMT
="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2422 echo "$ac_t""no" 1>&6
2424 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2428 if test ! -n "$MSGFMT"; then
2430 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2436 # urg, never know what names these teTeX guys will think up
2440 # Extract the first word of "$ac_prog", so it can be a program name with args.
2441 set dummy
$ac_prog; ac_word
=$2
2442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2443 echo "configure:2444: checking for $ac_word" >&5
2444 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 if test -n "$METAFONT"; then
2448 ac_cv_prog_METAFONT
="$METAFONT" # Let the user override the test.
2450 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2452 for ac_dir
in $ac_dummy; do
2453 test -z "$ac_dir" && ac_dir
=.
2454 if test -f $ac_dir/$ac_word; then
2455 ac_cv_prog_METAFONT
="$ac_prog"
2462 METAFONT
="$ac_cv_prog_METAFONT"
2463 if test -n "$METAFONT"; then
2464 echo "$ac_t""$METAFONT" 1>&6
2466 echo "$ac_t""no" 1>&6
2469 test -n "$METAFONT" && break
2471 test -n "$METAFONT" || METAFONT
="no"
2473 if test "x$METAFONT" = "xno"; then
2474 for ac_prog
in mfont
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy
$ac_prog; ac_word
=$2
2478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_word" >&5
2480 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 if test -n "$MFONT"; then
2484 ac_cv_prog_MFONT
="$MFONT" # Let the user override the test.
2486 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2488 for ac_dir
in $ac_dummy; do
2489 test -z "$ac_dir" && ac_dir
=.
2490 if test -f $ac_dir/$ac_word; then
2491 ac_cv_prog_MFONT
="$ac_prog"
2498 MFONT
="$ac_cv_prog_MFONT"
2499 if test -n "$MFONT"; then
2500 echo "$ac_t""$MFONT" 1>&6
2502 echo "$ac_t""no" 1>&6
2505 test -n "$MFONT" && break
2507 test -n "$MFONT" || MFONT
="-echo no mf or mfont"
2514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy
$ac_prog; ac_word
=$2
2516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2517 echo "configure:2518: checking for $ac_word" >&5
2518 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 if test -n "$METAPOST"; then
2522 ac_cv_prog_METAPOST
="$METAPOST" # Let the user override the test.
2524 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2526 for ac_dir
in $ac_dummy; do
2527 test -z "$ac_dir" && ac_dir
=.
2528 if test -f $ac_dir/$ac_word; then
2529 ac_cv_prog_METAPOST
="$ac_prog"
2536 METAPOST
="$ac_cv_prog_METAPOST"
2537 if test -n "$METAPOST"; then
2538 echo "$ac_t""$METAPOST" 1>&6
2540 echo "$ac_t""no" 1>&6
2543 test -n "$METAPOST" && break
2545 test -n "$METAPOST" || METAPOST
="no"
2547 if test "x$METAPOST" = "xno"; then
2548 for ac_prog
in mpost
2550 # Extract the first word of "$ac_prog", so it can be a program name with args.
2551 set dummy
$ac_prog; ac_word
=$2
2552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2553 echo "configure:2554: checking for $ac_word" >&5
2554 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 if test -n "$MPOST"; then
2558 ac_cv_prog_MPOST
="$MPOST" # Let the user override the test.
2560 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2562 for ac_dir
in $ac_dummy; do
2563 test -z "$ac_dir" && ac_dir
=.
2564 if test -f $ac_dir/$ac_word; then
2565 ac_cv_prog_MPOST
="$ac_prog"
2572 MPOST
="$ac_cv_prog_MPOST"
2573 if test -n "$MPOST"; then
2574 echo "$ac_t""$MPOST" 1>&6
2576 echo "$ac_t""no" 1>&6
2579 test -n "$MPOST" && break
2581 test -n "$MPOST" || MPOST
="-echo no mp or mpost"
2587 for ac_prog
in inimf
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy
$ac_prog; ac_word
=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 if test -n "$INIMETAFONT"; then
2597 ac_cv_prog_INIMETAFONT
="$INIMETAFONT" # Let the user override the test.
2599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2601 for ac_dir
in $ac_dummy; do
2602 test -z "$ac_dir" && ac_dir
=.
2603 if test -f $ac_dir/$ac_word; then
2604 ac_cv_prog_INIMETAFONT
="$ac_prog"
2611 INIMETAFONT
="$ac_cv_prog_INIMETAFONT"
2612 if test -n "$INIMETAFONT"; then
2613 echo "$ac_t""$INIMETAFONT" 1>&6
2615 echo "$ac_t""no" 1>&6
2618 test -n "$INIMETAFONT" && break
2620 test -n "$INIMETAFONT" || INIMETAFONT
="no"
2622 if test "x$INIMETAFONT" = "xno"; then
2623 for ac_prog
in inimfont
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy
$ac_prog; ac_word
=$2
2627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_word" >&5
2629 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 if test -n "$INIMFONT"; then
2633 ac_cv_prog_INIMFONT
="$INIMFONT" # Let the user override the test.
2635 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2637 for ac_dir
in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir
=.
2639 if test -f $ac_dir/$ac_word; then
2640 ac_cv_prog_INIMFONT
="$ac_prog"
2647 INIMFONT
="$ac_cv_prog_INIMFONT"
2648 if test -n "$INIMFONT"; then
2649 echo "$ac_t""$INIMFONT" 1>&6
2651 echo "$ac_t""no" 1>&6
2654 test -n "$INIMFONT" && break
2656 test -n "$INIMFONT" || INIMFONT
="-echo no inimf or inimfont"
2658 INIMETAFONT
=$INIMFONT
2661 for ac_prog
in inimp
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy
$ac_prog; ac_word
=$2
2665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2666 echo "configure:2667: checking for $ac_word" >&5
2667 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 if test -n "$INIMETAPOST"; then
2671 ac_cv_prog_INIMETAPOST
="$INIMETAPOST" # Let the user override the test.
2673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2675 for ac_dir
in $ac_dummy; do
2676 test -z "$ac_dir" && ac_dir
=.
2677 if test -f $ac_dir/$ac_word; then
2678 ac_cv_prog_INIMETAPOST
="$ac_prog"
2685 INIMETAPOST
="$ac_cv_prog_INIMETAPOST"
2686 if test -n "$INIMETAPOST"; then
2687 echo "$ac_t""$INIMETAPOST" 1>&6
2689 echo "$ac_t""no" 1>&6
2692 test -n "$INIMETAPOST" && break
2694 test -n "$INIMETAPOST" || INIMETAPOST
="no"
2696 if test "x$INIMETAPOST" = "xno"; then
2697 for ac_prog
in inimpost
2699 # Extract the first word of "$ac_prog", so it can be a program name with args.
2700 set dummy
$ac_prog; ac_word
=$2
2701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_word" >&5
2703 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 if test -n "$INIMPOST"; then
2707 ac_cv_prog_INIMPOST
="$INIMPOST" # Let the user override the test.
2709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2711 for ac_dir
in $ac_dummy; do
2712 test -z "$ac_dir" && ac_dir
=.
2713 if test -f $ac_dir/$ac_word; then
2714 ac_cv_prog_INIMPOST
="$ac_prog"
2721 INIMPOST
="$ac_cv_prog_INIMPOST"
2722 if test -n "$INIMPOST"; then
2723 echo "$ac_t""$INIMPOST" 1>&6
2725 echo "$ac_t""no" 1>&6
2728 test -n "$INIMPOST" && break
2730 test -n "$INIMPOST" || INIMPOST
="-echo no inimp or inimpost"
2732 INIMETAPOST
=$INIMPOST
2735 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2736 echo "configure:2737: checking for working metafont mode" >&5
2737 modelist
='ljfour lj4 lj3 lj2 ljet laserjet'
2738 for MFMODE
in $modelist; do
2739 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev
/null
2>&1
2740 if test -f mfput.tfm
; then
2744 echo "$ac_t""$MFMODE" 1>&6
2746 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2747 echo "configure:2748: checking for mfplain.mp" >&5
2749 # For now let people define these in their environments
2751 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2752 echo "$ac_t""$MFPLAIN_MP" 1>&6
2754 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2755 echo "configure:2756: checking for inimetapost flags" >&5
2756 if test ${INIMETAPOST} = "inimp" ; then
2757 : ${INIMETAPOST_FLAGS=''}
2759 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2761 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2774 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2775 if test "${enable_tfm_path+set}" = set; then
2776 enableval
="$enable_tfm_path"
2783 for ac_prog
in kpsewhich
2785 # Extract the first word of "$ac_prog", so it can be a program name with args.
2786 set dummy
$ac_prog; ac_word
=$2
2787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_word" >&5
2789 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 if test -n "$KPSEWHICH"; then
2793 ac_cv_prog_KPSEWHICH
="$KPSEWHICH" # Let the user override the test.
2795 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2797 for ac_dir
in $ac_dummy; do
2798 test -z "$ac_dir" && ac_dir
=.
2799 if test -f $ac_dir/$ac_word; then
2800 ac_cv_prog_KPSEWHICH
="$ac_prog"
2807 KPSEWHICH
="$ac_cv_prog_KPSEWHICH"
2808 if test -n "$KPSEWHICH"; then
2809 echo "$ac_t""$KPSEWHICH" 1>&6
2811 echo "$ac_t""no" 1>&6
2814 test -n "$KPSEWHICH" && break
2816 test -n "$KPSEWHICH" || KPSEWHICH
="no"
2818 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2819 echo "configure:2820: checking for tfm path" >&5
2821 TFM_FONTS
="cmr msam"
2823 if test "x$tfm_path" = xauto
; then
2824 if test "x$KPSEWHICH" != "xno" ; then
2825 for i
in $TFM_FONTS; do
2826 dir
=`$KPSEWHICH tfm ${i}10.tfm`
2827 TFM_PATH
="$TFM_PATH `dirname $dir`"
2831 echo "configure: warning: Please specify where cmr10.tfm lives:
2832 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2840 TFM_PATH
=`echo $TFM_PATH | tr ':' ' '`
2841 echo "$ac_t""$TFM_PATH" 1>&6
2845 ## First, let's just see if we can find Guile at all.
2846 echo $ac_n "checking "for guile-config
"""... $ac_c" 1>&6
2847 echo "configure:2848: checking "for guile-config
"" >&5
2848 for guile_config
in guile-config
$target-guile-config $build-guile-config; do
2849 echo "$ac_t"""$guile_config"" 1>&6
2850 if ! $guile_config --version > /dev
/null
2>&1 ; then
2851 echo "configure: warning: "cannot execute
$guile_config"" 1>&2
2852 echo $ac_n "checking "if we are cross compiling
"""... $ac_c" 1>&6
2853 echo "configure:2854: checking "if we are cross compiling
"" >&5
2859 if test "$guile_config" = "error"; then
2860 { echo "configure: error: "cannot
find guile-config
; is Guile installed?
"" 1>&2; exit 1; }
2863 echo $ac_n "checking "Guile version
"""... $ac_c" 1>&6
2864 echo "configure:2865: checking "Guile version
"" >&5
2865 need_guile_version
="1.3.4"
2866 need_guile_version_numeric
=100304
2867 guile_version
=`$guile_config --version 2>&1 | awk '{print $NF}'`
2868 guile_version_numeric
=`echo $guile_version | awk -F. '
2869 {if ($3) {last = $3}
2871 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2872 echo "$ac_t"""$guile_version"" 1>&6
2873 if test $guile_version_numeric -lt $need_guile_version_numeric
2876 echo "configure: warning: "Guile version
"$need_guile_version" or newer is needed
"" 1>&2
2880 GUILE_MAJOR_VERSION
=`expr $guile_version : '\([0-9]*\)'`
2881 GUILE_MINOR_VERSION
=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
2883 ## The GUILE_FLAGS macro.
2884 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2885 echo "configure:2886: checking for Guile" >&5
2886 if ! $guile_config link
> /dev
/null
; then
2887 echo "$ac_t"""cannot execute
$guile_config"" 1>&6
2888 { echo "configure: error: "cannot
find guile-config
; is Guile installed?
"" 1>&2; exit 1; }
2891 GUILE_CFLAGS
="`$guile_config compile`"
2892 GUILE_LDFLAGS
="`$guile_config link`"
2895 echo "$ac_t""yes" 1>&6
2897 # Extract the first word of "guile", so it can be a program name with args.
2898 set dummy guile
; ac_word
=$2
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_word" >&5
2901 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_cv_path_GUILE
="$GUILE" # Let the user override the test with a path.
2909 ac_cv_path_GUILE
="$GUILE" # Let the user override the test with a dos path.
2912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2914 for ac_dir
in $ac_dummy; do
2915 test -z "$ac_dir" && ac_dir
=.
2916 if test -f $ac_dir/$ac_word; then
2917 ac_cv_path_GUILE
="$ac_dir/$ac_word"
2922 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE
="error"
2926 GUILE
="$ac_cv_path_GUILE"
2927 if test -n "$GUILE"; then
2928 echo "$ac_t""$GUILE" 1>&6
2930 echo "$ac_t""no" 1>&6
2934 cat >> confdefs.h
<<EOF
2935 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
2938 cat >> confdefs.h
<<EOF
2939 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
2946 # Check whether --with-kpathsea or --without-kpathsea was given.
2947 if test "${with_kpathsea+set}" = set; then
2948 withval
="$with_kpathsea"
2949 kpathsea_b
=$enableval
2953 if test "$kpathsea_b" = "yes"; then
2954 for ac_hdr
in kpathsea
/kpathsea.h
2956 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_hdr" >&5
2959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.
$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2967 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2968 { (eval echo configure
:2969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2969 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2970 if test -z "$ac_err"; then
2972 eval "ac_cv_header_$ac_safe=yes"
2975 echo "configure: failed program was:" >&5
2976 cat conftest.
$ac_ext >&5
2978 eval "ac_cv_header_$ac_safe=no"
2982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2985 cat >> confdefs.h
<<EOF
2986 #define $ac_tr_hdr 1
2990 echo "$ac_t""no" 1>&6
2994 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2995 echo "configure:2996: checking for kpse_find_file in -lkpathsea" >&5
2996 ac_lib_var
=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 ac_save_LIBS
="$LIBS"
3001 LIBS
="-lkpathsea $LIBS"
3002 cat > conftest.
$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005 /* Override any gcc2 internal prototype to avoid an error. */
3009 /* We use char because int might match the return type of a gcc2
3010 builtin and then its argument prototype would still apply. */
3011 char kpse_find_file();
3017 if { (eval echo configure
:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3019 eval "ac_cv_lib_$ac_lib_var=yes"
3021 echo "configure: failed program was:" >&5
3022 cat conftest.
$ac_ext >&5
3024 eval "ac_cv_lib_$ac_lib_var=no"
3027 LIBS
="$ac_save_LIBS"
3030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3032 ac_tr_lib
=HAVE_LIB
`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3033 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3034 cat >> confdefs.h
<<EOF
3035 #define $ac_tr_lib 1
3038 LIBS
="-lkpathsea $LIBS"
3041 echo "$ac_t""no" 1>&6
3044 for ac_func
in kpse_find_file
3046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_func" >&5
3048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.
$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* System header to define __stub macros and hopefully few prototypes,
3055 which can conflict with char $ac_func(); below. */
3057 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3067 /* The GNU C library defines this for functions which it implements
3068 to always fail with ENOSYS. Some functions are actually named
3069 something starting with __ and the normal name is an alias. */
3070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3078 if { (eval echo configure
:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3080 eval "ac_cv_func_$ac_func=yes"
3082 echo "configure: failed program was:" >&5
3083 cat conftest.
$ac_ext >&5
3085 eval "ac_cv_func_$ac_func=no"
3090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3093 cat >> confdefs.h
<<EOF
3094 #define $ac_tr_func 1
3098 echo "$ac_t""no" 1>&6
3099 { echo "configure: error: Cannot find kpathsea functions. You should install kpathsea; see INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform." 1>&2; exit 1; }
3104 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3105 echo "configure:3106: checking whether to use kpathsea" >&5
3106 if test "$kpathsea_b" = yes; then
3107 echo "$ac_t""yes" 1>&6
3110 echo "$ac_t""no" 1>&6
3115 cat >> confdefs.h
<<EOF
3116 #define KPATHSEA $KPATHSEA
3121 for ac_prog
in bibtex2html bib2html
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy
$ac_prog; ac_word
=$2
3125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_word" >&5
3127 if eval "test \"`echo '$''{'ac_cv_prog_BIBTEX2HTML'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 if test -n "$BIBTEX2HTML"; then
3131 ac_cv_prog_BIBTEX2HTML
="$BIBTEX2HTML" # Let the user override the test.
3133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3135 for ac_dir
in $ac_dummy; do
3136 test -z "$ac_dir" && ac_dir
=.
3137 if test -f $ac_dir/$ac_word; then
3138 ac_cv_prog_BIBTEX2HTML
="$ac_prog"
3145 BIBTEX2HTML
="$ac_cv_prog_BIBTEX2HTML"
3146 if test -n "$BIBTEX2HTML"; then
3147 echo "$ac_t""$BIBTEX2HTML" 1>&6
3149 echo "$ac_t""no" 1>&6
3152 test -n "$BIBTEX2HTML" && break
3154 test -n "$BIBTEX2HTML" || BIBTEX2HTML
="error"
3156 if test "$BIBTEX2HTML" = "bib2html"; then
3157 BIBTEX2HTML_FLAGS
='$< $(@)'
3159 BIBTEX2HTML_FLAGS
='-o $(@D)/$(*F) $<'
3166 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3167 echo "configure:3168: checking for 8-bit clean memcmp" >&5
3168 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 if test "$cross_compiling" = yes; then
3172 ac_cv_func_memcmp_clean
=no
3174 cat > conftest.
$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3178 extern "C" void exit(int) throw();
3183 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3184 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3188 if { (eval echo configure
:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3190 ac_cv_func_memcmp_clean
=yes
3192 echo "configure: failed program was:" >&5
3193 cat conftest.
$ac_ext >&5
3195 ac_cv_func_memcmp_clean
=no
3202 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3203 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
3205 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3206 echo "configure:3207: checking for vprintf" >&5
3207 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 cat > conftest.
$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 /* System header to define __stub macros and hopefully few prototypes,
3214 which can conflict with char vprintf(); below. */
3216 /* Override any gcc2 internal prototype to avoid an error. */
3220 /* We use char because int might match the return type of a gcc2
3221 builtin and then its argument prototype would still apply. */
3226 /* The GNU C library defines this for functions which it implements
3227 to always fail with ENOSYS. Some functions are actually named
3228 something starting with __ and the normal name is an alias. */
3229 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3237 if { (eval echo configure
:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3239 eval "ac_cv_func_vprintf=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3244 eval "ac_cv_func_vprintf=no"
3249 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 cat >> confdefs.h
<<\EOF
3252 #define HAVE_VPRINTF 1
3256 echo "$ac_t""no" 1>&6
3259 if test "$ac_cv_func_vprintf" != yes; then
3260 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3261 echo "configure:3262: checking for _doprnt" >&5
3262 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 cat > conftest.
$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 /* System header to define __stub macros and hopefully few prototypes,
3269 which can conflict with char _doprnt(); below. */
3271 /* Override any gcc2 internal prototype to avoid an error. */
3275 /* We use char because int might match the return type of a gcc2
3276 builtin and then its argument prototype would still apply. */
3281 /* The GNU C library defines this for functions which it implements
3282 to always fail with ENOSYS. Some functions are actually named
3283 something starting with __ and the normal name is an alias. */
3284 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3292 if { (eval echo configure
:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3294 eval "ac_cv_func__doprnt=yes"
3296 echo "configure: failed program was:" >&5
3297 cat conftest.
$ac_ext >&5
3299 eval "ac_cv_func__doprnt=no"
3304 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3305 echo "$ac_t""yes" 1>&6
3306 cat >> confdefs.h
<<\EOF
3307 #define HAVE_DOPRNT 1
3311 echo "$ac_t""no" 1>&6
3316 for ac_func
in memmem snprintf vsnprintf
gettext isinf
3318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3319 echo "configure:3320: checking for $ac_func" >&5
3320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3321 echo $ac_n "(cached) $ac_c" 1>&6
3323 cat > conftest.
$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3326 /* System header to define __stub macros and hopefully few prototypes,
3327 which can conflict with char $ac_func(); below. */
3329 /* Override any gcc2 internal prototype to avoid an error. */
3333 /* We use char because int might match the return type of a gcc2
3334 builtin and then its argument prototype would still apply. */
3339 /* The GNU C library defines this for functions which it implements
3340 to always fail with ENOSYS. Some functions are actually named
3341 something starting with __ and the normal name is an alias. */
3342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3350 if { (eval echo configure
:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3352 eval "ac_cv_func_$ac_func=yes"
3354 echo "configure: failed program was:" >&5
3355 cat conftest.
$ac_ext >&5
3357 eval "ac_cv_func_$ac_func=no"
3362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3364 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3365 cat >> confdefs.h
<<EOF
3366 #define $ac_tr_func 1
3370 echo "$ac_t""no" 1>&6
3375 cat >> confdefs.h
<<EOF
3376 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3379 cat >> confdefs.h
<<EOF
3380 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3385 for ac_prog
in makeinfo
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy
$ac_prog; ac_word
=$2
3389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3390 echo "configure:3391: checking for $ac_word" >&5
3391 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 if test -n "$MAKEINFO"; then
3395 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3397 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3399 for ac_dir
in $ac_dummy; do
3400 test -z "$ac_dir" && ac_dir
=.
3401 if test -f $ac_dir/$ac_word; then
3402 ac_cv_prog_MAKEINFO
="$ac_prog"
3409 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3410 if test -n "$MAKEINFO"; then
3411 echo "$ac_t""$MAKEINFO" 1>&6
3413 echo "$ac_t""no" 1>&6
3416 test -n "$MAKEINFO" && break
3418 test -n "$MAKEINFO" || MAKEINFO
="error"
3420 if test "$MAKEINFO" != "error"; then
3421 echo $ac_n "checking whether makeinfo can split html by @node""... $ac_c" 1>&6
3422 echo "configure:3423: checking whether makeinfo can split html by @node" >&5
3424 makeinfo
--html --output=out
/split <<EOF
3426 \input texinfo @c -*-texinfo-*-
3427 @setfilename split.info
3428 @settitle split.info
3431 if test -d out
/split; then
3432 SPLITTING_MAKEINFO
=yes
3433 echo "$ac_t""yes" 1>&6
3436 echo "$ac_t""no" 1>&6
3438 echo "configure: warning: your html documentation will be one large file" 1>&2
3447 # Extract the first word of "perl", so it can be a program name with args.
3448 set dummy perl
; ac_word
=$2
3449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3450 echo "configure:3451: checking for $ac_word" >&5
3451 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3456 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
3459 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
3462 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3464 for ac_dir
in $ac_dummy; do
3465 test -z "$ac_dir" && ac_dir
=.
3466 if test -f $ac_dir/$ac_word; then
3467 ac_cv_path_PERL
="$ac_dir/$ac_word"
3472 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="error"
3476 PERL
="$ac_cv_path_PERL"
3477 if test -n "$PERL"; then
3478 echo "$ac_t""$PERL" 1>&6
3480 echo "$ac_t""no" 1>&6
3486 cat > confcache
<<\EOF
3487 # This file is a shell script that caches the results of configure
3488 # tests run on this system so they can be shared between configure
3489 # scripts and configure runs. It is not useful on other systems.
3490 # If it contains results you don't want to keep, you may remove or edit it.
3492 # By default, configure uses ./config.cache as the cache file,
3493 # creating it if it does not exist already. You can give configure
3494 # the --cache-file=FILE option to use a different cache file; that is
3495 # what configure does when it calls configure scripts in
3496 # subdirectories, so they share the cache.
3497 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3498 # config.status only pays attention to the cache file if you give it the
3499 # --recheck option to rerun configure.
3502 # The following way of writing the cache mishandles newlines in values,
3503 # but we know of no workaround that is simple, portable, and efficient.
3504 # So, don't put newlines in cache variables' values.
3505 # Ultrix sh set writes to stderr and can't be redirected directly,
3506 # and sets the high bit in the cache file unless we assign to the vars.
3508 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3510 # `set' does not quote correctly, so add quotes (double-quote substitution
3511 # turns \\\\ into \\, and sed turns \\ into \).
3513 -e "s/'/'\\\\''/g" \
3514 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3517 # `set' quotes correctly as required by POSIX, so do not add quotes.
3518 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3521 if cmp -s $cache_file confcache
; then
3524 if test -w $cache_file; then
3525 echo "updating cache $cache_file"
3526 cat confcache
> $cache_file
3528 echo "not updating unwritable cache $cache_file"
3533 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3535 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3536 # Let make expand exec_prefix.
3537 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3539 # Any assignment to VPATH causes Sun make to only execute
3540 # the first set of double-colon rules, so remove it if not needed.
3541 # If there is a colon in the path, we need to keep it.
3542 if test "x$srcdir" = x.
; then
3543 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3546 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3548 DEFS
=-DHAVE_CONFIG_H
3550 # Without the "./", some shells look in PATH for config.status.
3551 : ${CONFIG_STATUS=./config.status}
3553 echo creating
$CONFIG_STATUS
3554 rm -f $CONFIG_STATUS
3555 cat > $CONFIG_STATUS <<EOF
3557 # Generated automatically by configure.
3558 # Run this file to recreate the current configuration.
3559 # This directory was configured as follows,
3560 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3562 # $0 $ac_configure_args
3564 # Compiler output produced by configure, useful for debugging
3565 # configure, is in ./config.log if it exists.
3567 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3570 case "\$ac_option" in
3571 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3572 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3573 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3574 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3575 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3577 -help | --help | --hel | --he | --h)
3578 echo "\$ac_cs_usage"; exit 0 ;;
3579 *) echo "\$ac_cs_usage"; exit 1 ;;
3583 ac_given_srcdir=$srcdir
3585 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3587 cat >> $CONFIG_STATUS <<EOF
3589 # Protect against being on the right side of a sed subst in config.status.
3590 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3591 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3595 s%@CFLAGS@%$CFLAGS%g
3596 s%@CPPFLAGS@%$CPPFLAGS%g
3597 s%@CXXFLAGS@%$CXXFLAGS%g
3598 s%@FFLAGS@%$FFLAGS%g
3600 s%@LDFLAGS@%$LDFLAGS%g
3602 s%@exec_prefix@%$exec_prefix%g
3603 s%@prefix@%$prefix%g
3604 s%@program_transform_name@%$program_transform_name%g
3605 s%@bindir@%$bindir%g
3606 s%@sbindir@%$sbindir%g
3607 s%@libexecdir@%$libexecdir%g
3608 s%@datadir@%$datadir%g
3609 s%@sysconfdir@%$sysconfdir%g
3610 s%@sharedstatedir@%$sharedstatedir%g
3611 s%@localstatedir@%$localstatedir%g
3612 s%@libdir@%$libdir%g
3613 s%@includedir@%$includedir%g
3614 s%@oldincludedir@%$oldincludedir%g
3615 s%@infodir@%$infodir%g
3616 s%@mandir@%$mandir%g
3617 s%@builddir@%$builddir%g
3618 s%@stepmake@%$stepmake%g
3619 s%@package@%$package%g
3620 s%@PACKAGE@%$PACKAGE%g
3621 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3622 s%@package_depth@%$package_depth%g
3623 s%@AUTOGENERATE@%$AUTOGENERATE%g
3624 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3626 s%@host_alias@%$host_alias%g
3627 s%@host_cpu@%$host_cpu%g
3628 s%@host_vendor@%$host_vendor%g
3629 s%@host_os@%$host_os%g
3634 s%@PYTHON@%$PYTHON%g
3635 s%@program_prefix@%$program_prefix%g
3636 s%@program_suffix@%$program_suffix%g
3640 s%@INSTALL@%$INSTALL%g
3641 s%@PATHSEP@%$PATHSEP%g
3642 s%@DIRSEP@%$DIRSEP%g
3643 s%@DIR_DATADIR@%$DIR_DATADIR%g
3644 s%@subdirs@%$subdirs%g
3647 s%@cross_compiling@%$cross_compiling%g
3648 s%@ICFLAGS@%$ICFLAGS%g
3649 s%@ILDFLAGS@%$ILDFLAGS%g
3650 s%@DEFINES@%$DEFINES%g
3651 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3654 s%@CXXCPP@%$CXXCPP%g
3659 s%@RANLIB@%$RANLIB%g
3660 s%@localedir@%$localedir%g
3661 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3662 s%@MSGFMT@%$MSGFMT%g
3663 s%@METAFONT@%$METAFONT%g
3665 s%@METAPOST@%$METAPOST%g
3667 s%@INIMETAFONT@%$INIMETAFONT%g
3668 s%@INIMFONT@%$INIMFONT%g
3669 s%@INIMETAPOST@%$INIMETAPOST%g
3670 s%@INIMPOST@%$INIMPOST%g
3671 s%@MFMODE@%$MFMODE%g
3672 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3673 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3674 s%@KPSEWHICH@%$KPSEWHICH%g
3675 s%@TFM_PATH@%$TFM_PATH%g
3676 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3677 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3679 s%@KPATHSEA@%$KPATHSEA%g
3680 s%@BIBTEX2HTML@%$BIBTEX2HTML%g
3681 s%@BIBTEX2HTML_FLAGS@%$BIBTEX2HTML_FLAGS%g
3682 s%@LIBOBJS@%$LIBOBJS%g
3683 s%@MAKEINFO@%$MAKEINFO%g
3684 s%@SPLITTING_MAKEINFO@%$SPLITTING_MAKEINFO%g
3690 cat >> $CONFIG_STATUS <<\EOF
3692 # Split the substitutions into bite-sized pieces for seds with
3693 # small command number limits, like on Digital OSF/1 and HP-UX.
3694 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3695 ac_file
=1 # Number of current file.
3696 ac_beg
=1 # First line for current file.
3697 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3700 while $ac_more_lines; do
3701 if test $ac_beg -gt 1; then
3702 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3704 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3706 if test ! -s conftest.s
$ac_file; then
3708 rm -f conftest.s
$ac_file
3710 if test -z "$ac_sed_cmds"; then
3711 ac_sed_cmds
="sed -f conftest.s$ac_file"
3713 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3715 ac_file
=`expr $ac_file + 1`
3717 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3720 if test -z "$ac_sed_cmds"; then
3725 cat >> $CONFIG_STATUS <<EOF
3727 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3729 cat >> $CONFIG_STATUS <<\EOF
3730 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3731 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3733 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3734 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3735 *) ac_file_in
="${ac_file}.in" ;;
3738 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3740 # Remove last slash and all that follows it. Not all systems have dirname.
3741 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3742 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3743 # The file is in a subdirectory.
3744 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3745 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3746 # A "../" for each directory in $ac_dir_suffix.
3747 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3749 ac_dir_suffix
= ac_dots
=
3752 case "$ac_given_srcdir" in
3754 if test -z "$ac_dots"; then top_srcdir
=.
3755 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3756 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3758 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3759 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3763 echo creating
"$ac_file"
3765 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3767 *Makefile
*) ac_comsub
="1i\\
3768 # $configure_input" ;;
3772 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3774 s%@configure_input@%$configure_input%g
3775 s%@srcdir@%$srcdir%g
3776 s%@top_srcdir@%$top_srcdir%g
3777 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3781 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3782 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3784 # ac_d sets the value in "#define NAME VALUE" lines.
3785 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3786 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3789 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3790 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3791 ac_uB
='\([ ]\)%\1#\2define\3'
3794 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3795 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3796 ac_eB
='$%\1#\2define\3'
3800 if test "${CONFIG_HEADERS+set}" != set; then
3802 cat >> $CONFIG_STATUS <<EOF
3803 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3805 cat >> $CONFIG_STATUS <<\EOF
3807 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3810 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3811 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3812 *) ac_file_in
="${ac_file}.in" ;;
3815 echo creating
$ac_file
3817 rm -f conftest.frag conftest.
in conftest.out
3818 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3819 cat $ac_file_inputs > conftest.
in
3823 # Transform confdefs.h into a sed script conftest.vals that substitutes
3824 # the proper values into config.h.in to produce config.h. And first:
3825 # Protect against being on the right side of a sed subst in config.status.
3826 # Protect against being in an unquoted here document in config.status.
3828 cat > conftest.hdr
<<\EOF
3831 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3835 sed -n -f conftest.hdr confdefs.h > conftest.vals
3838 # This sed command replaces #undef with comments. This is necessary, for
3839 # example, in the case of _POSIX_SOURCE, which is predefined and required
3840 # on some systems where configure will not decide to define it.
3841 cat >> conftest.vals <<\EOF
3842 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3845 # Break up conftest.vals because some shells have a limit on
3846 # the size of here documents, and old seds have small limits too.
3851 ac_lines=`grep -c . conftest.vals
`
3852 # grep -c gives empty output for an empty file on some AIX systems.
3853 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3854 # Write a limited-size here document to conftest.frag.
3855 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3856 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3858 sed -f conftest.frag conftest.in > conftest.out
3860 mv conftest.out conftest.in
3862 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3864 mv conftest.tail conftest.vals
3868 cat >> $CONFIG_STATUS <<\EOF
3869 rm -f conftest.frag conftest.h
3870 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3871 cat conftest.in >> conftest.h
3873 if cmp -s $ac_file conftest.h 2>/dev/null; then
3874 echo "$ac_file is unchanged"
3877 # Remove last slash and all that follows it. Not all systems have dirname.
3878 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3879 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3880 # The file is in a subdirectory.
3881 test ! -d "$ac_dir" && mkdir "$ac_dir"
3884 mv conftest.h $ac_file
3889 cat >> $CONFIG_STATUS <<EOF
3892 cat >> $CONFIG_STATUS <<\EOF
3896 chmod +x $CONFIG_STATUS
3897 rm -fr confdefs* $ac_clean_files
3898 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3900 if test "$no_recursion" != yes; then
3902 # Remove --cache-file and --srcdir arguments so they do not pile up.
3903 ac_sub_configure_args=
3905 for ac_arg in $ac_configure_args; do
3906 if test -n "$ac_prev"; then
3911 -cache-file | --cache-file | --cache-fil | --cache-fi \
3912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3913 ac_prev=cache_file ;;
3914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3917 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3919 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3921 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3925 for ac_config_dir in stepmake; do
3927 # Do not complain, so a configure script can configure whichever
3928 # parts of a large source tree are present.
3929 if test ! -d $srcdir/$ac_config_dir; then
3933 echo configuring in $ac_config_dir
3938 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3940 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3948 # A "../" for each directory in /$ac_config_dir.
3949 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3952 .) # No --srcdir option. We are building in place.
3953 ac_sub_srcdir=$srcdir ;;
3954 /*) # Absolute path.
3955 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3957 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3960 # Check for guested configure; otherwise get Cygnus style configure.
3961 if test -f $ac_sub_srcdir/configure; then
3962 ac_sub_configure=$ac_sub_srcdir/configure
3963 elif test -f $ac_sub_srcdir/configure.in; then
3964 ac_sub_configure=$ac_configure
3966 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3970 # The recursion is here.
3971 if test -n "$ac_sub_configure"; then
3973 # Make the cache file name correct relative to the subdirectory.
3974 case "$cache_file" in
3975 /*) ac_sub_cache_file=$cache_file ;;
3977 ac_sub_cache_file="$ac_dots$cache_file" ;;
3980 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3981 # The eval makes quoting arguments work.
3982 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3985 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3994 # regular in-place build
3995 # test for srcdir_build = yes ?
3996 if test "$builddir" = "."; then
3997 rm -f $srcdir/GNUmakefile
3998 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
3999 chmod 444 $srcdir/GNUmakefile
4000 else # --srcdir build
4002 cp $srcdir/make/srcdir.make.in GNUmakefile
4003 chmod 444 GNUmakefile
4007 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
4012 make$mc all to build LilyPond
4013 make$mc install to install LilyPond
4014 make$mc help to see all possible targets
4016 Do not worry if ./Documentation or ./mutopia should not build.