wmmemload: call usleep() directly in main loop
[dockapps.git] / wmail / configure.in
blob454919ac82e0eb2402086d74fad7e79ff4474c49
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(src/wmail.c)
4 dnl Checks for programs.
5 AC_PROG_CC
6 AC_PROG_MAKE_SET
8 dnl Checks for header files.
9 #AC_PATH_X
10 AC_HEADER_DIRENT
11 AC_HEADER_STDC
12 AC_CHECK_HEADERS(limits.h sys/time.h)
14 dnl Checks for X installation root directory.
15 AC_PATH_XTRA
16 X_LIBRARY_PATH="$x_libraries"
17 XLIBS="-lX11 $X_EXTRA_LIBS"
18 XCFLAGS="$X_CFLAGS"
19 XLFLAGS="$X_LIBS"
21 if test -n "$includedir"; then
22         XCFLAGS="$XCFLAGS -I$includedir"
25 if test -n "$libdir"; then
26         XLIBS="$XLIBS -L$libdir"
29 CPPFLAGS_old="$CPPFLAGS"
30 CPPFLAGS="$CPPFLAGS $XCFLAGS"
31 AC_CHECK_HEADER(dockapp.h,,)
32 CPPFLAGS="$CPPFLAGS_old"
34 AC_SUBST(XCFLAGS)
35 AC_SUBST(XLFLAGS)
36 AC_SUBST(XLIBS)
37 AC_SUBST(X_LIBRARY_PATH)
39 dnl Checks for typedefs, structures, and compiler characteristics.
40 AC_C_CONST
42 dnl Checks for library functions.
43 AC_FUNC_FNMATCH
44 AC_FUNC_UTIME_NULL
45 AC_FUNC_VPRINTF
46 AC_CHECK_FUNCS(strdup strstr memcpy)
48 dnl Checks for libraries.
49 AC_CHECK_LIB(X11, XCreateGC,,,$XLFLAGS $XLIBS)
50 AC_CHECK_LIB(dockapp, DAInitialize,,,$XLFLAGS $XLIBS)
52 dnl Enable Debugging?
53 AC_ARG_ENABLE(debug,
54             [  --enable-debug     enable debugging ],, enable_debug=no)
55 if test "$enable_debug" = yes; then
56     CFLAGS="-Wall -g -DDEBUG"
59 dnl Use delt's pixmaps instead of the default ones?
60 AC_ARG_ENABLE(delt_xpms,
61                         [  --enable-delt-xpms     enable delt's pixmaps ],, enable_delt_xpms=no)
62 if test "$enable_delt_xpms" = yes; then
63         CFLAGS="$CFLAGS -DUSE_DELT_XPMS"
66 AC_OUTPUT(Makefile src/Makefile)