[xiph-cvs] cvs commit: m4 xiph_curl.m4

Karl Heyes karl at xiph.org
Mon Jul 21 10:33:03 PDT 2003



karl        03/07/21 13:33:03

  Modified:    .        xiph_curl.m4
  Log:
  we need to supply the curl cflags into the C preprocessor

Revision  Changes    Path
1.2       +5 -5      m4/xiph_curl.m4

Index: xiph_curl.m4
===================================================================
RCS file: /usr/local/cvsroot/m4/xiph_curl.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xiph_curl.m4	18 Jul 2003 01:09:23 -0000	1.1
+++ xiph_curl.m4	21 Jul 2003 17:33:03 -0000	1.2
@@ -31,17 +31,17 @@
 
 curl_ok="yes"
 
-ac_curl_CFLAGS="$CFLAGS"
+ac_curl_CPPFLAGS="$CPPFLAGS"
 ac_curl_LIBS="$LIBS"
-CFLAGS="$CFLAGS $CURL_CFLAGS"
-LIBS="$LIBS $CURL_LIBS"
+CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
+LIBS="$CURL_LIBS $LIBS"
 dnl
 dnl Now check if the installed libcurl is sufficiently new.
 dnl
 AC_CHECK_HEADERS([curl/curl.h],, curl_ok="no") 
 AC_MSG_CHECKING(for libcurl)
 if test "$curl_ok" = "yes"; then
-    AC_TRY_RUN([
+    AC_RUN_IFELSE([
 #include <curl/curl.h>
 int main()
 {
@@ -49,7 +49,7 @@
 }
 ],,[curl_ok="no"])
 fi
-CFLAGS="$ac_curl_CFLAGS"
+CPPFLAGS="$ac_curl_CPPFLAGS"
 LIBS="$ac_curl_LIBS"
 
 if test "$curl_ok" = "yes"; then

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list