From 9f5e478feec24e9ff987c00e42c39da9f122c300 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 19 Apr 2012 07:53:08 +0000 Subject: [PATCH] -improving configure test for MHD based on suggestions from cy1 on IRC --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 93559e436..27fa59104 100644 --- a/configure.ac +++ b/configure.ac @@ -568,9 +568,9 @@ AC_ARG_WITH(microhttpd, AC_CHECK_DECL(MHD_OPTION_PER_IP_CONNECTION_LIMIT, AC_CHECK_LIB([microhttpd], [MHD_start_daemon], lmhd=1), - [],[#include "src/include/platform.h" + [],[#include "$srcdir/src/include/platform.h" #include ]),, - [#include "src/include/platform.h"]) + [#include "$srcdir/src/include/platform.h"]) ;; *) LDFLAGS="-L$with_microhttpd/lib $LDFLAGS" @@ -580,9 +580,9 @@ AC_ARG_WITH(microhttpd, AC_CHECK_LIB([microhttpd], [MHD_start_daemon], EXT_LIB_PATH="-L$with_microhttpd/lib $EXT_LIB_PATH" lmhd=1), - [],[#include "src/include/platform.h" + [],[#include "$srcdir/src/include/platform.h" #include ]),, - [#include "src/include/platform.h"]) + [#include "$srcdir/src/include/platform.h"]) ;; esac ], @@ -591,9 +591,9 @@ AC_ARG_WITH(microhttpd, AC_CHECK_DECL(MHD_OPTION_PER_IP_CONNECTION_LIMIT, AC_CHECK_LIB([microhttpd], [MHD_start_daemon], lmhd=1), - [],[#include "src/include/platform.h" + [],[#include "$srcdir/src/include/platform.h" #include ]),, - [#include "src/include/platform.h"])]) + [#include "$srcdir/src/include/platform.h"])]) AM_CONDITIONAL(HAVE_MHD, test x$lmhd = x1) AC_DEFINE_UNQUOTED([HAVE_MHD], $lmhd, [We have libmicrohttpd]) -- 2.25.1