From: Steven R. Loomis Date: Wed, 4 Oct 2017 22:41:40 +0000 (+0000) Subject: ICU-13387 autoconf fixes for disabled tools and tests and draft api X-Git-Tag: release-60-rc~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b9ca817ebdf4aa9329608145f1c750e35891f7e;p=icu ICU-13387 autoconf fixes for disabled tools and tests and draft api X-SVN-Rev: 40556 --- diff --git a/icu4c/source/Makefile.in b/icu4c/source/Makefile.in index 71293dbdafa..c1db15bf7b1 100644 --- a/icu4c/source/Makefile.in +++ b/icu4c/source/Makefile.in @@ -34,9 +34,11 @@ subdir = . @LAYOUTEX_TRUE@LAYOUTEX = layoutex @ICUIO_TRUE@ICUIO = io @EXTRAS_TRUE@EXTRA = extra -@TESTS_TRUE@TEST = test +# need tools for tests +@TOOLS_TRUE@@TESTS_TRUE@TEST = test @SAMPLES_TRUE@SAMPLE = samples @TOOLS_TRUE@TOOLS = tools +@TOOLS_TRUE@DATASUBDIR = data ## pkgconfig setup. Always have uc and i18n. Others are optional. ALL_PKGCONFIG_SUFFIX=uc i18n @@ -58,7 +60,7 @@ INSTALLED_BUILT_FILES = $(top_builddir)/config/Makefile.inc $(top_builddir)/conf LOCAL_BUILT_FILES = icudefs.mk config/icucross.mk config/icucross.inc DOCDIRS = common i18n -SUBDIRS = stubdata common i18n $(LAYOUTEX) $(ICUIO) $(TOOLS) data $(EXTRA) $(SAMPLE) $(TEST) +SUBDIRS = stubdata common i18n $(LAYOUTEX) $(ICUIO) $(TOOLS) $(DATASUBDIR) $(EXTRA) $(SAMPLE) $(TEST) SECTION = 1 diff --git a/icu4c/source/configure b/icu4c/source/configure index c5557367165..61a5aac9992 100755 --- a/icu4c/source/configure +++ b/icu4c/source/configure @@ -752,7 +752,6 @@ infodir docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -856,7 +855,6 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1109,15 +1107,6 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1255,7 +1244,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir runstatedir + libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1408,7 +1397,6 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -5476,7 +5464,7 @@ fi $as_echo "$enabled" >&6; } # Make sure that we can use draft API in ICU. if test "$U_DEFAULT_SHOW_DRAFT" = 0; then - CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API" + CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API" fi diff --git a/icu4c/source/configure.ac b/icu4c/source/configure.ac index bfbf77293d5..1bd781b2bfe 100644 --- a/icu4c/source/configure.ac +++ b/icu4c/source/configure.ac @@ -365,7 +365,7 @@ AC_ARG_ENABLE(draft, AC_MSG_RESULT($enabled) # Make sure that we can use draft API in ICU. if test "$U_DEFAULT_SHOW_DRAFT" = 0; then - CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API" + CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API" fi AC_SUBST(U_DEFAULT_SHOW_DRAFT) diff --git a/icu4c/source/test/Makefile.in b/icu4c/source/test/Makefile.in index 11bcdcf663d..7ce92770394 100644 --- a/icu4c/source/test/Makefile.in +++ b/icu4c/source/test/Makefile.in @@ -22,6 +22,9 @@ subdir = test # harfbuzz. @LAYOUTEX_TRUE@LETEST = letest +# no testdata without tools.. +@TOOLS_TRUE@TESTDATA = testdata + # status dir STATUS_TMP = tmp STATUS_FULL = $(shell pwd)/$(STATUS_TMP) @@ -29,7 +32,7 @@ STATUS_FULL = $(shell pwd)/$(STATUS_TMP) ## Files to remove for 'make clean' CLEANFILES = *~ $(STATUS_TMP) -SUBDIRS = testdata intltest $(IOTEST) cintltst $(LETEST) +SUBDIRS = $(TESTDATA) intltest $(IOTEST) cintltst $(LETEST) ## List of phony targets .PHONY : everything all all-local all-recursive install install-local \