X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=configure.in;h=8c69ffdbc2010fff510f120db0b1930a1e81579a;hp=fb5a128a2b7f052aaa11907b453c0e2343df551d;hb=dc9e0a48601e4dc7b3060c1e816692f07e6be095;hpb=db59ee1476515a65cfcca10a3059d8ccb2d24d32 diff --git a/configure.in b/configure.in index fb5a128..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 @@ -39,7 +39,40 @@ 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, +[ +#include +#ifdef EPROTO + yes +#endif +],userv_cv_hdr_eproto=yes,userv_cv_hdr_eproto=no)) +if test $userv_cv_hdr_eproto = yes +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 @@ -126,8 +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' debian/changelog`" +echo will build version $VERSION + AC_OUTPUT(Makefile)