changequote([, ])dnl
AC_MSG_CHECKING(size of $1)
AC_CACHE_VAL(AC_CV_NAME,
-[AC_TRY_RUN([#include <stdio.h>
+[AC_TRY_RUN([
+#include <stdio.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#if HAVE_SYS_BITYPES_H
+#include <sys/bitypes.h>
+#endif
int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) return(1);
fprintf(f, "%d\n", sizeof($1));
return(0);
-}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl
+}
+], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl
AC_MSG_RESULT($AC_CV_NAME)
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME)
undefine([AC_TYPE_NAME])dnl
[AC_EGREP_CPP(dnl
changequote(<<,>>)dnl
<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
-changequote([,]), [#include <sys/types.h>
+changequote([,]), [
+/* What a mess.. many systems have added the (now standard) bit types
+ * in their own ways, so we need to scan a wide variety of headers to
+ * find them..
+ */
+#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
-#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
+#endif
+#if HAVE_SYS_BITYPES_H
+#include <sys/bitypes.h>
+#endif
+], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
AC_MSG_RESULT($ac_cv_type_$1)
if test $ac_cv_type_$1 = no; then
AC_DEFINE($1, $2)
dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.272 2002/05/19 23:52:56 hno Exp $
+dnl $Id: configure.in,v 1.273 2002/06/17 18:28:12 hno Exp $
dnl
dnl
dnl
AC_CONFIG_AUX_DIR(cfgaux)
AM_INIT_AUTOMAKE(squid, 2.6-DEVEL)
AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.272 $)dnl
+AC_REVISION($Revision: 1.273 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AM_MAINTAINER_MODE
stdlib.h \
string.h \
strings.h \
+ sys/bitypes.h \
sys/file.h \
sys/ioctl.h \
sys/mount.h \
/*
- * $Id: squid_types.h,v 1.3 2001/10/22 23:35:07 hno Exp $
+ * $Id: squid_types.h,v 1.4 2002/06/17 18:28:13 hno Exp $
*
* * * * * * * * Legal stuff * * * * * * *
*
#include "autoconf.h"
-#ifdef HAVE_SYS_TYPES_H
+/* This should be in synch with what we have in acinclude.m4 */
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#if HAVE_SYS_BITYPES_H
+#include <sys/bitypes.h>
+#endif
#endif /* SQUID_TYPES_H */