mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-11 21:48:50 +01:00
* configure.ac: Improved --disable-endian-check that doesn't involve
changing #ifdefs in the rest of the code.
This commit is contained in:
parent
7fcba082c9
commit
ca766728f4
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-20 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* configure.ac: Improved --disable-endian-check that doesn't
|
||||||
|
involve changing #ifdefs in the rest of the code.
|
||||||
|
|
||||||
2006-03-19 David Shaw <dshaw@jabberwocky.com>
|
2006-03-19 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* configure.ac: Add --disable-endian-check for building fat
|
* configure.ac: Add --disable-endian-check for building fat
|
||||||
|
22
configure.ac
22
configure.ac
@ -405,6 +405,18 @@ AH_TOP([
|
|||||||
])
|
])
|
||||||
|
|
||||||
AH_BOTTOM([
|
AH_BOTTOM([
|
||||||
|
/* We didn't define endianness above, so get it from OS macros. This
|
||||||
|
is intended for making fat binary builds on OS X. */
|
||||||
|
#if !defined(BIG_ENDIAN_HOST) && !defined(LITTLE_ENDIAN_HOST)
|
||||||
|
#if defined(__BIG_ENDIAN__)
|
||||||
|
#define BIG_ENDIAN_HOST 1
|
||||||
|
#elif defined(__LITTLE_ENDIAN__)
|
||||||
|
#define LITTLE_ENDIAN_HOST 1
|
||||||
|
#else
|
||||||
|
#error "No endianness found"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !(defined(HAVE_FORK) && defined(HAVE_PIPE) && defined(HAVE_WAITPID))
|
#if !(defined(HAVE_FORK) && defined(HAVE_PIPE) && defined(HAVE_WAITPID))
|
||||||
#define EXEC_TEMPFILE_ONLY
|
#define EXEC_TEMPFILE_ONLY
|
||||||
#endif
|
#endif
|
||||||
@ -824,15 +836,11 @@ AC_TYPE_SIGNAL
|
|||||||
AC_DECL_SYS_SIGLIST
|
AC_DECL_SYS_SIGLIST
|
||||||
|
|
||||||
AC_ARG_ENABLE(endian-check,
|
AC_ARG_ENABLE(endian-check,
|
||||||
AC_HELP_STRING([--disable-endian-check],[disable the endian check and trust the OS provided macros]),
|
AC_HELP_STRING([--disable-endian-check],
|
||||||
|
[disable the endian check and trust the OS provided macros]),
|
||||||
endiancheck=$enableval,endiancheck=yes)
|
endiancheck=$enableval,endiancheck=yes)
|
||||||
|
|
||||||
if test x"$endiancheck" = xno ; then
|
if test x"$endiancheck" = xyes ; then
|
||||||
# don't do an endian check so we can build universal ("fat")
|
|
||||||
# binaries on OS X.
|
|
||||||
AC_DEFINE_UNQUOTED(LITTLE_ENDIAN_HOST,__LITTLE_ENDIAN__)
|
|
||||||
AC_DEFINE_UNQUOTED(BIG_ENDIAN_HOST,__BIG_ENDIAN__)
|
|
||||||
else
|
|
||||||
GNUPG_CHECK_ENDIAN
|
GNUPG_CHECK_ENDIAN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user