configure.ac 786 B

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