Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Jul 2012 13:57:39 -0700
changeset 6365975e23e06124
parent 6363 8506dd64e859
child 6367 3c1253baeaec
Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD

Brad Smith 2012-07-18 13:43:34 PDT
autoconf patch to fix X dynamic loading of libraries on OpenBSD
configure
configure.in
     1.1 --- a/configure	Wed Jul 18 13:06:38 2012 -0700
     1.2 +++ b/configure	Wed Jul 18 13:57:39 2012 -0700
     1.3 @@ -22103,6 +22103,12 @@
     1.4                      xss_lib='/usr/X11R6/lib/libXss.1.dylib'
     1.5                      xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
     1.6                      ;;
     1.7 +                *-*-openbsd*)
     1.8 +                    x11_lib='libX11.so'
     1.9 +                    x11ext_lib='libXext.so'
    1.10 +                    xrender_lib='libXrender.so'
    1.11 +                    xrandr_lib='libXrandr.so'
    1.12 +                    ;;
    1.13                  *)
    1.14                      x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
    1.15                      x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
     2.1 --- a/configure.in	Wed Jul 18 13:06:38 2012 -0700
     2.2 +++ b/configure.in	Wed Jul 18 13:57:39 2012 -0700
     2.3 @@ -1042,6 +1042,12 @@
     2.4                      xss_lib='/usr/X11R6/lib/libXss.1.dylib'
     2.5                      xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
     2.6                      ;;
     2.7 +                *-*-openbsd*)
     2.8 +                    x11_lib='libX11.so'
     2.9 +                    x11ext_lib='libXext.so'
    2.10 +                    xrender_lib='libXrender.so'
    2.11 +                    xrandr_lib='libXrandr.so'
    2.12 +                    ;;
    2.13                  *)
    2.14                      x11_lib=[`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
    2.15                      x11ext_lib=[`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]