ICU: Proper check for -lCrun on Solaris
[m4-moved-to-github.git] / ac_check_icu.m4
index 6cc6097..933b513 100644 (file)
@@ -66,7 +66,7 @@ AC_DEFUN([AC_CHECK_ICU],[
                    fi
                    case $host_os in
                        solaris*)
-                           ICU_LIBS="$ICU_LIBS -lCrun"
+                           AC_CHECK_LIB([Crun],[_fini],[ICU_LIBS="$ICU_LIBS -lCrun"])
                            ;;
                    esac
                    AC_MSG_RESULT($ICU_LIBS)