Skip to content

Commit 09d2c38

Browse files
committed
refactor: avoid hack when checking size of struct MD5Context
1 parent 1174e85 commit 09d2c38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/ghc-internal/configure.ac

+3-3
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@ AS_IF([test "x$with_libcharset" != xno],
299299

300300
fi
301301

302-
dnl Calling AC_CHECK_TYPE(T) makes AC_CHECK_SIZEOF(T) abort on failure
303-
dnl instead of considering sizeof(T) as 0.
304-
AC_CHECK_TYPE([struct MD5Context], [], [AC_MSG_ERROR([internal error])], [#include "include/md5.h"])
305302
AC_CHECK_SIZEOF([struct MD5Context], [], [#include "include/md5.h"])
303+
AS_IF([test "$ac_cv_sizeof_struct_MD5Context" -eq 0],[
304+
AC_MSG_ERROR([cannot determine sizeof(struct MD5Context)])
305+
])
306306

307307
AC_SUBST(EXTRA_LIBS)
308308
AC_CONFIG_FILES([ghc-internal.buildinfo])

0 commit comments

Comments
 (0)