]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/autoconf/configure.in
Fix conio.h problem on Solaris
[bacula/bacula] / bacula / autoconf / configure.in
index d6fab848dd222dce7da536c049c2a5e439494db1..e72a34826b441b5a7aa0f630867256bfe549bd28 100644 (file)
@@ -200,7 +200,7 @@ AC_SUBST(GNOME_DIR)
 # wx-console (default off)
 # -------------------------------------------
 AC_ARG_ENABLE(wx-console,
-  [  --enable-wx-console      enable build of wxWidgets console [disabled]],
+  [  --enable-wx-console     enable build of wxWidgets console [disabled]],
   [if test x$enableval = xyes; then
     support_wx_console=yes
   fi])
@@ -225,6 +225,28 @@ fi
 AC_SUBST(WX_DIR)
 
 
+# -------------------------------------------
+# tray-monitor (default off)
+# -------------------------------------------
+AC_ARG_ENABLE(tray-monitor,
+  [  --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) [disabled]],
+  [if test x$enableval = xyes; then
+    support_tray_monitor=yes
+  fi])
+
+TRAY_MONITOR_DIR=
+if test x$support_tray_monitor = xyes; then
+  abc=`$PKGCONFIG --exists gtk+-2.0`
+  pkg=$?
+  if test $pkg = 0; then
+     TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
+     TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
+     AC_SUBST(TRAY_MONITOR_CPPFLAGS)
+     AC_SUBST(TRAY_MONITOR_LDFLAGS)
+     TRAY_MONITOR_DIR=src/tray-monitor
+  fi
+fi
+AC_SUBST(TRAY_MONITOR_DIR)
 
 # -------------------------------------------
 # smartalloc (default off)
@@ -966,6 +988,7 @@ AC_CHECK_HEADERS( \
        stdint.h \
        string.h \
        termios.h \
+       termcap.h \
        unistd.h \
        sys/bitypes.h \
        sys/byteorder.h \
@@ -1703,6 +1726,8 @@ AC_OUTPUT([autoconf/Make.common \
           src/gnome2-console/gnome-console.conf \
           src/wx-console/Makefile \
           src/wx-console/wx-console.conf \
+          src/tray-monitor/Makefile \
+          src/tray-monitor/tray-monitor.conf \
           src/dird/Makefile \
           src/dird/bacula-dir.conf \
           src/lib/Makefile \
@@ -1876,6 +1901,7 @@ Configuration on `date`:
   enable-smartalloc:         ${support_smartalloc} 
   enable-gnome:              ${support_gnome} ${gnome_version}
   enable-wx-console:         ${support_wx_console}
+  enable-tray-monitor:       ${support_tray_monitor}
   client-only:               ${build_client_only}
   ACL support:               ${have_acl}