summaryrefslogtreecommitdiffstats
path: root/intl/icu/source/config/m4
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu/source/config/m4')
-rw-r--r--intl/icu/source/config/m4/icu-conditional.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/intl/icu/source/config/m4/icu-conditional.m4 b/intl/icu/source/config/m4/icu-conditional.m4
new file mode 100644
index 0000000000..85dffb619b
--- /dev/null
+++ b/intl/icu/source/config/m4/icu-conditional.m4
@@ -0,0 +1,18 @@
+# Copyright (C) 2016 and later: Unicode, Inc. and others.
+# License & terms of use: http://www.unicode.org/copyright.html
+# Copyright (c) 1999-2015, International Business Machines Corporation and
+# others. All Rights Reserved.
+
+# moved here from ../../acinclude.m4
+
+# ICU_CONDITIONAL - similar example taken from Automake 1.4
+AC_DEFUN([ICU_CONDITIONAL],
+[AC_SUBST($1_TRUE)
+AC_SUBST(U_HAVE_$1)
+if $2; then
+ $1_TRUE=
+ U_HAVE_$1=1
+else
+ $1_TRUE='#'
+ U_HAVE_$1=0
+fi])