X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=996be592f5a3258940b47b1f3400c2c2882c3e37;hb=fc0b9ac95bcbdfa0f2ef64979fa71a5079bf32c2;hp=85d40a0e53f7ef6c7caff6c8945a4475fa9ba370;hpb=0d7bfe8ec27efee649ec0c0b6915342ad0c9c111;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index 85d40a0..996be59 100644 --- a/configure.in +++ b/configure.in @@ -1245,4 +1245,23 @@ we_have_sigpoll #endif ], AC_DEFINE(HAVE_SIGPOLL) haveSIGPOLL=yes, haveSIGPOLL=no) AC_MSG_RESULT([$haveSIGPOLL]) + +AC_MSG_CHECKING(for _SC_GETGR_R_SIZE_MAX) +AC_EGREP_CPP(we_have_that_sysconf_thing, +[ +#include +#ifdef _SC_GETGR_R_SIZE_MAX +we_have_that_sysconf_thing +#endif +], AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SC_GETGR_R_SIZE_MAX), AC_MSG_RESULT(no)) + +AC_MSG_CHECKING(for _SC_GETPW_R_SIZE_MAX) +AC_EGREP_CPP(we_have_that_sysconf_thing, +[ +#include +#ifdef _SC_GETPW_R_SIZE_MAX +we_have_that_sysconf_thing +#endif +], AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SC_GETPW_R_SIZE_MAX), AC_MSG_RESULT(no)) + AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h )