From dd36f3cc97446d704474366e711fa0cc6ffe0917 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Sat, 27 Dec 2008 12:26:46 -0500 Subject: adding --enable-curl configuation to configure.ac Basically it apply opkg_wget.patch from OE but I add something to the configure.ac http://cgit.openembedded.net/cgit.cgi?url=openembedded/tree/packages/opkg/files/opkg_wget.patch&id=1bbdc74a5384c81d0bdeb96f6acdfef91430d35d Thanks Mike Westerhof git-svn-id: http://opkg.googlecode.com/svn/trunk@191 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 45e7b07..315e139 100644 --- a/configure.ac +++ b/configure.ac @@ -27,8 +27,15 @@ AC_PROG_LIBTOOL # Checks for libraries # check for libcurl -PKG_CHECK_MODULES(CURL, libcurl) +AC_ARG_ENABLE(curl, + AC_HELP_STRING([--enable-curl], [Enable downloading with curl + [[default=yes]] ]), + [want_curl="$enableval"], [want_curl="yes"]) +if test "x$want_curl" = "xyes"; then + PKG_CHECK_MODULES(CURL, libcurl) + AC_DEFINE(HAVE_CURL, 1, [Define if you want CURL support]) +fi dnl ********** -- cgit v0.9.1