aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-02-25 15:03:52 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-02-25 15:03:52 +0100
commita653aed4c0f0c83185fca8076559ae10553ec11f (patch)
treedc732ad657d21942d1d964763ab301a2672299f3 /m4
parentdd1ae1769858b7467bd4cde2b83b1cda8653c983 (diff)
parent06c14b83184f30498e27fed435d38d6e33338f2c (diff)
downloadnx-libs-a653aed4c0f0c83185fca8076559ae10553ec11f.tar.gz
nx-libs-a653aed4c0f0c83185fca8076559ae10553ec11f.tar.bz2
nx-libs-a653aed4c0f0c83185fca8076559ae10553ec11f.zip
Merge branch 'Ionic-bugfix/FTBFS-non-ELF' into 3.6.x
Attributes GH PR #663: https://github.com/ArcticaProject/nx-libs/pull/663
Diffstat (limited to 'm4')
-rw-r--r--m4/nx-macros.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/nx-macros.m4 b/m4/nx-macros.m4
index 1c0e1ea7a..81d6ea147 100644
--- a/m4/nx-macros.m4
+++ b/m4/nx-macros.m4
@@ -407,6 +407,23 @@ FreeBSD=
test "$nxconf_cv_freebsd" = yes && FreeBSD=yes
]) # NX_BUILD_ON_FreeBSD
+# Check to see if we're generating binaries in ELF format.
+
+AC_DEFUN([NX_TARGET_USE_ELF],
+[AC_CACHE_CHECK([if target system is ELF-based], [nxconf_cv_targetelf],
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+[[
+#ifndef __ELF__
+#error not an ELF-based system
+error!
+#endif
+]],
+[[
+]])],
+[nxconf_cv_targetelf=yes], [nxconf_cv_targetelf=no])])
+AM_CONDITIONAL([TARGET_ELF], [test x"$nxconf_cv_targetelf" = "xyes"])
+]) # NX_TARGET_USE_ELF
+
AC_DEFUN([LIBJPEG_FALLBACK_CHECK],[
AC_MSG_CHECKING([for libjpeg shared libary file and headers])
AC_CHECK_LIB([jpeg], [jpeg_destroy_compress],