From: fred Date: Sun, 24 Mar 2002 19:35:40 +0000 (+0000) Subject: lilypond-0.0.43 X-Git-Tag: release/1.5.59~5168 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b8be0fc938a803a9d4584a0cb9023212394e01d2;p=lilypond.git lilypond-0.0.43 --- diff --git a/configure b/configure index bd351d2ca4..3c13edc01f 100755 --- a/configure +++ b/configure @@ -1,7 +1,7 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.10 +# Generated automatically using autoconf version 2.12 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -12,15 +12,15 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help - printing set debug printing" + enable-printing set debug printing" ac_help="$ac_help - checking set runtime checks" + disable-checking set runtime checks" ac_help="$ac_help - debug set debug info" + disable-debug set debug info" ac_help="$ac_help - optimise use maximal speed optimisations" + enable-optimise use maximal speed optimisations" ac_help="$ac_help - profiling compile with gprof support" + enable-profiling compile with gprof support" ac_help="$ac_help texprefix=DIR set the tex-directory to put the lilypond subdir in." @@ -61,6 +61,8 @@ mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 ac_prev= for ac_option @@ -342,7 +344,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.10" + echo "configure generated by autoconf version 2.12" exit 0 ;; -with-* | --with-*) @@ -444,11 +446,14 @@ do done # NLS nuisances. -# Only set LANG and LC_ALL to C if already set. -# These must not be set unconditionally because not all systems understand -# e.g. LANG=C (notably SCO). -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h @@ -457,7 +462,7 @@ echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=flower/lib/choleski.cc +ac_unique_file=flower/choleski.cc # Find the source files, if location was not specified. if test -z "$srcdir"; then @@ -510,6 +515,7 @@ ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. @@ -524,11 +530,14 @@ else fi + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross # Check whether --enable-printing or --disable-printing was given. @@ -542,14 +551,14 @@ fi # Check whether --enable-checking or --disable-checking was given. if test "${enable_checking+set}" = set; then enableval="$enable_checking" - : -else DEFINES="$DEFINES -DNDEBUG=1" fi # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" + : +else DEFINES="$DEFINES -g" fi @@ -576,11 +585,12 @@ fi AUTOHEADER="This file was automatically generated by configure" CXXFLAGS=${CXXFLAGS:-""} # we don't want -g -O junk -for ac_prog in $CCC c++ g++ gcc CC cxx +for ac_prog in $CCC c++ g++ gcc CC cxx cc++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:594: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -610,7 +620,47 @@ done test -n "$CXX" || CXX="gcc" +echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:625: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 + +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then + ac_cv_prog_cxx_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cxx_cross=no + else + ac_cv_prog_cxx_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cxx_works=no +fi +rm -fr conftest* + +echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 +if test $ac_cv_prog_cxx_works = no; then + { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:659: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 +cross_compiling=$ac_cv_prog_cxx_cross + echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 +echo "configure:664: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -619,7 +669,7 @@ else yes; #endif EOF -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no @@ -627,29 +677,34 @@ fi fi echo "$ac_t""$ac_cv_prog_gxx" 1>&6 + if test $ac_cv_prog_gxx = yes; then GXX=yes - if test "${CXXFLAGS+set}" != set; then - echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then + ac_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS= + echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 +echo "configure:688: checking whether ${CXX-g++} accepts -g" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.cc if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then - ac_cv_prog_gxx_g=yes + ac_cv_prog_cxx_g=yes else - ac_cv_prog_gxx_g=no + ac_cv_prog_cxx_g=no fi rm -f conftest* fi -echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6 - if test $ac_cv_prog_gxx_g = yes; then - CXXFLAGS="-g -O" - else - CXXFLAGS="-O" - fi +echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 + if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS="$ac_save_CXXFLAGS" + elif test $ac_cv_prog_cxx_g = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-O2" fi else GXX= @@ -659,6 +714,7 @@ fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:718: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -714,11 +770,12 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +echo "configure:774: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in @@ -741,7 +798,7 @@ else ;; esac done - IFS="$ac_save_ifs" + IFS="$ac_save_IFS" fi if test "${ac_cv_path_install+set}" = set; then @@ -767,6 +824,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:828: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -808,12 +866,12 @@ else - for ac_prog in bison do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:875: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -847,6 +905,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:909: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -880,6 +939,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:943: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -913,6 +973,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:977: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_PODMAN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -948,6 +1009,7 @@ if test $TEXPREFIX = auto ; then # do something sensible if root hasn't specced dir yet attempts install echo $ac_n "checking TeX installation directory""... $ac_c" 1>&6 +echo "configure:1013: checking TeX installation directory" >&5 ac_tmp_prefix=$prefix test "x$ac_tmp_prefix" = xNONE && ac_tmp_prefix=$ac_default_prefix @@ -1010,6 +1072,7 @@ else fi echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 +echo "configure:1076: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1019,19 +1082,22 @@ else ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then : else echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 rm -rf conftest* CXXCPP=/lib/cpp fi @@ -1042,24 +1108,27 @@ fi CXXCPP="$ac_cv_prog_CXXCPP" echo "$ac_t""$CXXCPP" 1>&6 -ac_safe=`echo "FlexLexer.h" | tr './\055' '___'` +ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6 +echo "configure:1114: checking for FlexLexer.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi @@ -1092,11 +1161,25 @@ cat > confcache <<\EOF # --recheck option to rerun configure. # EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | - sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ - >> confcache + case `(ac_space=' '; set) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache if cmp -s $cache_file confcache; then : else @@ -1163,7 +1246,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.10" + echo "$CONFIG_STATUS generated by autoconf version 2.12" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; @@ -1222,20 +1305,56 @@ s%@subdirs@%$subdirs%g CEOF EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile]", defaulting infile="outfile.in". + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac - # Adjust relative srcdir, etc. for subdirectories. + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` @@ -1263,6 +1382,7 @@ for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac + echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." @@ -1271,16 +1391,22 @@ for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # $configure_input" ;; *) ac_comsub= ;; esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g -" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done -rm -f conftest.subs +rm -f conftest.s* +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF exit 0 EOF @@ -1336,13 +1462,16 @@ if test "$no_recursion" != yes; then ac_popdir=`pwd` cd $ac_config_dir + # A "../" for each directory in /$ac_config_dir. + ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` + case "$srcdir" in .) # No --srcdir option. We are building in place. ac_sub_srcdir=$srcdir ;; /*) # Absolute path. ac_sub_srcdir=$srcdir/$ac_config_dir ;; *) # Relative path. - ac_sub_srcdir=../$srcdir/$ac_config_dir ;; + ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; esac # Check for guested configure; otherwise get Cygnus style configure. @@ -1359,8 +1488,6 @@ if test "$no_recursion" != yes; then if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. - # A "../" for each directory in /$ac_config_dir. - ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` case "$cache_file" in /*) ac_sub_cache_file=$cache_file ;; *) # Relative path. @@ -1390,6 +1517,7 @@ fi eval "DIR_DATADIR=$datadir" DIR_DATADIR="$DIR_DATADIR/lilypond" echo $ac_n "checking ""... $ac_c" 1>&6 +echo "configure:1521: checking " >&5 cat << EOF > lib/out/config.hh @@ -1407,6 +1535,8 @@ touch make/out/Site.make # ugr (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh ) +# rgu +sed 's/TOPLEVEL_//g' < .version > lily/.version (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh ) (cd flower; diff --git a/configure.in b/configure.in index 4e48c76e27..309488cae9 100644 --- a/configure.in +++ b/configure.in @@ -34,26 +34,28 @@ AC_DEFUN(AC_TEX_SUBDIR, [ AC_MSG_RESULT($$1) ]) +AC_INIT(flower/choleski.cc) + -AC_INIT(flower/lib/choleski.cc) AC_LANG_CPLUSPLUS AC_ARG_ENABLE(printing, - [ printing set debug printing], + [ enable-printing set debug printing], [], [DEFINES="$DEFINES -DNPRINT=1"]) AC_ARG_ENABLE(checking, - [ checking set runtime checks], - [], - [DEFINES="$DEFINES -DNDEBUG=1"]) + [ disable-checking set runtime checks], + [DEFINES="$DEFINES -DNDEBUG=1"], + []) AC_ARG_ENABLE(debug, - [ debug set debug info], + [ disable-debug set debug info], + [], [DEFINES="$DEFINES -g"]) AC_ARG_ENABLE(optimise, - [ optimise use maximal speed optimisations], + [ enable-optimise use maximal speed optimisations], [DEFINES="$DEFINES -O2 -DSTRING_UTILS_INLINED"]) AC_ARG_ENABLE(profiling, - [ profiling compile with gprof support], + [ enable-profiling compile with gprof support], [DEFINES="$DEFINES -pg"]) AC_ARG_ENABLE(texprefix, [ texprefix=DIR set the tex-directory to put the lilypond subdir in.], @@ -73,7 +75,6 @@ if test FIND = error; then AC_MSG_WARN(Couldn't find \`find'. Please use --enable-texprefix) else - AC_SUBST(DEFINES) AC_SUBST(COMPILEINFO) AC_SUBST(AUTOHEADER) @@ -154,6 +155,8 @@ touch make/out/Site.make (cd mi2mu; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh dnl echo 0 > out/.build ) +# rgu +sed 's/TOPLEVEL_//g' < .version > lily/.version (cd lily; CXX="$ac_cv_prog_CXX" ../bin/make_version > out/version.hh dnl echo 0 > out/.build ) diff --git a/lily/Makefile b/lily/Makefile index 96a523cb95..cb49063ad6 100644 --- a/lily/Makefile +++ b/lily/Makefile @@ -1,4 +1,3 @@ -# # project LilyPond -- the musical typesetter # title makefile for lilypond # file lily/Makefile @@ -15,18 +14,16 @@ depth = .. # generic variables: # -include ./$(depth)/make/Variables.make +include ./$(depth)/make/Variables.make +include ./$(depth)/make/Files.make +include .version + # # identify module: # NAME = lilypond -MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION) -MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION) -PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL) -# use to send patches, always empty for released version: -MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL) -build = $(lily-dir)/$(outdir)/.build + # # descent order into subdirectories: @@ -39,30 +36,16 @@ SUBDIRS = include VERSION_DEPENDENCY = $(lily-version) # -# list of c++ header files: -# -HHFILES := $(wildcard *.hh) #$(shell ls *.hh $(ERROR_LOG)) -# - -# list of c++ source files: -# -CCFILES := $(wildcard *.cc) #$(shell ls *.cc $(ERROR_LOG)) -# - -# list of other source files: -# -EXTRA_SOURCE_FILES = $(shell ls *.y *.l $(ERROR_LOG)) -# # list of distribution files: # -DISTFILES = .version Makefile $(HHFILES) $(CCFILES) $(EXTRA_SOURCE_FILES) +DISTFILES = .version Makefile $(ALL_SOURCES) # # list of custom libraries: # # yes, i know about the -L and -l options, -# but these libraries get rebuild when needed. +# but these libraries get rebuilt when needed. CUSTOMLIBES = $(LIBLILY) $(LIBFLOWER) LOADLIBES += @@ -84,19 +67,15 @@ include ./$(depth)/make/Targets.make include ./$(depth)/make/Rules.make # -# explicit dependencies: (how to do auto?) -# -# ugh -#$(outdir)/version.cc: check-flower-version $(lily-version) - - -mylexer.cc: $(outdir)/parser.hh # sic +# force these: Make can't know these have to be generated in advance +my-lily-lexer.cc: $(outdir)/parser.hh lexer.l: $(outdir)/parser.hh + # # list of depend files: # -DEPFILES = $(shell ls $(depdir)/*.dep $(ERROR_LOG)) +DEPFILES = $(wildcard $(depdir)/*.dep) # # auto dependencies: diff --git a/lily/input-staff.cc b/lily/input-staff.cc index 8305a094a9..2d42e2a1ba 100644 --- a/lily/input-staff.cc +++ b/lily/input-staff.cc @@ -14,12 +14,11 @@ #include "complex-staff.hh" #include "lyric-staff.hh" -#include "lexer.hh" +#include "my-lily-lexer.hh" Input_staff::Input_staff(String s) { - score_wide_music_p_ =0; type= s; defined_ch_c_l_ = 0; } @@ -31,7 +30,7 @@ Input_staff::add(Input_music*m) } Staff* -Input_staff::parse(Score*score_l, Input_music *default_score_wide) +Input_staff::parse(Score*score_l) { Staff *p=0; if (type == "melodic") @@ -49,9 +48,6 @@ Input_staff::parse(Score*score_l, Input_music *default_score_wide) Voice_list vl = i->convert(); p->add(vl); } - Voice_list vl = (score_wide_music_p_) ? score_wide_music_p_->convert() - : default_score_wide->convert(); - p->add(vl); return p; } @@ -61,8 +57,6 @@ Input_staff::Input_staff(Input_staff const&s) add(i->clone()); defined_ch_c_l_ = s.defined_ch_c_l_; type = s.type; - score_wide_music_p_ = (s.score_wide_music_p_) ? - s.score_wide_music_p_->clone() : 0; } void @@ -75,14 +69,6 @@ Input_staff::print() const mtor << "}\n"; #endif } -void -Input_staff::set_score_wide(Input_music *m_p) -{ - delete score_wide_music_p_; - score_wide_music_p_ = m_p; -} - Input_staff::~Input_staff() { - delete score_wide_music_p_; } diff --git a/lily/keyword.cc b/lily/keyword.cc index 14903cfb61..965630964e 100644 --- a/lily/keyword.cc +++ b/lily/keyword.cc @@ -5,14 +5,14 @@ #include #include "glob.hh" -#include "lexer.hh" +#include "my-lily-lexer.hh" //#include "mudobs.hh" //#include "gram.hh" /* for the keyword table */ struct Keyword_ent { - const char *name; + char const *name; int tokcode; }; @@ -21,16 +21,16 @@ struct Keyword_table Keyword_ent *table; int maxkey; Keyword_table(Keyword_ent *); - int lookup(const char *s) const; + int lookup(char const *s) const; }; /* for qsort */ int - tabcmp(const void * p1, const void * p2) + tabcmp(void const * p1, void const * p2) { - return strcmp(((const Keyword_ent *) p1)->name, - ((const Keyword_ent *) p2)->name); + return strcmp(((Keyword_ent const *) p1)->name, + ((Keyword_ent const *) p2)->name); } Keyword_table::Keyword_table(Keyword_ent *tab) @@ -48,7 +48,7 @@ Keyword_table::Keyword_table(Keyword_ent *tab) lookup with binsearch, return tokencode. */ int -Keyword_table::lookup(const char *s)const +Keyword_table::lookup(char const *s)const { int lo, hi, diff --git a/lily/lexerinit.cc b/lily/lexerinit.cc index 2eb9ed4e50..c118bbe229 100644 --- a/lily/lexerinit.cc +++ b/lily/lexerinit.cc @@ -10,13 +10,13 @@ #include #include "proto.hh" #include "plist.hh" -#include "lexer.hh" +#include "my-lily-lexer.hh" #include "debug.hh" #include "main.hh" #include "source-file.hh" #include "source.hh" -My_flex_lexer *lexer=0; +My_lily_lexer *lexer=0; int yylex() { diff --git a/lily/note.cc b/lily/note.cc index 267a0de696..9c26c57f08 100644 --- a/lily/note.cc +++ b/lily/note.cc @@ -2,7 +2,7 @@ could use cleanup */ #include -#include "lexer.hh" +#include "my-lily-lexer.hh" #include "string.hh" #include "real.hh" #include "debug.hh" @@ -10,7 +10,7 @@ #include "command-request.hh" #include "voice.hh" -#include "identparent.hh" +#include "identifier.hh" #include "varray.hh" #include "text-def.hh" #include "parseconstruct.hh" diff --git a/make/Variables.make b/make/Variables.make index 3c74750c92..8c54e9fba0 100644 --- a/make/Variables.make +++ b/make/Variables.make @@ -27,19 +27,19 @@ lily_bindir = ./$(depth)/bin distdir = ./$(depth)/$(DIST_NAME) module-distdir = ./$(depth)/$(MODULE_DIST_NAME) depdir = $(outdir) -flowerout = ./$(depth)/flower/lib/$(outdir) +flowerout = ./$(depth)/flower/$(outdir) libout = ./$(depth)/lib/$(outdir) libdir = $(outdir) lilyout = ./$(depth)/lily/$(outdir) mi2muout = ./$(depth)/mi2mu/$(outdir) makeout = ./$(depth)/make/$(outdir) -flower-dir = ./$(depth)/flower/lib +flower-dir = ./$(depth)/flower lib-dir = ./$(depth)/lib lily-dir = ./$(depth)/lily mi2mu-dir = ./$(depth)/mi2mu make-dir = ./$(depth)/make include-lib = ./$(depth)/lib/include -include-flower = ./$(depth)/flower/lib/include +include-flower = ./$(depth)/flower/include # # user settings: @@ -53,6 +53,9 @@ BUILD = $(shell cat $(build)) INCREASE_BUILD = echo `expr \`cat $(build)\` + 1` > .b; mv .b $(build) # +# ugh, for win32 make +export CXX + # the version: # VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)$(MY_PATCH_LEVEL) @@ -106,7 +109,7 @@ mi2mu-version = $(mi2muout)/version.hh # custom libraries: # -LIBFLOWER = $(depth)/flower/lib/$(outdir)/$(LIB_PREFIX)flower$(LIB_SUFFIX) +LIBFLOWER = $(depth)/flower/$(outdir)/$(LIB_PREFIX)flower$(LIB_SUFFIX) LIBLILY = $(depth)/lib/$(outdir)/$(LIB_PREFIX)lily$(LIB_SUFFIX) # @@ -129,6 +132,9 @@ AR_COMMAND = $(AR) $(ARFLAGS) $@ RANLIB_COMMAND=$(RANLIB) $@ # compiler: # + +DO_CXX_COMPILE=$(DODEP)\ + $(CXX) -c $(CXXFLAGS) $(CXX_OUTPUT_OPTION) # "CC = $(CC)" # "CXX = $(CXX)" # @@ -161,3 +167,4 @@ LIBRARY = $(LIB_PREFIX)$(NAME)$(LIB_SUFFIX) STRIPDEBUG=true #replace to do stripping of certain objects +DISTFILES=$(EXTRA_DISTFILES) Makefile $(ALL_SOURCES)