# Process this file with autoconf to produce a configure script. AC_INIT(libvformat, 1.2.0, Nick ) AM_INIT_AUTOMAKE(libvformat, 1.2.0) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) AM_CONFIG_HEADER(config.h) # Checks for programs. # AC_PROG_CC # Checks for libraries. AC_PROG_LIBTOOL # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_STRUCT_TM # Checks for library functions. AC_FUNC_MKTIME AC_FUNC_STAT AC_CHECK_FUNCS([atexit memset strstr]) AC_ARG_ENABLE([docs], [AS_HELP_STRING([--enable-docs], [build documentation (default is no)])], [build_docs=true], [build_docs=false]) if test "$build_docs" = true; then DOC_SUB=doc else DOC_SUB= fi AM_CONDITIONAL([ENABLE_DOCS],[test "x$DOC_SUB" = "xdoc"]) AC_SUBST([DOC_SUB]) win32=no case $host_os in *mingw*) win32=yes ;; *) ;; esac AM_CONDITIONAL([WIN32], [test x$win32 = xyes]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) AC_OUTPUT([ Makefile src/Makefile vformat/Makefile test/Makefile doc/Makefile libvformat-1.0.pc ]) echo " Configuration for $PACKAGE $VERSION: ------------------------------------------- Install prefix: .........: $prefix Now type 'make' to build $PACKAGE $VERSION, and then 'make install' for installation. "