dnl not used but STL is.
AC_INIT(configure.in)
+AC_CONFIG_AUX_DIR(buildlib)
AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in)
dnl Tom's host stuff
X11LIB=
if test "$no_x" != "yes"; then
X11LIB="-lx11"
+ AC_DEFINE(HAVE_X11)
fi
dnl Checks for Slang
-AC_CHECK_LIB(slang, init_SLang,SLANGLIB="-lslang")
+AC_CHECK_LIB(slang, init_SLang,[AC_DEFINE(HAVE_LIBSLANG) SLANGLIB="-lslang"])
AC_SUBST(SLANGLIB)
dnl Checks for GPM
AC_ARG_WITH(gpm,[ --without-gpm do not use GPM mouse support])
if test "$with_gpm" != "no"; then
- AC_CHECK_LIB(gpm, Gpm_Open,GPMLIB="-lgpm")
+ AC_CHECK_LIB(gpm, Gpm_Open,[AC_DEFINE(HAVE_LIBGPM) GPMLIB="-lgpm"])
AC_SUBST(GPMLIB)
fi
AC_CHECK_PROG(DEBIANDOC_HTML,debiandoc2html,"yes","")
AC_CHECK_PROG(DEBIANDOC_TEXT,debiandoc2text,"yes","")
-AC_OUTPUT(environment.mak:buildlib/environment.mak.in)
+AC_OUTPUT(environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in,make dirs)