lilypond-1.1.49
[lilypond.git] / configure
blob5f15b0176c2fc5937372263450372b314fc8d6f4
1 #! /bin/sh
3 ac_help="$ac_help
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"
10 else
11 gtkmm_config_prefix=""
14 ac_help="$ac_help
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"
21 else
22 gtkmm_config_exec_prefix=""
25 ac_help="$ac_help
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"
31 else
32 enable_gtkmmtest=yes
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)
60 # Guess values for system-dependent variables and create Makefiles.
61 # Generated automatically using autoconf version 2.13
62 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
64 # This configure script is free software; the Free Software Foundation
65 # gives unlimited permission to copy, distribute and modify it.
67 # Defaults:
68 ac_help=
69 ac_default_prefix=/usr/local
70 # Any additions from configure.in:
71 ac_help="$ac_help
72 enable-config=FILE put configure settings in config-FILE.make"
73 ac_help="$ac_help
74 enable-checking set runtime checks (assert calls). Default: on"
75 ac_help="$ac_help
76 enable-optimise use maximal speed optimisations. Default: off"
77 ac_help="$ac_help
78 enable-profiling compile with gprof support. Default: off"
79 ac_help="$ac_help
80 enable-debugging set debug info. Default: on"
81 ac_help="$ac_help
82 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
83 ac_help="$ac_help
84 enable-printing turn on debug printing. Default: off"
85 ac_help="$ac_help
86 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
87 ac_help="$ac_help
88 with-lang=LANG use LANG as language to emit messages"
89 ac_help="$ac_help
90 enable-tex-tfmdir=DIR set the tex-directory where cmr10.tfm lives (default: use kpsewhich)"
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
95 build=NONE
96 cache_file=./config.cache
97 exec_prefix=NONE
98 host=NONE
99 no_create=
100 nonopt=NONE
101 no_recursion=
102 prefix=NONE
103 program_prefix=NONE
104 program_suffix=NONE
105 program_transform_name=s,x,x,
106 silent=
107 site=
108 srcdir=
109 target=NONE
110 verbose=
111 x_includes=NONE
112 x_libraries=NONE
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
126 # Initialize some other variables.
127 subdirs=
128 MFLAGS= MAKEFLAGS=
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
131 ac_max_here_lines=12
133 ac_prev=
134 for ac_option
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
140 ac_prev=
141 continue
144 case "$ac_option" in
145 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146 *) ac_optarg= ;;
147 esac
149 # Accept the important Cygnus configure options, so we can diagnose typos.
151 case "$ac_option" in
153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
154 ac_prev=bindir ;;
155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156 bindir="$ac_optarg" ;;
158 -build | --build | --buil | --bui | --bu)
159 ac_prev=build ;;
160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161 build="$ac_optarg" ;;
163 -cache-file | --cache-file | --cache-fil | --cache-fi \
164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165 ac_prev=cache_file ;;
166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168 cache_file="$ac_optarg" ;;
170 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171 ac_prev=datadir ;;
172 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173 | --da=*)
174 datadir="$ac_optarg" ;;
176 -disable-* | --disable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* | --enable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 case "$ac_option" in
193 *=*) ;;
194 *) ac_optarg=yes ;;
195 esac
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200 | --exec | --exe | --ex)
201 ac_prev=exec_prefix ;;
202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204 | --exec=* | --exe=* | --ex=*)
205 exec_prefix="$ac_optarg" ;;
207 -gas | --gas | --ga | --g)
208 # Obsolete; use --with-gas.
209 with_gas=yes ;;
211 -help | --help | --hel | --he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
214 cat << EOF
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
217 Configuration:
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
225 [$ac_default_prefix]
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 [same as prefix]
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
232 [PREFIX/share]
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 [PREFIX/com]
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
248 cat << EOF
249 Host type:
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
264 exit 0 ;;
266 -host | --host | --hos | --ho)
267 ac_prev=host ;;
268 -host=* | --host=* | --hos=* | --ho=*)
269 host="$ac_optarg" ;;
271 -includedir | --includedir | --includedi | --included | --include \
272 | --includ | --inclu | --incl | --inc)
273 ac_prev=includedir ;;
274 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275 | --includ=* | --inclu=* | --incl=* | --inc=*)
276 includedir="$ac_optarg" ;;
278 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 ac_prev=infodir ;;
280 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281 infodir="$ac_optarg" ;;
283 -libdir | --libdir | --libdi | --libd)
284 ac_prev=libdir ;;
285 -libdir=* | --libdir=* | --libdi=* | --libd=*)
286 libdir="$ac_optarg" ;;
288 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289 | --libexe | --libex | --libe)
290 ac_prev=libexecdir ;;
291 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292 | --libexe=* | --libex=* | --libe=*)
293 libexecdir="$ac_optarg" ;;
295 -localstatedir | --localstatedir | --localstatedi | --localstated \
296 | --localstate | --localstat | --localsta | --localst \
297 | --locals | --local | --loca | --loc | --lo)
298 ac_prev=localstatedir ;;
299 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302 localstatedir="$ac_optarg" ;;
304 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 ac_prev=mandir ;;
306 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307 mandir="$ac_optarg" ;;
309 -nfp | --nfp | --nf)
310 # Obsolete; use --without-fp.
311 with_fp=no ;;
313 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314 | --no-cr | --no-c)
315 no_create=yes ;;
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
319 no_recursion=yes ;;
321 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323 | --oldin | --oldi | --old | --ol | --o)
324 ac_prev=oldincludedir ;;
325 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328 oldincludedir="$ac_optarg" ;;
330 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 ac_prev=prefix ;;
332 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333 prefix="$ac_optarg" ;;
335 -program-prefix | --program-prefix | --program-prefi | --program-pref \
336 | --program-pre | --program-pr | --program-p)
337 ac_prev=program_prefix ;;
338 -program-prefix=* | --program-prefix=* | --program-prefi=* \
339 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340 program_prefix="$ac_optarg" ;;
342 -program-suffix | --program-suffix | --program-suffi | --program-suff \
343 | --program-suf | --program-su | --program-s)
344 ac_prev=program_suffix ;;
345 -program-suffix=* | --program-suffix=* | --program-suffi=* \
346 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347 program_suffix="$ac_optarg" ;;
349 -program-transform-name | --program-transform-name \
350 | --program-transform-nam | --program-transform-na \
351 | --program-transform-n | --program-transform- \
352 | --program-transform | --program-transfor \
353 | --program-transfo | --program-transf \
354 | --program-trans | --program-tran \
355 | --progr-tra | --program-tr | --program-t)
356 ac_prev=program_transform_name ;;
357 -program-transform-name=* | --program-transform-name=* \
358 | --program-transform-nam=* | --program-transform-na=* \
359 | --program-transform-n=* | --program-transform-=* \
360 | --program-transform=* | --program-transfor=* \
361 | --program-transfo=* | --program-transf=* \
362 | --program-trans=* | --program-tran=* \
363 | --progr-tra=* | --program-tr=* | --program-t=*)
364 program_transform_name="$ac_optarg" ;;
366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367 | -silent | --silent | --silen | --sile | --sil)
368 silent=yes ;;
370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 ac_prev=sbindir ;;
372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 | --sbi=* | --sb=*)
374 sbindir="$ac_optarg" ;;
376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378 | --sharedst | --shareds | --shared | --share | --shar \
379 | --sha | --sh)
380 ac_prev=sharedstatedir ;;
381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 | --sha=* | --sh=*)
385 sharedstatedir="$ac_optarg" ;;
387 -site | --site | --sit)
388 ac_prev=site ;;
389 -site=* | --site=* | --sit=*)
390 site="$ac_optarg" ;;
392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393 ac_prev=srcdir ;;
394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395 srcdir="$ac_optarg" ;;
397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398 | --syscon | --sysco | --sysc | --sys | --sy)
399 ac_prev=sysconfdir ;;
400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402 sysconfdir="$ac_optarg" ;;
404 -target | --target | --targe | --targ | --tar | --ta | --t)
405 ac_prev=target ;;
406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407 target="$ac_optarg" ;;
409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
410 verbose=yes ;;
412 -version | --version | --versio | --versi | --vers)
413 echo "configure generated by autoconf version 2.13"
414 exit 0 ;;
416 -with-* | --with-*)
417 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 case "$ac_option" in
424 *=*) ;;
425 *) ac_optarg=yes ;;
426 esac
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* | --without-*)
430 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
438 --x)
439 # Obsolete; use --with-x.
440 with_x=yes ;;
442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443 | --x-incl | --x-inc | --x-in | --x-i)
444 ac_prev=x_includes ;;
445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447 x_includes="$ac_optarg" ;;
449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451 ac_prev=x_libraries ;;
452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454 x_libraries="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 nonopt="$ac_option"
469 esac
470 done
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
479 # 0 standard input
480 # 1 file creation
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
487 exec 6>/dev/null
488 else
489 exec 6>&1
491 exec 5>./config.log
493 echo "\
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
496 " 1>&5
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
500 ac_configure_args=
501 for ac_arg
503 case "$ac_arg" in
504 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505 | --no-cr | --no-c) ;;
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 esac
512 done
514 # NLS nuisances.
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
527 echo > confdefs.h
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=make/lilypond.lsm.in
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted=yes
536 # Try the directory containing this script, then its parent.
537 ac_prog=$0
538 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540 srcdir=$ac_confdir
541 if test ! -r $srcdir/$ac_unique_file; then
542 srcdir=..
544 else
545 ac_srcdir_defaulted=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 else
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE; then
559 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560 else
561 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
567 . "$ac_site_file"
569 done
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
573 . $cache_file
574 else
575 echo "creating cache $cache_file"
576 > $cache_file
579 ac_ext=c
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
586 ac_exeext=
587 ac_objext=o
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='
592 ' ac_t=' '
593 else
594 ac_n=-n ac_c= ac_t=
596 else
597 ac_n= ac_c='\c' ac_t=
603 # Bootstrap StepMake configure
606 . $srcdir/VERSION
607 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
608 if test x$MY_PATCH_LEVEL != x; then
609 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
612 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
613 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
614 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
616 # No versioning on directory names of sub-packages
617 # urg, urg
618 stepmake=${datadir}/stepmake
619 presome=${prefix}
620 if test "$prefix" = "NONE"; then
621 presome=${ac_default_prefix}
623 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
625 echo $ac_n "checking Package""... $ac_c" 1>&6
626 echo "configure:627: checking Package" >&5
627 if test "x$PACKAGE" = "xSTEPMAKE"; then
628 echo "$ac_t""Stepmake package!" 1>&6
629 (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
630 (cd stepmake; rm -f bin; ln -s ../bin .)
631 ac_aux_dir=
632 for ac_dir in bin $srcdir/bin; do
633 if test -f $ac_dir/install-sh; then
634 ac_aux_dir=$ac_dir
635 ac_install_sh="$ac_aux_dir/install-sh -c"
636 break
637 elif test -f $ac_dir/install.sh; then
638 ac_aux_dir=$ac_dir
639 ac_install_sh="$ac_aux_dir/install.sh -c"
640 break
642 done
643 if test -z "$ac_aux_dir"; then
644 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
646 ac_config_guess=$ac_aux_dir/config.guess
647 ac_config_sub=$ac_aux_dir/config.sub
648 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
650 stepmake=stepmake
651 else
652 echo "$ac_t""$PACKAGE" 1>&6
653 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
654 echo "configure:655: checking for stepmake" >&5
655 # Check for installed stepmake
656 if test -d $stepmake; then
657 echo "$ac_t""$stepmake" 1>&6
658 else
659 stepmake='$(depth)'/stepmake
660 echo "$ac_t""./stepmake ($datadir/stepmake not found)" 1>&6
662 ac_aux_dir=
663 for ac_dir in \
664 $HOME/usr/local/share/stepmake/bin\
665 $HOME/usr/local/lib/stepmake/bin\
666 $HOME/usr/share/stepmake/bin\
667 $HOME/usr/lib/stepmake/bin\
668 /usr/local/share/stepmake/bin\
669 /usr/local/lib/stepmake/bin\
670 /usr/share/stepmake/bin\
671 /usr/lib/stepmake/bin\
672 stepmake/bin\
673 $srcdir/\
674 $HOME/usr/local/share/stepmake/bin\
675 $HOME/usr/local/lib/stepmake/bin\
676 $HOME/usr/share/stepmake/bin\
677 $HOME/usr/lib/stepmake/bin\
678 /usr/local/share/stepmake/bin\
679 /usr/local/lib/stepmake/bin\
680 /usr/share/stepmake/bin\
681 /usr/lib/stepmake/bin\
682 stepmake/bin\
683 ; do
684 if test -f $ac_dir/install-sh; then
685 ac_aux_dir=$ac_dir
686 ac_install_sh="$ac_aux_dir/install-sh -c"
687 break
688 elif test -f $ac_dir/install.sh; then
689 ac_aux_dir=$ac_dir
690 ac_install_sh="$ac_aux_dir/install.sh -c"
691 break
693 done
694 if test -z "$ac_aux_dir"; then
695 { echo "configure: error: can not find install-sh or install.sh in \
696 $HOME/usr/local/share/stepmake/bin\
697 $HOME/usr/local/lib/stepmake/bin\
698 $HOME/usr/share/stepmake/bin\
699 $HOME/usr/lib/stepmake/bin\
700 /usr/local/share/stepmake/bin\
701 /usr/local/lib/stepmake/bin\
702 /usr/share/stepmake/bin\
703 /usr/lib/stepmake/bin\
704 stepmake/bin\
705 $srcdir/\
706 $HOME/usr/local/share/stepmake/bin\
707 $HOME/usr/local/lib/stepmake/bin\
708 $HOME/usr/share/stepmake/bin\
709 $HOME/usr/lib/stepmake/bin\
710 /usr/local/share/stepmake/bin\
711 /usr/local/lib/stepmake/bin\
712 /usr/share/stepmake/bin\
713 /usr/lib/stepmake/bin\
714 stepmake/bin\
715 " 1>&2; exit 1; }
717 ac_config_guess=$ac_aux_dir/config.guess
718 ac_config_sub=$ac_aux_dir/config.sub
719 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
727 cat >> confdefs.h <<EOF
728 #define PACKAGE "${PACKAGE_NAME}"
731 cat >> confdefs.h <<EOF
732 #define TOPLEVEL_VERSION "${FULL_VERSION}"
736 if test "$package_depth" = "" ; then
737 package_depth="."
738 else
739 package_depth="../$package_depth"
741 export package_depth
744 AUTOGENERATE="This file was automatically generated by configure"
746 absolute_builddir="`pwd`"
749 STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
750 if test "x$STATE_VECTOR" != "x"; then
751 STATE_VECTOR="\$(depth)/$STATE_VECTOR"
755 CONFIGSUFFIX=
756 # Check whether --enable-config or --disable-config was given.
757 if test "${enable_config+set}" = set; then
758 enableval="$enable_config"
759 CONFIGSUFFIX=$enableval
763 if test "$CONFIGSUFFIX" != "" ; then
764 CONFIGFILE=config-$CONFIGSUFFIX
765 else
766 CONFIGFILE=config
771 # Make sure we can run config.sub.
772 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
773 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
776 echo $ac_n "checking host system type""... $ac_c" 1>&6
777 echo "configure:778: checking host system type" >&5
779 host_alias=$host
780 case "$host_alias" in
781 NONE)
782 case $nonopt in
783 NONE)
784 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
785 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
786 fi ;;
787 *) host_alias=$nonopt ;;
788 esac ;;
789 esac
791 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
792 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
793 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
794 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
795 echo "$ac_t""$host" 1>&6
797 for ac_prog in gmake make
799 # Extract the first word of "$ac_prog", so it can be a program name with args.
800 set dummy $ac_prog; ac_word=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
805 else
806 if test -n "$MAKE"; then
807 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
808 else
809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
810 ac_dummy="$PATH"
811 for ac_dir in $ac_dummy; do
812 test -z "$ac_dir" && ac_dir=.
813 if test -f $ac_dir/$ac_word; then
814 ac_cv_prog_MAKE="$ac_prog"
815 break
817 done
818 IFS="$ac_save_ifs"
821 MAKE="$ac_cv_prog_MAKE"
822 if test -n "$MAKE"; then
823 echo "$ac_t""$MAKE" 1>&6
824 else
825 echo "$ac_t""no" 1>&6
828 test -n "$MAKE" && break
829 done
830 test -n "$MAKE" || MAKE="error"
832 for ac_prog in find
834 # Extract the first word of "$ac_prog", so it can be a program name with args.
835 set dummy $ac_prog; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840 else
841 if test -n "$FIND"; then
842 ac_cv_prog_FIND="$FIND" # Let the user override the test.
843 else
844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
845 ac_dummy="$PATH"
846 for ac_dir in $ac_dummy; do
847 test -z "$ac_dir" && ac_dir=.
848 if test -f $ac_dir/$ac_word; then
849 ac_cv_prog_FIND="$ac_prog"
850 break
852 done
853 IFS="$ac_save_ifs"
856 FIND="$ac_cv_prog_FIND"
857 if test -n "$FIND"; then
858 echo "$ac_t""$FIND" 1>&6
859 else
860 echo "$ac_t""no" 1>&6
863 test -n "$FIND" && break
864 done
865 test -n "$FIND" || FIND="error"
869 for ac_prog in tar
871 # Extract the first word of "$ac_prog", so it can be a program name with args.
872 set dummy $ac_prog; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 if test -n "$TAR"; then
879 ac_cv_prog_TAR="$TAR" # Let the user override the test.
880 else
881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
882 ac_dummy="$PATH"
883 for ac_dir in $ac_dummy; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
886 ac_cv_prog_TAR="$ac_prog"
887 break
889 done
890 IFS="$ac_save_ifs"
893 TAR="$ac_cv_prog_TAR"
894 if test -n "$TAR"; then
895 echo "$ac_t""$TAR" 1>&6
896 else
897 echo "$ac_t""no" 1>&6
900 test -n "$TAR" && break
901 done
902 test -n "$TAR" || TAR="error"
905 if test "x`uname`" = "xHP-UX"; then
906 # Extract the first word of "bash", so it can be a program name with args.
907 set dummy bash; ac_word=$2
908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
909 echo "configure:910: checking for $ac_word" >&5
910 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
912 else
913 case "$BASH" in
915 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
917 ?:/*)
918 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
922 ac_dummy="$PATH"
923 for ac_dir in $ac_dummy; do
924 test -z "$ac_dir" && ac_dir=.
925 if test -f $ac_dir/$ac_word; then
926 ac_cv_path_BASH="$ac_dir/$ac_word"
927 break
929 done
930 IFS="$ac_save_ifs"
931 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
933 esac
935 BASH="$ac_cv_path_BASH"
936 if test -n "$BASH"; then
937 echo "$ac_t""$BASH" 1>&6
938 else
939 echo "$ac_t""no" 1>&6
943 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
944 warn_b=yes
946 # Extract the first word of "bash", so it can be a program name with args.
947 set dummy bash; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
952 else
953 case "$SHELL" in
955 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
957 ?:/*)
958 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
962 ac_dummy="$PATH"
963 for ac_dir in $ac_dummy; do
964 test -z "$ac_dir" && ac_dir=.
965 if test -f $ac_dir/$ac_word; then
966 ac_cv_path_SHELL="$ac_dir/$ac_word"
967 break
969 done
970 IFS="$ac_save_ifs"
971 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
973 esac
975 SHELL="$ac_cv_path_SHELL"
976 if test -n "$SHELL"; then
977 echo "$ac_t""$SHELL" 1>&6
978 else
979 echo "$ac_t""no" 1>&6
982 else
983 # Extract the first word of "bash", so it can be a program name with args.
984 set dummy bash; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 case "$BASH" in
992 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
994 ?:/*)
995 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
999 ac_dummy="$PATH"
1000 for ac_dir in $ac_dummy; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1003 ac_cv_path_BASH="$ac_dir/$ac_word"
1004 break
1006 done
1007 IFS="$ac_save_ifs"
1008 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1010 esac
1012 BASH="$ac_cv_path_BASH"
1013 if test -n "$BASH"; then
1014 echo "$ac_t""$BASH" 1>&6
1015 else
1016 echo "$ac_t""no" 1>&6
1019 SHELL=/bin/sh
1024 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1025 set dummy ${PYTHON:-python}; ac_word=$2
1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027 echo "configure:1028: checking for $ac_word" >&5
1028 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1030 else
1031 case "$PYTHON" in
1033 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1035 ?:/*)
1036 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1040 ac_dummy="$PATH"
1041 for ac_dir in $ac_dummy; do
1042 test -z "$ac_dir" && ac_dir=.
1043 if test -f $ac_dir/$ac_word; then
1044 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1045 break
1047 done
1048 IFS="$ac_save_ifs"
1049 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1051 esac
1053 PYTHON="$ac_cv_path_PYTHON"
1054 if test -n "$PYTHON"; then
1055 echo "$ac_t""$PYTHON" 1>&6
1056 else
1057 echo "$ac_t""no" 1>&6
1062 if test $MAKE != "error" ; then
1063 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1064 if test "$?" = 1
1065 then
1067 echo "configure: warning: Please install *GNU* make" 1>&2
1068 warn_b=yes
1074 result="`echo \"$PYTHON\" | grep echo`"
1075 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1077 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1078 warn_b=yes
1083 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1084 LN=cp # hard link does not work under cygnus-nt
1085 LN_S='cp -r' # symbolic link does not work for native nt
1086 ZIP="zip -r -9" #
1087 DOTEXE=.exe
1088 # urg
1089 # DIRSEP='\\'
1090 # PATHSEP=';'
1092 # cygwin fixes all these things.
1093 # it seems these were used because of dos-style TEXINPUTS and
1094 # MFINPUTS needed for miktex.
1095 # but this breaks parsing of all other cygwin/unix style paths.
1097 # if your (mik)tex breaks, make a:
1098 # /usr/local/bin/tex:
1099 # #!/bin/sh
1100 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1102 # and
1104 # /usr/local/bin/mf:
1105 # #!/bin/sh
1106 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1108 # this way, you may have buildscripts/out/lilypond-profile
1109 # 'automatically' sourced from /usr/etc/profile.d/ too.
1111 DIRSEP='/'
1112 PATHSEP=':'
1113 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1114 else
1115 DIRSEP='/'
1116 PATHSEP=':'
1117 LN=ln
1118 LN_S='ln -s'
1119 ZIP="zip -r -9"
1120 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1127 cat >> confdefs.h <<EOF
1128 #define DIRSEP '${DIRSEP}'
1131 cat >> confdefs.h <<EOF
1132 #define PATHSEP '${PATHSEP}'
1140 if test "$datadir" = "\${prefix}/share"; then
1141 datadir='${prefix}/share/'$package
1143 DIR_DATADIR=${datadir}
1144 presome=${prefix}
1145 if test "$prefix" = "NONE"; then
1146 presome=${ac_default_prefix}
1148 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1151 cat >> confdefs.h <<EOF
1152 #define DIR_DATADIR "${DIR_DATADIR}"
1158 # For all packages except the StepMake package itself
1159 subdirs="stepmake"
1162 # Uncomment the configuration options your package needs.
1164 # -O is necessary to get inlining
1165 OPTIMIZE=""
1166 CXXFLAGS=${CXXFLAGS:-""}
1167 CFLAGS=${CFLAGS:-""}
1168 checking_b=yes
1169 optimise_b=no
1170 profile_b=no
1171 debug_b=yes
1173 # Check whether --enable-checking or --disable-checking was given.
1174 if test "${enable_checking+set}" = set; then
1175 enableval="$enable_checking"
1176 checking_b=$enableval
1180 # actually, the default is: tja='-O' to get inlining...
1181 # off='' --jcn
1183 #actually, that sucks.
1184 # tja looks like a typo. Default is optimisation off. --hwn
1186 # Check whether --enable-optimise or --disable-optimise was given.
1187 if test "${enable_optimise+set}" = set; then
1188 enableval="$enable_optimise"
1189 optimise_b=$enableval
1193 # Check whether --enable-profiling or --disable-profiling was given.
1194 if test "${enable_profiling+set}" = set; then
1195 enableval="$enable_profiling"
1196 profile_b=$enableval
1200 # Check whether --enable-debugging or --disable-debugging was given.
1201 if test "${enable_debugging+set}" = set; then
1202 enableval="$enable_debugging"
1203 debug_b=$enableval
1207 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1208 if test "${enable_mingw_prefix+set}" = set; then
1209 enableval="$enable_mingw_prefix"
1210 MINGWPREFIX=$enableval
1211 else
1212 MINGWPREFIX=no
1216 if test "$printing_b" = no; then
1217 # ugh
1218 cat >> confdefs.h <<\EOF
1219 #define NPRINT 1
1222 DEFINES="$DEFINES -DNPRINT"
1225 if test "$checking_b" = no; then
1226 # ugh
1227 cat >> confdefs.h <<\EOF
1228 #define NDEBUG 1
1231 DEFINES="$DEFINES -DNDEBUG"
1234 if test "$optimise_b" = yes; then
1235 OPTIMIZE="-O2 -finline-functions"
1238 if test "$optimise_b" = no; then
1239 OPTIMIZE=""
1242 if test $profile_b = yes; then
1243 EXTRA_LIBES="-pg"
1244 OPTIMIZE="$OPTIMIZE -pg"
1247 if test $debug_b = yes; then
1248 OPTIMIZE="$OPTIMIZE -g"
1251 # however, C++ support in mingw32 v 0.1.4 is still flaky
1252 if test x$MINGWPREFIX != xno; then
1253 ICFLAGS="-I$MINGWPREFIX/include"
1254 ILDFLAGS="-$MINGWPREFIX/lib"
1257 # Extract the first word of "gcc", so it can be a program name with args.
1258 set dummy gcc; ac_word=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264 if test -n "$CC"; then
1265 ac_cv_prog_CC="$CC" # Let the user override the test.
1266 else
1267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1268 ac_dummy="$PATH"
1269 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_CC="gcc"
1273 break
1275 done
1276 IFS="$ac_save_ifs"
1279 CC="$ac_cv_prog_CC"
1280 if test -n "$CC"; then
1281 echo "$ac_t""$CC" 1>&6
1282 else
1283 echo "$ac_t""no" 1>&6
1286 if test -z "$CC"; then
1287 # Extract the first word of "cc", so it can be a program name with args.
1288 set dummy cc; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294 if test -n "$CC"; then
1295 ac_cv_prog_CC="$CC" # Let the user override the test.
1296 else
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1298 ac_prog_rejected=no
1299 ac_dummy="$PATH"
1300 for ac_dir in $ac_dummy; do
1301 test -z "$ac_dir" && ac_dir=.
1302 if test -f $ac_dir/$ac_word; then
1303 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1304 ac_prog_rejected=yes
1305 continue
1307 ac_cv_prog_CC="cc"
1308 break
1310 done
1311 IFS="$ac_save_ifs"
1312 if test $ac_prog_rejected = yes; then
1313 # We found a bogon in the path, so make sure we never use it.
1314 set dummy $ac_cv_prog_CC
1315 shift
1316 if test $# -gt 0; then
1317 # We chose a different compiler from the bogus one.
1318 # However, it has the same basename, so the bogon will be chosen
1319 # first if we set CC to just the basename; use the full file name.
1320 shift
1321 set dummy "$ac_dir/$ac_word" "$@"
1322 shift
1323 ac_cv_prog_CC="$@"
1328 CC="$ac_cv_prog_CC"
1329 if test -n "$CC"; then
1330 echo "$ac_t""$CC" 1>&6
1331 else
1332 echo "$ac_t""no" 1>&6
1335 if test -z "$CC"; then
1336 case "`uname -s`" in
1337 *win32* | *WIN32*)
1338 # Extract the first word of "cl", so it can be a program name with args.
1339 set dummy cl; ac_word=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1344 else
1345 if test -n "$CC"; then
1346 ac_cv_prog_CC="$CC" # Let the user override the test.
1347 else
1348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1349 ac_dummy="$PATH"
1350 for ac_dir in $ac_dummy; do
1351 test -z "$ac_dir" && ac_dir=.
1352 if test -f $ac_dir/$ac_word; then
1353 ac_cv_prog_CC="cl"
1354 break
1356 done
1357 IFS="$ac_save_ifs"
1360 CC="$ac_cv_prog_CC"
1361 if test -n "$CC"; then
1362 echo "$ac_t""$CC" 1>&6
1363 else
1364 echo "$ac_t""no" 1>&6
1367 esac
1369 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1372 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1373 echo "configure:1374: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1375 ac_ext=c
1376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1380 cross_compiling=$ac_cv_prog_cc_cross
1382 cat > conftest.$ac_ext << EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1387 main(){return(0);}
1389 if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1390 ac_cv_prog_cc_works=yes
1391 # If we can't run a trivial program, we are probably using a cross compiler.
1392 if (./conftest; exit) 2>/dev/null; then
1393 ac_cv_prog_cc_cross=no
1394 else
1395 ac_cv_prog_cc_cross=yes
1397 else
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1400 ac_cv_prog_cc_works=no
1402 rm -fr conftest*
1403 ac_ext=c
1404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1405 ac_cpp='$CPP $CPPFLAGS'
1406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1408 cross_compiling=$ac_cv_prog_cc_cross
1410 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1411 if test $ac_cv_prog_cc_works = no; then
1412 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1414 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1415 echo "configure:1416: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1416 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1417 cross_compiling=$ac_cv_prog_cc_cross
1419 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether we are using GNU C" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424 cat > conftest.c <<EOF
1425 #ifdef __GNUC__
1426 yes;
1427 #endif
1429 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1430 ac_cv_prog_gcc=yes
1431 else
1432 ac_cv_prog_gcc=no
1436 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1438 if test $ac_cv_prog_gcc = yes; then
1439 GCC=yes
1440 else
1441 GCC=
1444 ac_test_CFLAGS="${CFLAGS+set}"
1445 ac_save_CFLAGS="$CFLAGS"
1446 CFLAGS=
1447 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1448 echo "configure:1449: checking whether ${CC-cc} accepts -g" >&5
1449 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 echo 'void f(){}' > conftest.c
1453 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1454 ac_cv_prog_cc_g=yes
1455 else
1456 ac_cv_prog_cc_g=no
1458 rm -f conftest*
1462 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1463 if test "$ac_test_CFLAGS" = set; then
1464 CFLAGS="$ac_save_CFLAGS"
1465 elif test $ac_cv_prog_cc_g = yes; then
1466 if test "$GCC" = yes; then
1467 CFLAGS="-g -O2"
1468 else
1469 CFLAGS="-g"
1471 else
1472 if test "$GCC" = yes; then
1473 CFLAGS="-O2"
1474 else
1475 CFLAGS=
1479 LD='$(CC)'
1482 CFLAGS="$CFLAGS $OPTIMIZE"
1483 CPPFLAGS=${CPPFLAGS:-""}
1492 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1494 printing_b=no
1495 # Check whether --enable-printing or --disable-printing was given.
1496 if test "${enable_printing+set}" = set; then
1497 enableval="$enable_printing"
1498 printing_b=$enableval
1502 if test "$optimise_b" = yes; then
1503 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1504 cat >> confdefs.h <<\EOF
1505 #define STRINGS_UTILS_INLINED 1
1510 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1511 echo "configure:1512: checking how to run the C++ preprocessor" >&5
1512 if test -z "$CXXCPP"; then
1513 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1515 else
1516 ac_ext=C
1517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1518 ac_cpp='$CXXCPP $CPPFLAGS'
1519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1521 cross_compiling=$ac_cv_prog_cxx_cross
1522 CXXCPP="${CXX-g++} -E"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 #include <stdlib.h>
1528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1529 { (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1531 if test -z "$ac_err"; then
1533 else
1534 echo "$ac_err" >&5
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1537 rm -rf conftest*
1538 CXXCPP=/lib/cpp
1540 rm -f conftest*
1541 ac_cv_prog_CXXCPP="$CXXCPP"
1542 ac_ext=C
1543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1544 ac_cpp='$CXXCPP $CPPFLAGS'
1545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1547 cross_compiling=$ac_cv_prog_cxx_cross
1550 CXXCPP="$ac_cv_prog_CXXCPP"
1551 echo "$ac_t""$CXXCPP" 1>&6
1554 ac_ext=C
1555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1556 ac_cpp='$CXXCPP $CPPFLAGS'
1557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1559 cross_compiling=$ac_cv_prog_cxx_cross
1561 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1563 # Extract the first word of "$ac_prog", so it can be a program name with args.
1564 set dummy $ac_prog; ac_word=$2
1565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1566 echo "configure:1567: checking for $ac_word" >&5
1567 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1569 else
1570 if test -n "$CXX"; then
1571 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1572 else
1573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1574 ac_dummy="$PATH"
1575 for ac_dir in $ac_dummy; do
1576 test -z "$ac_dir" && ac_dir=.
1577 if test -f $ac_dir/$ac_word; then
1578 ac_cv_prog_CXX="$ac_prog"
1579 break
1581 done
1582 IFS="$ac_save_ifs"
1585 CXX="$ac_cv_prog_CXX"
1586 if test -n "$CXX"; then
1587 echo "$ac_t""$CXX" 1>&6
1588 else
1589 echo "$ac_t""no" 1>&6
1592 test -n "$CXX" && break
1593 done
1594 test -n "$CXX" || CXX="gcc"
1597 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1598 echo "configure:1599: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1600 ac_ext=C
1601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1602 ac_cpp='$CXXCPP $CPPFLAGS'
1603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1605 cross_compiling=$ac_cv_prog_cxx_cross
1607 cat > conftest.$ac_ext << EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1612 int main(){return(0);}
1614 if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1615 ac_cv_prog_cxx_works=yes
1616 # If we can't run a trivial program, we are probably using a cross compiler.
1617 if (./conftest; exit) 2>/dev/null; then
1618 ac_cv_prog_cxx_cross=no
1619 else
1620 ac_cv_prog_cxx_cross=yes
1622 else
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1625 ac_cv_prog_cxx_works=no
1627 rm -fr conftest*
1628 ac_ext=C
1629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1630 ac_cpp='$CXXCPP $CPPFLAGS'
1631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1633 cross_compiling=$ac_cv_prog_cxx_cross
1635 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1636 if test $ac_cv_prog_cxx_works = no; then
1637 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1639 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1640 echo "configure:1641: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1641 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1642 cross_compiling=$ac_cv_prog_cxx_cross
1644 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1645 echo "configure:1646: checking whether we are using GNU C++" >&5
1646 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1648 else
1649 cat > conftest.C <<EOF
1650 #ifdef __GNUC__
1651 yes;
1652 #endif
1654 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1655 ac_cv_prog_gxx=yes
1656 else
1657 ac_cv_prog_gxx=no
1661 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1663 if test $ac_cv_prog_gxx = yes; then
1664 GXX=yes
1665 else
1666 GXX=
1669 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1670 ac_save_CXXFLAGS="$CXXFLAGS"
1671 CXXFLAGS=
1672 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether ${CXX-g++} accepts -g" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677 echo 'void f(){}' > conftest.cc
1678 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1679 ac_cv_prog_cxx_g=yes
1680 else
1681 ac_cv_prog_cxx_g=no
1683 rm -f conftest*
1687 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1688 if test "$ac_test_CXXFLAGS" = set; then
1689 CXXFLAGS="$ac_save_CXXFLAGS"
1690 elif test $ac_cv_prog_cxx_g = yes; then
1691 if test "$GXX" = yes; then
1692 CXXFLAGS="-g -O2"
1693 else
1694 CXXFLAGS="-g"
1696 else
1697 if test "$GXX" = yes; then
1698 CXXFLAGS="-O2"
1699 else
1700 CXXFLAGS=
1705 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1706 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1707 echo "configure:1708: checking for FlexLexer.h" >&5
1708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include <FlexLexer.h>
1716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1719 if test -z "$ac_err"; then
1720 rm -rf conftest*
1721 eval "ac_cv_header_$ac_safe=yes"
1722 else
1723 echo "$ac_err" >&5
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1726 rm -rf conftest*
1727 eval "ac_cv_header_$ac_safe=no"
1729 rm -f conftest*
1731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1733 true
1734 else
1735 echo "$ac_t""no" 1>&6
1737 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1738 warn_b=yes
1743 CPPFLAGS="$CPPFLAGS $DEFINES"
1744 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1745 LDFLAGS=$EXTRA_LIBES
1749 LD='$(CXX)'
1753 # ugh autoconf
1754 # urg, egcs: how to check for egcs >= 1.1?
1755 if $CXX --version | grep '2\.8' > /dev/null ||
1756 $CXX --version | grep 'egcs' > /dev/null
1757 then
1758 true
1759 else
1761 echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2
1762 warn_b=yes
1767 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether explicit instantiation is needed" >&5
1769 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1776 template <class T> struct foo { static int baz; };
1777 template <class T> int foo<T>::baz = 1;
1779 int main() {
1780 return foo<int>::baz;
1781 ; return 0; }
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784 rm -rf conftest*
1785 lily_cv_need_explicit_instantiation=no
1786 else
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 rm -rf conftest*
1790 lily_cv_need_explicit_instantiation=yes
1792 rm -f conftest*
1795 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1796 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1797 cat >> confdefs.h <<\EOF
1798 #define NEED_EXPLICIT_INSTANTIATION 1
1804 # ugh, automake: we want (and check for) bison
1805 for ac_prog in 'bison -y' byacc
1807 # Extract the first word of "$ac_prog", so it can be a program name with args.
1808 set dummy $ac_prog; ac_word=$2
1809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_word" >&5
1811 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1813 else
1814 if test -n "$YACC"; then
1815 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1816 else
1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1818 ac_dummy="$PATH"
1819 for ac_dir in $ac_dummy; do
1820 test -z "$ac_dir" && ac_dir=.
1821 if test -f $ac_dir/$ac_word; then
1822 ac_cv_prog_YACC="$ac_prog"
1823 break
1825 done
1826 IFS="$ac_save_ifs"
1829 YACC="$ac_cv_prog_YACC"
1830 if test -n "$YACC"; then
1831 echo "$ac_t""$YACC" 1>&6
1832 else
1833 echo "$ac_t""no" 1>&6
1836 test -n "$YACC" && break
1837 done
1838 test -n "$YACC" || YACC="yacc"
1840 # ugh, automake: we want (and check for) flex
1841 # AC_PROG_LEX
1842 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1844 # AC_DECL_YYTEXT
1845 # ugh, ugh
1846 ac_cv_prog_lex_root=lex.yy
1848 for ac_prog in bison
1850 # Extract the first word of "$ac_prog", so it can be a program name with args.
1851 set dummy $ac_prog; ac_word=$2
1852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_word" >&5
1854 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857 if test -n "$BISON"; then
1858 ac_cv_prog_BISON="$BISON" # Let the user override the test.
1859 else
1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1861 ac_dummy="$PATH"
1862 for ac_dir in $ac_dummy; do
1863 test -z "$ac_dir" && ac_dir=.
1864 if test -f $ac_dir/$ac_word; then
1865 ac_cv_prog_BISON="$ac_prog"
1866 break
1868 done
1869 IFS="$ac_save_ifs"
1872 BISON="$ac_cv_prog_BISON"
1873 if test -n "$BISON"; then
1874 echo "$ac_t""$BISON" 1>&6
1875 else
1876 echo "$ac_t""no" 1>&6
1879 test -n "$BISON" && break
1880 done
1881 test -n "$BISON" || BISON="error"
1883 for ac_prog in flex
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $ac_word" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892 if test -n "$FLEX"; then
1893 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1894 else
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1896 ac_dummy="$PATH"
1897 for ac_dir in $ac_dummy; do
1898 test -z "$ac_dir" && ac_dir=.
1899 if test -f $ac_dir/$ac_word; then
1900 ac_cv_prog_FLEX="$ac_prog"
1901 break
1903 done
1904 IFS="$ac_save_ifs"
1907 FLEX="$ac_cv_prog_FLEX"
1908 if test -n "$FLEX"; then
1909 echo "$ac_t""$FLEX" 1>&6
1910 else
1911 echo "$ac_t""no" 1>&6
1914 test -n "$FLEX" && break
1915 done
1916 test -n "$FLEX" || FLEX="error"
1919 result="`echo \"$BISON\" | grep echo`"
1920 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1922 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1923 warn_b=yes
1928 result="`echo \"$FLEX\" | grep echo`"
1929 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1931 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1932 warn_b=yes
1937 if test $BISON != "error"; then
1938 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
1939 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
1941 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1942 warn_b=yes
1951 for ac_prog in ar
1953 # Extract the first word of "$ac_prog", so it can be a program name with args.
1954 set dummy $ac_prog; ac_word=$2
1955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_word" >&5
1957 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960 if test -n "$AR"; then
1961 ac_cv_prog_AR="$AR" # Let the user override the test.
1962 else
1963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1964 ac_dummy="$PATH"
1965 for ac_dir in $ac_dummy; do
1966 test -z "$ac_dir" && ac_dir=.
1967 if test -f $ac_dir/$ac_word; then
1968 ac_cv_prog_AR="$ac_prog"
1969 break
1971 done
1972 IFS="$ac_save_ifs"
1975 AR="$ac_cv_prog_AR"
1976 if test -n "$AR"; then
1977 echo "$ac_t""$AR" 1>&6
1978 else
1979 echo "$ac_t""no" 1>&6
1982 test -n "$AR" && break
1983 done
1984 test -n "$AR" || AR="error"
1986 # Extract the first word of "ranlib", so it can be a program name with args.
1987 set dummy ranlib; ac_word=$2
1988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_word" >&5
1990 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1992 else
1993 if test -n "$RANLIB"; then
1994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1995 else
1996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1997 ac_dummy="$PATH"
1998 for ac_dir in $ac_dummy; do
1999 test -z "$ac_dir" && ac_dir=.
2000 if test -f $ac_dir/$ac_word; then
2001 ac_cv_prog_RANLIB="ranlib"
2002 break
2004 done
2005 IFS="$ac_save_ifs"
2006 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2009 RANLIB="$ac_cv_prog_RANLIB"
2010 if test -n "$RANLIB"; then
2011 echo "$ac_t""$RANLIB" 1>&6
2012 else
2013 echo "$ac_t""no" 1>&6
2020 # AC_STEPMAKE_LIBTOOL
2022 lang=English
2023 ALL_LINGUAS="en nl"
2025 # with/enable ??
2026 # Check whether --with-localedir or --without-localedir was given.
2027 if test "${with_localedir+set}" = set; then
2028 withval="$with_localedir"
2029 localedir=$with_localedir
2030 else
2031 localedir='${prefix}/share/locale'
2035 # Check whether --with-lang or --without-lang was given.
2036 if test "${with_lang+set}" = set; then
2037 withval="$with_lang"
2038 language=$with_lang
2039 else
2040 language=English
2044 echo $ac_n "checking language""... $ac_c" 1>&6
2045 echo "configure:2046: checking language" >&5
2046 case "$language" in
2047 En* | en* | Am* | am* | US* | us*)
2048 lang=English;;
2049 NL | nl | Du* | du* | Ned* | ned*)
2050 lang=Dutch;;
2052 lang=English;;
2054 lang=unknown;;
2055 esac
2056 echo "$ac_t""$lang" 1>&6
2058 if test "$lang" = "unknown" ; then
2060 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2061 warn_b=yes
2067 DIR_LOCALEDIR=${localedir}
2068 presome=${prefix}
2069 if test "$prefix" = "NONE"; then
2070 presome=${ac_default_prefix}
2072 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2075 cat >> confdefs.h <<EOF
2076 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2080 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2081 echo "configure:2082: checking for gettext in -lintl" >&5
2082 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086 ac_save_LIBS="$LIBS"
2087 LIBS="-lintl $LIBS"
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* Override any gcc2 internal prototype to avoid an error. */
2092 #ifdef __cplusplus
2093 extern "C"
2094 #endif
2095 /* We use char because int might match the return type of a gcc2
2096 builtin and then its argument prototype would still apply. */
2097 char gettext();
2099 int main() {
2100 gettext()
2101 ; return 0; }
2103 if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2104 rm -rf conftest*
2105 eval "ac_cv_lib_$ac_lib_var=yes"
2106 else
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 rm -rf conftest*
2110 eval "ac_cv_lib_$ac_lib_var=no"
2112 rm -f conftest*
2113 LIBS="$ac_save_LIBS"
2116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2118 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2119 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2120 cat >> confdefs.h <<EOF
2121 #define $ac_tr_lib 1
2124 LIBS="-lintl $LIBS"
2126 else
2127 echo "$ac_t""no" 1>&6
2130 for ac_func in gettext
2132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_func" >&5
2134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2136 else
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 /* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $ac_func(); below. */
2142 #include <assert.h>
2143 /* Override any gcc2 internal prototype to avoid an error. */
2144 #ifdef __cplusplus
2145 extern "C"
2146 #endif
2147 /* We use char because int might match the return type of a gcc2
2148 builtin and then its argument prototype would still apply. */
2149 char $ac_func();
2151 int main() {
2153 /* The GNU C library defines this for functions which it implements
2154 to always fail with ENOSYS. Some functions are actually named
2155 something starting with __ and the normal name is an alias. */
2156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2157 choke me
2158 #else
2159 $ac_func();
2160 #endif
2162 ; return 0; }
2164 if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2165 rm -rf conftest*
2166 eval "ac_cv_func_$ac_func=yes"
2167 else
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2170 rm -rf conftest*
2171 eval "ac_cv_func_$ac_func=no"
2173 rm -f conftest*
2176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2177 echo "$ac_t""yes" 1>&6
2178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2179 cat >> confdefs.h <<EOF
2180 #define $ac_tr_func 1
2183 else
2184 echo "$ac_t""no" 1>&6
2186 done
2190 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2191 for ac_prog in msgfmt
2193 # Extract the first word of "$ac_prog", so it can be a program name with args.
2194 set dummy $ac_prog; ac_word=$2
2195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2196 echo "configure:2197: checking for $ac_word" >&5
2197 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2199 else
2200 if test -n "$MSGFMT"; then
2201 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2202 else
2203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2204 ac_dummy="$PATH"
2205 for ac_dir in $ac_dummy; do
2206 test -z "$ac_dir" && ac_dir=.
2207 if test -f $ac_dir/$ac_word; then
2208 ac_cv_prog_MSGFMT="$ac_prog"
2209 break
2211 done
2212 IFS="$ac_save_ifs"
2215 MSGFMT="$ac_cv_prog_MSGFMT"
2216 if test -n "$MSGFMT"; then
2217 echo "$ac_t""$MSGFMT" 1>&6
2218 else
2219 echo "$ac_t""no" 1>&6
2222 test -n "$MSGFMT" && break
2223 done
2224 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2226 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2227 echo "configure:2228: checking whether msgfmt accepts -o" >&5
2228 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2229 if test "$msgfmt_output" = ""; then
2230 echo "$ac_t""yes" 1>&6
2231 else
2232 # urg
2233 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2234 echo "$ac_t""no" 1>&6
2236 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2237 warn_b=yes
2240 if test ! -n "$MSGFMT"; then
2242 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2243 warn_b=yes
2248 # urg, never know what names these teTeX guys will think up
2250 for ac_prog in mf
2252 # Extract the first word of "$ac_prog", so it can be a program name with args.
2253 set dummy $ac_prog; ac_word=$2
2254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_word" >&5
2256 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 if test -n "$METAFONT"; then
2260 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2261 else
2262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2263 ac_dummy="$PATH"
2264 for ac_dir in $ac_dummy; do
2265 test -z "$ac_dir" && ac_dir=.
2266 if test -f $ac_dir/$ac_word; then
2267 ac_cv_prog_METAFONT="$ac_prog"
2268 break
2270 done
2271 IFS="$ac_save_ifs"
2274 METAFONT="$ac_cv_prog_METAFONT"
2275 if test -n "$METAFONT"; then
2276 echo "$ac_t""$METAFONT" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2281 test -n "$METAFONT" && break
2282 done
2283 test -n "$METAFONT" || METAFONT="no"
2285 if test "x$METAFONT" = "xno"; then
2286 for ac_prog in mfont
2288 # Extract the first word of "$ac_prog", so it can be a program name with args.
2289 set dummy $ac_prog; ac_word=$2
2290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2291 echo "configure:2292: checking for $ac_word" >&5
2292 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2294 else
2295 if test -n "$MFONT"; then
2296 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2297 else
2298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2299 ac_dummy="$PATH"
2300 for ac_dir in $ac_dummy; do
2301 test -z "$ac_dir" && ac_dir=.
2302 if test -f $ac_dir/$ac_word; then
2303 ac_cv_prog_MFONT="$ac_prog"
2304 break
2306 done
2307 IFS="$ac_save_ifs"
2310 MFONT="$ac_cv_prog_MFONT"
2311 if test -n "$MFONT"; then
2312 echo "$ac_t""$MFONT" 1>&6
2313 else
2314 echo "$ac_t""no" 1>&6
2317 test -n "$MFONT" && break
2318 done
2319 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2321 METAFONT=$MFONT
2324 for ac_prog in mp
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 if test -n "$METAPOST"; then
2334 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2335 else
2336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2337 ac_dummy="$PATH"
2338 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 if test -f $ac_dir/$ac_word; then
2341 ac_cv_prog_METAPOST="$ac_prog"
2342 break
2344 done
2345 IFS="$ac_save_ifs"
2348 METAPOST="$ac_cv_prog_METAPOST"
2349 if test -n "$METAPOST"; then
2350 echo "$ac_t""$METAPOST" 1>&6
2351 else
2352 echo "$ac_t""no" 1>&6
2355 test -n "$METAPOST" && break
2356 done
2357 test -n "$METAPOST" || METAPOST="no"
2359 if test "x$METAPOST" = "xno"; then
2360 for ac_prog in mpost
2362 # Extract the first word of "$ac_prog", so it can be a program name with args.
2363 set dummy $ac_prog; ac_word=$2
2364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2365 echo "configure:2366: checking for $ac_word" >&5
2366 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2368 else
2369 if test -n "$MPOST"; then
2370 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2371 else
2372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2373 ac_dummy="$PATH"
2374 for ac_dir in $ac_dummy; do
2375 test -z "$ac_dir" && ac_dir=.
2376 if test -f $ac_dir/$ac_word; then
2377 ac_cv_prog_MPOST="$ac_prog"
2378 break
2380 done
2381 IFS="$ac_save_ifs"
2384 MPOST="$ac_cv_prog_MPOST"
2385 if test -n "$MPOST"; then
2386 echo "$ac_t""$MPOST" 1>&6
2387 else
2388 echo "$ac_t""no" 1>&6
2391 test -n "$MPOST" && break
2392 done
2393 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2396 METAPOST=$MPOST
2399 for ac_prog in inimf
2401 # Extract the first word of "$ac_prog", so it can be a program name with args.
2402 set dummy $ac_prog; ac_word=$2
2403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_word" >&5
2405 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2407 else
2408 if test -n "$INIMETAFONT"; then
2409 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2410 else
2411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2412 ac_dummy="$PATH"
2413 for ac_dir in $ac_dummy; do
2414 test -z "$ac_dir" && ac_dir=.
2415 if test -f $ac_dir/$ac_word; then
2416 ac_cv_prog_INIMETAFONT="$ac_prog"
2417 break
2419 done
2420 IFS="$ac_save_ifs"
2423 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2424 if test -n "$INIMETAFONT"; then
2425 echo "$ac_t""$INIMETAFONT" 1>&6
2426 else
2427 echo "$ac_t""no" 1>&6
2430 test -n "$INIMETAFONT" && break
2431 done
2432 test -n "$INIMETAFONT" || INIMETAFONT="no"
2434 if test "x$INIMETAFONT" = "xno"; then
2435 for ac_prog in inimfont
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2443 else
2444 if test -n "$INIMFONT"; then
2445 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2446 else
2447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2448 ac_dummy="$PATH"
2449 for ac_dir in $ac_dummy; do
2450 test -z "$ac_dir" && ac_dir=.
2451 if test -f $ac_dir/$ac_word; then
2452 ac_cv_prog_INIMFONT="$ac_prog"
2453 break
2455 done
2456 IFS="$ac_save_ifs"
2459 INIMFONT="$ac_cv_prog_INIMFONT"
2460 if test -n "$INIMFONT"; then
2461 echo "$ac_t""$INIMFONT" 1>&6
2462 else
2463 echo "$ac_t""no" 1>&6
2466 test -n "$INIMFONT" && break
2467 done
2468 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2470 INIMETAFONT=$INIMFONT
2473 for ac_prog in inimp
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_word" >&5
2479 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482 if test -n "$INIMETAPOST"; then
2483 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2484 else
2485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2486 ac_dummy="$PATH"
2487 for ac_dir in $ac_dummy; do
2488 test -z "$ac_dir" && ac_dir=.
2489 if test -f $ac_dir/$ac_word; then
2490 ac_cv_prog_INIMETAPOST="$ac_prog"
2491 break
2493 done
2494 IFS="$ac_save_ifs"
2497 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2498 if test -n "$INIMETAPOST"; then
2499 echo "$ac_t""$INIMETAPOST" 1>&6
2500 else
2501 echo "$ac_t""no" 1>&6
2504 test -n "$INIMETAPOST" && break
2505 done
2506 test -n "$INIMETAPOST" || INIMETAPOST="no"
2508 if test "x$INIMETAPOST" = "xno"; then
2509 for ac_prog in inimpost
2511 # Extract the first word of "$ac_prog", so it can be a program name with args.
2512 set dummy $ac_prog; ac_word=$2
2513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2514 echo "configure:2515: checking for $ac_word" >&5
2515 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2517 else
2518 if test -n "$INIMPOST"; then
2519 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2520 else
2521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2522 ac_dummy="$PATH"
2523 for ac_dir in $ac_dummy; do
2524 test -z "$ac_dir" && ac_dir=.
2525 if test -f $ac_dir/$ac_word; then
2526 ac_cv_prog_INIMPOST="$ac_prog"
2527 break
2529 done
2530 IFS="$ac_save_ifs"
2533 INIMPOST="$ac_cv_prog_INIMPOST"
2534 if test -n "$INIMPOST"; then
2535 echo "$ac_t""$INIMPOST" 1>&6
2536 else
2537 echo "$ac_t""no" 1>&6
2540 test -n "$INIMPOST" && break
2541 done
2542 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2544 INIMETAPOST=$INIMPOST
2547 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2548 echo "configure:2549: checking for working metafont mode" >&5
2549 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2550 for MFMODE in $modelist; do
2551 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2552 if test -f mfput.tfm; then
2553 break;
2555 done
2556 rm -f mfput.*
2557 echo "$ac_t""$MFMODE" 1>&6
2566 # Check whether --enable-tex-tfmdir or --disable-tex-tfmdir was given.
2567 if test "${enable_tex_tfmdir+set}" = set; then
2568 enableval="$enable_tex_tfmdir"
2569 TFMDIR=$enableval
2570 else
2571 TFMDIR=auto
2575 for ac_prog in kpsewhich
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_word" >&5
2581 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584 if test -n "$KPSEWHICH"; then
2585 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2586 else
2587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2588 ac_dummy="$PATH"
2589 for ac_dir in $ac_dummy; do
2590 test -z "$ac_dir" && ac_dir=.
2591 if test -f $ac_dir/$ac_word; then
2592 ac_cv_prog_KPSEWHICH="$ac_prog"
2593 break
2595 done
2596 IFS="$ac_save_ifs"
2599 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2600 if test -n "$KPSEWHICH"; then
2601 echo "$ac_t""$KPSEWHICH" 1>&6
2602 else
2603 echo "$ac_t""no" 1>&6
2606 test -n "$KPSEWHICH" && break
2607 done
2608 test -n "$KPSEWHICH" || KPSEWHICH="no"
2610 echo $ac_n "checking for TeX TFM directory""... $ac_c" 1>&6
2611 echo "configure:2612: checking for TeX TFM directory" >&5
2612 if test "x$TFMDIR" = xauto ; then
2613 if test "x$TEX_TFMDIR" = "x" ; then
2614 if test "x$KPSEWHICH" != "xno" ; then
2615 CMR10=`kpsewhich tfm cmr10.tfm`
2616 TEX_TFMDIR=`dirname $CMR10`
2617 else
2619 echo "configure: warning: Please set TEX_TFMDIR (to where cmr10.tfm lives):
2620 TEX_TFMDIR=/usr/local/TeX/lib/tex/fonts ./configure" 1>&2
2621 warn_b=yes
2626 echo "$ac_t""$TEX_TFMDIR" 1>&6
2630 if test "x$YODL" = "x"; then
2631 for ac_prog in striproff
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_word" >&5
2637 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640 if test -n "$STRIPROFF"; then
2641 ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
2642 else
2643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2644 ac_dummy="$PATH"
2645 for ac_dir in $ac_dummy; do
2646 test -z "$ac_dir" && ac_dir=.
2647 if test -f $ac_dir/$ac_word; then
2648 ac_cv_prog_STRIPROFF="$ac_prog"
2649 break
2651 done
2652 IFS="$ac_save_ifs"
2655 STRIPROFF="$ac_cv_prog_STRIPROFF"
2656 if test -n "$STRIPROFF"; then
2657 echo "$ac_t""$STRIPROFF" 1>&6
2658 else
2659 echo "$ac_t""no" 1>&6
2662 test -n "$STRIPROFF" && break
2663 done
2664 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
2666 for ac_prog in yodl
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_word" >&5
2672 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2674 else
2675 if test -n "$YODL"; then
2676 ac_cv_prog_YODL="$YODL" # Let the user override the test.
2677 else
2678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2679 ac_dummy="$PATH"
2680 for ac_dir in $ac_dummy; do
2681 test -z "$ac_dir" && ac_dir=.
2682 if test -f $ac_dir/$ac_word; then
2683 ac_cv_prog_YODL="$ac_prog"
2684 break
2686 done
2687 IFS="$ac_save_ifs"
2690 YODL="$ac_cv_prog_YODL"
2691 if test -n "$YODL"; then
2692 echo "$ac_t""$YODL" 1>&6
2693 else
2694 echo "$ac_t""no" 1>&6
2697 test -n "$YODL" && break
2698 done
2699 test -n "$YODL" || YODL="-echo no yodl"
2701 for ac_prog in yodl2html
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710 if test -n "$YODL2HTML"; then
2711 ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2712 else
2713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2714 ac_dummy="$PATH"
2715 for ac_dir in $ac_dummy; do
2716 test -z "$ac_dir" && ac_dir=.
2717 if test -f $ac_dir/$ac_word; then
2718 ac_cv_prog_YODL2HTML="$ac_prog"
2719 break
2721 done
2722 IFS="$ac_save_ifs"
2725 YODL2HTML="$ac_cv_prog_YODL2HTML"
2726 if test -n "$YODL2HTML"; then
2727 echo "$ac_t""$YODL2HTML" 1>&6
2728 else
2729 echo "$ac_t""no" 1>&6
2732 test -n "$YODL2HTML" && break
2733 done
2734 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2736 for ac_prog in yodl2latex
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_word" >&5
2742 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745 if test -n "$YODL2LATEX"; then
2746 ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2747 else
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2749 ac_dummy="$PATH"
2750 for ac_dir in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir=.
2752 if test -f $ac_dir/$ac_word; then
2753 ac_cv_prog_YODL2LATEX="$ac_prog"
2754 break
2756 done
2757 IFS="$ac_save_ifs"
2760 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2761 if test -n "$YODL2LATEX"; then
2762 echo "$ac_t""$YODL2LATEX" 1>&6
2763 else
2764 echo "$ac_t""no" 1>&6
2767 test -n "$YODL2LATEX" && break
2768 done
2770 for ac_prog in yodl2man
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_word" >&5
2776 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779 if test -n "$YODL2MAN"; then
2780 ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2781 else
2782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2783 ac_dummy="$PATH"
2784 for ac_dir in $ac_dummy; do
2785 test -z "$ac_dir" && ac_dir=.
2786 if test -f $ac_dir/$ac_word; then
2787 ac_cv_prog_YODL2MAN="$ac_prog"
2788 break
2790 done
2791 IFS="$ac_save_ifs"
2794 YODL2MAN="$ac_cv_prog_YODL2MAN"
2795 if test -n "$YODL2MAN"; then
2796 echo "$ac_t""$YODL2MAN" 1>&6
2797 else
2798 echo "$ac_t""no" 1>&6
2801 test -n "$YODL2MAN" && break
2802 done
2803 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2805 for ac_prog in yodl2msless
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_word" >&5
2811 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2813 else
2814 if test -n "$YODL2MSLESS"; then
2815 ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
2816 else
2817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2818 ac_dummy="$PATH"
2819 for ac_dir in $ac_dummy; do
2820 test -z "$ac_dir" && ac_dir=.
2821 if test -f $ac_dir/$ac_word; then
2822 ac_cv_prog_YODL2MSLESS="$ac_prog"
2823 break
2825 done
2826 IFS="$ac_save_ifs"
2829 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
2830 if test -n "$YODL2MSLESS"; then
2831 echo "$ac_t""$YODL2MSLESS" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2836 test -n "$YODL2MSLESS" && break
2837 done
2838 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
2840 for ac_prog in yodl2texinfo
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_word" >&5
2846 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2848 else
2849 if test -n "$YODL2TEXINFO"; then
2850 ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2851 else
2852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2853 ac_dummy="$PATH"
2854 for ac_dir in $ac_dummy; do
2855 test -z "$ac_dir" && ac_dir=.
2856 if test -f $ac_dir/$ac_word; then
2857 ac_cv_prog_YODL2TEXINFO="$ac_prog"
2858 break
2860 done
2861 IFS="$ac_save_ifs"
2864 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2865 if test -n "$YODL2TEXINFO"; then
2866 echo "$ac_t""$YODL2TEXINFO" 1>&6
2867 else
2868 echo "$ac_t""no" 1>&6
2871 test -n "$YODL2TEXINFO" && break
2872 done
2873 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2875 for ac_prog in yodl2txt
2877 # Extract the first word of "$ac_prog", so it can be a program name with args.
2878 set dummy $ac_prog; ac_word=$2
2879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2880 echo "configure:2881: checking for $ac_word" >&5
2881 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2883 else
2884 if test -n "$YODL2TXT"; then
2885 ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2886 else
2887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2888 ac_dummy="$PATH"
2889 for ac_dir in $ac_dummy; do
2890 test -z "$ac_dir" && ac_dir=.
2891 if test -f $ac_dir/$ac_word; then
2892 ac_cv_prog_YODL2TXT="$ac_prog"
2893 break
2895 done
2896 IFS="$ac_save_ifs"
2899 YODL2TXT="$ac_cv_prog_YODL2TXT"
2900 if test -n "$YODL2TXT"; then
2901 echo "$ac_t""$YODL2TXT" 1>&6
2902 else
2903 echo "$ac_t""no" 1>&6
2906 test -n "$YODL2TXT" && break
2907 done
2908 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2910 YODL2LESS_DIR='$(bindir)/'
2911 else
2921 export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
2923 if test "x$YODL" = "-echo no yodl"; then
2925 echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2926 warn_b=yes
2931 # on some systems, -lguile succeeds for guile-1.3
2932 # others need readline, dl (or even more)
2933 # urg, must check for different functions in libguile
2934 # to force new check iso reading from cache
2936 # gh_scm2doubles,gh_doubles2scm are new in 1.3
2938 ## The GUILE_FLAGS macro.
2939 ## First, let's just see if we can find Guile at all.
2940 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2941 echo "configure:2942: checking for Guile" >&5
2942 guile-config link > /dev/null || {
2943 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
2944 exit 1
2946 GUILE_CFLAGS="`guile-config compile`"
2947 GUILE_LDFLAGS="`guile-config link`"
2950 echo "$ac_t""yes" 1>&6
2952 echo $ac_n "checking for gh_scm2doubles in -lguile""... $ac_c" 1>&6
2953 echo "configure:2954: checking for gh_scm2doubles in -lguile" >&5
2954 ac_lib_var=`echo guile'_'gh_scm2doubles | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957 else
2958 ac_save_LIBS="$LIBS"
2959 LIBS="-lguile $GUILE_LDFLAGS $LIBS"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 #ifdef __cplusplus
2965 extern "C"
2966 #endif
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2969 char gh_scm2doubles();
2971 int main() {
2972 gh_scm2doubles()
2973 ; return 0; }
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2976 rm -rf conftest*
2977 eval "ac_cv_lib_$ac_lib_var=yes"
2978 else
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2981 rm -rf conftest*
2982 eval "ac_cv_lib_$ac_lib_var=no"
2984 rm -f conftest*
2985 LIBS="$ac_save_LIBS"
2988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2989 echo "$ac_t""yes" 1>&6
2990 LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[/-_a-zA-Z0-9]\+ //g'` $LIBS"
2991 cat >> confdefs.h <<\EOF
2992 #define HAVE_LIBGUILE 1
2995 else
2996 echo "$ac_t""no" 1>&6
2999 if test "$ac_cv_lib_guile_gh_scm2doubles" != yes ; then
3001 echo "configure: warning: You should install guile 1.3 or newer" 1>&2
3002 warn_b=yes
3008 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3009 echo "configure:3010: checking for 8-bit clean memcmp" >&5
3010 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3012 else
3013 if test "$cross_compiling" = yes; then
3014 ac_cv_func_memcmp_clean=no
3015 else
3016 cat > conftest.$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3019 #ifdef __cplusplus
3020 extern "C" void exit(int);
3021 #endif
3023 main()
3025 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3026 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3031 then
3032 ac_cv_func_memcmp_clean=yes
3033 else
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3036 rm -fr conftest*
3037 ac_cv_func_memcmp_clean=no
3039 rm -fr conftest*
3044 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3045 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3047 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3048 echo "configure:3049: checking for vprintf" >&5
3049 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3051 else
3052 cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 /* System header to define __stub macros and hopefully few prototypes,
3056 which can conflict with char vprintf(); below. */
3057 #include <assert.h>
3058 /* Override any gcc2 internal prototype to avoid an error. */
3059 #ifdef __cplusplus
3060 extern "C"
3061 #endif
3062 /* We use char because int might match the return type of a gcc2
3063 builtin and then its argument prototype would still apply. */
3064 char vprintf();
3066 int main() {
3068 /* The GNU C library defines this for functions which it implements
3069 to always fail with ENOSYS. Some functions are actually named
3070 something starting with __ and the normal name is an alias. */
3071 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3072 choke me
3073 #else
3074 vprintf();
3075 #endif
3077 ; return 0; }
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3080 rm -rf conftest*
3081 eval "ac_cv_func_vprintf=yes"
3082 else
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3085 rm -rf conftest*
3086 eval "ac_cv_func_vprintf=no"
3088 rm -f conftest*
3091 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3092 echo "$ac_t""yes" 1>&6
3093 cat >> confdefs.h <<\EOF
3094 #define HAVE_VPRINTF 1
3097 else
3098 echo "$ac_t""no" 1>&6
3101 if test "$ac_cv_func_vprintf" != yes; then
3102 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3103 echo "configure:3104: checking for _doprnt" >&5
3104 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 /* System header to define __stub macros and hopefully few prototypes,
3111 which can conflict with char _doprnt(); below. */
3112 #include <assert.h>
3113 /* Override any gcc2 internal prototype to avoid an error. */
3114 #ifdef __cplusplus
3115 extern "C"
3116 #endif
3117 /* We use char because int might match the return type of a gcc2
3118 builtin and then its argument prototype would still apply. */
3119 char _doprnt();
3121 int main() {
3123 /* The GNU C library defines this for functions which it implements
3124 to always fail with ENOSYS. Some functions are actually named
3125 something starting with __ and the normal name is an alias. */
3126 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3127 choke me
3128 #else
3129 _doprnt();
3130 #endif
3132 ; return 0; }
3134 if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3135 rm -rf conftest*
3136 eval "ac_cv_func__doprnt=yes"
3137 else
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 rm -rf conftest*
3141 eval "ac_cv_func__doprnt=no"
3143 rm -f conftest*
3146 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 cat >> confdefs.h <<\EOF
3149 #define HAVE_DOPRNT 1
3152 else
3153 echo "$ac_t""no" 1>&6
3158 for ac_func in memmem snprintf vsnprintf gettext
3160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3161 echo "configure:3162: checking for $ac_func" >&5
3162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 /* System header to define __stub macros and hopefully few prototypes,
3169 which can conflict with char $ac_func(); below. */
3170 #include <assert.h>
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 #ifdef __cplusplus
3173 extern "C"
3174 #endif
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3177 char $ac_func();
3179 int main() {
3181 /* The GNU C library defines this for functions which it implements
3182 to always fail with ENOSYS. Some functions are actually named
3183 something starting with __ and the normal name is an alias. */
3184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3185 choke me
3186 #else
3187 $ac_func();
3188 #endif
3190 ; return 0; }
3192 if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3193 rm -rf conftest*
3194 eval "ac_cv_func_$ac_func=yes"
3195 else
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3198 rm -rf conftest*
3199 eval "ac_cv_func_$ac_func=no"
3201 rm -f conftest*
3204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3205 echo "$ac_t""yes" 1>&6
3206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3207 cat >> confdefs.h <<EOF
3208 #define $ac_tr_func 1
3211 else
3212 echo "$ac_t""no" 1>&6
3214 done
3217 cat >> confdefs.h <<EOF
3218 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3221 cat >> confdefs.h <<EOF
3222 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3226 for ac_prog in makeinfo
3228 # Extract the first word of "$ac_prog", so it can be a program name with args.
3229 set dummy $ac_prog; ac_word=$2
3230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3231 echo "configure:3232: checking for $ac_word" >&5
3232 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3234 else
3235 if test -n "$MAKEINFO"; then
3236 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3237 else
3238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3239 ac_dummy="$PATH"
3240 for ac_dir in $ac_dummy; do
3241 test -z "$ac_dir" && ac_dir=.
3242 if test -f $ac_dir/$ac_word; then
3243 ac_cv_prog_MAKEINFO="$ac_prog"
3244 break
3246 done
3247 IFS="$ac_save_ifs"
3250 MAKEINFO="$ac_cv_prog_MAKEINFO"
3251 if test -n "$MAKEINFO"; then
3252 echo "$ac_t""$MAKEINFO" 1>&6
3253 else
3254 echo "$ac_t""no" 1>&6
3257 test -n "$MAKEINFO" && break
3258 done
3259 test -n "$MAKEINFO" || MAKEINFO="error"
3262 result="`echo \"$YODL2TEXINFO\" | grep echo`"
3263 if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
3265 echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or newer" 1>&2
3266 warn_b=yes
3271 echo $ac_n "checking links for running from sourcetree""... $ac_c" 1>&6
3272 echo "configure:3273: checking links for running from sourcetree" >&5
3273 LILYPONDPREFIX=$absolute_builddir
3274 LOCALES="it nl"
3275 for i in $LOCALES; do
3276 dir=$LILYPONDPREFIX/share/locale/$i/LC_MESSAGES
3277 if test ! -x $dir ; then
3278 mkdir -p $dir
3280 rm -f $dir/lilypond.mo
3281 ln -sf $LILYPONDPREFIX/po/out/$i.mo $dir/lilypond.mo
3282 done
3283 rm -f afm; ln -sf $LILYPONDPREFIX/mf/out afm
3284 rm -f tfm; ln -sf $LILYPONDPREFIX/mf/out tfm
3285 rm -f cmtfm; ln -sf $TEX_TFMDIR cmtfm
3286 echo "$ac_t""ok" 1>&6
3289 trap '' 1 2 15
3290 cat > confcache <<\EOF
3291 # This file is a shell script that caches the results of configure
3292 # tests run on this system so they can be shared between configure
3293 # scripts and configure runs. It is not useful on other systems.
3294 # If it contains results you don't want to keep, you may remove or edit it.
3296 # By default, configure uses ./config.cache as the cache file,
3297 # creating it if it does not exist already. You can give configure
3298 # the --cache-file=FILE option to use a different cache file; that is
3299 # what configure does when it calls configure scripts in
3300 # subdirectories, so they share the cache.
3301 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3302 # config.status only pays attention to the cache file if you give it the
3303 # --recheck option to rerun configure.
3306 # The following way of writing the cache mishandles newlines in values,
3307 # but we know of no workaround that is simple, portable, and efficient.
3308 # So, don't put newlines in cache variables' values.
3309 # Ultrix sh set writes to stderr and can't be redirected directly,
3310 # and sets the high bit in the cache file unless we assign to the vars.
3311 (set) 2>&1 |
3312 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3313 *ac_space=\ *)
3314 # `set' does not quote correctly, so add quotes (double-quote substitution
3315 # turns \\\\ into \\, and sed turns \\ into \).
3316 sed -n \
3317 -e "s/'/'\\\\''/g" \
3318 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3321 # `set' quotes correctly as required by POSIX, so do not add quotes.
3322 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3324 esac >> confcache
3325 if cmp -s $cache_file confcache; then
3327 else
3328 if test -w $cache_file; then
3329 echo "updating cache $cache_file"
3330 cat confcache > $cache_file
3331 else
3332 echo "not updating unwritable cache $cache_file"
3335 rm -f confcache
3337 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3339 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3340 # Let make expand exec_prefix.
3341 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3343 # Any assignment to VPATH causes Sun make to only execute
3344 # the first set of double-colon rules, so remove it if not needed.
3345 # If there is a colon in the path, we need to keep it.
3346 if test "x$srcdir" = x.; then
3347 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3350 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3352 DEFS=-DHAVE_CONFIG_H
3354 # Without the "./", some shells look in PATH for config.status.
3355 : ${CONFIG_STATUS=./config.status}
3357 echo creating $CONFIG_STATUS
3358 rm -f $CONFIG_STATUS
3359 cat > $CONFIG_STATUS <<EOF
3360 #! /bin/sh
3361 # Generated automatically by configure.
3362 # Run this file to recreate the current configuration.
3363 # This directory was configured as follows,
3364 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3366 # $0 $ac_configure_args
3368 # Compiler output produced by configure, useful for debugging
3369 # configure, is in ./config.log if it exists.
3371 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3372 for ac_option
3374 case "\$ac_option" in
3375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3376 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3377 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3378 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3379 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3380 exit 0 ;;
3381 -help | --help | --hel | --he | --h)
3382 echo "\$ac_cs_usage"; exit 0 ;;
3383 *) echo "\$ac_cs_usage"; exit 1 ;;
3384 esac
3385 done
3387 ac_given_srcdir=$srcdir
3389 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3391 cat >> $CONFIG_STATUS <<EOF
3393 # Protect against being on the right side of a sed subst in config.status.
3394 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3395 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3396 $ac_vpsub
3397 $extrasub
3398 s%@SHELL@%$SHELL%g
3399 s%@CFLAGS@%$CFLAGS%g
3400 s%@CPPFLAGS@%$CPPFLAGS%g
3401 s%@CXXFLAGS@%$CXXFLAGS%g
3402 s%@FFLAGS@%$FFLAGS%g
3403 s%@DEFS@%$DEFS%g
3404 s%@LDFLAGS@%$LDFLAGS%g
3405 s%@LIBS@%$LIBS%g
3406 s%@exec_prefix@%$exec_prefix%g
3407 s%@prefix@%$prefix%g
3408 s%@program_transform_name@%$program_transform_name%g
3409 s%@bindir@%$bindir%g
3410 s%@sbindir@%$sbindir%g
3411 s%@libexecdir@%$libexecdir%g
3412 s%@datadir@%$datadir%g
3413 s%@sysconfdir@%$sysconfdir%g
3414 s%@sharedstatedir@%$sharedstatedir%g
3415 s%@localstatedir@%$localstatedir%g
3416 s%@libdir@%$libdir%g
3417 s%@includedir@%$includedir%g
3418 s%@oldincludedir@%$oldincludedir%g
3419 s%@infodir@%$infodir%g
3420 s%@mandir@%$mandir%g
3421 s%@stepmake@%$stepmake%g
3422 s%@package@%$package%g
3423 s%@PACKAGE@%$PACKAGE%g
3424 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3425 s%@package_depth@%$package_depth%g
3426 s%@AUTOGENERATE@%$AUTOGENERATE%g
3427 s%@absolute_builddir@%$absolute_builddir%g
3428 s%@STATE_VECTOR@%$STATE_VECTOR%g
3429 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3430 s%@host@%$host%g
3431 s%@host_alias@%$host_alias%g
3432 s%@host_cpu@%$host_cpu%g
3433 s%@host_vendor@%$host_vendor%g
3434 s%@host_os@%$host_os%g
3435 s%@MAKE@%$MAKE%g
3436 s%@FIND@%$FIND%g
3437 s%@TAR@%$TAR%g
3438 s%@BASH@%$BASH%g
3439 s%@PYTHON@%$PYTHON%g
3440 s%@DOTEXE@%$DOTEXE%g
3441 s%@ZIP@%$ZIP%g
3442 s%@LN@%$LN%g
3443 s%@LN_S@%$LN_S%g
3444 s%@INSTALL@%$INSTALL%g
3445 s%@PATHSEP@%$PATHSEP%g
3446 s%@DIRSEP@%$DIRSEP%g
3447 s%@DIR_DATADIR@%$DIR_DATADIR%g
3448 s%@subdirs@%$subdirs%g
3449 s%@CC@%$CC%g
3450 s%@LD@%$LD%g
3451 s%@ICFLAGS@%$ICFLAGS%g
3452 s%@ILDFLAGS@%$ILDFLAGS%g
3453 s%@DEFINES@%$DEFINES%g
3454 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3455 s%@CXX@%$CXX%g
3456 s%@CXXCPP@%$CXXCPP%g
3457 s%@YACC@%$YACC%g
3458 s%@BISON@%$BISON%g
3459 s%@FLEX@%$FLEX%g
3460 s%@AR@%$AR%g
3461 s%@RANLIB@%$RANLIB%g
3462 s%@localedir@%$localedir%g
3463 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3464 s%@MSGFMT@%$MSGFMT%g
3465 s%@METAFONT@%$METAFONT%g
3466 s%@MFONT@%$MFONT%g
3467 s%@METAPOST@%$METAPOST%g
3468 s%@MPOST@%$MPOST%g
3469 s%@INIMETAFONT@%$INIMETAFONT%g
3470 s%@INIMFONT@%$INIMFONT%g
3471 s%@INIMETAPOST@%$INIMETAPOST%g
3472 s%@INIMPOST@%$INIMPOST%g
3473 s%@MFMODE@%$MFMODE%g
3474 s%@KPSEWHICH@%$KPSEWHICH%g
3475 s%@TEX_TFMDIR@%$TEX_TFMDIR%g
3476 s%@STRIPROFF@%$STRIPROFF%g
3477 s%@YODL@%$YODL%g
3478 s%@YODL2HTML@%$YODL2HTML%g
3479 s%@YODL2LATEX@%$YODL2LATEX%g
3480 s%@YODL2MAN@%$YODL2MAN%g
3481 s%@YODL2MSLESS@%$YODL2MSLESS%g
3482 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
3483 s%@YODL2TXT@%$YODL2TXT%g
3484 s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
3485 s%@LIBOBJS@%$LIBOBJS%g
3486 s%@MAKEINFO@%$MAKEINFO%g
3488 CEOF
3491 cat >> $CONFIG_STATUS <<\EOF
3493 # Split the substitutions into bite-sized pieces for seds with
3494 # small command number limits, like on Digital OSF/1 and HP-UX.
3495 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3496 ac_file=1 # Number of current file.
3497 ac_beg=1 # First line for current file.
3498 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3499 ac_more_lines=:
3500 ac_sed_cmds=""
3501 while $ac_more_lines; do
3502 if test $ac_beg -gt 1; then
3503 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3504 else
3505 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3507 if test ! -s conftest.s$ac_file; then
3508 ac_more_lines=false
3509 rm -f conftest.s$ac_file
3510 else
3511 if test -z "$ac_sed_cmds"; then
3512 ac_sed_cmds="sed -f conftest.s$ac_file"
3513 else
3514 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3516 ac_file=`expr $ac_file + 1`
3517 ac_beg=$ac_end
3518 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3520 done
3521 if test -z "$ac_sed_cmds"; then
3522 ac_sed_cmds=cat
3526 cat >> $CONFIG_STATUS <<EOF
3528 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3530 cat >> $CONFIG_STATUS <<\EOF
3531 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3532 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3533 case "$ac_file" in
3534 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3535 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3536 *) ac_file_in="${ac_file}.in" ;;
3537 esac
3539 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3541 # Remove last slash and all that follows it. Not all systems have dirname.
3542 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3543 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3544 # The file is in a subdirectory.
3545 test ! -d "$ac_dir" && mkdir "$ac_dir"
3546 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3547 # A "../" for each directory in $ac_dir_suffix.
3548 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3549 else
3550 ac_dir_suffix= ac_dots=
3553 case "$ac_given_srcdir" in
3554 .) srcdir=.
3555 if test -z "$ac_dots"; then top_srcdir=.
3556 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3557 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3558 *) # Relative path.
3559 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3560 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3561 esac
3564 echo creating "$ac_file"
3565 rm -f "$ac_file"
3566 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3567 case "$ac_file" in
3568 *Makefile*) ac_comsub="1i\\
3569 # $configure_input" ;;
3570 *) ac_comsub= ;;
3571 esac
3573 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3574 sed -e "$ac_comsub
3575 s%@configure_input@%$configure_input%g
3576 s%@srcdir@%$srcdir%g
3577 s%@top_srcdir@%$top_srcdir%g
3578 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3579 fi; done
3580 rm -f conftest.s*
3582 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3583 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3585 # ac_d sets the value in "#define NAME VALUE" lines.
3586 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3587 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3588 ac_dC='\3'
3589 ac_dD='%g'
3590 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3591 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3592 ac_uB='\([ ]\)%\1#\2define\3'
3593 ac_uC=' '
3594 ac_uD='\4%g'
3595 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3596 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3597 ac_eB='$%\1#\2define\3'
3598 ac_eC=' '
3599 ac_eD='%g'
3601 if test "${CONFIG_HEADERS+set}" != set; then
3603 cat >> $CONFIG_STATUS <<EOF
3604 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3606 cat >> $CONFIG_STATUS <<\EOF
3608 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3610 case "$ac_file" in
3611 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3612 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3613 *) ac_file_in="${ac_file}.in" ;;
3614 esac
3616 echo creating $ac_file
3618 rm -f conftest.frag conftest.in conftest.out
3619 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3620 cat $ac_file_inputs > conftest.in
3624 # Transform confdefs.h into a sed script conftest.vals that substitutes
3625 # the proper values into config.h.in to produce config.h. And first:
3626 # Protect against being on the right side of a sed subst in config.status.
3627 # Protect against being in an unquoted here document in config.status.
3628 rm -f conftest.vals
3629 cat > conftest.hdr <<\EOF
3630 s/[\\&%]/\\&/g
3631 s%[\\$`]%\\&%g
3632 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3633 s%ac_d%ac_u%gp
3634 s%ac_u%ac_e%gp
3636 sed -n -f conftest.hdr confdefs.h > conftest.vals
3637 rm -f conftest.hdr
3639 # This sed command replaces #undef with comments. This is necessary, for
3640 # example, in the case of _POSIX_SOURCE, which is predefined and required
3641 # on some systems where configure will not decide to define it.
3642 cat >> conftest.vals <<\EOF
3643 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3646 # Break up conftest.vals because some shells have a limit on
3647 # the size of here documents, and old seds have small limits too.
3649 rm -f conftest.tail
3650 while :
3652 ac_lines=`grep -c . conftest.vals`
3653 # grep -c gives empty output for an empty file on some AIX systems.
3654 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3655 # Write a limited-size here document to conftest.frag.
3656 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3657 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3658 echo 'CEOF
3659 sed -f conftest.frag conftest.in > conftest.out
3660 rm -f conftest.in
3661 mv conftest.out conftest.in
3662 ' >> $CONFIG_STATUS
3663 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3664 rm -f conftest.vals
3665 mv conftest.tail conftest.vals
3666 done
3667 rm -f conftest.vals
3669 cat >> $CONFIG_STATUS <<\EOF
3670 rm -f conftest.frag conftest.h
3671 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3672 cat conftest.in >> conftest.h
3673 rm -f conftest.in
3674 if cmp -s $ac_file conftest.h 2>/dev/null; then
3675 echo "$ac_file is unchanged"
3676 rm -f conftest.h
3677 else
3678 # Remove last slash and all that follows it. Not all systems have dirname.
3679 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3680 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3681 # The file is in a subdirectory.
3682 test ! -d "$ac_dir" && mkdir "$ac_dir"
3684 rm -f $ac_file
3685 mv conftest.h $ac_file
3687 fi; done
3690 cat >> $CONFIG_STATUS <<EOF
3693 cat >> $CONFIG_STATUS <<\EOF
3695 exit 0
3697 chmod +x $CONFIG_STATUS
3698 rm -fr confdefs* $ac_clean_files
3699 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3701 if test "$no_recursion" != yes; then
3703 # Remove --cache-file and --srcdir arguments so they do not pile up.
3704 ac_sub_configure_args=
3705 ac_prev=
3706 for ac_arg in $ac_configure_args; do
3707 if test -n "$ac_prev"; then
3708 ac_prev=
3709 continue
3711 case "$ac_arg" in
3712 -cache-file | --cache-file | --cache-fil | --cache-fi \
3713 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3714 ac_prev=cache_file ;;
3715 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3716 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3719 ac_prev=srcdir ;;
3720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3722 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3723 esac
3724 done
3726 for ac_config_dir in stepmake; do
3728 # Do not complain, so a configure script can configure whichever
3729 # parts of a large source tree are present.
3730 if test ! -d $srcdir/$ac_config_dir; then
3731 continue
3734 echo configuring in $ac_config_dir
3736 case "$srcdir" in
3737 .) ;;
3739 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3740 else
3741 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3744 esac
3746 ac_popdir=`pwd`
3747 cd $ac_config_dir
3749 # A "../" for each directory in /$ac_config_dir.
3750 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3752 case "$srcdir" in
3753 .) # No --srcdir option. We are building in place.
3754 ac_sub_srcdir=$srcdir ;;
3755 /*) # Absolute path.
3756 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3757 *) # Relative path.
3758 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3759 esac
3761 # Check for guested configure; otherwise get Cygnus style configure.
3762 if test -f $ac_sub_srcdir/configure; then
3763 ac_sub_configure=$ac_sub_srcdir/configure
3764 elif test -f $ac_sub_srcdir/configure.in; then
3765 ac_sub_configure=$ac_configure
3766 else
3767 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3768 ac_sub_configure=
3771 # The recursion is here.
3772 if test -n "$ac_sub_configure"; then
3774 # Make the cache file name correct relative to the subdirectory.
3775 case "$cache_file" in
3776 /*) ac_sub_cache_file=$cache_file ;;
3777 *) # Relative path.
3778 ac_sub_cache_file="$ac_dots$cache_file" ;;
3779 esac
3781 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3782 # The eval makes quoting arguments work.
3783 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3784 then :
3785 else
3786 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3790 cd $ac_popdir
3791 done
3795 rm -f GNUmakefile
3796 cp make/toplevel.make.in ./GNUmakefile
3797 chmod 444 GNUmakefile