]> granicus.if.org Git - icu/commitdiff
ICU-10255 set flag even on =1 case, add documentation
authorSteven R. Loomis <srl@icu-project.org>
Fri, 19 Jul 2013 01:44:39 +0000 (01:44 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Fri, 19 Jul 2013 01:44:39 +0000 (01:44 +0000)
X-SVN-Rev: 33941

icu4c/source/configure
icu4c/source/configure.in

index 0ea374f744e1300c82420ad0a071c375262c2191..d32ec0c9e71daf261939a43c35de67973add031b 100755 (executable)
@@ -2722,7 +2722,15 @@ _CXX_CXXSUFFIX=cpp
 export _CXX_CXXSUFFIX
 
 # Accumulate #defines
+
+# CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only.
+# They are only needed for building ICU itself. Example: platform stuff
 CONFIG_CPPFLAGS=""
+# UCONFIG_CPPFLAGS: These are defines which are set for ICU build time,
+# and also a notice is output that they need to be set
+# for end-users of ICU also. uconfig.h.prepend is generated
+# with, for example, "#define U_DISABLE_RENAMING 1"
+# Example: ICU configuration stuff
 UCONFIG_CPPFLAGS=""
 
 # Check whether to build debug libraries
@@ -5668,8 +5676,9 @@ then
        U_HAVE_ATOMIC=1
 else
         U_HAVE_ATOMIC=0
-        CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=0"
 fi
+# Make this available via CPPFLAGS
+CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}"
 
 
 ac_ext=c
index a52dd2c21462234a03b3c90685387562e43966bc..1f08be9151ad65c6fc116b33cc5b57000c420804 100644 (file)
@@ -85,7 +85,15 @@ _CXX_CXXSUFFIX=cpp
 export _CXX_CXXSUFFIX
 
 # Accumulate #defines
+
+# CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only.
+# They are only needed for building ICU itself. Example: platform stuff
 CONFIG_CPPFLAGS=""
+# UCONFIG_CPPFLAGS: These are defines which are set for ICU build time,
+# and also a notice is output that they need to be set
+# for end-users of ICU also. uconfig.h.prepend is generated
+# with, for example, "#define U_DISABLE_RENAMING 1"
+# Example: ICU configuration stuff
 UCONFIG_CPPFLAGS=""
 
 # Check whether to build debug libraries
@@ -475,8 +483,9 @@ then
        U_HAVE_ATOMIC=1
 else
         U_HAVE_ATOMIC=0
-        CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=0"
 fi
+# Make this available via CPPFLAGS
+CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}"
 AC_SUBST(U_HAVE_ATOMIC)
 
 AC_LANG_POP([C++])