2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([[Visual Binary Diff]], [[3.0_beta5]], [[vbindiff AT cjmweb.net]], [[vbindiff]], [[http://www.cjmweb.net/vbindiff/]])
6 AM_INIT_AUTOMAKE([1.9 foreign])
7 AC_CONFIG_SRCDIR([vbindiff.cpp])
8 AC_CONFIG_HEADER([config.h])
10 AC_REVISION([m4_esyscmd([./tools/configure.commit])])
12 # Decide whether to enable debugging:
15 AC_MSG_CHECKING(whether to enable debugging)
17 [AS_HELP_STRING([--enable-debug], [turn on debugging (default is no)])],
20 if test "x$enable_debug" = "xyes"; then
21 CFLAGS="-g -DDEBUG $CFLAGS"
28 # Checks for programs.
32 # Checks for libraries.
33 AC_CHECK_LIB([ncurses], [initscr], ,
34 [AC_MSG_ERROR([The ncurses library is required])])
35 AC_CHECK_LIB([panel], [new_panel], ,
36 [AC_MSG_ERROR([The panel library is required])])
38 # Checks for header files.
40 AC_CHECK_HEADERS([errno.h fcntl.h limits.h panel.h stdlib.h string.h unistd.h])
42 # Checks for typedefs, structures, and compiler characteristics.
49 # Checks for library functions.
51 AC_CHECK_FUNCS([atexit memset strchr strerror strrchr strtoul])
53 AC_CONFIG_FILES([Makefile])