Lines Matching +full:- +full:- +full:disable +full:- +full:tools
1 # -*-autoconf-*-
3 # AC_COPYRIGHT([ Copyright (c) 1999-2015, International Business Machines Corporation and others. A…
14 …m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/uni…
15 [http://icu-project.org/bugs],
17 [http://icu-project.org])
31 # for icu-config
32 # This may be removed later - mow (June 17, 2010)
34 case `/bin/sh -c "echo -n x"` in
35 -n*)
36 case `/bin/sh -c "echo 'x\c'"` in
41 ICU_ECHO_N='-n';;
51 [sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
54 [sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
63 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please …
73 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
99 # for end-users of ICU also. uconfig.h.prepend is generated
104 # such as -std
107 # Check whether to install icu-config
108 AC_ARG_ENABLE([icu-config],
109 AS_HELP_STRING([--enable-icu-config], [install icu-config]),
113 *) AC_MSG_ERROR([bad value '${enableval}' for --enable-icu-config]) ;;
122 [ --enable-debug build debug libraries and enable the U_DEBUG define [default=no]],
124 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
136 [ --enable-release build release libraries [default=yes]],
153 # pkg-config is needed for harfbuzz support
155 PKG_CHECK_MODULES(ICULEHB, icu-le-hb, have_icu_le_hb=true, :)
157 …S were not set when calling configure, set it correctly based on (enable/disable) debug or release…
162 CFLAGS=-g
165 CFLAGS="$CFLAGS -O2"
170 CXXFLAGS=-g
173 CXXFLAGS="$CXXFLAGS -O2"
176 # if CFLAGS does not have a "-std=" setting, set it now to -std=c11,
178 if ! echo "$CFLAGS" | grep '\-std=' >/dev/null 2>&1; then
180 CFLAGS="$CFLAGS -std=c11"
185 AC_MSG_NOTICE([Adding CFLAGS option -std=c11])
186 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -std=c11"
204 # make sure install is relative to srcdir - if a script
215 # TODO(ICU-20301): Remove fallback to Python 2.
216 AC_CHECK_PROGS(PYTHON, python3 "py -3" python "py")
224 AC_ARG_WITH(cross-build,
225 …[ --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the …
231 …AC_MSG_ERROR([Error! Cross compiling but no --with-cross-build option specified - please supply th…
235 if test -f "${cross_buildroot}/config/icucross.mk"; then
238 if test -d "${cross_buildroot}"; then
241 …ROR([No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an a…
258 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;;
268 # Check if we can build and use 64-bit libraries
277 # On HP/UX, don't link to -lm from a shared lib because it isn't
280 *-*-hpux*) AC_CHECK_LIB(m, floor, LIB_M="-lm") ;;
291 [ --enable-shared build shared libraries [default=yes]],
306 [ --enable-static build static libraries [default=no]],
327 *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
329 CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
330 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
352 AC_ARG_ENABLE(auto-cleanup,
353 [ --enable-auto-cleanup enable auto cleanup of libraries [default=no]],
356 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
365 # MSVC floating-point option
369 if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc
388 [ --enable-draft enable draft APIs (and internal APIs) [default=yes]],
391 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
399 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API"
415 [ --enable-renaming add a version suffix to symbols [default=yes]],
419 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
431 [ --enable-tracing enable function and data tracing [default=no]],
434 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
446 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
449 # Enable/disable plugins
451 [ --enable-plugins enable plugins [default=no]],
455 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugins) ;;
461 UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
469 [ --disable-dyload disable dynamic loading [default=no]],
478 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
493 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
498 # So, use for putil / tools only.
505 [ --enable-rpath use rpath when linking [default is only if necessary]],
529 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++17,
531 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then
533 CXXFLAGS="$CXXFLAGS -std=c++17"
538 AC_MSG_NOTICE([Adding CXXFLAGS option -std=c++17])
539 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -std=c++17"
548 # Always build ICU with multi-threading support.
587 *-pc-cygwin*|*-pc-mingw*)
588 # For gcc, the thread options are set by mh-mingw/mh-cygwin
592 *-*-hpux*)
593 # Add -mt because it does several nice things on newer compilers.
595 mh-hpux-acc)
597 CXXFLAGS="${CXXFLAGS} -mt"
601 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
606 *-*-solaris*)
608 mh-solaris)
609 LIBS="${LIBS} -mt"
615 AC_ARG_ENABLE(weak-threads,
616 [ --enable-weak-threads weakly reference the threading library [default=no]],
623 *) AC_MSG_ERROR(bad value ${enableval} for --enable-weak-threads) ;;
643 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
652 *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
654 # We're using gcc, and the simple -a gcc command line works for genccode
655 GENCCODE_ASSEMBLY="-a gcc"
657 i*86-*-solaris*)
660 # When using GNU as, the simple -a gcc command line works for genccode.
661 asv=`"${CC}" -print-prog-name=as 2>/dev/null`
662 asv=`"${asv}" --version 2>/dev/null`
664 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
665 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
669 GENCCODE_ASSEMBLY="-a sun-x86"
671 sparc-*-solaris*)
672 GENCCODE_ASSEMBLY="-a sun"
674 ia64-*-hpux*)
678 # GENCCODE_ASSEMBLY="-a aCC-ia64"
691 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
711 U_NL_LANGINFO_CODESET=-1
714 if test $U_HAVE_NL_LANGINFO -eq 1; then
727 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
730 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
785 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
788 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
799 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
817 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
845 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
874 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
888 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1"
891 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0"
894 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0"
905 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
915 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
938 AC_MSG_CHECKING([for UTF-16 string literal support])
943 *-*-aix*|powerpc64-*-linux*)
947 CFLAGS="${CFLAGS} -qutf"
948 CXXFLAGS="${CXXFLAGS} -qutf"
954 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf"
955 CHECK_UTF16_STRING_RESULT="-qutf"
959 *-*-solaris*)
963 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
964 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
970 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
971 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
972 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
973 # Since we can't detect the availability of this UTF-16 syntax at compile time,
975 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
977 # If an ICU user uses icu-config, this feature will be enabled.
978 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
983 *-*-hpux*)
989 *-*-cygwin)
1008 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
1025 # Enable/disable extras
1027 [ --enable-extras build ICU extras [default=yes]],
1031 *) AC_MSG_ERROR(bad value ${enableval} for --enable-extras) ;;
1036 [ --enable-icuio build ICU's icuio library [default=yes]],
1040 *) AC_MSG_ERROR(bad value ${enableval} for --enable-icuio) ;;
1045 # Enable/disable layoutex
1047 [ --enable-layoutex build ICU's Paragraph Layout library [default=no].
1048 icu-le-hb must be installed via pkg-config. See http://harfbuzz.org],
1052 *) AC_MSG_ERROR(bad value ${enableval} for --enable-layoutex) ;;
1057 # Enable/disable layout
1067 # Enable/disable tools
1068 AC_ARG_ENABLE(tools, optenable
1069 [ --enable-tools build ICU's tools [default=yes]],
1071 yes) tools=true ;;
1072 no) tools=false ;;
1073 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tools) ;;
1075 tools=true)
1076 ICU_CONDITIONAL(TOOLS, test "$tools" = true)
1078 # Enable/disable fuzzer target tests.
1080 [ --enable-fuzzer build ICU's fuzzer test targets [default=no]],
1084 *) AC_MSG_ERROR(bad value ${enableval} for --enable-fuzzer) ;;
1089 ICU_CONDITIONAL(DATA, test "$tools" = true || test "$cross_compiling" = "yes")
1091 AC_ARG_WITH(data-packaging,
1092 [ --with-data-packaging specify how to package ICU data. Possible values:
1098 See https://unicode-org.github.io/icu/userguide/icu_data for more info.],
1105 *) AC_MSG_ERROR(bad value ${withval} for --with-data-packaging) ;;
1124 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
1174 AC_ARG_WITH(library-suffix,
1175 [ --with-library-suffix=suffix tag a suffix to the library names [default=]],
1187 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'`
1188 …UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCN…
1195 # Enable/disable tests
1197 [ --enable-tests build ICU tests [default=yes]],
1201 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
1206 # Enable/disable samples
1208 [ --enable-samples build ICU samples [default=yes]
1215 *) AC_MSG_ERROR(bad value ${enableval} for --enable-samples) ;;
1222 # Platform-specific Makefile setup
1225 *-*-solaris*) platform=U_SOLARIS ;;
1226 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
1227 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
1228 *-*-aix*) platform=U_AIX ;;
1229 *-*-hpux*) platform=U_HPUX ;;
1230 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
1231 *-*-cygwin*) platform=U_CYGWIN ;;
1232 *-*-mingw*) platform=U_MINGW ;;
1233 *-*ibm-openedition*|*-*-os390*) platform=OS390
1237 *-*-os400*) platform=OS400
1241 *-*-nto*) platform=U_QNX ;;
1242 *-dec-osf*) platform=U_OSF ;;
1243 *-*-beos) platform=U_BEOS ;;
1244 *-*-irix*) platform=U_IRIX ;;
1245 *-ncr-*) platform=U_MPRAS ;;
1264 CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality"
1270 CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality"
1271 LIBCXXFLAGS="$LIBCXXFLAGS -Wglobal-constructors"
1308 tools/Makefile \
1309 tools/ctestfw/Makefile \
1310 tools/toolutil/Makefile \
1311 tools/makeconv/Makefile \
1312 tools/genrb/Makefile \
1313 tools/genccode/Makefile \
1314 tools/gencmn/Makefile \
1315 tools/gencnval/Makefile \
1316 tools/gendict/Makefile \
1317 tools/gentest/Makefile \
1318 tools/gennorm2/Makefile \
1319 tools/genbrk/Makefile \
1320 tools/gensprep/Makefile \
1321 tools/icuinfo/Makefile \
1322 tools/icupkg/Makefile \
1323 tools/icuswap/Makefile \
1324 tools/pkgdata/Makefile \
1325 tools/icuexportdata/Makefile \
1326 tools/tzcode/Makefile \
1327 tools/gencfu/Makefile \
1328 tools/escapesrc/Makefile \
1361 if test -z "$PYTHON";
1366 if test -f "$srcdir/data/locales/root.txt";
1370 $PYTHON -m icutools.databuilder \
1371 --mode gnumake \
1372 --seqmode parallel \
1373 --src_dir "$srcdir/data" \
1374 --filter_file "$ICU_DATA_FILTER_FILE" \
1386 $PYTHON -m icutools.databuilder \
1387 --mode gnumake \
1388 --seqmode parallel \
1389 --src_dir "$srcdir/test/testdata" \
1404 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
1416 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
1419 AC_MSG_RESULT([too old or test failed - try upgrading GNU Make])
1423 if test -n "$UCONFIG_CPPFLAGS"; then
1432 echo '--------------- ' "${HDRFILE}"
1440 -D*=*)
1441 [ \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" ]
1444 -D*)
1445 [ \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" ]
1455 \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
1457 echo '--------------- end ' "${HDRFILE}"
1461 if test -n "$UCONFIG_CFLAGS"; then
1465 if test -n "$UCONFIG_CXXFLAGS"; then
1469 if test "$tools" = false;
1471 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
1475 if test -z "$PYTHON";