Fix contrib/minizip compilation in the MinGW environment.

This commit is contained in:
jK
2012-03-26 20:18:13 +02:00
committed by Mark Adler
parent 11f4065ea9
commit ba04838a74
2 changed files with 19 additions and 2 deletions

View File

@@ -16,6 +16,16 @@ else
AC_MSG_RESULT([no])
fi
case "${host}" in
*-mingw* | mingw*)
WIN32="yes"
;;
*)
;;
esac
AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
AC_SUBST([HAVE_UNISTD_H], [0])
AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
AC_CONFIG_FILES([Makefile minizip.pc])