configure.in
changeset 1875 4627eca2c02b
parent 1871 9ff9a58fa1e3
child 1879 cb232e63552c
equal deleted inserted replaced
1874:9e85b267f8f3 1875:4627eca2c02b
   874             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
   874             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
   875             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
   875             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
   876             if test x$have_loadso != xyes && \
   876             if test x$have_loadso != xyes && \
   877                test x$enable_x11_shared = xyes; then
   877                test x$enable_x11_shared = xyes; then
   878                 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading])
   878                 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic X11 loading])
   879             fi
   879                 enable_x11_shared=no
       
   880             fi
       
   881 
       
   882             if test x$have_gcc_fvisibility != xyes && \
       
   883                test x$enable_x11_shared = xyes; then
       
   884                 AC_MSG_WARN([You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading])
       
   885                 enable_x11_shared=no
       
   886             fi
       
   887 
   880             if test x$have_loadso = xyes && \
   888             if test x$have_loadso = xyes && \
   881                test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
   889                test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
   882                 echo "-- dynamic libX11 -> $x11_lib"
   890                 echo "-- dynamic libX11 -> $x11_lib"
   883                 echo "-- dynamic libX11ext -> $x11ext_lib"
   891                 echo "-- dynamic libX11ext -> $x11ext_lib"
   884                 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib")
   892                 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib")