From 482f1bc7e739067eb2bf9df196d7ad79216034b7 Mon Sep 17 00:00:00 2001 From: David Pirotte Date: Wed, 17 Aug 2016 23:06:48 -0300 Subject: [PATCH 07/11] Fixing autogen.sh * autogen.sh: (a) Since we will use guile.m4 GUILE_FLAGS macro, among others, we need to fool automake wrt build-aux/config.rpath: see the comment on the top of this file for further details; (b) let's not call ./configure, rather invite users to so. --- autogen.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/autogen.sh b/autogen.sh index 3e2eae3..d4a7c4a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,15 @@ #!/bin/sh -set -e +# configure.ac uses the guile.m4 GUILE_FLAGS macro, among others, +# which needs build-aux/config.rpath which is not installed anymore by +# modern version of automake, and without it, this script will raise +# an error. For why it's needed, see the comments wtr in m4/guile.m4. +if [ ! -d "build-aux" ]; then + mkdir build-aux +fi +touch build-aux/config.rpath + autoreconf -vif -./configure "$@" -echo "Now type 'make' to compile $package." + +echo +echo "Now run ./configure --prefix=/your/prefix." -- 2.8.1