2012-11-16 Matthias Klose <doko@ubuntu.com>
[official-gcc.git] / zlib / contrib / minizip / configure.ac
blob6a9af21c317e81ba986a30da2092c72eb2387611
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_INIT([minizip], [1.2.7], [bugzilla.redhat.com])
5 AC_CONFIG_SRCDIR([minizip.c])
6 AM_INIT_AUTOMAKE([foreign])
7 LT_INIT
9 AC_MSG_CHECKING([whether to build example programs])
10 AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs]))
11 AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
12 if test "$enable_demos" = yes
13 then
14         AC_MSG_RESULT([yes])
15 else
16         AC_MSG_RESULT([no])
19 case "${host}" in
20         *-mingw* | mingw*)
21                 WIN32="yes"
22                 ;;
23         *)
24                 ;;
25 esac
26 AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
29 AC_SUBST([HAVE_UNISTD_H], [0])
30 AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
31 AC_CONFIG_FILES([Makefile minizip.pc])
32 AC_OUTPUT