httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject [PATCH] PR#333 AIX and rlim_t
Date Mon, 30 Jun 1997 03:39:47 GMT
Starting at v4.2, AIX has rlim_t.  This patch aims to make Configure
know that.  For both HEAD and 1.2.  I'm not overly joyous about the
way it is done, but don't find many alternatives that are nicer...

Tested on AIX 4.1.x, and when I faked GuessOS into thinking it was
4.2 it seemed to work as it should.


Index: conf.h
===================================================================
RCS file: /export/home/cvs/apache/src/conf.h,v
retrieving revision 1.107
diff -c -r1.107 conf.h
*** conf.h	1997/06/29 19:27:20	1.107
--- conf.h	1997/06/30 03:33:28
***************
*** 155,161 ****
--- 155,163 ----
  #define DEFAULT_GROUP "nobody"
  #endif
  #define DEFAULT_USER "nobody"
+ #ifdef NEED_RLIM_T
  typedef int rlim_t;
+ #endif
  
  #elif defined(ULTRIX)
  #define HAVE_GMTOFF
Index: Configure
===================================================================
RCS file: /export/home/cvs/apache/src/Configure,v
retrieving revision 1.102
diff -c -r1.102 Configure
*** Configure	1997/06/29 18:26:55	1.102
--- Configure	1997/06/30 03:33:29
***************
*** 205,214 ****
  	CFLAGS="$CFLAGS -DAIX -U__STR__ -DUSEBCOPY"
  	DEF_WANTHSREGEX=no
  	;;
      *-ibm-aix*)
! 	OS='IBM AIX'
! 	CFLAGS="$CFLAGS -DAIX -U__STR__"
! 	;;
      *-apollo-*)
  	OS='Apollo Domain'
  	CFLAGS="$CFLAGS -DAPOLLO"
--- 205,218 ----
  	CFLAGS="$CFLAGS -DAIX -U__STR__ -DUSEBCOPY"
  	DEF_WANTHSREGEX=no
  	;;
+     *-ibm-aix[1-3].*|*-ibm-aix4.[0-1])
+         OS='IBM AIX < v4.2'
+         CFLAGS="$CFLAGS -DAIX -DNEED_RLIM_T -U__STR__"
+         ;;
      *-ibm-aix*)
!         OS='IBM AIX >= 4.2'
!         CFLAGS="$CFLAGS -DAIX -U__STR__"
!         ;;
      *-apollo-*)
  	OS='Apollo Domain'
  	CFLAGS="$CFLAGS -DAPOLLO"
Index: helpers/GuessOS
===================================================================
RCS file: /export/home/cvs/apache/src/helpers/GuessOS,v
retrieving revision 1.23
diff -c -r1.23 GuessOS
*** GuessOS	1997/06/24 01:10:58	1.23
--- GuessOS	1997/06/30 03:33:29
***************
*** 55,67 ****
  fi
  # Now we simply scan though... In most cases, the SYSTEM info is enough
  #
  case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
      A/UX:*)
  	echo "m68k-apple-aux3"; exit 0
  	;;
  
      AIX:*)
! 	echo "${MACHINE}-ibm-aix"; exit 0
  	;;
  
      dgux:*)
--- 55,67 ----
  fi
  # Now we simply scan though... In most cases, the SYSTEM info is enough
  #
  case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
      A/UX:*)
  	echo "m68k-apple-aux3"; exit 0
  	;;
  
      AIX:*)
! 	echo "${MACHINE}-ibm-aix${VERSION}.${RELEASE}"; exit 0
  	;;
  
      dgux:*)


Mime
View raw message