2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[3745] Handle better cross compiling

This commit is contained in:
Francis Dupont
2015-03-06 18:45:45 +01:00
committed by Tomek Mrugalski
parent b4f3640c55
commit bcf1a11b27
2 changed files with 21 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4macros])
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
# Checks for programs.
AC_PROG_CXX
@@ -58,6 +59,21 @@ if test "$sep" = "__NONE__"; then
fi
AC_SUBST(SEP)
# If cross compiling assume the message compiler executable was
# magically already in place...
if test "$cross_compiling" = "yes"; then
AC_MSG_CHECKING("build (vs. host) compiled message compiler")
if test -x "${srcdir}/src/lib/log/compiler/message"; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_WARN("you must install a message compiler in:")
AC_MSG_WARN(" ${srcdir}/src/lib/log/compiler/message")
AC_MSG_WARN("compiled for build ($build).")
fi
fi
AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = "yes"])
# Enable low-performing debugging facilities? This option optionally
# enables some debugging aids that perform slowly and hence aren't built
# by default.

View File

@@ -1,4 +1,8 @@
SUBDIRS = interprocess . compiler tests
SUBDIRS = interprocess .
if !CROSS_COMPILING
SUBDIRS += compiler
endif
SUBDIRS += tests
AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
AM_CPPFLAGS += $(BOOST_INCLUDES)