diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..08b05e8 --- /dev/null +++ b/configure.ac @@ -0,0 +1,32 @@ +AC_INIT([unix], [], [libraries@haskell.org], [unix]) + +# Safety check: Ensure that we are in the correct source directory. +AC_CONFIG_SRCDIR([include/HsUnix.h]) + +AC_CONFIG_HEADERS([include/HsUnixConfig.h]) + +AC_MSG_CHECKING([for _SC_GETGR_R_SIZE_MAX]) +AC_EGREP_CPP(we_have_that_sysconf_thing, +[ +#include <unistd.h> +#ifdef _SC_GETGR_R_SIZE_MAX +we_have_that_sysconf_thing +#endif +], +[AC_MSG_RESULT([yes]) +AC_DEFINE([HAVE_SC_GETGR_R_SIZE_MAX], [1], [Define to 1 if <unistd.h> defines _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 <unistd.h> +#ifdef _SC_GETPW_R_SIZE_MAX +we_have_that_sysconf_thing +#endif +], +[AC_MSG_RESULT([yes]) +AC_DEFINE([HAVE_SC_GETPW_R_SIZE_MAX], [1], [Define to 1 if <unistd.h> defines _SC_GETPW_R_SIZE_MAX.])], +[AC_MSG_RESULT([no])]) + +AC_OUTPUT |