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

@ -235,7 +235,10 @@ if test "x$HAVE_MGL" != xno; then
AC_CHECK_LIB($lib, MGL_registerDriver, AC_CHECK_LIB($lib, MGL_registerDriver,
MGL_LIBS="-l$lib $MGL_LIBS" MGL_LIBS="-l$lib $MGL_LIBS"
HAVE_MGL=yes HAVE_MGL=yes
break, HAVE_MGL=no, [$MGL_LIBS]) break,
HAVE_MGL=no,
[$MGL_LIBS]
)
done done
fi fi
fi fi
@ -265,8 +268,11 @@ if test "x$HAVE_GGI" != xno; then
dnl Make sure -lggi works dnl Make sure -lggi works
if test "x$HAVE_GGI" = xyes; then if test "x$HAVE_GGI" = xyes; then
AC_CHECK_LIB(ggi, ggiEventsQueued, GGI_LIBS="$GGI_LIBS -lggi" AC_CHECK_LIB(ggi, ggiEventsQueued,
HAVE_GGI=yes, HAVE_GGI=no, [$GGI_LIBS] GGI_LIBS="$GGI_LIBS -lggi"
HAVE_GGI=yes,
HAVE_GGI=no,
[$GGI_LIBS]
) )
fi fi
if test "x$HAVE_GGI" != xyes; then 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) AC_CHECK_HEADER(glide.h, HAS_GLIDE=yes, HAS_GLIDE=no)
if test "x$HAS_GLIDE" != xyes; then if test "x$HAS_GLIDE" != xyes; then
HAS_GLIDE=no HAS_GLIDE=no
else
AC_DEFINE(HAVE_GLIDE)
fi fi
CPPFLAGS="$save_CPPFLAGS" CPPFLAGS="$save_CPPFLAGS"
fi fi
AC_SUBST(GLIDE_CFLAGS)
AC_SUBST(GLIDE_LIBS)
dnl Checks for GLX support dnl Checks for GLX support
AC_ARG_WITH(glx, AC_ARG_WITH(glx,
@ -420,16 +430,6 @@ if test "x$HAVE_GLX" != xno; then
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
) )
AC_CHECK_HEADERS(GL/glext.h, HAVE_GL_GLEXT_H=yes) 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 fi
CPPFLAGS="$save_CPPFLAGS" CPPFLAGS="$save_CPPFLAGS"
@ -502,7 +502,7 @@ AC_SUBST(HAVE_SGL)
TDFXGL_NAME="" TDFXGL_NAME=""
AC_ARG_WITH(3dfx, 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 is specified it will be used as the GL wrapper lib
for glide.], for glide.],
HAS_3dfx=$withval, HAS_3dfx=auto) HAS_3dfx=$withval, HAS_3dfx=auto)
@ -534,12 +534,6 @@ fi
AC_SUBST(TDFXGL_CFLAGS) AC_SUBST(TDFXGL_CFLAGS)
AC_SUBST(TDFXGL_LIBS) 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 ==================================================================
dnl Checks for system type dnl Checks for system type
dnl ================================================================== dnl ==================================================================
@ -802,7 +796,6 @@ else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
fi fi
if test "x$ac_cv_func_connect" != "xyes"; then if test "x$ac_cv_func_connect" != "xyes"; then
AC_MSG_CHECKING([for connect in -lwsock32]) AC_MSG_CHECKING([for connect in -lwsock32])
SAVELIBS="$LIBS" SAVELIBS="$LIBS"