2011-11-13 15:30:32 -05:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
2012-05-03 01:38:26 -04:00
|
|
|
AC_INIT([minizip], [1.2.7.1], [bugzilla.redhat.com])
|
2012-01-16 16:13:07 -05:00
|
|
|
AC_CONFIG_SRCDIR([minizip.c])
|
2011-11-13 15:30:32 -05:00
|
|
|
AM_INIT_AUTOMAKE([foreign])
|
|
|
|
LT_INIT
|
|
|
|
|
2012-01-21 16:55:54 -05:00
|
|
|
AC_MSG_CHECKING([whether to build example programs])
|
|
|
|
AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs]))
|
|
|
|
AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
|
|
|
|
if test "$enable_demos" = yes
|
|
|
|
then
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
fi
|
|
|
|
|
2012-03-26 14:18:13 -04:00
|
|
|
case "${host}" in
|
|
|
|
*-mingw* | mingw*)
|
|
|
|
WIN32="yes"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
|
|
|
|
|
|
|
|
|
2011-11-13 15:30:32 -05:00
|
|
|
AC_SUBST([HAVE_UNISTD_H], [0])
|
|
|
|
AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
|
|
|
|
AC_CONFIG_FILES([Makefile minizip.pc])
|
|
|
|
AC_OUTPUT
|