# HG changeset patch # User Sam Lantinga # Date 1141607111 0 # Node ID fecfef92fc94c1d32069d3c179e1f1f7d014537f # Parent b69f2b0309a02530c01f58d58cd9161f0b6caf6e Don't put X_LIBS in the linker flags if we're dynamically loading X11 diff -r b69f2b0309a0 -r fecfef92fc94 configure.in --- a/configure.in Mon Mar 06 00:50:03 2006 +0000 +++ b/configure.in Mon Mar 06 01:05:11 2006 +0000 @@ -763,11 +763,14 @@ if test x$ac_cv_func_shmat != xyes; then X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY" fi + + AC_DEFINE(SDL_VIDEO_DRIVER_X11) + SOURCES="$SOURCES $srcdir/src/video/x11/*.c" + BUILD_CFLAGS="$BUILD_CFLAGS $X_CFLAGS" if test x$have_loadso != xyes && \ test x$enable_x11_shared = xyes; then AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading]) fi - if test x$have_loadso = xyes && \ test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then echo "-- dynamic libX11 -> $x11_lib" @@ -775,13 +778,8 @@ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib") AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib") else - X_LIBS="$X_LIBS -lX11 -lXext" + BUILD_LDFLAGS="$BUILD_LDFLAGS $X_LIBS -lX11 -lXext" fi - - AC_DEFINE(SDL_VIDEO_DRIVER_X11) - SOURCES="$SOURCES $srcdir/src/video/x11/*.c" - BUILD_CFLAGS="$BUILD_CFLAGS $X_CFLAGS" - BUILD_LDFLAGS="$BUILD_LDFLAGS $X_LIBS" have_video=yes AC_ARG_ENABLE(dga,