summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-10 14:05:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-10 18:01:27 +0000
commit8646ab97dc37c0606b19057686bf3d610f9c15ee (patch)
tree17b3df6f5cf55cb1091c4aa70930dd415d9ea0e3 /m4
parent09e9274fc080b471393b806617eb03124db67590 (diff)
Remove MinGW support
In OOo times, there'd originally been efforts to allow building on Windows with MinGW. Later, in LO times, this has been shifted to an attempt of cross- compiling for Windows on Linux. That attempt can be considered abandoned, and the relevant code rotting. Due to this heritage, there are now three kinds of MinGW-specific code in LO: * Code from the original OOo native Windows effort that is no longer relevant for the LO cross-compilation effort, but has never been removed properly. * Code from the original OOo native Windows effort that is re-purposed for the LO cross-compilation effort. * Code that has been added specifially for the LO cross-compilation effort. All three kinds of code are removed. (An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing --with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.) Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568 Reviewed-on: https://gerrit.libreoffice.org/34127 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/mingw.m490
1 files changed, 0 insertions, 90 deletions
diff --git a/m4/mingw.m4 b/m4/mingw.m4
deleted file mode 100644
index d75d6a0bdddf..000000000000
--- a/m4/mingw.m4
+++ /dev/null
@@ -1,90 +0,0 @@
-dnl
-dnl This file is part of the LibreOffice project.
-dnl
-dnl This Source Code Form is subject to the terms of the Mozilla Public
-dnl License, v. 2.0. If a copy of the MPL was not distributed with this
-dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
-dnl
-
-# libo_MINGW_CHECK_DLL(dll-name-stem,[action-if-found],[action-if-not-found])
-#
-# Checks for presence of dll dll-name-stem . Appends the dll name to
-# variable MINGW_DLLS if found, issues an error otherwise.
-#
-# It recognizes these dll patterns (x, y match any character, but they
-# are supposed to be numerals):
-# * name-x.dll
-# * name-xy.dll
-# * name-x.y.dll
-# * name.dll
-#
-#
-# Example:
-# MINGW_DLLS=
-# libo_MINGW_CHECK_DLL([libexpat])
-# might result in MINGW_DLLS containing libexpat-1.dll .
-#
-# uses MINGW_SYSROOT, WITH_MINGW
-# changes MINGW_DLLS
-# ------------------------------------------------------------------------------------------
-AC_DEFUN([libo_MINGW_CHECK_DLL],
-[dnl
-
-if test -n "$WITH_MINGW"; then
- _libo_mingw_dlldir="[$MINGW_SYSROOT]"/bin
- _libo_mingw_dllname=
- AC_MSG_CHECKING([for $1 dll])
-
- dnl try one- or two-numbered version
- _libo_mingw_try_dll([$1][-?.dll])
- if test "$_libo_mingw_dllname" = ""; then
- _libo_mingw_try_dll([$1][-??.dll])
- fi
- dnl maybe the version contains a dot (e.g., libdb)
- if test "$_libo_mingw_dllname" = ""; then
- _libo_mingw_try_dll([$1][-?.?.dll])
- fi
- dnl maybe the version contains a dash (e.g., libpixman)
- if test "$_libo_mingw_dllname" = ""; then
- _libo_mingw_try_dll([$1][-?-?.dll])
- fi
- dnl maybe it is not versioned
- if test "$_libo_mingw_dllname" = ""; then
- _libo_mingw_try_dll([$1][.dll])
- fi
-
- if test "$_libo_mingw_dllname" = ""; then
- AC_MSG_RESULT([no])
- m4_default([$3],[AC_MSG_ERROR([no dll found for $1])])
- else
- AC_MSG_RESULT([$_libo_mingw_dllname])
- MINGW_DLLS="$MINGW_DLLS $_libo_mingw_dllname"
- m4_default([$2],[])
- fi
-fi[]dnl
-]) # libo_MINGW_CHECK_DLL
-
-# libo_MINGW_TRY_DLL(dll-name-stem)
-#
-# Checks for presence of dll dll-name-stem . Appends the dll name to
-# variable MINGW_DLLS if found, does nothing otherwise.
-#
-# See libo_MINGW_CHECK_DLL for further info.
-#
-# uses MINGW_SYSROOT, WITH_MINGW
-# changes MINGW_DLLS
-# ------------------------------------------------
-AC_DEFUN([libo_MINGW_TRY_DLL],
-[dnl TODO: ignore already tested for dlls
-libo_MINGW_CHECK_DLL([$1],[[]],[[]])dnl
-]) # libo_MINGW_TRY_DLL
-
-# _libo_mingw_try_dll(dll-name,dll-dir)
-m4_define([_libo_mingw_try_dll],
-[_libo_mingw_trying_dll=`ls "[$_libo_mingw_dlldir]"/[$1] 2>/dev/null`
-if test -f "$_libo_mingw_trying_dll"; then
- _libo_mingw_dllname=`basename "$_libo_mingw_trying_dll"`
-fi[]dnl
-]) # _libo_mingw_try_dll
-
-dnl vim:set shiftwidth=4 softtabstop=4 expandtab: