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.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 enable-printing set debug printing"
17 disable-checking set runtime checks"
19 disable-debug set debug info"
21 enable-optimise use maximal speed optimisations"
23 enable-profiling compile with gprof support"
25 texprefix=DIR set the tex-directory to put the lilypond subdir in."
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file
=.
/config.cache
40 program_transform_name
=s
,x
,x
,
48 bindir
='${exec_prefix}/bin'
49 sbindir
='${exec_prefix}/sbin'
50 libexecdir
='${exec_prefix}/libexec'
51 datadir
='${prefix}/share'
52 sysconfdir
='${prefix}/etc'
53 sharedstatedir
='${prefix}/com'
54 localstatedir
='${prefix}/var'
55 libdir
='${exec_prefix}/lib'
56 includedir
='${prefix}/include'
57 oldincludedir
='/usr/include'
58 infodir
='${prefix}/info'
59 mandir
='${prefix}/man'
61 # Initialize some other variables.
64 # Maximum number of lines to put in a shell here document.
71 # If the previous option needs an argument, assign it.
72 if test -n "$ac_prev"; then
73 eval "$ac_prev=\$ac_option"
79 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 # Accept the important Cygnus configure options, so we can diagnose typos.
87 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
89 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
90 bindir
="$ac_optarg" ;;
92 -build |
--build |
--buil |
--bui |
--bu)
94 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
97 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
98 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
100 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
101 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
102 cache_file
="$ac_optarg" ;;
104 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
106 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
108 datadir
="$ac_optarg" ;;
110 -disable-* |
--disable-*)
111 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
117 eval "enable_${ac_feature}=no" ;;
119 -enable-* |
--enable-*)
120 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}='$ac_optarg'" ;;
132 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
133 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
134 |
--exec |
--exe |
--ex)
135 ac_prev
=exec_prefix
;;
136 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
137 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
138 |
--exec=* |
--exe=* |
--ex=*)
139 exec_prefix
="$ac_optarg" ;;
141 -gas |
--gas |
--ga |
--g)
142 # Obsolete; use --with-gas.
145 -help |
--help |
--hel |
--he)
146 # Omit some internal or obsolete options to make the list less imposing.
147 # This message is too long to be a string in the A/UX 3.1 sh.
149 Usage: configure [options] [host]
150 Options: [defaults in brackets after descriptions]
152 --cache-file=FILE cache test results in FILE
153 --help print this message
154 --no-create do not create output files
155 --quiet, --silent do not print \`checking...' messages
156 --version print the version of autoconf that created configure
157 Directory and file names:
158 --prefix=PREFIX install architecture-independent files in PREFIX
160 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162 --bindir=DIR user executables in DIR [EPREFIX/bin]
163 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
164 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
165 --datadir=DIR read-only architecture-independent data in DIR
167 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
168 --sharedstatedir=DIR modifiable architecture-independent data in DIR
170 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
171 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
172 --includedir=DIR C header files in DIR [PREFIX/include]
173 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
174 --infodir=DIR info documentation in DIR [PREFIX/info]
175 --mandir=DIR man documentation in DIR [PREFIX/man]
176 --srcdir=DIR find the sources in DIR [configure dir or ..]
177 --program-prefix=PREFIX prepend PREFIX to installed program names
178 --program-suffix=SUFFIX append SUFFIX to installed program names
179 --program-transform-name=PROGRAM
180 run sed PROGRAM on installed program names
184 --build=BUILD configure for building on BUILD [BUILD=HOST]
185 --host=HOST configure for HOST [guessed]
186 --target=TARGET configure for TARGET [TARGET=HOST]
187 Features and packages:
188 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
189 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
190 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
191 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
192 --x-includes=DIR X include files are in DIR
193 --x-libraries=DIR X library files are in DIR
195 if test -n "$ac_help"; then
196 echo "--enable and --with options recognized:$ac_help"
200 -host |
--host |
--hos |
--ho)
202 -host=* |
--host=* |
--hos=* |
--ho=*)
205 -includedir |
--includedir |
--includedi |
--included |
--include \
206 |
--includ |
--inclu |
--incl |
--inc)
207 ac_prev
=includedir
;;
208 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
209 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
210 includedir
="$ac_optarg" ;;
212 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
214 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
215 infodir
="$ac_optarg" ;;
217 -libdir |
--libdir |
--libdi |
--libd)
219 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
220 libdir
="$ac_optarg" ;;
222 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
223 |
--libexe |
--libex |
--libe)
224 ac_prev
=libexecdir
;;
225 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
226 |
--libexe=* |
--libex=* |
--libe=*)
227 libexecdir
="$ac_optarg" ;;
229 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
230 |
--localstate |
--localstat |
--localsta |
--localst \
231 |
--locals |
--local |
--loca |
--loc |
--lo)
232 ac_prev
=localstatedir
;;
233 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
234 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
235 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
236 localstatedir
="$ac_optarg" ;;
238 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
240 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
241 mandir
="$ac_optarg" ;;
244 # Obsolete; use --without-fp.
247 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
251 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
252 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
255 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
256 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
257 |
--oldin |
--oldi |
--old |
--ol |
--o)
258 ac_prev
=oldincludedir
;;
259 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
260 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
261 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
262 oldincludedir
="$ac_optarg" ;;
264 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
266 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
267 prefix
="$ac_optarg" ;;
269 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
270 |
--program-pre |
--program-pr |
--program-p)
271 ac_prev
=program_prefix
;;
272 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
273 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
274 program_prefix
="$ac_optarg" ;;
276 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
277 |
--program-suf |
--program-su |
--program-s)
278 ac_prev
=program_suffix
;;
279 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
280 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
281 program_suffix
="$ac_optarg" ;;
283 -program-transform-name |
--program-transform-name \
284 |
--program-transform-nam |
--program-transform-na \
285 |
--program-transform-n |
--program-transform- \
286 |
--program-transform |
--program-transfor \
287 |
--program-transfo |
--program-transf \
288 |
--program-trans |
--program-tran \
289 |
--progr-tra |
--program-tr |
--program-t)
290 ac_prev
=program_transform_name
;;
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 program_transform_name
="$ac_optarg" ;;
300 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
301 |
-silent |
--silent |
--silen |
--sile |
--sil)
304 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
306 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
308 sbindir
="$ac_optarg" ;;
310 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
311 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
312 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
314 ac_prev
=sharedstatedir
;;
315 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
316 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
317 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
319 sharedstatedir
="$ac_optarg" ;;
321 -site |
--site |
--sit)
323 -site=* |
--site=* |
--sit=*)
326 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
328 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
329 srcdir
="$ac_optarg" ;;
331 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
332 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
333 ac_prev
=sysconfdir
;;
334 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
335 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
336 sysconfdir
="$ac_optarg" ;;
338 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
340 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
341 target
="$ac_optarg" ;;
343 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
346 -version |
--version |
--versio |
--versi |
--vers)
347 echo "configure generated by autoconf version 2.12"
351 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
352 # Reject names that are not valid shell variable names.
353 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
354 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 ac_package
=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}='$ac_optarg'" ;;
363 -without-* |
--without-*)
364 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package
=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}=no" ;;
373 # Obsolete; use --with-x.
376 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
377 |
--x-incl |
--x-inc |
--x-in |
--x-i)
378 ac_prev
=x_includes
;;
379 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
380 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
381 x_includes
="$ac_optarg" ;;
383 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
384 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
385 ac_prev
=x_libraries
;;
386 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
387 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
388 x_libraries
="$ac_optarg" ;;
390 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
395 echo "configure: warning: $ac_option: invalid host type" 1>&2
397 if test "x$nonopt" != xNONE
; then
398 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 if test -n "$ac_prev"; then
407 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412 # File descriptor usage:
415 # 2 errors and warnings
416 # 3 some systems may open it to /dev/tty
417 # 4 used on the Kubota Titan
418 # 6 checking for... messages and results
419 # 5 compiler messages saved in config.log
420 if test "$silent" = yes; then
428 This file contains any messages produced by compilers while
429 running configure, to aid debugging if configure makes a mistake.
432 # Strip out --no-create and --no-recursion so they do not pile up.
433 # Also quote any args containing shell metacharacters.
438 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
439 |
--no-cr |
--no-c) ;;
440 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
441 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
442 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
443 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
444 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
449 # Only set these to C if already set. These must not be set unconditionally
450 # because not all systems understand e.g. LANG=C (notably SCO).
451 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
452 # Non-C LC_CTYPE values break the ctype check.
453 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
454 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
455 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
456 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
459 rm -rf conftest
* confdefs.h
460 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 # A filename unique to this package, relative to the directory that
464 # configure is in, which we can look for to find out if srcdir is correct.
465 ac_unique_file
=flower
/choleski.cc
467 # Find the source files, if location was not specified.
468 if test -z "$srcdir"; then
469 ac_srcdir_defaulted
=yes
470 # Try the directory containing this script, then its parent.
472 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
475 if test ! -r $srcdir/$ac_unique_file; then
479 ac_srcdir_defaulted
=no
481 if test ! -r $srcdir/$ac_unique_file; then
482 if test "$ac_srcdir_defaulted" = yes; then
483 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490 # Prefer explicitly selected file to automatically selected ones.
491 if test -z "$CONFIG_SITE"; then
492 if test "x$prefix" != xNONE
; then
493 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
495 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 for ac_site_file
in $CONFIG_SITE; do
499 if test -r "$ac_site_file"; then
500 echo "loading site script $ac_site_file"
505 if test -r "$cache_file"; then
506 echo "loading cache $cache_file"
509 echo "creating cache $cache_file"
514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515 ac_cpp
='$CPP $CPPFLAGS'
516 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518 cross_compiling
=$ac_cv_prog_cc_cross
520 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
529 ac_n
= ac_c
='\c' ac_t
=
536 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
537 ac_cpp
='$CXXCPP $CPPFLAGS'
538 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
539 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
540 cross_compiling
=$ac_cv_prog_cxx_cross
548 # Check whether --enable-printing or --disable-printing was given.
549 if test "${enable_printing+set}" = set; then
550 enableval
="$enable_printing"
551 printing_b
=$enableval
556 # Check whether --enable-checking or --disable-checking was given.
557 if test "${enable_checking+set}" = set; then
558 enableval
="$enable_checking"
559 checking_b
=$enableval
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval
="$enable_debug"
572 # Check whether --enable-optimise or --disable-optimise was given.
573 if test "${enable_optimise+set}" = set; then
574 enableval
="$enable_optimise"
575 optimise_b
=$enableval
580 # Check whether --enable-profiling or --disable-profiling was given.
581 if test "${enable_profiling+set}" = set; then
582 enableval
="$enable_profiling"
587 # Check whether --enable-texprefix or --disable-texprefix was given.
588 if test "${enable_texprefix+set}" = set; then
589 enableval
="$enable_texprefix"
596 if test $profile_b = yes; then
598 DEFINES
="$DEFINES -pg"
601 if test $printing_b = no
; then
602 DEFINES
="$DEFINES -DNPRINT=1"
605 if test $debug_b = yes; then
606 DEFINES
="$DEFINES -g"
608 if test $checking_b = no
; then
609 DEFINES
="$DEFINES -DNDEBUG=1"
612 if test $optimise_b = yes; then
613 DEFINES
="$DEFINES -O2 -DSTRING_UTILS_INLINED"
615 AUTOHEADER
="This file was automatically generated by configure"
616 CXXFLAGS
=${CXXFLAGS:-""} # we don't want -g -O junk
617 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
619 # Extract the first word of "$ac_prog", so it can be a program name with args.
620 set dummy
$ac_prog; ac_word
=$2
621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622 echo "configure:623: checking for $ac_word" >&5
623 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 if test -n "$CXX"; then
627 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
629 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
630 for ac_dir
in $PATH; do
631 test -z "$ac_dir" && ac_dir
=.
632 if test -f $ac_dir/$ac_word; then
633 ac_cv_prog_CXX
="$ac_prog"
640 CXX
="$ac_cv_prog_CXX"
641 if test -n "$CXX"; then
642 echo "$ac_t""$CXX" 1>&6
644 echo "$ac_t""no" 1>&6
647 test -n "$CXX" && break
649 test -n "$CXX" || CXX
="gcc"
652 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
653 echo "configure:654: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
657 ac_cpp
='$CXXCPP $CPPFLAGS'
658 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
659 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
660 cross_compiling
=$ac_cv_prog_cxx_cross
662 cat > conftest.
$ac_ext <<EOF
663 #line 664 "configure"
664 #include "confdefs.h"
667 if { (eval echo configure
:668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
668 ac_cv_prog_cxx_works
=yes
669 # If we can't run a trivial program, we are probably using a cross compiler.
670 if (.
/conftest
; exit) 2>/dev
/null
; then
671 ac_cv_prog_cxx_cross
=no
673 ac_cv_prog_cxx_cross
=yes
676 echo "configure: failed program was:" >&5
677 cat conftest.
$ac_ext >&5
678 ac_cv_prog_cxx_works
=no
682 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
683 if test $ac_cv_prog_cxx_works = no
; then
684 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
686 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
688 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
689 cross_compiling
=$ac_cv_prog_cxx_cross
691 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
692 echo "configure:693: checking whether we are using GNU C++" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftest.C
<<EOF
701 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
708 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
710 if test $ac_cv_prog_gxx = yes; then
712 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
713 ac_save_CXXFLAGS
="$CXXFLAGS"
715 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
716 echo "configure:717: checking whether ${CXX-g++} accepts -g" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 echo 'void f(){}' > conftest.cc
721 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
730 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
731 if test "$ac_test_CXXFLAGS" = set; then
732 CXXFLAGS
="$ac_save_CXXFLAGS"
733 elif test $ac_cv_prog_cxx_g = yes; then
740 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
743 # Extract the first word of "ranlib", so it can be a program name with args.
744 set dummy ranlib
; ac_word
=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 if test -n "$RANLIB"; then
751 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
753 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
754 for ac_dir
in $PATH; do
755 test -z "$ac_dir" && ac_dir
=.
756 if test -f $ac_dir/$ac_word; then
757 ac_cv_prog_RANLIB
="ranlib"
762 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
765 RANLIB
="$ac_cv_prog_RANLIB"
766 if test -n "$RANLIB"; then
767 echo "$ac_t""$RANLIB" 1>&6
769 echo "$ac_t""no" 1>&6
773 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
774 if test -f $ac_dir/install-sh
; then
776 ac_install_sh
="$ac_aux_dir/install-sh -c"
778 elif test -f $ac_dir/install.sh
; then
780 ac_install_sh
="$ac_aux_dir/install.sh -c"
784 if test -z "$ac_aux_dir"; then
785 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
787 ac_config_guess
=$ac_aux_dir/config.guess
788 ac_config_sub
=$ac_aux_dir/config.sub
789 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
791 # Find a good install program. We prefer a C program (faster),
792 # so one script is as good as another. But avoid the broken or
793 # incompatible versions:
794 # SysV /etc/install, /usr/sbin/install
795 # SunOS /usr/etc/install
798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
800 # ./install, which can be erroneously created by make from ./install.sh.
801 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
802 echo "configure:803: checking for a BSD compatible install" >&5
803 if test -z "$INSTALL"; then
804 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
808 for ac_dir
in $PATH; do
809 # Account for people who put trailing slashes in PATH elements.
811 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
813 # OSF1 and SCO ODT 3.0 have their own names for install.
814 for ac_prog
in ginstall installbsd scoinst
install; do
815 if test -f $ac_dir/$ac_prog; then
816 if test $ac_prog = install &&
817 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
818 # AIX install. It has an incompatible calling convention.
819 # OSF/1 installbsd also uses dspmsg, but is usable.
822 ac_cv_path_install
="$ac_dir/$ac_prog -c"
833 if test "${ac_cv_path_install+set}" = set; then
834 INSTALL
="$ac_cv_path_install"
836 # As a last resort, use the slow shell script. We don't cache a
837 # path for INSTALL within a source directory, because that will
838 # break other packages using the cache if that directory is
839 # removed, or if the path is relative.
840 INSTALL
="$ac_install_sh"
843 echo "$ac_t""$INSTALL" 1>&6
845 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
846 # It thinks the first close brace ends the variable substitution.
847 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
849 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
853 # Extract the first word of "$ac_prog", so it can be a program name with args.
854 set dummy
$ac_prog; ac_word
=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
860 if test -n "$FIND"; then
861 ac_cv_prog_FIND
="$FIND" # Let the user override the test.
863 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
864 for ac_dir
in $PATH; do
865 test -z "$ac_dir" && ac_dir
=.
866 if test -f $ac_dir/$ac_word; then
867 ac_cv_prog_FIND
="$ac_prog"
874 FIND
="$ac_cv_prog_FIND"
875 if test -n "$FIND"; then
876 echo "$ac_t""$FIND" 1>&6
878 echo "$ac_t""no" 1>&6
881 test -n "$FIND" && break
883 test -n "$FIND" || FIND
="error"
886 if test FIND
= error
; then
887 echo "configure: warning: Couldn't find \`find'. Please use --enable-texprefix" 1>&2
901 # Extract the first word of "$ac_prog", so it can be a program name with args.
902 set dummy
$ac_prog; ac_word
=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 if test -n "$BISON"; then
909 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
911 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
912 for ac_dir
in $PATH; do
913 test -z "$ac_dir" && ac_dir
=.
914 if test -f $ac_dir/$ac_word; then
915 ac_cv_prog_BISON
="$ac_prog"
922 BISON
="$ac_cv_prog_BISON"
923 if test -n "$BISON"; then
924 echo "$ac_t""$BISON" 1>&6
926 echo "$ac_t""no" 1>&6
929 test -n "$BISON" && break
931 test -n "$BISON" || BISON
="error"
935 # Extract the first word of "$ac_prog", so it can be a program name with args.
936 set dummy
$ac_prog; ac_word
=$2
937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
938 echo "configure:939: checking for $ac_word" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 if test -n "$FLEX"; then
943 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
946 for ac_dir
in $PATH; do
947 test -z "$ac_dir" && ac_dir
=.
948 if test -f $ac_dir/$ac_word; then
949 ac_cv_prog_FLEX
="$ac_prog"
956 FLEX
="$ac_cv_prog_FLEX"
957 if test -n "$FLEX"; then
958 echo "$ac_t""$FLEX" 1>&6
960 echo "$ac_t""no" 1>&6
963 test -n "$FLEX" && break
965 test -n "$FLEX" || FLEX
="error"
969 # Extract the first word of "$ac_prog", so it can be a program name with args.
970 set dummy
$ac_prog; ac_word
=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 if test -n "$MAKE"; then
977 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
979 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
980 for ac_dir
in $PATH; do
981 test -z "$ac_dir" && ac_dir
=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_MAKE
="$ac_prog"
990 MAKE
="$ac_cv_prog_MAKE"
991 if test -n "$MAKE"; then
992 echo "$ac_t""$MAKE" 1>&6
994 echo "$ac_t""no" 1>&6
997 test -n "$MAKE" && break
999 test -n "$MAKE" || MAKE
="error"
1001 for ac_prog
in pod2man
1003 # Extract the first word of "$ac_prog", so it can be a program name with args.
1004 set dummy
$ac_prog; ac_word
=$2
1005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006 echo "configure:1007: checking for $ac_word" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 if test -n "$PODMAN"; then
1011 ac_cv_prog_PODMAN
="$PODMAN" # Let the user override the test.
1013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1014 for ac_dir
in $PATH; do
1015 test -z "$ac_dir" && ac_dir
=.
1016 if test -f $ac_dir/$ac_word; then
1017 ac_cv_prog_PODMAN
="$ac_prog"
1024 PODMAN
="$ac_cv_prog_PODMAN"
1025 if test -n "$PODMAN"; then
1026 echo "$ac_t""$PODMAN" 1>&6
1028 echo "$ac_t""no" 1>&6
1031 test -n "$PODMAN" && break
1033 test -n "$PODMAN" || PODMAN
="error"
1036 if test $TEXPREFIX = auto
; then
1039 # do something sensible if root hasn't specced dir yet attempts install
1041 echo $ac_n "checking TeX installation directory""... $ac_c" 1>&6
1042 echo "configure:1043: checking TeX installation directory" >&5
1044 ac_tmp_prefix
=$prefix
1045 test "x$ac_tmp_prefix" = xNONE
&& ac_tmp_prefix
=$ac_default_prefix
1047 for texdir
in $ac_tmp_prefix $ac_tmp_prefix/lib
; do
1048 if test -d $texdir/texmf
; then
1049 TEXTOP
=$texdir/texmf
1052 if test -d $texdir/tex
; then
1058 TEXPREFIX
=$ac_tmp_prefix/lib
/texmf
/tex
1059 if test x
= "x$TEXTOP"; then
1060 echo "configure: warning: Cannot determine a tex-directory. Please use --enable-texprefix" 1>&2
1062 TEXPREFIX
=`$FIND $TEXTOP -type d -a -name tex -print |sort|head -1`
1066 echo "$ac_t""$TEXPREFIX" 1>&6
1070 if test $MAKE = "error"
1072 { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
1074 $MAKE -v|
grep GNU
> /dev
/null
1077 echo "configure: warning: Please install *GNU* make" 1>&2
1082 if test $BISON = "error"
1084 echo "configure: warning: can't find bison. Please install Bison (1.24 or better)" 1>&2
1087 if test $PODMAN = "error"
1089 echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
1092 if test $FLEX = "error"
1094 echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1097 if $CXX --version |
grep '2\.7' > /dev
/null
1101 echo "configure: warning: can't find g++ 2.7" 1>&2
1104 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1105 echo "configure:1106: checking how to run the C++ preprocessor" >&5
1106 if test -z "$CXXCPP"; then
1107 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112 ac_cpp
='$CXXCPP $CPPFLAGS'
1113 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115 cross_compiling
=$ac_cv_prog_cxx_cross
1116 CXXCPP
="${CXX-g++} -E"
1117 cat > conftest.
$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1123 { (eval echo configure
:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1124 ac_err
=`grep -v '^ *+' conftest.out`
1125 if test -z "$ac_err"; then
1129 echo "configure: failed program was:" >&5
1130 cat conftest.
$ac_ext >&5
1135 ac_cv_prog_CXXCPP
="$CXXCPP"
1138 CXXCPP
="$ac_cv_prog_CXXCPP"
1139 echo "$ac_t""$CXXCPP" 1>&6
1141 ac_safe
=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1142 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1143 echo "configure:1144: checking for FlexLexer.h" >&5
1144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 cat > conftest.
$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1150 #include <FlexLexer.h>
1152 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153 { (eval echo configure
:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1154 ac_err
=`grep -v '^ *+' conftest.out`
1155 if test -z "$ac_err"; then
1157 eval "ac_cv_header_$ac_safe=yes"
1160 echo "configure: failed program was:" >&5
1161 cat conftest.
$ac_ext >&5
1163 eval "ac_cv_header_$ac_safe=no"
1167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1168 echo "$ac_t""yes" 1>&6
1171 echo "$ac_t""no" 1>&6
1172 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1178 cat > confcache
<<\EOF
1179 # This file is a shell script that caches the results of configure
1180 # tests run on this system so they can be shared between configure
1181 # scripts and configure runs. It is not useful on other systems.
1182 # If it contains results you don't want to keep, you may remove or edit it.
1184 # By default, configure uses ./config.cache as the cache file,
1185 # creating it if it does not exist already. You can give configure
1186 # the --cache-file=FILE option to use a different cache file; that is
1187 # what configure does when it calls configure scripts in
1188 # subdirectories, so they share the cache.
1189 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1190 # config.status only pays attention to the cache file if you give it the
1191 # --recheck option to rerun configure.
1194 # The following way of writing the cache mishandles newlines in values,
1195 # but we know of no workaround that is simple, portable, and efficient.
1196 # So, don't put newlines in cache variables' values.
1197 # Ultrix sh set writes to stderr and can't be redirected directly,
1198 # and sets the high bit in the cache file unless we assign to the vars.
1200 case `(ac_space=' '; set) 2>&1` in
1202 # `set' does not quote correctly, so add quotes (double-quote substitution
1203 # turns \\\\ into \\, and sed turns \\ into \).
1205 -e "s/'/'\\\\''/g" \
1206 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1209 # `set' quotes correctly as required by POSIX, so do not add quotes.
1210 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1213 if cmp -s $cache_file confcache
; then
1216 if test -w $cache_file; then
1217 echo "updating cache $cache_file"
1218 cat confcache
> $cache_file
1220 echo "not updating unwritable cache $cache_file"
1225 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1227 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1228 # Let make expand exec_prefix.
1229 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1231 # Any assignment to VPATH causes Sun make to only execute
1232 # the first set of double-colon rules, so remove it if not needed.
1233 # If there is a colon in the path, we need to keep it.
1234 if test "x$srcdir" = x.
; then
1235 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1238 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1240 # Transform confdefs.h into DEFS.
1241 # Protect against shell expansion while executing Makefile rules.
1242 # Protect against Makefile macro expansion.
1243 cat > conftest.defs
<<\EOF
1244 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1245 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1250 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1254 # Without the "./", some shells look in PATH for config.status.
1255 : ${CONFIG_STATUS=./config.status}
1257 echo creating $CONFIG_STATUS
1258 rm -f $CONFIG_STATUS
1259 cat > $CONFIG_STATUS <<EOF
1261 # Generated automatically by configure.
1262 # Run this file to recreate the current configuration.
1263 # This directory was configured as follows,
1264 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1266 # $0 $ac_configure_args
1268 # Compiler output produced by configure, useful for debugging
1269 # configure, is in ./config.log if it exists.
1271 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1274 case "\$ac_option" in
1275 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1276 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1277 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1278 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1279 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1281 -help | --help | --hel | --he | --h)
1282 echo "\$ac_cs_usage"; exit 0 ;;
1283 *) echo "\$ac_cs_usage"; exit 1 ;;
1287 ac_given_srcdir=$srcdir
1288 ac_given_INSTALL="$INSTALL"
1290 trap 'rm -fr `echo "make/out/Configure_variables.make:make/Configure_variables.make.in
1291 Makefile:make/Toplevel.make.in
1292 " |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1294 cat >> $CONFIG_STATUS <<EOF
1296 # Protect against being on the right side of a sed subst in config.status.
1297 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1298 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1301 s%@CFLAGS@%$CFLAGS%g
1302 s%@CPPFLAGS@%$CPPFLAGS%g
1303 s%@CXXFLAGS@%$CXXFLAGS%g
1305 s%@LDFLAGS@%$LDFLAGS%g
1307 s%@exec_prefix@%$exec_prefix%g
1308 s%@prefix@%$prefix%g
1309 s%@program_transform_name@%$program_transform_name%g
1310 s%@bindir@%$bindir%g
1311 s%@sbindir@%$sbindir%g
1312 s%@libexecdir@%$libexecdir%g
1313 s%@datadir@%$datadir%g
1314 s%@sysconfdir@%$sysconfdir%g
1315 s%@sharedstatedir@%$sharedstatedir%g
1316 s%@localstatedir@%$localstatedir%g
1317 s%@libdir@%$libdir%g
1318 s%@includedir@%$includedir%g
1319 s%@oldincludedir@%$oldincludedir%g
1320 s%@infodir@%$infodir%g
1321 s%@mandir@%$mandir%g
1323 s%@RANLIB@%$RANLIB%g
1324 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1325 s%@INSTALL_DATA@%$INSTALL_DATA%g
1327 s%@DEFINES@%$DEFINES%g
1328 s%@COMPILEINFO@%$COMPILEINFO%g
1329 s%@AUTOHEADER@%$AUTOHEADER%g
1332 s%@TEXPREFIX@%$TEXPREFIX%g
1333 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
1335 s%@PODMAN@%$PODMAN%g
1336 s%@CXXCPP@%$CXXCPP%g
1337 s%@subdirs@%$subdirs%g
1342 cat >> $CONFIG_STATUS <<\EOF
1344 # Split the substitutions into bite-sized pieces for seds with
1345 # small command number limits, like on Digital OSF/1 and HP-UX.
1346 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1347 ac_file=1 # Number of current file.
1348 ac_beg=1 # First line for current file.
1349 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1352 while $ac_more_lines; do
1353 if test $ac_beg -gt 1; then
1354 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1356 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1358 if test ! -s conftest.s$ac_file; then
1360 rm -f conftest.s$ac_file
1362 if test -z "$ac_sed_cmds"; then
1363 ac_sed_cmds="sed -f conftest.s$ac_file"
1365 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1367 ac_file=`expr $ac_file + 1`
1369 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1372 if test -z "$ac_sed_cmds"; then
1377 cat >> $CONFIG_STATUS <<EOF
1379 CONFIG_FILES=\${CONFIG_FILES-"make/out/Configure_variables.make:make/Configure_variables.make.in
1380 Makefile:make/Toplevel.make.in
1383 cat >> $CONFIG_STATUS <<\EOF
1384 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1387 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
1388 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1389 *) ac_file_in="${ac_file}.in" ;;
1392 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1394 # Remove last slash and all that follows it. Not all systems have dirname.
1395 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1396 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1397 # The file is in a subdirectory.
1398 test ! -d "$ac_dir" && mkdir "$ac_dir"
1399 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
1400 # A "../" for each directory in $ac_dir_suffix.
1401 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
1403 ac_dir_suffix= ac_dots=
1406 case "$ac_given_srcdir" in
1408 if test -z "$ac_dots"; then top_srcdir=.
1409 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
1410 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1412 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1413 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1416 case "$ac_given_INSTALL" in
1417 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1418 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1421 echo creating "$ac_file"
1423 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
1425 *Makefile*) ac_comsub="1i\\
1426 # $configure_input" ;;
1430 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1432 s%@configure_input@%$configure_input%g
1433 s%@srcdir@%$srcdir%g
1434 s%@top_srcdir@%$top_srcdir%g
1435 s%@INSTALL@%$INSTALL%g
1436 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1441 cat >> $CONFIG_STATUS <<EOF
1444 cat >> $CONFIG_STATUS <<\EOF
1448 chmod +x $CONFIG_STATUS
1449 rm -fr confdefs* $ac_clean_files
1450 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1452 if test "$no_recursion" != yes; then
1454 # Remove --cache-file and --srcdir arguments so they do not pile up.
1455 ac_sub_configure_args=
1457 for ac_arg in $ac_configure_args; do
1458 if test -n "$ac_prev"; then
1463 -cache-file | --cache-file | --cache-fil | --cache-fi \
1464 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1465 ac_prev=cache_file ;;
1466 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1467 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1469 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1471 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1473 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1477 for ac_config_dir in flower; do
1479 # Do not complain, so a configure script can configure whichever
1480 # parts of a large source tree are present.
1481 if test ! -d $srcdir/$ac_config_dir; then
1485 echo configuring in $ac_config_dir
1490 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1492 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1500 # A "../" for each directory in /$ac_config_dir.
1501 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1504 .) # No --srcdir option. We are building in place.
1505 ac_sub_srcdir=$srcdir ;;
1506 /*) # Absolute path.
1507 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1509 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1512 # Check for guested configure; otherwise get Cygnus style configure.
1513 if test -f $ac_sub_srcdir/configure; then
1514 ac_sub_configure=$ac_sub_srcdir/configure
1515 elif test -f $ac_sub_srcdir/configure.in; then
1516 ac_sub_configure=$ac_configure
1518 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1522 # The recursion is here.
1523 if test -n "$ac_sub_configure"; then
1525 # Make the cache file name correct relative to the subdirectory.
1526 case "$cache_file" in
1527 /*) ac_sub_cache_file=$cache_file ;;
1529 ac_sub_cache_file="$ac_dots$cache_file" ;;
1531 case "$ac_given_INSTALL" in
1532 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1533 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1536 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1537 # The eval makes quoting arguments work.
1538 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1541 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1552 eval "DIR_DATADIR=$datadir"
1553 DIR_DATADIR="$DIR_DATADIR/lilypond"
1554 echo $ac_n "checking ""... $ac_c" 1>&6
1555 echo "configure:1556: checking " >&5
1557 cat << EOF > lib/out/config.hh
1559 /* automatically generated by configure */
1560 /* include this file only once! */
1562 #define DIR_DATADIR "$DIR_DATADIR"
1566 CXX="$ac_cv_prog_CXX" bin/make_version >> lib/out/config.hh
1568 touch make/out/Site.make
1571 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1574 sed 's/TOPLEVEL_//g' < .version > lily/.version
1575 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1579 Finished configuring. For making everything, do:
1583 If you only want help on the make targets, do a
1591 #if test $shared_b = yes; then
1592 # echo "NOTE: you are building the *shared* library. You should