]> git.donarmstrong.com Git - lilypond.git/commitdiff
* Documentation/windows/zlily-profile.sh:
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 18 Jun 2002 15:46:03 +0000 (15:46 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 18 Jun 2002 15:46:03 +0000 (15:46 +0000)
* Documentation/windows/post-lilypond.sh: Assume normal
prefix=/usr for lilypond.

* lily/musical-request.cc (length_mom): Display origin with error.

* lily/lily-guile.cc (ly_pair_p): [PARANOID]: Check for freed
cells.

* lily/part-combine-music-iterator.cc (get_state): Bugfix: use
ly_symbol2scm to get a scm symbol (rather than ly_str02scm).

* aclocal.m4:
* autogen.sh: Regenerate.

* Documentation/topdocs/INSTALL.texi:
* configure.in:
* stepmake/configure.in:
* stepmake/aclocal.m4: Revert autoconf upgrade.  Autoconf 2.53 has
a serious bug wrt AC_CONFIG_AUX_DIR (reported).  Creating
./configure once again requires autoconf == 2.13.

* stepmake/autogen.sh: Check for autoconf == 2.13.

16 files changed:
ChangeLog
Documentation/topdocs/INSTALL.texi
Documentation/windows/post-lilypond.sh
Documentation/windows/zlily-profile.sh
VERSION
aclocal.m4
autogen.sh
configure.in
lily/include/lily-guile.hh
lily/lily-guile.cc
lily/musical-request.cc
lily/part-combine-music-iterator.cc
make/lilypond-vars.make
stepmake/aclocal.m4
stepmake/autogen.sh
stepmake/configure.in

index dce7808ecbda4f4808ad313fea31685e0564ab97..a1987a81cd57440ea6f60c1a2b35d6d965b0fe04 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,31 @@
+2002-06-18  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * Documentation/windows/zlily-profile.sh:
+       * Documentation/windows/post-lilypond.sh: Assume normal
+       prefix=/usr for lilypond.
+
+       * lily/musical-request.cc (length_mom): Display origin with error.
+
+       * input/test/duration-check.ly: New file.
+
+       * lily/lily-guile.cc (ly_pair_p): [PARANOID]: Check for freed
+       cells.
+
+       * lily/part-combine-music-iterator.cc (get_state): Bugfix: use
+       ly_symbol2scm to get a scm symbol (rather than ly_str02scm).
+
+       * aclocal.m4:
+       * autogen.sh: Regenerate.
+       
+       * Documentation/topdocs/INSTALL.texi: 
+       * configure.in: 
+       * stepmake/configure.in:
+       * stepmake/aclocal.m4: Revert autoconf upgrade.  Autoconf 2.53 has
+       a serious bug wrt AC_CONFIG_AUX_DIR (reported).  Creating
+       ./configure once again requires autoconf == 2.13.
+
+       * stepmake/autogen.sh: Check for autoconf == 2.13.
+
 2002-06-18  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
        * lily/parser.yy (open_request_parens): add input locations to
index df2bc044d089d335ab5f700c8c2e101d272e76e3..be3b0ca6d326684f0543d165030515f25bb85aac 100644 (file)
@@ -377,7 +377,7 @@ You can also compile a RPM for SUSE yourself.  A spec file is in
 the Red Hat RPM.
 
 You must have the following packages: guile tcsh tetex te_latex te_kpath
-te_mpost libpng python gpp libgpp gettext autoconf253 netpbm libnetpb
+te_mpost libpng python gpp libgpp gettext autoconf netpbm libnetpb
 gs_serv gs_lib gs_fonts guile
 
 @subsection Slackware
index a94028275c769556af15239454571b39356a290a..113a1764769ae0533105b9325f5ae0f6bc92dc7c 100644 (file)
@@ -5,8 +5,9 @@
 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print'`
 # rm /tmp/.lilypond-install
 
-rm -f /usr/lilypond
-lily=@prefix@
-ln -s $lily /usr/lilypond
+# needed for prefix=lilypond-x.y.z 
+#rm -f /usr/lilypond
+#lily=@prefix@
+#ln -s $lily /usr/lilypond
 
 
index 36e5b189a3d5e285584b64b1330848844361b013..1fa9d011cfd968b7f43bd4216d16913c80c38251 100644 (file)
@@ -25,8 +25,9 @@ export WINDOWS_TEXINPUTS WINDOWS_TFMFONTS WINDOWS_MFINPUTS
 GS_FONTPATH="$WINDOWS_GS_FONTPATH"
 GS_LIB="$WINDOWS_GS_LIB"
 
-PATH="/usr/lilypond/bin:$PATH"
-PATH="@prefix@/bin:$PATH"
+# needed for prefix=lilypond-x.y.z 
+# PATH="/usr/lilypond/bin:$PATH"
+# PATH="@prefix@/bin:$PATH"
 
 cat <<EOF
 Congratulations and welcome to GNU LilyPond.
diff --git a/VERSION b/VERSION
index 6370030c32c2fdaa583245caa4a3818facd60590..35b1dcf17192b7a1c89081f656bde7360ecc92bd 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=5
 PATCH_LEVEL=61
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=jcn1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index cf597f3789cc1549685955f74dea0e1d72e43a06..13de08358ced5b3880b6438a19a0feb7606ef6b7 100644 (file)
@@ -196,7 +196,7 @@ AC_DEFUN(STEPMAKE_COMPILE, [
 ])
 
 AC_DEFUN(STEPMAKE_CXX, [
-    AC_LANG([C++])
+    AC_LANG_CPLUSPLUS
     AC_PROG_CXX
     STEPMAKE_OPTIONAL_REQUIRED(CXX, c++, $1)
 
@@ -251,8 +251,7 @@ AC_DEFUN(STEPMAKE_END, [
     AC_SUBST(OPTIONAL)
     AC_SUBST(REQUIRED)
     
-    AC_CONFIG_FILES([$CONFIGFILE.make:config.make.in])
-AC_OUTPUT
+    AC_OUTPUT($CONFIGFILE.make:config.make.in)
 
     
     if test -n "$OPTIONAL"; then
@@ -295,7 +294,7 @@ AC_DEFUN(STEPMAKE_FLEX, [
     # AC_PROG_LEX
     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
 
-    # AC_PROG_LEX()
+    # AC_DECL_YYTEXT
     # ugh, ugh
     ac_cv_prog_lex_root=lex.yy
     STEPMAKE_PROGS(FLEX, flex, $1)
@@ -303,7 +302,7 @@ AC_DEFUN(STEPMAKE_FLEX, [
 
 
 AC_DEFUN(STEPMAKE_FLEXLEXER, [
-    AC_CHECK_HEADERS([FlexLexer.h],[true],[false])
+    AC_HAVE_HEADERS(FlexLexer.h, true, false)
     if test $? -ne 0; then
        warn='FlexLexer.h (flex package)'
        STEPMAKE_ADD_ENTRY($1, $warn)
@@ -622,9 +621,9 @@ AC_DEFUN(STEPMAKE_KPATHSEA, [
     [kpathsea_b=$with_kpathsea])
 
     if test "$kpathsea_b" != "no"; then        
-       AC_CHECK_HEADERS([kpathsea/kpathsea.h])
+       AC_HAVE_HEADERS(kpathsea/kpathsea.h)
        AC_CHECK_LIB(kpathsea, kpse_find_file)
-       AC_CHECK_FUNCS(kpse_find_file,, AC_MSG_ERROR([Cannot find kpathsea functions.  You should install kpathsea; see INSTALL.txt.  Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform.]))
+       AC_CHECK_FUNCS(kpse_find_file,, AC_ERROR(Cannot find kpathsea functions.  You should install kpathsea; see INSTALL.txt.  Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform.))
     fi
     AC_MSG_CHECKING(whether to use kpathsea)
     if test "$kpathsea_b" != no; then
@@ -774,7 +773,7 @@ AC_DEFUN(STEPMAKE_PERL, [
 
 
 AC_DEFUN(STEPMAKE_PYTHON_DEVEL, [
-    AC_CHECK_HEADERS([python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h],[PYTHON_HEADER=yes])
+    AC_HAVE_HEADERS(python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h, PYTHON_HEADER=yes)
     if test -z "$PYTHON_HEADER"; then
        warn='python.h (python-devel, python-dev or libpython-dev package)'
        STEPMAKE_ADD_ENTRY($1, $warn)
index c9128e998d645348b257b95eed49182364f62fc0..4cc98ffdf74c0916988e4b13f8d33c5c52ade96e 100755 (executable)
@@ -6,23 +6,23 @@
 
 srcdir=`dirname $0`
 
-# Be paranoid: check for autoconf >= 2.50
+# Be paranoid: check for autoconf == 2.13
 # Some setups have both autoconf 2.13 and 2.50 available through
 # a wrapper script: /usr/bin/autoconf.
-# This wrapper may correctly autoselect autoconf 2.50, but it
+# This wrapper may incorrectly autoselect autoconf 2.50, but it
 # advertises itself as autoconf 2.13.
 # If you have such a setup, invoke this script as:
-#   autoconf=autoconf ./autogen.sh
-for i in in autoconf autoconf2.50 false; do
+#   autoconf=autoconf2.13 ./autogen.sh
+for i in autoconf autoconf2.13 false; do
   version=`$i --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
-  if test "0$version" -ge 250; then
+  if test "0$version" -eq 213; then
     autoconf=$i
     break
   fi
 done
 
 if test -z "$autoconf"; then
-    echo "ERROR: Please install autoconf 2.50 or newer"
+    echo "ERROR: Please install autoconf 2.13"
     exit 1
 fi
 
index c995b8e803e53b2eb34ea89be9adaaa929c799fd..6f70a28f4396e2b2aff561cf1aa251a83604b037 100644 (file)
@@ -2,8 +2,7 @@ dnl configure.in   -*-shell-script-*-
 dnl Process this file with autoconf to produce a configure script. 
 
 # Bootstrap the init proces.  List a file identifies your package.
-AC_INIT
-AC_CONFIG_SRCDIR([make/lilypond.lsm.in])
+AC_INIT(make/lilypond.lsm.in)
 AC_CONFIG_HEADER($CONFIGFILE.h:config.hh.in)
 
 # Bootstrap StepMake configure
@@ -36,8 +35,8 @@ STEPMAKE_MAKEINFO(REQUIRED)
 STEPMAKE_PYTHON_DEVEL(REQUIRED)
 
 
-# AC_CHECK_HEADERS([limits.h malloc.h string.h unistd.h values.h])
-AC_CHECK_HEADERS([assert.h sys/stat.h])
+# AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
+AC_HAVE_HEADERS(assert.h sys/stat.h)
 AC_HEADER_STAT
 
 AC_FUNC_MEMCMP
index 7fb9c8025ba51f469f6c2a140e7a2e1ec50c0984..6b13fc9eb8f491fafae72875a6c3621485d17a19 100644 (file)
@@ -23,6 +23,7 @@
 #include "config.h"
 #include "drul-array.hh"
 
+
 /* Guile 1.3.4 compatibility */
 #if GUILE_MINOR_VERSION < 4
 
@@ -69,7 +70,6 @@
 #endif
 
 
-
 #include "direction.hh"
 #include "flower-proto.hh"
 
@@ -168,7 +168,12 @@ inline SCM ly_assoc_front_x(SCM alist, SCM key, SCM val)
 {
   return scm_acons(key, val, scm_assoc_remove_x (alist, key));
 }
+#ifdef PARANOID
+#define gh_pair_p ly_pair_p
+bool ly_pair_p (SCM x);
+#else
 inline bool ly_pair_p (SCM x) { return SCM_NFALSEP (scm_pair_p (x)); }
+#endif
 inline bool ly_symbol_p (SCM x) { return SCM_SYMBOLP (x); }
 inline bool ly_number_p (SCM x) { return SCM_NUMBERP (x); }
 inline bool ly_procedure_p (SCM x) { return SCM_NFALSEP (scm_procedure_p(x)); }
index d490e50f60c7347f51aec5e74ba7811f243e9eee..dbd2a90a5688f0944637af12875f2e1f1d35be4e 100644 (file)
 #include "pitch.hh"
 #include "dimensions.hh"
 
+#ifdef PARANOID
+#include <libguile/gc.h>
+#undef gh_pair_p
+bool
+ly_pair_p (SCM x)
+{
+#if 0
+  assert (!SCM_CONSP (x) || (*(scm_t_bits*) SCM2PTR (SCM_CAR (x))) != scm_tc_free_cell);
+  assert (!SCM_CONSP (x) || (*(scm_t_bits*) SCM2PTR (SCM_CDR (x))) != scm_tc_free_cell);
+#elif GUILE_MINOR_VERSION < 5
+  assert (!SCM_CONSP (x) || !SCM_FREEP (SCM_CAR (x)));
+  assert (!SCM_CONSP (x) || !SCM_FREEP (SCM_CDR (x)));
+#else
+  assert (!SCM_CONSP (x) || !SCM_FREE_CELL_P (SCM_CAR (x)));
+  assert (!SCM_CONSP (x) || !SCM_FREE_CELL_P (SCM_CDR (x)));
+#endif  
+  //return SCM_NFALSEP (scm_pair_p (x));
+  return gh_pair_p (x); 
+}
+#define gh_pair_p ly_pair_p
+#endif
+
 SCM
 ly_last (SCM list)
 {
index 28aee7f944b917a45f9a7ebe21b922c1c0acf26d..6138a8daf90c56c0e59588b139e972eccc157cd3 100644 (file)
@@ -38,10 +38,10 @@ Rhythmic_req::length_mom () const
   if (!d)
     {
       Moment m ;
-      programming_error("Rhythmic_req has no duration");
+      //programming_error("Rhythmic_req has no duration");
+      origin ()->warning ("programming error: Rhythmic_req has no duration");
       return m;
     }
-  
   return d->length_mom ();
 }
 
index 7c6b0d6c7091149e3ad72b899cd7a9bb67ce1f3f..3e0fccef6e5e559ac7d274ba85ff1ee8931c3938 100644 (file)
@@ -132,7 +132,14 @@ get_music_info (Moment m, Music_iterator* iter, SCM *pitches, SCM *durations)
          if (Melodic_req *r = dynamic_cast<Melodic_req *> (m))
            *pitches = gh_cons (r->get_mus_property ("pitch"), *pitches);
          if (Rhythmic_req *r = dynamic_cast<Rhythmic_req *> (m))
-           *durations = gh_cons (r->get_mus_property ("duration"), *durations);
+           {
+             SCM d = r->get_mus_property ("duration");
+             if (d == SCM_EOL)
+               r->origin ()->warning ("Rhythmic_req has no duration\n");
+               else
+                 // *durations = gh_cons (r->get_mus_property ("duration"), *durations);
+                 *durations = gh_cons (d, *durations);
+           }
        }
     }
 }
@@ -202,25 +209,25 @@ Part_combine_music_iterator::get_state (Moment)
          if (first_pitches != SCM_EOL && second_pitches != SCM_EOL)
            {
              scm_sort_list_x (first_pitches,
-                              scm_primitive_eval (ly_str02scm ("Pitch::less_p")));
+                              scm_primitive_eval (ly_symbol2scm ("Pitch::less_p")));
              scm_sort_list_x (second_pitches,
-                              scm_primitive_eval (ly_str02scm ("Pitch::less_p")));
+                              scm_primitive_eval (ly_symbol2scm ("Pitch::less_p")));
 
              interval = gh_int2scm (unsmob_pitch (ly_car (first_pitches))->steps ()
                                     - unsmob_pitch (ly_car (scm_last_pair (second_pitches)))->steps ());
            }
-         
+
          if (first_durations != SCM_EOL)
            {
              scm_sort_list_x (first_durations,
-                              scm_primitive_eval (ly_str02scm ("Duration::less_p")));
+                              scm_primitive_eval (ly_symbol2scm ("Duration::less_p")));
              first_mom += unsmob_duration (ly_car (first_durations))->length_mom ();
            }
          
          if (second_durations != SCM_EOL)
            {
              scm_sort_list_x (second_durations,
-                              scm_primitive_eval (ly_str02scm ("Duration::less_p")));
+                              scm_primitive_eval (ly_symbol2scm ("Duration::less_p")));
              second_mom += unsmob_duration (ly_car (second_durations))->length_mom ();
            }
          
index 631b5dbd9a374bd5f0c587a3086422a3cdf294fc..42dc6bc303279338eb899dfe5016fbc96fd05991 100644 (file)
@@ -20,7 +20,7 @@ export TFMFONTS:=
 
 export extra_mem_top=1000000
 export extra_mem_bottom=1000000
-export pool_size=250000
+export pool_size=500000
 
 
 ifdef DEB_BUILD
index d0910b11b301eb263bfd65c47aadb01baed2e4cf..b63198794a9abc035b6b9fb951ade8e0056e43a7 100644 (file)
@@ -193,7 +193,7 @@ AC_DEFUN(STEPMAKE_COMPILE, [
 ])
 
 AC_DEFUN(STEPMAKE_CXX, [
-    AC_LANG([C++])
+    AC_LANG_CPLUSPLUS
     AC_PROG_CXX
     STEPMAKE_OPTIONAL_REQUIRED(CXX, c++, $1)
 
@@ -248,8 +248,7 @@ AC_DEFUN(STEPMAKE_END, [
     AC_SUBST(OPTIONAL)
     AC_SUBST(REQUIRED)
     
-    AC_CONFIG_FILES([$CONFIGFILE.make:config.make.in])
-AC_OUTPUT
+    AC_OUTPUT($CONFIGFILE.make:config.make.in)
 
     
     if test -n "$OPTIONAL"; then
@@ -292,7 +291,7 @@ AC_DEFUN(STEPMAKE_FLEX, [
     # AC_PROG_LEX
     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
 
-    # AC_PROG_LEX()
+    # AC_DECL_YYTEXT
     # ugh, ugh
     ac_cv_prog_lex_root=lex.yy
     STEPMAKE_PROGS(FLEX, flex, $1)
@@ -300,7 +299,7 @@ AC_DEFUN(STEPMAKE_FLEX, [
 
 
 AC_DEFUN(STEPMAKE_FLEXLEXER, [
-    AC_CHECK_HEADERS([FlexLexer.h],[true],[false])
+    AC_HAVE_HEADERS(FlexLexer.h, true, false)
     if test $? -ne 0; then
        warn='FlexLexer.h (flex package)'
        STEPMAKE_ADD_ENTRY($1, $warn)
@@ -619,9 +618,9 @@ AC_DEFUN(STEPMAKE_KPATHSEA, [
     [kpathsea_b=$with_kpathsea])
 
     if test "$kpathsea_b" != "no"; then        
-       AC_CHECK_HEADERS([kpathsea/kpathsea.h])
+       AC_HAVE_HEADERS(kpathsea/kpathsea.h)
        AC_CHECK_LIB(kpathsea, kpse_find_file)
-       AC_CHECK_FUNCS(kpse_find_file,, AC_MSG_ERROR([Cannot find kpathsea functions.  You should install kpathsea; see INSTALL.txt.  Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform.]))
+       AC_CHECK_FUNCS(kpse_find_file,, AC_ERROR(Cannot find kpathsea functions.  You should install kpathsea; see INSTALL.txt.  Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform.))
     fi
     AC_MSG_CHECKING(whether to use kpathsea)
     if test "$kpathsea_b" != no; then
@@ -771,7 +770,7 @@ AC_DEFUN(STEPMAKE_PERL, [
 
 
 AC_DEFUN(STEPMAKE_PYTHON_DEVEL, [
-    AC_CHECK_HEADERS([python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h],[PYTHON_HEADER=yes])
+    AC_HAVE_HEADERS(python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h, PYTHON_HEADER=yes)
     if test -z "$PYTHON_HEADER"; then
        warn='python.h (python-devel, python-dev or libpython-dev package)'
        STEPMAKE_ADD_ENTRY($1, $warn)
index 52245ef464724e82d621f160adb31f94ec860b33..ad9781b51c734b9dcf3ad48744054e4791b4b668 100755 (executable)
@@ -3,23 +3,23 @@
 
 srcdir=`dirname $0`
 
-# Be paranoid: check for autoconf >= 2.50
+# Be paranoid: check for autoconf == 2.13
 # Some setups have both autoconf 2.13 and 2.50 available through
 # a wrapper script: /usr/bin/autoconf.
-# This wrapper may correctly autoselect autoconf 2.50, but it
+# This wrapper may incorrectly autoselect autoconf 2.50, but it
 # advertises itself as autoconf 2.13.
 # If you have such a setup, invoke this script as:
-#   autoconf=autoconf ./autogen.sh
-for i in in autoconf autoconf2.50 false; do
+#   autoconf=autoconf2.13 ./autogen.sh
+for i in autoconf autoconf2.13 false; do
   version=`$i --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
-  if test "0$version" -ge 250; then
+  if test "0$version" -eq 213; then
     autoconf=$i
     break
   fi
 done
 
 if test -z "$autoconf"; then
-    echo "ERROR: Please install autoconf 2.50 or newer"
+    echo "ERROR: Please install autoconf 2.13"
     exit 1
 fi
 
index 4bf5091dfe0838984a7d3791e505cc93b80fddc8..1d1c3c886566cded04170da0ce8ce501d55acfed 100644 (file)
@@ -2,8 +2,7 @@ dnl configure.in   -*-shell-script-*-
 dnl Process this file with autoconf to produce a configure script. 
 
 # Bootstrap the init proces.  List a file identifies your package.
-AC_INIT
-AC_CONFIG_SRCDIR([make/stepmake.lsm.in])
+AC_INIT(make/stepmake.lsm.in)
 AC_CONFIG_HEADER($CONFIGFILE.h:config.hh.in)
 
 # Bootstrap StepMake configure
@@ -14,7 +13,7 @@ STEPMAKE_INIT
 
 # Uncomment the configuration options your package needs.
 # STEPMAKE_COMPILE
-# AC_CHECK_HEADERS([limits.h malloc.h string.h unistd.h values.h])
+# AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
 # STEPMAKE_CXX
 # STEPMAKE_GXX
 # STEPMAKE_CXXTEMPLATE