# HG changeset patch # User Glenn Morris # Date 1209841171 0 # Node ID 537c28766f1decf38184b0fa6b94e19eb7dc9f37 # Parent 72bf8f6f42d55eb6ac560fd0e53bf2ebef4cc1e1 (x_libraries): Remove standard 64-bit directories - experimental workaround for minor autoconf bug. diff -r 72bf8f6f42d5 -r 537c28766f1d configure.in --- a/configure.in Sat May 03 18:57:42 2008 +0000 +++ b/configure.in Sat May 03 18:59:31 2008 +0000 @@ -1339,6 +1339,16 @@ window_system=x11 fi +## Workaround for bug in autoconf <= 2.62. +## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html +## No need to do anything special for these standard directories. +## This is an experiment, take it out if it causes problems. +if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then + + x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'` + +fi + if test "${x_libraries}" != NONE; then if test -n "${x_libraries}"; then LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`