mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-23 08:07:07 +00:00
add --disable-glx
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15159 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d425b9851e
commit
5316b78cca
3 changed files with 46 additions and 24 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-11-27 Frederic De Jaeger <dejaeger@free.fr>
|
||||
|
||||
* configure.ac: add the flag --disable-glx.
|
||||
* configure: regenerated
|
||||
|
||||
2002-11-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XIMInputServer.m
|
||||
|
|
33
configure
vendored
33
configure
vendored
|
@ -831,6 +831,7 @@ if test -n "$ac_init_help"; then
|
|||
Optional Features:
|
||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--disable-glx Disable GLX support
|
||||
--disable-xim Disable XIM support
|
||||
--enable-server=SRV Build server type: x11, win32
|
||||
--enable-graphics=GPH Build graphics: xlib, xdps, winlib, art
|
||||
|
@ -4457,11 +4458,19 @@ LIBS="${save_libs}"
|
|||
# GLX support
|
||||
#--------------------------------------------------------------------
|
||||
WITH_GLX=no
|
||||
save_header=${CPPFLAGS}
|
||||
save_libs=${LIBS}
|
||||
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}"
|
||||
LIBS="${GRAPHIC_LIBS} ${LIBS}"
|
||||
echo "$as_me:$LINENO: checking for glXMakeContextCurrent in -lGL" >&5
|
||||
# Check whether --enable-glx or --disable-glx was given.
|
||||
if test "${enable_glx+set}" = set; then
|
||||
enableval="$enable_glx"
|
||||
|
||||
else
|
||||
enable_glx=yes
|
||||
fi;
|
||||
if test "x$enable_glx" = "xyes"; then
|
||||
save_header=${CPPFLAGS}
|
||||
save_libs=${LIBS}
|
||||
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}"
|
||||
LIBS="${GRAPHIC_LIBS} ${LIBS}"
|
||||
echo "$as_me:$LINENO: checking for glXMakeContextCurrent in -lGL" >&5
|
||||
echo $ECHO_N "checking for glXMakeContextCurrent in -lGL... $ECHO_C" >&6
|
||||
if test "${ac_cv_lib_GL_glXMakeContextCurrent+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
|
@ -4522,7 +4531,7 @@ else
|
|||
have_glx=no
|
||||
fi
|
||||
|
||||
if test "${ac_cv_header_GL_glx_h+set}" = set; then
|
||||
if test "${ac_cv_header_GL_glx_h+set}" = set; then
|
||||
echo "$as_me:$LINENO: checking for GL/glx.h" >&5
|
||||
echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
|
||||
if test "${ac_cv_header_GL_glx_h+set}" = set; then
|
||||
|
@ -4625,17 +4634,19 @@ echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
|
|||
fi
|
||||
|
||||
|
||||
if test "$have_glx" = yes -a "$ac_cv_header_GL_glx_h" = yes; then
|
||||
GRAPHIC_LIBS="-lGL ${GRAPHIC_LIBS}"
|
||||
WITH_GLX=yes
|
||||
if test "$have_glx" = yes -a "$ac_cv_header_GL_glx_h" = yes; then
|
||||
GRAPHIC_LIBS="-lGL ${GRAPHIC_LIBS}"
|
||||
WITH_GLX=yes
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_GLX 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
CPPFLAGS="${save_header}"
|
||||
LIBS="${save_libs}"
|
||||
|
||||
fi
|
||||
CPPFLAGS="${save_header}"
|
||||
LIBS="${save_libs}"
|
||||
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
|
32
configure.ac
32
configure.ac
|
@ -199,20 +199,26 @@ AC_SUBST(WITH_XFT)
|
|||
# GLX support
|
||||
#--------------------------------------------------------------------
|
||||
WITH_GLX=no
|
||||
save_header=${CPPFLAGS}
|
||||
save_libs=${LIBS}
|
||||
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}"
|
||||
LIBS="${GRAPHIC_LIBS} ${LIBS}"
|
||||
AC_CHECK_LIB(GL, glXMakeContextCurrent, have_glx=yes, have_glx=no)
|
||||
AC_CHECK_HEADER(GL/glx.h)
|
||||
if test "$have_glx" = yes -a "$ac_cv_header_GL_glx_h" = yes; then
|
||||
GRAPHIC_LIBS="-lGL ${GRAPHIC_LIBS}"
|
||||
WITH_GLX=yes
|
||||
AC_DEFINE(HAVE_GLX,1,[Define if you have the glx library])
|
||||
AC_ARG_ENABLE(glx,
|
||||
[ --disable-glx Disable GLX support],,
|
||||
enable_glx=yes)
|
||||
if test "x$enable_glx" = "xyes"; then
|
||||
save_header=${CPPFLAGS}
|
||||
save_libs=${LIBS}
|
||||
CPPFLAGS="${GRAPHIC_CFLAGS} ${GRAPHIC_LFLAGS} ${CPPFLAGS}"
|
||||
LIBS="${GRAPHIC_LIBS} ${LIBS}"
|
||||
AC_CHECK_LIB(GL, glXMakeContextCurrent, have_glx=yes, have_glx=no)
|
||||
AC_CHECK_HEADER(GL/glx.h)
|
||||
if test "$have_glx" = yes -a "$ac_cv_header_GL_glx_h" = yes; then
|
||||
GRAPHIC_LIBS="-lGL ${GRAPHIC_LIBS}"
|
||||
WITH_GLX=yes
|
||||
AC_DEFINE(HAVE_GLX,1,[Define if you have the glx library])
|
||||
fi
|
||||
CPPFLAGS="${save_header}"
|
||||
LIBS="${save_libs}"
|
||||
AC_SUBST(WITH_GLX)
|
||||
fi
|
||||
CPPFLAGS="${save_header}"
|
||||
LIBS="${save_libs}"
|
||||
AC_SUBST(WITH_GLX)
|
||||
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# XIM support
|
||||
|
|
Loading…
Reference in a new issue