[commit: base] master: Fix suseconds configure test on Windows (c4db815)
Ian Lynagh
igloo at earth.li
Sun Jun 12 17:21:46 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/base
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/c4db81538def42c5fb7f485d7c99b4b296150101
>---------------------------------------------------------------
commit c4db81538def42c5fb7f485d7c99b4b296150101
Author: Ian Lynagh <igloo at earth.li>
Date: Sun Jun 12 14:25:24 2011 +0100
Fix suseconds configure test on Windows
>---------------------------------------------------------------
aclocal.m4 | 9 +++++++--
configure.ac | 1 -
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/aclocal.m4 b/aclocal.m4
index a8f5412..6e9801f 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -169,12 +169,17 @@ AC_DEFUN([FPTOOLS_CHECK_HTYPE_ELSE],[
fi
fi
])
+ if test "$AC_CV_NAME_supported" = no
+ then
+ $2
+ fi
+
+ dnl Note: evaluating dollar-2 can change the value of
+ dnl $AC_CV_NAME_supported, so we might now get a different answer
if test "$AC_CV_NAME_supported" = yes; then
AC_MSG_RESULT($AC_CV_NAME)
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME,
[Define to Haskell type for $1])
- else
- $2
fi
undefine([AC_TYPE_NAME])dnl
undefine([AC_CV_NAME])dnl
diff --git a/configure.ac b/configure.ac
index 787bf66..acfd48e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,7 +102,6 @@ FPTOOLS_CHECK_HTYPE_ELSE(suseconds_t,
then
AC_CV_NAME=Int32
AC_CV_NAME_supported=yes
- AC_MSG_RESULT([not found...on Windows, so using Int32])
else
AC_MSG_ERROR([type not found])
fi])
More information about the Cvs-libraries
mailing list