xerces: add optional libcurl support
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 2 Mar 2011 10:56:03 +0000 (11:56 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 2 Mar 2011 10:56:03 +0000 (11:56 +0100)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/xerces/xerces.mk

index 9a22499437d8f16f3c7796206e1efa403ee4af4b..ffd874bf0b1eb2e404169d44ad26a91ae3fe8d1e 100644 (file)
@@ -10,7 +10,6 @@ XERCES_MAKE = $(MAKE1)
 XERCES_INSTALL_STAGING = YES
 XERCES_CONF_OPT = --enable-shared \
                  --disable-threads \
-                 --disable-network \
                  --with-gnu-ld
 
 ifeq ($(BR2_PACKAGE_LIBICONV),y)
@@ -18,4 +17,11 @@ XERCES_CONF_ENV += LIBS=-liconv
 XERCES_DEPENDENCIES += libiconv
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+XERCES_CONF_OPT += --enable-netaccessor-curl
+XERCES_DEPENDENCIES += libcurl
+else
+XERCES_CONF_OPT += --disable-network
+endif
+
 $(eval $(call AUTOTARGETS,package,xerces))