lilypond-1.3.123
[lilypond.git] / configure
blob6096179843e94dced26650286d76ec4e74f6c66b
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=FILE put configure settings in config-FILE.make"
69 ac_help="$ac_help
70 enable-checking set runtime checks (assert calls). Default: on"
71 ac_help="$ac_help
72 enable-optimise use maximal speed optimisations. Default: off"
73 ac_help="$ac_help
74 enable-profiling compile with gprof support. Default: off"
75 ac_help="$ac_help
76 enable-debugging set debug info. Default: on"
77 ac_help="$ac_help
78 enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
79 ac_help="$ac_help
80 with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
81 ac_help="$ac_help
82 with-lang=LANG use LANG as language to emit messages"
83 ac_help="$ac_help
84 enable-tfm-path=PATH set path of tex directories where tfm files live, esp.: cmr10.tfm. Default: use kpsewhich"
85 ac_help="$ac_help
86 enable-kpathsea use kpathsea lib. Default: on"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
91 build=NONE
92 cache_file=./config.cache
93 exec_prefix=NONE
94 host=NONE
95 no_create=
96 nonopt=NONE
97 no_recursion=
98 prefix=NONE
99 program_prefix=NONE
100 program_suffix=NONE
101 program_transform_name=s,x,x,
102 silent=
103 site=
104 srcdir=
105 target=NONE
106 verbose=
107 x_includes=NONE
108 x_libraries=NONE
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
123 subdirs=
124 MFLAGS= MAKEFLAGS=
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
127 ac_max_here_lines=12
129 ac_prev=
130 for ac_option
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
136 ac_prev=
137 continue
140 case "$ac_option" in
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) ac_optarg= ;;
143 esac
145 # Accept the important Cygnus configure options, so we can diagnose typos.
147 case "$ac_option" in
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 ac_prev=bindir ;;
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
155 ac_prev=build ;;
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 ac_prev=datadir ;;
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 | --da=*)
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 case "$ac_option" in
189 *=*) ;;
190 *) ac_optarg=yes ;;
191 esac
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
205 with_gas=yes ;;
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
210 cat << EOF
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
213 Configuration:
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
221 [$ac_default_prefix]
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 [same as prefix]
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
228 [PREFIX/share]
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 [PREFIX/com]
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
244 cat << EOF
245 Host type:
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
260 exit 0 ;;
262 -host | --host | --hos | --ho)
263 ac_prev=host ;;
264 -host=* | --host=* | --hos=* | --ho=*)
265 host="$ac_optarg" ;;
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 ac_prev=infodir ;;
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
280 ac_prev=libdir ;;
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 ac_prev=mandir ;;
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
305 -nfp | --nfp | --nf)
306 # Obsolete; use --without-fp.
307 with_fp=no ;;
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c)
311 no_create=yes ;;
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 no_recursion=yes ;;
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 ac_prev=prefix ;;
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
364 silent=yes ;;
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 ac_prev=sbindir ;;
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 | --sbi=* | --sb=*)
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
375 | --sha | --sh)
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 | --sha=* | --sh=*)
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
384 ac_prev=site ;;
385 -site=* | --site=* | --sit=*)
386 site="$ac_optarg" ;;
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 ac_prev=srcdir ;;
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
401 ac_prev=target ;;
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 verbose=yes ;;
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
410 exit 0 ;;
412 -with-* | --with-*)
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 case "$ac_option" in
420 *=*) ;;
421 *) ac_optarg=yes ;;
422 esac
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
434 --x)
435 # Obsolete; use --with-x.
436 with_x=yes ;;
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 nonopt="$ac_option"
465 esac
466 done
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
475 # 0 standard input
476 # 1 file creation
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
483 exec 6>/dev/null
484 else
485 exec 6>&1
487 exec 5>./config.log
489 echo "\
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
492 " 1>&5
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
496 ac_configure_args=
497 for ac_arg
499 case "$ac_arg" in
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 esac
508 done
510 # NLS nuisances.
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 echo > confdefs.h
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=make/lilypond.lsm.in
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
533 ac_prog=$0
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 srcdir=$ac_confdir
537 if test ! -r $srcdir/$ac_unique_file; then
538 srcdir=..
540 else
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 else
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 else
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
563 . "$ac_site_file"
565 done
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 . $cache_file
570 else
571 echo "creating cache $cache_file"
572 > $cache_file
575 ac_ext=c
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
582 ac_exeext=
583 ac_objext=o
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='
588 ' ac_t=' '
589 else
590 ac_n=-n ac_c= ac_t=
592 else
593 ac_n= ac_c='\c' ac_t=
599 # Bootstrap StepMake configure
602 . $srcdir/VERSION
603 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
604 if test x$MY_PATCH_LEVEL != x; then
605 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
608 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
609 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
610 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
612 # No versioning on directory names of sub-packages
613 # urg, urg
614 stepmake=${datadir}/stepmake
615 presome=${prefix}
616 if test "$prefix" = "NONE"; then
617 presome=${ac_default_prefix}
619 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
621 # urg, how is this supposed to work?
622 if test "$program_prefix" = "NONE"; then
623 program_prefix=
625 if test "$program_suffix" = "NONE"; then
626 program_suffix=
629 echo $ac_n "checking Package""... $ac_c" 1>&6
630 echo "configure:631: checking Package" >&5
631 if test "x$PACKAGE" = "xSTEPMAKE"; then
632 echo "$ac_t""Stepmake package!" 1>&6
634 echo $ac_n "checking builddir""... $ac_c" 1>&6
635 echo "configure:636: checking builddir" >&5
636 if test "$srcdir" = "."; then
637 builddir=.
638 else
639 absolute_builddir="`pwd`"
640 package_absolute_builddir="`dirname $absolute_builddir`"
641 package_srcdir="`dirname $srcdir`"
642 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
644 echo "$ac_t""$builddir" 1>&6
646 (cd stepmake 2>/dev/null || mkdir stepmake)
647 (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .)
648 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
649 ac_aux_dir=
650 for ac_dir in bin $srcdir/bin; do
651 if test -f $ac_dir/install-sh; then
652 ac_aux_dir=$ac_dir
653 ac_install_sh="$ac_aux_dir/install-sh -c"
654 break
655 elif test -f $ac_dir/install.sh; then
656 ac_aux_dir=$ac_dir
657 ac_install_sh="$ac_aux_dir/install.sh -c"
658 break
660 done
661 if test -z "$ac_aux_dir"; then
662 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
664 ac_config_guess=$ac_aux_dir/config.guess
665 ac_config_sub=$ac_aux_dir/config.sub
666 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
668 stepmake=stepmake
669 else
670 echo "$ac_t""$PACKAGE" 1>&6
672 echo $ac_n "checking builddir""... $ac_c" 1>&6
673 echo "configure:674: checking builddir" >&5
674 if test "$srcdir" = "."; then
675 builddir=.
676 srcdir_build=no
677 else
678 absolute_builddir="`pwd`"
679 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
680 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
681 srcdir_build=yes
683 echo "$ac_t""$builddir" 1>&6
684 if expr "$srcdir" : '/' > /dev/null 2>&1; then
685 absolute_srcdir=yes
687 echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
688 warn_b=yes
692 echo $ac_n "checking for stepmake""... $ac_c" 1>&6
693 echo "configure:694: checking for stepmake" >&5
694 # Check for installed stepmake
695 if test -d $stepmake; then
696 echo "$ac_t""$stepmake" 1>&6
697 else
698 if test "$absolute_srcdir" != "yes"; then
699 stepmake='$(depth)'/$srcdir/stepmake
700 else
701 stepmake=$srcdir/stepmake
703 echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6
706 ac_aux_dir=
707 for ac_dir in \
708 $HOME/usr/local/share/stepmake/bin\
709 $HOME/usr/local/lib/stepmake/bin\
710 $HOME/usr/share/stepmake/bin\
711 $HOME/usr/lib/stepmake/bin\
712 /usr/local/share/stepmake/bin\
713 /usr/local/lib/stepmake/bin\
714 /usr/share/stepmake/bin\
715 /usr/lib/stepmake/bin\
716 stepmake/bin\
717 $srcdir/stepmake/bin\
718 $srcdir/\
719 $HOME/usr/local/share/stepmake/bin\
720 $HOME/usr/local/lib/stepmake/bin\
721 $HOME/usr/share/stepmake/bin\
722 $HOME/usr/lib/stepmake/bin\
723 /usr/local/share/stepmake/bin\
724 /usr/local/lib/stepmake/bin\
725 /usr/share/stepmake/bin\
726 /usr/lib/stepmake/bin\
727 stepmake/bin\
728 $srcdir/stepmake/bin\
729 ; do
730 if test -f $ac_dir/install-sh; then
731 ac_aux_dir=$ac_dir
732 ac_install_sh="$ac_aux_dir/install-sh -c"
733 break
734 elif test -f $ac_dir/install.sh; then
735 ac_aux_dir=$ac_dir
736 ac_install_sh="$ac_aux_dir/install.sh -c"
737 break
739 done
740 if test -z "$ac_aux_dir"; then
741 { echo "configure: error: can not find install-sh or install.sh in \
742 $HOME/usr/local/share/stepmake/bin\
743 $HOME/usr/local/lib/stepmake/bin\
744 $HOME/usr/share/stepmake/bin\
745 $HOME/usr/lib/stepmake/bin\
746 /usr/local/share/stepmake/bin\
747 /usr/local/lib/stepmake/bin\
748 /usr/share/stepmake/bin\
749 /usr/lib/stepmake/bin\
750 stepmake/bin\
751 $srcdir/stepmake/bin\
752 $srcdir/\
753 $HOME/usr/local/share/stepmake/bin\
754 $HOME/usr/local/lib/stepmake/bin\
755 $HOME/usr/share/stepmake/bin\
756 $HOME/usr/lib/stepmake/bin\
757 /usr/local/share/stepmake/bin\
758 /usr/local/lib/stepmake/bin\
759 /usr/share/stepmake/bin\
760 /usr/lib/stepmake/bin\
761 stepmake/bin\
762 $srcdir/stepmake/bin\
763 " 1>&2; exit 1; }
765 ac_config_guess=$ac_aux_dir/config.guess
766 ac_config_sub=$ac_aux_dir/config.sub
767 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
776 cat >> confdefs.h <<EOF
777 #define PACKAGE "${PACKAGE_NAME}"
780 cat >> confdefs.h <<EOF
781 #define TOPLEVEL_VERSION "${FULL_VERSION}"
785 if test "$package_depth" = "" ; then
786 package_depth="."
787 else
788 package_depth="../$package_depth"
790 export package_depth
793 AUTOGENERATE="This file was automatically generated by configure"
796 CONFIGSUFFIX=
797 # Check whether --enable-config or --disable-config was given.
798 if test "${enable_config+set}" = set; then
799 enableval="$enable_config"
800 CONFIGSUFFIX=-$enableval
804 CONFIGFILE=config$CONFIGSUFFIX
808 # Make sure we can run config.sub.
809 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
810 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
813 echo $ac_n "checking host system type""... $ac_c" 1>&6
814 echo "configure:815: checking host system type" >&5
816 host_alias=$host
817 case "$host_alias" in
818 NONE)
819 case $nonopt in
820 NONE)
821 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
822 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
823 fi ;;
824 *) host_alias=$nonopt ;;
825 esac ;;
826 esac
828 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
829 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
830 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
831 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
832 echo "$ac_t""$host" 1>&6
834 for ac_prog in gmake make
836 # Extract the first word of "$ac_prog", so it can be a program name with args.
837 set dummy $ac_prog; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842 else
843 if test -n "$MAKE"; then
844 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
845 else
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 ac_dummy="$PATH"
848 for ac_dir in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
851 ac_cv_prog_MAKE="$ac_prog"
852 break
854 done
855 IFS="$ac_save_ifs"
858 MAKE="$ac_cv_prog_MAKE"
859 if test -n "$MAKE"; then
860 echo "$ac_t""$MAKE" 1>&6
861 else
862 echo "$ac_t""no" 1>&6
865 test -n "$MAKE" && break
866 done
867 test -n "$MAKE" || MAKE="error"
869 for ac_prog in find
871 # Extract the first word of "$ac_prog", so it can be a program name with args.
872 set dummy $ac_prog; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 if test -n "$FIND"; then
879 ac_cv_prog_FIND="$FIND" # Let the user override the test.
880 else
881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
882 ac_dummy="$PATH"
883 for ac_dir in $ac_dummy; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
886 ac_cv_prog_FIND="$ac_prog"
887 break
889 done
890 IFS="$ac_save_ifs"
893 FIND="$ac_cv_prog_FIND"
894 if test -n "$FIND"; then
895 echo "$ac_t""$FIND" 1>&6
896 else
897 echo "$ac_t""no" 1>&6
900 test -n "$FIND" && break
901 done
902 test -n "$FIND" || FIND="error"
906 for ac_prog in tar
908 # Extract the first word of "$ac_prog", so it can be a program name with args.
909 set dummy $ac_prog; ac_word=$2
910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
911 echo "configure:912: checking for $ac_word" >&5
912 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
914 else
915 if test -n "$TAR"; then
916 ac_cv_prog_TAR="$TAR" # Let the user override the test.
917 else
918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
919 ac_dummy="$PATH"
920 for ac_dir in $ac_dummy; do
921 test -z "$ac_dir" && ac_dir=.
922 if test -f $ac_dir/$ac_word; then
923 ac_cv_prog_TAR="$ac_prog"
924 break
926 done
927 IFS="$ac_save_ifs"
930 TAR="$ac_cv_prog_TAR"
931 if test -n "$TAR"; then
932 echo "$ac_t""$TAR" 1>&6
933 else
934 echo "$ac_t""no" 1>&6
937 test -n "$TAR" && break
938 done
939 test -n "$TAR" || TAR="error"
942 if test "x`uname`" = "xHP-UX"; then
943 # Extract the first word of "bash", so it can be a program name with args.
944 set dummy bash; ac_word=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 echo "configure:947: checking for $ac_word" >&5
947 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
949 else
950 case "$BASH" in
952 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
954 ?:/*)
955 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
959 ac_dummy="$PATH"
960 for ac_dir in $ac_dummy; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_path_BASH="$ac_dir/$ac_word"
964 break
966 done
967 IFS="$ac_save_ifs"
968 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
970 esac
972 BASH="$ac_cv_path_BASH"
973 if test -n "$BASH"; then
974 echo "$ac_t""$BASH" 1>&6
975 else
976 echo "$ac_t""no" 1>&6
980 echo "configure: warning: avoiding buggy /bin/sh" 1>&2
981 warn_b=yes
983 # Extract the first word of "bash", so it can be a program name with args.
984 set dummy bash; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 case "$SHELL" in
992 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
994 ?:/*)
995 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
999 ac_dummy="$PATH"
1000 for ac_dir in $ac_dummy; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1003 ac_cv_path_SHELL="$ac_dir/$ac_word"
1004 break
1006 done
1007 IFS="$ac_save_ifs"
1008 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1010 esac
1012 SHELL="$ac_cv_path_SHELL"
1013 if test -n "$SHELL"; then
1014 echo "$ac_t""$SHELL" 1>&6
1015 else
1016 echo "$ac_t""no" 1>&6
1019 else
1020 # Extract the first word of "bash", so it can be a program name with args.
1021 set dummy bash; ac_word=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027 case "$BASH" in
1029 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1031 ?:/*)
1032 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1036 ac_dummy="$PATH"
1037 for ac_dir in $ac_dummy; do
1038 test -z "$ac_dir" && ac_dir=.
1039 if test -f $ac_dir/$ac_word; then
1040 ac_cv_path_BASH="$ac_dir/$ac_word"
1041 break
1043 done
1044 IFS="$ac_save_ifs"
1045 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1047 esac
1049 BASH="$ac_cv_path_BASH"
1050 if test -n "$BASH"; then
1051 echo "$ac_t""$BASH" 1>&6
1052 else
1053 echo "$ac_t""no" 1>&6
1056 SHELL=/bin/sh
1061 # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1062 set dummy ${PYTHON:-python}; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068 case "$PYTHON" in
1070 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1072 ?:/*)
1073 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1077 ac_dummy="$PATH"
1078 for ac_dir in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_path_PYTHON="$ac_dir/$ac_word"
1082 break
1084 done
1085 IFS="$ac_save_ifs"
1086 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1088 esac
1090 PYTHON="$ac_cv_path_PYTHON"
1091 if test -n "$PYTHON"; then
1092 echo "$ac_t""$PYTHON" 1>&6
1093 else
1094 echo "$ac_t""no" 1>&6
1099 if test $MAKE != "error" ; then
1100 $MAKE -v 2> /dev/null | grep GNU > /dev/null
1101 if test "$?" = 1
1102 then
1104 echo "configure: warning: Please install *GNU* make" 1>&2
1105 warn_b=yes
1111 result="`echo \"$PYTHON\" | grep echo`"
1112 if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1114 echo "configure: warning: can\'t find python. You should install Python" 1>&2
1115 warn_b=yes
1120 if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1121 LN=cp # hard link does not work under cygnus-nt
1122 LN_S='cp -r' # symbolic link does not work for native nt
1123 ZIP="zip -r -9" #
1124 program_suffix=.exe
1125 # urg
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 DIRSEP='/'
1149 PATHSEP=':'
1150 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1151 else
1152 DIRSEP='/'
1153 PATHSEP=':'
1154 LN=ln
1155 LN_S='ln -s'
1156 ZIP="zip -r -9"
1157 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1165 cat >> confdefs.h <<EOF
1166 #define DIRSEP '${DIRSEP}'
1169 cat >> confdefs.h <<EOF
1170 #define PATHSEP '${PATHSEP}'
1177 if test "$datadir" = "\${prefix}/share"; then
1178 datadir='${prefix}/share/'$package
1180 DIR_DATADIR=${datadir}
1181 presome=${prefix}
1182 if test "$prefix" = "NONE"; then
1183 presome=${ac_default_prefix}
1185 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1188 cat >> confdefs.h <<EOF
1189 #define DIR_DATADIR "${DIR_DATADIR}"
1195 # For all packages except the StepMake package itself
1196 subdirs="stepmake"
1199 # Uncomment the configuration options your package needs.
1201 # -O is necessary to get inlining
1202 OPTIMIZE=""
1203 CFLAGS=${CFLAGS:-""}
1204 CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1205 LDFLAGS=${LDFLAGS:-""}
1206 checking_b=yes
1207 optimise_b=no
1208 profile_b=no
1209 debug_b=yes
1211 # Check whether --enable-checking or --disable-checking was given.
1212 if test "${enable_checking+set}" = set; then
1213 enableval="$enable_checking"
1214 checking_b=$enableval
1218 # actually, the default is: tja='-O' to get inlining...
1219 # off='' --jcn
1221 #actually, that sucks.
1222 # tja looks like a typo. Default is optimisation off. --hwn
1224 # Check whether --enable-optimise or --disable-optimise was given.
1225 if test "${enable_optimise+set}" = set; then
1226 enableval="$enable_optimise"
1227 optimise_b=$enableval
1231 # Check whether --enable-profiling or --disable-profiling was given.
1232 if test "${enable_profiling+set}" = set; then
1233 enableval="$enable_profiling"
1234 profile_b=$enableval
1238 # Check whether --enable-debugging or --disable-debugging was given.
1239 if test "${enable_debugging+set}" = set; then
1240 enableval="$enable_debugging"
1241 debug_b=$enableval
1245 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
1246 if test "${enable_mingw_prefix+set}" = set; then
1247 enableval="$enable_mingw_prefix"
1248 MINGWPREFIX=$enableval
1249 else
1250 MINGWPREFIX=no
1254 if test "$checking_b" = no; then
1255 # ugh
1256 cat >> confdefs.h <<\EOF
1257 #define NDEBUG 1
1260 DEFINES="$DEFINES -DNDEBUG"
1263 if test "$optimise_b" = yes; then
1264 OPTIMIZE="-O2 -finline-functions"
1267 if test "$optimise_b" = no; then
1268 OPTIMIZE=""
1271 if test $profile_b = yes; then
1272 EXTRA_LIBES="-pg"
1273 OPTIMIZE="$OPTIMIZE -pg"
1276 if test $debug_b = yes; then
1277 OPTIMIZE="$OPTIMIZE -g"
1280 # however, C++ support in mingw32 v 0.1.4 is still flaky
1281 if test x$MINGWPREFIX != xno; then
1282 ICFLAGS="-I$MINGWPREFIX/include"
1283 ILDFLAGS="-$MINGWPREFIX/lib"
1286 # Extract the first word of "gcc", so it can be a program name with args.
1287 set dummy gcc; ac_word=$2
1288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1289 echo "configure:1290: checking for $ac_word" >&5
1290 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1292 else
1293 if test -n "$CC"; then
1294 ac_cv_prog_CC="$CC" # Let the user override the test.
1295 else
1296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1297 ac_dummy="$PATH"
1298 for ac_dir in $ac_dummy; do
1299 test -z "$ac_dir" && ac_dir=.
1300 if test -f $ac_dir/$ac_word; then
1301 ac_cv_prog_CC="gcc"
1302 break
1304 done
1305 IFS="$ac_save_ifs"
1308 CC="$ac_cv_prog_CC"
1309 if test -n "$CC"; then
1310 echo "$ac_t""$CC" 1>&6
1311 else
1312 echo "$ac_t""no" 1>&6
1315 if test -z "$CC"; then
1316 # Extract the first word of "cc", so it can be a program name with args.
1317 set dummy cc; ac_word=$2
1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_word" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323 if test -n "$CC"; then
1324 ac_cv_prog_CC="$CC" # Let the user override the test.
1325 else
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1327 ac_prog_rejected=no
1328 ac_dummy="$PATH"
1329 for ac_dir in $ac_dummy; do
1330 test -z "$ac_dir" && ac_dir=.
1331 if test -f $ac_dir/$ac_word; then
1332 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1333 ac_prog_rejected=yes
1334 continue
1336 ac_cv_prog_CC="cc"
1337 break
1339 done
1340 IFS="$ac_save_ifs"
1341 if test $ac_prog_rejected = yes; then
1342 # We found a bogon in the path, so make sure we never use it.
1343 set dummy $ac_cv_prog_CC
1344 shift
1345 if test $# -gt 0; then
1346 # We chose a different compiler from the bogus one.
1347 # However, it has the same basename, so the bogon will be chosen
1348 # first if we set CC to just the basename; use the full file name.
1349 shift
1350 set dummy "$ac_dir/$ac_word" "$@"
1351 shift
1352 ac_cv_prog_CC="$@"
1357 CC="$ac_cv_prog_CC"
1358 if test -n "$CC"; then
1359 echo "$ac_t""$CC" 1>&6
1360 else
1361 echo "$ac_t""no" 1>&6
1364 if test -z "$CC"; then
1365 case "`uname -s`" in
1366 *win32* | *WIN32*)
1367 # Extract the first word of "cl", so it can be a program name with args.
1368 set dummy cl; ac_word=$2
1369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_word" >&5
1371 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 if test -n "$CC"; then
1375 ac_cv_prog_CC="$CC" # Let the user override the test.
1376 else
1377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1378 ac_dummy="$PATH"
1379 for ac_dir in $ac_dummy; do
1380 test -z "$ac_dir" && ac_dir=.
1381 if test -f $ac_dir/$ac_word; then
1382 ac_cv_prog_CC="cl"
1383 break
1385 done
1386 IFS="$ac_save_ifs"
1389 CC="$ac_cv_prog_CC"
1390 if test -n "$CC"; then
1391 echo "$ac_t""$CC" 1>&6
1392 else
1393 echo "$ac_t""no" 1>&6
1396 esac
1398 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1401 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1404 ac_ext=c
1405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1406 ac_cpp='$CPP $CPPFLAGS'
1407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1409 cross_compiling=$ac_cv_prog_cc_cross
1411 cat > conftest.$ac_ext << EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1416 main(){return(0);}
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 ac_cv_prog_cc_works=yes
1420 # If we can't run a trivial program, we are probably using a cross compiler.
1421 if (./conftest; exit) 2>/dev/null; then
1422 ac_cv_prog_cc_cross=no
1423 else
1424 ac_cv_prog_cc_cross=yes
1426 else
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1429 ac_cv_prog_cc_works=no
1431 rm -fr conftest*
1432 ac_ext=c
1433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1434 ac_cpp='$CPP $CPPFLAGS'
1435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1437 cross_compiling=$ac_cv_prog_cc_cross
1439 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1440 if test $ac_cv_prog_cc_works = no; then
1441 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1443 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1445 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1446 cross_compiling=$ac_cv_prog_cc_cross
1448 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1449 echo "configure:1450: checking whether we are using GNU C" >&5
1450 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1452 else
1453 cat > conftest.c <<EOF
1454 #ifdef __GNUC__
1455 yes;
1456 #endif
1458 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1459 ac_cv_prog_gcc=yes
1460 else
1461 ac_cv_prog_gcc=no
1465 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1467 if test $ac_cv_prog_gcc = yes; then
1468 GCC=yes
1469 else
1470 GCC=
1473 ac_test_CFLAGS="${CFLAGS+set}"
1474 ac_save_CFLAGS="$CFLAGS"
1475 CFLAGS=
1476 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1477 echo "configure:1478: checking whether ${CC-cc} accepts -g" >&5
1478 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481 echo 'void f(){}' > conftest.c
1482 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1483 ac_cv_prog_cc_g=yes
1484 else
1485 ac_cv_prog_cc_g=no
1487 rm -f conftest*
1491 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1492 if test "$ac_test_CFLAGS" = set; then
1493 CFLAGS="$ac_save_CFLAGS"
1494 elif test $ac_cv_prog_cc_g = yes; then
1495 if test "$GCC" = yes; then
1496 CFLAGS="-g -O2"
1497 else
1498 CFLAGS="-g"
1500 else
1501 if test "$GCC" = yes; then
1502 CFLAGS="-O2"
1503 else
1504 CFLAGS=
1508 LD='$(CC)'
1511 CFLAGS="$CFLAGS $OPTIMIZE"
1512 CPPFLAGS=${CPPFLAGS:-""}
1522 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1523 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1524 echo "configure:1525: checking how to run the C preprocessor" >&5
1525 # On Suns, sometimes $CPP names a directory.
1526 if test -n "$CPP" && test -d "$CPP"; then
1527 CPP=
1529 if test -z "$CPP"; then
1530 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1532 else
1533 # This must be in double quotes, not single quotes, because CPP may get
1534 # substituted into the Makefile and "${CC-cc}" will confuse make.
1535 CPP="${CC-cc} -E"
1536 # On the NeXT, cc -E runs the code through the compiler's parser,
1537 # not just through cpp.
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 #include <assert.h>
1542 Syntax Error
1544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1545 { (eval echo configure:1546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1547 if test -z "$ac_err"; then
1549 else
1550 echo "$ac_err" >&5
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1553 rm -rf conftest*
1554 CPP="${CC-cc} -E -traditional-cpp"
1555 cat > conftest.$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1558 #include <assert.h>
1559 Syntax Error
1561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1562 { (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1564 if test -z "$ac_err"; then
1566 else
1567 echo "$ac_err" >&5
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1570 rm -rf conftest*
1571 CPP="${CC-cc} -nologo -E"
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575 #include <assert.h>
1576 Syntax Error
1578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1579 { (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1581 if test -z "$ac_err"; then
1583 else
1584 echo "$ac_err" >&5
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1587 rm -rf conftest*
1588 CPP=/lib/cpp
1590 rm -f conftest*
1592 rm -f conftest*
1594 rm -f conftest*
1595 ac_cv_prog_CPP="$CPP"
1597 CPP="$ac_cv_prog_CPP"
1598 else
1599 ac_cv_prog_CPP="$CPP"
1601 echo "$ac_t""$CPP" 1>&6
1603 for ac_hdr in assert.h sys/stat.h
1605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_hdr" >&5
1608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1610 else
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1614 #include <$ac_hdr>
1616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1617 { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1619 if test -z "$ac_err"; then
1620 rm -rf conftest*
1621 eval "ac_cv_header_$ac_safe=yes"
1622 else
1623 echo "$ac_err" >&5
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1626 rm -rf conftest*
1627 eval "ac_cv_header_$ac_safe=no"
1629 rm -f conftest*
1631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1634 cat >> confdefs.h <<EOF
1635 #define $ac_tr_hdr 1
1638 else
1639 echo "$ac_t""no" 1>&6
1641 done
1643 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1644 echo "configure:1645: checking whether stat file-mode macros are broken" >&5
1645 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1647 else
1648 cat > conftest.$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1651 #include <sys/types.h>
1652 #include <sys/stat.h>
1654 #if defined(S_ISBLK) && defined(S_IFDIR)
1655 # if S_ISBLK (S_IFDIR)
1656 You lose.
1657 # endif
1658 #endif
1660 #if defined(S_ISBLK) && defined(S_IFCHR)
1661 # if S_ISBLK (S_IFCHR)
1662 You lose.
1663 # endif
1664 #endif
1666 #if defined(S_ISLNK) && defined(S_IFREG)
1667 # if S_ISLNK (S_IFREG)
1668 You lose.
1669 # endif
1670 #endif
1672 #if defined(S_ISSOCK) && defined(S_IFREG)
1673 # if S_ISSOCK (S_IFREG)
1674 You lose.
1675 # endif
1676 #endif
1679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1680 egrep "You lose" >/dev/null 2>&1; then
1681 rm -rf conftest*
1682 ac_cv_header_stat_broken=yes
1683 else
1684 rm -rf conftest*
1685 ac_cv_header_stat_broken=no
1687 rm -f conftest*
1691 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1692 if test $ac_cv_header_stat_broken = yes; then
1693 cat >> confdefs.h <<\EOF
1694 #define STAT_MACROS_BROKEN 1
1700 if test "$optimise_b" = yes; then
1701 DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1702 cat >> confdefs.h <<\EOF
1703 #define STRINGS_UTILS_INLINED 1
1709 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1710 echo "configure:1711: checking how to run the C++ preprocessor" >&5
1711 if test -z "$CXXCPP"; then
1712 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1714 else
1715 ac_ext=C
1716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1717 ac_cpp='$CXXCPP $CPPFLAGS'
1718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1720 cross_compiling=$ac_cv_prog_cxx_cross
1721 CXXCPP="${CXX-g++} -E"
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 #include <stdlib.h>
1727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1728 { (eval echo configure:1729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1730 if test -z "$ac_err"; then
1732 else
1733 echo "$ac_err" >&5
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736 rm -rf conftest*
1737 CXXCPP=/lib/cpp
1739 rm -f conftest*
1740 ac_cv_prog_CXXCPP="$CXXCPP"
1741 ac_ext=C
1742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1743 ac_cpp='$CXXCPP $CPPFLAGS'
1744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1746 cross_compiling=$ac_cv_prog_cxx_cross
1749 CXXCPP="$ac_cv_prog_CXXCPP"
1750 echo "$ac_t""$CXXCPP" 1>&6
1753 ac_ext=C
1754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1755 ac_cpp='$CXXCPP $CPPFLAGS'
1756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1758 cross_compiling=$ac_cv_prog_cxx_cross
1760 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1762 # Extract the first word of "$ac_prog", so it can be a program name with args.
1763 set dummy $ac_prog; ac_word=$2
1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_word" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1768 else
1769 if test -n "$CXX"; then
1770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1771 else
1772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1773 ac_dummy="$PATH"
1774 for ac_dir in $ac_dummy; do
1775 test -z "$ac_dir" && ac_dir=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_prog_CXX="$ac_prog"
1778 break
1780 done
1781 IFS="$ac_save_ifs"
1784 CXX="$ac_cv_prog_CXX"
1785 if test -n "$CXX"; then
1786 echo "$ac_t""$CXX" 1>&6
1787 else
1788 echo "$ac_t""no" 1>&6
1791 test -n "$CXX" && break
1792 done
1793 test -n "$CXX" || CXX="gcc"
1796 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1797 echo "configure:1798: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
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 cat > conftest.$ac_ext << EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1811 int main(){return(0);}
1813 if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1814 ac_cv_prog_cxx_works=yes
1815 # If we can't run a trivial program, we are probably using a cross compiler.
1816 if (./conftest; exit) 2>/dev/null; then
1817 ac_cv_prog_cxx_cross=no
1818 else
1819 ac_cv_prog_cxx_cross=yes
1821 else
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1824 ac_cv_prog_cxx_works=no
1826 rm -fr conftest*
1827 ac_ext=C
1828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1829 ac_cpp='$CXXCPP $CPPFLAGS'
1830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1832 cross_compiling=$ac_cv_prog_cxx_cross
1834 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1835 if test $ac_cv_prog_cxx_works = no; then
1836 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1838 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1839 echo "configure:1840: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1840 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1841 cross_compiling=$ac_cv_prog_cxx_cross
1843 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1844 echo "configure:1845: checking whether we are using GNU C++" >&5
1845 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 cat > conftest.C <<EOF
1849 #ifdef __GNUC__
1850 yes;
1851 #endif
1853 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1854 ac_cv_prog_gxx=yes
1855 else
1856 ac_cv_prog_gxx=no
1860 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1862 if test $ac_cv_prog_gxx = yes; then
1863 GXX=yes
1864 else
1865 GXX=
1868 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1869 ac_save_CXXFLAGS="$CXXFLAGS"
1870 CXXFLAGS=
1871 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1872 echo "configure:1873: checking whether ${CXX-g++} accepts -g" >&5
1873 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875 else
1876 echo 'void f(){}' > conftest.cc
1877 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1878 ac_cv_prog_cxx_g=yes
1879 else
1880 ac_cv_prog_cxx_g=no
1882 rm -f conftest*
1886 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1887 if test "$ac_test_CXXFLAGS" = set; then
1888 CXXFLAGS="$ac_save_CXXFLAGS"
1889 elif test $ac_cv_prog_cxx_g = yes; then
1890 if test "$GXX" = yes; then
1891 CXXFLAGS="-g -O2"
1892 else
1893 CXXFLAGS="-g"
1895 else
1896 if test "$GXX" = yes; then
1897 CXXFLAGS="-O2"
1898 else
1899 CXXFLAGS=
1904 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1905 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1906 echo "configure:1907: checking for FlexLexer.h" >&5
1907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1909 else
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include <FlexLexer.h>
1915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1916 { (eval echo configure:1917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1918 if test -z "$ac_err"; then
1919 rm -rf conftest*
1920 eval "ac_cv_header_$ac_safe=yes"
1921 else
1922 echo "$ac_err" >&5
1923 echo "configure: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1925 rm -rf conftest*
1926 eval "ac_cv_header_$ac_safe=no"
1928 rm -f conftest*
1930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1931 echo "$ac_t""yes" 1>&6
1932 true
1933 else
1934 echo "$ac_t""no" 1>&6
1936 echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1937 warn_b=yes
1942 CPPFLAGS="$CPPFLAGS $DEFINES"
1943 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1944 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1948 LD='$(CXX)'
1952 # ugh autoconf
1953 # urg, egcs: how to check for egcs >= 1.1?
1954 if $CXX --version | egrep '2\.[89]' > /dev/null ||
1955 $CXX --version | grep 'egcs' > /dev/null
1956 then
1957 true
1958 else
1960 echo "configure: warning: can\'t find g++ 2.8" 1>&2
1961 warn_b=yes
1966 echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1967 echo "configure:1968: checking whether explicit instantiation is needed" >&5
1968 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1970 else
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1975 template <class T> struct foo { static int baz; };
1976 template <class T> int foo<T>::baz = 1;
1978 int main() {
1979 return foo<int>::baz;
1980 ; return 0; }
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1983 rm -rf conftest*
1984 lily_cv_need_explicit_instantiation=no
1985 else
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 rm -rf conftest*
1989 lily_cv_need_explicit_instantiation=yes
1991 rm -f conftest*
1994 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1995 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1996 cat >> confdefs.h <<\EOF
1997 #define NEED_EXPLICIT_INSTANTIATION 1
2003 # ugh, automake: we want (and check for) bison
2004 for ac_prog in 'bison -y' byacc
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_word" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013 if test -n "$YACC"; then
2014 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2015 else
2016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2017 ac_dummy="$PATH"
2018 for ac_dir in $ac_dummy; do
2019 test -z "$ac_dir" && ac_dir=.
2020 if test -f $ac_dir/$ac_word; then
2021 ac_cv_prog_YACC="$ac_prog"
2022 break
2024 done
2025 IFS="$ac_save_ifs"
2028 YACC="$ac_cv_prog_YACC"
2029 if test -n "$YACC"; then
2030 echo "$ac_t""$YACC" 1>&6
2031 else
2032 echo "$ac_t""no" 1>&6
2035 test -n "$YACC" && break
2036 done
2037 test -n "$YACC" || YACC="yacc"
2039 # ugh, automake: we want (and check for) flex
2040 # AC_PROG_LEX
2041 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2043 # AC_DECL_YYTEXT
2044 # ugh, ugh
2045 ac_cv_prog_lex_root=lex.yy
2047 for ac_prog in bison
2049 # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2052 echo "configure:2053: checking for $ac_word" >&5
2053 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2055 else
2056 if test -n "$BISON"; then
2057 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2058 else
2059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2060 ac_dummy="$PATH"
2061 for ac_dir in $ac_dummy; do
2062 test -z "$ac_dir" && ac_dir=.
2063 if test -f $ac_dir/$ac_word; then
2064 ac_cv_prog_BISON="$ac_prog"
2065 break
2067 done
2068 IFS="$ac_save_ifs"
2071 BISON="$ac_cv_prog_BISON"
2072 if test -n "$BISON"; then
2073 echo "$ac_t""$BISON" 1>&6
2074 else
2075 echo "$ac_t""no" 1>&6
2078 test -n "$BISON" && break
2079 done
2080 test -n "$BISON" || BISON="error"
2082 for ac_prog in flex
2084 # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2087 echo "configure:2088: checking for $ac_word" >&5
2088 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2090 else
2091 if test -n "$FLEX"; then
2092 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2093 else
2094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2095 ac_dummy="$PATH"
2096 for ac_dir in $ac_dummy; do
2097 test -z "$ac_dir" && ac_dir=.
2098 if test -f $ac_dir/$ac_word; then
2099 ac_cv_prog_FLEX="$ac_prog"
2100 break
2102 done
2103 IFS="$ac_save_ifs"
2106 FLEX="$ac_cv_prog_FLEX"
2107 if test -n "$FLEX"; then
2108 echo "$ac_t""$FLEX" 1>&6
2109 else
2110 echo "$ac_t""no" 1>&6
2113 test -n "$FLEX" && break
2114 done
2115 test -n "$FLEX" || FLEX="error"
2118 result="`echo \"$BISON\" | grep echo`"
2119 if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2121 echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2122 warn_b=yes
2127 result="`echo \"$FLEX\" | grep echo`"
2128 if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2130 echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2131 warn_b=yes
2136 if test $BISON != "error"; then
2137 bison_version=`$BISON --version | sed 's/^.*version 1.//g'`
2138 if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then
2140 echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
2141 warn_b=yes
2150 for ac_prog in ar
2152 # Extract the first word of "$ac_prog", so it can be a program name with args.
2153 set dummy $ac_prog; ac_word=$2
2154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2155 echo "configure:2156: checking for $ac_word" >&5
2156 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2158 else
2159 if test -n "$AR"; then
2160 ac_cv_prog_AR="$AR" # Let the user override the test.
2161 else
2162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2163 ac_dummy="$PATH"
2164 for ac_dir in $ac_dummy; do
2165 test -z "$ac_dir" && ac_dir=.
2166 if test -f $ac_dir/$ac_word; then
2167 ac_cv_prog_AR="$ac_prog"
2168 break
2170 done
2171 IFS="$ac_save_ifs"
2174 AR="$ac_cv_prog_AR"
2175 if test -n "$AR"; then
2176 echo "$ac_t""$AR" 1>&6
2177 else
2178 echo "$ac_t""no" 1>&6
2181 test -n "$AR" && break
2182 done
2183 test -n "$AR" || AR="error"
2185 # Extract the first word of "ranlib", so it can be a program name with args.
2186 set dummy ranlib; ac_word=$2
2187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_word" >&5
2189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2191 else
2192 if test -n "$RANLIB"; then
2193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2194 else
2195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2196 ac_dummy="$PATH"
2197 for ac_dir in $ac_dummy; do
2198 test -z "$ac_dir" && ac_dir=.
2199 if test -f $ac_dir/$ac_word; then
2200 ac_cv_prog_RANLIB="ranlib"
2201 break
2203 done
2204 IFS="$ac_save_ifs"
2205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2208 RANLIB="$ac_cv_prog_RANLIB"
2209 if test -n "$RANLIB"; then
2210 echo "$ac_t""$RANLIB" 1>&6
2211 else
2212 echo "$ac_t""no" 1>&6
2219 # AC_STEPMAKE_LIBTOOL
2221 lang=English
2222 ALL_LINGUAS="en nl"
2224 # with/enable ??
2225 # Check whether --with-localedir or --without-localedir was given.
2226 if test "${with_localedir+set}" = set; then
2227 withval="$with_localedir"
2228 localedir=$with_localedir
2229 else
2230 localedir='${prefix}/share/locale'
2234 # Check whether --with-lang or --without-lang was given.
2235 if test "${with_lang+set}" = set; then
2236 withval="$with_lang"
2237 language=$with_lang
2238 else
2239 language=English
2243 echo $ac_n "checking language""... $ac_c" 1>&6
2244 echo "configure:2245: checking language" >&5
2245 case "$language" in
2246 En* | en* | Am* | am* | US* | us*)
2247 lang=English;;
2248 NL | nl | Du* | du* | Ned* | ned*)
2249 lang=Dutch;;
2251 lang=English;;
2253 lang=unknown;;
2254 esac
2255 echo "$ac_t""$lang" 1>&6
2257 if test "$lang" = "unknown" ; then
2259 echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2260 warn_b=yes
2266 DIR_LOCALEDIR=${localedir}
2267 presome=${prefix}
2268 if test "$prefix" = "NONE"; then
2269 presome=${ac_default_prefix}
2271 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2274 cat >> confdefs.h <<EOF
2275 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2279 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2280 echo "configure:2281: checking for gettext in -lintl" >&5
2281 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284 else
2285 ac_save_LIBS="$LIBS"
2286 LIBS="-lintl $LIBS"
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 /* Override any gcc2 internal prototype to avoid an error. */
2291 #ifdef __cplusplus
2292 extern "C"
2293 #endif
2294 /* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
2296 char gettext();
2298 int main() {
2299 gettext()
2300 ; return 0; }
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303 rm -rf conftest*
2304 eval "ac_cv_lib_$ac_lib_var=yes"
2305 else
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 rm -rf conftest*
2309 eval "ac_cv_lib_$ac_lib_var=no"
2311 rm -f conftest*
2312 LIBS="$ac_save_LIBS"
2315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2317 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2319 cat >> confdefs.h <<EOF
2320 #define $ac_tr_lib 1
2323 LIBS="-lintl $LIBS"
2325 else
2326 echo "$ac_t""no" 1>&6
2329 for ac_func in gettext
2331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_func" >&5
2333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2335 else
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 /* System header to define __stub macros and hopefully few prototypes,
2340 which can conflict with char $ac_func(); below. */
2341 #include <assert.h>
2342 /* Override any gcc2 internal prototype to avoid an error. */
2343 #ifdef __cplusplus
2344 extern "C"
2345 #endif
2346 /* We use char because int might match the return type of a gcc2
2347 builtin and then its argument prototype would still apply. */
2348 char $ac_func();
2350 int main() {
2352 /* The GNU C library defines this for functions which it implements
2353 to always fail with ENOSYS. Some functions are actually named
2354 something starting with __ and the normal name is an alias. */
2355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2356 choke me
2357 #else
2358 $ac_func();
2359 #endif
2361 ; return 0; }
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2364 rm -rf conftest*
2365 eval "ac_cv_func_$ac_func=yes"
2366 else
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 rm -rf conftest*
2370 eval "ac_cv_func_$ac_func=no"
2372 rm -f conftest*
2375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2376 echo "$ac_t""yes" 1>&6
2377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2378 cat >> confdefs.h <<EOF
2379 #define $ac_tr_func 1
2382 else
2383 echo "$ac_t""no" 1>&6
2385 done
2389 # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2390 for ac_prog in msgfmt
2392 # Extract the first word of "$ac_prog", so it can be a program name with args.
2393 set dummy $ac_prog; ac_word=$2
2394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_word" >&5
2396 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2398 else
2399 if test -n "$MSGFMT"; then
2400 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2401 else
2402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2403 ac_dummy="$PATH"
2404 for ac_dir in $ac_dummy; do
2405 test -z "$ac_dir" && ac_dir=.
2406 if test -f $ac_dir/$ac_word; then
2407 ac_cv_prog_MSGFMT="$ac_prog"
2408 break
2410 done
2411 IFS="$ac_save_ifs"
2414 MSGFMT="$ac_cv_prog_MSGFMT"
2415 if test -n "$MSGFMT"; then
2416 echo "$ac_t""$MSGFMT" 1>&6
2417 else
2418 echo "$ac_t""no" 1>&6
2421 test -n "$MSGFMT" && break
2422 done
2423 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2425 echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2426 echo "configure:2427: checking whether msgfmt accepts -o" >&5
2427 msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2428 if test "$msgfmt_output" = ""; then
2429 echo "$ac_t""yes" 1>&6
2430 else
2431 # urg
2432 MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2433 echo "$ac_t""no" 1>&6
2435 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2436 warn_b=yes
2439 if test ! -n "$MSGFMT"; then
2441 echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2442 warn_b=yes
2447 # urg, never know what names these teTeX guys will think up
2449 for ac_prog in mf
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_word" >&5
2455 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2457 else
2458 if test -n "$METAFONT"; then
2459 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2460 else
2461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2462 ac_dummy="$PATH"
2463 for ac_dir in $ac_dummy; do
2464 test -z "$ac_dir" && ac_dir=.
2465 if test -f $ac_dir/$ac_word; then
2466 ac_cv_prog_METAFONT="$ac_prog"
2467 break
2469 done
2470 IFS="$ac_save_ifs"
2473 METAFONT="$ac_cv_prog_METAFONT"
2474 if test -n "$METAFONT"; then
2475 echo "$ac_t""$METAFONT" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2480 test -n "$METAFONT" && break
2481 done
2482 test -n "$METAFONT" || METAFONT="no"
2484 if test "x$METAFONT" = "xno"; then
2485 for ac_prog in mfont
2487 # Extract the first word of "$ac_prog", so it can be a program name with args.
2488 set dummy $ac_prog; ac_word=$2
2489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_word" >&5
2491 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2494 if test -n "$MFONT"; then
2495 ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2496 else
2497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2498 ac_dummy="$PATH"
2499 for ac_dir in $ac_dummy; do
2500 test -z "$ac_dir" && ac_dir=.
2501 if test -f $ac_dir/$ac_word; then
2502 ac_cv_prog_MFONT="$ac_prog"
2503 break
2505 done
2506 IFS="$ac_save_ifs"
2509 MFONT="$ac_cv_prog_MFONT"
2510 if test -n "$MFONT"; then
2511 echo "$ac_t""$MFONT" 1>&6
2512 else
2513 echo "$ac_t""no" 1>&6
2516 test -n "$MFONT" && break
2517 done
2518 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2520 METAFONT=$MFONT
2523 for ac_prog in mp
2525 # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_word" >&5
2529 if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2531 else
2532 if test -n "$METAPOST"; then
2533 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
2534 else
2535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2536 ac_dummy="$PATH"
2537 for ac_dir in $ac_dummy; do
2538 test -z "$ac_dir" && ac_dir=.
2539 if test -f $ac_dir/$ac_word; then
2540 ac_cv_prog_METAPOST="$ac_prog"
2541 break
2543 done
2544 IFS="$ac_save_ifs"
2547 METAPOST="$ac_cv_prog_METAPOST"
2548 if test -n "$METAPOST"; then
2549 echo "$ac_t""$METAPOST" 1>&6
2550 else
2551 echo "$ac_t""no" 1>&6
2554 test -n "$METAPOST" && break
2555 done
2556 test -n "$METAPOST" || METAPOST="no"
2558 if test "x$METAPOST" = "xno"; then
2559 for ac_prog in mpost
2561 # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy $ac_prog; ac_word=$2
2563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2564 echo "configure:2565: checking for $ac_word" >&5
2565 if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568 if test -n "$MPOST"; then
2569 ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
2570 else
2571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2572 ac_dummy="$PATH"
2573 for ac_dir in $ac_dummy; do
2574 test -z "$ac_dir" && ac_dir=.
2575 if test -f $ac_dir/$ac_word; then
2576 ac_cv_prog_MPOST="$ac_prog"
2577 break
2579 done
2580 IFS="$ac_save_ifs"
2583 MPOST="$ac_cv_prog_MPOST"
2584 if test -n "$MPOST"; then
2585 echo "$ac_t""$MPOST" 1>&6
2586 else
2587 echo "$ac_t""no" 1>&6
2590 test -n "$MPOST" && break
2591 done
2592 test -n "$MPOST" || MPOST="-echo no mp or mpost"
2595 METAPOST=$MPOST
2598 for ac_prog in inimf
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2603 echo "configure:2604: checking for $ac_word" >&5
2604 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2606 else
2607 if test -n "$INIMETAFONT"; then
2608 ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2609 else
2610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2611 ac_dummy="$PATH"
2612 for ac_dir in $ac_dummy; do
2613 test -z "$ac_dir" && ac_dir=.
2614 if test -f $ac_dir/$ac_word; then
2615 ac_cv_prog_INIMETAFONT="$ac_prog"
2616 break
2618 done
2619 IFS="$ac_save_ifs"
2622 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2623 if test -n "$INIMETAFONT"; then
2624 echo "$ac_t""$INIMETAFONT" 1>&6
2625 else
2626 echo "$ac_t""no" 1>&6
2629 test -n "$INIMETAFONT" && break
2630 done
2631 test -n "$INIMETAFONT" || INIMETAFONT="no"
2633 if test "x$INIMETAFONT" = "xno"; then
2634 for ac_prog in inimfont
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2639 echo "configure:2640: checking for $ac_word" >&5
2640 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643 if test -n "$INIMFONT"; then
2644 ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2645 else
2646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2647 ac_dummy="$PATH"
2648 for ac_dir in $ac_dummy; do
2649 test -z "$ac_dir" && ac_dir=.
2650 if test -f $ac_dir/$ac_word; then
2651 ac_cv_prog_INIMFONT="$ac_prog"
2652 break
2654 done
2655 IFS="$ac_save_ifs"
2658 INIMFONT="$ac_cv_prog_INIMFONT"
2659 if test -n "$INIMFONT"; then
2660 echo "$ac_t""$INIMFONT" 1>&6
2661 else
2662 echo "$ac_t""no" 1>&6
2665 test -n "$INIMFONT" && break
2666 done
2667 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2669 INIMETAFONT=$INIMFONT
2672 for ac_prog in inimp
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2677 echo "configure:2678: checking for $ac_word" >&5
2678 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2680 else
2681 if test -n "$INIMETAPOST"; then
2682 ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test.
2683 else
2684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2685 ac_dummy="$PATH"
2686 for ac_dir in $ac_dummy; do
2687 test -z "$ac_dir" && ac_dir=.
2688 if test -f $ac_dir/$ac_word; then
2689 ac_cv_prog_INIMETAPOST="$ac_prog"
2690 break
2692 done
2693 IFS="$ac_save_ifs"
2696 INIMETAPOST="$ac_cv_prog_INIMETAPOST"
2697 if test -n "$INIMETAPOST"; then
2698 echo "$ac_t""$INIMETAPOST" 1>&6
2699 else
2700 echo "$ac_t""no" 1>&6
2703 test -n "$INIMETAPOST" && break
2704 done
2705 test -n "$INIMETAPOST" || INIMETAPOST="no"
2707 if test "x$INIMETAPOST" = "xno"; then
2708 for ac_prog in inimpost
2710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2711 set dummy $ac_prog; ac_word=$2
2712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_word" >&5
2714 if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717 if test -n "$INIMPOST"; then
2718 ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test.
2719 else
2720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2721 ac_dummy="$PATH"
2722 for ac_dir in $ac_dummy; do
2723 test -z "$ac_dir" && ac_dir=.
2724 if test -f $ac_dir/$ac_word; then
2725 ac_cv_prog_INIMPOST="$ac_prog"
2726 break
2728 done
2729 IFS="$ac_save_ifs"
2732 INIMPOST="$ac_cv_prog_INIMPOST"
2733 if test -n "$INIMPOST"; then
2734 echo "$ac_t""$INIMPOST" 1>&6
2735 else
2736 echo "$ac_t""no" 1>&6
2739 test -n "$INIMPOST" && break
2740 done
2741 test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost"
2743 INIMETAPOST=$INIMPOST
2746 echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2747 echo "configure:2748: checking for working metafont mode" >&5
2748 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2749 for MFMODE in $modelist; do
2750 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2751 if test -f mfput.tfm; then
2752 break;
2754 done
2755 echo "$ac_t""$MFMODE" 1>&6
2757 echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6
2758 echo "configure:2759: checking for mfplain.mp" >&5
2760 # For now let people define these in their environments
2762 : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`}
2763 echo "$ac_t""$MFPLAIN_MP" 1>&6
2765 echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6
2766 echo "configure:2767: checking for inimetapost flags" >&5
2767 if test ${INIMETAPOST} = "inimp" ; then
2768 : ${INIMETAPOST_FLAGS=''}
2769 else
2770 : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'}
2772 echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6
2774 rm -f mfput.*
2785 # Check whether --enable-tfm-path or --disable-tfm-path was given.
2786 if test "${enable_tfm_path+set}" = set; then
2787 enableval="$enable_tfm_path"
2788 tfm_path=$enableval
2789 else
2790 tfm_path=auto
2794 for ac_prog in kpsewhich
2796 # Extract the first word of "$ac_prog", so it can be a program name with args.
2797 set dummy $ac_prog; ac_word=$2
2798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2799 echo "configure:2800: checking for $ac_word" >&5
2800 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2802 else
2803 if test -n "$KPSEWHICH"; then
2804 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2805 else
2806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2807 ac_dummy="$PATH"
2808 for ac_dir in $ac_dummy; do
2809 test -z "$ac_dir" && ac_dir=.
2810 if test -f $ac_dir/$ac_word; then
2811 ac_cv_prog_KPSEWHICH="$ac_prog"
2812 break
2814 done
2815 IFS="$ac_save_ifs"
2818 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2819 if test -n "$KPSEWHICH"; then
2820 echo "$ac_t""$KPSEWHICH" 1>&6
2821 else
2822 echo "$ac_t""no" 1>&6
2825 test -n "$KPSEWHICH" && break
2826 done
2827 test -n "$KPSEWHICH" || KPSEWHICH="no"
2829 echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2830 echo "configure:2831: checking for tfm path" >&5
2832 TFM_FONTS="cmr msam"
2834 if test "x$tfm_path" = xauto ; then
2835 if test "x$KPSEWHICH" != "xno" ; then
2836 for i in $TFM_FONTS; do
2837 dir=`$KPSEWHICH tfm ${i}10.tfm`
2838 TFM_PATH="$TFM_PATH `dirname $dir`"
2839 done
2840 else
2842 echo "configure: warning: Please specify where cmr10.tfm lives:
2843 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2844 warn_b=yes
2847 else
2848 TFM_PATH=$tfm_path
2851 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2852 echo "$ac_t""$TFM_PATH" 1>&6
2856 ## First, let's just see if we can find Guile at all.
2857 echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2858 echo "configure:2859: checking "for guile-config"" >&5
2859 for guile_config in guile-config $target-guile-config $build-guile-config; do
2860 echo "$ac_t"""$guile_config"" 1>&6
2861 if ! $guile_config --version > /dev/null 2>&1 ; then
2862 echo "configure: warning: "cannot execute $guile_config"" 1>&2
2863 echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2864 echo "configure:2865: checking "if we are cross compiling"" >&5
2865 guile_config=error
2866 else
2867 break
2869 done
2870 if test "$guile_config" = "error"; then
2871 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2872 exit 1
2874 echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2875 echo "configure:2876: checking "Guile version"" >&5
2876 need_guile_version="1.3.4"
2877 need_guile_version_numeric=100304
2878 guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2879 guile_version_numeric=`echo $guile_version | awk -F. '
2880 {if ($3) {last = $3}
2881 else {last =0}}
2882 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2883 echo "$ac_t"""$guile_version"" 1>&6
2884 if test $guile_version_numeric -lt $need_guile_version_numeric
2885 then
2887 echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2888 warn_b=yes
2892 ## The GUILE_FLAGS macro.
2893 echo $ac_n "checking for Guile""... $ac_c" 1>&6
2894 echo "configure:2895: checking for Guile" >&5
2895 if ! $guile_config link > /dev/null ; then
2896 echo "$ac_t"""cannot execute $guile_config"" 1>&6
2897 { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2898 exit 1
2900 GUILE_CFLAGS="`$guile_config compile`"
2901 GUILE_LDFLAGS="`$guile_config link`"
2904 echo "$ac_t""yes" 1>&6
2906 # Extract the first word of "guile", so it can be a program name with args.
2907 set dummy guile; ac_word=$2
2908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_word" >&5
2910 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912 else
2913 case "$GUILE" in
2915 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2917 ?:/*)
2918 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2922 ac_dummy="$PATH"
2923 for ac_dir in $ac_dummy; do
2924 test -z "$ac_dir" && ac_dir=.
2925 if test -f $ac_dir/$ac_word; then
2926 ac_cv_path_GUILE="$ac_dir/$ac_word"
2927 break
2929 done
2930 IFS="$ac_save_ifs"
2931 test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2933 esac
2935 GUILE="$ac_cv_path_GUILE"
2936 if test -n "$GUILE"; then
2937 echo "$ac_t""$GUILE" 1>&6
2938 else
2939 echo "$ac_t""no" 1>&6
2946 kpathsea_b=yes
2947 # Check whether --enable-kpathsea or --disable-kpathsea was given.
2948 if test "${enable_kpathsea+set}" = set; then
2949 enableval="$enable_kpathsea"
2950 kpathsea_b=$enableval
2954 if test $kpathsea_b = yes; then
2955 for ac_hdr in kpathsea/kpathsea.h
2957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2959 echo "configure:2960: checking for $ac_hdr" >&5
2960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2962 else
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 #include <$ac_hdr>
2968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2969 { (eval echo configure:2970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2971 if test -z "$ac_err"; then
2972 rm -rf conftest*
2973 eval "ac_cv_header_$ac_safe=yes"
2974 else
2975 echo "$ac_err" >&5
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2978 rm -rf conftest*
2979 eval "ac_cv_header_$ac_safe=no"
2981 rm -f conftest*
2983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2984 echo "$ac_t""yes" 1>&6
2985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2986 cat >> confdefs.h <<EOF
2987 #define $ac_tr_hdr 1
2990 else
2991 echo "$ac_t""no" 1>&6
2993 done
2995 echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2996 echo "configure:2997: checking for kpse_find_file in -lkpathsea" >&5
2997 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3000 else
3001 ac_save_LIBS="$LIBS"
3002 LIBS="-lkpathsea $LIBS"
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 /* Override any gcc2 internal prototype to avoid an error. */
3007 #ifdef __cplusplus
3008 extern "C"
3009 #endif
3010 /* We use char because int might match the return type of a gcc2
3011 builtin and then its argument prototype would still apply. */
3012 char kpse_find_file();
3014 int main() {
3015 kpse_find_file()
3016 ; return 0; }
3018 if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3019 rm -rf conftest*
3020 eval "ac_cv_lib_$ac_lib_var=yes"
3021 else
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 rm -rf conftest*
3025 eval "ac_cv_lib_$ac_lib_var=no"
3027 rm -f conftest*
3028 LIBS="$ac_save_LIBS"
3031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3033 ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3035 cat >> confdefs.h <<EOF
3036 #define $ac_tr_lib 1
3039 LIBS="-lkpathsea $LIBS"
3041 else
3042 echo "$ac_t""no" 1>&6
3045 # urg: kpse_find_tfm is a #define, how to check for this?
3046 # AC_CHECK_LIB(kpathsea, kpse_find_tfm)
3047 # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions. You may have to create TFM files manually.))
3048 for ac_func in kpse_find_file
3050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3051 echo "configure:3052: checking for $ac_func" >&5
3052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3054 else
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 /* System header to define __stub macros and hopefully few prototypes,
3059 which can conflict with char $ac_func(); below. */
3060 #include <assert.h>
3061 /* Override any gcc2 internal prototype to avoid an error. */
3062 #ifdef __cplusplus
3063 extern "C"
3064 #endif
3065 /* We use char because int might match the return type of a gcc2
3066 builtin and then its argument prototype would still apply. */
3067 char $ac_func();
3069 int main() {
3071 /* The GNU C library defines this for functions which it implements
3072 to always fail with ENOSYS. Some functions are actually named
3073 something starting with __ and the normal name is an alias. */
3074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3075 choke me
3076 #else
3077 $ac_func();
3078 #endif
3080 ; return 0; }
3082 if { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3083 rm -rf conftest*
3084 eval "ac_cv_func_$ac_func=yes"
3085 else
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3088 rm -rf conftest*
3089 eval "ac_cv_func_$ac_func=no"
3091 rm -f conftest*
3094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3097 cat >> confdefs.h <<EOF
3098 #define $ac_tr_func 1
3101 else
3102 echo "$ac_t""no" 1>&6
3103 echo "configure: warning: Cannot find kpathsea functions. You may have to create TFM files manually." 1>&2
3104 warn_b=yes
3105 kpathsea_b=no
3107 done
3110 echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3111 echo "configure:3112: checking whether to use kpathsea" >&5
3112 if test $kpathsea_b = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 KPATHSEA=1
3115 else
3116 echo "$ac_t""no" 1>&6
3117 KPATHSEA=0
3121 cat >> confdefs.h <<EOF
3122 #define KPATHSEA $KPATHSEA
3127 for ac_prog in bibtex2html bib2html
3129 # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3132 echo "configure:3133: checking for $ac_word" >&5
3133 if eval "test \"`echo '$''{'ac_cv_prog_BIBTEX2HTML'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3135 else
3136 if test -n "$BIBTEX2HTML"; then
3137 ac_cv_prog_BIBTEX2HTML="$BIBTEX2HTML" # Let the user override the test.
3138 else
3139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3140 ac_dummy="$PATH"
3141 for ac_dir in $ac_dummy; do
3142 test -z "$ac_dir" && ac_dir=.
3143 if test -f $ac_dir/$ac_word; then
3144 ac_cv_prog_BIBTEX2HTML="$ac_prog"
3145 break
3147 done
3148 IFS="$ac_save_ifs"
3151 BIBTEX2HTML="$ac_cv_prog_BIBTEX2HTML"
3152 if test -n "$BIBTEX2HTML"; then
3153 echo "$ac_t""$BIBTEX2HTML" 1>&6
3154 else
3155 echo "$ac_t""no" 1>&6
3158 test -n "$BIBTEX2HTML" && break
3159 done
3160 test -n "$BIBTEX2HTML" || BIBTEX2HTML="error"
3162 if test "$BIBTEX2HTML" = "bib2html"; then
3163 BIBTEX2HTML_FLAGS='$< $(@)'
3164 else
3165 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
3172 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3173 echo "configure:3174: checking for 8-bit clean memcmp" >&5
3174 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3176 else
3177 if test "$cross_compiling" = yes; then
3178 ac_cv_func_memcmp_clean=no
3179 else
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3183 #ifdef __cplusplus
3184 extern "C" void exit(int);
3185 #endif
3187 main()
3189 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3190 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3194 if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3195 then
3196 ac_cv_func_memcmp_clean=yes
3197 else
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 rm -fr conftest*
3201 ac_cv_func_memcmp_clean=no
3203 rm -fr conftest*
3208 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3209 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3211 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3212 echo "configure:3213: checking for vprintf" >&5
3213 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3215 else
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 /* System header to define __stub macros and hopefully few prototypes,
3220 which can conflict with char vprintf(); below. */
3221 #include <assert.h>
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 #ifdef __cplusplus
3224 extern "C"
3225 #endif
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3228 char vprintf();
3230 int main() {
3232 /* The GNU C library defines this for functions which it implements
3233 to always fail with ENOSYS. Some functions are actually named
3234 something starting with __ and the normal name is an alias. */
3235 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3236 choke me
3237 #else
3238 vprintf();
3239 #endif
3241 ; return 0; }
3243 if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3244 rm -rf conftest*
3245 eval "ac_cv_func_vprintf=yes"
3246 else
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 rm -rf conftest*
3250 eval "ac_cv_func_vprintf=no"
3252 rm -f conftest*
3255 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3256 echo "$ac_t""yes" 1>&6
3257 cat >> confdefs.h <<\EOF
3258 #define HAVE_VPRINTF 1
3261 else
3262 echo "$ac_t""no" 1>&6
3265 if test "$ac_cv_func_vprintf" != yes; then
3266 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3267 echo "configure:3268: checking for _doprnt" >&5
3268 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3270 else
3271 cat > conftest.$ac_ext <<EOF
3272 #line 3273 "configure"
3273 #include "confdefs.h"
3274 /* System header to define __stub macros and hopefully few prototypes,
3275 which can conflict with char _doprnt(); below. */
3276 #include <assert.h>
3277 /* Override any gcc2 internal prototype to avoid an error. */
3278 #ifdef __cplusplus
3279 extern "C"
3280 #endif
3281 /* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3283 char _doprnt();
3285 int main() {
3287 /* The GNU C library defines this for functions which it implements
3288 to always fail with ENOSYS. Some functions are actually named
3289 something starting with __ and the normal name is an alias. */
3290 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3291 choke me
3292 #else
3293 _doprnt();
3294 #endif
3296 ; return 0; }
3298 if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3299 rm -rf conftest*
3300 eval "ac_cv_func__doprnt=yes"
3301 else
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3304 rm -rf conftest*
3305 eval "ac_cv_func__doprnt=no"
3307 rm -f conftest*
3310 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3311 echo "$ac_t""yes" 1>&6
3312 cat >> confdefs.h <<\EOF
3313 #define HAVE_DOPRNT 1
3316 else
3317 echo "$ac_t""no" 1>&6
3322 for ac_func in memmem snprintf vsnprintf gettext isinf
3324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_func" >&5
3326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3328 else
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 /* System header to define __stub macros and hopefully few prototypes,
3333 which can conflict with char $ac_func(); below. */
3334 #include <assert.h>
3335 /* Override any gcc2 internal prototype to avoid an error. */
3336 #ifdef __cplusplus
3337 extern "C"
3338 #endif
3339 /* We use char because int might match the return type of a gcc2
3340 builtin and then its argument prototype would still apply. */
3341 char $ac_func();
3343 int main() {
3345 /* The GNU C library defines this for functions which it implements
3346 to always fail with ENOSYS. Some functions are actually named
3347 something starting with __ and the normal name is an alias. */
3348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3349 choke me
3350 #else
3351 $ac_func();
3352 #endif
3354 ; return 0; }
3356 if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3357 rm -rf conftest*
3358 eval "ac_cv_func_$ac_func=yes"
3359 else
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 rm -rf conftest*
3363 eval "ac_cv_func_$ac_func=no"
3365 rm -f conftest*
3368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3369 echo "$ac_t""yes" 1>&6
3370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3371 cat >> confdefs.h <<EOF
3372 #define $ac_tr_func 1
3375 else
3376 echo "$ac_t""no" 1>&6
3378 done
3381 cat >> confdefs.h <<EOF
3382 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3385 cat >> confdefs.h <<EOF
3386 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3390 for ac_prog in makeinfo
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy $ac_prog; ac_word=$2
3394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_word" >&5
3396 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3398 else
3399 if test -n "$MAKEINFO"; then
3400 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3401 else
3402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3403 ac_dummy="$PATH"
3404 for ac_dir in $ac_dummy; do
3405 test -z "$ac_dir" && ac_dir=.
3406 if test -f $ac_dir/$ac_word; then
3407 ac_cv_prog_MAKEINFO="$ac_prog"
3408 break
3410 done
3411 IFS="$ac_save_ifs"
3414 MAKEINFO="$ac_cv_prog_MAKEINFO"
3415 if test -n "$MAKEINFO"; then
3416 echo "$ac_t""$MAKEINFO" 1>&6
3417 else
3418 echo "$ac_t""no" 1>&6
3421 test -n "$MAKEINFO" && break
3422 done
3423 test -n "$MAKEINFO" || MAKEINFO="error"
3425 # Extract the first word of "perl", so it can be a program name with args.
3426 set dummy perl; ac_word=$2
3427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3428 echo "configure:3429: checking for $ac_word" >&5
3429 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3431 else
3432 case "$PERL" in
3434 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3436 ?:/*)
3437 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3441 ac_dummy="$PATH"
3442 for ac_dir in $ac_dummy; do
3443 test -z "$ac_dir" && ac_dir=.
3444 if test -f $ac_dir/$ac_word; then
3445 ac_cv_path_PERL="$ac_dir/$ac_word"
3446 break
3448 done
3449 IFS="$ac_save_ifs"
3450 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3452 esac
3454 PERL="$ac_cv_path_PERL"
3455 if test -n "$PERL"; then
3456 echo "$ac_t""$PERL" 1>&6
3457 else
3458 echo "$ac_t""no" 1>&6
3463 trap '' 1 2 15
3464 cat > confcache <<\EOF
3465 # This file is a shell script that caches the results of configure
3466 # tests run on this system so they can be shared between configure
3467 # scripts and configure runs. It is not useful on other systems.
3468 # If it contains results you don't want to keep, you may remove or edit it.
3470 # By default, configure uses ./config.cache as the cache file,
3471 # creating it if it does not exist already. You can give configure
3472 # the --cache-file=FILE option to use a different cache file; that is
3473 # what configure does when it calls configure scripts in
3474 # subdirectories, so they share the cache.
3475 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3476 # config.status only pays attention to the cache file if you give it the
3477 # --recheck option to rerun configure.
3480 # The following way of writing the cache mishandles newlines in values,
3481 # but we know of no workaround that is simple, portable, and efficient.
3482 # So, don't put newlines in cache variables' values.
3483 # Ultrix sh set writes to stderr and can't be redirected directly,
3484 # and sets the high bit in the cache file unless we assign to the vars.
3485 (set) 2>&1 |
3486 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3487 *ac_space=\ *)
3488 # `set' does not quote correctly, so add quotes (double-quote substitution
3489 # turns \\\\ into \\, and sed turns \\ into \).
3490 sed -n \
3491 -e "s/'/'\\\\''/g" \
3492 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3495 # `set' quotes correctly as required by POSIX, so do not add quotes.
3496 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3498 esac >> confcache
3499 if cmp -s $cache_file confcache; then
3501 else
3502 if test -w $cache_file; then
3503 echo "updating cache $cache_file"
3504 cat confcache > $cache_file
3505 else
3506 echo "not updating unwritable cache $cache_file"
3509 rm -f confcache
3511 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3513 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3514 # Let make expand exec_prefix.
3515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3517 # Any assignment to VPATH causes Sun make to only execute
3518 # the first set of double-colon rules, so remove it if not needed.
3519 # If there is a colon in the path, we need to keep it.
3520 if test "x$srcdir" = x.; then
3521 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3524 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3526 DEFS=-DHAVE_CONFIG_H
3528 # Without the "./", some shells look in PATH for config.status.
3529 : ${CONFIG_STATUS=./config.status}
3531 echo creating $CONFIG_STATUS
3532 rm -f $CONFIG_STATUS
3533 cat > $CONFIG_STATUS <<EOF
3534 #! /bin/sh
3535 # Generated automatically by configure.
3536 # Run this file to recreate the current configuration.
3537 # This directory was configured as follows,
3538 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3540 # $0 $ac_configure_args
3542 # Compiler output produced by configure, useful for debugging
3543 # configure, is in ./config.log if it exists.
3545 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3546 for ac_option
3548 case "\$ac_option" in
3549 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3550 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3551 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3552 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3553 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3554 exit 0 ;;
3555 -help | --help | --hel | --he | --h)
3556 echo "\$ac_cs_usage"; exit 0 ;;
3557 *) echo "\$ac_cs_usage"; exit 1 ;;
3558 esac
3559 done
3561 ac_given_srcdir=$srcdir
3563 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3565 cat >> $CONFIG_STATUS <<EOF
3567 # Protect against being on the right side of a sed subst in config.status.
3568 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3569 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3570 $ac_vpsub
3571 $extrasub
3572 s%@SHELL@%$SHELL%g
3573 s%@CFLAGS@%$CFLAGS%g
3574 s%@CPPFLAGS@%$CPPFLAGS%g
3575 s%@CXXFLAGS@%$CXXFLAGS%g
3576 s%@FFLAGS@%$FFLAGS%g
3577 s%@DEFS@%$DEFS%g
3578 s%@LDFLAGS@%$LDFLAGS%g
3579 s%@LIBS@%$LIBS%g
3580 s%@exec_prefix@%$exec_prefix%g
3581 s%@prefix@%$prefix%g
3582 s%@program_transform_name@%$program_transform_name%g
3583 s%@bindir@%$bindir%g
3584 s%@sbindir@%$sbindir%g
3585 s%@libexecdir@%$libexecdir%g
3586 s%@datadir@%$datadir%g
3587 s%@sysconfdir@%$sysconfdir%g
3588 s%@sharedstatedir@%$sharedstatedir%g
3589 s%@localstatedir@%$localstatedir%g
3590 s%@libdir@%$libdir%g
3591 s%@includedir@%$includedir%g
3592 s%@oldincludedir@%$oldincludedir%g
3593 s%@infodir@%$infodir%g
3594 s%@mandir@%$mandir%g
3595 s%@builddir@%$builddir%g
3596 s%@stepmake@%$stepmake%g
3597 s%@package@%$package%g
3598 s%@PACKAGE@%$PACKAGE%g
3599 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3600 s%@package_depth@%$package_depth%g
3601 s%@AUTOGENERATE@%$AUTOGENERATE%g
3602 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3603 s%@host@%$host%g
3604 s%@host_alias@%$host_alias%g
3605 s%@host_cpu@%$host_cpu%g
3606 s%@host_vendor@%$host_vendor%g
3607 s%@host_os@%$host_os%g
3608 s%@MAKE@%$MAKE%g
3609 s%@FIND@%$FIND%g
3610 s%@TAR@%$TAR%g
3611 s%@BASH@%$BASH%g
3612 s%@PYTHON@%$PYTHON%g
3613 s%@program_prefix@%$program_prefix%g
3614 s%@program_suffix@%$program_suffix%g
3615 s%@ZIP@%$ZIP%g
3616 s%@LN@%$LN%g
3617 s%@LN_S@%$LN_S%g
3618 s%@INSTALL@%$INSTALL%g
3619 s%@PATHSEP@%$PATHSEP%g
3620 s%@DIRSEP@%$DIRSEP%g
3621 s%@DIR_DATADIR@%$DIR_DATADIR%g
3622 s%@subdirs@%$subdirs%g
3623 s%@CC@%$CC%g
3624 s%@LD@%$LD%g
3625 s%@cross_compiling@%$cross_compiling%g
3626 s%@ICFLAGS@%$ICFLAGS%g
3627 s%@ILDFLAGS@%$ILDFLAGS%g
3628 s%@DEFINES@%$DEFINES%g
3629 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3630 s%@CPP@%$CPP%g
3631 s%@CXX@%$CXX%g
3632 s%@CXXCPP@%$CXXCPP%g
3633 s%@YACC@%$YACC%g
3634 s%@BISON@%$BISON%g
3635 s%@FLEX@%$FLEX%g
3636 s%@AR@%$AR%g
3637 s%@RANLIB@%$RANLIB%g
3638 s%@localedir@%$localedir%g
3639 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3640 s%@MSGFMT@%$MSGFMT%g
3641 s%@METAFONT@%$METAFONT%g
3642 s%@MFONT@%$MFONT%g
3643 s%@METAPOST@%$METAPOST%g
3644 s%@MPOST@%$MPOST%g
3645 s%@INIMETAFONT@%$INIMETAFONT%g
3646 s%@INIMFONT@%$INIMFONT%g
3647 s%@INIMETAPOST@%$INIMETAPOST%g
3648 s%@INIMPOST@%$INIMPOST%g
3649 s%@MFMODE@%$MFMODE%g
3650 s%@MFPLAIN_MP@%$MFPLAIN_MP%g
3651 s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g
3652 s%@KPSEWHICH@%$KPSEWHICH%g
3653 s%@TFM_PATH@%$TFM_PATH%g
3654 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3655 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3656 s%@GUILE@%$GUILE%g
3657 s%@KPATHSEA@%$KPATHSEA%g
3658 s%@BIBTEX2HTML@%$BIBTEX2HTML%g
3659 s%@BIBTEX2HTML_FLAGS@%$BIBTEX2HTML_FLAGS%g
3660 s%@LIBOBJS@%$LIBOBJS%g
3661 s%@MAKEINFO@%$MAKEINFO%g
3662 s%@PERL@%$PERL%g
3664 CEOF
3667 cat >> $CONFIG_STATUS <<\EOF
3669 # Split the substitutions into bite-sized pieces for seds with
3670 # small command number limits, like on Digital OSF/1 and HP-UX.
3671 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3672 ac_file=1 # Number of current file.
3673 ac_beg=1 # First line for current file.
3674 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3675 ac_more_lines=:
3676 ac_sed_cmds=""
3677 while $ac_more_lines; do
3678 if test $ac_beg -gt 1; then
3679 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3680 else
3681 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3683 if test ! -s conftest.s$ac_file; then
3684 ac_more_lines=false
3685 rm -f conftest.s$ac_file
3686 else
3687 if test -z "$ac_sed_cmds"; then
3688 ac_sed_cmds="sed -f conftest.s$ac_file"
3689 else
3690 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3692 ac_file=`expr $ac_file + 1`
3693 ac_beg=$ac_end
3694 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3696 done
3697 if test -z "$ac_sed_cmds"; then
3698 ac_sed_cmds=cat
3702 cat >> $CONFIG_STATUS <<EOF
3704 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3706 cat >> $CONFIG_STATUS <<\EOF
3707 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3709 case "$ac_file" in
3710 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3711 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3712 *) ac_file_in="${ac_file}.in" ;;
3713 esac
3715 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3717 # Remove last slash and all that follows it. Not all systems have dirname.
3718 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3719 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3720 # The file is in a subdirectory.
3721 test ! -d "$ac_dir" && mkdir "$ac_dir"
3722 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3723 # A "../" for each directory in $ac_dir_suffix.
3724 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3725 else
3726 ac_dir_suffix= ac_dots=
3729 case "$ac_given_srcdir" in
3730 .) srcdir=.
3731 if test -z "$ac_dots"; then top_srcdir=.
3732 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3733 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3734 *) # Relative path.
3735 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3736 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3737 esac
3740 echo creating "$ac_file"
3741 rm -f "$ac_file"
3742 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3743 case "$ac_file" in
3744 *Makefile*) ac_comsub="1i\\
3745 # $configure_input" ;;
3746 *) ac_comsub= ;;
3747 esac
3749 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3750 sed -e "$ac_comsub
3751 s%@configure_input@%$configure_input%g
3752 s%@srcdir@%$srcdir%g
3753 s%@top_srcdir@%$top_srcdir%g
3754 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3755 fi; done
3756 rm -f conftest.s*
3758 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3759 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3761 # ac_d sets the value in "#define NAME VALUE" lines.
3762 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3763 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3764 ac_dC='\3'
3765 ac_dD='%g'
3766 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3767 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3768 ac_uB='\([ ]\)%\1#\2define\3'
3769 ac_uC=' '
3770 ac_uD='\4%g'
3771 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3772 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3773 ac_eB='$%\1#\2define\3'
3774 ac_eC=' '
3775 ac_eD='%g'
3777 if test "${CONFIG_HEADERS+set}" != set; then
3779 cat >> $CONFIG_STATUS <<EOF
3780 CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3782 cat >> $CONFIG_STATUS <<\EOF
3784 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3786 case "$ac_file" in
3787 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3788 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3789 *) ac_file_in="${ac_file}.in" ;;
3790 esac
3792 echo creating $ac_file
3794 rm -f conftest.frag conftest.in conftest.out
3795 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3796 cat $ac_file_inputs > conftest.in
3800 # Transform confdefs.h into a sed script conftest.vals that substitutes
3801 # the proper values into config.h.in to produce config.h. And first:
3802 # Protect against being on the right side of a sed subst in config.status.
3803 # Protect against being in an unquoted here document in config.status.
3804 rm -f conftest.vals
3805 cat > conftest.hdr <<\EOF
3806 s/[\\&%]/\\&/g
3807 s%[\\$`]%\\&%g
3808 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3809 s%ac_d%ac_u%gp
3810 s%ac_u%ac_e%gp
3812 sed -n -f conftest.hdr confdefs.h > conftest.vals
3813 rm -f conftest.hdr
3815 # This sed command replaces #undef with comments. This is necessary, for
3816 # example, in the case of _POSIX_SOURCE, which is predefined and required
3817 # on some systems where configure will not decide to define it.
3818 cat >> conftest.vals <<\EOF
3819 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3822 # Break up conftest.vals because some shells have a limit on
3823 # the size of here documents, and old seds have small limits too.
3825 rm -f conftest.tail
3826 while :
3828 ac_lines=`grep -c . conftest.vals`
3829 # grep -c gives empty output for an empty file on some AIX systems.
3830 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3831 # Write a limited-size here document to conftest.frag.
3832 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3833 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3834 echo 'CEOF
3835 sed -f conftest.frag conftest.in > conftest.out
3836 rm -f conftest.in
3837 mv conftest.out conftest.in
3838 ' >> $CONFIG_STATUS
3839 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3840 rm -f conftest.vals
3841 mv conftest.tail conftest.vals
3842 done
3843 rm -f conftest.vals
3845 cat >> $CONFIG_STATUS <<\EOF
3846 rm -f conftest.frag conftest.h
3847 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3848 cat conftest.in >> conftest.h
3849 rm -f conftest.in
3850 if cmp -s $ac_file conftest.h 2>/dev/null; then
3851 echo "$ac_file is unchanged"
3852 rm -f conftest.h
3853 else
3854 # Remove last slash and all that follows it. Not all systems have dirname.
3855 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3856 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3857 # The file is in a subdirectory.
3858 test ! -d "$ac_dir" && mkdir "$ac_dir"
3860 rm -f $ac_file
3861 mv conftest.h $ac_file
3863 fi; done
3866 cat >> $CONFIG_STATUS <<EOF
3869 cat >> $CONFIG_STATUS <<\EOF
3871 exit 0
3873 chmod +x $CONFIG_STATUS
3874 rm -fr confdefs* $ac_clean_files
3875 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3877 if test "$no_recursion" != yes; then
3879 # Remove --cache-file and --srcdir arguments so they do not pile up.
3880 ac_sub_configure_args=
3881 ac_prev=
3882 for ac_arg in $ac_configure_args; do
3883 if test -n "$ac_prev"; then
3884 ac_prev=
3885 continue
3887 case "$ac_arg" in
3888 -cache-file | --cache-file | --cache-fil | --cache-fi \
3889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3890 ac_prev=cache_file ;;
3891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3894 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3895 ac_prev=srcdir ;;
3896 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3898 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3899 esac
3900 done
3902 for ac_config_dir in stepmake; do
3904 # Do not complain, so a configure script can configure whichever
3905 # parts of a large source tree are present.
3906 if test ! -d $srcdir/$ac_config_dir; then
3907 continue
3910 echo configuring in $ac_config_dir
3912 case "$srcdir" in
3913 .) ;;
3915 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3916 else
3917 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3920 esac
3922 ac_popdir=`pwd`
3923 cd $ac_config_dir
3925 # A "../" for each directory in /$ac_config_dir.
3926 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3928 case "$srcdir" in
3929 .) # No --srcdir option. We are building in place.
3930 ac_sub_srcdir=$srcdir ;;
3931 /*) # Absolute path.
3932 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3933 *) # Relative path.
3934 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3935 esac
3937 # Check for guested configure; otherwise get Cygnus style configure.
3938 if test -f $ac_sub_srcdir/configure; then
3939 ac_sub_configure=$ac_sub_srcdir/configure
3940 elif test -f $ac_sub_srcdir/configure.in; then
3941 ac_sub_configure=$ac_configure
3942 else
3943 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3944 ac_sub_configure=
3947 # The recursion is here.
3948 if test -n "$ac_sub_configure"; then
3950 # Make the cache file name correct relative to the subdirectory.
3951 case "$cache_file" in
3952 /*) ac_sub_cache_file=$cache_file ;;
3953 *) # Relative path.
3954 ac_sub_cache_file="$ac_dots$cache_file" ;;
3955 esac
3957 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3958 # The eval makes quoting arguments work.
3959 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3960 then :
3961 else
3962 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3966 cd $ac_popdir
3967 done
3971 # regular in-place build
3972 # test for srcdir_build = yes ?
3973 if test "$builddir" = "."; then
3974 rm -f $srcdir/GNUmakefile
3975 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
3976 chmod 444 $srcdir/GNUmakefile
3977 else # --srcdir build
3978 rm -f GNUmakefile
3979 cp $srcdir/make/srcdir.make.in GNUmakefile
3980 chmod 444 GNUmakefile