dnl Process this file with autoconf to produce a configure script.

AC_INIT(newt_pr.h)
AM_INIT_AUTOMAKE(newt, 0.51)
AM_CONFIG_HEADER(config.h)

VERSION=$(awk '/^%define version/ {print $3}' $srcdir/newt.spec)
SONAME=0.51
AC_SUBST(VERSION)
AC_SUBST(SONAME)
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB
AC_CHECK_HEADERS(sys/select.h alloca.h)

AC_ARG_WITH(gpm-support, [  --with-gpm-support         Compile with GPM support])

if test "x$with_gpm_support" = "xyes"; then
  AC_DEFINE(USE_GPM, 1, [Define to 1 if GPM support is enabled])
fi

AC_OUTPUT(Makefile)

