1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT([wmail], [2.0], [wmaker-dev@googlegroups.com])
3 AC_CONFIG_HEADERS(config.h)
4 AC_CONFIG_SRCDIR([src/wmail.c])
5 AM_INIT_AUTOMAKE([foreign])
7 dnl Checks for programs.
11 dnl Checks for pkg-config modules.
12 PKG_CHECK_MODULES([X11], [x11])
13 PKG_CHECK_MODULES([dockapp], [dockapp])
15 dnl Checks for header files.
18 AC_CHECK_HEADERS([limits.h strings.h sys/time.h])
19 CPPFLAGS_old="$CPPFLAGS"
20 CPPFLAGS="$CPPFLAGS $dockapp_CFLAGS $X11_CFLAGS"
21 AC_CHECK_HEADERS([libdockapp/dockapp.h dockapp.h])
22 CPPFLAGS="$CPPFLAGS_old"
24 dnl Checks for typedefs, structures, and compiler characteristics.
28 dnl Checks for library functions.
32 AC_CHECK_FUNCS([strdup strstr memcpy])
34 dnl Checks for libraries.
37 AC_ARG_ENABLE(debug, [ --enable-debug enable debugging ],
38 enable_debug=yes, enable_debug=no)
39 AC_MSG_CHECKING([whether to enable debugging])
40 AC_MSG_RESULT([$enable_debug])
41 AM_CONDITIONAL([ENABLE_DEBUG], [test x$enable_debug = xyes])
43 dnl Use delt's pixmaps instead of the default ones?
44 AC_ARG_ENABLE(delt_xpms, [ --enable-delt-xpms enable delt's pixmaps ],
45 enable_delt_xpms=yes, enable_delt_xpms=no)
46 AC_MSG_CHECKING([whether to enable delt's pixmaps])
47 AC_MSG_RESULT([$enable_delt_xpms])
48 AM_CONDITIONAL([ENABLE_DELT_XPMS], [test x$enable_delt_xpms = xyes])
50 AC_CONFIG_FILES([Makefile src/Makefile])