diff options
author | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-21 10:51:33 +0000 |
---|---|---|
committer | jerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-21 10:51:33 +0000 |
commit | 13c8bba017a7d28fd3119768dcffdd316f5022fa (patch) | |
tree | 7aeb0a8c1011edf57f6e1df31db3cd8519067fdc /build/apr_common.m4 | |
parent | c77463513fec6e90320ca5125637f43476a6a1b5 (diff) | |
download | libapr-13c8bba017a7d28fd3119768dcffdd316f5022fa.tar.gz |
Add APR_HELP_STRING macro based on httpd-2.0's APACHE_HELP_STRING macro.
Obtained from: httpd-2.0
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_common.m4')
-rw-r--r-- | build/apr_common.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4 index a86f1b291..eb603f1a8 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -645,3 +645,10 @@ else fi ]) +dnl APR_HELP_STRING(LHS, RHS) +dnl Autoconf 2.50 can not handle substr correctly. It does have +dnl AC_HELP_STRING, so let's try to call it if we can. +dnl Note: this define must be on one line so that it can be properly returned +dnl as the help string. When using this macro with a multi-line RHS, ensure +dnl that you surround the macro invocation with []s +AC_DEFUN(APR_HELP_STRING,[ifelse(regexp(AC_ACVERSION, 2\.1), -1, AC_HELP_STRING([$1],[$2]),[ ][$1] substr([ ],len($1))[$2])]) |