summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-02-17 09:38:36 +0100
committerDavid Tardon <dtardon@redhat.com>2012-02-17 15:53:56 +0100
commit4b95a8f30707c49e735d346cc21ca0afa719d123 (patch)
treef59ae87b9aa582d1cc6df08b94f9c3af25e6cae1 /configure.in
parentpass --without-java to configure for build platform (diff)
downloadcore-4b95a8f30707c49e735d346cc21ca0afa719d123.tar.gz
core-4b95a8f30707c49e735d346cc21ca0afa719d123.zip
allow using system libxml in cross-compilation build
This uses the same pattern that is already used to discriminate env. vars for host and build (i.e., the new option specific for build platform has -for-build suffix).
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index c6385e215bb8..56cbbce43976 100644
--- a/configure.in
+++ b/configure.in
@@ -1930,6 +1930,15 @@ AC_ARG_WITH(macosx-version-max-allowed,
dnl ===================================================================
+dnl options for stuff used during cross-compilation build
+dnl ===================================================================
+
+AC_ARG_WITH(system-libxml-for-build,
+ AS_HELP_STRING([--with-system-libxml-for-build],
+ [Use libxml/libxslt already on system for build tools (cross-compilation only).]))
+
+
+dnl ===================================================================
dnl check for required programs (grep, awk, sed, bash)
dnl ===================================================================
AC_PROG_EGREP
@@ -3151,6 +3160,7 @@ if test "$cross_compiling" = "yes"; then
unset CC CXX SYSBASE CFLAGS
unset PYTHON_CFLAGS PYTHON_LIBS
unset AR NM OBJDUMP PKG_CONFIG RANLIB STRIP
+ unset LIBXML_CFLAGS LIBXML_LIBS LIBXSLT_CFLAGS LIBXSLT_LIBS XSLTPROC
test -n "$CC_FOR_BUILD" && export CC="$CC_FOR_BUILD"
test -n "$CXX_FOR_BUILD" && export CXX="$CXX_FOR_BUILD"
test -n "$PKG_CONFIG_FOR_BUILD" && export PKG_CONFIG="$PKG_CONFIG_FOR_BUILD"
@@ -3160,6 +3170,7 @@ if test "$cross_compiling" = "yes"; then
test $with_java = no && sub_conf_opts="$sub_conf_opts --without-java"
test $with_junit = no && sub_conf_opts="$sub_conf_opts --without-junit"
test -n "$TARFILE_LOCATION" && sub_conf_opts="$sub_conf_opts --with-external-tar=$TARFILE_LOCATION"
+ test -n "$with_system_libxml_for_build" && sub_conf_opts="$sub_conf_opts --with-system-libxml"
./configure \
--disable-mozilla \
--disable-build-mozilla \