mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 23:45:27 +00:00
[3745] Handle better cross compiling
This commit is contained in:
committed by
Tomek Mrugalski
parent
b4f3640c55
commit
bcf1a11b27
16
configure.ac
16
configure.ac
@@ -27,6 +27,7 @@ AC_CONFIG_HEADERS([config.h])
|
|||||||
AC_CONFIG_MACRO_DIR([m4macros])
|
AC_CONFIG_MACRO_DIR([m4macros])
|
||||||
|
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
|
AC_CANONICAL_BUILD
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
@@ -58,6 +59,21 @@ if test "$sep" = "__NONE__"; then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(SEP)
|
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
|
# Enable low-performing debugging facilities? This option optionally
|
||||||
# enables some debugging aids that perform slowly and hence aren't built
|
# enables some debugging aids that perform slowly and hence aren't built
|
||||||
# by default.
|
# by default.
|
||||||
|
@@ -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 = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
|
||||||
AM_CPPFLAGS += $(BOOST_INCLUDES)
|
AM_CPPFLAGS += $(BOOST_INCLUDES)
|
||||||
|
Reference in New Issue
Block a user