|
@@ -7927,18 +7927,18 @@ else
|
|
|
/* end build/confdefs.h. */
|
|
/* end build/confdefs.h. */
|
|
|
|
|
|
|
|
/* For now, do not test the preprocessor; as of 2007 there are too many
|
|
/* For now, do not test the preprocessor; as of 2007 there are too many
|
|
|
- implementations with broken preprocessors. Perhaps this can
|
|
|
|
|
- be revisited in 2012. In the meantime, code should not expect
|
|
|
|
|
- #if to work with literals wider than 32 bits. */
|
|
|
|
|
|
|
+ implementations with broken preprocessors. Perhaps this can
|
|
|
|
|
+ be revisited in 2012. In the meantime, code should not expect
|
|
|
|
|
+ #if to work with literals wider than 32 bits. */
|
|
|
/* Test literals. */
|
|
/* Test literals. */
|
|
|
long long int ll = 9223372036854775807ll;
|
|
long long int ll = 9223372036854775807ll;
|
|
|
long long int nll = -9223372036854775807LL;
|
|
long long int nll = -9223372036854775807LL;
|
|
|
unsigned long long int ull = 18446744073709551615ULL;
|
|
unsigned long long int ull = 18446744073709551615ULL;
|
|
|
/* Test constant expressions. */
|
|
/* Test constant expressions. */
|
|
|
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
|
|
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
|
|
|
- ? 1 : -1)];
|
|
|
|
|
|
|
+ ? 1 : -1)];
|
|
|
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
|
|
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
|
|
|
- ? 1 : -1)];
|
|
|
|
|
|
|
+ ? 1 : -1)];
|
|
|
int i = 63;
|
|
int i = 63;
|
|
|
int
|
|
int
|
|
|
main ()
|
|
main ()
|
|
@@ -7947,9 +7947,9 @@ main ()
|
|
|
long long int llmax = 9223372036854775807ll;
|
|
long long int llmax = 9223372036854775807ll;
|
|
|
unsigned long long int ullmax = 18446744073709551615ull;
|
|
unsigned long long int ullmax = 18446744073709551615ull;
|
|
|
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
|
|
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
|
|
|
- | (llmax / ll) | (llmax % ll)
|
|
|
|
|
- | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
|
|
|
|
|
- | (ullmax / ull) | (ullmax % ull));
|
|
|
|
|
|
|
+ | (llmax / ll) | (llmax % ll)
|
|
|
|
|
+ | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
|
|
|
|
|
+ | (ullmax / ull) | (ullmax % ull));
|
|
|
;
|
|
;
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
@@ -7981,33 +7981,33 @@ if ${ac_cv_type_long_long_int+:} false; then :
|
|
|
else
|
|
else
|
|
|
ac_cv_type_long_long_int=yes
|
|
ac_cv_type_long_long_int=yes
|
|
|
if test "x${ac_cv_prog_cc_c99-no}" = xno; then
|
|
if test "x${ac_cv_prog_cc_c99-no}" = xno; then
|
|
|
- ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
|
|
|
|
|
- if test $ac_cv_type_long_long_int = yes; then
|
|
|
|
|
- if test "$cross_compiling" = yes; then :
|
|
|
|
|
|
|
+ ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
|
|
|
|
|
+ if test $ac_cv_type_long_long_int = yes; then
|
|
|
|
|
+ if test "$cross_compiling" = yes; then :
|
|
|
:
|
|
:
|
|
|
else
|
|
else
|
|
|
cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
/* end build/confdefs.h. */
|
|
/* end build/confdefs.h. */
|
|
|
#include <limits.h>
|
|
#include <limits.h>
|
|
|
- #ifndef LLONG_MAX
|
|
|
|
|
- # define HALF \
|
|
|
|
|
- (1LL << (sizeof (long long int) * CHAR_BIT - 2))
|
|
|
|
|
- # define LLONG_MAX (HALF - 1 + HALF)
|
|
|
|
|
- #endif
|
|
|
|
|
|
|
+ #ifndef LLONG_MAX
|
|
|
|
|
+ # define HALF \
|
|
|
|
|
+ (1LL << (sizeof (long long int) * CHAR_BIT - 2))
|
|
|
|
|
+ # define LLONG_MAX (HALF - 1 + HALF)
|
|
|
|
|
+ #endif
|
|
|
int
|
|
int
|
|
|
main ()
|
|
main ()
|
|
|
{
|
|
{
|
|
|
long long int n = 1;
|
|
long long int n = 1;
|
|
|
- int i;
|
|
|
|
|
- for (i = 0; ; i++)
|
|
|
|
|
- {
|
|
|
|
|
- long long int m = n << i;
|
|
|
|
|
- if (m >> i != n)
|
|
|
|
|
- return 1;
|
|
|
|
|
- if (LLONG_MAX / 2 < m)
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- return 0;
|
|
|
|
|
|
|
+ int i;
|
|
|
|
|
+ for (i = 0; ; i++)
|
|
|
|
|
+ {
|
|
|
|
|
+ long long int m = n << i;
|
|
|
|
|
+ if (m >> i != n)
|
|
|
|
|
+ return 1;
|
|
|
|
|
+ if (LLONG_MAX / 2 < m)
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0;
|
|
|
;
|
|
;
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
@@ -8021,7 +8021,7 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fi
|
|
|
|
|
|
|
+ fi
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
|
|
@@ -9023,7 +9023,7 @@ if [ "$GIT_REQUIRED" = "1" ]; then
|
|
|
echo ""
|
|
echo ""
|
|
|
echo "You have downloaded a GIT version of wraith."
|
|
echo "You have downloaded a GIT version of wraith."
|
|
|
echo "Either 'git clone' from a git repository or download a source tarball"
|
|
echo "Either 'git clone' from a git repository or download a source tarball"
|
|
|
- echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
|
|
|
|
|
|
|
+ echo "A distribution version can be found at https://github.com/wraith/wraith/wiki/Download"
|
|
|
echo ""
|
|
echo ""
|
|
|
echo ""
|
|
echo ""
|
|
|
exit 1
|
|
exit 1
|