1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-02-02 15:07:36 -05:00

we need to supply the curl cflags into the C preprocessor

svn path=/trunk/m4/; revision=5159
This commit is contained in:
Karl Heyes 2003-07-21 17:33:03 +00:00
parent 52b917d2c3
commit 686bac60cf

View File

@ -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()
} }
],,[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