0001-allow-autoreconf-force.patch from bap (Barak A. Pearlmutter).
authorMatt Birkholz <puck@birchwood-abbey.net>
Wed, 11 May 2016 20:42:46 +0000 (13:42 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sun, 29 May 2016 17:19:29 +0000 (10:19 -0700)
  From: "Barak A. Pearlmutter" <barak+git@cs.nuim.ie>
  Date: Mon, 22 Jul 2013 19:58:13 +0200
  Subject: allow autoreconf force

Recombobulate slightly to allow full regeneration via the command
$ autoreconf --force

- move src/microcode/aclocal.m4 to src/microcode/mit_scheme_native_code.m4

- use single shared directory locally-defined macros (src/microcode/ for now)

The necessary local m4 macro file is explicitly included.
This is necessary because autoconf is not using automake or libtools,
so  AC_CONFIG_MACRO_DIR([.../microcode]) won't work.  Gulp.

src/configure.ac
src/microcode/configure.ac
src/microcode/mit_scheme_native_code.m4 [moved from src/microcode/aclocal.m4 with 81% similarity]

index e15b195d7acbb014bb121dfe78de607f508b246a..4b0574ba04cea065f345b68b1c39224030673008 100644 (file)
@@ -3,6 +3,10 @@ dnl Process this file with autoconf to produce a configure script.
 AC_INIT([MIT/GNU Scheme], [9.2], [bug-mit-scheme@gnu.org], [mit-scheme])
 AC_CONFIG_SRCDIR([microcode/boot.c])
 AC_CONFIG_AUX_DIR([microcode])
+# Would set m4 macro dir, but only works if automake or libtools in use.
+# Instead we include directly.
+# AC_CONFIG_MACRO_DIR([microcode])
+m4_include([microcode/mit_scheme_native_code.m4])
 AC_PROG_MAKE_SET
 
 AC_COPYRIGHT(
index b7a85a44eb6fdc67a3cc4e89f913cbc83a20dbb4..8c1ecc335247df1d92909148072e71b8f21fcc8f 100644 (file)
@@ -2,6 +2,10 @@ dnl Process this file with autoconf to produce a configure script.
 
 AC_INIT([MIT/GNU Scheme microcode], [15.3], [bug-mit-scheme@gnu.org], [mit-scheme])
 AC_CONFIG_SRCDIR([boot.c])
+# Would set m4 macro dir, but only works if automake or libtools in use.
+# Instead we include directly.
+# AC_CONFIG_MACRO_DIR([../microcode])
+m4_include([../microcode/mit_scheme_native_code.m4])
 AC_CONFIG_HEADERS([config.h])
 AC_PROG_MAKE_SET
 
similarity index 81%
rename from src/microcode/aclocal.m4
rename to src/microcode/mit_scheme_native_code.m4
index 9c9470d86aae05584fb2081c69016ffec1c15b90..3016efd59bec94d23a84e5f485740eb0696c70f2 100644 (file)
@@ -3,30 +3,22 @@
 AC_DEFUN([MIT_SCHEME_NATIVE_CODE],[
 _mit_scheme_native_code_spec=$1
 _mit_scheme_native_code_host_cpu=$2
-
-case ${_mit_scheme_native_code_spec} in
-yes|YES|y|Y)
-    case ${_mit_scheme_native_code_host_cpu} in
-    i?86)
-       AC_CHECK_DECL([__x86_64__],
-                     [_mit_scheme_native_code_host_cpu=x86_64],
-                     [_mit_scheme_native_code_host_cpu=i386])
-       ;;
-    esac
+case ${_mit_scheme_native_code_host_cpu} in
+i?86)
+    AC_CHECK_DECL([__x86_64__],[_mit_scheme_native_code_host_cpu=x86_64])
     ;;
 esac
-
 AC_MSG_CHECKING([for native-code support])
 case ${_mit_scheme_native_code_spec} in
 yes|YES|y|Y)
-    case ${_mit_scheme_native_code_host_cpu} in
+    case ${host_cpu} in
     alpha*)
        mit_scheme_native_code=alpha
        ;;
     hppa*)
        mit_scheme_native_code=hppa
        ;;
-    i386)
+    i?86)
        mit_scheme_native_code=i386
        ;;
     m68k|m680?0)