4 --with-gtkmm-prefix=PREFIX
5 Prefix where GTK-- is installed (optional)"
6 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
7 if test "${with_gtkmm_prefix+set}" = set; then
8 withval
="$with_gtkmm_prefix"
9 gtkmm_config_prefix
="$withval"
11 gtkmm_config_prefix
=""
15 --with-gtkmm-exec-prefix=PREFIX
16 Exec prefix where GTK-- is installed (optional)"
17 # Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given.
18 if test "${with_gtkmm_exec_prefix+set}" = set; then
19 withval
="$with_gtkmm_exec_prefix"
20 gtkmm_config_exec_prefix
="$withval"
22 gtkmm_config_exec_prefix
=""
26 --disable-gtkmmtest Do not try to compile and run a test GTK-- program"
27 # Check whether --enable-gtkmmtest or --disable-gtkmmtest was given.
28 if test "${enable_gtkmmtest+set}" = set; then
29 enableval
="$enable_gtkmmtest"
36 if test x
$gtkmm_config_exec_prefix != x
; then
37 gtkmm_config_args
="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
38 if test x
${GTKMM_CONFIG+set} != xset
; then
39 GTKMM_CONFIG
=$gtkmm_config_exec_prefix/bin
/gtkmm-config
42 if test x
$gtkmm_config_prefix != x
; then
43 gtkmm_config_args
="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
44 if test x
${GTKMM_CONFIG+set} != xset
; then
45 GTKMM_CONFIG
=$gtkmm_config_prefix/bin
/gtkmm-config
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt 98-08-21 (adapted from Jan Nieuwenhuizen's code)
56 # Guess values for system-dependent variables and create Makefiles.
57 # Generated automatically using autoconf version 2.13
58 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 # This configure script is free software; the Free Software Foundation
61 # gives unlimited permission to copy, distribute and modify it.
65 ac_default_prefix
=/usr
/local
66 # Any additions from configure.in:
68 enable-config=FILE put configure settings in config-FILE.make"
70 enable-checking set runtime checks (assert calls). Default: on"
72 enable-optimise use maximal speed optimisations. Default: off"
74 enable-profiling compile with gprof support. Default: off"
76 enable-debugging set debug info. Default: on"
78 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
80 enable-printing turn on debug printing. Default: off"
82 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
84 with-lang=LANG use LANG as language to emit messages"
86 enable-tfm-path=PATH set path of tex directories where tfm files live, esp.: cmr10.tfm (default: use kpsewhich)"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file
=.
/config.cache
101 program_transform_name
=s
,x
,x
,
109 bindir
='${exec_prefix}/bin'
110 sbindir
='${exec_prefix}/sbin'
111 libexecdir
='${exec_prefix}/libexec'
112 datadir
='${prefix}/share'
113 sysconfdir
='${prefix}/etc'
114 sharedstatedir
='${prefix}/com'
115 localstatedir
='${prefix}/var'
116 libdir
='${exec_prefix}/lib'
117 includedir
='${prefix}/include'
118 oldincludedir
='/usr/include'
119 infodir
='${prefix}/info'
120 mandir
='${prefix}/man'
122 # Initialize some other variables.
125 SHELL
=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
151 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
152 bindir
="$ac_optarg" ;;
154 -build |
--build |
--buil |
--bui |
--bu)
156 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
157 build
="$ac_optarg" ;;
159 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
160 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
161 ac_prev
=cache_file
;;
162 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
163 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
164 cache_file
="$ac_optarg" ;;
166 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
168 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
170 datadir
="$ac_optarg" ;;
172 -disable-* |
--disable-*)
173 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* |
--enable-*)
182 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
195 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
196 |
--exec |
--exe |
--ex)
197 ac_prev
=exec_prefix
;;
198 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
199 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
200 |
--exec=* |
--exe=* |
--ex=*)
201 exec_prefix
="$ac_optarg" ;;
203 -gas |
--gas |
--ga |
--g)
204 # Obsolete; use --with-gas.
207 -help |
--help |
--hel |
--he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host |
--host |
--hos |
--ho)
264 -host=* |
--host=* |
--hos=* |
--ho=*)
267 -includedir |
--includedir |
--includedi |
--included |
--include \
268 |
--includ |
--inclu |
--incl |
--inc)
269 ac_prev
=includedir
;;
270 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
271 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
272 includedir
="$ac_optarg" ;;
274 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
276 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
277 infodir
="$ac_optarg" ;;
279 -libdir |
--libdir |
--libdi |
--libd)
281 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
282 libdir
="$ac_optarg" ;;
284 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
285 |
--libexe |
--libex |
--libe)
286 ac_prev
=libexecdir
;;
287 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
288 |
--libexe=* |
--libex=* |
--libe=*)
289 libexecdir
="$ac_optarg" ;;
291 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
292 |
--localstate |
--localstat |
--localsta |
--localst \
293 |
--locals |
--local |
--loca |
--loc |
--lo)
294 ac_prev
=localstatedir
;;
295 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
296 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
297 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
298 localstatedir
="$ac_optarg" ;;
300 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
302 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
303 mandir
="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
313 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
314 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
317 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
318 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
319 |
--oldin |
--oldi |
--old |
--ol |
--o)
320 ac_prev
=oldincludedir
;;
321 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
322 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
323 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
324 oldincludedir
="$ac_optarg" ;;
326 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
328 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
329 prefix
="$ac_optarg" ;;
331 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
332 |
--program-pre |
--program-pr |
--program-p)
333 ac_prev
=program_prefix
;;
334 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
335 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
336 program_prefix
="$ac_optarg" ;;
338 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
339 |
--program-suf |
--program-su |
--program-s)
340 ac_prev
=program_suffix
;;
341 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
342 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
343 program_suffix
="$ac_optarg" ;;
345 -program-transform-name |
--program-transform-name \
346 |
--program-transform-nam |
--program-transform-na \
347 |
--program-transform-n |
--program-transform- \
348 |
--program-transform |
--program-transfor \
349 |
--program-transfo |
--program-transf \
350 |
--program-trans |
--program-tran \
351 |
--progr-tra |
--program-tr |
--program-t)
352 ac_prev
=program_transform_name
;;
353 -program-transform-name=* |
--program-transform-name=* \
354 |
--program-transform-nam=* |
--program-transform-na=* \
355 |
--program-transform-n=* |
--program-transform-=* \
356 |
--program-transform=* |
--program-transfor=* \
357 |
--program-transfo=* |
--program-transf=* \
358 |
--program-trans=* |
--program-tran=* \
359 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
360 program_transform_name
="$ac_optarg" ;;
362 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
363 |
-silent |
--silent |
--silen |
--sile |
--sil)
366 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
368 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
370 sbindir
="$ac_optarg" ;;
372 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
373 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
374 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
376 ac_prev
=sharedstatedir
;;
377 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
378 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
379 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
381 sharedstatedir
="$ac_optarg" ;;
383 -site |
--site |
--sit)
385 -site=* |
--site=* |
--sit=*)
388 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
390 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
391 srcdir
="$ac_optarg" ;;
393 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
394 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
395 ac_prev
=sysconfdir
;;
396 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
397 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
398 sysconfdir
="$ac_optarg" ;;
400 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
402 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
403 target
="$ac_optarg" ;;
405 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
408 -version |
--version |
--versio |
--versi |
--vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* |
--without-*)
426 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package
=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
439 |
--x-incl |
--x-inc |
--x-in |
--x-i)
440 ac_prev
=x_includes
;;
441 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
442 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
443 x_includes
="$ac_optarg" ;;
445 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
446 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
447 ac_prev
=x_libraries
;;
448 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
449 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
450 x_libraries
="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE
; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
501 |
--no-cr |
--no-c) ;;
502 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
503 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
504 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest
* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file
=make
/lilypond.lsm.
in
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted
=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted
=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE
; then
555 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file
in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp
='$CPP $CPPFLAGS'
578 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling
=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
593 ac_n
= ac_c
='\c' ac_t
=
599 # Bootstrap StepMake configure
603 FULL_VERSION
=$MAJOR_VERSION.
$MINOR_VERSION.
$PATCH_LEVEL
604 if test x
$MY_PATCH_LEVEL != x
; then
605 FULL_VERSION
=$FULL_VERSION.
$MY_PATCH_LEVEL
608 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
609 PACKAGE
=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
610 package
=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
612 # No versioning on directory names of sub-packages
614 stepmake
=${datadir}/stepmake
616 if test "$prefix" = "NONE"; then
617 presome
=${ac_default_prefix}
619 stepmake
=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
621 # urg, how is this supposed to work?
622 if test "$program_prefix" = "NONE"; then
625 if test "$program_suffix" = "NONE"; then
629 echo $ac_n "checking Package""... $ac_c" 1>&6
630 echo "configure:631: checking Package" >&5
631 if test "x$PACKAGE" = "xSTEPMAKE"; then
632 echo "$ac_t""Stepmake package!" 1>&6
634 #if test "x$builddir" != "x"; then
635 # builddir="../$builddir"
639 if test "$srcdir" != "."; then
640 absolute_builddir
="`pwd`"
641 package_absolute_builddir
="`dirname $absolute_builddir`"
642 package_srcdir
="`dirname $srcdir`"
643 builddir
="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
648 (cd stepmake
2>/dev
/null || mkdir stepmake
)
649 (cd stepmake
; rm -f stepmake
; ln -s ..
/$srcdir/stepmake .
)
650 (cd stepmake
; rm -f bin
; ln -s ..
/$srcdir/bin .
)
652 for ac_dir
in bin
$srcdir/bin
; do
653 if test -f $ac_dir/install-sh
; then
655 ac_install_sh
="$ac_aux_dir/install-sh -c"
657 elif test -f $ac_dir/install.sh
; then
659 ac_install_sh
="$ac_aux_dir/install.sh -c"
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
666 ac_config_guess
=$ac_aux_dir/config.guess
667 ac_config_sub
=$ac_aux_dir/config.sub
668 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
672 echo "$ac_t""$PACKAGE" 1>&6
674 if test "$srcdir" != "."; then
675 absolute_builddir
="`pwd`"
676 builddir
="`dirname $srcdir`/`basename $absolute_builddir`"
681 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
682 echo "configure:683: checking for stepmake" >&5
683 # Check for installed stepmake
684 if test -d $stepmake; then
685 echo "$ac_t""$stepmake" 1>&6
687 stepmake
='$(depth)'/$srcdir/stepmake
688 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
692 $HOME/usr
/local
/share
/stepmake
/bin\
693 $HOME/usr
/local
/lib
/stepmake
/bin\
694 $HOME/usr
/share
/stepmake
/bin\
695 $HOME/usr
/lib
/stepmake
/bin\
696 /usr
/local
/share
/stepmake
/bin\
697 /usr
/local
/lib
/stepmake
/bin\
698 /usr
/share
/stepmake
/bin\
699 /usr
/lib
/stepmake
/bin\
701 $srcdir/stepmake
/bin\
703 $HOME/usr
/local
/share
/stepmake
/bin\
704 $HOME/usr
/local
/lib
/stepmake
/bin\
705 $HOME/usr
/share
/stepmake
/bin\
706 $HOME/usr
/lib
/stepmake
/bin\
707 /usr
/local
/share
/stepmake
/bin\
708 /usr
/local
/lib
/stepmake
/bin\
709 /usr
/share
/stepmake
/bin\
710 /usr
/lib
/stepmake
/bin\
712 $srcdir/stepmake
/bin\
714 if test -f $ac_dir/install-sh
; then
716 ac_install_sh
="$ac_aux_dir/install-sh -c"
718 elif test -f $ac_dir/install.sh
; then
720 ac_install_sh
="$ac_aux_dir/install.sh -c"
724 if test -z "$ac_aux_dir"; then
725 { echo "configure: error: can not find install-sh or install.sh in \
726 $HOME/usr/local/share/stepmake/bin\
727 $HOME/usr/local/lib/stepmake/bin\
728 $HOME/usr/share/stepmake/bin\
729 $HOME/usr/lib/stepmake/bin\
730 /usr/local/share/stepmake/bin\
731 /usr/local/lib/stepmake/bin\
732 /usr/share/stepmake/bin\
733 /usr/lib/stepmake/bin\
735 $srcdir/stepmake/bin\
737 $HOME/usr/local/share/stepmake/bin\
738 $HOME/usr/local/lib/stepmake/bin\
739 $HOME/usr/share/stepmake/bin\
740 $HOME/usr/lib/stepmake/bin\
741 /usr/local/share/stepmake/bin\
742 /usr/local/lib/stepmake/bin\
743 /usr/share/stepmake/bin\
744 /usr/lib/stepmake/bin\
746 $srcdir/stepmake/bin\
749 ac_config_guess
=$ac_aux_dir/config.guess
750 ac_config_sub
=$ac_aux_dir/config.sub
751 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
760 cat >> confdefs.h
<<EOF
761 #define PACKAGE "${PACKAGE_NAME}"
764 cat >> confdefs.h
<<EOF
765 #define TOPLEVEL_VERSION "${FULL_VERSION}"
769 if test "$package_depth" = "" ; then
772 package_depth
="../$package_depth"
777 AUTOGENERATE
="This file was automatically generated by configure"
780 STATE_VECTOR
=`ls make/STATE-VECTOR 2>/dev/null`
781 if test "x$STATE_VECTOR" != "x"; then
782 STATE_VECTOR
="\$(depth)/$STATE_VECTOR"
787 # Check whether --enable-config or --disable-config was given.
788 if test "${enable_config+set}" = set; then
789 enableval
="$enable_config"
790 CONFIGSUFFIX
=-$enableval
794 CONFIGFILE
=config
$CONFIGSUFFIX
798 # Make sure we can run config.sub.
799 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
800 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
803 echo $ac_n "checking host system type""... $ac_c" 1>&6
804 echo "configure:805: checking host system type" >&5
807 case "$host_alias" in
811 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
812 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
814 *) host_alias
=$nonopt ;;
818 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
819 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
820 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
821 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
822 echo "$ac_t""$host" 1>&6
824 for ac_prog
in gmake
make
826 # Extract the first word of "$ac_prog", so it can be a program name with args.
827 set dummy
$ac_prog; ac_word
=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 if test -n "$MAKE"; then
834 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
838 for ac_dir
in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir
=.
840 if test -f $ac_dir/$ac_word; then
841 ac_cv_prog_MAKE
="$ac_prog"
848 MAKE
="$ac_cv_prog_MAKE"
849 if test -n "$MAKE"; then
850 echo "$ac_t""$MAKE" 1>&6
852 echo "$ac_t""no" 1>&6
855 test -n "$MAKE" && break
857 test -n "$MAKE" || MAKE
="error"
861 # Extract the first word of "$ac_prog", so it can be a program name with args.
862 set dummy
$ac_prog; ac_word
=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 if test -n "$FIND"; then
869 ac_cv_prog_FIND
="$FIND" # Let the user override the test.
871 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
873 for ac_dir
in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir
=.
875 if test -f $ac_dir/$ac_word; then
876 ac_cv_prog_FIND
="$ac_prog"
883 FIND
="$ac_cv_prog_FIND"
884 if test -n "$FIND"; then
885 echo "$ac_t""$FIND" 1>&6
887 echo "$ac_t""no" 1>&6
890 test -n "$FIND" && break
892 test -n "$FIND" || FIND
="error"
898 # Extract the first word of "$ac_prog", so it can be a program name with args.
899 set dummy
$ac_prog; ac_word
=$2
900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
901 echo "configure:902: checking for $ac_word" >&5
902 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 if test -n "$TAR"; then
906 ac_cv_prog_TAR
="$TAR" # Let the user override the test.
908 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
910 for ac_dir
in $ac_dummy; do
911 test -z "$ac_dir" && ac_dir
=.
912 if test -f $ac_dir/$ac_word; then
913 ac_cv_prog_TAR
="$ac_prog"
920 TAR
="$ac_cv_prog_TAR"
921 if test -n "$TAR"; then
922 echo "$ac_t""$TAR" 1>&6
924 echo "$ac_t""no" 1>&6
927 test -n "$TAR" && break
929 test -n "$TAR" || TAR
="error"
932 if test "x`uname`" = "xHP-UX"; then
933 # Extract the first word of "bash", so it can be a program name with args.
934 set dummy bash
; ac_word
=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
942 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
945 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
950 for ac_dir
in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir
=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_path_BASH
="$ac_dir/$ac_word"
958 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="/bin/sh"
962 BASH
="$ac_cv_path_BASH"
963 if test -n "$BASH"; then
964 echo "$ac_t""$BASH" 1>&6
966 echo "$ac_t""no" 1>&6
970 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
973 # Extract the first word of "bash", so it can be a program name with args.
974 set dummy bash
; ac_word
=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
982 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
985 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a dos path.
988 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
990 for ac_dir
in $ac_dummy; do
991 test -z "$ac_dir" && ac_dir
=.
992 if test -f $ac_dir/$ac_word; then
993 ac_cv_path_SHELL
="$ac_dir/$ac_word"
998 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
="/bin/ksh"
1002 SHELL
="$ac_cv_path_SHELL"
1003 if test -n "$SHELL"; then
1004 echo "$ac_t""$SHELL" 1>&6
1006 echo "$ac_t""no" 1>&6
1010 # Extract the first word of "bash", so it can be a program name with args.
1011 set dummy bash
; ac_word
=$2
1012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013 echo "configure:1014: checking for $ac_word" >&5
1014 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1019 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1022 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
1025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1027 for ac_dir
in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir
=.
1029 if test -f $ac_dir/$ac_word; then
1030 ac_cv_path_BASH
="$ac_dir/$ac_word"
1035 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="/bin/sh"
1039 BASH
="$ac_cv_path_BASH"
1040 if test -n "$BASH"; then
1041 echo "$ac_t""$BASH" 1>&6
1043 echo "$ac_t""no" 1>&6
1051 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1052 set dummy
${PYTHON:-python}; ac_word
=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1060 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
1063 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a dos path.
1066 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1068 for ac_dir
in $ac_dummy; do
1069 test -z "$ac_dir" && ac_dir
=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_path_PYTHON
="$ac_dir/$ac_word"
1076 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON
="-echo no python"
1080 PYTHON
="$ac_cv_path_PYTHON"
1081 if test -n "$PYTHON"; then
1082 echo "$ac_t""$PYTHON" 1>&6
1084 echo "$ac_t""no" 1>&6
1089 if test $MAKE != "error" ; then
1090 $MAKE -v 2> /dev
/null |
grep GNU
> /dev
/null
1094 echo "configure: warning: Please install *GNU* make" 1>&2
1101 result
="`echo \"$PYTHON\" | grep echo`"
1102 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1104 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1110 if test "x$OSTYPE" = "xcygwin32" ||
test "x$OSTYPE" = "xWindows_NT"; then
1111 LN
=cp # hard link does not work under cygnus-nt
1112 LN_S
='cp -r' # symbolic link does not work for native nt
1119 # cygwin fixes all these things.
1120 # it seems these were used because of dos-style TEXINPUTS and
1121 # MFINPUTS needed for miktex.
1122 # but this breaks parsing of all other cygwin/unix style paths.
1124 # if your (mik)tex breaks, make a:
1125 # /usr/local/bin/tex:
1127 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1131 # /usr/local/bin/mf:
1133 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1135 # this way, you may have buildscripts/out/lilypond-profile
1136 # 'automatically' sourced from /usr/etc/profile.d/ too.
1140 INSTALL
="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1147 INSTALL
="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1155 cat >> confdefs.h
<<EOF
1156 #define DIRSEP '${DIRSEP}'
1159 cat >> confdefs.h
<<EOF
1160 #define PATHSEP '${PATHSEP}'
1167 if test "$datadir" = "\${prefix}/share"; then
1168 datadir
='${prefix}/share/'$package
1170 DIR_DATADIR
=${datadir}
1172 if test "$prefix" = "NONE"; then
1173 presome
=${ac_default_prefix}
1175 DIR_DATADIR
=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1178 cat >> confdefs.h
<<EOF
1179 #define DIR_DATADIR "${DIR_DATADIR}"
1185 # For all packages except the StepMake package itself
1189 # Uncomment the configuration options your package needs.
1191 # -O is necessary to get inlining
1193 CFLAGS
=${CFLAGS:-""}
1194 CXXFLAGS
=${CXXFLAGS:-$CFLAGS}
1195 LDFLAGS
=${LDFLAGS:-""}
1201 # Check whether --enable-checking or --disable-checking was given.
1202 if test "${enable_checking+set}" = set; then
1203 enableval
="$enable_checking"
1204 checking_b
=$enableval
1208 # actually, the default is: tja='-O' to get inlining...
1211 #actually, that sucks.
1212 # tja looks like a typo. Default is optimisation off. --hwn
1214 # Check whether --enable-optimise or --disable-optimise was given.
1215 if test "${enable_optimise+set}" = set; then
1216 enableval
="$enable_optimise"
1217 optimise_b
=$enableval
1221 # Check whether --enable-profiling or --disable-profiling was given.
1222 if test "${enable_profiling+set}" = set; then
1223 enableval
="$enable_profiling"
1224 profile_b
=$enableval
1228 # Check whether --enable-debugging or --disable-debugging was given.
1229 if test "${enable_debugging+set}" = set; then
1230 enableval
="$enable_debugging"
1235 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1236 if test "${enable_mingw_prefix+set}" = set; then
1237 enableval
="$enable_mingw_prefix"
1238 MINGWPREFIX
=$enableval
1244 if test "$checking_b" = no
; then
1246 cat >> confdefs.h
<<\EOF
1250 DEFINES
="$DEFINES -DNDEBUG"
1253 if test "$optimise_b" = yes; then
1254 OPTIMIZE
="-O2 -finline-functions"
1257 if test "$optimise_b" = no
; then
1261 if test $profile_b = yes; then
1263 OPTIMIZE
="$OPTIMIZE -pg"
1266 if test $debug_b = yes; then
1267 OPTIMIZE
="$OPTIMIZE -g"
1270 # however, C++ support in mingw32 v 0.1.4 is still flaky
1271 if test x
$MINGWPREFIX != xno
; then
1272 ICFLAGS
="-I$MINGWPREFIX/include"
1273 ILDFLAGS
="-$MINGWPREFIX/lib"
1276 # Extract the first word of "gcc", so it can be a program name with args.
1277 set dummy gcc
; ac_word
=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 if test -n "$CC"; then
1284 ac_cv_prog_CC
="$CC" # Let the user override the test.
1286 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1288 for ac_dir
in $ac_dummy; do
1289 test -z "$ac_dir" && ac_dir
=.
1290 if test -f $ac_dir/$ac_word; then
1299 if test -n "$CC"; then
1300 echo "$ac_t""$CC" 1>&6
1302 echo "$ac_t""no" 1>&6
1305 if test -z "$CC"; then
1306 # Extract the first word of "cc", so it can be a program name with args.
1307 set dummy cc
; ac_word
=$2
1308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1309 echo "configure:1310: checking for $ac_word" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 if test -n "$CC"; then
1314 ac_cv_prog_CC
="$CC" # Let the user override the test.
1316 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1319 for ac_dir
in $ac_dummy; do
1320 test -z "$ac_dir" && ac_dir
=.
1321 if test -f $ac_dir/$ac_word; then
1322 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1323 ac_prog_rejected
=yes
1331 if test $ac_prog_rejected = yes; then
1332 # We found a bogon in the path, so make sure we never use it.
1333 set dummy
$ac_cv_prog_CC
1335 if test $# -gt 0; then
1336 # We chose a different compiler from the bogus one.
1337 # However, it has the same basename, so the bogon will be chosen
1338 # first if we set CC to just the basename; use the full file name.
1340 set dummy
"$ac_dir/$ac_word" "$@"
1348 if test -n "$CC"; then
1349 echo "$ac_t""$CC" 1>&6
1351 echo "$ac_t""no" 1>&6
1354 if test -z "$CC"; then
1355 case "`uname -s`" in
1357 # Extract the first word of "cl", so it can be a program name with args.
1358 set dummy cl
; ac_word
=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 if test -n "$CC"; then
1365 ac_cv_prog_CC
="$CC" # Let the user override the test.
1367 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1369 for ac_dir
in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir
=.
1371 if test -f $ac_dir/$ac_word; then
1380 if test -n "$CC"; then
1381 echo "$ac_t""$CC" 1>&6
1383 echo "$ac_t""no" 1>&6
1388 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1391 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1396 ac_cpp
='$CPP $CPPFLAGS'
1397 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1398 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1399 cross_compiling
=$ac_cv_prog_cc_cross
1401 cat > conftest.
$ac_ext << EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1408 if { (eval echo configure
:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1409 ac_cv_prog_cc_works
=yes
1410 # If we can't run a trivial program, we are probably using a cross compiler.
1411 if (.
/conftest
; exit) 2>/dev
/null
; then
1412 ac_cv_prog_cc_cross
=no
1414 ac_cv_prog_cc_cross
=yes
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1419 ac_cv_prog_cc_works
=no
1423 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1424 ac_cpp
='$CPP $CPPFLAGS'
1425 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1426 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1427 cross_compiling
=$ac_cv_prog_cc_cross
1429 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1430 if test $ac_cv_prog_cc_works = no
; then
1431 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1433 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1434 echo "configure:1435: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1435 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1436 cross_compiling
=$ac_cv_prog_cc_cross
1438 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1439 echo "configure:1440: checking whether we are using GNU C" >&5
1440 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 cat > conftest.c
<<EOF
1448 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1455 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1457 if test $ac_cv_prog_gcc = yes; then
1463 ac_test_CFLAGS
="${CFLAGS+set}"
1464 ac_save_CFLAGS
="$CFLAGS"
1466 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether ${CC-cc} accepts -g" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 echo 'void f(){}' > conftest.c
1472 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1481 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1482 if test "$ac_test_CFLAGS" = set; then
1483 CFLAGS
="$ac_save_CFLAGS"
1484 elif test $ac_cv_prog_cc_g = yes; then
1485 if test "$GCC" = yes; then
1491 if test "$GCC" = yes; then
1501 CFLAGS
="$CFLAGS $OPTIMIZE"
1502 CPPFLAGS
=${CPPFLAGS:-""}
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
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
1634 # Check whether --enable-printing or --disable-printing was given.
1635 if test "${enable_printing+set}" = set; then
1636 enableval
="$enable_printing"
1637 printing_b
=$enableval
1641 if test "$optimise_b" = yes; then
1642 DEFINES
="$DEFINES -DSTRING_UTILS_INLINED"
1643 cat >> confdefs.h
<<\EOF
1644 #define STRINGS_UTILS_INLINED 1
1649 if test "$printing_b" = no
; then
1651 cat >> confdefs.h
<<\EOF
1655 DEFINES
="$DEFINES -DNPRINT"
1658 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1659 echo "configure:1660: checking how to run the C++ preprocessor" >&5
1660 if test -z "$CXXCPP"; then
1661 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1666 ac_cpp
='$CXXCPP $CPPFLAGS'
1667 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1668 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1669 cross_compiling
=$ac_cv_prog_cxx_cross
1670 CXXCPP
="${CXX-g++} -E"
1671 cat > conftest.
$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1676 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1677 { (eval echo configure
:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1678 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1679 if test -z "$ac_err"; then
1683 echo "configure: failed program was:" >&5
1684 cat conftest.
$ac_ext >&5
1689 ac_cv_prog_CXXCPP
="$CXXCPP"
1691 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1692 ac_cpp
='$CXXCPP $CPPFLAGS'
1693 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1694 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1695 cross_compiling
=$ac_cv_prog_cxx_cross
1698 CXXCPP
="$ac_cv_prog_CXXCPP"
1699 echo "$ac_t""$CXXCPP" 1>&6
1703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1704 ac_cpp
='$CXXCPP $CPPFLAGS'
1705 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1706 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1707 cross_compiling
=$ac_cv_prog_cxx_cross
1709 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1711 # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy
$ac_prog; ac_word
=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5
1715 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 if test -n "$CXX"; then
1719 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1721 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1723 for ac_dir
in $ac_dummy; do
1724 test -z "$ac_dir" && ac_dir
=.
1725 if test -f $ac_dir/$ac_word; then
1726 ac_cv_prog_CXX
="$ac_prog"
1733 CXX
="$ac_cv_prog_CXX"
1734 if test -n "$CXX"; then
1735 echo "$ac_t""$CXX" 1>&6
1737 echo "$ac_t""no" 1>&6
1740 test -n "$CXX" && break
1742 test -n "$CXX" || CXX
="gcc"
1745 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1746 echo "configure:1747: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1750 ac_cpp
='$CXXCPP $CPPFLAGS'
1751 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1752 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1753 cross_compiling
=$ac_cv_prog_cxx_cross
1755 cat > conftest.
$ac_ext << EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1760 int main(){return(0);}
1762 if { (eval echo configure
:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1763 ac_cv_prog_cxx_works
=yes
1764 # If we can't run a trivial program, we are probably using a cross compiler.
1765 if (.
/conftest
; exit) 2>/dev
/null
; then
1766 ac_cv_prog_cxx_cross
=no
1768 ac_cv_prog_cxx_cross
=yes
1771 echo "configure: failed program was:" >&5
1772 cat conftest.
$ac_ext >&5
1773 ac_cv_prog_cxx_works
=no
1777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1778 ac_cpp
='$CXXCPP $CPPFLAGS'
1779 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1780 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1781 cross_compiling
=$ac_cv_prog_cxx_cross
1783 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1784 if test $ac_cv_prog_cxx_works = no
; then
1785 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1787 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1789 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1790 cross_compiling
=$ac_cv_prog_cxx_cross
1792 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1793 echo "configure:1794: checking whether we are using GNU C++" >&5
1794 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 cat > conftest.C
<<EOF
1802 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1809 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1811 if test $ac_cv_prog_gxx = yes; then
1817 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1818 ac_save_CXXFLAGS
="$CXXFLAGS"
1820 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1821 echo "configure:1822: checking whether ${CXX-g++} accepts -g" >&5
1822 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 echo 'void f(){}' > conftest.cc
1826 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1827 ac_cv_prog_cxx_g
=yes
1835 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1836 if test "$ac_test_CXXFLAGS" = set; then
1837 CXXFLAGS
="$ac_save_CXXFLAGS"
1838 elif test $ac_cv_prog_cxx_g = yes; then
1839 if test "$GXX" = yes; then
1845 if test "$GXX" = yes; then
1853 ac_safe
=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1854 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1855 echo "configure:1856: checking for FlexLexer.h" >&5
1856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.
$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862 #include <FlexLexer.h>
1864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure
:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1869 eval "ac_cv_header_$ac_safe=yes"
1872 echo "configure: failed program was:" >&5
1873 cat conftest.
$ac_ext >&5
1875 eval "ac_cv_header_$ac_safe=no"
1879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1883 echo "$ac_t""no" 1>&6
1885 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1891 CPPFLAGS
="$CPPFLAGS $DEFINES"
1892 CXXFLAGS
="$CXXFLAGS $OPTIMIZE"
1893 LDFLAGS
="$LDFLAGS $EXTRA_LIBES"
1902 # urg, egcs: how to check for egcs >= 1.1?
1903 if $CXX --version |
egrep '2\.[89]' > /dev
/null ||
1904 $CXX --version |
grep 'egcs' > /dev
/null
1909 echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2
1915 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1916 echo "configure:1917: checking whether explicit instantiation is needed" >&5
1917 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 cat > conftest.
$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1924 template <class T> struct foo { static int baz; };
1925 template <class T> int foo<T>::baz = 1;
1928 return foo<int>::baz;
1931 if { (eval echo configure
:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1933 lily_cv_need_explicit_instantiation
=no
1935 echo "configure: failed program was:" >&5
1936 cat conftest.
$ac_ext >&5
1938 lily_cv_need_explicit_instantiation
=yes
1943 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1944 if test x
"$lily_cv_need_explicit_instantiation"x
= x
"yes"x
; then
1945 cat >> confdefs.h
<<\EOF
1946 #define NEED_EXPLICIT_INSTANTIATION 1
1952 # ugh, automake: we want (and check for) bison
1953 for ac_prog
in 'bison -y' byacc
1955 # Extract the first word of "$ac_prog", so it can be a program name with args.
1956 set dummy
$ac_prog; ac_word
=$2
1957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1958 echo "configure:1959: checking for $ac_word" >&5
1959 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 if test -n "$YACC"; then
1963 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1965 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1967 for ac_dir
in $ac_dummy; do
1968 test -z "$ac_dir" && ac_dir
=.
1969 if test -f $ac_dir/$ac_word; then
1970 ac_cv_prog_YACC
="$ac_prog"
1977 YACC
="$ac_cv_prog_YACC"
1978 if test -n "$YACC"; then
1979 echo "$ac_t""$YACC" 1>&6
1981 echo "$ac_t""no" 1>&6
1984 test -n "$YACC" && break
1986 test -n "$YACC" || YACC
="yacc"
1988 # ugh, automake: we want (and check for) flex
1990 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1994 ac_cv_prog_lex_root
=lex.yy
1996 for ac_prog
in bison
1998 # Extract the first word of "$ac_prog", so it can be a program name with args.
1999 set dummy
$ac_prog; ac_word
=$2
2000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_word" >&5
2002 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 if test -n "$BISON"; then
2006 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
2008 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2010 for ac_dir
in $ac_dummy; do
2011 test -z "$ac_dir" && ac_dir
=.
2012 if test -f $ac_dir/$ac_word; then
2013 ac_cv_prog_BISON
="$ac_prog"
2020 BISON
="$ac_cv_prog_BISON"
2021 if test -n "$BISON"; then
2022 echo "$ac_t""$BISON" 1>&6
2024 echo "$ac_t""no" 1>&6
2027 test -n "$BISON" && break
2029 test -n "$BISON" || BISON
="error"
2033 # Extract the first word of "$ac_prog", so it can be a program name with args.
2034 set dummy
$ac_prog; ac_word
=$2
2035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2036 echo "configure:2037: checking for $ac_word" >&5
2037 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 if test -n "$FLEX"; then
2041 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
2043 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2045 for ac_dir
in $ac_dummy; do
2046 test -z "$ac_dir" && ac_dir
=.
2047 if test -f $ac_dir/$ac_word; then
2048 ac_cv_prog_FLEX
="$ac_prog"
2055 FLEX
="$ac_cv_prog_FLEX"
2056 if test -n "$FLEX"; then
2057 echo "$ac_t""$FLEX" 1>&6
2059 echo "$ac_t""no" 1>&6
2062 test -n "$FLEX" && break
2064 test -n "$FLEX" || FLEX
="error"
2067 result
="`echo \"$BISON\" | grep echo`"
2068 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2070 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2076 result
="`echo \"$FLEX\" | grep echo`"
2077 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2079 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2085 if test $BISON != "error"; then
2086 bison_version
=`$BISON --version | sed 's/^.*version 1.//g'`
2087 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2089 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy
$ac_prog; ac_word
=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 if test -n "$AR"; then
2109 ac_cv_prog_AR
="$AR" # Let the user override the test.
2111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2113 for ac_dir
in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir
=.
2115 if test -f $ac_dir/$ac_word; then
2116 ac_cv_prog_AR
="$ac_prog"
2124 if test -n "$AR"; then
2125 echo "$ac_t""$AR" 1>&6
2127 echo "$ac_t""no" 1>&6
2130 test -n "$AR" && break
2132 test -n "$AR" || AR
="error"
2134 # Extract the first word of "ranlib", so it can be a program name with args.
2135 set dummy ranlib
; ac_word
=$2
2136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_word" >&5
2138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 if test -n "$RANLIB"; then
2142 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2146 for ac_dir
in $ac_dummy; do
2147 test -z "$ac_dir" && ac_dir
=.
2148 if test -f $ac_dir/$ac_word; then
2149 ac_cv_prog_RANLIB
="ranlib"
2154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2157 RANLIB
="$ac_cv_prog_RANLIB"
2158 if test -n "$RANLIB"; then
2159 echo "$ac_t""$RANLIB" 1>&6
2161 echo "$ac_t""no" 1>&6
2168 # AC_STEPMAKE_LIBTOOL
2174 # Check whether --with-localedir or --without-localedir was given.
2175 if test "${with_localedir+set}" = set; then
2176 withval
="$with_localedir"
2177 localedir
=$with_localedir
2179 localedir
='${prefix}/share/locale'
2183 # Check whether --with-lang or --without-lang was given.
2184 if test "${with_lang+set}" = set; then
2185 withval
="$with_lang"
2192 echo $ac_n "checking language""... $ac_c" 1>&6
2193 echo "configure:2194: checking language" >&5
2195 En
* | en
* | Am
* | am
* | US
* | us
*)
2197 NL |
nl | Du
* | du
* | Ned
* | ned
*)
2204 echo "$ac_t""$lang" 1>&6
2206 if test "$lang" = "unknown" ; then
2208 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2215 DIR_LOCALEDIR
=${localedir}
2217 if test "$prefix" = "NONE"; then
2218 presome
=${ac_default_prefix}
2220 DIR_LOCALEDIR
=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2223 cat >> confdefs.h
<<EOF
2224 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2228 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2229 echo "configure:2230: checking for gettext in -lintl" >&5
2230 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 ac_save_LIBS
="$LIBS"
2236 cat > conftest.
$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2251 if { (eval echo configure
:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 eval "ac_cv_lib_$ac_lib_var=no"
2261 LIBS
="$ac_save_LIBS"
2264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2268 cat >> confdefs.h
<<EOF
2269 #define $ac_tr_lib 1
2275 echo "$ac_t""no" 1>&6
2278 for ac_func
in gettext
2280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_func" >&5
2282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 cat > conftest.
$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* System header to define __stub macros and hopefully few prototypes,
2289 which can conflict with char $ac_func(); below. */
2291 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2312 if { (eval echo configure
:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2314 eval "ac_cv_func_$ac_func=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 eval "ac_cv_func_$ac_func=no"
2324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2327 cat >> confdefs.h
<<EOF
2328 #define $ac_tr_func 1
2332 echo "$ac_t""no" 1>&6
2338 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2339 for ac_prog
in msgfmt
2341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy
$ac_prog; ac_word
=$2
2343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_word" >&5
2345 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 if test -n "$MSGFMT"; then
2349 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
2351 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2353 for ac_dir
in $ac_dummy; do
2354 test -z "$ac_dir" && ac_dir
=.
2355 if test -f $ac_dir/$ac_word; then
2356 ac_cv_prog_MSGFMT
="$ac_prog"
2363 MSGFMT
="$ac_cv_prog_MSGFMT"
2364 if test -n "$MSGFMT"; then
2365 echo "$ac_t""$MSGFMT" 1>&6
2367 echo "$ac_t""no" 1>&6
2370 test -n "$MSGFMT" && break
2372 test -n "$MSGFMT" || MSGFMT
="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2374 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2375 echo "configure:2376: checking whether msgfmt accepts -o" >&5
2376 msgfmt_output
="`msgfmt -o bla 2>&1 | grep usage`"
2377 if test "$msgfmt_output" = ""; then
2378 echo "$ac_t""yes" 1>&6
2381 MSGFMT
="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2382 echo "$ac_t""no" 1>&6
2384 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2388 if test ! -n "$MSGFMT"; then
2390 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2396 # urg, never know what names these teTeX guys will think up
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy
$ac_prog; ac_word
=$2
2402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2403 echo "configure:2404: checking for $ac_word" >&5
2404 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 if test -n "$METAFONT"; then
2408 ac_cv_prog_METAFONT
="$METAFONT" # Let the user override the test.
2410 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2412 for ac_dir
in $ac_dummy; do
2413 test -z "$ac_dir" && ac_dir
=.
2414 if test -f $ac_dir/$ac_word; then
2415 ac_cv_prog_METAFONT
="$ac_prog"
2422 METAFONT
="$ac_cv_prog_METAFONT"
2423 if test -n "$METAFONT"; then
2424 echo "$ac_t""$METAFONT" 1>&6
2426 echo "$ac_t""no" 1>&6
2429 test -n "$METAFONT" && break
2431 test -n "$METAFONT" || METAFONT
="no"
2433 if test "x$METAFONT" = "xno"; then
2434 for ac_prog
in mfont
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy
$ac_prog; ac_word
=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 if test -n "$MFONT"; then
2444 ac_cv_prog_MFONT
="$MFONT" # Let the user override the test.
2446 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2448 for ac_dir
in $ac_dummy; do
2449 test -z "$ac_dir" && ac_dir
=.
2450 if test -f $ac_dir/$ac_word; then
2451 ac_cv_prog_MFONT
="$ac_prog"
2458 MFONT
="$ac_cv_prog_MFONT"
2459 if test -n "$MFONT"; then
2460 echo "$ac_t""$MFONT" 1>&6
2462 echo "$ac_t""no" 1>&6
2465 test -n "$MFONT" && break
2467 test -n "$MFONT" || MFONT
="-echo no mf or mfont"
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy
$ac_prog; ac_word
=$2
2476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_word" >&5
2478 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 if test -n "$METAPOST"; then
2482 ac_cv_prog_METAPOST
="$METAPOST" # Let the user override the test.
2484 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2486 for ac_dir
in $ac_dummy; do
2487 test -z "$ac_dir" && ac_dir
=.
2488 if test -f $ac_dir/$ac_word; then
2489 ac_cv_prog_METAPOST
="$ac_prog"
2496 METAPOST
="$ac_cv_prog_METAPOST"
2497 if test -n "$METAPOST"; then
2498 echo "$ac_t""$METAPOST" 1>&6
2500 echo "$ac_t""no" 1>&6
2503 test -n "$METAPOST" && break
2505 test -n "$METAPOST" || METAPOST
="no"
2507 if test "x$METAPOST" = "xno"; then
2508 for ac_prog
in mpost
2510 # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy
$ac_prog; ac_word
=$2
2512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_word" >&5
2514 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 if test -n "$MPOST"; then
2518 ac_cv_prog_MPOST
="$MPOST" # Let the user override the test.
2520 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2522 for ac_dir
in $ac_dummy; do
2523 test -z "$ac_dir" && ac_dir
=.
2524 if test -f $ac_dir/$ac_word; then
2525 ac_cv_prog_MPOST
="$ac_prog"
2532 MPOST
="$ac_cv_prog_MPOST"
2533 if test -n "$MPOST"; then
2534 echo "$ac_t""$MPOST" 1>&6
2536 echo "$ac_t""no" 1>&6
2539 test -n "$MPOST" && break
2541 test -n "$MPOST" || MPOST
="-echo no mp or mpost"
2547 for ac_prog
in inimf
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy
$ac_prog; ac_word
=$2
2551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_word" >&5
2553 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 if test -n "$INIMETAFONT"; then
2557 ac_cv_prog_INIMETAFONT
="$INIMETAFONT" # Let the user override the test.
2559 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2561 for ac_dir
in $ac_dummy; do
2562 test -z "$ac_dir" && ac_dir
=.
2563 if test -f $ac_dir/$ac_word; then
2564 ac_cv_prog_INIMETAFONT
="$ac_prog"
2571 INIMETAFONT
="$ac_cv_prog_INIMETAFONT"
2572 if test -n "$INIMETAFONT"; then
2573 echo "$ac_t""$INIMETAFONT" 1>&6
2575 echo "$ac_t""no" 1>&6
2578 test -n "$INIMETAFONT" && break
2580 test -n "$INIMETAFONT" || INIMETAFONT
="no"
2582 if test "x$INIMETAFONT" = "xno"; then
2583 for ac_prog
in inimfont
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy
$ac_prog; ac_word
=$2
2587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2588 echo "configure:2589: checking for $ac_word" >&5
2589 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 if test -n "$INIMFONT"; then
2593 ac_cv_prog_INIMFONT
="$INIMFONT" # Let the user override the test.
2595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2597 for ac_dir
in $ac_dummy; do
2598 test -z "$ac_dir" && ac_dir
=.
2599 if test -f $ac_dir/$ac_word; then
2600 ac_cv_prog_INIMFONT
="$ac_prog"
2607 INIMFONT
="$ac_cv_prog_INIMFONT"
2608 if test -n "$INIMFONT"; then
2609 echo "$ac_t""$INIMFONT" 1>&6
2611 echo "$ac_t""no" 1>&6
2614 test -n "$INIMFONT" && break
2616 test -n "$INIMFONT" || INIMFONT
="-echo no inimf or inimfont"
2618 INIMETAFONT
=$INIMFONT
2621 for ac_prog
in inimp
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy
$ac_prog; ac_word
=$2
2625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2626 echo "configure:2627: checking for $ac_word" >&5
2627 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 if test -n "$INIMETAPOST"; then
2631 ac_cv_prog_INIMETAPOST
="$INIMETAPOST" # Let the user override the test.
2633 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2635 for ac_dir
in $ac_dummy; do
2636 test -z "$ac_dir" && ac_dir
=.
2637 if test -f $ac_dir/$ac_word; then
2638 ac_cv_prog_INIMETAPOST
="$ac_prog"
2645 INIMETAPOST
="$ac_cv_prog_INIMETAPOST"
2646 if test -n "$INIMETAPOST"; then
2647 echo "$ac_t""$INIMETAPOST" 1>&6
2649 echo "$ac_t""no" 1>&6
2652 test -n "$INIMETAPOST" && break
2654 test -n "$INIMETAPOST" || INIMETAPOST
="no"
2656 if test "x$INIMETAPOST" = "xno"; then
2657 for ac_prog
in inimpost
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy
$ac_prog; ac_word
=$2
2661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_word" >&5
2663 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 if test -n "$INIMPOST"; then
2667 ac_cv_prog_INIMPOST
="$INIMPOST" # Let the user override the test.
2669 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2671 for ac_dir
in $ac_dummy; do
2672 test -z "$ac_dir" && ac_dir
=.
2673 if test -f $ac_dir/$ac_word; then
2674 ac_cv_prog_INIMPOST
="$ac_prog"
2681 INIMPOST
="$ac_cv_prog_INIMPOST"
2682 if test -n "$INIMPOST"; then
2683 echo "$ac_t""$INIMPOST" 1>&6
2685 echo "$ac_t""no" 1>&6
2688 test -n "$INIMPOST" && break
2690 test -n "$INIMPOST" || INIMPOST
="-echo no inimp or inimpost"
2692 INIMETAPOST
=$INIMPOST
2695 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2696 echo "configure:2697: checking for working metafont mode" >&5
2697 modelist
='ljfour lj4 lj3 lj2 ljet laserjet'
2698 for MFMODE
in $modelist; do
2699 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev
/null
2>&1
2700 if test -f mfput.tfm
; then
2706 # For now let people define these in their environments
2708 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2710 if test ${INIMETAPOST} = "inimp" ; then
2711 : ${INIMETAPOST_FLAGS=''}
2713 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2717 echo "$ac_t""$MFMODE" 1>&6
2728 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2729 if test "${enable_tfm_path+set}" = set; then
2730 enableval
="$enable_tfm_path"
2737 for ac_prog
in kpsewhich
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy
$ac_prog; ac_word
=$2
2741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_word" >&5
2743 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 if test -n "$KPSEWHICH"; then
2747 ac_cv_prog_KPSEWHICH
="$KPSEWHICH" # Let the user override the test.
2749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2751 for ac_dir
in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir
=.
2753 if test -f $ac_dir/$ac_word; then
2754 ac_cv_prog_KPSEWHICH
="$ac_prog"
2761 KPSEWHICH
="$ac_cv_prog_KPSEWHICH"
2762 if test -n "$KPSEWHICH"; then
2763 echo "$ac_t""$KPSEWHICH" 1>&6
2765 echo "$ac_t""no" 1>&6
2768 test -n "$KPSEWHICH" && break
2770 test -n "$KPSEWHICH" || KPSEWHICH
="no"
2772 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2773 echo "configure:2774: checking for tfm path" >&5
2775 TFM_FONTS
="cmr msam"
2777 if test "x$tfm_path" = xauto
; then
2778 if test "x$KPSEWHICH" != "xno" ; then
2779 for i
in $TFM_FONTS; do
2780 dir
=`$KPSEWHICH tfm ${i}10.tfm`
2781 TFM_PATH
="$TFM_PATH `dirname $dir`"
2785 echo "configure: warning: Please specify where cmr10.tfm lives:
2786 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2794 TFM_PATH
=`echo $TFM_PATH | tr ':' ' '`
2795 echo "$ac_t""$TFM_PATH" 1>&6
2799 ## First, let's just see if we can find Guile at all.
2800 echo $ac_n "checking "for guile-config
"""... $ac_c" 1>&6
2801 echo "configure:2802: checking "for guile-config
"" >&5
2802 for guile_config
in guile-config
$target-guile-config $build-guile-config; do
2803 echo "$ac_t"""$guile_config"" 1>&6
2804 if ! $guile_config --version > /dev
/null
2>&1 ; then
2805 echo "configure: warning: "cannot execute
$guile_config"" 1>&2
2806 echo $ac_n "checking "if we are cross compiling
"""... $ac_c" 1>&6
2807 echo "configure:2808: checking "if we are cross compiling
"" >&5
2813 if test "$guile_config" = "error"; then
2814 { echo "configure: error: "cannot
find guile-config
; is Guile installed?
"" 1>&2; exit 1; }
2817 echo $ac_n "checking "Guile version
"""... $ac_c" 1>&6
2818 echo "configure:2819: checking "Guile version
"" >&5
2819 need_guile_version
="1.3.4"
2820 guile_version
=`expr "\`$guile_config --version 2>&1\
`" : ".*\($need_guile_version\).*"`
2821 echo "$ac_t"""$guile_version"" 1>&6
2822 if test "$guile_version" != "$need_guile_version"; then
2824 echo "configure: warning: "Guile version
"$need_guile_version" or newer is needed
"" 1>&2
2829 ## The GUILE_FLAGS macro.
2830 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2831 echo "configure:2832: checking for Guile" >&5
2832 if ! $guile_config link
> /dev
/null
; then
2833 echo "$ac_t"""cannot execute
$guile_config"" 1>&6
2834 { echo "configure: error: "cannot
find guile-config
; is Guile installed?
"" 1>&2; exit 1; }
2837 GUILE_CFLAGS
="`$guile_config compile`"
2838 GUILE_LDFLAGS
="`$guile_config link`"
2841 echo "$ac_t""yes" 1>&6
2843 # Extract the first word of "guile", so it can be a program name with args.
2844 set dummy guile
; ac_word
=$2
2845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_word" >&5
2847 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2852 ac_cv_path_GUILE
="$GUILE" # Let the user override the test with a path.
2855 ac_cv_path_GUILE
="$GUILE" # Let the user override the test with a dos path.
2858 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2860 for ac_dir
in $ac_dummy; do
2861 test -z "$ac_dir" && ac_dir
=.
2862 if test -f $ac_dir/$ac_word; then
2863 ac_cv_path_GUILE
="$ac_dir/$ac_word"
2868 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE
="error"
2872 GUILE
="$ac_cv_path_GUILE"
2873 if test -n "$GUILE"; then
2874 echo "$ac_t""$GUILE" 1>&6
2876 echo "$ac_t""no" 1>&6
2883 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2884 echo "configure:2885: checking for 8-bit clean memcmp" >&5
2885 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 if test "$cross_compiling" = yes; then
2889 ac_cv_func_memcmp_clean
=no
2891 cat > conftest.
$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2895 extern "C" void exit(int);
2900 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2901 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2905 if { (eval echo configure
:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2907 ac_cv_func_memcmp_clean
=yes
2909 echo "configure: failed program was:" >&5
2910 cat conftest.
$ac_ext >&5
2912 ac_cv_func_memcmp_clean
=no
2919 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2920 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
2922 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2923 echo "configure:2924: checking for vprintf" >&5
2924 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 cat > conftest.
$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 /* System header to define __stub macros and hopefully few prototypes,
2931 which can conflict with char vprintf(); below. */
2933 /* Override any gcc2 internal prototype to avoid an error. */
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2954 if { (eval echo configure
:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2956 eval "ac_cv_func_vprintf=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.
$ac_ext >&5
2961 eval "ac_cv_func_vprintf=no"
2966 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 cat >> confdefs.h
<<\EOF
2969 #define HAVE_VPRINTF 1
2973 echo "$ac_t""no" 1>&6
2976 if test "$ac_cv_func_vprintf" != yes; then
2977 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2978 echo "configure:2979: checking for _doprnt" >&5
2979 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 cat > conftest.
$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 /* System header to define __stub macros and hopefully few prototypes,
2986 which can conflict with char _doprnt(); below. */
2988 /* Override any gcc2 internal prototype to avoid an error. */
2992 /* We use char because int might match the return type of a gcc2
2993 builtin and then its argument prototype would still apply. */
2998 /* The GNU C library defines this for functions which it implements
2999 to always fail with ENOSYS. Some functions are actually named
3000 something starting with __ and the normal name is an alias. */
3001 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3009 if { (eval echo configure
:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3011 eval "ac_cv_func__doprnt=yes"
3013 echo "configure: failed program was:" >&5
3014 cat conftest.
$ac_ext >&5
3016 eval "ac_cv_func__doprnt=no"
3021 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3022 echo "$ac_t""yes" 1>&6
3023 cat >> confdefs.h
<<\EOF
3024 #define HAVE_DOPRNT 1
3028 echo "$ac_t""no" 1>&6
3033 for ac_func
in memmem snprintf vsnprintf
gettext isinf
3035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3036 echo "configure:3037: checking for $ac_func" >&5
3037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.
$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 /* System header to define __stub macros and hopefully few prototypes,
3044 which can conflict with char $ac_func(); below. */
3046 /* Override any gcc2 internal prototype to avoid an error. */
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3056 /* The GNU C library defines this for functions which it implements
3057 to always fail with ENOSYS. Some functions are actually named
3058 something starting with __ and the normal name is an alias. */
3059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3067 if { (eval echo configure
:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3069 eval "ac_cv_func_$ac_func=yes"
3071 echo "configure: failed program was:" >&5
3072 cat conftest.
$ac_ext >&5
3074 eval "ac_cv_func_$ac_func=no"
3079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3080 echo "$ac_t""yes" 1>&6
3081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3082 cat >> confdefs.h
<<EOF
3083 #define $ac_tr_func 1
3087 echo "$ac_t""no" 1>&6
3092 cat >> confdefs.h
<<EOF
3093 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3096 cat >> confdefs.h
<<EOF
3097 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3101 for ac_prog
in makeinfo
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy
$ac_prog; ac_word
=$2
3105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3106 echo "configure:3107: checking for $ac_word" >&5
3107 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 if test -n "$MAKEINFO"; then
3111 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3115 for ac_dir
in $ac_dummy; do
3116 test -z "$ac_dir" && ac_dir
=.
3117 if test -f $ac_dir/$ac_word; then
3118 ac_cv_prog_MAKEINFO
="$ac_prog"
3125 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3126 if test -n "$MAKEINFO"; then
3127 echo "$ac_t""$MAKEINFO" 1>&6
3129 echo "$ac_t""no" 1>&6
3132 test -n "$MAKEINFO" && break
3134 test -n "$MAKEINFO" || MAKEINFO
="error"
3136 # Extract the first word of "perl", so it can be a program name with args.
3137 set dummy perl
; ac_word
=$2
3138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_word" >&5
3140 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3145 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
3148 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
3151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3153 for ac_dir
in $ac_dummy; do
3154 test -z "$ac_dir" && ac_dir
=.
3155 if test -f $ac_dir/$ac_word; then
3156 ac_cv_path_PERL
="$ac_dir/$ac_word"
3161 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="error"
3165 PERL
="$ac_cv_path_PERL"
3166 if test -n "$PERL"; then
3167 echo "$ac_t""$PERL" 1>&6
3169 echo "$ac_t""no" 1>&6
3176 cat > confcache
<<\EOF
3177 # This file is a shell script that caches the results of configure
3178 # tests run on this system so they can be shared between configure
3179 # scripts and configure runs. It is not useful on other systems.
3180 # If it contains results you don't want to keep, you may remove or edit it.
3182 # By default, configure uses ./config.cache as the cache file,
3183 # creating it if it does not exist already. You can give configure
3184 # the --cache-file=FILE option to use a different cache file; that is
3185 # what configure does when it calls configure scripts in
3186 # subdirectories, so they share the cache.
3187 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3188 # config.status only pays attention to the cache file if you give it the
3189 # --recheck option to rerun configure.
3192 # The following way of writing the cache mishandles newlines in values,
3193 # but we know of no workaround that is simple, portable, and efficient.
3194 # So, don't put newlines in cache variables' values.
3195 # Ultrix sh set writes to stderr and can't be redirected directly,
3196 # and sets the high bit in the cache file unless we assign to the vars.
3198 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3200 # `set' does not quote correctly, so add quotes (double-quote substitution
3201 # turns \\\\ into \\, and sed turns \\ into \).
3203 -e "s/'/'\\\\''/g" \
3204 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3207 # `set' quotes correctly as required by POSIX, so do not add quotes.
3208 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3211 if cmp -s $cache_file confcache
; then
3214 if test -w $cache_file; then
3215 echo "updating cache $cache_file"
3216 cat confcache
> $cache_file
3218 echo "not updating unwritable cache $cache_file"
3223 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3225 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3226 # Let make expand exec_prefix.
3227 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3229 # Any assignment to VPATH causes Sun make to only execute
3230 # the first set of double-colon rules, so remove it if not needed.
3231 # If there is a colon in the path, we need to keep it.
3232 if test "x$srcdir" = x.
; then
3233 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3236 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3238 DEFS
=-DHAVE_CONFIG_H
3240 # Without the "./", some shells look in PATH for config.status.
3241 : ${CONFIG_STATUS=./config.status}
3243 echo creating
$CONFIG_STATUS
3244 rm -f $CONFIG_STATUS
3245 cat > $CONFIG_STATUS <<EOF
3247 # Generated automatically by configure.
3248 # Run this file to recreate the current configuration.
3249 # This directory was configured as follows,
3250 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3252 # $0 $ac_configure_args
3254 # Compiler output produced by configure, useful for debugging
3255 # configure, is in ./config.log if it exists.
3257 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3260 case "\$ac_option" in
3261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3262 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3263 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3264 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3265 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3267 -help | --help | --hel | --he | --h)
3268 echo "\$ac_cs_usage"; exit 0 ;;
3269 *) echo "\$ac_cs_usage"; exit 1 ;;
3273 ac_given_srcdir=$srcdir
3275 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3277 cat >> $CONFIG_STATUS <<EOF
3279 # Protect against being on the right side of a sed subst in config.status.
3280 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3281 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3285 s%@CFLAGS@%$CFLAGS%g
3286 s%@CPPFLAGS@%$CPPFLAGS%g
3287 s%@CXXFLAGS@%$CXXFLAGS%g
3288 s%@FFLAGS@%$FFLAGS%g
3290 s%@LDFLAGS@%$LDFLAGS%g
3292 s%@exec_prefix@%$exec_prefix%g
3293 s%@prefix@%$prefix%g
3294 s%@program_transform_name@%$program_transform_name%g
3295 s%@bindir@%$bindir%g
3296 s%@sbindir@%$sbindir%g
3297 s%@libexecdir@%$libexecdir%g
3298 s%@datadir@%$datadir%g
3299 s%@sysconfdir@%$sysconfdir%g
3300 s%@sharedstatedir@%$sharedstatedir%g
3301 s%@localstatedir@%$localstatedir%g
3302 s%@libdir@%$libdir%g
3303 s%@includedir@%$includedir%g
3304 s%@oldincludedir@%$oldincludedir%g
3305 s%@infodir@%$infodir%g
3306 s%@mandir@%$mandir%g
3307 s%@builddir@%$builddir%g
3308 s%@stepmake@%$stepmake%g
3309 s%@package@%$package%g
3310 s%@PACKAGE@%$PACKAGE%g
3311 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3312 s%@package_depth@%$package_depth%g
3313 s%@AUTOGENERATE@%$AUTOGENERATE%g
3314 s%@STATE_VECTOR@%$STATE_VECTOR%g
3315 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3317 s%@host_alias@%$host_alias%g
3318 s%@host_cpu@%$host_cpu%g
3319 s%@host_vendor@%$host_vendor%g
3320 s%@host_os@%$host_os%g
3325 s%@PYTHON@%$PYTHON%g
3326 s%@program_prefix@%$program_prefix%g
3327 s%@program_suffix@%$program_suffix%g
3331 s%@INSTALL@%$INSTALL%g
3332 s%@PATHSEP@%$PATHSEP%g
3333 s%@DIRSEP@%$DIRSEP%g
3334 s%@DIR_DATADIR@%$DIR_DATADIR%g
3335 s%@subdirs@%$subdirs%g
3338 s%@ICFLAGS@%$ICFLAGS%g
3339 s%@ILDFLAGS@%$ILDFLAGS%g
3340 s%@DEFINES@%$DEFINES%g
3341 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3344 s%@CXXCPP@%$CXXCPP%g
3349 s%@RANLIB@%$RANLIB%g
3350 s%@localedir@%$localedir%g
3351 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3352 s%@MSGFMT@%$MSGFMT%g
3353 s%@METAFONT@%$METAFONT%g
3355 s%@METAPOST@%$METAPOST%g
3357 s%@INIMETAFONT@%$INIMETAFONT%g
3358 s%@INIMFONT@%$INIMFONT%g
3359 s%@INIMETAPOST@%$INIMETAPOST%g
3360 s%@INIMPOST@%$INIMPOST%g
3361 s%@MFMODE@%$MFMODE%g
3362 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3363 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3364 s%@KPSEWHICH@%$KPSEWHICH%g
3365 s%@TFM_PATH@%$TFM_PATH%g
3366 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3367 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3369 s%@LIBOBJS@%$LIBOBJS%g
3370 s%@MAKEINFO@%$MAKEINFO%g
3376 cat >> $CONFIG_STATUS <<\EOF
3378 # Split the substitutions into bite-sized pieces for seds with
3379 # small command number limits, like on Digital OSF/1 and HP-UX.
3380 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3381 ac_file
=1 # Number of current file.
3382 ac_beg
=1 # First line for current file.
3383 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3386 while $ac_more_lines; do
3387 if test $ac_beg -gt 1; then
3388 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3390 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3392 if test ! -s conftest.s
$ac_file; then
3394 rm -f conftest.s
$ac_file
3396 if test -z "$ac_sed_cmds"; then
3397 ac_sed_cmds
="sed -f conftest.s$ac_file"
3399 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3401 ac_file
=`expr $ac_file + 1`
3403 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3406 if test -z "$ac_sed_cmds"; then
3411 cat >> $CONFIG_STATUS <<EOF
3413 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3415 cat >> $CONFIG_STATUS <<\EOF
3416 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3417 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3419 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3420 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3421 *) ac_file_in
="${ac_file}.in" ;;
3424 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3426 # Remove last slash and all that follows it. Not all systems have dirname.
3427 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3428 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3429 # The file is in a subdirectory.
3430 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3431 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3432 # A "../" for each directory in $ac_dir_suffix.
3433 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3435 ac_dir_suffix
= ac_dots
=
3438 case "$ac_given_srcdir" in
3440 if test -z "$ac_dots"; then top_srcdir
=.
3441 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3442 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3444 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3445 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3449 echo creating
"$ac_file"
3451 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3453 *Makefile
*) ac_comsub
="1i\\
3454 # $configure_input" ;;
3458 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3460 s%@configure_input@%$configure_input%g
3461 s%@srcdir@%$srcdir%g
3462 s%@top_srcdir@%$top_srcdir%g
3463 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3467 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3468 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3470 # ac_d sets the value in "#define NAME VALUE" lines.
3471 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3472 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3475 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3476 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3477 ac_uB
='\([ ]\)%\1#\2define\3'
3480 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3481 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3482 ac_eB
='$%\1#\2define\3'
3486 if test "${CONFIG_HEADERS+set}" != set; then
3488 cat >> $CONFIG_STATUS <<EOF
3489 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3491 cat >> $CONFIG_STATUS <<\EOF
3493 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3494 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3496 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3497 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3498 *) ac_file_in
="${ac_file}.in" ;;
3501 echo creating
$ac_file
3503 rm -f conftest.frag conftest.
in conftest.out
3504 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3505 cat $ac_file_inputs > conftest.
in
3509 # Transform confdefs.h into a sed script conftest.vals that substitutes
3510 # the proper values into config.h.in to produce config.h. And first:
3511 # Protect against being on the right side of a sed subst in config.status.
3512 # Protect against being in an unquoted here document in config.status.
3514 cat > conftest.hdr
<<\EOF
3517 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3521 sed -n -f conftest.hdr confdefs.h > conftest.vals
3524 # This sed command replaces #undef with comments. This is necessary, for
3525 # example, in the case of _POSIX_SOURCE, which is predefined and required
3526 # on some systems where configure will not decide to define it.
3527 cat >> conftest.vals <<\EOF
3528 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3531 # Break up conftest.vals because some shells have a limit on
3532 # the size of here documents, and old seds have small limits too.
3537 ac_lines=`grep -c . conftest.vals
`
3538 # grep -c gives empty output for an empty file on some AIX systems.
3539 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3540 # Write a limited-size here document to conftest.frag.
3541 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3542 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3544 sed -f conftest.frag conftest.in > conftest.out
3546 mv conftest.out conftest.in
3548 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3550 mv conftest.tail conftest.vals
3554 cat >> $CONFIG_STATUS <<\EOF
3555 rm -f conftest.frag conftest.h
3556 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3557 cat conftest.in >> conftest.h
3559 if cmp -s $ac_file conftest.h 2>/dev/null; then
3560 echo "$ac_file is unchanged"
3563 # Remove last slash and all that follows it. Not all systems have dirname.
3564 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3565 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3566 # The file is in a subdirectory.
3567 test ! -d "$ac_dir" && mkdir "$ac_dir"
3570 mv conftest.h $ac_file
3575 cat >> $CONFIG_STATUS <<EOF
3578 cat >> $CONFIG_STATUS <<\EOF
3582 chmod +x $CONFIG_STATUS
3583 rm -fr confdefs* $ac_clean_files
3584 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3586 if test "$no_recursion" != yes; then
3588 # Remove --cache-file and --srcdir arguments so they do not pile up.
3589 ac_sub_configure_args=
3591 for ac_arg in $ac_configure_args; do
3592 if test -n "$ac_prev"; then
3597 -cache-file | --cache-file | --cache-fil | --cache-fi \
3598 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3599 ac_prev=cache_file ;;
3600 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3601 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3603 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3605 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3607 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3611 for ac_config_dir in stepmake; do
3613 # Do not complain, so a configure script can configure whichever
3614 # parts of a large source tree are present.
3615 if test ! -d $srcdir/$ac_config_dir; then
3619 echo configuring in $ac_config_dir
3624 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3626 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3634 # A "../" for each directory in /$ac_config_dir.
3635 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3638 .) # No --srcdir option. We are building in place.
3639 ac_sub_srcdir=$srcdir ;;
3640 /*) # Absolute path.
3641 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3643 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3646 # Check for guested configure; otherwise get Cygnus style configure.
3647 if test -f $ac_sub_srcdir/configure; then
3648 ac_sub_configure=$ac_sub_srcdir/configure
3649 elif test -f $ac_sub_srcdir/configure.in; then
3650 ac_sub_configure=$ac_configure
3652 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3656 # The recursion is here.
3657 if test -n "$ac_sub_configure"; then
3659 # Make the cache file name correct relative to the subdirectory.
3660 case "$cache_file" in
3661 /*) ac_sub_cache_file=$cache_file ;;
3663 ac_sub_cache_file="$ac_dots$cache_file" ;;
3666 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3667 # The eval makes quoting arguments work.
3668 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3671 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3680 rm -f $srcdir/GNUmakefile
3681 cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile
3682 chmod 444 $srcdir/GNUmakefile
3683 if test "$builddir" != "."; then
3685 cp $srcdir/make/srcdir.make.in GNUmakefile
3686 chmod 444 GNUmakefile