From 05f569e0aed4d7f05f9f3a9d6a6af8a7e5578a0a Mon Sep 17 00:00:00 2001 From: Paul Ramsey <pramsey@cleverelephant.ca> Date: Fri, 1 Aug 2014 23:17:00 +0000 Subject: [PATCH] Make the two-line decl check work git-svn-id: http://svn.osgeo.org/postgis/trunk@12856 b70326c6-7e19-0410-871a-916f4a2858ee --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a63adee57..4d7d7db00 100644 --- a/configure.ac +++ b/configure.ac @@ -125,10 +125,16 @@ AC_CHECK_DECL(isfinite, [], [#include <math.h>]) +dnl Clear the cache +unset ac_cv_have_decl_isfinite + AC_CHECK_DECL(isfinite, AC_DEFINE([HAVE_GNU_ISFINITE]), [], - [[#define _GNU_SOURCE],[#include <math.h>]]) + [[ + #define _GNU_SOURCE + #include <math.h> + ]]) dnl dnl MingW requires use of pwd -W to give proper Windows (not MingW) paths -- 2.40.0