4 VERSION=$(awk '/^Version: / {print $2}' $srcdir/newt.spec)
7 AC_CONFIG_HEADER([config.h])
9 AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Package Name])
10 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [NEWT Version String])
17 AC_CHECK_HEADERS([sys/select.h alloca.h])
18 AC_CHECK_HEADERS([slang.h])
20 AC_MSG_CHECKING([for python versions])
21 PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
22 AC_MSG_RESULT([$PYTHONVERS])
23 AC_SUBST([PYTHONVERS])
25 AC_ARG_WITH([tcl], [ --without-tcl do not compile whiptcl.so])
26 if test "x$with_tcl" = "xno"; then
29 AC_CHECK_HEADER([tcl.h], [WHIPTCLSO=whiptcl.so], [WHIPTCLSO=])
33 AC_ARG_WITH([gpm-support], [ --with-gpm-support compile with GPM support])
35 if test "x$with_gpm_support" = "xyes"; then
36 AC_DEFINE([USE_GPM], 1, [Define to 1 if GPM support is enabled])
39 AC_ARG_ENABLE([nls], [ --disable-nls compile without NLS support])
41 if test "x$enable_nls" != "xno"; then
42 AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled])
45 AC_CONFIG_FILES([Makefile libnewt.pc])