apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: apr/build apr_common.m4
Date Tue, 27 Feb 2001 21:20:27 GMT
jim         01/02/27 13:20:27

  Modified:    build    apr_common.m4
  Log:
  Make a note not to use this macro yet, while
  also putting it into better form
  
  Revision  Changes    Path
  1.11      +8 -12     apr/build/apr_common.m4
  
  Index: apr_common.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_common.m4,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- apr_common.m4	2001/02/27 20:48:21	1.10
  +++ apr_common.m4	2001/02/27 21:20:26	1.11
  @@ -387,22 +387,18 @@
   dnl  is "yes" then instead of setting to 1 or 0, we set FLAG-TO-SET
   dnl  to yes or no.
   dnl
  +dnl  DON'T USE YET !!
  +dnl
   AC_DEFUN(APR_FLAG_FUNCS,[
  -for aprt_i in $1
  +AC_CHECK_FUNCS($1)
  +for aprt_j in $1
   do
  -    if test "x$2" = "x"; then
  -        aprt_fts="have_$aprt_i"
  +    aprt_3="have_$aprt_j"
  +    if eval "test \"`echo '$ac_cv_func_'$aprt_j`\" = yes"; then
  +       eval "ifelse($2,,$aprt_3,$2)=ifelse($3,yes,yes,1)"
       else
  -        aprt_fts="$2"
  +       eval "ifelse($2,,$aprt_3,$2)=ifelse($3,yes,no,0)"
       fi
  -    if test "x$3" = "xyes"; then
  -        s1="$aprt_fts=\"yes\""
  -        s0="$aprt_fts=\"no\""
  -    else
  -        s1="$aprt_fts=\"1\""
  -        s0="$aprt_fts=\"0\""
  -    fi
  -    AC_CHECK_FUNCS($aprt_i, eval $s1, eval $s0)
   done
   ])
   
  
  
  

Mime
View raw message