From 1527fa6232bdc4d5124bbc51f4e1414009c90250 Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 18 Nov 2009 07:58:28 +0000 Subject: [PATCH] improve test for gnustep make git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@29032 72102866-910b-0410-8b05-ffd578937521 --- configure | 9 +++++++++ configure.ac | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/configure b/configure index 6effaaf..70d798d 100755 --- a/configure +++ b/configure @@ -1353,6 +1353,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" +if test -z "$GNUSTEP_MAKEFILES"; then + GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null` + export GNUSTEP_MAKEFILES +fi + if test -z "$GNUSTEP_MAKEFILES"; then { { echo "$as_me:$LINENO: error: You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!" >&5 echo "$as_me: error: You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!" >&2;} @@ -1405,6 +1410,10 @@ if test "$postgres_topdir" != "no"; then LIBD="$LIBD -L$postgres_topdir/lib" fi +# Call AC_CHECK_HEADERS here as a workaround for a configure bug/feature +# which messes up all subsequent tests if the first occurrence in the +# file does not get called ... as would otherwise be the case if jdbc +# support is disabled. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' diff --git a/configure.ac b/configure.ac index 0a2bc1f..8ccfb72 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,11 @@ dnl Process this file with autoconf to produce configure. AC_INIT(SQLClient.h) AC_CONFIG_HEADER(config.h) +if test -z "$GNUSTEP_MAKEFILES"; then + GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null` + export GNUSTEP_MAKEFILES +fi + if test -z "$GNUSTEP_MAKEFILES"; then AC_MSG_ERROR([You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!]) else