apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr CHANGES configure.in
Date Sun, 13 Jan 2002 04:15:51 GMT
jerenkrantz    02/01/12 20:15:50

  Modified:    .        CHANGES configure.in
  Log:
  Add --with-efence to allow usage of Electric Fence.
  Reviewed by:	Greg Stein
  
  Revision  Changes    Path
  1.207     +4 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.206
  retrieving revision 1.207
  diff -u -r1.206 -r1.207
  --- CHANGES	12 Jan 2002 17:18:37 -0000	1.206
  +++ CHANGES	13 Jan 2002 04:15:50 -0000	1.207
  @@ -1,4 +1,8 @@
   Changes with APR b1  
  +
  +  *) Add --with-efence to allow usage of Electric Fence.
  +     [Justin Erenkrantz]
  +
     *) Updated the pools debug code.  Check if a pool is still
        valid on the most common apr_pool_xxx functions.
        Fix the way APR_POOL_DEBUG_VERBOSE was using stderr.
  
  
  
  1.397     +21 -1     apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.396
  retrieving revision 1.397
  diff -u -r1.396 -r1.397
  --- configure.in	12 Jan 2002 14:02:20 -0000	1.396
  +++ configure.in	13 Jan 2002 04:15:50 -0000	1.397
  @@ -131,12 +131,15 @@
   fi
   
   dnl On AIX, libraries need to be specified on the link of lib_target
  +lib_target_libs=""
   case $host in
       *aix*)
           lib_target_libs="\$(EXTRA_LIBS)";
           ;;
  +    *-solaris2*)
  +        apr_platform_runtime_link_flag="-R"
  +        ;;
       *)
  -        lib_target_libs=""
           ;;
   esac
   
  @@ -184,6 +187,23 @@
       fi
     fi
   )dnl
  +
  +dnl Electric Fence malloc checker.
  +dnl --with-efence specifies the path to Electric Fence
  +AC_ARG_WITH(efence, 
  +  [  --with-efence[[=DIR]]     path to Electric Fence installation], 
  +  [ apr_efence_dir="$withval"
  +    if test "$apr_efence_dir" != "yes"; then
  +      APR_ADDTO(LDFLAGS,[-L$apr_efence_dir/lib])
  +      if test "x$apr_platform_runtime_link_flag" != "x"; then
  +          APR_ADDTO(LDFLAGS, 
  +                    [$apr_platform_runtime_link_flag$apr_efence_dir/lib])
  +      fi
  +    fi
  +    AC_CHECK_LIB(efence, malloc, 
  +                 [ APR_ADDTO(LIBS,-lefence) ],
  +                 [ AC_MSG_ERROR(Electric Fence requested but not detected) ])
  +  ])
   
   if test "$host" = "i586-pc-beos"; then
     AC_ARG_ENABLE(malloc-debug,[  --enable-malloc-debug   Switch on malloc_debug for BeOS],
  
  
  

Mime
View raw message