summaryrefslogtreecommitdiff
path: root/post_download.in
blob: 674d6b10ec78dfaaae2c14b13160a2cc419b2089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
AC_INIT([LibreOffice], [3.3],,, [http://documentfoundation.org/])
AC_PREREQ(2.50)

echo "********************************************************************"
echo "*"
echo "*   Running the post download checks."
echo "*"
echo "********************************************************************"

dnl ===================================================================
dnl The following is a list of supported systems.
dnl ===================================================================
#defaults unless the os test overrides this:

case "$build_os" in
    solaris*)
        _os=SunOS
        ;;
    linux-gnu*|k*bsd*-gnu*)
        _os=Linux
        ;;
    gnu)
        _os=GNU
        ;;
    cygwin*) # Windows
        _os=WINNT
        ;;
    darwin*) # Mac OS X
        _os=Darwin
        ;;
    os2*)
        _os=OS2
        ;;
    freebsd*)
        _os=FreeBSD
        ;;
    osf)
        _os=OSF1
        ;;
    *netbsd*)
        _os=NetBSD
        ;;
    aix*)
        _os=AIX
        ;;
    openbsd*)
        _os=OpenBSD
        ;;
   *)
   AC_MSG_ERROR([$_os operating system is not suitable to build LibreOffice!])
   ;;
esac

dnl ===================================================================
dnl Windows builds need dbghelp.dll in external/dbghelp/
dnl ===================================================================
if test "$_os" = "WINNT"; then
   AC_MSG_CHECKING([for dbghelp.dll])
   if test -x ./external/dbghelp/dbghelp.dll; then
      AC_MSG_RESULT([found])
   else
      AC_MSG_ERROR([dbghelp.dll is missing in external/dbghelp/.
Get it from the Microsoft site and put it into external/dbghelp.
(Note: Microsoft seems to enjoy changing the exact location of this file. You
may have to search Microsoft's website.) Last time it was seen at:
<http://www.microsoft.com/downloads/release.asp?releaseid=30682>.])
   fi
fi

dnl ===================================================================
dnl Windows builds - use oowintool to copy CRT dlls and manifest
dnl ===================================================================
if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
   if ./oowintool --msvc-copy-dlls ./external/msvcp ; then
       :
    else
       AC_MSG_ERROR([oowintool failed to copy CRT])
    fi
fi

dnl ===================================================================
dnl Windows builds need gdiplus.dll in external/gdiplus/
dnl ===================================================================
if test "$_os" = "WINNT"; then
   AC_MSG_CHECKING([for gdiplus.dll])
   if test -x ./external/gdiplus/gdiplus.dll; then
      AC_MSG_RESULT([found])
   else
      AC_MSG_ERROR([gdiplus.dll is missing in external/gdiplus/.
Get it from the Microsoft site and put it into external/gdiplus.
You may have to search Microsoft's website. Last time it was seen at:
<http://www.microsoft.com/downloads/details.aspx?familyid=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en>.])
   fi
fi

dnl ===================================================================
dnl Windows builds need vcredist_x86.exe and vcredist_x64.exe in external/vcredist/
dnl ===================================================================
if test "$_os" = "WINNT"; then
   AC_MSG_CHECKING([for vcredist_x86.exe])
   if test -e ./external/vcredist/vcredist_x86.exe; then
      AC_MSG_RESULT([found])
   else
      AC_MSG_ERROR([vcredist_x86.exe is missing in external/vcredist/.
Get the version corresponding to your Visual Studio from the Microsoft site
and put it into external/vcredist.])
   fi
   AC_MSG_CHECKING([for vcredist_x64.exe])
   if test -e ./external/vcredist/vcredist_x64.exe; then
      AC_MSG_RESULT([found])
   else
      AC_MSG_ERROR([vcredist_x64.exe is missing in external/vcredist/.
Get the version corresponding to your Visual Studio from the Microsoft site
and put it into external/vcredist.])
   fi
fi

dnl ===================================================================
dnl Windows builds - attempt to auto-copy required instmsiX.exe into external/
dnl ===================================================================
if test "$_os" = "WINNT"; then
       ./oowintool --msvc-copy-instmsi ./external/msi
fi

dnl ===================================================================
dnl Windows builds with MSVS 2008/2010 need instmsiw.exe in external/msi
dnl ===================================================================
if test "$_os" = "WINNT"; then
   AC_MSG_CHECKING([for instmsiw.exe])
   if test -f ./external/msi/instmsiw.exe; then
      AC_MSG_RESULT([found])
   else
      AC_MSG_ERROR([instmsiw.exe is missing in external/msi.])
   fi
fi