common/autoconf/libraries.m4
Print this page
*** 134,143 ****
--- 134,149 ----
# Now let autoconf do it's magic
AC_PATH_X
AC_PATH_XTRA
+ # AC_PATH_XTRA sets X_LIBS and X_CFLAGS based on what is set in x_includes
+ # and x_libraries. This includes setting the -R flag to an absolute path so we
+ # remove it from X_LIBS
+
+ X_LIBS=`$ECHO $X_LIBS | $SED 's/-R.*//g'`
+
if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
HELP_MSG_MISSING_DEPENDENCY([x11])
AC_MSG_ERROR([Could not find X11 libraries. $HELP_MSG])
fi