From add7dd9f6b1bc17519d7c64282a7f2295735951c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Jul 2007 17:20:23 +0000 Subject: Build system fixes, building from top level doesn't recursively configure slv2, but slv2 is still independently packageable/buildable. Think I've finally figured out how to do recursive autohell without resorting to suicide... git-svn-id: http://svn.drobilla.net/lad/slv2@650 a436a847-0d15-0410-975c-d299462d15a1 --- configure.ac | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 91117ee..56700e1 100644 --- a/configure.ac +++ b/configure.ac @@ -29,15 +29,23 @@ AM_INIT_AUTOMAKE SLV2_SO_VERSION=${SLV2_API_CURRENT}:${SLV2_API_REVISION}:${SLV2_API_AGE} AC_SUBST(SLV2_SO_VERSION) +# This is cute... autohell FTW +builddir=`pwd` +cd $srcdir +abs_srcdir=`pwd` +cd $builddir + +SLV2_CFLAGS="-I$abs_srcdir" +SLV2_LIBS="$abs_srcdir/src/.libs/libslv2.la" +AC_SUBST(SLV2_CFLAGS) +AC_SUBST(SLV2_LIBS) + +CONFIG_H_PATH="$builddir/config/config.h" +AC_SUBST(CONFIG_H_PATH) +AC_DEFINE(CONFIG_H_PATH, ["$CONFIG_H_PATH"], [Absolute location of config.h for this build]) + # Checks for compiler AC_PROG_CC -AM_PROG_CC_C_O - -# Check pedantic other stuff autoscan says we should :) -AC_C_CONST -AC_C_INLINE -AC_HEADER_STDBOOL -AC_TYPE_SIZE_T # Library building stuff AC_PROG_LIBTOOL -- cgit v1.2.1