comparison configure.in @ 1569:50d9888d201d

Fixed bug #167 The configure script parses the value of $X_LIBS when looking at the --enable-x11-shared, which is getting set on Ubuntu 5.10 to "-L/usr/X11R6/lib" ... however, Ubuntu stores all the Xlib stuff in /usr/lib. The end result in SDL is that the dynamic X11 stuff gets disabled by default, unless you override like this: ./configure --x-libraries=/usr/lib
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Mar 2006 09:51:33 +0000
parents 12b6d331d82a
children 0160eb7cccee
comparison
equal deleted inserted replaced
1568:1f3f39f9cfcf 1569:50d9888d201d
771 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32 771 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32
772 x11_lib='libX11.so' 772 x11_lib='libX11.so'
773 x11ext_lib='libXext.so' 773 x11ext_lib='libXext.so'
774 ;; 774 ;;
775 *) 775 *)
776 if test "x$X_LIBS" = "x"; then X_LIBS="-L/usr/lib"; fi 776 x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1/'`]
777 x11_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libX11.so.[0-9]/'`] 777 for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib
778 x11_lib=`ls $x11_lib_spec 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'` 778 do if test "x$x11_lib" = "x"; then
779 x11ext_lib_spec=[`echo $X_LIBS | sed 's/.*-L\([^ ]*\).*/\1\/libXext.so.[0-9]/'`] 779 x11_lib=[`ls $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
780 x11ext_lib=`ls $x11ext_lib_spec 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'` 780 fi
781 if test "x$x11ext_lib" = "x"; then
782 x11ext_lib=[`ls $path/libXext.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
783 fi
784 done
781 ;; 785 ;;
782 esac 786 esac
783 787
784 X_CFLAGS="$X_CFLAGS -DXTHREADS" 788 X_CFLAGS="$X_CFLAGS -DXTHREADS"
785 if test x$ac_cv_func_shmat != xyes; then 789 if test x$ac_cv_func_shmat != xyes; then