Lines Matching +full:- +full:- +full:no +full:- +full:build

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])
27 # for icu-config
28 # This may be removed later - mow (June 17, 2010)
30 case `/bin/sh -c "echo -n x"` in
31 -n*)
32 case `/bin/sh -c "echo 'x\c'"` in
37 ICU_ECHO_N='-n';;
47 [sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
50 [sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"]
59 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please …
69 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
90 # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only.
93 # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time,
95 # for end-users of ICU also. uconfig.h.prepend is generated
100 # such as -std
103 # Check whether to install icu-config
104 AC_ARG_ENABLE([icu-config],
105 AS_HELP_STRING([--enable-icu-config], [install icu-config]),
108 no) enable_icu_config=false ;;
109 *) AC_MSG_ERROR([bad value '${enableval}' for --enable-icu-config]) ;;
113 # Check whether to build debug libraries
114 AC_MSG_CHECKING([whether to build debug libraries])
115 enabled=no
118 [ --enable-debug build debug libraries and enable the U_DEBUG define [default=no]],
120 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
127 # Check whether to build release libraries
128 AC_MSG_CHECKING([whether to build release libraries])
132 [ --enable-release build release libraries [default=yes]],
134 no) enabled=no; ENABLE_RELEASE=0 ;;
151 # pkg-config is needed for harfbuzz support
153 PKG_CHECK_MODULES(ICULEHB, icu-le-hb, have_icu_le_hb=true, :)
160 CFLAGS=-g
163 CFLAGS="$CFLAGS -O2"
168 CXXFLAGS=-g
171 CXXFLAGS="$CXXFLAGS -O2"
187 # make sure install is relative to srcdir - if a script
205 AC_ARG_WITH(cross-build,
206 …[ --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the …
212 …R([Error! Cross compiling but no --with-cross-build option specified - please supply the path to a…
216 if test -f "${cross_buildroot}/config/icucross.mk"; then
219 if test -d "${cross_buildroot}"; then
220 …AC_MSG_ERROR([${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildro…
222 …AC_MSG_ERROR([No such directory ${cross_buildroot} supplied as the argument to --with-cross-build.…
239 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;;
249 # Check if we can build and use 64-bit libraries
258 # On HP/UX, don't link to -lm from a shared lib because it isn't
261 *-*-hpux*) AC_CHECK_LIB(m, floor, LIB_M="-lm") ;;
268 # Check whether to build shared libraries
269 AC_MSG_CHECKING([whether to build shared libraries])
270 enabled=no
272 [ --enable-shared build shared libraries [default=yes]],
275 no);;
283 # Check whether to build static libraries
284 AC_MSG_CHECKING([whether to build static libraries])
285 enabled=no
287 [ --enable-static build static libraries [default=no]],
290 no) ;;
302 CHECK_STATIC_OPT_FLAG=no
308 *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
310 CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
311 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
318 … AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [CHECK_STATIC_OPT_FLAG=yes], [CHECK_STATIC_OPT_FLAG=no])
320 if test "$CHECK_STATIC_OPT_FLAG" = no; then
331 enabled=no
333 AC_ARG_ENABLE(auto-cleanup,
334 [ --enable-auto-cleanup enable auto cleanup of libraries [default=no]],
337 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
346 # MSVC floating-point option
350 if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc
369 [ --enable-draft enable draft APIs (and internal APIs) [default=yes]],
371 no) enabled=no; U_DEFAULT_SHOW_DRAFT=0;
372 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
380 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API"
396 [ --enable-renaming add a version suffix to symbols [default=yes]],
399 no) enabled=no; U_DISABLE_RENAMING=1;
400 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
409 enabled=no
412 [ --enable-tracing enable function and data tracing [default=no]],
415 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
417 no) enabled=no; U_ENABLE_TRACING=0 ;;
427 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
432 [ --enable-plugins enable plugins [default=no]],
435 no) plugins=false ;;
436 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugins) ;;
442 UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
450 [ --disable-dyload disable dynamic loading [default=no]],
456 no)
458 enable=no;
459 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
474 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
486 [ --enable-rpath use rpath when linking [default is only if necessary]],
489 no) ;;
492 [ENABLE_RPATH=NO]
500 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[cxx_okay=yes],[cxx_okay=no])
505 AC_MSG_RESULT([[no]])
506 AC_MSG_ERROR([[C++ compiler $CXX does not work or no compiler found]])
510 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++11,
512 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then
514 CXXFLAGS="$CXXFLAGS -std=c++11"
516 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[cxx11_okay=yes],[cxx11_okay=no])
519 AC_MSG_NOTICE([Adding CXXFLAGS option -std=c++11])
520 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -std=c++11"
525 *-*-solaris*)
534 # Always build ICU with multi-threading support.
555 if test "$ac_cv_search_pthread_mutex_destroy" != no; then
573 *-pc-cygwin*|*-pc-mingw*)
574 # For gcc, the thread options are set by mh-mingw/mh-cygwin
578 *-*-hpux*)
579 # Add -mt because it does several nice things on newer compilers.
581 mh-hpux-acc)
583 CXXFLAGS="${CXXFLAGS} -mt"
587 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
592 *-*-solaris*)
594 mh-solaris)
595 LIBS="${LIBS} -mt"
601 AC_ARG_ENABLE(weak-threads,
602 [ --enable-weak-threads weakly reference the threading library [default=no]],
608 no) ;;
609 *) AC_MSG_ERROR(bad value ${enableval} for --enable-weak-threads) ;;
623 …], [mmap((void *)0, 0, PROT_READ, 0, 0, 0);])],[ac_cv_func_mmap_ok=yes],[ac_cv_func_mmap_ok=no])] )
629 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
638 *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
640 # We're using gcc, and the simple -a gcc command line works for genccode
641 GENCCODE_ASSEMBLY="-a gcc"
643 i*86-*-solaris*)
646 # When using GNU as, the simple -a gcc command line works for genccode.
647 asv=`"${CC}" -print-prog-name=as 2>/dev/null`
648 asv=`"${asv}" --version 2>/dev/null`
650 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
651 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
655 GENCCODE_ASSEMBLY="-a sun-x86"
657 sparc-*-solaris*)
658 GENCCODE_ASSEMBLY="-a sun"
660 ia64-*-hpux*)
662 # when using the assemble code setting below. For now, build without
663 # assemble code for this platform. This will increase the build time.
664 # GENCCODE_ASSEMBLY="-a aCC-ia64"
673 if test $ac_cv_header_inttypes_h = no; then
675 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
682 alpha*-*-*) U_HAVE_INTTYPES_H=0;
683 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
690 if test $ac_cv_header_dirent_h = no; then
692 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
701 if test $ac_cv_c_bigendian = no; then
712 U_NL_LANGINFO_CODESET=-1
715 if test $U_HAVE_NL_LANGINFO -eq 1; then
728 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
731 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
744 ], [f();])],[ac_cv_namespace_ok=yes],[ac_cv_namespace_ok=no])] )
746 if test $ac_cv_namespace_ok = no
748 AC_MSG_ERROR(Namespace support is required to build ICU.)
763 ]], [])],[ac_cv_override_cxx_allocation_ok=yes],[ac_cv_override_cxx_allocation_ok=no])] )
780 ]], [])],[ac_cv_override_placement_new_ok=yes],[ac_cv_override_placement_new_ok=no])] )
786 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
789 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
800 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
818 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
833 #endif]], [atoi(*tzname);])],[ac_cv_var_tzname=yes],[ac_cv_var_tzname=no])])
841 extern char *_tzname[];]], [atoi(*_tzname);])],[ac_cv_var__tzname=yes],[ac_cv_var__tzname=no])])
846 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
857 ], [[timezone = 1;]])],[ac_cv_var_timezone=yes],[ac_cv_var_timezone=no])])
864 …[#include <time.h>]], [[__timezone = 1;]])],[ac_cv_var___timezone=yes],[ac_cv_var___timezone=no])])
870 …M([[#include <time.h>]], [[_timezone = 1;]])],[ac_cv_var__timezone=yes],[ac_cv_var__timezone=no])])
875 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
889 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1"
892 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0"
895 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0"
910 if test $ac_cv_type_int8_t = no; then
911 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
914 if test $ac_cv_type_uint8_t = no; then
915 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
918 if test $ac_cv_type_int16_t = no; then
919 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
922 if test $ac_cv_type_uint16_t = no; then
923 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
926 if test $ac_cv_type_int32_t = no; then
927 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
930 if test $ac_cv_type_uint32_t = no; then
931 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
934 if test $ac_cv_type_int64_t = no; then
935 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
938 if test $ac_cv_type_uint64_t = no; then
939 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
944 if test "$ac_cv_header_wchar_h" = no
948 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
954 if test "$ac_cv_search_wcscpy" != no; then
958 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
981 AC_MSG_CHECKING([for UTF-16 string literal support])
986 *-*-aix*|powerpc64-*-linux*)
987 if test "$GCC" = no; then
990 CFLAGS="${CFLAGS} -qutf"
991 CXXFLAGS="${CXXFLAGS} -qutf"
997 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf"
998 CHECK_UTF16_STRING_RESULT="-qutf"
1002 *-*-solaris*)
1003 if test "$GCC" = no; then
1006 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
1007 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
1013 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
1014 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
1015 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
1016 # Since we can't detect the availability of this UTF-16 syntax at compile time,
1018 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
1020 # If an ICU user uses icu-config, this feature will be enabled.
1021 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
1026 *-*-hpux*)
1027 if test "$GCC" = no; then
1032 *-*-cygwin)
1051 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
1070 [ --enable-extras build ICU extras [default=yes]],
1073 no) extras=false ;;
1074 *) AC_MSG_ERROR(bad value ${enableval} for --enable-extras) ;;
1079 [ --enable-icuio build ICU's icuio library [default=yes]],
1082 no) icuio=false ;;
1083 *) AC_MSG_ERROR(bad value ${enableval} for --enable-icuio) ;;
1090 [ --enable-layoutex build ICU's Paragraph Layout library [default=yes].
1091 icu-le-hb must be installed via pkg-config. See http://harfbuzz.org],
1094 no) layoutex=false ;;
1095 *) AC_MSG_ERROR(bad value ${enableval} for --enable-layoutex) ;;
1105 no) ;;
1112 [ --enable-tools build ICU's tools [default=yes]],
1115 no) tools=false ;;
1116 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tools) ;;
1121 AC_ARG_WITH(data-packaging,
1122 [ --with-data-packaging specify how to package ICU data. Possible values:
1124 archive build a single icudtXX.dat file
1127 auto build shared if possible (default)
1128 See http://userguide.icu-project.org/icudata for more info.],
1135 *) AC_MSG_ERROR(bad value ${withval} for --with-data-packaging) ;;
1154 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
1166 datapackaging_msg="(No explaination for mode $datapackaging.)"
1204 AC_ARG_WITH(library-suffix,
1205 [ --with-library-suffix=suffix tag a suffix to the library names [default=]],
1217 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/[^A-Za-z0-9_]/_/g'`
1218 …UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCN…
1227 [ --enable-tests build ICU tests [default=yes]],
1230 no) tests=false ;;
1231 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
1238 [ --enable-samples build ICU samples [default=yes]
1244 no) samples=false ;;
1245 *) AC_MSG_ERROR(bad value ${enableval} for --enable-samples) ;;
1252 # Platform-specific Makefile setup
1255 *-*-solaris*) platform=U_SOLARIS ;;
1256 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
1257 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
1258 *-*-aix*) platform=U_AIX ;;
1259 *-*-hpux*) platform=U_HPUX ;;
1260 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
1261 *-*-cygwin*) platform=U_CYGWIN ;;
1262 *-*-mingw*) platform=U_MINGW ;;
1263 *-*ibm-openedition*|*-*-os390*) platform=OS390
1267 *-*-os400*) platform=OS400
1271 *-*-nto*) platform=U_QNX ;;
1272 *-dec-osf*) platform=U_OSF ;;
1273 *-*-beos) platform=U_BEOS ;;
1274 *-*-irix*) platform=U_IRIX ;;
1275 *-ncr-*) platform=U_MPRAS ;;
1291 # for build.
1294 CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality"
1300 CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality"
1396 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
1397 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
1400 echo "This may cause ICU to fail to build. Please make sure that GNU make"
1408 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
1411 AC_MSG_RESULT([too old or test failed - try upgrading GNU Make])
1415 if test -n "$UCONFIG_CPPFLAGS"; then
1424 echo '--------------- ' "${HDRFILE}"
1432 -D*=*)
1433 [ \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" ]
1436 -D*)
1437 [ \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" ]
1447 \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
1449 echo '--------------- end ' "${HDRFILE}"
1453 if test -n "$UCONFIG_CFLAGS"; then
1454 echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}"
1457 if test -n "$UCONFIG_CXXFLAGS"; then
1458 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}"
1463 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
1464 echo "## Expect build failures in the 'data', 'test', and other directories."
1467 if test -z "$PYTHON3";
1470 … echo "NOTICE: Unable to find Python 3. ICU versions 64 and later will require Python 3 to build."
1471 echo "See ICU-10923 for more information: https://unicode-org.atlassian.net/browse/ICU-10923"
1475 echo "Found Python 3. You are all set for ICU 64, which will require Python 3 to build."
1476 …echo "For more info on Python 3 requirement, see: https://unicode-org.atlassian.net/browse/ICU-109…