[sword-devel] [patch] curl cflags

Willem van Engen wvengen at stack.nl
Tue Aug 17 06:29:25 MST 2004


Hi,

while update the freebsd port of sword to 1.5.7 (finally) I encountered 
a problem with curl includes; compilation would error out complaining 
that it couldn't find the curl headers, which are in 
/usr/local/include/curl. Would the following change make sense? It fixes 
the problem for me.

Regards,
- Willem

--- configure.ac.orig   Tue Aug 17 13:48:26 2004
+++ configure.ac        Tue Aug 17 13:48:53 2004
@@ -151,8 +151,8 @@
         echo "curl found - remote install options available"
         CURL_CFLAGS=`$CURL_CONFIG --cflags`
         CURL_LIBS=`$CURL_CONFIG --libs`
-       CXXFLAGS="$CXXFLAGS -DCURLAVAILABLE"
-       CFLAGS="$CFLAGS -DCURLAVAILABLE"
+       CXXFLAGS="$CXXFLAGS -DCURLAVAILABLE $CURL_CFLAGS"
+       CFLAGS="$CFLAGS -DCURLAVAILABLE $CURL_CFLAGS"
      fi
  fi


More information about the sword-devel mailing list