]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Allow build on Solaris x86 with both fixed or not fixed includes.
authorserassio <>
Sun, 7 Aug 2005 18:16:50 +0000 (18:16 +0000)
committerserassio <>
Sun, 7 Aug 2005 18:16:50 +0000 (18:16 +0000)
For more details:
http://www.squid-cache.org/mail-archive/squid-dev/200507/0045.html
http://forum.sun.com/thread.jspa?threadID=20228&tstart=105

configure.in
include/config.h

index 6e650d51666af5313966fa5f59508cbd14041d74..379e6568126afcf608e428d1eecf3466cf8e3016 100644 (file)
@@ -3,7 +3,7 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.381 2005/08/05 16:12:35 hno Exp $
+dnl  $Id: configure.in,v 1.382 2005/08/07 12:16:50 serassio Exp $
 dnl
 dnl
 dnl
@@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([src/main.cc])
 AC_CONFIG_AUX_DIR(cfgaux)
 AM_INIT_AUTOMAKE(squid, 3.0-PRE3-CVS)
 AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.381 $)dnl
+AC_REVISION($Revision: 1.382 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AM_MAINTAINER_MODE
 
@@ -1885,6 +1885,17 @@ AC_CHECK_TYPE(uint64_t,
   AC_DEFINE(HAVE_UINT64_T,1,[uint64_t is defined in system headers]),
   ,SQUID_DEFAULT_INCLUDES)
 
+dnl On Solaris 9 x86, gcc may includes a "fixed" set of old system include files
+dnl that is incompatible with the updated Solaris header files.
+dnl For this reason, we must check if pad128_t and upad128_t are defined.
+AC_CHECK_TYPE(pad128_t,
+  AC_DEFINE(HAVE_PAD128_T,1,[pad128_t is defined in system headers]),
+  ,SQUID_DEFAULT_INCLUDES)
+
+AC_CHECK_TYPE(upad128_t,
+  AC_DEFINE(HAVE_UPAD128_T,1,[upad128_t is defined in system headers]),
+  ,SQUID_DEFAULT_INCLUDES)
+
 AC_CHECK_TYPE(pid_t, AC_DEFINE(HAVE_PID_T,1,[pid_t is defined by the system headers]),,SQUID_DEFAULT_INCLUDES)
 AC_CHECK_TYPE(size_t, [AC_CHECK_SIZEOF(size_t,,SQUID_DEFAULT_SIZEOF_INCLUDES)
   AC_DEFINE(HAVE_SIZE_T,1,[size_t is defined by the system headers])],,SQUID_DEFAULT_INCLUDES)
index 93834f599aa1fbb66a92839ea37aab6517e4c78a..0e6721dfc42767e650fe86f0e6121f55870d0b2c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: config.h,v 1.18 2005/04/23 20:40:50 serassio Exp $
+ * $Id: config.h,v 1.19 2005/08/07 12:16:51 serassio Exp $
  *
  * AUTHOR: Duane Wessels
  *
@@ -309,13 +309,13 @@ typedef long mtyp_t;
  * that is incompatible with the updated Solaris header files.
  */
 #if defined(_SQUID_SOLARIS_) && (defined(i386) || defined(__i386))
-#ifndef pad128_t
+#ifndef HAVE_PAD128_T
 typedef union {
        long double     _q;
        int32_t         _l[4];
 } pad128_t;
 #endif
-#ifndef upda128_t
+#ifndef HAVE_UPAD128_T
 typedef union {
        long double     _q;
        uint32_t        _l[4];