1 # -*- Autoconf -*- 2 # Process this file with autoconf to produce a configure script. 3 4 AC_INIT([minizip], [1.2.6], [bugzilla.redhat.com]) 5 AC_CONFIG_SRCDIR([minizip.c]) 6 AM_INIT_AUTOMAKE([foreign]) 7 LT_INIT 8 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]) 17 fi 18 19 AC_SUBST([HAVE_UNISTD_H], [0]) 20 AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) 21 AC_CONFIG_FILES([Makefile minizip.pc]) 22 AC_OUTPUT 23