# 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])
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)
dnl# --------------------------------------------------------------------------
dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
dnl#
-if test -z "$CFLAGS"; then
+if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
if test -z "$CCOPTS"; then
- CCOPTS='-g -O2'
-dnl> if test "x$GCC" = xyes; then
-dnl> if test x$system = xLinux; then
-dnl> CCOPTS="$CCOPTS "'-O2 -fno-strength-reduce'
-dnl> fi
-dnl> fi
+ CCOPTS='-g -O2 -Wall'
fi
CFLAGS="$CCOPTS"
fi
stdint.h \
string.h \
termios.h \
+ termcap.h \
unistd.h \
sys/bitypes.h \
sys/byteorder.h \
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 \
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}