Fix compilation when modules are selected or not, should fix buildbot spam :p
authorFlorian Fainelli <florian@openwrt.org>
Sun, 4 Mar 2007 23:55:41 +0000 (23:55 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 4 Mar 2007 23:55:41 +0000 (23:55 +0000)
SVN-Revision: 6520

net/freeradius/Makefile

index cf7b537ad5aa8c41e61acf1a486343fde23bfba7..7b684fac0fff6909b2dc556af96bb6a586852944 100644 (file)
@@ -271,15 +271,21 @@ else
   PKG_CONFIGURE_OPTIONS+= --without-rlm_sql_postgresql
 endif
 
-ifeq ($(CONFIG_PACKAGE_freeradius-mod-eap-tls),)
+ifneq ($(CONFIG_PACKAGE_freeradius-mod-eap-tls),)
+  PKG_CONFIGURE_OPTIONS+= --with-rlm_eap_tls
+else
   PKG_CONFIGURE_OPTIONS+= --without-rlm_eap_tls
 endif
 
-ifeq ($(CONFIG_PACKAGE_freeradius-mod-eap-peap),)
+ifneq ($(CONFIG_PACKAGE_freeradius-mod-eap-peap),)
+  PKG_CONFIGURE_OPTIONS+= --with-rlm_eap_peap
+else
   PKG_CONFIGURE_OPTIONS+= --without-rlm_eap_peap
 endif
 
-ifeq ($(CONFIG_PACKAGE_freeradius-mod-eap-ttls),)
+ifneq ($(CONFIG_PACKAGE_freeradius-mod-eap-ttls),)
+  PKG_CONFIGURE_OPTIONS+= --with-rlm_eap_ttls
+else
   PKG_CONFIGURE_OPTIONS+= --without-rlm_eap_ttls
 endif