libclammspack/configure.ac
d3699d57
 # -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.59)
3b789ae6
 AC_INIT([libmspack],[0.8alpha],[kyzer@cabextract.org.uk])
d3699d57
 AC_CONFIG_MACRO_DIR([m4])
3e6a2026
 AM_INIT_AUTOMAKE
d3699d57
 AC_CONFIG_SRCDIR([mspack/mspack.h])
 AC_CONFIG_HEADER([config.h])
 
 dnl Enable silent rules by default (if yet support in automake)
 dnl use 'make V=1' to look at verbose commandline
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 # --enable-debug option
 AC_ARG_ENABLE(debug,
   AS_HELP_STRING(--enable-debug,enable debugging),
   enable_debug=$enableval,
   enable_debug=no)
 if test x$enable_debug = xyes; then
   AC_DEFINE(DEBUG, 1, [Turn debugging mode on?])
 fi
 AM_CONDITIONAL(DEBUG, test x$enable_debug = 'xyes')
 
 # Checks for programs.
 AC_PROG_CC
 AM_CONDITIONAL(GCC, test x$GCC = 'xyes')
3e6a2026
 AM_PROG_AR
d3699d57
 AC_PROG_INSTALL
 LT_INIT
 AC_EXEEXT
 
 # Checks for header files.
 AC_HEADER_STDC
3e6a2026
 AC_CHECK_HEADERS([ctype.h inttypes.h limits.h stdlib.h wctype.h])
d3699d57
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_C_INLINE
 AC_TYPE_MODE_T
 AC_TYPE_OFF_T
 AC_TYPE_SIZE_T
 AC_CHECK_SIZEOF([off_t])
3e6a2026
 
 # Checks for library functions
 AX_FUNC_MKDIR
d3699d57
 AC_CHECK_FUNCS([tolower towlower])
 
 # largefile support
 AC_SYS_LARGEFILE
 AC_FUNC_FSEEKO
 
 # Checks for library functions.
3e6a2026
 AC_CONFIG_FILES([Makefile doc/Makefile doc/Doxyfile libmspack.pc])
d3699d57
 AC_OUTPUT