webgui: mod_netconf: --with-notifications

using libwebsockets
diff --git a/src/configure b/src/configure
index 5229695..5bce59a 100755
--- a/src/configure
+++ b/src/configure
@@ -696,6 +696,7 @@
 ac_subst_files=''
 ac_user_opts='
 enable_option_checking
+with_notifications
 '
       ac_precious_vars='build_alias
 host_alias
@@ -1323,6 +1324,11 @@
    esac
   cat <<\_ACEOF
 
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-notifications    Enable notifications
+
 Some influential environment variables:
   CC          C compiler command
   CFLAGS      C compiler flags
@@ -1950,6 +1956,7 @@
 
 RELEASE=1
 
+LIBS="-lnetconf -ljson"
 
 if test "`git show > /dev/null 2>&1;echo $?`" = "0"; then
 	RCSID="-DRCSID=\\\"\$(IDGIT)\\\""
@@ -2990,6 +2997,7 @@
 
 REQS="$REQS libnetconf"
 BUILDREQS="$BUILDREQS libnetconf-devel"
+CPPFLAGS=""
 
 # Checks for header files.
 ac_ext=c
@@ -3763,6 +3771,21 @@
 
 
 
+# Check whether --with-notifications was given.
+if test "${with_notifications+set}" = set; then
+  withval=$with_notifications;
+		CPPFLAGS=" -DWITH_NOTIFICATIONS "
+		LIBS="-lwebsockets $LIBS"
+
+else
+  CPPFLAGS="$CPPFLAGS"
+
+fi
+
+
+
+
+