Added check for libgtop2 if necessary.
More operating systems supported. (Old svn revision: 289)master
parent
6c8489ee65
commit
bb67a0a768
44
configure.ac
44
configure.ac
|
@ -9,7 +9,7 @@ AC_INIT([panel-plugin/netload.c])
|
||||||
|
|
||||||
AM_CONFIG_HEADER([config.h])
|
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
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
@ -21,7 +21,23 @@ AC_PROG_LIBTOOL
|
||||||
dnl Check for standard header files
|
dnl Check for standard header files
|
||||||
AC_HEADER_STDC
|
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
|
case $host_os in
|
||||||
*linux*)
|
*linux*)
|
||||||
OS=linux
|
OS=linux
|
||||||
|
@ -35,29 +51,13 @@ case $host_os in
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo ""
|
OS=libgtop2
|
||||||
echo "Sorry, $host_os is not supported yet."
|
|
||||||
echo ""
|
dnl Check if libgtop2 is available
|
||||||
exit 1
|
INIT_LIBGTOP(2.0.0)
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
dnl Check for debugging support
|
||||||
BM_DEBUG_SUPPORT
|
BM_DEBUG_SUPPORT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue