dnl Process this file with autoconf to produce a configure script.
dnl $Id$
-AC_INIT([WebCit], [8.29], [http://www.citadel.org/])
-
+AC_INIT([WebCit],m4_esyscmd_s([grep CLIENT_VERSION webcit.h | sed 's/[^0-9]*//g']),[http://uncensored.citadel.org])
AC_SUBST(PROG_SUBDIRS)
AC_DEFINE(PROG_SUBDIRS, [], [Program dirs])
AC_HEADER_STDC
dnl AC_HEADER_SYS_WAIT
+AC_CHECK_FUNCS(crypt gethostbyname connect flock getpwnam_r getpwuid_r getloadavg)
AC_CACHE_CHECK(
[for call semantics from getpwuid_r],
ac_cv_call_getpwuid_r,
AC_MSG_RESULT(webcit will be built without character set conversion.)
fi
-
AC_CHECK_LIB(intl, libintl_bindtextdomain, [LDFLAGS="$LDFLAGS -lintl"])
AC_CHECK_LIB(markdown,
markdown,
[
- LDFLAGS="$LDFLAGS -lmarkdown"
+ LIBS="$LIBS -lmarkdown"
AC_DEFINE(HAVE_MARKDOWN,[],[whether we have markdown message rendering])
])