1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT([wmclockmon], [0.8.1], [tnemeth@free.fr])
6 AC_CONFIG_SRCDIR([src/main.c])
7 AC_CONFIG_HEADERS([config.h])
11 dnl Checks for programs.
17 PKG_CHECK_MODULES([gtk], [gtk+-2.0])
19 dnl ===========================================
21 dnl ===========================================
23 PKG_CHECK_MODULES([x11], [x11])
24 PKG_CHECK_MODULES([xext], [xext])
25 PKG_CHECK_MODULES([xpm], [xpm])
27 dnl ===============================================
28 dnl End of stuff that uses X
29 dnl ===============================================
35 AC_ARG_ENABLE([debug],
36 [AS_HELP_STRING([--enable-debug], [turn on debugging [default=no]])])
37 AS_IF([test "$enable_debug" = yes], [
38 debug_CFLAGS="-Wall -g -ansi -pedantic"
39 AC_DEFINE([DEBUG], [1], [use debug code])
41 AC_SUBST([debug_CFLAGS])
51 SETGID_FLAGS="-g kmem -m 2755 -o root"
53 [linux*|netbsd*|openbsd*|solaris*], [],
54 [AC_MSG_ERROR([Sorry, ${host_os} is not supported yet])])
55 AC_SUBST([SETGID_FLAGS])
57 dnl Checks for header files.
58 AC_CHECK_HEADERS([fcntl.h memory.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h])
60 dnl Checks for typedefs, structures, and compiler characteristics.
64 dnl Checks for library functions.
66 AC_CHECK_FUNCS([select strtoul uname])
68 AC_CONFIG_FILES([Makefile
72 wmclockmon-config/Makefile
73 wmclockmon-cal/Makefile])