diff --git a/acinclude.m4 b/acinclude.m4 index baa64691d..709369ece 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -156,6 +156,17 @@ AC_ARG_WITH(default-oled-theme, [default_oled_theme=""]) AC_DEFINE_UNQUOTED([DEFAULT_OLED_THEME], ["$default_oled_theme"], [Default theme for oled.]) +# webif content +AC_ARG_WITH(webif, + AS_HELP_STRING([--without-webif], [disable installation of webif content within defined public httpd path provided by yWeb @<:@default it is enabled@:>@]), + [ENABLE_WEBIF="$withval"], + [ENABLE_WEBIF="yes"]) +AM_CONDITIONAL(ENABLE_WEBIF,test "$ENABLE_WEBIF" = "yes") +if test "$ENABLE_WEBIF" = "yes"; then + AC_DEFINE(ENABLE_WEBIF, 1, [Enable installation of webif content within defined public httpd path provided by yWeb.]) +fi + + AC_MSG_CHECKING(target) if test "$TARGET" = "native"; then diff --git a/data/Makefile.am b/data/Makefile.am index b816ff3d1..b6281337e 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -15,7 +15,6 @@ SUBDIRS = \ weather \ webradio \ webtv \ - y-web \ zapit if ENABLE_LUA @@ -27,3 +26,8 @@ if ENABLE_GRAPHLCD SUBDIRS += \ oled endif + +if ENABLE_WEBIF +SUBDIRS += \ + y-web +endif