1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ(2.57) 5AC_INIT([checkmate], [0.21], [sjoerd-mpck@linuxonly.nl]) 6AM_INIT_AUTOMAKE([foreign]) 7AM_CONFIG_HEADER(config.h) 8 9AC_CONFIG_SRCDIR([mpck/main.c]) 10# AC_CONFIG_HEADER(config.h) 11 12# Checks for programs. 13AC_PROG_CC 14AC_PROG_MAKE_SET 15 16# Checks for header files. 17AC_HEADER_STDC 18AC_CHECK_HEADER([getopt.h], , CPPFLAGS="$CPPFLAGS -I../libgnugetopt-1.2") 19AC_CHECK_HEADERS([unistd.h errno.h getopt.h malloc.h memory.h sys/mman.h fcntl.h]) 20AC_HEADER_DIRENT 21 22# Checks for typedefs, structures, and compiler characteristics. 23 24# Checks for library functions. 25AC_CHECK_FUNCS([vsnprintf]) 26 27AC_CONFIG_LIBOBJ_DIR([libgnugetopt-1.2]) 28AC_CHECK_FUNC([getopt_long], [GETOPT_LONG_LIB=], [GETOPT_LONG_LIB=../libgnugetopt-1.2/libgnugetopt.a] ) 29AC_SUBST(GETOPT_LONG_LIB) 30AM_CONDITIONAL(COMPILE_GETOPT_LIB, test x$GETOPT_LONG_LIB != x) 31 32AC_PROG_RANLIB 33 34AC_CONFIG_FILES([Makefile mpck/Makefile libgnugetopt-1.2/Makefile]) 35AC_OUTPUT 36