r749: move the basic type checks
authorStefan Metzmacher <metze@samba.org>
Sun, 16 May 2004 01:16:17 +0000 (01:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:53:48 +0000 (12:53 -0500)
be more restrict if we don't have 'long long' or it's size is less than 8 bytes

(maybe only for a while, but if the build farm like it we may let it in forever
since the smb protocol really need 64 bit variables!)

metze
(This used to be commit 4a13cc22b464dfc4cbecfa6922b14c60d95876bd)

source4/build/m4/rewrite.m4

index 1639a42939422491c8caea94dec17ea9d8e7bfd3..20aef6f80de6c25c9ce037a91e2e66d21287ab65 100644 (file)
@@ -74,6 +74,21 @@ AC_VALIDATE_CACHE_SYSTEM_TYPE
 
 DYNEXP=
 
+AC_HEADER_STDC
+AC_CHECK_HEADERS(stdbool.h)
+
+AC_CHECK_SIZEOF(short,cross)
+AC_CHECK_SIZEOF(int,cross)
+AC_CHECK_SIZEOF(long,cross)
+AC_CHECK_SIZEOF(long long,cross)
+if test x"$ac_cv_type_long_long" != x"yes";then
+    AC_MSG_ERROR([Sorry we need type 'long long'])
+fi
+if test $ac_cv_sizeof_long_long -lt 8;then
+    AC_MSG_ERROR([Sorry we need sizeof(long long) >= 8])
+fi
+AC_CHECK_TYPE(_Bool)
+
 #
 # Config CPPFLAG settings for strange OS's that must be set
 # before other tests.
@@ -295,13 +310,12 @@ exit(1);
 
 esac
 
-AC_INLINE
-AC_HEADER_STDC
+
 AC_HEADER_DIRENT
 AC_HEADER_TIME
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(arpa/inet.h sys/select.h fcntl.h sys/fcntl.h sys/time.h)
-AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h)
+AC_CHECK_HEADERS(utime.h grp.h sys/id.h limits.h memory.h net/if.h)
 AC_CHECK_HEADERS(compat.h)
 AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h)
 AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h)
@@ -324,15 +338,6 @@ case "$host_os" in
        ;;
 esac
 
-AC_CHECK_SIZEOF(int,cross)
-AC_CHECK_SIZEOF(short,cross)
-AC_CHECK_SIZEOF(long,cross)
-AC_CHECK_SIZEOF(long long,cross)
-AC_CHECK_HEADERS(stdint.h)
-AC_CHECK_HEADERS(inttypes.h)
-AC_CHECK_SIZEOF(_Bool,cross)
-AC_CHECK_HEADERS(stdbool.h)
-
 AC_CHECK_HEADERS(shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
 AC_CHECK_HEADERS(nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h)
 AC_CHECK_HEADERS(stropts.h)