kusano fc6ab3
#                                               -*- Autoconf -*-
kusano fc6ab3
# Process this file with autoconf to produce a configure script.
kusano fc6ab3
kusano fc6ab3
AC_INIT([minizip], [1.2.8], [bugzilla.redhat.com])
kusano fc6ab3
AC_CONFIG_SRCDIR([minizip.c])
kusano fc6ab3
AM_INIT_AUTOMAKE([foreign])
kusano fc6ab3
LT_INIT
kusano fc6ab3
kusano fc6ab3
AC_MSG_CHECKING([whether to build example programs])
kusano fc6ab3
AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs]))
kusano fc6ab3
AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
kusano fc6ab3
if test "$enable_demos" = yes
kusano fc6ab3
then
kusano fc6ab3
	AC_MSG_RESULT([yes])
kusano fc6ab3
else
kusano fc6ab3
	AC_MSG_RESULT([no])
kusano fc6ab3
fi
kusano fc6ab3
kusano fc6ab3
case "${host}" in
kusano fc6ab3
	*-mingw* | mingw*)
kusano fc6ab3
		WIN32="yes"
kusano fc6ab3
		;;
kusano fc6ab3
	*)
kusano fc6ab3
		;;
kusano fc6ab3
esac
kusano fc6ab3
AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
kusano fc6ab3
kusano fc6ab3
kusano fc6ab3
AC_SUBST([HAVE_UNISTD_H], [0])
kusano fc6ab3
AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
kusano fc6ab3
AC_CONFIG_FILES([Makefile minizip.pc])
kusano fc6ab3
AC_OUTPUT