Display counter only with new mail animation in debug mode
[dockapps/wmnotify.git] / configure.ac
index 35b441a..c62a19b 100644 (file)
@@ -1,24 +1,19 @@
-# configure.in -- Process this file with autoconf to produce configure.
+# configure.ac -- Process this file with autoconf to produce configure.
 
 dnl Initialization stuff.
-AC_INIT(wmnotify, 0.3.2)
-AC_CONFIG_AUX_DIR(config)
+AC_INIT(wmnotify, 1.1.0)
+AC_CONFIG_AUX_DIR(build-aux)
+AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_SRCDIR(src/wmnotify.c)
 AM_CONFIG_HEADER(config.h:config-h.in)
 dnl Checking if the NEWS file has been updated to reflect the current version.
 AM_INIT_AUTOMAKE(check-news)
+AM_SILENT_RULES([yes])
 
 dnl Testing the C compiler.
-dnl AC_PROG_CC
-AM_PROG_CC_C_O
+AC_PROG_CC
 AC_LANG_C
 
-dnl Checking for header files.
-AC_HEADER_STDC
-AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(stdlib.h unistd.h errno.h assert.h)
-AC_CHECK_HEADERS(string.h strings.h)
-
 dnl Checking for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_TYPE_PID_T
@@ -28,7 +23,8 @@ dnl Basic CFLAGS values
 CFLAGS="${CFLAGS} -Wall"
 
 dnl Checking for POSIX threads library.
-ACX_PTHREAD(CC="${PTHREAD_CC}", , echo "Can't find POSIX threads library"; exit 1 )
+ACX_PTHREAD([CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LDFLAGS="$PTHREAD_LIBS $LDFLAGS" CC="$PTHREAD_CC"],
+            [AC_MSG_ERROR([POSIX thread support required])])
 
 dnl Trying to locate the X window system's includes and libraries, and sets the
 dnl variables x_includes and x_libraries to their locations. Also adds the
@@ -82,8 +78,8 @@ else
        AC_MSG_RESULT(no)
 fi
 
-CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} ${SNDFILE_CFLAGS} ${OPENSSL_CFLAGS}"
-LIBS="${PTHREAD_LIBS} ${SNDFILE_LIBS} ${OPENSSL_LIBS} ${LIBS}"
+CFLAGS="${CFLAGS} ${SNDFILE_CFLAGS} ${OPENSSL_CFLAGS}"
+LIBS="${SNDFILE_LIBS} ${OPENSSL_LIBS} ${LIBS}"
 
 AC_SUBST(CFLAGS)
 AC_SUBST(LIBS)