]> git.saurik.com Git - apt.git/blobdiff - configure.in
DumpAvail works and apt-cache is complete
[apt.git] / configure.in
index 2ecd0b15d5537d0f448fb863f2dd057bbedc97a6..61460e29033a80ec0c65de13fd72da7a0cbca8b5 100644 (file)
@@ -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)