X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/d7bccc73c61de8be73c71c4447b9a007ffb80834..ad00ae81eb9e1f5384f8fe32879d483c72bbdace:/configure.in diff --git a/configure.in b/configure.in index 2ecd0b15d..61460e290 100644 --- a/configure.in +++ b/configure.in @@ -9,6 +9,7 @@ dnl need a C++ compiler that is semi-standard conformant, exceptions are 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 @@ -33,16 +34,17 @@ AC_SUBST(X11LIB) 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 @@ -83,4 +85,4 @@ dnl Check for debiandoc 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)