Commit 686bac60 authored by Karl Heyes's avatar Karl Heyes
Browse files

we need to supply the curl cflags into the C preprocessor

svn path=/trunk/m4/; revision=5159
parent 52b917d2
...@@ -31,17 +31,17 @@ fi ...@@ -31,17 +31,17 @@ fi
curl_ok="yes" curl_ok="yes"
ac_curl_CFLAGS="$CFLAGS" ac_curl_CPPFLAGS="$CPPFLAGS"
ac_curl_LIBS="$LIBS" ac_curl_LIBS="$LIBS"
CFLAGS="$CFLAGS $CURL_CFLAGS" CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
LIBS="$LIBS $CURL_LIBS" LIBS="$CURL_LIBS $LIBS"
dnl dnl
dnl Now check if the installed libcurl is sufficiently new. dnl Now check if the installed libcurl is sufficiently new.
dnl dnl
AC_CHECK_HEADERS([curl/curl.h],, curl_ok="no") AC_CHECK_HEADERS([curl/curl.h],, curl_ok="no")
AC_MSG_CHECKING(for libcurl) AC_MSG_CHECKING(for libcurl)
if test "$curl_ok" = "yes"; then if test "$curl_ok" = "yes"; then
AC_TRY_RUN([ AC_RUN_IFELSE([
#include <curl/curl.h> #include <curl/curl.h>
int main() int main()
{ {
...@@ -49,7 +49,7 @@ int main() ...@@ -49,7 +49,7 @@ int main()
} }
],,[curl_ok="no"]) ],,[curl_ok="no"])
fi fi
CFLAGS="$ac_curl_CFLAGS" CPPFLAGS="$ac_curl_CPPFLAGS"
LIBS="$ac_curl_LIBS" LIBS="$ac_curl_LIBS"
if test "$curl_ok" = "yes"; then if test "$curl_ok" = "yes"; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment