Fossil SCM
| 7ef7284… | drh | 1 | # -*- Autoconf -*- |
| 7ef7284… | drh | 2 | # Process this file with autoconf to produce a configure script. |
| 7ef7284… | drh | 3 | |
| 6ea30fb… | florian | 4 | AC_INIT([minizip], [1.3.2], [bugzilla.redhat.com]) |
| 7ef7284… | drh | 5 | AC_CONFIG_SRCDIR([minizip.c]) |
| 7ef7284… | drh | 6 | AM_INIT_AUTOMAKE([foreign]) |
| 7ef7284… | drh | 7 | LT_INIT |
| 7ef7284… | drh | 8 | |
| 7ef7284… | drh | 9 | AC_MSG_CHECKING([whether to build example programs]) |
| 6ea30fb… | florian | 10 | AC_ARG_ENABLE([demos], AS_HELP_STRING([--enable-demos], [build example programs])) |
| 7ef7284… | drh | 11 | AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes]) |
| 7ef7284… | drh | 12 | if test "$enable_demos" = yes |
| 7ef7284… | drh | 13 | then |
| 7ef7284… | drh | 14 | AC_MSG_RESULT([yes]) |
| 7ef7284… | drh | 15 | else |
| 7ef7284… | drh | 16 | AC_MSG_RESULT([no]) |
| 7ef7284… | drh | 17 | fi |
| 7ef7284… | drh | 18 | |
| 7ef7284… | drh | 19 | case "${host}" in |
| 7ef7284… | drh | 20 | *-mingw* | mingw*) |
| 7ef7284… | drh | 21 | WIN32="yes" |
| 7ef7284… | drh | 22 | ;; |
| 7ef7284… | drh | 23 | *) |
| 7ef7284… | drh | 24 | ;; |
| 7ef7284… | drh | 25 | esac |
| 7ef7284… | drh | 26 | AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) |
| 7ef7284… | drh | 27 | |
| 7ef7284… | drh | 28 | |
| 7ef7284… | drh | 29 | AC_SUBST([HAVE_UNISTD_H], [0]) |
| 7ef7284… | drh | 30 | AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) |
| 7ef7284… | drh | 31 | AC_CONFIG_FILES([Makefile minizip.pc]) |
| 7ef7284… | drh | 32 | AC_OUTPUT |