aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@entel.upc.edu>2011-12-20 08:31:40 +0100
committerRoger Pau Monne <roger.pau@entel.upc.edu>2011-12-20 08:31:40 +0100
commit8ade3afcf088522ac4004c6b8d7d69e7a562cc85 (patch)
tree31f7aa41264ec168ec3afbd8a5a239290d664dd0 /Config.mk
parent2f8f5504ff57a07ed4fa8dd14af142792887d36c (diff)
downloadxen-8ade3afcf088522ac4004c6b8d7d69e7a562cc85.tar.gz
xen-8ade3afcf088522ac4004c6b8d7d69e7a562cc85.tar.bz2
xen-8ade3afcf088522ac4004c6b8d7d69e7a562cc85.zip
build: detect if libiconv is present
Detect if libiconv is present in the system, since we will have to link against it when using iconv. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Committed-by: Ian Jackson <ian.jackson.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Config.mk b/Config.mk
index 1c229c021f..7dcb267baa 100644
--- a/Config.mk
+++ b/Config.mk
@@ -181,6 +181,11 @@ CHECK_INCLUDES = $(EXTRA_INCLUDES) $(PREPEND_INCLUDES) $(APPEND_INCLUDES)
EMBEDDED_EXTRA_CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all
EMBEDDED_EXTRA_CFLAGS += -fno-exceptions
+CONFIG_LIBICONV := $(shell export OS="`uname -s`"; \
+ export CHECK_LIB="$(CHECK_LIB)"; \
+ . $(XEN_ROOT)/tools/check/funcs.sh; \
+ has_lib libiconv.so && echo 'y' || echo 'n')
+
# Enable XSM security module (by default, Flask).
XSM_ENABLE ?= n
FLASK_ENABLE ?= $(XSM_ENABLE)