blob: 83a022e815376beb4ec0cbbda1ae2dc47ac1c0ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- mk/Autoconf.mk.orig 2012-02-22 17:13:36 UTC
+++ mk/Autoconf.mk
@@ -110,20 +110,14 @@
# $(call ac_fini))
ac_lib64 = $(shell \
$(call ac_init,for libdir name);\
- $(call ac_s_cmd,/sbin/ldconfig -p | grep -q lib64 &&\
+ $(call ac_s_cmd,$(CC) -print-search-dirs | grep -q lib64 &&\
echo "lib64" || echo "lib");\
$(call ac_fini))
# check for x11 ressource dir prefix
ac_resdir = $(shell \
$(call ac_init,for X11 app-defaults prefix);\
- $(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_s_cmd, dirname "${PREFIX}/lib/X11/app-defaults");\
$(call ac_fini))
# check if package is installed, via pkg-config
|