lilypond-0.1.16
[lilypond.git] / configure
blobf9b425a4f9cb9e003b9d3296b6898a9fb29bcd03
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 enable-printing turn on debug printing"
16 ac_help="$ac_help
17 enable-checking set runtime checks (assert calls). Default: on"
18 ac_help="$ac_help
19 enable-debugging set debug info. Default: on"
20 ac_help="$ac_help
21 enable-optimise use maximal speed optimisations. Default: off"
22 ac_help="$ac_help
23 enable-profiling compile with gprof support. Default: off"
24 ac_help="$ac_help
25 mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
26 ac_help="$ac_help
27 tex-prefix=DIR set the tex-directory to find TeX subdirectories. (default: PREFIX)"
28 ac_help="$ac_help
29 tex-dir=DIR set the directory to put LilyPond TeX files in. "
30 ac_help="$ac_help
31 mf-dir=DIR set the directory to put LilyPond MetaFont files in. (obsolete)"
32 ac_help="$ac_help
33 out-dir set the directory for machine generated files. Default out or out-HOST"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
38 build=NONE
39 cache_file=./config.cache
40 exec_prefix=NONE
41 host=NONE
42 no_create=
43 nonopt=NONE
44 no_recursion=
45 prefix=NONE
46 program_prefix=NONE
47 program_suffix=NONE
48 program_transform_name=s,x,x,
49 silent=
50 site=
51 srcdir=
52 target=NONE
53 verbose=
54 x_includes=NONE
55 x_libraries=NONE
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
70 subdirs=
71 MFLAGS= MAKEFLAGS=
72 # Maximum number of lines to put in a shell here document.
73 ac_max_here_lines=12
75 ac_prev=
76 for ac_option
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
82 ac_prev=
83 continue
86 case "$ac_option" in
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 *) ac_optarg= ;;
89 esac
91 # Accept the important Cygnus configure options, so we can diagnose typos.
93 case "$ac_option" in
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 ac_prev=bindir ;;
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
101 ac_prev=build ;;
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 ac_prev=datadir ;;
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 | --da=*)
116 datadir="$ac_optarg" ;;
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 case "$ac_option" in
135 *=*) ;;
136 *) ac_optarg=yes ;;
137 esac
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
151 with_gas=yes ;;
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
156 cat << EOF
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
159 Configuration:
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
167 [$ac_default_prefix]
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 [same as prefix]
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
174 [PREFIX/share]
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 [PREFIX/com]
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
190 cat << EOF
191 Host type:
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
206 exit 0 ;;
208 -host | --host | --hos | --ho)
209 ac_prev=host ;;
210 -host=* | --host=* | --hos=* | --ho=*)
211 host="$ac_optarg" ;;
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 ac_prev=infodir ;;
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
226 ac_prev=libdir ;;
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 ac_prev=mandir ;;
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
251 -nfp | --nfp | --nf)
252 # Obsolete; use --without-fp.
253 with_fp=no ;;
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 | --no-cr | --no-c)
257 no_create=yes ;;
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 no_recursion=yes ;;
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 ac_prev=prefix ;;
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
310 silent=yes ;;
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 ac_prev=sbindir ;;
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 | --sbi=* | --sb=*)
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
321 | --sha | --sh)
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 | --sha=* | --sh=*)
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
330 ac_prev=site ;;
331 -site=* | --site=* | --sit=*)
332 site="$ac_optarg" ;;
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 ac_prev=srcdir ;;
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
347 ac_prev=target ;;
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 verbose=yes ;;
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.12"
356 exit 0 ;;
358 -with-* | --with-*)
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 case "$ac_option" in
366 *=*) ;;
367 *) ac_optarg=yes ;;
368 esac
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
380 --x)
381 # Obsolete; use --with-x.
382 with_x=yes ;;
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 nonopt="$ac_option"
411 esac
412 done
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
421 # 0 standard input
422 # 1 file creation
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
429 exec 6>/dev/null
430 else
431 exec 6>&1
433 exec 5>./config.log
435 echo "\
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
438 " 1>&5
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
442 ac_configure_args=
443 for ac_arg
445 case "$ac_arg" in
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 esac
454 done
456 # NLS nuisances.
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=flower/choleski.cc
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
479 ac_prog=$0
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 srcdir=$ac_confdir
483 if test ! -r $srcdir/$ac_unique_file; then
484 srcdir=..
486 else
487 ac_srcdir_defaulted=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 else
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 else
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
509 . "$ac_site_file"
511 done
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
515 . $cache_file
516 else
517 echo "creating cache $cache_file"
518 > $cache_file
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532 ' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
536 else
537 ac_n= ac_c='\c' ac_t=
543 if test x$srcdir != x.; then
544 echo Please look in the INSTALL instructions for
545 echo directions for multi-architecture building
548 echo "configure: warning: This package does not support --srcdir!" 1>&2
549 warn_b=yes
553 # if given here, these vars are initted at the checking point.
554 if test x$host = xNONE; then
555 OUTDIR_NAME=${OUTDIR_NAME-"out"}
556 else
557 OUTDIR_NAME=${OUTDIR_NAME-"out-$host"}
560 printing_b=no
561 checking_b=yes
562 debug_b=yes
563 optimise_b=no
564 profile_b=no
566 ac_ext=C
567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CXXCPP $CPPFLAGS'
569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cxx_cross
574 # Check whether --enable-printing or --disable-printing was given.
575 if test "${enable_printing+set}" = set; then
576 enableval="$enable_printing"
577 printing_b=$enableval
582 # Check whether --enable-checking or --disable-checking was given.
583 if test "${enable_checking+set}" = set; then
584 enableval="$enable_checking"
585 checking_b=$enableval
589 # Check whether --enable-debugging or --disable-debugging was given.
590 if test "${enable_debugging+set}" = set; then
591 enableval="$enable_debugging"
592 debug_b=$enableval
596 # Check whether --enable-optimise or --disable-optimise was given.
597 if test "${enable_optimise+set}" = set; then
598 enableval="$enable_optimise"
599 optimise_b=$enableval
603 # Check whether --enable-profiling or --disable-profiling was given.
604 if test "${enable_profiling+set}" = set; then
605 enableval="$enable_profiling"
606 profile_b=$enableval
610 # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
611 if test "${enable_mingw_prefix+set}" = set; then
612 enableval="$enable_mingw_prefix"
613 MINGWPREFIX=$enableval
614 else
615 MINGWPREFIX=no
619 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
620 if test "${enable_tex_prefix+set}" = set; then
621 enableval="$enable_tex_prefix"
622 TEXPREFIX=$enableval
623 else
624 TEXPREFIX=auto
628 # Check whether --enable-tex-dir or --disable-tex-dir was given.
629 if test "${enable_tex_dir+set}" = set; then
630 enableval="$enable_tex_dir"
631 TEXDIR=$enableval
632 else
633 TEXDIR=auto
637 # Check whether --enable-mf-dir or --disable-mf-dir was given.
638 if test "${enable_mf_dir+set}" = set; then
639 enableval="$enable_mf_dir"
640 MFDIR=$enableval
641 else
642 MFDIR=auto
646 # Check whether --enable-out-dir or --disable-out-dir was given.
647 if test "${enable_out_dir+set}" = set; then
648 enableval="$enable_out_dir"
649 OUTDIR_NAME=$enableval
654 if test $profile_b = yes; then
655 EXTRA_LIBES="-pg"
656 DEFINES="$DEFINES -pg"
659 if test $printing_b = no; then
660 DEFINES="$DEFINES -DNPRINT=1"
663 if test $debug_b = yes; then
664 DEFINES="$DEFINES -g"
666 if test $checking_b = no; then
667 DEFINES="$DEFINES -DNDEBUG=1"
670 # however, C++ support in mingw32 v 0.1.4 is still flaky
671 if test x$MINGWPREFIX != xno; then
672 ICFLAGS="-I$MINGWPREFIX/include"
673 ILDFLAGS="-$MINGWPREFIX/lib"
676 if test $optimise_b = yes; then
677 DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
680 if test "x$OSTYPE" = "xWindows_NT"; then
681 LN=cp # hard link does not work under cygnus-nt (yet?)
682 ZIP="zip -r -9" #
683 else
684 LN=ln
685 ZIP="zip -r -9"
688 AUTOHEADER="This file was automatically generated by configure"
689 CPPFLAGS=${CPPFLAGS:-""} # we don't want -g -O junk
690 CXXFLAGS=${CXXFLAGS:-""} # we don't want -g -O junk
692 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
694 # Extract the first word of "$ac_prog", so it can be a program name with args.
695 set dummy $ac_prog; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700 else
701 if test -n "$CXX"; then
702 ac_cv_prog_CXX="$CXX" # Let the user override the test.
703 else
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
705 for ac_dir in $PATH; do
706 test -z "$ac_dir" && ac_dir=.
707 if test -f $ac_dir/$ac_word; then
708 ac_cv_prog_CXX="$ac_prog"
709 break
711 done
712 IFS="$ac_save_ifs"
715 CXX="$ac_cv_prog_CXX"
716 if test -n "$CXX"; then
717 echo "$ac_t""$CXX" 1>&6
718 else
719 echo "$ac_t""no" 1>&6
722 test -n "$CXX" && break
723 done
724 test -n "$CXX" || CXX="gcc"
727 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
728 echo "configure:729: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
730 ac_ext=C
731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
732 ac_cpp='$CXXCPP $CPPFLAGS'
733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
734 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
735 cross_compiling=$ac_cv_prog_cxx_cross
737 cat > conftest.$ac_ext <<EOF
738 #line 739 "configure"
739 #include "confdefs.h"
740 main(){return(0);}
742 if { (eval echo configure:743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
743 ac_cv_prog_cxx_works=yes
744 # If we can't run a trivial program, we are probably using a cross compiler.
745 if (./conftest; exit) 2>/dev/null; then
746 ac_cv_prog_cxx_cross=no
747 else
748 ac_cv_prog_cxx_cross=yes
750 else
751 echo "configure: failed program was:" >&5
752 cat conftest.$ac_ext >&5
753 ac_cv_prog_cxx_works=no
755 rm -fr conftest*
757 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
758 if test $ac_cv_prog_cxx_works = no; then
759 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
761 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
763 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
764 cross_compiling=$ac_cv_prog_cxx_cross
766 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
767 echo "configure:768: checking whether we are using GNU C++" >&5
768 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770 else
771 cat > conftest.C <<EOF
772 #ifdef __GNUC__
773 yes;
774 #endif
776 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
777 ac_cv_prog_gxx=yes
778 else
779 ac_cv_prog_gxx=no
783 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
785 if test $ac_cv_prog_gxx = yes; then
786 GXX=yes
787 ac_test_CXXFLAGS="${CXXFLAGS+set}"
788 ac_save_CXXFLAGS="$CXXFLAGS"
789 CXXFLAGS=
790 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
791 echo "configure:792: checking whether ${CXX-g++} accepts -g" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
794 else
795 echo 'void f(){}' > conftest.cc
796 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
797 ac_cv_prog_cxx_g=yes
798 else
799 ac_cv_prog_cxx_g=no
801 rm -f conftest*
805 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
806 if test "$ac_test_CXXFLAGS" = set; then
807 CXXFLAGS="$ac_save_CXXFLAGS"
808 elif test $ac_cv_prog_cxx_g = yes; then
809 CXXFLAGS="-g -O2"
810 else
811 CXXFLAGS="-O2"
813 else
814 GXX=
815 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
818 # Extract the first word of "ranlib", so it can be a program name with args.
819 set dummy ranlib; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
824 else
825 if test -n "$RANLIB"; then
826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
827 else
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
829 for ac_dir in $PATH; do
830 test -z "$ac_dir" && ac_dir=.
831 if test -f $ac_dir/$ac_word; then
832 ac_cv_prog_RANLIB="ranlib"
833 break
835 done
836 IFS="$ac_save_ifs"
837 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
840 RANLIB="$ac_cv_prog_RANLIB"
841 if test -n "$RANLIB"; then
842 echo "$ac_t""$RANLIB" 1>&6
843 else
844 echo "$ac_t""no" 1>&6
847 ac_aux_dir=
848 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
849 if test -f $ac_dir/install-sh; then
850 ac_aux_dir=$ac_dir
851 ac_install_sh="$ac_aux_dir/install-sh -c"
852 break
853 elif test -f $ac_dir/install.sh; then
854 ac_aux_dir=$ac_dir
855 ac_install_sh="$ac_aux_dir/install.sh -c"
856 break
858 done
859 if test -z "$ac_aux_dir"; then
860 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
862 ac_config_guess=$ac_aux_dir/config.guess
863 ac_config_sub=$ac_aux_dir/config.sub
864 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
866 # Find a good install program. We prefer a C program (faster),
867 # so one script is as good as another. But avoid the broken or
868 # incompatible versions:
869 # SysV /etc/install, /usr/sbin/install
870 # SunOS /usr/etc/install
871 # IRIX /sbin/install
872 # AIX /bin/install
873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
875 # ./install, which can be erroneously created by make from ./install.sh.
876 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
877 echo "configure:878: checking for a BSD compatible install" >&5
878 if test -z "$INSTALL"; then
879 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
883 for ac_dir in $PATH; do
884 # Account for people who put trailing slashes in PATH elements.
885 case "$ac_dir/" in
886 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
888 # OSF1 and SCO ODT 3.0 have their own names for install.
889 for ac_prog in ginstall installbsd scoinst install; do
890 if test -f $ac_dir/$ac_prog; then
891 if test $ac_prog = install &&
892 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
893 # AIX install. It has an incompatible calling convention.
894 # OSF/1 installbsd also uses dspmsg, but is usable.
896 else
897 ac_cv_path_install="$ac_dir/$ac_prog -c"
898 break 2
901 done
903 esac
904 done
905 IFS="$ac_save_IFS"
908 if test "${ac_cv_path_install+set}" = set; then
909 INSTALL="$ac_cv_path_install"
910 else
911 # As a last resort, use the slow shell script. We don't cache a
912 # path for INSTALL within a source directory, because that will
913 # break other packages using the cache if that directory is
914 # removed, or if the path is relative.
915 INSTALL="$ac_install_sh"
918 echo "$ac_t""$INSTALL" 1>&6
920 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
921 # It thinks the first close brace ends the variable substitution.
922 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
926 for ac_prog in tar
928 # Extract the first word of "$ac_prog", so it can be a program name with args.
929 set dummy $ac_prog; ac_word=$2
930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931 echo "configure:932: checking for $ac_word" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
934 else
935 if test -n "$TAR"; then
936 ac_cv_prog_TAR="$TAR" # Let the user override the test.
937 else
938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
939 for ac_dir in $PATH; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
942 ac_cv_prog_TAR="$ac_prog"
943 break
945 done
946 IFS="$ac_save_ifs"
949 TAR="$ac_cv_prog_TAR"
950 if test -n "$TAR"; then
951 echo "$ac_t""$TAR" 1>&6
952 else
953 echo "$ac_t""no" 1>&6
956 test -n "$TAR" && break
957 done
958 test -n "$TAR" || TAR="error"
960 for ac_prog in find
962 # Extract the first word of "$ac_prog", so it can be a program name with args.
963 set dummy $ac_prog; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
968 else
969 if test -n "$FIND"; then
970 ac_cv_prog_FIND="$FIND" # Let the user override the test.
971 else
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
973 for ac_dir in $PATH; do
974 test -z "$ac_dir" && ac_dir=.
975 if test -f $ac_dir/$ac_word; then
976 ac_cv_prog_FIND="$ac_prog"
977 break
979 done
980 IFS="$ac_save_ifs"
983 FIND="$ac_cv_prog_FIND"
984 if test -n "$FIND"; then
985 echo "$ac_t""$FIND" 1>&6
986 else
987 echo "$ac_t""no" 1>&6
990 test -n "$FIND" && break
991 done
992 test -n "$FIND" || FIND="error"
996 if test $FIND = "error"
997 then
999 echo "configure: warning: can't find \`find\'. Please use --enable-tex-dir. " 1>&2
1000 warn_b=yes
1026 for ac_prog in bison
1028 # Extract the first word of "$ac_prog", so it can be a program name with args.
1029 set dummy $ac_prog; ac_word=$2
1030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1031 echo "configure:1032: checking for $ac_word" >&5
1032 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1034 else
1035 if test -n "$BISON"; then
1036 ac_cv_prog_BISON="$BISON" # Let the user override the test.
1037 else
1038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1039 for ac_dir in $PATH; do
1040 test -z "$ac_dir" && ac_dir=.
1041 if test -f $ac_dir/$ac_word; then
1042 ac_cv_prog_BISON="$ac_prog"
1043 break
1045 done
1046 IFS="$ac_save_ifs"
1049 BISON="$ac_cv_prog_BISON"
1050 if test -n "$BISON"; then
1051 echo "$ac_t""$BISON" 1>&6
1052 else
1053 echo "$ac_t""no" 1>&6
1056 test -n "$BISON" && break
1057 done
1058 test -n "$BISON" || BISON="error"
1060 for ac_prog in flex
1062 # Extract the first word of "$ac_prog", so it can be a program name with args.
1063 set dummy $ac_prog; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1068 else
1069 if test -n "$FLEX"; then
1070 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1071 else
1072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1073 for ac_dir in $PATH; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_FLEX="$ac_prog"
1077 break
1079 done
1080 IFS="$ac_save_ifs"
1083 FLEX="$ac_cv_prog_FLEX"
1084 if test -n "$FLEX"; then
1085 echo "$ac_t""$FLEX" 1>&6
1086 else
1087 echo "$ac_t""no" 1>&6
1090 test -n "$FLEX" && break
1091 done
1092 test -n "$FLEX" || FLEX="error"
1094 for ac_prog in make
1096 # Extract the first word of "$ac_prog", so it can be a program name with args.
1097 set dummy $ac_prog; ac_word=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103 if test -n "$MAKE"; then
1104 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1105 else
1106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1107 for ac_dir in $PATH; do
1108 test -z "$ac_dir" && ac_dir=.
1109 if test -f $ac_dir/$ac_word; then
1110 ac_cv_prog_MAKE="$ac_prog"
1111 break
1113 done
1114 IFS="$ac_save_ifs"
1117 MAKE="$ac_cv_prog_MAKE"
1118 if test -n "$MAKE"; then
1119 echo "$ac_t""$MAKE" 1>&6
1120 else
1121 echo "$ac_t""no" 1>&6
1124 test -n "$MAKE" && break
1125 done
1126 test -n "$MAKE" || MAKE="error"
1128 # Extract the first word of "perl", so it can be a program name with args.
1129 set dummy perl; ac_word=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135 case "$PERL" in
1137 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1141 for ac_dir in $PATH; do
1142 test -z "$ac_dir" && ac_dir=.
1143 if test -f $ac_dir/$ac_word; then
1144 ac_cv_path_PERL="$ac_dir/$ac_word"
1145 break
1147 done
1148 IFS="$ac_save_ifs"
1149 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
1151 esac
1153 PERL="$ac_cv_path_PERL"
1154 if test -n "$PERL"; then
1155 echo "$ac_t""$PERL" 1>&6
1156 else
1157 echo "$ac_t""no" 1>&6
1160 for ac_prog in pod2man
1162 # Extract the first word of "$ac_prog", so it can be a program name with args.
1163 set dummy $ac_prog; ac_word=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169 if test -n "$PODMAN"; then
1170 ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
1171 else
1172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1173 for ac_dir in $PATH; do
1174 test -z "$ac_dir" && ac_dir=.
1175 if test -f $ac_dir/$ac_word; then
1176 ac_cv_prog_PODMAN="$ac_prog"
1177 break
1179 done
1180 IFS="$ac_save_ifs"
1183 PODMAN="$ac_cv_prog_PODMAN"
1184 if test -n "$PODMAN"; then
1185 echo "$ac_t""$PODMAN" 1>&6
1186 else
1187 echo "$ac_t""no" 1>&6
1190 test -n "$PODMAN" && break
1191 done
1192 test -n "$PODMAN" || PODMAN="error"
1196 if test "x$TEXPREFIX" = xauto ; then
1200 echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1201 echo "configure:1202: checking TeX/MF root dir directory" >&5
1203 find_root_prefix="$prefix"
1206 test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1207 find_texpostfix="";
1208 for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1209 find_texprefix="$find_root_prefix$postfix"
1210 if test -d $find_texprefix; then
1211 find_texpostfix=$postfix
1212 break;
1214 done
1216 if test "x$find_texpostfix" = x; then
1217 find_texpostfix='/lib/texmf/tex'
1219 echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1220 warn_b=yes
1224 find_texprefix="$find_root_prefix/$find_texpostfix"
1226 # only assign if variablename not empty
1227 if test x != "xTEXPREFIX"; then
1228 TEXPREFIX='${prefix}'/"$find_texpostfix"
1230 echo "$ac_t""$find_texprefix" 1>&6
1233 else
1234 find_texprefix=$TEXPREFIX
1237 if test "x$MFDIR" = xauto; then
1241 echo $ac_n "checking MF input directory""... $ac_c" 1>&6
1242 echo "configure:1243: checking MF input directory" >&5
1243 find_dirdir=`(cd $find_texprefix;
1244 $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
1247 if test "x$find_dirdir" = x; then
1248 find_dirdir="/source";
1250 echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
1251 warn_b=yes
1253 true
1255 MFDIR=$find_dirdir
1256 echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1258 MFDIR="$TEXPREFIX/$MFDIR"
1262 if test "x$TEXDIR" = xauto ; then
1266 echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
1267 echo "configure:1268: checking TeX input directory" >&5
1268 find_dirdir=`(cd $find_texprefix;
1269 $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
1272 if test "x$find_dirdir" = x; then
1273 find_dirdir="/tex";
1275 echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
1276 warn_b=yes
1278 true
1280 TEXDIR=$find_dirdir
1281 echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1283 TEXDIR="$TEXPREFIX/$TEXDIR"
1292 if test $MAKE = "error"
1293 then
1295 echo "configure: warning: can't find GNU make. You should install GNU make" 1>&2
1296 warn_b=yes
1301 if test $BISON = "error"
1302 then
1304 echo "configure: warning: can't find bison. Please install Bison" 1>&2
1305 warn_b=yes
1310 if test $PERL = "error"
1311 then
1313 echo "configure: warning: can't find perl. You should install Perl" 1>&2
1314 warn_b=yes
1319 if test $PODMAN = "error"
1320 then
1322 echo "configure: warning: can't find pod. You should install Perl" 1>&2
1323 warn_b=yes
1328 if test $FLEX = "error"
1329 then
1331 echo "configure: warning: can't find flex. Please install Flex" 1>&2
1332 warn_b=yes
1338 if test $MAKE != "error" ; then
1339 $MAKE -v| grep GNU > /dev/null
1340 if test "$?" = 1
1341 then
1343 echo "configure: warning: Please install *GNU* make" 1>&2
1344 warn_b=yes
1349 if test $BISON != "error"; then
1350 bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1351 if test $bison_version -lt 25; then
1353 echo "configure: warning: Your bison is too old (1.$bison_version). Please install 1.25" 1>&2
1354 warn_b=yes
1359 if $CXX --version | grep '2\.7' > /dev/null
1360 then
1361 true
1362 else
1364 echo "configure: warning: can't find g++ 2.7" 1>&2
1365 warn_b=yes
1369 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1370 echo "configure:1371: checking how to run the C++ preprocessor" >&5
1371 if test -z "$CXXCPP"; then
1372 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375 ac_ext=C
1376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1377 ac_cpp='$CXXCPP $CPPFLAGS'
1378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1379 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1380 cross_compiling=$ac_cv_prog_cxx_cross
1381 CXXCPP="${CXX-g++} -E"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 #include <stdlib.h>
1387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err=`grep -v '^ *+' conftest.out`
1390 if test -z "$ac_err"; then
1392 else
1393 echo "$ac_err" >&5
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1396 rm -rf conftest*
1397 CXXCPP=/lib/cpp
1399 rm -f conftest*
1400 ac_cv_prog_CXXCPP="$CXXCPP"
1403 CXXCPP="$ac_cv_prog_CXXCPP"
1404 echo "$ac_t""$CXXCPP" 1>&6
1406 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1407 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1408 echo "configure:1409: checking for FlexLexer.h" >&5
1409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1411 else
1412 cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 #include <FlexLexer.h>
1417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1418 { (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1419 ac_err=`grep -v '^ *+' conftest.out`
1420 if test -z "$ac_err"; then
1421 rm -rf conftest*
1422 eval "ac_cv_header_$ac_safe=yes"
1423 else
1424 echo "$ac_err" >&5
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1427 rm -rf conftest*
1428 eval "ac_cv_header_$ac_safe=no"
1430 rm -f conftest*
1432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1433 echo "$ac_t""yes" 1>&6
1434 true
1435 else
1436 echo "$ac_t""no" 1>&6
1438 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1439 warn_b=yes
1444 for a in `find . -type d -and -not -name 'out*' -print`; do
1445 if test ! -d $a/$OUTDIR_NAME; then
1446 mkdir $a/$OUTDIR_NAME
1448 done
1450 subdirs="flower"
1454 trap '' 1 2 15
1455 cat > confcache <<\EOF
1456 # This file is a shell script that caches the results of configure
1457 # tests run on this system so they can be shared between configure
1458 # scripts and configure runs. It is not useful on other systems.
1459 # If it contains results you don't want to keep, you may remove or edit it.
1461 # By default, configure uses ./config.cache as the cache file,
1462 # creating it if it does not exist already. You can give configure
1463 # the --cache-file=FILE option to use a different cache file; that is
1464 # what configure does when it calls configure scripts in
1465 # subdirectories, so they share the cache.
1466 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1467 # config.status only pays attention to the cache file if you give it the
1468 # --recheck option to rerun configure.
1471 # The following way of writing the cache mishandles newlines in values,
1472 # but we know of no workaround that is simple, portable, and efficient.
1473 # So, don't put newlines in cache variables' values.
1474 # Ultrix sh set writes to stderr and can't be redirected directly,
1475 # and sets the high bit in the cache file unless we assign to the vars.
1476 (set) 2>&1 |
1477 case `(ac_space=' '; set) 2>&1` in
1478 *ac_space=\ *)
1479 # `set' does not quote correctly, so add quotes (double-quote substitution
1480 # turns \\\\ into \\, and sed turns \\ into \).
1481 sed -n \
1482 -e "s/'/'\\\\''/g" \
1483 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1486 # `set' quotes correctly as required by POSIX, so do not add quotes.
1487 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1489 esac >> confcache
1490 if cmp -s $cache_file confcache; then
1492 else
1493 if test -w $cache_file; then
1494 echo "updating cache $cache_file"
1495 cat confcache > $cache_file
1496 else
1497 echo "not updating unwritable cache $cache_file"
1500 rm -f confcache
1502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1505 # Let make expand exec_prefix.
1506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1508 # Any assignment to VPATH causes Sun make to only execute
1509 # the first set of double-colon rules, so remove it if not needed.
1510 # If there is a colon in the path, we need to keep it.
1511 if test "x$srcdir" = x.; then
1512 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1515 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1517 # Transform confdefs.h into DEFS.
1518 # Protect against shell expansion while executing Makefile rules.
1519 # Protect against Makefile macro expansion.
1520 cat > conftest.defs <<\EOF
1521 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1522 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1523 s%\[%\\&%g
1524 s%\]%\\&%g
1525 s%\$%$$%g
1527 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1528 rm -f conftest.defs
1531 # Without the "./", some shells look in PATH for config.status.
1532 : ${CONFIG_STATUS=./config.status}
1534 echo creating $CONFIG_STATUS
1535 rm -f $CONFIG_STATUS
1536 cat > $CONFIG_STATUS <<EOF
1537 #! /bin/sh
1538 # Generated automatically by configure.
1539 # Run this file to recreate the current configuration.
1540 # This directory was configured as follows,
1541 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1543 # $0 $ac_configure_args
1545 # Compiler output produced by configure, useful for debugging
1546 # configure, is in ./config.log if it exists.
1548 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1549 for ac_option
1551 case "\$ac_option" in
1552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1553 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1554 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1555 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1556 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1557 exit 0 ;;
1558 -help | --help | --hel | --he | --h)
1559 echo "\$ac_cs_usage"; exit 0 ;;
1560 *) echo "\$ac_cs_usage"; exit 1 ;;
1561 esac
1562 done
1564 ac_given_srcdir=$srcdir
1565 ac_given_INSTALL="$INSTALL"
1567 trap 'rm -fr `echo "make/$OUTDIR_NAME/Configure_variables.make:make/Configure_variables.make.in
1568 Makefile:make/Toplevel.make.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1570 cat >> $CONFIG_STATUS <<EOF
1572 # Protect against being on the right side of a sed subst in config.status.
1573 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1574 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1575 $ac_vpsub
1576 $extrasub
1577 s%@CFLAGS@%$CFLAGS%g
1578 s%@CPPFLAGS@%$CPPFLAGS%g
1579 s%@CXXFLAGS@%$CXXFLAGS%g
1580 s%@DEFS@%$DEFS%g
1581 s%@LDFLAGS@%$LDFLAGS%g
1582 s%@LIBS@%$LIBS%g
1583 s%@exec_prefix@%$exec_prefix%g
1584 s%@prefix@%$prefix%g
1585 s%@program_transform_name@%$program_transform_name%g
1586 s%@bindir@%$bindir%g
1587 s%@sbindir@%$sbindir%g
1588 s%@libexecdir@%$libexecdir%g
1589 s%@datadir@%$datadir%g
1590 s%@sysconfdir@%$sysconfdir%g
1591 s%@sharedstatedir@%$sharedstatedir%g
1592 s%@localstatedir@%$localstatedir%g
1593 s%@libdir@%$libdir%g
1594 s%@includedir@%$includedir%g
1595 s%@oldincludedir@%$oldincludedir%g
1596 s%@infodir@%$infodir%g
1597 s%@mandir@%$mandir%g
1598 s%@CXX@%$CXX%g
1599 s%@RANLIB@%$RANLIB%g
1600 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1601 s%@INSTALL_DATA@%$INSTALL_DATA%g
1602 s%@TAR@%$TAR%g
1603 s%@FIND@%$FIND%g
1604 s%@OUTDIR_NAME@%$OUTDIR_NAME%g
1605 s%@ICFLAGS@%$ICFLAGS%g
1606 s%@ILDFLAGS@%$ILDFLAGS%g
1607 s%@DEFINES@%$DEFINES%g
1608 s%@COMPILEINFO@%$COMPILEINFO%g
1609 s%@AUTOHEADER@%$AUTOHEADER%g
1610 s%@BISON@%$BISON%g
1611 s%@FLEX@%$FLEX%g
1612 s%@LN@%$LN%g
1613 s%@PERL@%$PERL%g
1614 s%@ZIP@%$ZIP%g
1615 s%@TEXPREFIX@%$TEXPREFIX%g
1616 s%@TEXDIR@%$TEXDIR%g
1617 s%@MFDIR@%$MFDIR%g
1618 s%@DIR_DATADIR@%$DIR_DATADIR%g
1619 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
1620 s%@MAKE@%$MAKE%g
1621 s%@PODMAN@%$PODMAN%g
1622 s%@CXXCPP@%$CXXCPP%g
1623 s%@subdirs@%$subdirs%g
1625 CEOF
1628 cat >> $CONFIG_STATUS <<\EOF
1630 # Split the substitutions into bite-sized pieces for seds with
1631 # small command number limits, like on Digital OSF/1 and HP-UX.
1632 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1633 ac_file=1 # Number of current file.
1634 ac_beg=1 # First line for current file.
1635 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1636 ac_more_lines=:
1637 ac_sed_cmds=""
1638 while $ac_more_lines; do
1639 if test $ac_beg -gt 1; then
1640 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1641 else
1642 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1644 if test ! -s conftest.s$ac_file; then
1645 ac_more_lines=false
1646 rm -f conftest.s$ac_file
1647 else
1648 if test -z "$ac_sed_cmds"; then
1649 ac_sed_cmds="sed -f conftest.s$ac_file"
1650 else
1651 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1653 ac_file=`expr $ac_file + 1`
1654 ac_beg=$ac_end
1655 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1657 done
1658 if test -z "$ac_sed_cmds"; then
1659 ac_sed_cmds=cat
1663 cat >> $CONFIG_STATUS <<EOF
1665 CONFIG_FILES=\${CONFIG_FILES-"make/$OUTDIR_NAME/Configure_variables.make:make/Configure_variables.make.in
1666 Makefile:make/Toplevel.make.in"}
1668 cat >> $CONFIG_STATUS <<\EOF
1669 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1670 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1671 case "$ac_file" in
1672 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1673 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1674 *) ac_file_in="${ac_file}.in" ;;
1675 esac
1677 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1679 # Remove last slash and all that follows it. Not all systems have dirname.
1680 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1681 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1682 # The file is in a subdirectory.
1683 test ! -d "$ac_dir" && mkdir "$ac_dir"
1684 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1685 # A "../" for each directory in $ac_dir_suffix.
1686 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1687 else
1688 ac_dir_suffix= ac_dots=
1691 case "$ac_given_srcdir" in
1692 .) srcdir=.
1693 if test -z "$ac_dots"; then top_srcdir=.
1694 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1695 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1696 *) # Relative path.
1697 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1698 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1699 esac
1701 case "$ac_given_INSTALL" in
1702 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1703 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1704 esac
1706 echo creating "$ac_file"
1707 rm -f "$ac_file"
1708 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1709 case "$ac_file" in
1710 *Makefile*) ac_comsub="1i\\
1711 # $configure_input" ;;
1712 *) ac_comsub= ;;
1713 esac
1715 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1716 sed -e "$ac_comsub
1717 s%@configure_input@%$configure_input%g
1718 s%@srcdir@%$srcdir%g
1719 s%@top_srcdir@%$top_srcdir%g
1720 s%@INSTALL@%$INSTALL%g
1721 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1722 fi; done
1723 rm -f conftest.s*
1726 cat >> $CONFIG_STATUS <<EOF
1729 cat >> $CONFIG_STATUS <<\EOF
1731 exit 0
1733 chmod +x $CONFIG_STATUS
1734 rm -fr confdefs* $ac_clean_files
1735 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1737 if test "$no_recursion" != yes; then
1739 # Remove --cache-file and --srcdir arguments so they do not pile up.
1740 ac_sub_configure_args=
1741 ac_prev=
1742 for ac_arg in $ac_configure_args; do
1743 if test -n "$ac_prev"; then
1744 ac_prev=
1745 continue
1747 case "$ac_arg" in
1748 -cache-file | --cache-file | --cache-fil | --cache-fi \
1749 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1750 ac_prev=cache_file ;;
1751 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1752 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1754 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1755 ac_prev=srcdir ;;
1756 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1758 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1759 esac
1760 done
1762 for ac_config_dir in flower; do
1764 # Do not complain, so a configure script can configure whichever
1765 # parts of a large source tree are present.
1766 if test ! -d $srcdir/$ac_config_dir; then
1767 continue
1770 echo configuring in $ac_config_dir
1772 case "$srcdir" in
1773 .) ;;
1775 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1776 else
1777 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1780 esac
1782 ac_popdir=`pwd`
1783 cd $ac_config_dir
1785 # A "../" for each directory in /$ac_config_dir.
1786 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1788 case "$srcdir" in
1789 .) # No --srcdir option. We are building in place.
1790 ac_sub_srcdir=$srcdir ;;
1791 /*) # Absolute path.
1792 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1793 *) # Relative path.
1794 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1795 esac
1797 # Check for guested configure; otherwise get Cygnus style configure.
1798 if test -f $ac_sub_srcdir/configure; then
1799 ac_sub_configure=$ac_sub_srcdir/configure
1800 elif test -f $ac_sub_srcdir/configure.in; then
1801 ac_sub_configure=$ac_configure
1802 else
1803 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1804 ac_sub_configure=
1807 # The recursion is here.
1808 if test -n "$ac_sub_configure"; then
1810 # Make the cache file name correct relative to the subdirectory.
1811 case "$cache_file" in
1812 /*) ac_sub_cache_file=$cache_file ;;
1813 *) # Relative path.
1814 ac_sub_cache_file="$ac_dots$cache_file" ;;
1815 esac
1816 case "$ac_given_INSTALL" in
1817 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1818 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1819 esac
1821 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1822 # The eval makes quoting arguments work.
1823 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1824 then :
1825 else
1826 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1830 cd $ac_popdir
1831 done
1835 touch make/$OUTDIR_NAME/Site.make
1837 cat << END
1838 For making everything, do:
1840 make # GNU make
1842 or if you used --outdir=blabla
1844 make OUTDIR_NAME=blabla
1846 If you want to make site-wide extensions to the makefiles, please use
1848 make/$OUTDIR_NAME/Site.make
1852 if test x$warn_b = "xyes" ; then
1853 cat <<EOF
1855 **************************************************
1856 Warning: configure encountered warnings or errors.
1857 Please try to resolve these, and rerun configure
1858 before sending a bugreport.
1859 If you cannot resolve some warnings, the make
1860 process may still be succesful, but be warned.
1861 **************************************************