20 |
dnl along with this program; if not, write to the Free Software |
dnl along with this program; if not, write to the Free Software |
21 |
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
22 |
dnl |
dnl |
23 |
AC_INIT(global/global.c) |
AC_INIT(GNU GLOBAL, 4.8.2) |
24 |
|
AC_CONFIG_SRCDIR(global/global.c) |
25 |
AM_CONFIG_HEADER(config.h:config-h.in) |
AM_CONFIG_HEADER(config.h:config-h.in) |
26 |
AM_INIT_AUTOMAKE(global, 4.8.2) |
AC_PREREQ(2.59) |
27 |
AC_PREREQ(2.57) |
AM_INIT_AUTOMAKE([1.9.3 gnu]) |
28 |
|
|
29 |
dnl Checks for programs. |
dnl Checks for programs. |
30 |
AC_PROG_CC |
AC_PROG_CC |
51 |
AC_HEADER_STDC |
AC_HEADER_STDC |
52 |
AC_HEADER_STAT |
AC_HEADER_STAT |
53 |
AC_HEADER_TIME |
AC_HEADER_TIME |
|
AC_C_BIGENDIAN |
|
54 |
|
|
55 |
dnl Checks for typedefs, structures, and compiler characteristics. |
dnl Checks for typedefs, structures, and compiler characteristics. |
56 |
AC_C_CONST |
AC_C_CONST |
57 |
AC_TYPE_OFF_T |
AC_TYPE_OFF_T |
58 |
AC_TYPE_SIZE_T |
AC_TYPE_SIZE_T |
59 |
AC_STRUCT_ST_BLKSIZE |
AC_STRUCT_ST_BLKSIZE |
60 |
AC_CHECK_TYPE(int8_t, signed char) |
AC_C_BIGENDIAN |
61 |
AC_CHECK_TYPE(int16_t, short) |
AC_CHECK_TYPE([int8_t],,[AC_DEFINE_UNQUOTED([int8_t], [signed char], |
62 |
AC_CHECK_TYPE(int32_t, int) |
[Define to `signed char' if <sys/types.h> does not define.])]) |
63 |
AC_CHECK_TYPE(u_int8_t, unsigned char) |
AC_CHECK_TYPE([int16_t],,[AC_DEFINE_UNQUOTED([int16_t], [short], |
64 |
AC_CHECK_TYPE(u_int16_t, unsigned short) |
[Define to `short' if <sys/types.h> does not define.])]) |
65 |
AC_CHECK_TYPE(u_int32_t, unsigned int) |
AC_CHECK_TYPE([int32_t],,[AC_DEFINE_UNQUOTED([int32_t], [int], |
66 |
AC_CHECK_TYPE(ssize_t, int) |
[Define to `int' if <sys/types.h> does not define.])]) |
67 |
AC_CHECK_TYPE(caddr_t, char *) |
AC_CHECK_TYPE([u_int8_t],,[AC_DEFINE_UNQUOTED([u_int8_t], [unsigned char], |
68 |
AC_CHECK_SIZEOF(int, 4) |
[Define to `unsigned char' if <sys/types.h> does not define.])]) |
69 |
|
AC_CHECK_TYPE([u_int16_t],,[AC_DEFINE_UNQUOTED([u_int16_t], [unsigned short], |
70 |
|
[Define to `unsigned short' if <sys/types.h> does not define.])]) |
71 |
|
AC_CHECK_TYPE([u_int32_t],,[AC_DEFINE_UNQUOTED([u_int32_t], [unsigned int], |
72 |
|
[Define to `unsigned int' if <sys/types.h> does not define.])]) |
73 |
|
AC_CHECK_TYPE([ssize_t],,[AC_DEFINE_UNQUOTED([ssize_t], [int], |
74 |
|
[Define to `int' if <sys/types.h> does not define.])]) |
75 |
|
AC_CHECK_TYPE([caddr_t],,[AC_DEFINE_UNQUOTED([caddr_t], [char *], |
76 |
|
[Define to `char *' if <sys/types.h> does not define.])]) |
77 |
|
AC_CHECK_SIZEOF(int) |
78 |
if test ${ac_cv_sizeof_int} != 4; then |
if test ${ac_cv_sizeof_int} != 4; then |
79 |
AC_MSG_ERROR([Integer size isn't 32 bit.]) |
AC_MSG_ERROR([Integer size isn't 32 bit.]) |
80 |
fi |
fi |
81 |
AC_CHECK_SIZEOF(short, 2) |
AC_CHECK_SIZEOF(short) |
82 |
if test ${ac_cv_sizeof_short} != 2; then |
if test ${ac_cv_sizeof_short} != 2; then |
83 |
AC_MSG_ERROR([Short integer size isn't 16 bit.]) |
AC_MSG_ERROR([Short integer size isn't 16 bit.]) |
84 |
fi |
fi |
85 |
AC_CHECK_SIZEOF(char, 1) |
AC_CHECK_SIZEOF(char) |
86 |
if test ${ac_cv_sizeof_char} != 1; then |
if test ${ac_cv_sizeof_char} != 1; then |
87 |
AC_MSG_ERROR([Char size isn't 8 bit.]) |
AC_MSG_ERROR([Char size isn't 8 bit.]) |
88 |
fi |
fi |