Export SIZEOF_LONG and SIZEOF_KERNEL_LONG_T to tests
* configure.ac (AC_SUBST): Add SIZEOF_LONG and SIZEOF_KERNEL_LONG_T. * tests/Makefile.am (SIZEOF_LONG, SIZEOF_KERNEL_LONG_T): New variables. (AM_TEST_LOG_FLAGS): Pass them. * bootstrap: Substitute them.
This commit is contained in:
parent
101621d4c7
commit
4b36fd69f7
@ -10,7 +10,9 @@ for m in m32 mx32; do
|
||||
rm -rf $tests
|
||||
mkdir $tests
|
||||
s='[[:space:]]*'
|
||||
[ "$m" = m32 ] && k="s/^\\(SIZEOF_KERNEL_LONG_T$s=\\).*/\\1 4/;" || k=
|
||||
sed "s/@arch@/@arch_$m@/;
|
||||
s/^\\(SIZEOF_LONG$s=\\).*/\\1 4/; $k
|
||||
s/^MPERS_NAME$s=.*/& $m/;
|
||||
s/^MPERS_CC_FLAGS$s=.*/& @cc_flags_$m@/;
|
||||
s/^ARCH_MFLAGS$s=.*/& -DMPERS_IS_\$(MPERS_NAME) \$(MPERS_CC_FLAGS)/" \
|
||||
|
@ -755,11 +755,16 @@ AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64],
|
||||
fi)
|
||||
|
||||
AC_CHECK_SIZEOF([long])
|
||||
SIZEOF_LONG="$ac_cv_sizeof_long"
|
||||
AC_SUBST(SIZEOF_LONG)
|
||||
AC_CHECK_SIZEOF([long long])
|
||||
AC_CHECK_SIZEOF([off_t],,[#include <sys/types.h>])
|
||||
AC_CHECK_SIZEOF([kernel_long_t],,[#include "$srcdir/kernel_types.h"])
|
||||
SIZEOF_KERNEL_LONG_T="$ac_cv_sizeof_kernel_long_t"
|
||||
AC_SUBST(SIZEOF_KERNEL_LONG_T)
|
||||
AC_CHECK_SIZEOF([struct i64_i32],,[struct i64_i32 {long long i64; int i32;};])
|
||||
|
||||
|
||||
AC_CACHE_CHECK([for SIGRTMIN], [st_cv_SIGRTMIN],
|
||||
[[st_cv_SIGRTMIN="$(echo SIGRTMIN |
|
||||
$CPP $CPPFLAGS -P -imacros asm/signal.h - |
|
||||
|
@ -29,6 +29,8 @@
|
||||
OS = linux
|
||||
ARCH = @arch@
|
||||
NATIVE_ARCH = @arch_native@
|
||||
SIZEOF_KERNEL_LONG_T = @SIZEOF_KERNEL_LONG_T@
|
||||
SIZEOF_LONG = @SIZEOF_LONG@
|
||||
MPERS_NAME =
|
||||
MPERS_CC_FLAGS =
|
||||
ARCH_MFLAGS =
|
||||
@ -325,6 +327,8 @@ XFAIL_TESTS = $(XFAIL_TESTS_$(MPERS_NAME)) $(XFAIL_TESTS_$(ARCH))
|
||||
|
||||
TEST_LOG_COMPILER = env
|
||||
AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) STRACE_NATIVE_ARCH=$(NATIVE_ARCH) \
|
||||
SIZEOF_KERNEL_LONG_T=$(SIZEOF_KERNEL_LONG_T) \
|
||||
SIZEOF_LONG=$(SIZEOF_LONG) \
|
||||
MIPS_ABI=$(MIPS_ABI) $(srcdir)/run.sh
|
||||
|
||||
@VALGRIND_CHECK_RULES@
|
||||
|
Loading…
x
Reference in New Issue
Block a user