From 655e404e13e2b8d286ef6a9883894cfa11563b58 Mon Sep 17 00:00:00 2001 From: "Clifford T. Matthews" Date: Fri, 27 Nov 2009 12:31:18 -0700 Subject: [PATCH] Fixed to build on Fedora 11 and Fedora 12. --- Makefile.am | 2 +- README | 9 +++++++-- autogen.sh | 1 + configure.ac | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9655c11..788eb77 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,3 @@ # $Id: Makefile.am 61 2004-12-21 23:44:50Z ctm $ - +ACLOCAL_AMFLAGS = -I m4 SUBDIRS = syngen runtime test profile diff --git a/README b/README index 8c790d6..1232ee2 100644 --- a/README +++ b/README @@ -42,8 +42,13 @@ can be found during Executor's build. The easiest way is with make install To compile a 32-bit syn68k on an x86_64 system, make sure you have all -the 32-bit libraries you need (on Fedora 10 I needed to install -glibc-devel.i386 and libgcc.i386) then try this hack +the 32-bit libraries you need: + + On Fedora 10 I needed to install glibc-devel.i386 and libgcc.i386 + On Fedora 11 I needed glibc-devel.i586 and libgcc.i586 + On Fedora 12 I needed the .i686 versions of those packages + +Once you have those install, try this: ./autogen.sh CC='gcc -m32' ./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu diff --git a/autogen.sh b/autogen.sh index 57e4ac7..8b18250 100755 --- a/autogen.sh +++ b/autogen.sh @@ -4,6 +4,7 @@ set -o errexit -o nounset -o noclobber +libtoolize aclocal autoheader automake --add-missing diff --git a/configure.ac b/configure.ac index cebb425..b66f38e 100644 --- a/configure.ac +++ b/configure.ac @@ -1,13 +1,14 @@ AC_INIT(syn68k, 1.0, ctm@ardi.com) +LT_INIT AM_INIT_AUTOMAKE +AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([syngen/main.c]) AC_CONFIG_HEADERS([include/config.h]) # Checks for programs. AC_PROG_CC AM_PROG_CC_C_O -AC_PROG_RANLIB AM_PROG_AS AC_CHECK_PROG([PERL], [perl], [perl])