From bb67a0a768945c9f89bdca7322bc1aa6ea5feae7 Mon Sep 17 00:00:00 2001 From: Bernhard Walle Date: Sun, 17 Aug 2003 18:58:26 +0000 Subject: [PATCH] Added check for libgtop2 if necessary. More operating systems supported. (Old svn revision: 289) --- configure.ac | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/configure.ac b/configure.ac index d3a447c..25af21d 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,7 @@ AC_INIT([panel-plugin/netload.c]) AM_CONFIG_HEADER([config.h]) -AM_INIT_AUTOMAKE([xfce4-netload-plugin], [0.1.3]) +AM_INIT_AUTOMAKE([xfce4-netload-plugin], [0.1.9]) AM_MAINTAINER_MODE @@ -21,7 +21,23 @@ AC_PROG_LIBTOOL dnl Check for standard header files AC_HEADER_STDC -dnl Determine operating system +dnl Substitute in Makefiles +AC_SUBST(OS) + + +AC_CHECK_HEADERS( [sys/time.h time.h], + [], + [AC_MSG_ERROR([We need sys/time.h and time.h])] + ) + + +dnl Check for i18n support +BM_I18N([xfce4-netload], [de lt ca]) + +dnl configure the panel plugin +XFCE_PANEL_PLUGIN([XFCE4_PANEL], [3.99.2]) + +dnl dnl Determine operating system case $host_os in *linux*) OS=linux @@ -35,29 +51,13 @@ case $host_os in ) ;; *) - echo "" - echo "Sorry, $host_os is not supported yet." - echo "" - exit 1 + OS=libgtop2 + + dnl Check if libgtop2 is available + INIT_LIBGTOP(2.0.0) ;; esac -dnl Substitute in Makefiles -AC_SUBST(OS) - - -AC_CHECK_HEADERS( [sys/time.h time.h], - [], - [AC_MSG_ERROR([We need sys/time.h and time.h])] - ) - - -dnl Check for i18n support -BM_I18N([xfce4-netload], [de]) - -dnl configure the panel plugin -XFCE_PANEL_PLUGIN([XFCE4_PANEL], [3.99.2]) - dnl Check for debugging support BM_DEBUG_SUPPORT