summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2006-10-23 15:35:40 +0000
committerAndreas Schwab <schwab@suse.de>2006-10-23 15:35:40 +0000
commit92d1ccf43775bc70f2989de57de54d91ee4d5b3d (patch)
treeabda8190ea873aa5ec64f9bcafe8ba77cbc17d1f /configure
parentf13de01e9312a66ea67189ca1b65a6ea5acb25b3 (diff)
downloademacs-92d1ccf43775bc70f2989de57de54d91ee4d5b3d.tar.gz
Regenerate.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 11 insertions, 4 deletions
diff --git a/configure b/configure
index 18fd27ec3b5..2fad7c5c3fa 100755
--- a/configure
+++ b/configure
@@ -8610,11 +8610,18 @@ else
window_system=x11
fi
-if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
- LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
- LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
+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"`
+ LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
+ fi
x_default_search_path=""
- for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
+ x_search_path=${x_libraries}
+ if test -z "${x_search_path}"; then
+ x_search_path=/usr/lib
+ fi
+ for x_library in `echo ${x_search_path}: | \
+ sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
x_search_path="\
${x_library}/X11/%L/%T/%N%C%S:\
${x_library}/X11/%l/%T/%N%C%S:\