mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-3950 Add --disable-draft configure option.
X-SVN-Rev: 17939
This commit is contained in:
parent
f1befbadf8
commit
7ebe8124c8
5 changed files with 226 additions and 223 deletions
icu4c/source
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
*
|
||||
* Copyright (C) 1997-2004, International Business Machines
|
||||
* Copyright (C) 1997-2005, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
******************************************************************************
|
||||
|
@ -192,6 +192,11 @@ typedef unsigned int uint32_t;
|
|||
#define U_ENABLE_TRACING @U_ENABLE_TRACING@
|
||||
#endif
|
||||
|
||||
/* Do we allow ICU users to use the draft APIs by default? */
|
||||
#ifndef U_DEFAULT_SHOW_DRAFT
|
||||
#define U_DEFAULT_SHOW_DRAFT @U_DEFAULT_SHOW_DRAFT@
|
||||
#endif
|
||||
|
||||
/* Define the library suffix in a C syntax. */
|
||||
#define U_HAVE_LIB_SUFFIX @U_HAVE_LIB_SUFFIX@
|
||||
#define U_LIB_SUFFIX_C_NAME @ICULIBSUFFIXCNAME@
|
||||
|
|
|
@ -206,6 +206,11 @@ typedef unsigned int uint32_t;
|
|||
#define U_ENABLE_TRACING 1
|
||||
#endif
|
||||
|
||||
/* Do we allow ICU users to use the draft APIs by default? */
|
||||
#ifndef U_DEFAULT_SHOW_DRAFT
|
||||
#define U_DEFAULT_SHOW_DRAFT 1
|
||||
#endif
|
||||
|
||||
/* Define the library suffix in a C syntax. */
|
||||
#define U_HAVE_LIB_SUFFIX 0
|
||||
#define U_LIB_SUFFIX_C_NAME
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#include "unicode/uversion.h"
|
||||
#include "unicode/uconfig.h"
|
||||
|
||||
#if !U_DEFAULT_SHOW_DRAFT && !defined(U_SHOW_DRAFT_API)
|
||||
#define U_HIDE_DRAFT_API 1
|
||||
#endif
|
||||
|
||||
#ifdef U_HIDE_DRAFT_API
|
||||
#include "unicode/udraft.h"
|
||||
#endif
|
||||
|
|
415
icu4c/source/configure
vendored
415
icu4c/source/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -156,6 +156,24 @@ AC_ARG_ENABLE(release,
|
|||
AC_MSG_RESULT($enabled)
|
||||
AC_SUBST(ENABLE_RELEASE)
|
||||
|
||||
dnl Check whether to enabled draft APIs
|
||||
AC_MSG_CHECKING([whether to enable draft APIs])
|
||||
enabled=yes
|
||||
U_DEFAULT_SHOW_DRAFT=1
|
||||
AC_ARG_ENABLE(draft,
|
||||
[ --enable-draft enable draft APIs [default=yes]],
|
||||
[ case "${enableval}" in
|
||||
no) enabled=no; U_DEFAULT_SHOW_DRAFT=0 ;;
|
||||
*) ;;
|
||||
esac],
|
||||
)
|
||||
AC_MSG_RESULT($enabled)
|
||||
dnl Make sure that we can use draft API in ICU.
|
||||
if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
|
||||
CPPFLAGS="$CPPFLAGS -DU_SHOW_DRAFT_API"
|
||||
fi
|
||||
AC_SUBST(U_DEFAULT_SHOW_DRAFT)
|
||||
|
||||
AC_PROG_RANLIB
|
||||
AC_PATH_PROG(AR,ar,[echo archiver ar not found re-run configure ; false],$PATH:/bin:/usr/bin:/usr/ccs/bin)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue