Permalink
Browse files

Fix suseconds configure test on Windows

  • Loading branch information...
1 parent f826879 commit c4db81538def42c5fb7f485d7c99b4b296150101 @igfoo igfoo committed Jun 12, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −2 aclocal.m4
  2. +0 −1 configure.ac
View
@@ -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
View
@@ -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])

0 comments on commit c4db815

Please sign in to comment.