| 1 |
diff --git a/source/configure.ac b/source/configure.ac |
| 2 |
index 425fdc7..97210f8 100644 |
| 3 |
--- a/source/configure.ac |
| 4 |
+++ b/source/configure.ac |
| 5 |
@@ -114,6 +114,15 @@ AC_ARG_ENABLE([icu-config], |
| 6 |
esac], [enable_icu_config=true]) |
| 7 |
AC_SUBST(INSTALL_ICU_CONFIG, [$enable_icu_config]) |
| 8 |
|
| 9 |
+AC_ARG_ENABLE([icu-build-win], |
| 10 |
+ AS_HELP_STRING([--enable-icu-build-win], [install icu-build-win]), |
| 11 |
+ [case "${enableval}" in |
| 12 |
+ yes) enable_icu_build_win=true ;; |
| 13 |
+ no) enable_icu_build_win=false ;; |
| 14 |
+ *) AC_MSG_ERROR([bad value '${enableval}' for --enable-icu-build-win]) ;; |
| 15 |
+ esac], [enable_icu_build_win=true]) |
| 16 |
+AC_SUBST(INSTALL_ICU_BUILD_WIN, [$enable_icu_build_win]) |
| 17 |
+ |
| 18 |
# Check whether to build debug libraries |
| 19 |
AC_MSG_CHECKING([whether to build debug libraries]) |
| 20 |
enabled=no |
| 21 |
@@ -263,12 +272,14 @@ ICU_CHECK_MH_FRAG |
| 22 |
# Checks for libraries and other host specific stuff |
| 23 |
# On HP/UX, don't link to -lm from a shared lib because it isn't |
| 24 |
# PIC (at least on 10.2) |
| 25 |
+if test "$enable_icu_build_win" = no; then |
| 26 |
case "${host}" in |
| 27 |
*-*-hpux*) AC_CHECK_LIB(m, floor, LIB_M="-lm") ;; |
| 28 |
|
| 29 |
*) AC_CHECK_LIB(m, floor) |
| 30 |
LIB_M="" ;; |
| 31 |
esac |
| 32 |
+fi |
| 33 |
AC_SUBST(LIB_M) |
| 34 |
|
| 35 |
# Check whether to build shared libraries |