pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
1998-05-29
1998-05-29 20:41:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>
63a6e0473f6e570ae2bf4f850fd7f46b128117ec (
25
lines) (+
24
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Now checks if strtol works for large hexadecimal constants.
Rev: src/configure.in:1.194
1:
-
AC_REVISION("$Id: configure.in,v 1.
193
1998/05/
24
22
:
40
:
22
marcus
Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
194
1998/05/
29
20
:
41
:
19
grubba
Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
1067:
#############################################################################
+
if test "x$ac_cv_func_strtol" = "xyes"; then
+
AC_MSG_CHECKING(if strtol works for large hexadecimal constants)
+
AC_CACHE_VAL(pike_cv_func_strtol_works, [
+
AC_TRY_RUN([
+
#include <stdlib.h>
+
int main(int argc, char **argv)
+
{
+
/* On some OS's strtol() rounds this to 0x7fffffff. */
+
return(strtol("0xffffffff", NULL, 0) != 0xffffffff);
+
}
+
], pike_cv_func_strtol_works=yes,
+
pike_cv_func_strtol_works=no,
+
pike_cv_func_strtol_works=no)
+
])
+
AC_MSG_RESULT($pike_cv_func_strtol_works)
+
if test "x$pike_cv_func_strtol_works" = "xyes"; then
+
AC_DEFINE(HAVE_WORKING_STRTOL)
+
else :; fi
+
else :; fi
+
+
#############################################################################
+
AC_MSG_CHECKING(if gettimeofday takes two arguments) AC_CACHE_VAL(pike_cv_func_gettimeofday_has_two_args, [