Add cross-compilation defaults to most AC_TRY_RUN values. The
supplied values are the most "normal" or "common" values found for recent 32 bit machines. This now seems to work to build Python 2.2 for the ARM processor used on the iPAQ.
This commit is contained in:
parent
305b5857f6
commit
3065c94f37
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# From configure.in Revision: 1.258
|
# From configure.in Revision: 1.260
|
||||||
|
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated automatically using autoconf version 2.13
|
# Generated automatically using autoconf version 2.13
|
||||||
|
@ -1679,7 +1679,7 @@ else
|
||||||
ac_save_cc="$CC"
|
ac_save_cc="$CC"
|
||||||
CC="$CC -OPT:Olimit=0"
|
CC="$CC -OPT:Olimit=0"
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_opt_olimit_ok=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1686 "configure"
|
#line 1686 "configure"
|
||||||
|
@ -1716,7 +1716,7 @@ else
|
||||||
ac_save_cc="$CC"
|
ac_save_cc="$CC"
|
||||||
CC="$CC -Olimit 1500"
|
CC="$CC -Olimit 1500"
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_olimit_ok=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1723 "configure"
|
#line 1723 "configure"
|
||||||
|
@ -2318,7 +2318,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_int=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2325 "configure"
|
#line 2325 "configure"
|
||||||
|
@ -2357,7 +2357,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_long=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2364 "configure"
|
#line 2364 "configure"
|
||||||
|
@ -2396,7 +2396,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_void_p=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2403 "configure"
|
#line 2403 "configure"
|
||||||
|
@ -2435,7 +2435,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_char=1
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2442 "configure"
|
#line 2442 "configure"
|
||||||
|
@ -2474,7 +2474,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_short=2
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2481 "configure"
|
#line 2481 "configure"
|
||||||
|
@ -2513,7 +2513,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_float=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2520 "configure"
|
#line 2520 "configure"
|
||||||
|
@ -2552,7 +2552,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_double=8
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2559 "configure"
|
#line 2559 "configure"
|
||||||
|
@ -2591,7 +2591,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_fpos_t=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2598 "configure"
|
#line 2598 "configure"
|
||||||
|
@ -2655,7 +2655,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_long_long=8
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2662 "configure"
|
#line 2662 "configure"
|
||||||
|
@ -2720,7 +2720,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_uintptr_t=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2727 "configure"
|
#line 2727 "configure"
|
||||||
|
@ -2762,7 +2762,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_off_t=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2769 "configure"
|
#line 2769 "configure"
|
||||||
|
@ -2819,7 +2819,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_time_t=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2826 "configure"
|
#line 2826 "configure"
|
||||||
|
@ -2889,7 +2889,7 @@ echo "configure:2888: checking size of pthread_t" >&5
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_pthread_t=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2896 "configure"
|
#line 2896 "configure"
|
||||||
|
@ -4055,7 +4055,7 @@ echo "configure:4054: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_pthread_system_supported=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 4062 "configure"
|
#line 4062 "configure"
|
||||||
|
@ -6095,7 +6095,7 @@ if eval "test \"`echo '$''{'ac_cv_bad_static_forward'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_bad_static_forward=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6102 "configure"
|
#line 6102 "configure"
|
||||||
|
@ -6647,7 +6647,7 @@ if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_malloc_zero=nonnull
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6654 "configure"
|
#line 6654 "configure"
|
||||||
|
@ -6682,7 +6682,7 @@ rm -fr conftest*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
# XXX arm cross-compile?
|
||||||
echo "$ac_t""$ac_cv_malloc_zero" 1>&6
|
echo "$ac_t""$ac_cv_malloc_zero" 1>&6
|
||||||
if test "$ac_cv_malloc_zero" = null
|
if test "$ac_cv_malloc_zero" = null
|
||||||
then
|
then
|
||||||
|
@ -6741,7 +6741,7 @@ if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_sizeof_wchar_t=4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6748 "configure"
|
#line 6748 "configure"
|
||||||
|
@ -6951,7 +6951,7 @@ if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then
|
||||||
else
|
else
|
||||||
|
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_rshift_extends_sign=yes
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 6958 "configure"
|
#line 6958 "configure"
|
||||||
|
@ -7079,7 +7079,7 @@ if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then
|
||||||
else
|
else
|
||||||
|
|
||||||
if test "$cross_compiling" = yes; then
|
if test "$cross_compiling" = yes; then
|
||||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
ac_cv_broken_nice=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 7086 "configure"
|
#line 7086 "configure"
|
||||||
|
|
64
configure.in
64
configure.in
|
@ -380,6 +380,7 @@ AC_CACHE_VAL(ac_cv_opt_olimit_ok,
|
||||||
CC="$CC -OPT:Olimit=0"
|
CC="$CC -OPT:Olimit=0"
|
||||||
AC_TRY_RUN([int main() { return 0; }],
|
AC_TRY_RUN([int main() { return 0; }],
|
||||||
ac_cv_opt_olimit_ok=yes,
|
ac_cv_opt_olimit_ok=yes,
|
||||||
|
ac_cv_opt_olimit_ok=no,
|
||||||
ac_cv_opt_olimit_ok=no)
|
ac_cv_opt_olimit_ok=no)
|
||||||
CC="$ac_save_cc"])
|
CC="$ac_save_cc"])
|
||||||
AC_MSG_RESULT($ac_cv_opt_olimit_ok)
|
AC_MSG_RESULT($ac_cv_opt_olimit_ok)
|
||||||
|
@ -395,6 +396,7 @@ else
|
||||||
CC="$CC -Olimit 1500"
|
CC="$CC -Olimit 1500"
|
||||||
AC_TRY_RUN([int main() { return 0; }],
|
AC_TRY_RUN([int main() { return 0; }],
|
||||||
ac_cv_olimit_ok=yes,
|
ac_cv_olimit_ok=yes,
|
||||||
|
ac_cv_olimit_ok=no,
|
||||||
ac_cv_olimit_ok=no)
|
ac_cv_olimit_ok=no)
|
||||||
CC="$ac_save_cc"])
|
CC="$ac_save_cc"])
|
||||||
AC_MSG_RESULT($ac_cv_olimit_ok)
|
AC_MSG_RESULT($ac_cv_olimit_ok)
|
||||||
|
@ -468,21 +470,21 @@ AC_TYPE_SIZE_T
|
||||||
AC_TYPE_UID_T
|
AC_TYPE_UID_T
|
||||||
|
|
||||||
# Sizes of various common basic types
|
# Sizes of various common basic types
|
||||||
AC_CHECK_SIZEOF(int)
|
AC_CHECK_SIZEOF(int, 4)
|
||||||
AC_CHECK_SIZEOF(long)
|
AC_CHECK_SIZEOF(long, 4)
|
||||||
AC_CHECK_SIZEOF(void *)
|
AC_CHECK_SIZEOF(void *, 4)
|
||||||
AC_CHECK_SIZEOF(char)
|
AC_CHECK_SIZEOF(char, 1)
|
||||||
AC_CHECK_SIZEOF(short)
|
AC_CHECK_SIZEOF(short, 2)
|
||||||
AC_CHECK_SIZEOF(float)
|
AC_CHECK_SIZEOF(float, 4)
|
||||||
AC_CHECK_SIZEOF(double)
|
AC_CHECK_SIZEOF(double, 8)
|
||||||
AC_CHECK_SIZEOF(fpos_t)
|
AC_CHECK_SIZEOF(fpos_t, 4)
|
||||||
|
|
||||||
AC_MSG_CHECKING(for long long support)
|
AC_MSG_CHECKING(for long long support)
|
||||||
have_long_long=no
|
have_long_long=no
|
||||||
AC_TRY_COMPILE([], [long long x; x = (long long)0;], AC_DEFINE(HAVE_LONG_LONG) have_long_long=yes)
|
AC_TRY_COMPILE([], [long long x; x = (long long)0;], AC_DEFINE(HAVE_LONG_LONG) have_long_long=yes)
|
||||||
AC_MSG_RESULT($have_long_long)
|
AC_MSG_RESULT($have_long_long)
|
||||||
if test "$have_long_long" = yes ; then
|
if test "$have_long_long" = yes ; then
|
||||||
AC_CHECK_SIZEOF(long long)
|
AC_CHECK_SIZEOF(long long, 8)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(for uintptr_t support)
|
AC_MSG_CHECKING(for uintptr_t support)
|
||||||
|
@ -490,7 +492,7 @@ have_uintptr_t=no
|
||||||
AC_TRY_COMPILE([], [uintptr_t x; x = (uintptr_t)0;], AC_DEFINE(HAVE_UINTPTR_T) have_uintptr_t=yes)
|
AC_TRY_COMPILE([], [uintptr_t x; x = (uintptr_t)0;], AC_DEFINE(HAVE_UINTPTR_T) have_uintptr_t=yes)
|
||||||
AC_MSG_RESULT($have_uintptr_t)
|
AC_MSG_RESULT($have_uintptr_t)
|
||||||
if test "$have_uintptr_t" = yes ; then
|
if test "$have_uintptr_t" = yes ; then
|
||||||
AC_CHECK_SIZEOF(uintptr_t)
|
AC_CHECK_SIZEOF(uintptr_t, 4)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
|
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
|
||||||
|
@ -504,7 +506,10 @@ main()
|
||||||
if (!f) exit(1);
|
if (!f) exit(1);
|
||||||
fprintf(f, "%d\n", sizeof(off_t));
|
fprintf(f, "%d\n", sizeof(off_t));
|
||||||
exit(0);
|
exit(0);
|
||||||
}], ac_cv_sizeof_off_t=`cat conftestval`, ac_cv_sizeof_off_t=0)
|
}],
|
||||||
|
ac_cv_sizeof_off_t=`cat conftestval`,
|
||||||
|
ac_cv_sizeof_off_t=0,
|
||||||
|
ac_cv_sizeof_off_t=4)
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($ac_cv_sizeof_off_t)
|
AC_MSG_RESULT($ac_cv_sizeof_off_t)
|
||||||
AC_DEFINE_UNQUOTED(SIZEOF_OFF_T, $ac_cv_sizeof_off_t)
|
AC_DEFINE_UNQUOTED(SIZEOF_OFF_T, $ac_cv_sizeof_off_t)
|
||||||
|
@ -530,7 +535,10 @@ main()
|
||||||
if (!f) exit(1);
|
if (!f) exit(1);
|
||||||
fprintf(f, "%d\n", sizeof(time_t));
|
fprintf(f, "%d\n", sizeof(time_t));
|
||||||
exit(0);
|
exit(0);
|
||||||
}], ac_cv_sizeof_time_t=`cat conftestval`, ac_cv_sizeof_time_t=0)
|
}],
|
||||||
|
ac_cv_sizeof_time_t=`cat conftestval`,
|
||||||
|
ac_cv_sizeof_time_t=0,
|
||||||
|
ac_cv_sizeof_time_t=4)
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($ac_cv_sizeof_time_t)
|
AC_MSG_RESULT($ac_cv_sizeof_time_t)
|
||||||
AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t)
|
AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t)
|
||||||
|
@ -557,7 +565,10 @@ if test "$have_pthread_t" = yes ; then
|
||||||
if (!f) exit(1);
|
if (!f) exit(1);
|
||||||
fprintf(f, "%d\n", sizeof(pthread_t));
|
fprintf(f, "%d\n", sizeof(pthread_t));
|
||||||
exit(0);
|
exit(0);
|
||||||
}], ac_cv_sizeof_pthread_t=`cat conftestval`, ac_cv_sizeof_pthread_t=0)
|
}],
|
||||||
|
ac_cv_sizeof_pthread_t=`cat conftestval`,
|
||||||
|
ac_cv_sizeof_pthread_t=0,
|
||||||
|
ac_cv_sizeof_pthread_t=4)
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($ac_cv_sizeof_pthread_t)
|
AC_MSG_RESULT($ac_cv_sizeof_pthread_t)
|
||||||
AC_DEFINE_UNQUOTED(SIZEOF_PTHREAD_T, $ac_cv_sizeof_pthread_t)
|
AC_DEFINE_UNQUOTED(SIZEOF_PTHREAD_T, $ac_cv_sizeof_pthread_t)
|
||||||
|
@ -993,7 +1004,10 @@ else
|
||||||
if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
|
if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
|
||||||
if (pthread_create(NULL, &attr, foo, NULL)) exit(-1);
|
if (pthread_create(NULL, &attr, foo, NULL)) exit(-1);
|
||||||
exit(0);
|
exit(0);
|
||||||
}], ac_cv_pthread_system_supported=yes, ac_cv_pthread_system_supported=no)
|
}],
|
||||||
|
ac_cv_pthread_system_supported=yes,
|
||||||
|
ac_cv_pthread_system_supported=no,
|
||||||
|
ac_cv_pthread_system_supported=no)
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($ac_cv_pthread_system_supported)
|
AC_MSG_RESULT($ac_cv_pthread_system_supported)
|
||||||
if test "$ac_cv_pthread_system_supported" = "yes"; then
|
if test "$ac_cv_pthread_system_supported" = "yes"; then
|
||||||
|
@ -1548,7 +1562,10 @@ int foobar() {
|
||||||
static struct s foo = { 1, 2 };
|
static struct s foo = { 1, 2 };
|
||||||
main() {
|
main() {
|
||||||
exit(!((int)&foo == foobar()));
|
exit(!((int)&foo == foobar()));
|
||||||
}], ac_cv_bad_static_forward=no, ac_cv_bad_static_forward=yes)])
|
}],
|
||||||
|
ac_cv_bad_static_forward=no,
|
||||||
|
ac_cv_bad_static_forward=yes,
|
||||||
|
ac_cv_bad_static_forward=no)])
|
||||||
AC_MSG_RESULT($ac_cv_bad_static_forward)
|
AC_MSG_RESULT($ac_cv_bad_static_forward)
|
||||||
if test "$ac_cv_bad_static_forward" = yes
|
if test "$ac_cv_bad_static_forward" = yes
|
||||||
then
|
then
|
||||||
|
@ -1710,7 +1727,10 @@ main() {
|
||||||
if (p == NULL) exit(1);
|
if (p == NULL) exit(1);
|
||||||
free(p);
|
free(p);
|
||||||
exit(0);
|
exit(0);
|
||||||
}], ac_cv_malloc_zero=nonnull, ac_cv_malloc_zero=null)])
|
}],
|
||||||
|
ac_cv_malloc_zero=nonnull,
|
||||||
|
ac_cv_malloc_zero=null,
|
||||||
|
ac_cv_malloc_zero=nonnull)]) # XXX arm cross-compile?
|
||||||
AC_MSG_RESULT($ac_cv_malloc_zero)
|
AC_MSG_RESULT($ac_cv_malloc_zero)
|
||||||
if test "$ac_cv_malloc_zero" = null
|
if test "$ac_cv_malloc_zero" = null
|
||||||
then
|
then
|
||||||
|
@ -1726,7 +1746,7 @@ wchar_h="no"
|
||||||
# determine wchar_t size
|
# determine wchar_t size
|
||||||
if test "$wchar_h" = yes
|
if test "$wchar_h" = yes
|
||||||
then
|
then
|
||||||
AC_CHECK_SIZEOF(wchar_t)
|
AC_CHECK_SIZEOF(wchar_t, 4)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(what type to use for unicode)
|
AC_MSG_CHECKING(what type to use for unicode)
|
||||||
|
@ -1787,7 +1807,10 @@ int main()
|
||||||
{
|
{
|
||||||
exit(((-1)>>3 == -1) ? 0 : 1);
|
exit(((-1)>>3 == -1) ? 0 : 1);
|
||||||
}
|
}
|
||||||
], ac_cv_rshift_extends_sign=yes, ac_cv_rshift_extends_sign=no)])
|
],
|
||||||
|
ac_cv_rshift_extends_sign=yes,
|
||||||
|
ac_cv_rshift_extends_sign=no,
|
||||||
|
ac_cv_rshift_extends_sign=yes)])
|
||||||
AC_MSG_RESULT($ac_cv_rshift_extends_sign)
|
AC_MSG_RESULT($ac_cv_rshift_extends_sign)
|
||||||
if test "$ac_cv_rshift_extends_sign" = no
|
if test "$ac_cv_rshift_extends_sign" = no
|
||||||
then
|
then
|
||||||
|
@ -1823,7 +1846,10 @@ int main()
|
||||||
exit(0);
|
exit(0);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
],ac_cv_broken_nice=yes, ac_cv_broken_nice=no)])
|
],
|
||||||
|
ac_cv_broken_nice=yes,
|
||||||
|
ac_cv_broken_nice=no,
|
||||||
|
ac_cv_broken_nice=no)])
|
||||||
AC_MSG_RESULT($ac_cv_broken_nice)
|
AC_MSG_RESULT($ac_cv_broken_nice)
|
||||||
if test "$ac_cv_broken_nice" = yes
|
if test "$ac_cv_broken_nice" = yes
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue