You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by je...@apache.org on 2002/03/26 20:54:56 UTC

cvs commit: apr CHANGES configure.in

jerenkrantz    02/03/26 11:54:56

  Modified:    .        CHANGES configure.in
  Log:
  Improve detection of the INT64_C macro to prevent problems with HP-UX's
  ANSI C compiler.
  
  PR: 8932
  
  Revision  Changes    Path
  1.247     +3 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.246
  retrieving revision 1.247
  diff -u -r1.246 -r1.247
  --- CHANGES	24 Mar 2002 16:01:33 -0000	1.246
  +++ CHANGES	26 Mar 2002 19:54:56 -0000	1.247
  @@ -1,5 +1,8 @@
   Changes with APR b1
   
  +  *) Improve detection of the INT64_C macro to prevent problems
  +     with HP-UX's ANSI C compiler.  PR 8932.  [Justin Erenkrantz]
  +
     *) Make sure gethostbyname() can handle 255.255.255.255 if we
        are to trust it to handle numeric address strings in
        apr_sockaddr_info_get().  This fixes a problem on HP-UX
  
  
  
  1.421     +20 -4     apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.420
  retrieving revision 1.421
  diff -u -r1.420 -r1.421
  --- configure.in	23 Mar 2002 20:52:51 -0000	1.420
  +++ configure.in	26 Mar 2002 19:54:56 -0000	1.421
  @@ -993,12 +993,28 @@
   fi
   
   dnl # If present, allow the C99 macro INT64_C to override our conversion.
  -APR_CHECK_DEFINE(INT64_C, stdint.h)
  +dnl #
  +dnl # HP-UX's ANSI C compiler provides this without any includes, so we
  +dnl # will first look for INT64_C without adding stdint.h
  +AC_MSG_CHECKING(for INT64_C)
  +stdint=0
  +AC_EGREP_CPP(YES_IS_DEFINED,
  +[#ifdef INT64_C
  +YES_IS_DEFINED
  +#endif
  +], 
  +[ ac_cv_define_INT64_C=yes
  +  AC_MSG_RESULT(yes)
  +],
  +[ ac_cv_define_INT64_C=no 
  +  AC_MSG_RESULT(no)
  +  APR_CHECK_DEFINE(INT64_C, stdint.h)
  +  if test "$ac_cv_define_INT64_C" = "yes"; then
  +    stdint=1
  +  fi
  +])
   if test "$ac_cv_define_INT64_C" = "yes"; then
       int64_literal='#define APR_INT64_C(val) INT64_C(val)'
  -    stdint=1
  -else
  -    stdint=0
   fi
   
   if test "$ac_cv_type_off_t" = "yes"; then