lilypond-1.3.146
[lilypond.git] / configure
blobedfdbda20a9e1d4f1c5d69a69d54a028e81e89ce
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)
56 # Guess values for system-dependent variables and create Makefiles.
57 # Generated automatically using autoconf version 2.13
58 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 # This configure script is free software; the Free Software Foundation
61 # gives unlimited permission to copy, distribute and modify it.
63 # Defaults:
64 ac_help=
65 ac_default_prefix=/usr/local
66 # Any additions from configure.in:
67 ac_help="$ac_help
68 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
69 do \`make conf=CONF' to get output in ./out-CONF"
70 ac_help="$ac_help
71 --enable-checking set runtime checks (assert calls). Default: on"
72 ac_help="$ac_help
73 --enable-debugging compile with debugging info. Default: on"
74 ac_help="$ac_help
75 --enable-profiling compile with gprof support. Default: off"
76 ac_help="$ac_help
77 --with-localedir=LOCALE use LOCALE as locale dir. Default:
78 PREFIX/share/locale "
79 ac_help="$ac_help
80 --with-lang=LANG use LANG as language to emit messages"
81 ac_help="$ac_help
82 --enable-tfm-path=PATH set path of tex directories where tfm files live,
83 esp.: cmr10.tfm. Default: use kpsewhich"
84 ac_help="$ac_help
85 --with-kpathsea use kpathsea lib. Default: on"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
90 build=NONE
91 cache_file=./config.cache
92 exec_prefix=NONE
93 host=NONE
94 no_create=
95 nonopt=NONE
96 no_recursion=
97 prefix=NONE
98 program_prefix=NONE
99 program_suffix=NONE
100 program_transform_name=s,x,x,
101 silent=
102 site=
103 srcdir=
104 target=NONE
105 verbose=
106 x_includes=NONE
107 x_libraries=NONE
108 bindir='${exec_prefix}/bin'
109 sbindir='${exec_prefix}/sbin'
110 libexecdir='${exec_prefix}/libexec'
111 datadir='${prefix}/share'
112 sysconfdir='${prefix}/etc'
113 sharedstatedir='${prefix}/com'
114 localstatedir='${prefix}/var'
115 libdir='${exec_prefix}/lib'
116 includedir='${prefix}/include'
117 oldincludedir='/usr/include'
118 infodir='${prefix}/info'
119 mandir='${prefix}/man'
121 # Initialize some other variables.
122 subdirs=
123 MFLAGS= MAKEFLAGS=
124 SHELL=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
126 ac_max_here_lines=12
128 ac_prev=
129 for ac_option
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
135 ac_prev=
136 continue
139 case "$ac_option" in
140 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 *) ac_optarg= ;;
142 esac
144 # Accept the important Cygnus configure options, so we can diagnose typos.
146 case "$ac_option" in
148 -bindir | --bindir | --bindi | --bind | --bin | --bi)
149 ac_prev=bindir ;;
150 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
151 bindir="$ac_optarg" ;;
153 -build | --build | --buil | --bui | --bu)
154 ac_prev=build ;;
155 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
156 build="$ac_optarg" ;;
158 -cache-file | --cache-file | --cache-fil | --cache-fi \
159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
160 ac_prev=cache_file ;;
161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
163 cache_file="$ac_optarg" ;;
165 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
166 ac_prev=datadir ;;
167 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
168 | --da=*)
169 datadir="$ac_optarg" ;;
171 -disable-* | --disable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* | --enable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 case "$ac_option" in
188 *=*) ;;
189 *) ac_optarg=yes ;;
190 esac
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
195 | --exec | --exe | --ex)
196 ac_prev=exec_prefix ;;
197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
199 | --exec=* | --exe=* | --ex=*)
200 exec_prefix="$ac_optarg" ;;
202 -gas | --gas | --ga | --g)
203 # Obsolete; use --with-gas.
204 with_gas=yes ;;
206 -help | --help | --hel | --he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
209 cat << EOF
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
212 Configuration:
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
220 [$ac_default_prefix]
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 [same as prefix]
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
227 [PREFIX/share]
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 [PREFIX/com]
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
243 cat << EOF
244 Host type:
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
259 exit 0 ;;
261 -host | --host | --hos | --ho)
262 ac_prev=host ;;
263 -host=* | --host=* | --hos=* | --ho=*)
264 host="$ac_optarg" ;;
266 -includedir | --includedir | --includedi | --included | --include \
267 | --includ | --inclu | --incl | --inc)
268 ac_prev=includedir ;;
269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
270 | --includ=* | --inclu=* | --incl=* | --inc=*)
271 includedir="$ac_optarg" ;;
273 -infodir | --infodir | --infodi | --infod | --info | --inf)
274 ac_prev=infodir ;;
275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
276 infodir="$ac_optarg" ;;
278 -libdir | --libdir | --libdi | --libd)
279 ac_prev=libdir ;;
280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
281 libdir="$ac_optarg" ;;
283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
284 | --libexe | --libex | --libe)
285 ac_prev=libexecdir ;;
286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
287 | --libexe=* | --libex=* | --libe=*)
288 libexecdir="$ac_optarg" ;;
290 -localstatedir | --localstatedir | --localstatedi | --localstated \
291 | --localstate | --localstat | --localsta | --localst \
292 | --locals | --local | --loca | --loc | --lo)
293 ac_prev=localstatedir ;;
294 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
295 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
296 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
297 localstatedir="$ac_optarg" ;;
299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
300 ac_prev=mandir ;;
301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 mandir="$ac_optarg" ;;
304 -nfp | --nfp | --nf)
305 # Obsolete; use --without-fp.
306 with_fp=no ;;
308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
309 | --no-cr | --no-c)
310 no_create=yes ;;
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
314 no_recursion=yes ;;
316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
318 | --oldin | --oldi | --old | --ol | --o)
319 ac_prev=oldincludedir ;;
320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
323 oldincludedir="$ac_optarg" ;;
325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
326 ac_prev=prefix ;;
327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
328 prefix="$ac_optarg" ;;
330 -program-prefix | --program-prefix | --program-prefi | --program-pref \
331 | --program-pre | --program-pr | --program-p)
332 ac_prev=program_prefix ;;
333 -program-prefix=* | --program-prefix=* | --program-prefi=* \
334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
335 program_prefix="$ac_optarg" ;;
337 -program-suffix | --program-suffix | --program-suffi | --program-suff \
338 | --program-suf | --program-su | --program-s)
339 ac_prev=program_suffix ;;
340 -program-suffix=* | --program-suffix=* | --program-suffi=* \
341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
342 program_suffix="$ac_optarg" ;;
344 -program-transform-name | --program-transform-name \
345 | --program-transform-nam | --program-transform-na \
346 | --program-transform-n | --program-transform- \
347 | --program-transform | --program-transfor \
348 | --program-transfo | --program-transf \
349 | --program-trans | --program-tran \
350 | --progr-tra | --program-tr | --program-t)
351 ac_prev=program_transform_name ;;
352 -program-transform-name=* | --program-transform-name=* \
353 | --program-transform-nam=* | --program-transform-na=* \
354 | --program-transform-n=* | --program-transform-=* \
355 | --program-transform=* | --program-transfor=* \
356 | --program-transfo=* | --program-transf=* \
357 | --program-trans=* | --program-tran=* \
358 | --progr-tra=* | --program-tr=* | --program-t=*)
359 program_transform_name="$ac_optarg" ;;
361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
362 | -silent | --silent | --silen | --sile | --sil)
363 silent=yes ;;
365 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
366 ac_prev=sbindir ;;
367 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
368 | --sbi=* | --sb=*)
369 sbindir="$ac_optarg" ;;
371 -sharedstatedir | --sharedstatedir | --sharedstatedi \
372 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
373 | --sharedst | --shareds | --shared | --share | --shar \
374 | --sha | --sh)
375 ac_prev=sharedstatedir ;;
376 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
377 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
378 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
379 | --sha=* | --sh=*)
380 sharedstatedir="$ac_optarg" ;;
382 -site | --site | --sit)
383 ac_prev=site ;;
384 -site=* | --site=* | --sit=*)
385 site="$ac_optarg" ;;
387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
388 ac_prev=srcdir ;;
389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
390 srcdir="$ac_optarg" ;;
392 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
393 | --syscon | --sysco | --sysc | --sys | --sy)
394 ac_prev=sysconfdir ;;
395 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
396 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
397 sysconfdir="$ac_optarg" ;;
399 -target | --target | --targe | --targ | --tar | --ta | --t)
400 ac_prev=target ;;
401 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
402 target="$ac_optarg" ;;
404 -v | -verbose | --verbose | --verbos | --verbo | --verb)
405 verbose=yes ;;
407 -version | --version | --versio | --versi | --vers)
408 echo "configure generated by autoconf version 2.13"
409 exit 0 ;;
411 -with-* | --with-*)
412 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 case "$ac_option" in
419 *=*) ;;
420 *) ac_optarg=yes ;;
421 esac
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* | --without-*)
425 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
433 --x)
434 # Obsolete; use --with-x.
435 with_x=yes ;;
437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
438 | --x-incl | --x-inc | --x-in | --x-i)
439 ac_prev=x_includes ;;
440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
442 x_includes="$ac_optarg" ;;
444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
446 ac_prev=x_libraries ;;
447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
449 x_libraries="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 nonopt="$ac_option"
464 esac
465 done
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
474 # 0 standard input
475 # 1 file creation
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
482 exec 6>/dev/null
483 else
484 exec 6>&1
486 exec 5>./config.log
488 echo "\
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
491 " 1>&5
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
495 ac_configure_args=
496 for ac_arg
498 case "$ac_arg" in
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c) ;;
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
506 esac
507 done
509 # NLS nuisances.
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
522 echo > confdefs.h
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file=make/lilypond.lsm.in
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted=yes
531 # Try the directory containing this script, then its parent.
532 ac_prog=$0
533 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
535 srcdir=$ac_confdir
536 if test ! -r $srcdir/$ac_unique_file; then
537 srcdir=..
539 else
540 ac_srcdir_defaulted=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 else
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE; then
554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
555 else
556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
562 . "$ac_site_file"
564 done
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
568 . $cache_file
569 else
570 echo "creating cache $cache_file"
571 > $cache_file
574 ac_ext=c
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp='$CPP $CPPFLAGS'
577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling=$ac_cv_prog_cc_cross
581 ac_exeext=
582 ac_objext=o
583 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='
587 ' ac_t=' '
588 else
589 ac_n=-n ac_c= ac_t=
591 else
592 ac_n= ac_c='\c' ac_t=
598 # Bootstrap StepMake configure
601 . $srcdir/VERSION
602 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
603 if test x$MY_PATCH_LEVEL != x; then
604 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
607 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
608 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
609 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
611 # No versioning on directory names of sub-packages
612 # urg, urg
613 stepmake=${datadir}/stepmake
614 presome=${prefix}
615 if test "$prefix" = "NONE"; then
616 presome=${ac_default_prefix}
618 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
620 # urg, how is this supposed to work?
621 if test "$program_prefix" = "NONE"; then
622 program_prefix=
624 if test "$program_suffix" = "NONE"; then
625 program_suffix=
628 echo $ac_n "checking Package""... $ac_c" 1>&6
629 echo "configure:630: checking Package" >&5
630 if test "x$PACKAGE" = "xSTEPMAKE"; then
631 echo "$ac_t""Stepmake package!" 1>&6
633 echo $ac_n "checking builddir""... $ac_c" 1>&6
634 echo "configure:635: checking builddir" >&5
635 if test "$srcdir" = "."; then
636 builddir=.
637 else
638 absolute_builddir="`pwd`"
639 package_absolute_builddir="`dirname $absolute_builddir`"
640 package_srcdir="`dirname $srcdir`"
641 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
643 echo "$ac_t""$builddir" 1>&6
645 (cd stepmake 2>/dev/null || mkdir stepmake)
646 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
647 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
648 ac_aux_dir=
649 for ac_dir in bin $srcdir/bin; do
650 if test -f $ac_dir/install-sh; then
651 ac_aux_dir=$ac_dir
652 ac_install_sh="$ac_aux_dir/install-sh -c"
653 break
654 elif test -f $ac_dir/install.sh; then
655 ac_aux_dir=$ac_dir
656 ac_install_sh="$ac_aux_dir/install.sh -c"
657 break
659 done
660 if test -z "$ac_aux_dir"; then
661 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
663 ac_config_guess=$ac_aux_dir/config.guess
664 ac_config_sub=$ac_aux_dir/config.sub
665 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
667 stepmake=stepmake
668 else
669 echo "$ac_t""$PACKAGE" 1>&6
671 echo $ac_n "checking builddir""... $ac_c" 1>&6
672 echo "configure:673: checking builddir" >&5
673 if test "$srcdir" = "."; then
674 builddir=.
675 srcdir_build=no
676 else
677 absolute_builddir="`pwd`"
678 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
679 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
680 srcdir_build=yes
682 echo "$ac_t""$builddir" 1>&6
683 if expr "$srcdir" : '/' > /dev/null 2>&1; then
684 absolute_srcdir=yes
686 echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
687 warn_b=yes
691 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
692 echo "configure:693: checking for stepmake" >&5
693 # Check for installed stepmake
694 if test -d $stepmake; then
695 echo "$ac_t""$stepmake" 1>&6
696 else
697 if test "$absolute_srcdir" != "yes"; then
698 stepmake='$(depth)'/$srcdir/stepmake
699 else
700 stepmake=$srcdir/stepmake
702 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
705 ac_aux_dir=
706 for ac_dir in \
707 $HOME/usr/local/share/stepmake/bin\
708 $HOME/usr/local/lib/stepmake/bin\
709 $HOME/usr/share/stepmake/bin\
710 $HOME/usr/lib/stepmake/bin\
711 /usr/local/share/stepmake/bin\
712 /usr/local/lib/stepmake/bin\
713 /usr/share/stepmake/bin\
714 /usr/lib/stepmake/bin\
715 stepmake/bin\
716 $srcdir/stepmake/bin\
717 $srcdir/\
718 $HOME/usr/local/share/stepmake/bin\
719 $HOME/usr/local/lib/stepmake/bin\
720 $HOME/usr/share/stepmake/bin\
721 $HOME/usr/lib/stepmake/bin\
722 /usr/local/share/stepmake/bin\
723 /usr/local/lib/stepmake/bin\
724 /usr/share/stepmake/bin\
725 /usr/lib/stepmake/bin\
726 stepmake/bin\
727 $srcdir/stepmake/bin\
728 ; do
729 if test -f $ac_dir/install-sh; then
730 ac_aux_dir=$ac_dir
731 ac_install_sh="$ac_aux_dir/install-sh -c"
732 break
733 elif test -f $ac_dir/install.sh; then
734 ac_aux_dir=$ac_dir
735 ac_install_sh="$ac_aux_dir/install.sh -c"
736 break
738 done
739 if test -z "$ac_aux_dir"; then
740 { echo "configure: error: can not find install-sh or install.sh in \
741 $HOME/usr/local/share/stepmake/bin\
742 $HOME/usr/local/lib/stepmake/bin\
743 $HOME/usr/share/stepmake/bin\
744 $HOME/usr/lib/stepmake/bin\
745 /usr/local/share/stepmake/bin\
746 /usr/local/lib/stepmake/bin\
747 /usr/share/stepmake/bin\
748 /usr/lib/stepmake/bin\
749 stepmake/bin\
750 $srcdir/stepmake/bin\
751 $srcdir/\
752 $HOME/usr/local/share/stepmake/bin\
753 $HOME/usr/local/lib/stepmake/bin\
754 $HOME/usr/share/stepmake/bin\
755 $HOME/usr/lib/stepmake/bin\
756 /usr/local/share/stepmake/bin\
757 /usr/local/lib/stepmake/bin\
758 /usr/share/stepmake/bin\
759 /usr/lib/stepmake/bin\
760 stepmake/bin\
761 $srcdir/stepmake/bin\
762 " 1>&2; exit 1; }
764 ac_config_guess=$ac_aux_dir/config.guess
765 ac_config_sub=$ac_aux_dir/config.sub
766 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
775 cat >> confdefs.h <<EOF
776 #define PACKAGE "${PACKAGE_NAME}"
779 cat >> confdefs.h <<EOF
780 #define TOPLEVEL_VERSION "${FULL_VERSION}"
784 if test "$package_depth" = "" ; then
785 package_depth="."
786 else
787 package_depth="../$package_depth"
789 export package_depth
792 AUTOGENERATE="This file was automatically generated by configure"
795 CONFIGSUFFIX=
796 # Check whether --enable-config or --disable-config was given.
797 if test "${enable_config+set}" = set; then
798 enableval="$enable_config"
799 CONFIGSUFFIX=-$enableval
803 CONFIGFILE=config$CONFIGSUFFIX
807 # Make sure we can run config.sub.
808 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
809 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
812 echo $ac_n "checking host system type""... $ac_c" 1>&6
813 echo "configure:814: checking host system type" >&5
815 host_alias=$host
816 case "$host_alias" in
817 NONE)
818 case $nonopt in
819 NONE)
820 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
821 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
822 fi ;;
823 *) host_alias=$nonopt ;;
824 esac ;;
825 esac
827 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
828 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
829 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
830 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
831 echo "$ac_t""$host" 1>&6
833 for ac_prog in gmake make
835 # Extract the first word of "$ac_prog", so it can be a program name with args.
836 set dummy $ac_prog; ac_word=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
841 else
842 if test -n "$MAKE"; then
843 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
844 else
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
846 ac_dummy="$PATH"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 ac_cv_prog_MAKE="$ac_prog"
851 break
853 done
854 IFS="$ac_save_ifs"
857 MAKE="$ac_cv_prog_MAKE"
858 if test -n "$MAKE"; then
859 echo "$ac_t""$MAKE" 1>&6
860 else
861 echo "$ac_t""no" 1>&6
864 test -n "$MAKE" && break
865 done
866 test -n "$MAKE" || MAKE="error"
868 for ac_prog in find
870 # Extract the first word of "$ac_prog", so it can be a program name with args.
871 set dummy $ac_prog; ac_word=$2
872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
873 echo "configure:874: checking for $ac_word" >&5
874 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
876 else
877 if test -n "$FIND"; then
878 ac_cv_prog_FIND="$FIND" # Let the user override the test.
879 else
880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
881 ac_dummy="$PATH"
882 for ac_dir in $ac_dummy; do
883 test -z "$ac_dir" && ac_dir=.
884 if test -f $ac_dir/$ac_word; then
885 ac_cv_prog_FIND="$ac_prog"
886 break
888 done
889 IFS="$ac_save_ifs"
892 FIND="$ac_cv_prog_FIND"
893 if test -n "$FIND"; then
894 echo "$ac_t""$FIND" 1>&6
895 else
896 echo "$ac_t""no" 1>&6
899 test -n "$FIND" && break
900 done
901 test -n "$FIND" || FIND="error"
905 for ac_prog in tar
907 # Extract the first word of "$ac_prog", so it can be a program name with args.
908 set dummy $ac_prog; ac_word=$2
909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
910 echo "configure:911: checking for $ac_word" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
913 else
914 if test -n "$TAR"; then
915 ac_cv_prog_TAR="$TAR" # Let the user override the test.
916 else
917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
918 ac_dummy="$PATH"
919 for ac_dir in $ac_dummy; do
920 test -z "$ac_dir" && ac_dir=.
921 if test -f $ac_dir/$ac_word; then
922 ac_cv_prog_TAR="$ac_prog"
923 break
925 done
926 IFS="$ac_save_ifs"
929 TAR="$ac_cv_prog_TAR"
930 if test -n "$TAR"; then
931 echo "$ac_t""$TAR" 1>&6
932 else
933 echo "$ac_t""no" 1>&6
936 test -n "$TAR" && break
937 done
938 test -n "$TAR" || TAR="error"
941 if test "x`uname`" = "xHP-UX"; then
942 # Extract the first word of "bash", so it can be a program name with args.
943 set dummy bash; ac_word=$2
944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
945 echo "configure:946: checking for $ac_word" >&5
946 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
948 else
949 case "$BASH" in
951 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
953 ?:/*)
954 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 ac_dummy="$PATH"
959 for ac_dir in $ac_dummy; do
960 test -z "$ac_dir" && ac_dir=.
961 if test -f $ac_dir/$ac_word; then
962 ac_cv_path_BASH="$ac_dir/$ac_word"
963 break
965 done
966 IFS="$ac_save_ifs"
967 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
969 esac
971 BASH="$ac_cv_path_BASH"
972 if test -n "$BASH"; then
973 echo "$ac_t""$BASH" 1>&6
974 else
975 echo "$ac_t""no" 1>&6
979 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
980 warn_b=yes
982 # Extract the first word of "bash", so it can be a program name with args.
983 set dummy bash; ac_word=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 echo "configure:986: checking for $ac_word" >&5
986 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
988 else
989 case "$SHELL" in
991 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
993 ?:/*)
994 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
998 ac_dummy="$PATH"
999 for ac_dir in $ac_dummy; do
1000 test -z "$ac_dir" && ac_dir=.
1001 if test -f $ac_dir/$ac_word; then
1002 ac_cv_path_SHELL="$ac_dir/$ac_word"
1003 break
1005 done
1006 IFS="$ac_save_ifs"
1007 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1009 esac
1011 SHELL="$ac_cv_path_SHELL"
1012 if test -n "$SHELL"; then
1013 echo "$ac_t""$SHELL" 1>&6
1014 else
1015 echo "$ac_t""no" 1>&6
1018 else
1019 # Extract the first word of "bash", so it can be a program name with args.
1020 set dummy bash; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 case "$BASH" in
1028 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1030 ?:/*)
1031 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1035 ac_dummy="$PATH"
1036 for ac_dir in $ac_dummy; do
1037 test -z "$ac_dir" && ac_dir=.
1038 if test -f $ac_dir/$ac_word; then
1039 ac_cv_path_BASH="$ac_dir/$ac_word"
1040 break
1042 done
1043 IFS="$ac_save_ifs"
1044 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1046 esac
1048 BASH="$ac_cv_path_BASH"
1049 if test -n "$BASH"; then
1050 echo "$ac_t""$BASH" 1>&6
1051 else
1052 echo "$ac_t""no" 1>&6
1055 SHELL=/bin/sh
1060 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1061 set dummy ${PYTHON:-python}; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066 else
1067 case "$PYTHON" in
1069 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1071 ?:/*)
1072 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 ac_dummy="$PATH"
1077 for ac_dir in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1080 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1081 break
1083 done
1084 IFS="$ac_save_ifs"
1085 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1087 esac
1089 PYTHON="$ac_cv_path_PYTHON"
1090 if test -n "$PYTHON"; then
1091 echo "$ac_t""$PYTHON" 1>&6
1092 else
1093 echo "$ac_t""no" 1>&6
1098 if test $MAKE != "error" ; then
1099 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1100 if test "$?" = 1
1101 then
1103 echo "configure: warning: Please install *GNU* make" 1>&2
1104 warn_b=yes
1110 result="`echo \"$PYTHON\" | grep echo`"
1111 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1113 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1114 warn_b=yes
1119 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1120 LN=cp # hard link does not work under cygnus-nt
1121 LN_S='cp -r' # symbolic link does not work for native nt
1122 ZIP="zip -r -9" #
1123 program_suffix=.exe
1124 # urg
1125 # ROOTSEP=':'
1126 # DIRSEP='\\'
1127 # PATHSEP=';'
1129 # cygwin fixes all these things.
1130 # it seems these were used because of dos-style TEXINPUTS and
1131 # MFINPUTS needed for miktex.
1132 # but this breaks parsing of all other cygwin/unix style paths.
1134 # if your (mik)tex breaks, make a:
1135 # /usr/local/bin/tex:
1136 # #!/bin/sh
1137 # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex
1139 # and
1141 # /usr/local/bin/mf:
1142 # #!/bin/sh
1143 # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf
1145 # this way, you may have buildscripts/out/lilypond-profile
1146 # 'automatically' sourced from /usr/etc/profile.d/ too.
1148 ROOTSEP=':'
1149 DIRSEP='/'
1150 PATHSEP=':'
1151 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1152 else
1153 ROOTSEP=':'
1154 DIRSEP='/'
1155 PATHSEP=':'
1156 LN=ln
1157 LN_S='ln -s'
1158 ZIP="zip -r -9"
1159 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1167 cat >> confdefs.h <<EOF
1168 #define DIRSEP '${DIRSEP}'
1171 cat >> confdefs.h <<EOF
1172 #define PATHSEP '${PATHSEP}'
1179 if test "$datadir" = "\${prefix}/share"; then
1180 datadir='${prefix}/share/'$package
1182 DIR_DATADIR=${datadir}
1183 presome=${prefix}
1184 if test "$prefix" = "NONE"; then
1185 presome=${ac_default_prefix}
1187 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1193 cat >> confdefs.h <<EOF
1194 #define DIR_DATADIR "${DIR_DATADIR}"
1200 # For all packages except the StepMake package itself
1201 subdirs="stepmake"
1204 # Uncomment the configuration options your package needs.
1206 # -O is necessary to get inlining
1207 CFLAGS=${CFLAGS:-""}
1208 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1209 LDFLAGS=${LDFLAGS:-""}
1210 checking_b=yes
1211 optimise_b=yes
1212 profile_b=no
1213 debug_b=yes
1215 # Check whether --enable-checking or --disable-checking was given.
1216 if test "${enable_checking+set}" = set; then
1217 enableval="$enable_checking"
1218 checking_b=$enableval
1222 # Check whether --enable-debugging or --disable-debugging was given.
1223 if test "${enable_debugging+set}" = set; then
1224 enableval="$enable_debugging"
1225 debug_b=$enableval
1229 # Check whether --enable-profiling or --disable-profiling was given.
1230 if test "${enable_profiling+set}" = set; then
1231 enableval="$enable_profiling"
1232 profile_b=$enableval
1237 if test "$checking_b" = no; then
1238 # ugh
1239 cat >> confdefs.h <<\EOF
1240 #define NDEBUG 1
1243 DEFINES="$DEFINES -DNDEBUG"
1246 if test "$optimise_b" = yes; then
1247 OPTIMIZE="-O2 -finline-functions"
1251 if test $profile_b = yes; then
1252 EXTRA_LIBES="-pg"
1253 OPTIMIZE="$OPTIMIZE -pg"
1256 if test $debug_b = yes; then
1257 OPTIMIZE="$OPTIMIZE -g"
1261 # Extract the first word of "gcc", so it can be a program name with args.
1262 set dummy gcc; ac_word=$2
1263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1264 echo "configure:1265: checking for $ac_word" >&5
1265 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1267 else
1268 if test -n "$CC"; then
1269 ac_cv_prog_CC="$CC" # Let the user override the test.
1270 else
1271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1272 ac_dummy="$PATH"
1273 for ac_dir in $ac_dummy; do
1274 test -z "$ac_dir" && ac_dir=.
1275 if test -f $ac_dir/$ac_word; then
1276 ac_cv_prog_CC="gcc"
1277 break
1279 done
1280 IFS="$ac_save_ifs"
1283 CC="$ac_cv_prog_CC"
1284 if test -n "$CC"; then
1285 echo "$ac_t""$CC" 1>&6
1286 else
1287 echo "$ac_t""no" 1>&6
1290 if test -z "$CC"; then
1291 # Extract the first word of "cc", so it can be a program name with args.
1292 set dummy cc; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1297 else
1298 if test -n "$CC"; then
1299 ac_cv_prog_CC="$CC" # Let the user override the test.
1300 else
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1302 ac_prog_rejected=no
1303 ac_dummy="$PATH"
1304 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/$ac_word; then
1307 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1308 ac_prog_rejected=yes
1309 continue
1311 ac_cv_prog_CC="cc"
1312 break
1314 done
1315 IFS="$ac_save_ifs"
1316 if test $ac_prog_rejected = yes; then
1317 # We found a bogon in the path, so make sure we never use it.
1318 set dummy $ac_cv_prog_CC
1319 shift
1320 if test $# -gt 0; then
1321 # We chose a different compiler from the bogus one.
1322 # However, it has the same basename, so the bogon will be chosen
1323 # first if we set CC to just the basename; use the full file name.
1324 shift
1325 set dummy "$ac_dir/$ac_word" "$@"
1326 shift
1327 ac_cv_prog_CC="$@"
1332 CC="$ac_cv_prog_CC"
1333 if test -n "$CC"; then
1334 echo "$ac_t""$CC" 1>&6
1335 else
1336 echo "$ac_t""no" 1>&6
1339 if test -z "$CC"; then
1340 case "`uname -s`" in
1341 *win32* | *WIN32*)
1342 # Extract the first word of "cl", so it can be a program name with args.
1343 set dummy cl; ac_word=$2
1344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_word" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349 if test -n "$CC"; then
1350 ac_cv_prog_CC="$CC" # Let the user override the test.
1351 else
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1353 ac_dummy="$PATH"
1354 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/$ac_word; then
1357 ac_cv_prog_CC="cl"
1358 break
1360 done
1361 IFS="$ac_save_ifs"
1364 CC="$ac_cv_prog_CC"
1365 if test -n "$CC"; then
1366 echo "$ac_t""$CC" 1>&6
1367 else
1368 echo "$ac_t""no" 1>&6
1371 esac
1373 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1376 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1377 echo "configure:1378: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1379 ac_ext=c
1380 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1383 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1384 cross_compiling=$ac_cv_prog_cc_cross
1386 cat > conftest.$ac_ext << EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1391 main(){return(0);}
1393 if { (eval echo configure:1394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1394 ac_cv_prog_cc_works=yes
1395 # If we can't run a trivial program, we are probably using a cross compiler.
1396 if (./conftest; exit) 2>/dev/null; then
1397 ac_cv_prog_cc_cross=no
1398 else
1399 ac_cv_prog_cc_cross=yes
1401 else
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1404 ac_cv_prog_cc_works=no
1406 rm -fr conftest*
1407 ac_ext=c
1408 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1409 ac_cpp='$CPP $CPPFLAGS'
1410 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1411 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1412 cross_compiling=$ac_cv_prog_cc_cross
1414 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1415 if test $ac_cv_prog_cc_works = no; then
1416 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1418 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1419 echo "configure:1420: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1420 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1421 cross_compiling=$ac_cv_prog_cc_cross
1423 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1424 echo "configure:1425: checking whether we are using GNU C" >&5
1425 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1427 else
1428 cat > conftest.c <<EOF
1429 #ifdef __GNUC__
1430 yes;
1431 #endif
1433 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1434 ac_cv_prog_gcc=yes
1435 else
1436 ac_cv_prog_gcc=no
1440 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1442 if test $ac_cv_prog_gcc = yes; then
1443 GCC=yes
1444 else
1445 GCC=
1448 ac_test_CFLAGS="${CFLAGS+set}"
1449 ac_save_CFLAGS="$CFLAGS"
1450 CFLAGS=
1451 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1452 echo "configure:1453: checking whether ${CC-cc} accepts -g" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 echo 'void f(){}' > conftest.c
1457 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1458 ac_cv_prog_cc_g=yes
1459 else
1460 ac_cv_prog_cc_g=no
1462 rm -f conftest*
1466 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1467 if test "$ac_test_CFLAGS" = set; then
1468 CFLAGS="$ac_save_CFLAGS"
1469 elif test $ac_cv_prog_cc_g = yes; then
1470 if test "$GCC" = yes; then
1471 CFLAGS="-g -O2"
1472 else
1473 CFLAGS="-g"
1475 else
1476 if test "$GCC" = yes; then
1477 CFLAGS="-O2"
1478 else
1479 CFLAGS=
1483 LD='$(CC)'
1486 CFLAGS="$CFLAGS $OPTIMIZE"
1487 CPPFLAGS=${CPPFLAGS:-""}
1497 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1498 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1499 echo "configure:1500: checking how to run the C preprocessor" >&5
1500 # On Suns, sometimes $CPP names a directory.
1501 if test -n "$CPP" && test -d "$CPP"; then
1502 CPP=
1504 if test -z "$CPP"; then
1505 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1507 else
1508 # This must be in double quotes, not single quotes, because CPP may get
1509 # substituted into the Makefile and "${CC-cc}" will confuse make.
1510 CPP="${CC-cc} -E"
1511 # On the NeXT, cc -E runs the code through the compiler's parser,
1512 # not just through cpp.
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 #include <assert.h>
1517 Syntax Error
1519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1520 { (eval echo configure:1521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1522 if test -z "$ac_err"; then
1524 else
1525 echo "$ac_err" >&5
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1528 rm -rf conftest*
1529 CPP="${CC-cc} -E -traditional-cpp"
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 #include <assert.h>
1534 Syntax Error
1536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1537 { (eval echo configure:1538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1539 if test -z "$ac_err"; then
1541 else
1542 echo "$ac_err" >&5
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1545 rm -rf conftest*
1546 CPP="${CC-cc} -nologo -E"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 #include <assert.h>
1551 Syntax Error
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1558 else
1559 echo "$ac_err" >&5
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1562 rm -rf conftest*
1563 CPP=/lib/cpp
1565 rm -f conftest*
1567 rm -f conftest*
1569 rm -f conftest*
1570 ac_cv_prog_CPP="$CPP"
1572 CPP="$ac_cv_prog_CPP"
1573 else
1574 ac_cv_prog_CPP="$CPP"
1576 echo "$ac_t""$CPP" 1>&6
1578 for ac_hdr in assert.h sys/stat.h
1580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1582 echo "configure:1583: checking for $ac_hdr" >&5
1583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586 cat > conftest.$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1589 #include <$ac_hdr>
1591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1592 { (eval echo configure:1593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1594 if test -z "$ac_err"; then
1595 rm -rf conftest*
1596 eval "ac_cv_header_$ac_safe=yes"
1597 else
1598 echo "$ac_err" >&5
1599 echo "configure: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1601 rm -rf conftest*
1602 eval "ac_cv_header_$ac_safe=no"
1604 rm -f conftest*
1606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1609 cat >> confdefs.h <<EOF
1610 #define $ac_tr_hdr 1
1613 else
1614 echo "$ac_t""no" 1>&6
1616 done
1618 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1619 echo "configure:1620: checking whether stat file-mode macros are broken" >&5
1620 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1622 else
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626 #include <sys/types.h>
1627 #include <sys/stat.h>
1629 #if defined(S_ISBLK) && defined(S_IFDIR)
1630 # if S_ISBLK (S_IFDIR)
1631 You lose.
1632 # endif
1633 #endif
1635 #if defined(S_ISBLK) && defined(S_IFCHR)
1636 # if S_ISBLK (S_IFCHR)
1637 You lose.
1638 # endif
1639 #endif
1641 #if defined(S_ISLNK) && defined(S_IFREG)
1642 # if S_ISLNK (S_IFREG)
1643 You lose.
1644 # endif
1645 #endif
1647 #if defined(S_ISSOCK) && defined(S_IFREG)
1648 # if S_ISSOCK (S_IFREG)
1649 You lose.
1650 # endif
1651 #endif
1654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1655 egrep "You lose" >/dev/null 2>&1; then
1656 rm -rf conftest*
1657 ac_cv_header_stat_broken=yes
1658 else
1659 rm -rf conftest*
1660 ac_cv_header_stat_broken=no
1662 rm -f conftest*
1666 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1667 if test $ac_cv_header_stat_broken = yes; then
1668 cat >> confdefs.h <<\EOF
1669 #define STAT_MACROS_BROKEN 1
1675 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1676 cat >> confdefs.h <<\EOF
1677 #define STRINGS_UTILS_INLINED 1
1681 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1682 echo "configure:1683: checking how to run the C++ preprocessor" >&5
1683 if test -z "$CXXCPP"; then
1684 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686 else
1687 ac_ext=C
1688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1689 ac_cpp='$CXXCPP $CPPFLAGS'
1690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1692 cross_compiling=$ac_cv_prog_cxx_cross
1693 CXXCPP="${CXX-g++} -E"
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 #include <stdlib.h>
1699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1700 { (eval echo configure:1701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1702 if test -z "$ac_err"; then
1704 else
1705 echo "$ac_err" >&5
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1708 rm -rf conftest*
1709 CXXCPP=/lib/cpp
1711 rm -f conftest*
1712 ac_cv_prog_CXXCPP="$CXXCPP"
1713 ac_ext=C
1714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1715 ac_cpp='$CXXCPP $CPPFLAGS'
1716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1718 cross_compiling=$ac_cv_prog_cxx_cross
1721 CXXCPP="$ac_cv_prog_CXXCPP"
1722 echo "$ac_t""$CXXCPP" 1>&6
1725 ac_ext=C
1726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1727 ac_cpp='$CXXCPP $CPPFLAGS'
1728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1730 cross_compiling=$ac_cv_prog_cxx_cross
1732 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_word" >&5
1738 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741 if test -n "$CXX"; then
1742 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1743 else
1744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 ac_dummy="$PATH"
1746 for ac_dir in $ac_dummy; do
1747 test -z "$ac_dir" && ac_dir=.
1748 if test -f $ac_dir/$ac_word; then
1749 ac_cv_prog_CXX="$ac_prog"
1750 break
1752 done
1753 IFS="$ac_save_ifs"
1756 CXX="$ac_cv_prog_CXX"
1757 if test -n "$CXX"; then
1758 echo "$ac_t""$CXX" 1>&6
1759 else
1760 echo "$ac_t""no" 1>&6
1763 test -n "$CXX" && break
1764 done
1765 test -n "$CXX" || CXX="gcc"
1768 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1769 echo "configure:1770: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1771 ac_ext=C
1772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1773 ac_cpp='$CXXCPP $CPPFLAGS'
1774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1776 cross_compiling=$ac_cv_prog_cxx_cross
1778 cat > conftest.$ac_ext << EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1783 int main(){return(0);}
1785 if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786 ac_cv_prog_cxx_works=yes
1787 # If we can't run a trivial program, we are probably using a cross compiler.
1788 if (./conftest; exit) 2>/dev/null; then
1789 ac_cv_prog_cxx_cross=no
1790 else
1791 ac_cv_prog_cxx_cross=yes
1793 else
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1796 ac_cv_prog_cxx_works=no
1798 rm -fr conftest*
1799 ac_ext=C
1800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1801 ac_cpp='$CXXCPP $CPPFLAGS'
1802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1804 cross_compiling=$ac_cv_prog_cxx_cross
1806 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1807 if test $ac_cv_prog_cxx_works = no; then
1808 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1810 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1811 echo "configure:1812: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1812 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1813 cross_compiling=$ac_cv_prog_cxx_cross
1815 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether we are using GNU C++" >&5
1817 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1819 else
1820 cat > conftest.C <<EOF
1821 #ifdef __GNUC__
1822 yes;
1823 #endif
1825 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1826 ac_cv_prog_gxx=yes
1827 else
1828 ac_cv_prog_gxx=no
1832 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1834 if test $ac_cv_prog_gxx = yes; then
1835 GXX=yes
1836 else
1837 GXX=
1840 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1841 ac_save_CXXFLAGS="$CXXFLAGS"
1842 CXXFLAGS=
1843 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1844 echo "configure:1845: checking whether ${CXX-g++} accepts -g" >&5
1845 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 echo 'void f(){}' > conftest.cc
1849 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1850 ac_cv_prog_cxx_g=yes
1851 else
1852 ac_cv_prog_cxx_g=no
1854 rm -f conftest*
1858 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1859 if test "$ac_test_CXXFLAGS" = set; then
1860 CXXFLAGS="$ac_save_CXXFLAGS"
1861 elif test $ac_cv_prog_cxx_g = yes; then
1862 if test "$GXX" = yes; then
1863 CXXFLAGS="-g -O2"
1864 else
1865 CXXFLAGS="-g"
1867 else
1868 if test "$GXX" = yes; then
1869 CXXFLAGS="-O2"
1870 else
1871 CXXFLAGS=
1876 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1877 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1878 echo "configure:1879: checking for FlexLexer.h" >&5
1879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include <FlexLexer.h>
1887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1888 { (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1890 if test -z "$ac_err"; then
1891 rm -rf conftest*
1892 eval "ac_cv_header_$ac_safe=yes"
1893 else
1894 echo "$ac_err" >&5
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -rf conftest*
1898 eval "ac_cv_header_$ac_safe=no"
1900 rm -f conftest*
1902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1903 echo "$ac_t""yes" 1>&6
1904 true
1905 else
1906 echo "$ac_t""no" 1>&6
1908 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1909 warn_b=yes
1914 CPPFLAGS="$CPPFLAGS $DEFINES"
1915 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1916 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1920 LD='$(CXX)'
1924 # ugh autoconf
1925 # urg, egcs: how to check for egcs >= 1.1?
1926 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1927 $CXX --version | grep 'egcs' > /dev/null
1928 then
1929 true
1930 else
1932 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1933 warn_b=yes
1938 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1939 echo "configure:1940: checking whether explicit instantiation is needed" >&5
1940 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1947 template <class T> struct foo { static int baz; };
1948 template <class T> int foo<T>::baz = 1;
1950 int main() {
1951 return foo<int>::baz;
1952 ; return 0; }
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1955 rm -rf conftest*
1956 lily_cv_need_explicit_instantiation=no
1957 else
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1960 rm -rf conftest*
1961 lily_cv_need_explicit_instantiation=yes
1963 rm -f conftest*
1966 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1967 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1968 cat >> confdefs.h <<\EOF
1969 #define NEED_EXPLICIT_INSTANTIATION 1
1975 # ugh, automake: we want (and check for) bison
1976 for ac_prog in 'bison -y' byacc
1978 # Extract the first word of "$ac_prog", so it can be a program name with args.
1979 set dummy $ac_prog; ac_word=$2
1980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_word" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 if test -n "$YACC"; then
1986 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1987 else
1988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1989 ac_dummy="$PATH"
1990 for ac_dir in $ac_dummy; do
1991 test -z "$ac_dir" && ac_dir=.
1992 if test -f $ac_dir/$ac_word; then
1993 ac_cv_prog_YACC="$ac_prog"
1994 break
1996 done
1997 IFS="$ac_save_ifs"
2000 YACC="$ac_cv_prog_YACC"
2001 if test -n "$YACC"; then
2002 echo "$ac_t""$YACC" 1>&6
2003 else
2004 echo "$ac_t""no" 1>&6
2007 test -n "$YACC" && break
2008 done
2009 test -n "$YACC" || YACC="yacc"
2011 # ugh, automake: we want (and check for) flex
2012 # AC_PROG_LEX
2013 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2015 # AC_DECL_YYTEXT
2016 # ugh, ugh
2017 ac_cv_prog_lex_root=lex.yy
2019 for ac_prog in bison
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2024 echo "configure:2025: checking for $ac_word" >&5
2025 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2027 else
2028 if test -n "$BISON"; then
2029 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2030 else
2031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2032 ac_dummy="$PATH"
2033 for ac_dir in $ac_dummy; do
2034 test -z "$ac_dir" && ac_dir=.
2035 if test -f $ac_dir/$ac_word; then
2036 ac_cv_prog_BISON="$ac_prog"
2037 break
2039 done
2040 IFS="$ac_save_ifs"
2043 BISON="$ac_cv_prog_BISON"
2044 if test -n "$BISON"; then
2045 echo "$ac_t""$BISON" 1>&6
2046 else
2047 echo "$ac_t""no" 1>&6
2050 test -n "$BISON" && break
2051 done
2052 test -n "$BISON" || BISON="error"
2054 for ac_prog in flex
2056 # Extract the first word of "$ac_prog", so it can be a program name with args.
2057 set dummy $ac_prog; ac_word=$2
2058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_word" >&5
2060 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 if test -n "$FLEX"; then
2064 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2065 else
2066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2067 ac_dummy="$PATH"
2068 for ac_dir in $ac_dummy; do
2069 test -z "$ac_dir" && ac_dir=.
2070 if test -f $ac_dir/$ac_word; then
2071 ac_cv_prog_FLEX="$ac_prog"
2072 break
2074 done
2075 IFS="$ac_save_ifs"
2078 FLEX="$ac_cv_prog_FLEX"
2079 if test -n "$FLEX"; then
2080 echo "$ac_t""$FLEX" 1>&6
2081 else
2082 echo "$ac_t""no" 1>&6
2085 test -n "$FLEX" && break
2086 done
2087 test -n "$FLEX" || FLEX="error"
2090 result="`echo \"$BISON\" | grep echo`"
2091 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2093 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2094 warn_b=yes
2099 result="`echo \"$FLEX\" | grep echo`"
2100 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2102 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2103 warn_b=yes
2108 if test $BISON != "error"; then
2109 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2110 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2112 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2113 warn_b=yes
2122 for ac_prog in ar
2124 # Extract the first word of "$ac_prog", so it can be a program name with args.
2125 set dummy $ac_prog; ac_word=$2
2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2127 echo "configure:2128: checking for $ac_word" >&5
2128 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131 if test -n "$AR"; then
2132 ac_cv_prog_AR="$AR" # Let the user override the test.
2133 else
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2135 ac_dummy="$PATH"
2136 for ac_dir in $ac_dummy; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f $ac_dir/$ac_word; then
2139 ac_cv_prog_AR="$ac_prog"
2140 break
2142 done
2143 IFS="$ac_save_ifs"
2146 AR="$ac_cv_prog_AR"
2147 if test -n "$AR"; then
2148 echo "$ac_t""$AR" 1>&6
2149 else
2150 echo "$ac_t""no" 1>&6
2153 test -n "$AR" && break
2154 done
2155 test -n "$AR" || AR="error"
2157 # Extract the first word of "ranlib", so it can be a program name with args.
2158 set dummy ranlib; ac_word=$2
2159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_word" >&5
2161 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 if test -n "$RANLIB"; then
2165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2166 else
2167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2168 ac_dummy="$PATH"
2169 for ac_dir in $ac_dummy; do
2170 test -z "$ac_dir" && ac_dir=.
2171 if test -f $ac_dir/$ac_word; then
2172 ac_cv_prog_RANLIB="ranlib"
2173 break
2175 done
2176 IFS="$ac_save_ifs"
2177 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2180 RANLIB="$ac_cv_prog_RANLIB"
2181 if test -n "$RANLIB"; then
2182 echo "$ac_t""$RANLIB" 1>&6
2183 else
2184 echo "$ac_t""no" 1>&6
2192 lang=English
2193 ALL_LINGUAS="en nl"
2195 # with/enable ??
2196 # Check whether --with-localedir or --without-localedir was given.
2197 if test "${with_localedir+set}" = set; then
2198 withval="$with_localedir"
2199 localedir=$with_localedir
2200 else
2201 localedir='${prefix}/share/locale'
2205 # Check whether --with-lang or --without-lang was given.
2206 if test "${with_lang+set}" = set; then
2207 withval="$with_lang"
2208 language=$with_lang
2209 else
2210 language=English
2214 echo $ac_n "checking language""... $ac_c" 1>&6
2215 echo "configure:2216: checking language" >&5
2216 case "$language" in
2217 En* | en* | Am* | am* | US* | us*)
2218 lang=English;;
2219 NL | nl | Du* | du* | Ned* | ned*)
2220 lang=Dutch;;
2222 lang=English;;
2224 lang=unknown;;
2225 esac
2226 echo "$ac_t""$lang" 1>&6
2228 if test "$lang" = "unknown" ; then
2230 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2231 warn_b=yes
2237 DIR_LOCALEDIR=${localedir}
2238 presome=${prefix}
2239 if test "$prefix" = "NONE"; then
2240 presome=${ac_default_prefix}
2242 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2245 cat >> confdefs.h <<EOF
2246 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2250 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2251 echo "configure:2252: checking for gettext in -lintl" >&5
2252 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 ac_save_LIBS="$LIBS"
2257 LIBS="-lintl $LIBS"
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 #ifdef __cplusplus
2263 extern "C"
2264 #endif
2265 /* We use char because int might match the return type of a gcc2
2266 builtin and then its argument prototype would still apply. */
2267 char gettext();
2269 int main() {
2270 gettext()
2271 ; return 0; }
2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2274 rm -rf conftest*
2275 eval "ac_cv_lib_$ac_lib_var=yes"
2276 else
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 rm -rf conftest*
2280 eval "ac_cv_lib_$ac_lib_var=no"
2282 rm -f conftest*
2283 LIBS="$ac_save_LIBS"
2286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2287 echo "$ac_t""yes" 1>&6
2288 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2290 cat >> confdefs.h <<EOF
2291 #define $ac_tr_lib 1
2294 LIBS="-lintl $LIBS"
2296 else
2297 echo "$ac_t""no" 1>&6
2300 for ac_func in gettext
2302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_func" >&5
2304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 /* System header to define __stub macros and hopefully few prototypes,
2311 which can conflict with char $ac_func(); below. */
2312 #include <assert.h>
2313 /* Override any gcc2 internal prototype to avoid an error. */
2314 #ifdef __cplusplus
2315 extern "C"
2316 #endif
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2319 char $ac_func();
2321 int main() {
2323 /* The GNU C library defines this for functions which it implements
2324 to always fail with ENOSYS. Some functions are actually named
2325 something starting with __ and the normal name is an alias. */
2326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2327 choke me
2328 #else
2329 $ac_func();
2330 #endif
2332 ; return 0; }
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 rm -rf conftest*
2336 eval "ac_cv_func_$ac_func=yes"
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -rf conftest*
2341 eval "ac_cv_func_$ac_func=no"
2343 rm -f conftest*
2346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2349 cat >> confdefs.h <<EOF
2350 #define $ac_tr_func 1
2353 else
2354 echo "$ac_t""no" 1>&6
2356 done
2360 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2361 for ac_prog in msgfmt
2363 # Extract the first word of "$ac_prog", so it can be a program name with args.
2364 set dummy $ac_prog; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2369 else
2370 if test -n "$MSGFMT"; then
2371 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2372 else
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2374 ac_dummy="$PATH"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_prog_MSGFMT="$ac_prog"
2379 break
2381 done
2382 IFS="$ac_save_ifs"
2385 MSGFMT="$ac_cv_prog_MSGFMT"
2386 if test -n "$MSGFMT"; then
2387 echo "$ac_t""$MSGFMT" 1>&6
2388 else
2389 echo "$ac_t""no" 1>&6
2392 test -n "$MSGFMT" && break
2393 done
2394 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2396 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2397 echo "configure:2398: checking whether msgfmt accepts -o" >&5
2398 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2399 if test "$msgfmt_output" = ""; then
2400 echo "$ac_t""yes" 1>&6
2401 else
2402 # urg
2403 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2404 echo "$ac_t""no" 1>&6
2406 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2407 warn_b=yes
2410 if test ! -n "$MSGFMT"; then
2412 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2413 warn_b=yes
2418 # urg, never know what names these teTeX guys will think up
2420 for ac_prog in mf
2422 # Extract the first word of "$ac_prog", so it can be a program name with args.
2423 set dummy $ac_prog; ac_word=$2
2424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_word" >&5
2426 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2429 if test -n "$METAFONT"; then
2430 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2431 else
2432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2433 ac_dummy="$PATH"
2434 for ac_dir in $ac_dummy; do
2435 test -z "$ac_dir" && ac_dir=.
2436 if test -f $ac_dir/$ac_word; then
2437 ac_cv_prog_METAFONT="$ac_prog"
2438 break
2440 done
2441 IFS="$ac_save_ifs"
2444 METAFONT="$ac_cv_prog_METAFONT"
2445 if test -n "$METAFONT"; then
2446 echo "$ac_t""$METAFONT" 1>&6
2447 else
2448 echo "$ac_t""no" 1>&6
2451 test -n "$METAFONT" && break
2452 done
2453 test -n "$METAFONT" || METAFONT="no"
2455 if test "x$METAFONT" = "xno"; then
2456 for ac_prog in mfont
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_word" >&5
2462 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 if test -n "$MFONT"; then
2466 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2467 else
2468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2469 ac_dummy="$PATH"
2470 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 if test -f $ac_dir/$ac_word; then
2473 ac_cv_prog_MFONT="$ac_prog"
2474 break
2476 done
2477 IFS="$ac_save_ifs"
2480 MFONT="$ac_cv_prog_MFONT"
2481 if test -n "$MFONT"; then
2482 echo "$ac_t""$MFONT" 1>&6
2483 else
2484 echo "$ac_t""no" 1>&6
2487 test -n "$MFONT" && break
2488 done
2489 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2491 METAFONT=$MFONT
2494 for ac_prog in mp
2496 # Extract the first word of "$ac_prog", so it can be a program name with args.
2497 set dummy $ac_prog; ac_word=$2
2498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2499 echo "configure:2500: checking for $ac_word" >&5
2500 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2502 else
2503 if test -n "$METAPOST"; then
2504 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2505 else
2506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2507 ac_dummy="$PATH"
2508 for ac_dir in $ac_dummy; do
2509 test -z "$ac_dir" && ac_dir=.
2510 if test -f $ac_dir/$ac_word; then
2511 ac_cv_prog_METAPOST="$ac_prog"
2512 break
2514 done
2515 IFS="$ac_save_ifs"
2518 METAPOST="$ac_cv_prog_METAPOST"
2519 if test -n "$METAPOST"; then
2520 echo "$ac_t""$METAPOST" 1>&6
2521 else
2522 echo "$ac_t""no" 1>&6
2525 test -n "$METAPOST" && break
2526 done
2527 test -n "$METAPOST" || METAPOST="no"
2529 if test "x$METAPOST" = "xno"; then
2530 for ac_prog in mpost
2532 # Extract the first word of "$ac_prog", so it can be a program name with args.
2533 set dummy $ac_prog; ac_word=$2
2534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_word" >&5
2536 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2538 else
2539 if test -n "$MPOST"; then
2540 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2541 else
2542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2543 ac_dummy="$PATH"
2544 for ac_dir in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir=.
2546 if test -f $ac_dir/$ac_word; then
2547 ac_cv_prog_MPOST="$ac_prog"
2548 break
2550 done
2551 IFS="$ac_save_ifs"
2554 MPOST="$ac_cv_prog_MPOST"
2555 if test -n "$MPOST"; then
2556 echo "$ac_t""$MPOST" 1>&6
2557 else
2558 echo "$ac_t""no" 1>&6
2561 test -n "$MPOST" && break
2562 done
2563 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2566 METAPOST=$MPOST
2569 for ac_prog in inimf
2571 # Extract the first word of "$ac_prog", so it can be a program name with args.
2572 set dummy $ac_prog; ac_word=$2
2573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_word" >&5
2575 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577 else
2578 if test -n "$INIMETAFONT"; then
2579 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2580 else
2581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2582 ac_dummy="$PATH"
2583 for ac_dir in $ac_dummy; do
2584 test -z "$ac_dir" && ac_dir=.
2585 if test -f $ac_dir/$ac_word; then
2586 ac_cv_prog_INIMETAFONT="$ac_prog"
2587 break
2589 done
2590 IFS="$ac_save_ifs"
2593 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2594 if test -n "$INIMETAFONT"; then
2595 echo "$ac_t""$INIMETAFONT" 1>&6
2596 else
2597 echo "$ac_t""no" 1>&6
2600 test -n "$INIMETAFONT" && break
2601 done
2602 test -n "$INIMETAFONT" || INIMETAFONT="no"
2604 if test "x$INIMETAFONT" = "xno"; then
2605 for ac_prog in inimfont
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_word" >&5
2611 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614 if test -n "$INIMFONT"; then
2615 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2616 else
2617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2618 ac_dummy="$PATH"
2619 for ac_dir in $ac_dummy; do
2620 test -z "$ac_dir" && ac_dir=.
2621 if test -f $ac_dir/$ac_word; then
2622 ac_cv_prog_INIMFONT="$ac_prog"
2623 break
2625 done
2626 IFS="$ac_save_ifs"
2629 INIMFONT="$ac_cv_prog_INIMFONT"
2630 if test -n "$INIMFONT"; then
2631 echo "$ac_t""$INIMFONT" 1>&6
2632 else
2633 echo "$ac_t""no" 1>&6
2636 test -n "$INIMFONT" && break
2637 done
2638 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2640 INIMETAFONT=$INIMFONT
2643 for ac_prog in inimp
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2648 echo "configure:2649: checking for $ac_word" >&5
2649 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2651 else
2652 if test -n "$INIMETAPOST"; then
2653 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2654 else
2655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2656 ac_dummy="$PATH"
2657 for ac_dir in $ac_dummy; do
2658 test -z "$ac_dir" && ac_dir=.
2659 if test -f $ac_dir/$ac_word; then
2660 ac_cv_prog_INIMETAPOST="$ac_prog"
2661 break
2663 done
2664 IFS="$ac_save_ifs"
2667 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2668 if test -n "$INIMETAPOST"; then
2669 echo "$ac_t""$INIMETAPOST" 1>&6
2670 else
2671 echo "$ac_t""no" 1>&6
2674 test -n "$INIMETAPOST" && break
2675 done
2676 test -n "$INIMETAPOST" || INIMETAPOST="no"
2678 if test "x$INIMETAPOST" = "xno"; then
2679 for ac_prog in inimpost
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2684 echo "configure:2685: checking for $ac_word" >&5
2685 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2687 else
2688 if test -n "$INIMPOST"; then
2689 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2690 else
2691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2692 ac_dummy="$PATH"
2693 for ac_dir in $ac_dummy; do
2694 test -z "$ac_dir" && ac_dir=.
2695 if test -f $ac_dir/$ac_word; then
2696 ac_cv_prog_INIMPOST="$ac_prog"
2697 break
2699 done
2700 IFS="$ac_save_ifs"
2703 INIMPOST="$ac_cv_prog_INIMPOST"
2704 if test -n "$INIMPOST"; then
2705 echo "$ac_t""$INIMPOST" 1>&6
2706 else
2707 echo "$ac_t""no" 1>&6
2710 test -n "$INIMPOST" && break
2711 done
2712 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2714 INIMETAPOST=$INIMPOST
2717 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2718 echo "configure:2719: checking for working metafont mode" >&5
2719 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2720 for MFMODE in $modelist; do
2721 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2722 if test -f mfput.tfm; then
2723 break;
2725 done
2726 echo "$ac_t""$MFMODE" 1>&6
2728 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2729 echo "configure:2730: checking for mfplain.mp" >&5
2731 # For now let people define these in their environments
2733 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2734 echo "$ac_t""$MFPLAIN_MP" 1>&6
2736 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2737 echo "configure:2738: checking for inimetapost flags" >&5
2738 if test ${INIMETAPOST} = "inimp" ; then
2739 : ${INIMETAPOST_FLAGS=''}
2740 else
2741 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2743 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2745 rm -f mfput.*
2756 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2757 if test "${enable_tfm_path+set}" = set; then
2758 enableval="$enable_tfm_path"
2759 tfm_path=$enableval
2760 else
2761 tfm_path=auto
2765 for ac_prog in kpsewhich
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768 set dummy $ac_prog; ac_word=$2
2769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2770 echo "configure:2771: checking for $ac_word" >&5
2771 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2773 else
2774 if test -n "$KPSEWHICH"; then
2775 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2776 else
2777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2778 ac_dummy="$PATH"
2779 for ac_dir in $ac_dummy; do
2780 test -z "$ac_dir" && ac_dir=.
2781 if test -f $ac_dir/$ac_word; then
2782 ac_cv_prog_KPSEWHICH="$ac_prog"
2783 break
2785 done
2786 IFS="$ac_save_ifs"
2789 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2790 if test -n "$KPSEWHICH"; then
2791 echo "$ac_t""$KPSEWHICH" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2796 test -n "$KPSEWHICH" && break
2797 done
2798 test -n "$KPSEWHICH" || KPSEWHICH="no"
2800 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2801 echo "configure:2802: checking for tfm path" >&5
2803 TFM_FONTS="cmr msam"
2805 if test "x$tfm_path" = xauto ; then
2806 if test "x$KPSEWHICH" != "xno" ; then
2807 for i in $TFM_FONTS; do
2808 dir=`$KPSEWHICH tfm ${i}10.tfm`
2809 TFM_PATH="$TFM_PATH `dirname $dir`"
2810 done
2811 else
2813 echo "configure: warning: Please specify where cmr10.tfm lives:
2814 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2815 warn_b=yes
2818 else
2819 TFM_PATH=$tfm_path
2822 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2823 echo "$ac_t""$TFM_PATH" 1>&6
2827 ## First, let's just see if we can find Guile at all.
2828 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2829 echo "configure:2830: checking "for guile-config"" >&5
2830 for guile_config in guile-config $target-guile-config $build-guile-config; do
2831 echo "$ac_t"""$guile_config"" 1>&6
2832 if ! $guile_config --version > /dev/null 2>&1 ; then
2833 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2834 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2835 echo "configure:2836: checking "if we are cross compiling"" >&5
2836 guile_config=error
2837 else
2838 break
2840 done
2841 if test "$guile_config" = "error"; then
2842 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2843 exit 1
2845 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2846 echo "configure:2847: checking "Guile version"" >&5
2847 need_guile_version="1.3.4"
2848 need_guile_version_numeric=100304
2849 guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2850 guile_version_numeric=`echo $guile_version | awk -F. '
2851 {if ($3) {last = $3}
2852 else {last =0}}
2853 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2854 echo "$ac_t"""$guile_version"" 1>&6
2855 if test $guile_version_numeric -lt $need_guile_version_numeric
2856 then
2858 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2859 warn_b=yes
2863 ## The GUILE_FLAGS macro.
2864 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2865 echo "configure:2866: checking for Guile" >&5
2866 if ! $guile_config link > /dev/null ; then
2867 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2868 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2869 exit 1
2871 GUILE_CFLAGS="`$guile_config compile`"
2872 GUILE_LDFLAGS="`$guile_config link`"
2875 echo "$ac_t""yes" 1>&6
2877 # Extract the first word of "guile", so it can be a program name with args.
2878 set dummy guile; 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_path_GUILE'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2883 else
2884 case "$GUILE" in
2886 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2888 ?:/*)
2889 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2893 ac_dummy="$PATH"
2894 for ac_dir in $ac_dummy; do
2895 test -z "$ac_dir" && ac_dir=.
2896 if test -f $ac_dir/$ac_word; then
2897 ac_cv_path_GUILE="$ac_dir/$ac_word"
2898 break
2900 done
2901 IFS="$ac_save_ifs"
2902 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2904 esac
2906 GUILE="$ac_cv_path_GUILE"
2907 if test -n "$GUILE"; then
2908 echo "$ac_t""$GUILE" 1>&6
2909 else
2910 echo "$ac_t""no" 1>&6
2917 kpathsea_b=yes
2918 # Check whether --with-kpathsea or --without-kpathsea was given.
2919 if test "${with_kpathsea+set}" = set; then
2920 withval="$with_kpathsea"
2921 kpathsea_b=$enableval
2925 if test "$kpathsea_b" = "yes"; then
2926 for ac_hdr in kpathsea/kpathsea.h
2928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2930 echo "configure:2931: checking for $ac_hdr" >&5
2931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2933 else
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 #include <$ac_hdr>
2939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2940 { (eval echo configure:2941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2942 if test -z "$ac_err"; then
2943 rm -rf conftest*
2944 eval "ac_cv_header_$ac_safe=yes"
2945 else
2946 echo "$ac_err" >&5
2947 echo "configure: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2949 rm -rf conftest*
2950 eval "ac_cv_header_$ac_safe=no"
2952 rm -f conftest*
2954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2955 echo "$ac_t""yes" 1>&6
2956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2957 cat >> confdefs.h <<EOF
2958 #define $ac_tr_hdr 1
2961 else
2962 echo "$ac_t""no" 1>&6
2964 done
2966 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2967 echo "configure:2968: checking for kpse_find_file in -lkpathsea" >&5
2968 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2971 else
2972 ac_save_LIBS="$LIBS"
2973 LIBS="-lkpathsea $LIBS"
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 /* Override any gcc2 internal prototype to avoid an error. */
2978 #ifdef __cplusplus
2979 extern "C"
2980 #endif
2981 /* We use char because int might match the return type of a gcc2
2982 builtin and then its argument prototype would still apply. */
2983 char kpse_find_file();
2985 int main() {
2986 kpse_find_file()
2987 ; return 0; }
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2990 rm -rf conftest*
2991 eval "ac_cv_lib_$ac_lib_var=yes"
2992 else
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2995 rm -rf conftest*
2996 eval "ac_cv_lib_$ac_lib_var=no"
2998 rm -f conftest*
2999 LIBS="$ac_save_LIBS"
3002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3003 echo "$ac_t""yes" 1>&6
3004 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3005 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3006 cat >> confdefs.h <<EOF
3007 #define $ac_tr_lib 1
3010 LIBS="-lkpathsea $LIBS"
3012 else
3013 echo "$ac_t""no" 1>&6
3016 for ac_func in kpse_find_file
3018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_func" >&5
3020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3022 else
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3026 /* System header to define __stub macros and hopefully few prototypes,
3027 which can conflict with char $ac_func(); below. */
3028 #include <assert.h>
3029 /* Override any gcc2 internal prototype to avoid an error. */
3030 #ifdef __cplusplus
3031 extern "C"
3032 #endif
3033 /* We use char because int might match the return type of a gcc2
3034 builtin and then its argument prototype would still apply. */
3035 char $ac_func();
3037 int main() {
3039 /* The GNU C library defines this for functions which it implements
3040 to always fail with ENOSYS. Some functions are actually named
3041 something starting with __ and the normal name is an alias. */
3042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3043 choke me
3044 #else
3045 $ac_func();
3046 #endif
3048 ; return 0; }
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3051 rm -rf conftest*
3052 eval "ac_cv_func_$ac_func=yes"
3053 else
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3056 rm -rf conftest*
3057 eval "ac_cv_func_$ac_func=no"
3059 rm -f conftest*
3062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3063 echo "$ac_t""yes" 1>&6
3064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3065 cat >> confdefs.h <<EOF
3066 #define $ac_tr_func 1
3069 else
3070 echo "$ac_t""no" 1>&6
3071 { echo "configure: error: Cannot find kpathsea functions. Rerun with --without-kpathsea." 1>&2; exit 1; }
3073 done
3076 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3077 echo "configure:3078: checking whether to use kpathsea" >&5
3078 if test "$kpathsea_b" = yes; then
3079 echo "$ac_t""yes" 1>&6
3080 KPATHSEA=1
3081 else
3082 echo "$ac_t""no" 1>&6
3083 KPATHSEA=0
3087 cat >> confdefs.h <<EOF
3088 #define KPATHSEA $KPATHSEA
3093 for ac_prog in bibtex2html bib2html
3095 # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy $ac_prog; ac_word=$2
3097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3098 echo "configure:3099: checking for $ac_word" >&5
3099 if eval "test \"`echo '$''{'ac_cv_prog_BIBTEX2HTML'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3101 else
3102 if test -n "$BIBTEX2HTML"; then
3103 ac_cv_prog_BIBTEX2HTML="$BIBTEX2HTML" # Let the user override the test.
3104 else
3105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3106 ac_dummy="$PATH"
3107 for ac_dir in $ac_dummy; do
3108 test -z "$ac_dir" && ac_dir=.
3109 if test -f $ac_dir/$ac_word; then
3110 ac_cv_prog_BIBTEX2HTML="$ac_prog"
3111 break
3113 done
3114 IFS="$ac_save_ifs"
3117 BIBTEX2HTML="$ac_cv_prog_BIBTEX2HTML"
3118 if test -n "$BIBTEX2HTML"; then
3119 echo "$ac_t""$BIBTEX2HTML" 1>&6
3120 else
3121 echo "$ac_t""no" 1>&6
3124 test -n "$BIBTEX2HTML" && break
3125 done
3126 test -n "$BIBTEX2HTML" || BIBTEX2HTML="error"
3128 if test "$BIBTEX2HTML" = "bib2html"; then
3129 BIBTEX2HTML_FLAGS='$< $(@)'
3130 else
3131 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
3138 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3139 echo "configure:3140: checking for 8-bit clean memcmp" >&5
3140 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143 if test "$cross_compiling" = yes; then
3144 ac_cv_func_memcmp_clean=no
3145 else
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #ifdef __cplusplus
3150 extern "C" void exit(int);
3151 #endif
3153 main()
3155 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3156 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3160 if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3161 then
3162 ac_cv_func_memcmp_clean=yes
3163 else
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3166 rm -fr conftest*
3167 ac_cv_func_memcmp_clean=no
3169 rm -fr conftest*
3174 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3175 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3177 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3178 echo "configure:3179: checking for vprintf" >&5
3179 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3181 else
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 /* System header to define __stub macros and hopefully few prototypes,
3186 which can conflict with char vprintf(); below. */
3187 #include <assert.h>
3188 /* Override any gcc2 internal prototype to avoid an error. */
3189 #ifdef __cplusplus
3190 extern "C"
3191 #endif
3192 /* We use char because int might match the return type of a gcc2
3193 builtin and then its argument prototype would still apply. */
3194 char vprintf();
3196 int main() {
3198 /* The GNU C library defines this for functions which it implements
3199 to always fail with ENOSYS. Some functions are actually named
3200 something starting with __ and the normal name is an alias. */
3201 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3202 choke me
3203 #else
3204 vprintf();
3205 #endif
3207 ; return 0; }
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3210 rm -rf conftest*
3211 eval "ac_cv_func_vprintf=yes"
3212 else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 rm -rf conftest*
3216 eval "ac_cv_func_vprintf=no"
3218 rm -f conftest*
3221 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3222 echo "$ac_t""yes" 1>&6
3223 cat >> confdefs.h <<\EOF
3224 #define HAVE_VPRINTF 1
3227 else
3228 echo "$ac_t""no" 1>&6
3231 if test "$ac_cv_func_vprintf" != yes; then
3232 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3233 echo "configure:3234: checking for _doprnt" >&5
3234 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3236 else
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 /* System header to define __stub macros and hopefully few prototypes,
3241 which can conflict with char _doprnt(); below. */
3242 #include <assert.h>
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 #ifdef __cplusplus
3245 extern "C"
3246 #endif
3247 /* We use char because int might match the return type of a gcc2
3248 builtin and then its argument prototype would still apply. */
3249 char _doprnt();
3251 int main() {
3253 /* The GNU C library defines this for functions which it implements
3254 to always fail with ENOSYS. Some functions are actually named
3255 something starting with __ and the normal name is an alias. */
3256 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3257 choke me
3258 #else
3259 _doprnt();
3260 #endif
3262 ; return 0; }
3264 if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265 rm -rf conftest*
3266 eval "ac_cv_func__doprnt=yes"
3267 else
3268 echo "configure: failed program was:" >&5
3269 cat conftest.$ac_ext >&5
3270 rm -rf conftest*
3271 eval "ac_cv_func__doprnt=no"
3273 rm -f conftest*
3276 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3278 cat >> confdefs.h <<\EOF
3279 #define HAVE_DOPRNT 1
3282 else
3283 echo "$ac_t""no" 1>&6
3288 for ac_func in memmem snprintf vsnprintf gettext isinf
3290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3291 echo "configure:3292: checking for $ac_func" >&5
3292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3294 else
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* System header to define __stub macros and hopefully few prototypes,
3299 which can conflict with char $ac_func(); below. */
3300 #include <assert.h>
3301 /* Override any gcc2 internal prototype to avoid an error. */
3302 #ifdef __cplusplus
3303 extern "C"
3304 #endif
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3307 char $ac_func();
3309 int main() {
3311 /* The GNU C library defines this for functions which it implements
3312 to always fail with ENOSYS. Some functions are actually named
3313 something starting with __ and the normal name is an alias. */
3314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3315 choke me
3316 #else
3317 $ac_func();
3318 #endif
3320 ; return 0; }
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3323 rm -rf conftest*
3324 eval "ac_cv_func_$ac_func=yes"
3325 else
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 rm -rf conftest*
3329 eval "ac_cv_func_$ac_func=no"
3331 rm -f conftest*
3334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3337 cat >> confdefs.h <<EOF
3338 #define $ac_tr_func 1
3341 else
3342 echo "$ac_t""no" 1>&6
3344 done
3347 cat >> confdefs.h <<EOF
3348 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3351 cat >> confdefs.h <<EOF
3352 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3356 for ac_prog in makeinfo
3358 # Extract the first word of "$ac_prog", so it can be a program name with args.
3359 set dummy $ac_prog; ac_word=$2
3360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_word" >&5
3362 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3364 else
3365 if test -n "$MAKEINFO"; then
3366 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3367 else
3368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3369 ac_dummy="$PATH"
3370 for ac_dir in $ac_dummy; do
3371 test -z "$ac_dir" && ac_dir=.
3372 if test -f $ac_dir/$ac_word; then
3373 ac_cv_prog_MAKEINFO="$ac_prog"
3374 break
3376 done
3377 IFS="$ac_save_ifs"
3380 MAKEINFO="$ac_cv_prog_MAKEINFO"
3381 if test -n "$MAKEINFO"; then
3382 echo "$ac_t""$MAKEINFO" 1>&6
3383 else
3384 echo "$ac_t""no" 1>&6
3387 test -n "$MAKEINFO" && break
3388 done
3389 test -n "$MAKEINFO" || MAKEINFO="error"
3391 # Extract the first word of "perl", so it can be a program name with args.
3392 set dummy perl; ac_word=$2
3393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_word" >&5
3395 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397 else
3398 case "$PERL" in
3400 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3402 ?:/*)
3403 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3407 ac_dummy="$PATH"
3408 for ac_dir in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir=.
3410 if test -f $ac_dir/$ac_word; then
3411 ac_cv_path_PERL="$ac_dir/$ac_word"
3412 break
3414 done
3415 IFS="$ac_save_ifs"
3416 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3418 esac
3420 PERL="$ac_cv_path_PERL"
3421 if test -n "$PERL"; then
3422 echo "$ac_t""$PERL" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3429 trap '' 1 2 15
3430 cat > confcache <<\EOF
3431 # This file is a shell script that caches the results of configure
3432 # tests run on this system so they can be shared between configure
3433 # scripts and configure runs. It is not useful on other systems.
3434 # If it contains results you don't want to keep, you may remove or edit it.
3436 # By default, configure uses ./config.cache as the cache file,
3437 # creating it if it does not exist already. You can give configure
3438 # the --cache-file=FILE option to use a different cache file; that is
3439 # what configure does when it calls configure scripts in
3440 # subdirectories, so they share the cache.
3441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3442 # config.status only pays attention to the cache file if you give it the
3443 # --recheck option to rerun configure.
3446 # The following way of writing the cache mishandles newlines in values,
3447 # but we know of no workaround that is simple, portable, and efficient.
3448 # So, don't put newlines in cache variables' values.
3449 # Ultrix sh set writes to stderr and can't be redirected directly,
3450 # and sets the high bit in the cache file unless we assign to the vars.
3451 (set) 2>&1 |
3452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3453 *ac_space=\ *)
3454 # `set' does not quote correctly, so add quotes (double-quote substitution
3455 # turns \\\\ into \\, and sed turns \\ into \).
3456 sed -n \
3457 -e "s/'/'\\\\''/g" \
3458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3461 # `set' quotes correctly as required by POSIX, so do not add quotes.
3462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3464 esac >> confcache
3465 if cmp -s $cache_file confcache; then
3467 else
3468 if test -w $cache_file; then
3469 echo "updating cache $cache_file"
3470 cat confcache > $cache_file
3471 else
3472 echo "not updating unwritable cache $cache_file"
3475 rm -f confcache
3477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3480 # Let make expand exec_prefix.
3481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3483 # Any assignment to VPATH causes Sun make to only execute
3484 # the first set of double-colon rules, so remove it if not needed.
3485 # If there is a colon in the path, we need to keep it.
3486 if test "x$srcdir" = x.; then
3487 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3492 DEFS=-DHAVE_CONFIG_H
3494 # Without the "./", some shells look in PATH for config.status.
3495 : ${CONFIG_STATUS=./config.status}
3497 echo creating $CONFIG_STATUS
3498 rm -f $CONFIG_STATUS
3499 cat > $CONFIG_STATUS <<EOF
3500 #! /bin/sh
3501 # Generated automatically by configure.
3502 # Run this file to recreate the current configuration.
3503 # This directory was configured as follows,
3504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3506 # $0 $ac_configure_args
3508 # Compiler output produced by configure, useful for debugging
3509 # configure, is in ./config.log if it exists.
3511 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3512 for ac_option
3514 case "\$ac_option" in
3515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3516 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3519 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3520 exit 0 ;;
3521 -help | --help | --hel | --he | --h)
3522 echo "\$ac_cs_usage"; exit 0 ;;
3523 *) echo "\$ac_cs_usage"; exit 1 ;;
3524 esac
3525 done
3527 ac_given_srcdir=$srcdir
3529 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3531 cat >> $CONFIG_STATUS <<EOF
3533 # Protect against being on the right side of a sed subst in config.status.
3534 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3535 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3536 $ac_vpsub
3537 $extrasub
3538 s%@SHELL@%$SHELL%g
3539 s%@CFLAGS@%$CFLAGS%g
3540 s%@CPPFLAGS@%$CPPFLAGS%g
3541 s%@CXXFLAGS@%$CXXFLAGS%g
3542 s%@FFLAGS@%$FFLAGS%g
3543 s%@DEFS@%$DEFS%g
3544 s%@LDFLAGS@%$LDFLAGS%g
3545 s%@LIBS@%$LIBS%g
3546 s%@exec_prefix@%$exec_prefix%g
3547 s%@prefix@%$prefix%g
3548 s%@program_transform_name@%$program_transform_name%g
3549 s%@bindir@%$bindir%g
3550 s%@sbindir@%$sbindir%g
3551 s%@libexecdir@%$libexecdir%g
3552 s%@datadir@%$datadir%g
3553 s%@sysconfdir@%$sysconfdir%g
3554 s%@sharedstatedir@%$sharedstatedir%g
3555 s%@localstatedir@%$localstatedir%g
3556 s%@libdir@%$libdir%g
3557 s%@includedir@%$includedir%g
3558 s%@oldincludedir@%$oldincludedir%g
3559 s%@infodir@%$infodir%g
3560 s%@mandir@%$mandir%g
3561 s%@builddir@%$builddir%g
3562 s%@stepmake@%$stepmake%g
3563 s%@package@%$package%g
3564 s%@PACKAGE@%$PACKAGE%g
3565 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3566 s%@package_depth@%$package_depth%g
3567 s%@AUTOGENERATE@%$AUTOGENERATE%g
3568 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3569 s%@host@%$host%g
3570 s%@host_alias@%$host_alias%g
3571 s%@host_cpu@%$host_cpu%g
3572 s%@host_vendor@%$host_vendor%g
3573 s%@host_os@%$host_os%g
3574 s%@MAKE@%$MAKE%g
3575 s%@FIND@%$FIND%g
3576 s%@TAR@%$TAR%g
3577 s%@BASH@%$BASH%g
3578 s%@PYTHON@%$PYTHON%g
3579 s%@program_prefix@%$program_prefix%g
3580 s%@program_suffix@%$program_suffix%g
3581 s%@ZIP@%$ZIP%g
3582 s%@LN@%$LN%g
3583 s%@LN_S@%$LN_S%g
3584 s%@INSTALL@%$INSTALL%g
3585 s%@PATHSEP@%$PATHSEP%g
3586 s%@DIRSEP@%$DIRSEP%g
3587 s%@DIR_DATADIR@%$DIR_DATADIR%g
3588 s%@subdirs@%$subdirs%g
3589 s%@CC@%$CC%g
3590 s%@LD@%$LD%g
3591 s%@cross_compiling@%$cross_compiling%g
3592 s%@ICFLAGS@%$ICFLAGS%g
3593 s%@ILDFLAGS@%$ILDFLAGS%g
3594 s%@DEFINES@%$DEFINES%g
3595 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3596 s%@CPP@%$CPP%g
3597 s%@CXX@%$CXX%g
3598 s%@CXXCPP@%$CXXCPP%g
3599 s%@YACC@%$YACC%g
3600 s%@BISON@%$BISON%g
3601 s%@FLEX@%$FLEX%g
3602 s%@AR@%$AR%g
3603 s%@RANLIB@%$RANLIB%g
3604 s%@localedir@%$localedir%g
3605 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3606 s%@MSGFMT@%$MSGFMT%g
3607 s%@METAFONT@%$METAFONT%g
3608 s%@MFONT@%$MFONT%g
3609 s%@METAPOST@%$METAPOST%g
3610 s%@MPOST@%$MPOST%g
3611 s%@INIMETAFONT@%$INIMETAFONT%g
3612 s%@INIMFONT@%$INIMFONT%g
3613 s%@INIMETAPOST@%$INIMETAPOST%g
3614 s%@INIMPOST@%$INIMPOST%g
3615 s%@MFMODE@%$MFMODE%g
3616 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3617 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3618 s%@KPSEWHICH@%$KPSEWHICH%g
3619 s%@TFM_PATH@%$TFM_PATH%g
3620 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3621 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3622 s%@GUILE@%$GUILE%g
3623 s%@KPATHSEA@%$KPATHSEA%g
3624 s%@BIBTEX2HTML@%$BIBTEX2HTML%g
3625 s%@BIBTEX2HTML_FLAGS@%$BIBTEX2HTML_FLAGS%g
3626 s%@LIBOBJS@%$LIBOBJS%g
3627 s%@MAKEINFO@%$MAKEINFO%g
3628 s%@PERL@%$PERL%g
3630 CEOF
3633 cat >> $CONFIG_STATUS <<\EOF
3635 # Split the substitutions into bite-sized pieces for seds with
3636 # small command number limits, like on Digital OSF/1 and HP-UX.
3637 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3638 ac_file=1 # Number of current file.
3639 ac_beg=1 # First line for current file.
3640 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3641 ac_more_lines=:
3642 ac_sed_cmds=""
3643 while $ac_more_lines; do
3644 if test $ac_beg -gt 1; then
3645 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3646 else
3647 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3649 if test ! -s conftest.s$ac_file; then
3650 ac_more_lines=false
3651 rm -f conftest.s$ac_file
3652 else
3653 if test -z "$ac_sed_cmds"; then
3654 ac_sed_cmds="sed -f conftest.s$ac_file"
3655 else
3656 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3658 ac_file=`expr $ac_file + 1`
3659 ac_beg=$ac_end
3660 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3662 done
3663 if test -z "$ac_sed_cmds"; then
3664 ac_sed_cmds=cat
3668 cat >> $CONFIG_STATUS <<EOF
3670 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3672 cat >> $CONFIG_STATUS <<\EOF
3673 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3675 case "$ac_file" in
3676 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3677 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3678 *) ac_file_in="${ac_file}.in" ;;
3679 esac
3681 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3683 # Remove last slash and all that follows it. Not all systems have dirname.
3684 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3686 # The file is in a subdirectory.
3687 test ! -d "$ac_dir" && mkdir "$ac_dir"
3688 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3689 # A "../" for each directory in $ac_dir_suffix.
3690 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3691 else
3692 ac_dir_suffix= ac_dots=
3695 case "$ac_given_srcdir" in
3696 .) srcdir=.
3697 if test -z "$ac_dots"; then top_srcdir=.
3698 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3699 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3700 *) # Relative path.
3701 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3702 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3703 esac
3706 echo creating "$ac_file"
3707 rm -f "$ac_file"
3708 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3709 case "$ac_file" in
3710 *Makefile*) ac_comsub="1i\\
3711 # $configure_input" ;;
3712 *) ac_comsub= ;;
3713 esac
3715 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3716 sed -e "$ac_comsub
3717 s%@configure_input@%$configure_input%g
3718 s%@srcdir@%$srcdir%g
3719 s%@top_srcdir@%$top_srcdir%g
3720 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3721 fi; done
3722 rm -f conftest.s*
3724 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3725 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3727 # ac_d sets the value in "#define NAME VALUE" lines.
3728 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3729 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3730 ac_dC='\3'
3731 ac_dD='%g'
3732 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3733 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3734 ac_uB='\([ ]\)%\1#\2define\3'
3735 ac_uC=' '
3736 ac_uD='\4%g'
3737 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3738 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3739 ac_eB='$%\1#\2define\3'
3740 ac_eC=' '
3741 ac_eD='%g'
3743 if test "${CONFIG_HEADERS+set}" != set; then
3745 cat >> $CONFIG_STATUS <<EOF
3746 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3748 cat >> $CONFIG_STATUS <<\EOF
3750 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3752 case "$ac_file" in
3753 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3754 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3755 *) ac_file_in="${ac_file}.in" ;;
3756 esac
3758 echo creating $ac_file
3760 rm -f conftest.frag conftest.in conftest.out
3761 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3762 cat $ac_file_inputs > conftest.in
3766 # Transform confdefs.h into a sed script conftest.vals that substitutes
3767 # the proper values into config.h.in to produce config.h. And first:
3768 # Protect against being on the right side of a sed subst in config.status.
3769 # Protect against being in an unquoted here document in config.status.
3770 rm -f conftest.vals
3771 cat > conftest.hdr <<\EOF
3772 s/[\\&%]/\\&/g
3773 s%[\\$`]%\\&%g
3774 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3775 s%ac_d%ac_u%gp
3776 s%ac_u%ac_e%gp
3778 sed -n -f conftest.hdr confdefs.h > conftest.vals
3779 rm -f conftest.hdr
3781 # This sed command replaces #undef with comments. This is necessary, for
3782 # example, in the case of _POSIX_SOURCE, which is predefined and required
3783 # on some systems where configure will not decide to define it.
3784 cat >> conftest.vals <<\EOF
3785 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3788 # Break up conftest.vals because some shells have a limit on
3789 # the size of here documents, and old seds have small limits too.
3791 rm -f conftest.tail
3792 while :
3794 ac_lines=`grep -c . conftest.vals`
3795 # grep -c gives empty output for an empty file on some AIX systems.
3796 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3797 # Write a limited-size here document to conftest.frag.
3798 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3799 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3800 echo 'CEOF
3801 sed -f conftest.frag conftest.in > conftest.out
3802 rm -f conftest.in
3803 mv conftest.out conftest.in
3804 ' >> $CONFIG_STATUS
3805 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3806 rm -f conftest.vals
3807 mv conftest.tail conftest.vals
3808 done
3809 rm -f conftest.vals
3811 cat >> $CONFIG_STATUS <<\EOF
3812 rm -f conftest.frag conftest.h
3813 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3814 cat conftest.in >> conftest.h
3815 rm -f conftest.in
3816 if cmp -s $ac_file conftest.h 2>/dev/null; then
3817 echo "$ac_file is unchanged"
3818 rm -f conftest.h
3819 else
3820 # Remove last slash and all that follows it. Not all systems have dirname.
3821 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3822 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3823 # The file is in a subdirectory.
3824 test ! -d "$ac_dir" && mkdir "$ac_dir"
3826 rm -f $ac_file
3827 mv conftest.h $ac_file
3829 fi; done
3832 cat >> $CONFIG_STATUS <<EOF
3835 cat >> $CONFIG_STATUS <<\EOF
3837 exit 0
3839 chmod +x $CONFIG_STATUS
3840 rm -fr confdefs* $ac_clean_files
3841 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3843 if test "$no_recursion" != yes; then
3845 # Remove --cache-file and --srcdir arguments so they do not pile up.
3846 ac_sub_configure_args=
3847 ac_prev=
3848 for ac_arg in $ac_configure_args; do
3849 if test -n "$ac_prev"; then
3850 ac_prev=
3851 continue
3853 case "$ac_arg" in
3854 -cache-file | --cache-file | --cache-fil | --cache-fi \
3855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3856 ac_prev=cache_file ;;
3857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3860 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3861 ac_prev=srcdir ;;
3862 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3864 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3865 esac
3866 done
3868 for ac_config_dir in stepmake; do
3870 # Do not complain, so a configure script can configure whichever
3871 # parts of a large source tree are present.
3872 if test ! -d $srcdir/$ac_config_dir; then
3873 continue
3876 echo configuring in $ac_config_dir
3878 case "$srcdir" in
3879 .) ;;
3881 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3882 else
3883 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3886 esac
3888 ac_popdir=`pwd`
3889 cd $ac_config_dir
3891 # A "../" for each directory in /$ac_config_dir.
3892 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3894 case "$srcdir" in
3895 .) # No --srcdir option. We are building in place.
3896 ac_sub_srcdir=$srcdir ;;
3897 /*) # Absolute path.
3898 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3899 *) # Relative path.
3900 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3901 esac
3903 # Check for guested configure; otherwise get Cygnus style configure.
3904 if test -f $ac_sub_srcdir/configure; then
3905 ac_sub_configure=$ac_sub_srcdir/configure
3906 elif test -f $ac_sub_srcdir/configure.in; then
3907 ac_sub_configure=$ac_configure
3908 else
3909 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3910 ac_sub_configure=
3913 # The recursion is here.
3914 if test -n "$ac_sub_configure"; then
3916 # Make the cache file name correct relative to the subdirectory.
3917 case "$cache_file" in
3918 /*) ac_sub_cache_file=$cache_file ;;
3919 *) # Relative path.
3920 ac_sub_cache_file="$ac_dots$cache_file" ;;
3921 esac
3923 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3924 # The eval makes quoting arguments work.
3925 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3926 then :
3927 else
3928 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3932 cd $ac_popdir
3933 done
3937 # regular in-place build
3938 # test for srcdir_build = yes ?
3939 if test "$builddir" = "."; then
3940 rm -f $srcdir/GNUmakefile
3941 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
3942 chmod 444 $srcdir/GNUmakefile
3943 else # --srcdir build
3944 rm -f GNUmakefile
3945 cp $srcdir/make/srcdir.make.in GNUmakefile
3946 chmod 444 GNUmakefile
3950 cat <<EOF
3952 Type:
3953 make all to build LilyPond
3954 make install to install LilyPond
3955 make help to see all possible targets
3957 Do not worry if ./Documentation or ./mutopia should not build.