Index: configure.in =================================================================== RCS file: /cvs/tools/dmake/configure.in,v retrieving revision 1.19 diff -u -r1.19 configure.in --- configure.in 25 Mar 2003 14:02:10 -0000 1.19 +++ configure.in 19 Apr 2003 15:03:18 -0000 @@ -37,6 +37,12 @@ AC_C_CONST AC_TYPE_OFF_T AC_TYPE_SIZE_T +AC_CHECK_TYPES(int8) +AC_CHECK_TYPES(uint8) +AC_CHECK_TYPES(int16) +AC_CHECK_TYPES(uint16) +AC_CHECK_TYPES(int32) +AC_CHECK_TYPES(uint32) AC_HEADER_TIME AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(int, 4) @@ -47,7 +53,7 @@ AC_TYPE_SIGNAL AC_FUNC_UTIME_NULL AC_FUNC_VPRINTF -AC_CHECK_FUNCS(getcwd getwd putenv strcspn strerror strspn strstr setvbuf tzset settz) +AC_CHECK_FUNCS(getcwd getwd putenv strcspn strerror strspn strstr setvbuf tzset settz tmpfile) dnl Checks for OS AC_MSG_CHECKING([the operating system]) @@ -110,6 +116,9 @@ ;; "GNU") OS_VERSION=linux + ;; + "AIX") + OS_VERSION=sysvr4 ;; *) AC_MSG_ERROR([$_os operating system is not suitable to build dmake!]) Index: itypes.h =================================================================== RCS file: /cvs/tools/dmake/itypes.h,v retrieving revision 1.2 diff -u -r1.2 itypes.h --- itypes.h 25 Mar 2003 14:02:12 -0000 1.2 +++ itypes.h 19 Apr 2003 15:03:18 -0000 @@ -27,25 +27,55 @@ #ifndef ITYPES_h #define ITYPES_h -typedef unsigned char uint8; -typedef signed char int8; +#ifndef HAVE_INT8 + typedef unsigned char uint8; +#endif + +#ifndef HAVE_INT8 + typedef signed char int8; +#endif + #if SIZEOF_SHORT == 2 -typedef unsigned short uint16; -typedef short int16; +# ifndef HAVE_UINT16 + typedef unsigned short uint16; +# endif + +# ifndef HAVE_INT16 + typedef short int16; +# endif + #elif SIZEOF_INT == 2 -typedef unsigned int uint16; -typedef int int16; + +# ifndef HAVE_UNIT16 + typedef unsigned int uint16; +# endif + +# ifndef HAVE_INT16 + typedef int int16; +# endif #else -#error "No 2 byte type, you lose." +# ifndef HAVE_INT16 +# error "No 2 byte type, you lose." +# endif #endif #if SIZEOF_INT == 4 -typedef unsigned int uint32; -typedef int int32; +# ifndef HAVE_UINT32 + typedef unsigned int uint32; +# endif +# ifndef HAVE_INT32 + typedef int int32; +# endif #elif SIZEOF_LONG == 4 -typedef unsigned long uint32; -typedef long int32; +# ifndef HAVE_UINT32 + typedef unsigned long uint32; +# endif +# ifndef HAVE_INT32 + typedef long int32; +# endif #else -#error "No 4 byte type, you lose." +# ifndef HAVE_INT32 +# error "No 4 byte type, you lose." +# endif #endif #endif Index: unix/sysvr4/public.h =================================================================== RCS file: /cvs/tools/dmake/unix/sysvr4/public.h,v retrieving revision 1.3 diff -u -r1.3 public.h --- unix/sysvr4/public.h 25 Mar 2003 14:02:49 -0000 1.3 +++ unix/sysvr4/public.h 19 Apr 2003 15:03:19 -0000 @@ -88,7 +88,7 @@ int Test_circle ANSI((CELLPTR, int)); STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int)); t_attr Rcp_attribute ANSI((char *)); -void main ANSI((int, char **)); +int main ANSI((int, char **)); FILE *Openfile ANSI((char *, int, int)); FILE *Closefile ANSI(()); FILE *Search_file ANSI((char *, char **));