X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=configure.in;h=8c69ffdbc2010fff510f120db0b1930a1e81579a;hp=a97feaef3e4aafe8f69f0a15d22a2f8bc530256e;hb=dc9e0a48601e4dc7b3060c1e816692f07e6be095;hpb=6958227c2a4665dabcb489d0a731659aed383ffa diff --git a/configure.in b/configure.in index a97feae..8c69ffd 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ # userv - configure.in -# -# Copyright (C)1996-1997 Ian Jackson +# +# Copyright (C)1996-1997,1999 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 +#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,7 +159,7 @@ 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)/'`"]