diff options
author | jim <jim@13f79535-47bb-0310-9956-ffa450edef68> | 2001-02-27 21:20:26 +0000 |
---|---|---|
committer | jim <jim@13f79535-47bb-0310-9956-ffa450edef68> | 2001-02-27 21:20:26 +0000 |
commit | ae006f39e228b387593c902bc15ec0227e698c56 (patch) | |
tree | 4c0efb0bafa62e5cba65b8b1fd0417dc9d54456c /build/apr_common.m4 | |
parent | df7d3d0db9ae65bb1876884f465a55694e6a23d4 (diff) | |
download | libapr-ae006f39e228b387593c902bc15ec0227e698c56.tar.gz |
Make a note not to use this macro yet, while
also putting it into better form
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61328 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_common.m4')
-rw-r--r-- | build/apr_common.m4 | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4 index a220352ef..6dc814667 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -387,22 +387,18 @@ dnl we use what's provided as FLAG-TO-SET. If the 3rd parameter 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" - else - aprt_fts="$2" - fi - if test "x$3" = "xyes"; then - s1="$aprt_fts=\"yes\"" - s0="$aprt_fts=\"no\"" + 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 - s1="$aprt_fts=\"1\"" - s0="$aprt_fts=\"0\"" + eval "ifelse($2,,$aprt_3,$2)=ifelse($3,yes,no,0)" fi - AC_CHECK_FUNCS($aprt_i, eval $s1, eval $s0) done ]) |