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 tex-prefix=DIR set the tex-directory to find TeX subdirectories."
27 tex-dir=DIR set the directory to put LilyPond TeX files in."
29 # Initialize some variables set by options.
30 # The variables have the same names as the options, with
31 # dashes changed to underlines.
33 cache_file=./config.cache
42 program_transform_name=s,x,x,
50 bindir='${exec_prefix}/bin'
51 sbindir='${exec_prefix}/sbin'
52 libexecdir='${exec_prefix}/libexec'
53 datadir='${prefix}/share'
54 sysconfdir='${prefix}/etc'
55 sharedstatedir='${prefix}/com'
56 localstatedir='${prefix}/var'
57 libdir='${exec_prefix}/lib'
58 includedir='${prefix}/include'
59 oldincludedir='/usr/include'
60 infodir='${prefix}/info'
61 mandir='${prefix}/man'
63 # Initialize some other variables.
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host | --host | --hos | --ho)
204 -host=* | --host=* | --hos=* | --ho=*)
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
325 -site=* | --site=* | --sit=*)
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.12"
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=flower/choleski.cc
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
522 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='\c' ac_t=
538 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539 ac_cpp='$CXXCPP $CPPFLAGS'
540 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542 cross_compiling=$ac_cv_prog_cxx_cross
551 # Check whether --enable-printing or --disable-printing was given.
552 if test "${enable_printing+set}" = set; then
553 enableval="$enable_printing"
554 printing_b=$enableval
559 # Check whether --enable-checking or --disable-checking was given.
560 if test "${enable_checking+set}" = set; then
561 enableval="$enable_checking"
562 checking_b=$enableval
568 # Check whether --enable-debug or --disable-debug was given.
569 if test "${enable_debug+set}" = set; then
570 enableval="$enable_debug"
575 # Check whether --enable-optimise or --disable-optimise was given.
576 if test "${enable_optimise+set}" = set; then
577 enableval="$enable_optimise"
578 optimise_b=$enableval
583 # Check whether --enable-profiling or --disable-profiling was given.
584 if test "${enable_profiling+set}" = set; then
585 enableval="$enable_profiling"
590 # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
591 if test "${enable_tex_prefix+set}" = set; then
592 enableval="$enable_tex_prefix"
599 # Check whether --enable-tex-dir or --disable-tex-dir was given.
600 if test "${enable_tex_dir+set}" = set; then
601 enableval="$enable_tex_dir"
608 if test $profile_b = yes; then
610 DEFINES="$DEFINES -pg"
613 if test $printing_b = no; then
614 DEFINES="$DEFINES -DNPRINT=1"
617 if test $debug_b = yes; then
618 DEFINES="$DEFINES -g"
620 if test $checking_b = no; then
621 DEFINES="$DEFINES -DNDEBUG=1"
624 if test $optimise_b = yes; then
625 DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"
628 AUTOHEADER="This file was automatically generated by configure"
629 CXXFLAGS=${CXXFLAGS:-""} # we don't want -g -O junk
630 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
632 # Extract the first word of "$ac_prog", so it can be a program name with args.
633 set dummy $ac_prog; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 if test -n "$CXX"; then
640 ac_cv_prog_CXX="$CXX" # Let the user override the test.
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
643 for ac_dir in $PATH; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f $ac_dir/$ac_word; then
646 ac_cv_prog_CXX="$ac_prog"
653 CXX="$ac_cv_prog_CXX"
654 if test -n "$CXX"; then
655 echo "$ac_t""$CXX" 1>&6
657 echo "$ac_t""no" 1>&6
660 test -n "$CXX" && break
662 test -n "$CXX" || CXX="gcc"
665 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
666 echo "configure:667: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
670 ac_cpp='$CXXCPP $CPPFLAGS'
671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
672 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
673 cross_compiling=$ac_cv_prog_cxx_cross
675 cat > conftest.$ac_ext <<EOF
676 #line 677 "configure"
677 #include "confdefs.h"
680 if { (eval echo configure:681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
681 ac_cv_prog_cxx_works=yes
682 # If we can't run a trivial program, we are probably using a cross compiler.
683 if (./conftest; exit) 2>/dev/null; then
684 ac_cv_prog_cxx_cross=no
686 ac_cv_prog_cxx_cross=yes
689 echo "configure: failed program was:" >&5
690 cat conftest.$ac_ext >&5
691 ac_cv_prog_cxx_works=no
695 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
696 if test $ac_cv_prog_cxx_works = no; then
697 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
699 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
700 echo "configure:701: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
701 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
702 cross_compiling=$ac_cv_prog_cxx_cross
704 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
705 echo "configure:706: checking whether we are using GNU C++" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 cat > conftest.C <<EOF
714 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
721 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
723 if test $ac_cv_prog_gxx = yes; then
725 ac_test_CXXFLAGS="${CXXFLAGS+set}"
726 ac_save_CXXFLAGS="$CXXFLAGS"
728 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
729 echo "configure:730: checking whether ${CXX-g++} accepts -g" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 echo 'void f(){}' > conftest.cc
734 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
743 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
744 if test "$ac_test_CXXFLAGS" = set; then
745 CXXFLAGS="$ac_save_CXXFLAGS"
746 elif test $ac_cv_prog_cxx_g = yes; then
753 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
756 # Extract the first word of "ranlib", so it can be a program name with args.
757 set dummy ranlib; ac_word=$2
758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
759 echo "configure:760: checking for $ac_word" >&5
760 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
763 if test -n "$RANLIB"; then
764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
767 for ac_dir in $PATH; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f $ac_dir/$ac_word; then
770 ac_cv_prog_RANLIB="ranlib"
775 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
778 RANLIB="$ac_cv_prog_RANLIB"
779 if test -n "$RANLIB"; then
780 echo "$ac_t""$RANLIB" 1>&6
782 echo "$ac_t""no" 1>&6
786 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
787 if test -f $ac_dir/install-sh; then
789 ac_install_sh="$ac_aux_dir/install-sh -c"
791 elif test -f $ac_dir/install.sh; then
793 ac_install_sh="$ac_aux_dir/install.sh -c"
797 if test -z "$ac_aux_dir"; then
798 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
800 ac_config_guess=$ac_aux_dir/config.guess
801 ac_config_sub=$ac_aux_dir/config.sub
802 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
804 # Find a good install program. We prefer a C program (faster),
805 # so one script is as good as another. But avoid the broken or
806 # incompatible versions:
807 # SysV /etc/install, /usr/sbin/install
808 # SunOS /usr/etc/install
811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
813 # ./install, which can be erroneously created by make from ./install.sh.
814 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
815 echo "configure:816: checking for a BSD compatible install" >&5
816 if test -z "$INSTALL"; then
817 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
821 for ac_dir in $PATH; do
822 # Account for people who put trailing slashes in PATH elements.
824 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
826 # OSF1 and SCO ODT 3.0 have their own names for install.
827 for ac_prog in ginstall installbsd scoinst install; do
828 if test -f $ac_dir/$ac_prog; then
829 if test $ac_prog = install &&
830 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
831 # AIX install. It has an incompatible calling convention.
832 # OSF/1 installbsd also uses dspmsg, but is usable.
835 ac_cv_path_install="$ac_dir/$ac_prog -c"
846 if test "${ac_cv_path_install+set}" = set; then
847 INSTALL="$ac_cv_path_install"
849 # As a last resort, use the slow shell script. We don't cache a
850 # path for INSTALL within a source directory, because that will
851 # break other packages using the cache if that directory is
852 # removed, or if the path is relative.
853 INSTALL="$ac_install_sh"
856 echo "$ac_t""$INSTALL" 1>&6
858 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
859 # It thinks the first close brace ends the variable substitution.
860 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
866 # Extract the first word of "$ac_prog", so it can be a program name with args.
867 set dummy $ac_prog; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$FIND"; then
874 ac_cv_prog_FIND="$FIND" # Let the user override the test.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
877 for ac_dir in $PATH; do
878 test -z "$ac_dir" && ac_dir=.
879 if test -f $ac_dir/$ac_word; then
880 ac_cv_prog_FIND="$ac_prog"
887 FIND="$ac_cv_prog_FIND"
888 if test -n "$FIND"; then
889 echo "$ac_t""$FIND" 1>&6
891 echo "$ac_t""no" 1>&6
894 test -n "$FIND" && break
896 test -n "$FIND" || FIND="error"
899 if test FIND = error; then
900 echo "configure: warning: Couldn't find \`find'. Please use --enable-tex-dir" 1>&2
915 # Extract the first word of "$ac_prog", so it can be a program name with args.
916 set dummy $ac_prog; ac_word=$2
917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918 echo "configure:919: checking for $ac_word" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 if test -n "$BISON"; then
923 ac_cv_prog_BISON="$BISON" # Let the user override the test.
925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
926 for ac_dir in $PATH; do
927 test -z "$ac_dir" && ac_dir=.
928 if test -f $ac_dir/$ac_word; then
929 ac_cv_prog_BISON="$ac_prog"
936 BISON="$ac_cv_prog_BISON"
937 if test -n "$BISON"; then
938 echo "$ac_t""$BISON" 1>&6
940 echo "$ac_t""no" 1>&6
943 test -n "$BISON" && break
945 test -n "$BISON" || BISON="error"
949 # Extract the first word of "$ac_prog", so it can be a program name with args.
950 set dummy $ac_prog; ac_word=$2
951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 echo "configure:953: checking for $ac_word" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 if test -n "$FLEX"; then
957 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
960 for ac_dir in $PATH; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_prog_FLEX="$ac_prog"
970 FLEX="$ac_cv_prog_FLEX"
971 if test -n "$FLEX"; then
972 echo "$ac_t""$FLEX" 1>&6
974 echo "$ac_t""no" 1>&6
977 test -n "$FLEX" && break
979 test -n "$FLEX" || FLEX="error"
983 # Extract the first word of "$ac_prog", so it can be a program name with args.
984 set dummy $ac_prog; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 if test -n "$MAKE"; then
991 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
994 for ac_dir in $PATH; do
995 test -z "$ac_dir" && ac_dir=.
996 if test -f $ac_dir/$ac_word; then
997 ac_cv_prog_MAKE="$ac_prog"
1004 MAKE="$ac_cv_prog_MAKE"
1005 if test -n "$MAKE"; then
1006 echo "$ac_t""$MAKE" 1>&6
1008 echo "$ac_t""no" 1>&6
1011 test -n "$MAKE" && break
1013 test -n "$MAKE" || MAKE="error"
1015 for ac_prog in pod2man
1017 # Extract the first word of "$ac_prog", so it can be a program name with args.
1018 set dummy $ac_prog; ac_word=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 if test -n "$PODMAN"; then
1025 ac_cv_prog_PODMAN="$PODMAN" # Let the user override the test.
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1028 for ac_dir in $PATH; do
1029 test -z "$ac_dir" && ac_dir=.
1030 if test -f $ac_dir/$ac_word; then
1031 ac_cv_prog_PODMAN="$ac_prog"
1038 PODMAN="$ac_cv_prog_PODMAN"
1039 if test -n "$PODMAN"; then
1040 echo "$ac_t""$PODMAN" 1>&6
1042 echo "$ac_t""no" 1>&6
1045 test -n "$PODMAN" && break
1047 test -n "$PODMAN" || PODMAN="error"
1051 if test "x$TEXPREFIX" = xauto ; then
1055 echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1056 echo "configure:1057: checking TeX/MF root dir directory" >&5
1058 find_root_prefix="$prefix"
1061 test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1063 for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1064 find_texprefix="$find_root_prefix$postfix"
1065 if test -d $find_texprefix; then
1066 find_texpostfix=$postfix
1071 if test "x$find_texpostfix" = x; then
1072 find_texpostfix='/lib/texmf/tex'
1073 echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1076 find_texprefix="$find_root_prefix/$find_texpostfix"
1077 TEXPREFIX='${prefix}'/"$find_texpostfix"
1079 echo "$ac_t""$find_texprefix" 1>&6
1084 if test "x$TEXDIR" = xauto ; then
1087 # do something sensible if root hasn't specced dir yet attempts install
1088 test "x$find_texprefix" != x || find_texprefix="$TEXPREFIX"
1090 echo $ac_n "checking TeX tex input directory""... $ac_c" 1>&6
1091 echo "configure:1092: checking TeX tex input directory" >&5
1092 find_texdir=`(cd $find_texprefix;
1093 $FIND -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
1096 if test "x$find_texdir" = x; then
1098 echo "configure: warning: Cannot determine the TeX-subdirectory. Please use --enable-tex-dir" 1>&2
1102 TEXDIR="$TEXPREFIX/$find_texdir"
1104 echo "$ac_t""$find_texprefix/$find_texdir" 1>&6
1109 if test $MAKE = "error"
1111 { echo "configure: error: Please install GNU make" 1>&2; exit 1; }
1113 $MAKE -v| grep GNU > /dev/null
1116 echo "configure: warning: Please install *GNU* make" 1>&2
1120 if test $BISON = "error"
1122 echo "configure: warning: can't find bison. Please install Bison (1.24 or better)" 1>&2
1125 if test $PODMAN = "error"
1127 echo "configure: warning: can't find pod. You should install Perl (version 5 or better)" 1>&2
1130 if test $FLEX = "error"
1132 echo "configure: warning: can't find flex. Please install Flex (2.5 or better)" 1>&2
1135 if $CXX --version | grep '2\.7' > /dev/null
1139 echo "configure: warning: can't find g++ 2.7" 1>&2
1142 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1143 echo "configure:1144: checking how to run the C++ preprocessor" >&5
1144 if test -z "$CXXCPP"; then
1145 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1150 ac_cpp='$CXXCPP $CPPFLAGS'
1151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1152 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1153 cross_compiling=$ac_cv_prog_cxx_cross
1154 CXXCPP="${CXX-g++} -E"
1155 cat > conftest.$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1161 { (eval echo configure:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1162 ac_err=`grep -v '^ *+' conftest.out`
1163 if test -z "$ac_err"; then
1167 echo "configure: failed program was:" >&5
1168 cat conftest.$ac_ext >&5
1173 ac_cv_prog_CXXCPP="$CXXCPP"
1176 CXXCPP="$ac_cv_prog_CXXCPP"
1177 echo "$ac_t""$CXXCPP" 1>&6
1179 ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1180 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1181 echo "configure:1182: checking for FlexLexer.h" >&5
1182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 #include <FlexLexer.h>
1190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1191 { (eval echo configure:1192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1192 ac_err=`grep -v '^ *+' conftest.out`
1193 if test -z "$ac_err"; then
1195 eval "ac_cv_header_$ac_safe=yes"
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1201 eval "ac_cv_header_$ac_safe=no"
1205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1206 echo "$ac_t""yes" 1>&6
1209 echo "$ac_t""no" 1>&6
1210 echo "configure: warning: can't find flex header. Please install Flex headers correctly" 1>&2
1216 cat > confcache <<\EOF
1217 # This file is a shell script that caches the results of configure
1218 # tests run on this system so they can be shared between configure
1219 # scripts and configure runs. It is not useful on other systems.
1220 # If it contains results you don't want to keep, you may remove or edit it.
1222 # By default, configure uses ./config.cache as the cache file,
1223 # creating it if it does not exist already. You can give configure
1224 # the --cache-file=FILE option to use a different cache file; that is
1225 # what configure does when it calls configure scripts in
1226 # subdirectories, so they share the cache.
1227 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1228 # config.status only pays attention to the cache file if you give it the
1229 # --recheck option to rerun configure.
1232 # The following way of writing the cache mishandles newlines in values,
1233 # but we know of no workaround that is simple, portable, and efficient.
1234 # So, don't put newlines in cache variables' values.
1235 # Ultrix sh set writes to stderr and can't be redirected directly,
1236 # and sets the high bit in the cache file unless we assign to the vars.
1238 case `(ac_space=' '; set) 2>&1` in
1240 # `set' does not quote correctly, so add quotes (double-quote substitution
1241 # turns \\\\ into \\, and sed turns \\ into \).
1243 -e "s/'/'\\\\''/g" \
1244 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1247 # `set' quotes correctly as required by POSIX, so do not add quotes.
1248 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1251 if cmp -s $cache_file confcache; then
1254 if test -w $cache_file; then
1255 echo "updating cache $cache_file"
1256 cat confcache > $cache_file
1258 echo "not updating unwritable cache $cache_file"
1263 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1266 # Let make expand exec_prefix.
1267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1269 # Any assignment to VPATH causes Sun make to only execute
1270 # the first set of double-colon rules, so remove it if not needed.
1271 # If there is a colon in the path, we need to keep it.
1272 if test "x$srcdir" = x.; then
1273 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1276 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1278 # Transform confdefs.h into DEFS.
1279 # Protect against shell expansion while executing Makefile rules.
1280 # Protect against Makefile macro expansion.
1281 cat > conftest.defs <<\EOF
1282 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1283 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1288 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1292 # Without the "./", some shells look in PATH for config.status.
1293 : ${CONFIG_STATUS=./config.status}
1295 echo creating $CONFIG_STATUS
1296 rm -f $CONFIG_STATUS
1297 cat > $CONFIG_STATUS <<EOF
1299 # Generated automatically by configure.
1300 # Run this file to recreate the current configuration.
1301 # This directory was configured as follows,
1302 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1304 # $0 $ac_configure_args
1306 # Compiler output produced by configure, useful for debugging
1307 # configure, is in ./config.log if it exists.
1309 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1312 case "\$ac_option" in
1313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1314 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1315 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1316 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1317 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1319 -help | --help | --hel | --he | --h)
1320 echo "\$ac_cs_usage"; exit 0 ;;
1321 *) echo "\$ac_cs_usage"; exit 1 ;;
1325 ac_given_srcdir=$srcdir
1326 ac_given_INSTALL="$INSTALL"
1328 trap 'rm -fr `echo "make/out/Configure_variables.make:make/Configure_variables.make.in
1329 Makefile:make/Toplevel.make.in
1330 " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1332 cat >> $CONFIG_STATUS <<EOF
1334 # Protect against being on the right side of a sed subst in config.status.
1335 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1336 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1339 s%@CFLAGS@%$CFLAGS%g
1340 s%@CPPFLAGS@%$CPPFLAGS%g
1341 s%@CXXFLAGS@%$CXXFLAGS%g
1343 s%@LDFLAGS@%$LDFLAGS%g
1345 s%@exec_prefix@%$exec_prefix%g
1346 s%@prefix@%$prefix%g
1347 s%@program_transform_name@%$program_transform_name%g
1348 s%@bindir@%$bindir%g
1349 s%@sbindir@%$sbindir%g
1350 s%@libexecdir@%$libexecdir%g
1351 s%@datadir@%$datadir%g
1352 s%@sysconfdir@%$sysconfdir%g
1353 s%@sharedstatedir@%$sharedstatedir%g
1354 s%@localstatedir@%$localstatedir%g
1355 s%@libdir@%$libdir%g
1356 s%@includedir@%$includedir%g
1357 s%@oldincludedir@%$oldincludedir%g
1358 s%@infodir@%$infodir%g
1359 s%@mandir@%$mandir%g
1361 s%@RANLIB@%$RANLIB%g
1362 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1363 s%@INSTALL_DATA@%$INSTALL_DATA%g
1365 s%@DEFINES@%$DEFINES%g
1366 s%@COMPILEINFO@%$COMPILEINFO%g
1367 s%@AUTOHEADER@%$AUTOHEADER%g
1370 s%@TEXPREFIX@%$TEXPREFIX%g
1371 s%@TEXDIR@%$TEXDIR%g
1372 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
1374 s%@PODMAN@%$PODMAN%g
1375 s%@CXXCPP@%$CXXCPP%g
1376 s%@subdirs@%$subdirs%g
1381 cat >> $CONFIG_STATUS <<\EOF
1383 # Split the substitutions into bite-sized pieces for seds with
1384 # small command number limits, like on Digital OSF/1 and HP-UX.
1385 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1386 ac_file=1 # Number of current file.
1387 ac_beg=1 # First line for current file.
1388 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1391 while $ac_more_lines; do
1392 if test $ac_beg -gt 1; then
1393 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1395 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1397 if test ! -s conftest.s$ac_file; then
1399 rm -f conftest.s$ac_file
1401 if test -z "$ac_sed_cmds"; then
1402 ac_sed_cmds="sed -f conftest.s$ac_file"
1404 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1406 ac_file=`expr $ac_file + 1`
1408 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1411 if test -z "$ac_sed_cmds"; then
1416 cat >> $CONFIG_STATUS <<EOF
1418 CONFIG_FILES=\${CONFIG_FILES-"make/out/Configure_variables.make:make/Configure_variables.make.in
1419 Makefile:make/Toplevel.make.in
1422 cat >> $CONFIG_STATUS <<\EOF
1423 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1426 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1427 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1428 *) ac_file_in="${ac_file}.in" ;;
1431 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1433 # Remove last slash and all that follows it. Not all systems have dirname.
1434 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1435 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1436 # The file is in a subdirectory.
1437 test ! -d "$ac_dir" && mkdir "$ac_dir"
1438 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1439 # A "../" for each directory in $ac_dir_suffix.
1440 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1442 ac_dir_suffix= ac_dots=
1445 case "$ac_given_srcdir" in
1447 if test -z "$ac_dots"; then top_srcdir=.
1448 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1449 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1451 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1452 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1455 case "$ac_given_INSTALL" in
1456 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1457 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1460 echo creating "$ac_file"
1462 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1464 *Makefile*) ac_comsub="1i\\
1465 # $configure_input" ;;
1469 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1471 s%@configure_input@%$configure_input%g
1472 s%@srcdir@%$srcdir%g
1473 s%@top_srcdir@%$top_srcdir%g
1474 s%@INSTALL@%$INSTALL%g
1475 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1480 cat >> $CONFIG_STATUS <<EOF
1483 cat >> $CONFIG_STATUS <<\EOF
1487 chmod +x $CONFIG_STATUS
1488 rm -fr confdefs* $ac_clean_files
1489 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1491 if test "$no_recursion" != yes; then
1493 # Remove --cache-file and --srcdir arguments so they do not pile up.
1494 ac_sub_configure_args=
1496 for ac_arg in $ac_configure_args; do
1497 if test -n "$ac_prev"; then
1502 -cache-file | --cache-file | --cache-fil | --cache-fi \
1503 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1504 ac_prev=cache_file ;;
1505 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1506 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1508 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1510 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1512 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1516 for ac_config_dir in flower; do
1518 # Do not complain, so a configure script can configure whichever
1519 # parts of a large source tree are present.
1520 if test ! -d $srcdir/$ac_config_dir; then
1524 echo configuring in $ac_config_dir
1529 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1531 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1539 # A "../" for each directory in /$ac_config_dir.
1540 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1543 .) # No --srcdir option. We are building in place.
1544 ac_sub_srcdir=$srcdir ;;
1545 /*) # Absolute path.
1546 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1548 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1551 # Check for guested configure; otherwise get Cygnus style configure.
1552 if test -f $ac_sub_srcdir/configure; then
1553 ac_sub_configure=$ac_sub_srcdir/configure
1554 elif test -f $ac_sub_srcdir/configure.in; then
1555 ac_sub_configure=$ac_configure
1557 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1561 # The recursion is here.
1562 if test -n "$ac_sub_configure"; then
1564 # Make the cache file name correct relative to the subdirectory.
1565 case "$cache_file" in
1566 /*) ac_sub_cache_file=$cache_file ;;
1568 ac_sub_cache_file="$ac_dots$cache_file" ;;
1570 case "$ac_given_INSTALL" in
1571 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1572 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1575 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1576 # The eval makes quoting arguments work.
1577 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1580 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1591 eval "DIR_DATADIR=$datadir"
1592 DIR_DATADIR="$DIR_DATADIR/lilypond"
1593 echo $ac_n "checking ""... $ac_c" 1>&6
1594 echo "configure:1595: checking " >&5
1596 cat << EOF > lib/out/config.hh
1598 /* automatically generated by configure */
1599 /* include this file only once! */
1601 #define DIR_DATADIR "$DIR_DATADIR"
1605 CXX="$ac_cv_prog_CXX" bin/make_version >> lib/out/config.hh
1607 touch make/out/Site.make
1610 (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1613 sed 's/TOPLEVEL_//g' < .version > lily/.version
1614 (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh
1618 Finished configuring. For making everything, do:
1622 If you only want help on the make targets, do a
1630 #if test $shared_b = yes; then
1631 # echo "NOTE: you are building the *shared* library. You should