aboutsummaryrefslogtreecommitdiffstats
path: root/mk/Autoconf.mk
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-08-16 08:04:26 +0000
committerkraxel <kraxel>2006-08-16 08:04:26 +0000
commit98180740659f64ece43a613147a4af133881bfff (patch)
tree199bc9c0b512416d736b12b7c83d78cd581cfd2d /mk/Autoconf.mk
parent302b504a141d089a648e422e14bedaea9ad6edaa (diff)
downloadfbida-98180740659f64ece43a613147a4af133881bfff.tar.gz
xorg 7.1
Diffstat (limited to 'mk/Autoconf.mk')
-rw-r--r--mk/Autoconf.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/Autoconf.mk b/mk/Autoconf.mk
index aea4900..65cd915 100644
--- a/mk/Autoconf.mk
+++ b/mk/Autoconf.mk
@@ -106,8 +106,13 @@ ac_lib64 = $(shell \
# check for x11 ressource dir prefix
ac_resdir = $(shell \
$(call ac_init,for X11 app-defaults prefix);\
- $(call ac_s_cmd, test -d /etc/X11/app-defaults &&\
- echo "/etc/X11" || echo "/usr/X11R6/lib/X11");\
+ $(call ac_s_cmd, for dir in \
+ /etc/X11/app-defaults \
+ /usr/X11R6/lib/X11/app-defaults \
+ /usr/share/X11/app-defaults \
+ /usr/lib/X11/app-defaults \
+ ; do test -d "$$dir" || continue;\
+ dirname "$$dir"; break; done);\
$(call ac_fini))
# check if package is installed, via pkg-config