From 1ed3ca1ad8893fc2cb76aa67a0830bcf52e2502c Mon Sep 17 00:00:00 2001
From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Wed, 31 Mar 2004 12:32:53 +0000
Subject: [PATCH] * configure.in: check for C language.

* lily/source-file.cc: include strstream without h.

* scm/documentation-generate.scm (string-append): use name without
.texi.

* autogen.sh (srcdir): suse fix.
---
 ChangeLog                      | 9 +++++++++
 autogen.sh                     | 2 +-
 configure.in                   | 1 +
 lily/source-file.cc            | 2 +-
 scm/documentation-generate.scm | 3 ++-
 5 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7487f2dcb5..fcd6ce2a65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2004-03-31  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+	* configure.in: check for C language.
+
+	* lily/source-file.cc: include strstream without h.
+
+	* scm/documentation-generate.scm (string-append): use name without
+	.texi.
+
+	* autogen.sh (srcdir): suse fix.
+
 	* Documentation/user/notation.itely (Ancient clefs): idem.
 
 	* Documentation/user/lilypond-book.itely (Integrating HTML and music): idem.
diff --git a/autogen.sh b/autogen.sh
index 55560b9d93..6abd4cd4aa 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -15,7 +15,7 @@ fi
 if [ ! -f autogen.sh -o stepmake/autogen.sh -nt autogen.sh ]; then
     echo "stepmake/autogen.sh is newer. Copying file." 
     cp -f stepmake/autogen.sh autogen.sh
-    exec ./autogen.sh
+    exec ./autogen.sh "$@"
 fi
 
 # Be paranoid: check for autoconf >= 2.50
diff --git a/configure.in b/configure.in
index 28e7d287f3..1948109ea3 100644
--- a/configure.in
+++ b/configure.in
@@ -36,6 +36,7 @@ STEPMAKE_LIB(REQUIRED)
 STEPMAKE_BISON(REQUIRED, 1.25)
 STEPMAKE_FLEX(REQUIRED)
 STEPMAKE_FLEXLEXER(REQUIRED)
+AC_LANG_C
 STEPMAKE_LOCALE
 STEPMAKE_GETTEXT
 STEPMAKE_MSGFMT(REQUIRED)
diff --git a/lily/source-file.cc b/lily/source-file.cc
index 79f2321412..108c68b6a2 100644
--- a/lily/source-file.cc
+++ b/lily/source-file.cc
@@ -14,7 +14,7 @@
 #if HAVE_SSTREAM
 #include <sstream>
 #else
-#include <strstream.h>
+#include <strstream>
 #define istringstream(x) istrstream(x, length ()) 
 #endif
 
diff --git a/scm/documentation-generate.scm b/scm/documentation-generate.scm
index e1f8235784..ccaa6d00ef 100644
--- a/scm/documentation-generate.scm
+++ b/scm/documentation-generate.scm
@@ -63,7 +63,8 @@
 
 (display
  (string-append
-  (texi-file-head "LilyPond program-reference" outname "(lilypond-internals.info)")
+  (texi-file-head "LilyPond program-reference" file-name
+		  "(lilypond-internals.info)")
   "
 
 @ifhtml
-- 
2.39.5