Various and sundry improvements to configure.

This commit is contained in:
Jeff Teunissen 2000-12-08 04:45:04 +00:00
parent 1e604c6c33
commit 7744fcd560

View file

@ -232,10 +232,13 @@ if test "x$HAVE_MGL" != xno; then
if test "x$HAVE_MGL" = xyes; then
for lib in mglfx mgllt; do
MGL_LIBS="$MGL_LIBS -lgdi32 -lwinmm -ldinput -lddraw"
AC_CHECK_LIB($lib,MGL_registerDriver,
AC_CHECK_LIB($lib, MGL_registerDriver,
MGL_LIBS="-l$lib $MGL_LIBS"
HAVE_MGL=yes
break, HAVE_MGL=no, [$MGL_LIBS])
break,
HAVE_MGL=no,
[$MGL_LIBS]
)
done
fi
fi
@ -265,8 +268,11 @@ if test "x$HAVE_GGI" != xno; then
dnl Make sure -lggi works
if test "x$HAVE_GGI" = xyes; then
AC_CHECK_LIB(ggi, ggiEventsQueued, GGI_LIBS="$GGI_LIBS -lggi"
HAVE_GGI=yes, HAVE_GGI=no, [$GGI_LIBS]
AC_CHECK_LIB(ggi, ggiEventsQueued,
GGI_LIBS="$GGI_LIBS -lggi"
HAVE_GGI=yes,
HAVE_GGI=no,
[$GGI_LIBS]
)
fi
if test "x$HAVE_GGI" != xyes; then
@ -373,9 +379,13 @@ if test "x$HAS_GLIDE" != xno; then
AC_CHECK_HEADER(glide.h, HAS_GLIDE=yes, HAS_GLIDE=no)
if test "x$HAS_GLIDE" != xyes; then
HAS_GLIDE=no
else
AC_DEFINE(HAVE_GLIDE)
fi
CPPFLAGS="$save_CPPFLAGS"
fi
AC_SUBST(GLIDE_CFLAGS)
AC_SUBST(GLIDE_LIBS)
dnl Checks for GLX support
AC_ARG_WITH(glx,
@ -420,16 +430,6 @@ if test "x$HAVE_GLX" != xno; then
AC_MSG_RESULT(no)
)
AC_CHECK_HEADERS(GL/glext.h, HAVE_GL_GLEXT_H=yes)
if test "x$HAVE_GL_GLEXT_H" = xyes; then
AC_MSG_CHECKING(for PFNGLCOLORTABLEEXTPROC)
AC_TRY_COMPILE(
[#include <GL/gl.h>]
[#include <GL/glext.h>],
[PFNGLCOLORTABLEEXTPROC x;],
AC_DEFINE(HAVE_PFNGLCOLORTABLEEXTPROC) AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)
)
fi
fi
CPPFLAGS="$save_CPPFLAGS"
@ -502,7 +502,7 @@ AC_SUBST(HAVE_SGL)
TDFXGL_NAME=""
AC_ARG_WITH(3dfx,
[ --with-3dfx support 3Dfx output for the V1/V2, if a argument
[ --with-3dfx support 3Dfx output for the V1/V2, if an argument
is specified it will be used as the GL wrapper lib
for glide.],
HAS_3dfx=$withval, HAS_3dfx=auto)
@ -534,12 +534,6 @@ fi
AC_SUBST(TDFXGL_CFLAGS)
AC_SUBST(TDFXGL_LIBS)
if test "x$ac_cv_lib_pthread_pthread_exit" = "xyes"; then
SND_LIBS="$SND_LIBS -lpthread"
AC_DEFINE(HAVE_LIBPTHREAD)
fi
dnl ==================================================================
dnl Checks for system type
dnl ==================================================================
@ -802,7 +796,6 @@ else
AC_MSG_RESULT(no)
fi
if test "x$ac_cv_func_connect" != "xyes"; then
AC_MSG_CHECKING([for connect in -lwsock32])
SAVELIBS="$LIBS"