From 76745c79f0a0f5a1a215db868e048c606403a379 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 23 Jun 2006 02:19:52 +0000 Subject: [PATCH] Only allow dynamic X11 if gcc4 (-fvisibility=hidden) is used. Fixes Bugzilla #242. --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.in b/configure.in index 2c851f775..34fc6af2c 100644 --- a/configure.in +++ b/configure.in @@ -876,7 +876,15 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=ye 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]) + enable_x11_shared=no + fi + + if test x$have_gcc_fvisibility != xyes && \ + test x$enable_x11_shared = xyes; then + AC_MSG_WARN([You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading]) + enable_x11_shared=no 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"