diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2019-03-22 23:11:04 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2019-03-22 23:11:04 +0000 |
commit | 5526c1396ea1b9b12a1b63318b6b84b3ef54c3a2 (patch) | |
tree | 64e3b960afc15926c79cb0c9c16544e95dc38be2 /build | |
parent | 841acbfe104e11325cd40b804ef974350776df19 (diff) | |
download | libapr-5526c1396ea1b9b12a1b63318b6b84b3ef54c3a2.tar.gz |
Pull out caller actions from AC_CACHE_CHECK in APR_CHECK_TYPES_FMT_COMPATIBLE.
This allows to print results in the correct order when the function is chained.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1856089 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/apr_common.m4 | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4 index 208017116..f4e2dfd0a 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -975,8 +975,8 @@ AC_SUBST(MKDEP) ]) dnl -dnl APR_CHECK_TYPES_COMPATIBLE(TYPE-1, TYPE-2, FMT-TAG, -dnl [ACTION-IF-TRUE], [ACTION-IF-FALSE]) +dnl APR_CHECK_TYPES_FMT_COMPATIBLE(TYPE-1, TYPE-2, FMT-TAG, +dnl [ACTION-IF-TRUE], [ACTION-IF-FALSE]) dnl dnl Try to determine whether two types are the same and accept the given dnl printf formatter (bare token, e.g. literal d, ld, etc). @@ -995,9 +995,14 @@ APR_TRY_COMPILE_NO_WARNING([#include <sys/types.h> ptr1 = &chk2; *ptr1 = *ptr2 = 0; printf("%$3 %$3", chk1, chk2); -], [apr_cvname=yes -$4], [apr_cvname=no -$5])]) +], [apr_cvname=yes], [apr_cvname=no])]) +if test "$apr_cvname" = "yes"; then + : + $4 +else + : + $5 +fi ]) dnl |