diff options
Diffstat (limited to 'libsframe/configure.ac')
-rw-r--r-- | libsframe/configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libsframe/configure.ac b/libsframe/configure.ac index c0da671..3059303 100644 --- a/libsframe/configure.ac +++ b/libsframe/configure.ac @@ -20,6 +20,8 @@ dnl AC_INIT([libsframe], BFD_VERSION) AC_CONFIG_SRCDIR(sframe.c) +AC_CANONICAL_TARGET +AC_CANONICAL_HOST AC_USE_SYSTEM_EXTENSIONS AM_INIT_AUTOMAKE AM_SILENT_RULES([yes]) @@ -109,6 +111,17 @@ else fi AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes") +dnl Determine if we are cross compiling + +is_cross_compiler= +if test x"${host}" = x"${target}" ; then + is_cross_compiler=no +else + is_cross_compiler=yes +fi +CROSS_COMPILE=$is_cross_compiler +AC_SUBST([CROSS_COMPILE]) + dnl The libsframebt library needs to be built with SFrame info. dnl If the build assembler is not capable of generate SFrame then dnl the library is not built. |