wmbattery: Bump to version 2.50.
[dockapps.git] / wmbattery / configure.ac
blob0e09a84af662973d18fb5ca5f69407daf81541c6
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(wmbattery.c, 2.50)
3 AC_CONFIG_HEADER(config.h)
5 AC_CONFIG_AUX_DIR(autoconf)
7 dnl Checks for the apm device other than /proc/apm.
8 AC_CHECK_FILES(/dev/apm)
10 dnl Checks for programs.
11 AC_PROG_CC
12 AC_PROG_INSTALL
14 dnl Locate X11.
15 AC_PATH_X
16 if test "x${no_x}" = "xyes"; then
17    AC_MSG_ERROR(Can't find X windows include files and libraries)
19 if test "x${x_includes}" != "x"; then
20    CPPFLAGS="$CPPFLAGS -I`echo ${x_includes}`"
22 if test "x${x_libraries}" != "x"; then
23    LIBS="$LIBS -L`echo ${x_libraries}`"
26 dnl Checks for libraries.
27 AC_CHECK_LIB(X11, XOpenDisplay)
28 AC_CHECK_LIB(Xext, XShapeCombineMask)
29 AC_CHECK_LIB(Xpm, XpmReadFileToPixmap)
30 AC_CHECK_LIB(apm, apm_read)
32 dnl Checks for header files.
33 AC_HEADER_STDC
34 AC_CHECK_HEADERS(X11/xpm.h)
35 AC_CHECK_HEADERS(X11/extensions/shape.h)
36 AC_CHECK_HEADERS(getopt.h)
37 dnl FreeBSD needs apm_bios.h
38 AC_CHECK_HEADERS(machine/apm_bios.h)
39 dnl NetBSD and OpenBSD need apmvar.h
40 AC_CHECK_HEADERS(i386/apmvar.h)
42 dnl Checks for typedefs, structures, and compiler characteristics.
43 AC_C_CONST
45 dnl Checks for library functions.
46 AC_PROG_GCC_TRADITIONAL
47 AC_FUNC_VPRINTF
48 AC_CHECK_FUNCS(strdup)
50 AC_OUTPUT(makeinfo:autoconf/makeinfo.in)