aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Ross Paterson <ross@soi.city.ac.uk>2006-08-19 14:48:34 +0000
committerGravatar Ross Paterson <ross@soi.city.ac.uk>2006-08-19 14:48:34 +0000
commit0650c10474901e79638a06f712aa4e214906de6d (patch)
treec2765ead065db303794c24cef47c00a27713a6b3 /configure.ac
parenta3ed33b888f465980f8899a048aa5cc7f16bba19 (diff)
change test for buildability
Checking for dlfcn.h instead of creat() should make the Cabal build fail more gracefully under MinGW.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8fc7731..b991b53 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AC_CONFIG_SRCDIR([include/HsUnix.h])
AC_CONFIG_HEADERS([include/HsUnixConfig.h])
# Is this a Unix system?
-AC_CHECK_FUNC([creat], [BUILD_PACKAGE_BOOL=True], [BUILD_PACKAGE_BOOL=False])
+AC_CHECK_HEADER([dlfcn.h], [BUILD_PACKAGE_BOOL=True], [BUILD_PACKAGE_BOOL=False])
AC_SUBST([BUILD_PACKAGE_BOOL])
AC_C_CONST