chiark / gitweb /
finalise changelog prep. for cvs-buildpackage
[userv.git] / configure.in
index 4eb36c08855ec9ded3ae6b8f6c5d6f13c58a9189..f6f4f81e5136cc0f0ba486f9e90fdac15c11f847 100644 (file)
@@ -1,6 +1,6 @@
 #  userv - configure.in
-# 
-#  Copyright (C)1996-1997 Ian Jackson
+#
+#  Copyright (C)1996-1997,1999-2000,2003 Ian Jackson
 #   
 #  This is free software; you can redistribute it and/or modify it
 #  under the terms of the GNU General Public License as published by
@@ -41,9 +41,13 @@ AC_ARG_ENABLE(debug,
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
+AC_CHECK_PROGS(MD5SUM_SIMPLE, md5sum md5 gmd5sum)
 
 CFLAGS="$CFLAGS -D_GNU_SOURCE"
 
+AC_CHECK_LIB(socket,socket)
+AC_CHECK_FUNCS(setenv)
+
 AC_CACHE_CHECK(for EPROTO,userv_cv_hdr_eproto,
  AC_EGREP_CPP(yes,
 [
@@ -57,6 +61,19 @@ then
        AC_DEFINE(HAVE_EPROTO)
 fi
 
+AC_CACHE_CHECK(for LOG_AUTHPRIV,userv_cv_hdr_logauthpriv,
+ AC_EGREP_CPP(yes,
+[
+#include <syslog.h>
+#ifdef LOG_AUTHPRIV
+ yes
+#endif
+],userv_cv_hdr_logauthpriv=yes,userv_cv_hdr_logauthpriv=no))
+if test $userv_cv_hdr_logauthpriv = yes
+then
+       AC_DEFINE(HAVE_LOG_AUTHPRIV)
+fi
+
 AC_SUBST(OPTIMISE)
 if test "${GCC-no}" = yes; then
  OPTIMISE=-O2
@@ -142,12 +159,12 @@ DPKG_C_GCC_TRY_WARNS(-Wpointer-arith, dpkg_cv_c_gcc_warn_pointerarith)
 DPKG_C_GCC_TRY_WARNS(-Wimplicit -Wnested-externs, dpkg_cv_c_gcc_warn_implicit)
 
 if test "${GCC-no}" = yes; then
- CWARNS="${CWARNS} -Wmissing-prototypes -Wstrict-prototypes -Werror"
+ CWARNS="${CWARNS} -Wmissing-prototypes -Wstrict-prototypes"
 fi
 [CFLAGS="`echo $CFLAGS $CWARNS | sed -e 's/-O[0-9]*/$(OPTIMISE)/'`"]
 
 AC_SUBST(VERSION)
-VERSION="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' Changelog`"
+VERSION="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' debian/changelog`"
 echo will build version $VERSION
 
 AC_OUTPUT(Makefile)