X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=configure.in;h=7b842ce1a93b1e9400f557e9a35c8f2b11709dad;hb=2c8651e76d5629948778fb1b3d15ccc591d14da0;hp=86ce18feb3e64dc1d3865ed24cfc0e74357e4c34;hpb=bd9a742e2fce5aef553339325fd5919ab0b61910;p=userv.git diff --git a/configure.in b/configure.in index 86ce18f..7b842ce 100644 --- a/configure.in +++ b/configure.in @@ -39,8 +39,22 @@ AC_ARG_ENABLE(debug, ]) AC_PROG_CC +AC_PROG_CPP AC_PROG_INSTALL +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_SUBST(OPTIMISE) if test "${GCC-no}" = yes; then OPTIMISE=-O2