AC_PREREQ([2.69]) AC_INIT([lithogen],[0.1.0]) AC_CONFIG_AUX_DIR([.]) AC_CONFIG_SRCDIR([src/lithogen.c]) AM_INIT_AUTOMAKE([foreign -Wall subdir-objects]) AC_PROG_CC AM_PROG_AR LT_INIT PKG_PROG_PKG_CONFIG AC_CHECK_FUNCS([calloc fclose fopen free fprintf fwrite malloc memcpy memmove \ memset remove snprintf stderr strcmp strlen strncpy tolower vsnprintf]) AC_CHECK_HEADERS([ctype.h dirent.h stdarg.h stddef.h stdint.h \ stdio.h stdlib.h string.h sys/stat.h sys/types.h]) PKG_CHECK_MODULES([MINIZ],[miniz],[HAVE_MINIZ=1],[HAVE_MINIZ=0]) AS_IF([test "x$HAVE_MINIZ" = "x1"], [AC_SUBST([REQUIRES_PRIVATE], ['Requires.private: miniz'])], [AC_SUBST([REQUIRES_PRIVATE], ['Requires.private:'])]) AM_CONDITIONAL([HAVE_MINIZ],[test "x$HAVE_MINIZ" = "x1"]) AC_CONFIG_FILES([liblithogen.pc Makefile]) AC_OUTPUT