forked from glandium/vmfs-tools
-
Notifications
You must be signed in to change notification settings - Fork 7
/
configure.mk
35 lines (29 loc) · 1 KB
/
configure.mk
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
26
27
28
29
30
31
32
33
34
35
include utils.mk
__VARS := $(foreach var,$(.VARIABLES),$(if $(filter-out command line,$(origin $(var))),$(var)))
prefix := /usr/local
exec_prefix := $$(prefix)
sbindir := $$(exec_prefix)/sbin
datarootdir := $$(prefix)/share
mandir := $$(datarootdir)/man
# configure rules really start here
$(call PKG_CONFIG_CHK,uuid,-I/usr/include/uuid,-luuid)
$(call PKG_CONFIG_CHK,fuse)
$(call PATH_LOOKUP,asciidoc)
$(call PATH_LOOKUP,xsltproc)
$(call checking,docbook.xsl)
__DOCBOOK_XSL := http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
ifneq (,$(XSLTPROC))
ifneq (,$(shell $(XSLTPROC) --nonet --noout $(__DOCBOOK_XSL) 2> /dev/null && echo ok))
DOCBOOK_XSL := $(__DOCBOOK_XSL)
endif
endif
$(call result,$(DOCBOOK_XSL))
$(call LINK_CHECK,strndup)
$(call LINK_CHECK,dlopen,-ldl)
ifeq (,$(HAS_DLOPEN))
$(call LINK_CHECK,dlopen)
endif
$(call LINK_CHECK,posix_memalign)
# Generate cache file
$(shell ($(foreach var,$(filter-out $(__VARS) __%,$(.VARIABLES)),echo '$(var) = $($(var))';)) > config.cache)
configure: