]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Fix mmodely.test to work on Solaris 10.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 31 Jan 2009 09:33:00 +0000 (10:33 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 31 Jan 2009 09:36:35 +0000 (10:36 +0100)
* tests/mmodely.test: Define yylex, to satisfy needed symbol in
libfl.  Return from main instead of using exit, undeclared.
* THANKS: Update.
Report by Chris Hoogendyk.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
tests/mmodely.test

index 27bf4e35fd731f235276bbfe3d5830d238b906d5..6ca208c25db60b367deb731034537c54a7ce8241 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix mmodely.test to work on Solaris 10.
+       * tests/mmodely.test: Define yylex, to satisfy needed symbol in
+       libfl.  Return from main instead of using exit, undeclared.
+       * THANKS: Update.
+       Report by Chris Hoogendyk.
+
 2009-01-30  Karl Berry  <karl@freefriends.org>
 
        * lib/gnupload: Add download URL to --help output.
diff --git a/THANKS b/THANKS
index b415eab1b208852990a55615e06a07fb18efcdbe..240e3438cd44961850596de04a02551cd6379784 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -52,6 +52,7 @@ Bruce Korb            bkorb@gnu.org
 Bruno Haible           haible@ilog.fr
 Carsten Lohrke         carlo@gentoo.org
 Charles Wilson         cwilson@ece.gatech.edu
+Chris Hoogendyk                hoogendyk@bio.umass.edu
 Chris Pickett          chris.pickett@mail.mcgill.ca
 Chris Provenzano       proven@io.proven.org
 Christian Cornelssen   ccorn@cs.tu-berlin.de
index fd11ac211e09994fa1892f067347a90e2effc05d..2173523ae8128cfe1a9b78f9e688fc05663af203 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2004, 2006, 2007  Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006, 2007, 2009  Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -39,18 +39,26 @@ zardoz_SOURCES = zardoz.y joe.l
 LDADD = @LEXLIB@
 END
 
-# The point of this test is that it is not dependant on a working lex or yacc.
+# The point of this test is that it is not dependent on a working lex or yacc.
 cat > joe.c <<EOF
 int joe (int arg)
 {
     return arg * 2;
 }
 EOF
+# On systems which link in libraries non-lazily and whose linkers
+# complain about unresolved symbols by default, such as Solaris, an
+# yylex function needs to be defined to avoid an error due to an
+# unresolved symbol.
 cat > zardoz.c <<EOF
 int joe (int arg);
+int yylex (void)
+{
+    return 0;
+}
 int main (int argc, char **argv)
 {
-    exit (joe (argc));
+    return joe (argc);
 }
 EOF