2016-11-28 03:51:04 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2019-06-07 10:30:39 +00:00
|
|
|
AC_INIT([wmail], [2.1], [wmaker-dev@googlegroups.com])
|
2019-06-07 08:52:06 +00:00
|
|
|
AC_CONFIG_HEADERS(config.h)
|
2019-06-07 08:52:23 +00:00
|
|
|
AC_CONFIG_SRCDIR([src/wmail.c])
|
|
|
|
AM_INIT_AUTOMAKE([foreign])
|
2016-11-28 03:51:04 +00:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_CC
|
2019-06-07 08:52:23 +00:00
|
|
|
AC_PROG_INSTALL
|
2016-11-28 03:51:04 +00:00
|
|
|
|
2019-06-07 08:52:20 +00:00
|
|
|
dnl Checks for pkg-config modules.
|
|
|
|
PKG_CHECK_MODULES([X11], [x11])
|
|
|
|
PKG_CHECK_MODULES([dockapp], [dockapp])
|
|
|
|
|
2016-11-28 03:51:04 +00:00
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_DIRENT
|
2019-06-12 20:37:15 +00:00
|
|
|
AC_HEADER_STDBOOL
|
2016-11-28 03:51:04 +00:00
|
|
|
AC_HEADER_STDC
|
2019-06-07 08:52:21 +00:00
|
|
|
AC_CHECK_HEADERS([limits.h strings.h sys/time.h])
|
2016-11-28 03:51:04 +00:00
|
|
|
CPPFLAGS_old="$CPPFLAGS"
|
2019-06-07 08:52:20 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $dockapp_CFLAGS $X11_CFLAGS"
|
2019-06-07 08:52:21 +00:00
|
|
|
AC_CHECK_HEADERS([libdockapp/dockapp.h dockapp.h])
|
2016-11-28 03:51:04 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS_old"
|
|
|
|
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
2019-06-07 08:52:07 +00:00
|
|
|
AC_TYPE_SIZE_T
|
2016-11-28 03:51:04 +00:00
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_FUNC_FNMATCH
|
|
|
|
AC_FUNC_UTIME_NULL
|
|
|
|
AC_FUNC_VPRINTF
|
2019-06-07 08:52:23 +00:00
|
|
|
AC_CHECK_FUNCS([strdup strstr memcpy])
|
2016-11-28 03:51:04 +00:00
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
|
|
|
|
dnl Enable Debugging?
|
2019-06-07 08:52:23 +00:00
|
|
|
AC_ARG_ENABLE(debug, [ --enable-debug enable debugging ],
|
|
|
|
enable_debug=yes, enable_debug=no)
|
|
|
|
AC_MSG_CHECKING([whether to enable debugging])
|
|
|
|
AC_MSG_RESULT([$enable_debug])
|
|
|
|
AM_CONDITIONAL([ENABLE_DEBUG], [test x$enable_debug = xyes])
|
2016-11-28 03:51:04 +00:00
|
|
|
|
|
|
|
dnl Use delt's pixmaps instead of the default ones?
|
2019-06-07 08:52:23 +00:00
|
|
|
AC_ARG_ENABLE(delt_xpms, [ --enable-delt-xpms enable delt's pixmaps ],
|
|
|
|
enable_delt_xpms=yes, enable_delt_xpms=no)
|
|
|
|
AC_MSG_CHECKING([whether to enable delt's pixmaps])
|
|
|
|
AC_MSG_RESULT([$enable_delt_xpms])
|
|
|
|
AM_CONDITIONAL([ENABLE_DELT_XPMS], [test x$enable_delt_xpms = xyes])
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile src/Makefile])
|
|
|
|
AC_OUTPUT
|