]> sjero.net Git - linphone/blobdiff - configure.ac
merge patch for notification bubbles + 2nd call incoming tone notification
[linphone] / configure.ac
index 5fe32ef33749bfb48803e49b16cae3162c9b43a9..7c231b20a519eeddb5c1df056f50c12c27ee97b1 100644 (file)
@@ -145,6 +145,28 @@ else
        echo "GTK interface compilation is disabled."
 fi
 
+AC_ARG_ENABLE(notify,
+               [  --enable-notify=[yes/no]    Enable libnotify support [default=yes]],
+               [case "${enableval}" in
+                 yes) notify=true ;;
+                 no)  notify=false ;;
+                 *) AC_MSG_ERROR(bad value ${enableval} for --enable-notify) ;;
+               esac],[notify=true])
+
+dnl conditionnal build of the notify library
+if test "$gtk_ui" = "true" ; then
+       if test "$notify" = "true"; then
+               PKG_CHECK_MODULES([NOTIFY], [libnotify >= 0.7.0 ], [found_notify=yes], foo=bar)
+               case "$found_notify" in
+                 yes)
+                               AC_SUBST(NOTIFY_CFLAGS)
+                               AC_SUBST(NOTIFY_LIBS)
+                               AC_DEFINE([HAVE_NOTIFY],[1],[NOTIFY support])
+               esac
+       else
+               echo "Libnotify support is disabled."
+       fi
+fi
 
 dnl os-specific problems not handled by existing macros.
 case "$host_os" in