File enscript-automake.diff of Package enscript

From: Jan Engelhardt <jengelh@inai.de>
Date: 2012-05-29 18:28:39.856914373 +0200

automake 1.12 no longer supports pre-ANSI.

---
 afmlib/Makefile.am |    2 +-
 configure.in       |    1 -
 src/Makefile.am    |    2 --
 3 files changed, 1 insertion(+), 4 deletions(-)

Index: enscript-1.6.4/afmlib/Makefile.am
===================================================================
--- enscript-1.6.4.orig/afmlib/Makefile.am
+++ enscript-1.6.4/afmlib/Makefile.am
@@ -23,7 +23,7 @@
 # Boston, MA 02111-1307, USA.
 #
 
-AUTOMAKE_OPTIONS = ansi2knr
+AM_CPPFLAGS = -DPROTOTYPES
 
 noinst_LIBRARIES = libafm.a
 libafm_a_SOURCES = afm.c afmparse.c strhash.c e_88591.c e_88592.c	\
Index: enscript-1.6.4/configure.in
===================================================================
--- enscript-1.6.4.orig/configure.in
+++ enscript-1.6.4/configure.in
@@ -30,7 +30,6 @@ if test "X$CC" = "X"; then
 fi
 
 AC_ISC_POSIX
-AM_C_PROTOTYPES
 
 AC_C_CONST
 AC_FUNC_ALLOCA
Index: enscript-1.6.4/src/Makefile.am
===================================================================
--- enscript-1.6.4.orig/src/Makefile.am
+++ enscript-1.6.4/src/Makefile.am
@@ -24,8 +24,6 @@
 # Boston, MA 02111-1307, USA.
 #
 
-AUTOMAKE_OPTIONS = ansi2knr
-
 SUBDIRS = tests
 
 bin_PROGRAMS = enscript mkafmmap
openSUSE Build Service is sponsored by