Bug 1247282 - Restore mysys-perl-wrapper for libical. rs=Fallen
--- a/mail/configure.in
+++ b/mail/configure.in
@@ -37,16 +37,23 @@ AC_SUBST(MOZ_CALENDAR)
MOZ_ARG_ENABLE_BOOL(incomplete-external-linkage,
[ --enable-incomplete-external-linkage Changes some comm-central code to be built with external linkage. Developer only option, incomplete broken builds will result - There are already existing bugs for this. ],
MOZ_INCOMPLETE_EXTERNAL_LINKAGE=1,
MOZ_INCOMPLETE_EXTERNAL_LINKAGE= )
AC_SUBST(MOZ_INCOMPLETE_EXTERNAL_LINKAGE)
+dnl This is required only for libical on Windows.
+case "$host" in
+*mingw*)
+ PERL="/bin/sh ${_topsrcdir}/../mailnews/build/msys-perl-wrapper"
+ ;;
+esac
+
dnl =========================================================
dnl = LDAP
dnl =========================================================
MOZ_ARG_DISABLE_BOOL(ldap,
[ --disable-ldap Disable LDAP support],
MOZ_LDAP_XPCOM=,
MOZ_LDAP_XPCOM=1)
new file mode 100644
--- /dev/null
+++ b/mailnews/build/msys-perl-wrapper
@@ -0,0 +1,20 @@
+#!/bin/sh
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+
+args=""
+
+for i in "${@}"
+do
+ case "$i" in
+ -I?:/*)
+ i="$(echo "${i}" | sed -e 's|^-I\(.\):/|-I/\1/|')"
+ ;;
+ esac
+
+ args="${args} '${i}'"
+done
+
+eval "exec perl $args"
--- a/suite/configure.in
+++ b/suite/configure.in
@@ -38,16 +38,23 @@ AC_SUBST(MOZ_CALENDAR)
MOZ_ARG_ENABLE_BOOL(incomplete-external-linkage,
[ --enable-incomplete-external-linkage Changes some comm-central code to be built with external linkage. Developer only option, incomplete broken builds will result - There are already existing bugs for this. ],
MOZ_INCOMPLETE_EXTERNAL_LINKAGE=1,
MOZ_INCOMPLETE_EXTERNAL_LINKAGE= )
AC_SUBST(MOZ_INCOMPLETE_EXTERNAL_LINKAGE)
+dnl This is required only for libical on Windows.
+case "$host" in
+*mingw*)
+ PERL="/bin/sh ${_topsrcdir}/../mailnews/build/msys-perl-wrapper"
+ ;;
+esac
+
dnl =========================================================
dnl = LDAP
dnl =========================================================
MOZ_ARG_DISABLE_BOOL(ldap,
[ --disable-ldap Disable LDAP support],
MOZ_LDAP_XPCOM=,
MOZ_LDAP_XPCOM=1)