summaryrefslogtreecommitdiff
path: root/acglib.m4
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>2000-12-08 22:48:45 +0000
committerRaja R Harinath <harinath@src.gnome.org>2000-12-08 22:48:45 +0000
commit31fc683b98c29bfdbb6356752874395e845a2153 (patch)
treea6cbfc145d6f7f3082bcc95086e568e08c9a9f75 /acglib.m4
parent8f0a794c15da3f6529c0ed0768a0ef62eb6d48d1 (diff)
Rename from GLIB_DIVERT_BEFORE_HELP. Update to track autoconf 2.49b.
* acglib.m4 (GLIB_AC_DIVERT_BEFORE_HELP): Rename from GLIB_DIVERT_BEFORE_HELP. Update to track autoconf 2.49b. * configure.in: Reflect above change. (AC_EGREP_HEADER): Rename from really obselete AC_HEADER_EGREP. (debug_default): Replace "if test `expr ...`" with "case".
Diffstat (limited to 'acglib.m4')
-rw-r--r--acglib.m413
1 files changed, 7 insertions, 6 deletions
diff --git a/acglib.m4 b/acglib.m4
index f8d8fb547..01972685d 100644
--- a/acglib.m4
+++ b/acglib.m4
@@ -12,15 +12,16 @@ define([GLIB_TR_CPP],
[[^A-Z0-9_]], [_])])
])
-# GLIB_DIVERT_BEFORE_HELP(STUFF)
+# GLIB_AC_DIVERT_BEFORE_HELP(STUFF)
+# ---------------------------------
# Put STUFF early enough so that they are available for $ac_help expansion.
# Handle both classic (<= v2.13) and modern autoconf
-ifdef([AC_DIVERT],
- [AC_DEFUN([GLIB_DIVERT_BEFORE_HELP],[AC_DIVERT([NOTICE],[$1])])],
- [AC_DEFUN([GLIB_DIVERT_BEFORE_HELP],[dnl
-AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
+AC_DEFUN([GLIB_AC_DIVERT_BEFORE_HELP],
+[ifdef([m4_divert_text], [m4_divert_text([NOTICE],[$1])],
+ [ifdef([AC_DIVERT], [AC_DIVERT([NOTICE],[$1])],
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
$1
-AC_DIVERT_POP()])])
+AC_DIVERT_POP()])])])
dnl GLIB_IF_VAR_EQ (ENV_VAR, VALUE [, EQUALS_ACTION] [, ELSE_ACTION])
AC_DEFUN(GLIB_IF_VAR_EQ,[