make install and dev-install build-depend on all
[LibreOffice.git] / post_download.in
blobd7fa19a47f7d49c8f6c84a0b9a9ecf240bfeb227
1 AC_INIT([LibreOffice], [3.4],,, [http://documentfoundation.org/])
2 AC_PREREQ(2.50)
4 echo "********************************************************************"
5 echo "*"
6 echo "*   Running the post download checks."
7 echo "*"
8 echo "********************************************************************"
10 dnl ===================================================================
11 dnl The following is a list of supported systems.
12 dnl ===================================================================
13 AC_CANONICAL_SYSTEM
14 case "$host_os" in
15     solaris*)
16         _os=SunOS
17         ;;
18     linux-gnu*|k*bsd*-gnu*)
19         _os=Linux
20         ;;
21     gnu)
22         _os=GNU
23         ;;
24     cygwin*|mingw32*) # Windows
25         _os=WINNT
26         ;;
27     darwin*) # Mac OS X or iOS
28         _os=Darwin
29         ;;
30     freebsd*)
31         _os=FreeBSD
32         ;;
33     *netbsd*)
34         _os=NetBSD
35         ;;
36     aix*)
37         _os=AIX
38         ;;
39     openbsd*)
40         _os=OpenBSD
41         ;;
42     dragonfly*)
43         _os=DragonFly
44         ;;
45     androideabi*)
46         _os=Android
47         ;;
48    *)
49    AC_MSG_ERROR([$host_os operating system is not suitable for LibreOffice!])
50    ;;
51 esac
53 dnl ===================================================================
54 dnl Windows builds need dbghelp.dll in external/dbghelp/
55 dnl ===================================================================
56 if test "$_os" = "WINNT"; then
57    AC_MSG_CHECKING([for dbghelp.dll])
58    if test -f ./external/dbghelp/dbghelp.dll; then
59       AC_MSG_RESULT([found])
60    else
61       AC_MSG_ERROR([dbghelp.dll is missing in external/dbghelp/.
62 Get it from the Microsoft site and put it into external/dbghelp.
63 (Note: Microsoft seems to enjoy changing the exact location of this file. You
64 may have to search Microsoft's website.) Last time it was seen at:
65 <http://www.microsoft.com/downloads/release.asp?releaseid=30682>.])
66    fi
69 dnl ===================================================================
70 dnl Windows builds - use oowintool to copy CRT dlls and manifest
71 dnl ===================================================================
72 if test "$COM" = "MSC"; then
73    if ./oowintool --msvc-copy-dlls ./external/msvcp ; then
74        :
75     else
76        AC_MSG_ERROR([oowintool failed to copy CRT])
77     fi
80 dnl ===================================================================
81 dnl Windows builds need gdiplus.dll in external/gdiplus/
82 dnl ===================================================================
83 if test "$_os" = "WINNT"; then
84    AC_MSG_CHECKING([for gdiplus.dll])
85    if test -x ./external/gdiplus/gdiplus.dll; then
86       AC_MSG_RESULT([found])
87    else
88       AC_MSG_ERROR([gdiplus.dll is missing in external/gdiplus/.
89 Get it from the Microsoft site and put it into external/gdiplus.
90 You may have to search Microsoft's website. Last time it was seen at:
91 <http://www.microsoft.com/downloads/details.aspx?familyid=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en>.])
92    fi
95 dnl ===================================================================
96 dnl Windows builds need vcredist_x86.exe and vcredist_x64.exe in external/vcredist/
97 dnl ===================================================================
98 if test "$COM" = "MSC"; then
99    AC_MSG_CHECKING([for vcredist_x86.exe])
100    if test -e ./external/vcredist/vcredist_x86.exe; then
101       AC_MSG_RESULT([found])
102    else
103       AC_MSG_ERROR([vcredist_x86.exe is missing in external/vcredist/.
104 Get the version corresponding to your Visual Studio from the Microsoft site
105 and put it into external/vcredist.])
106    fi
107    AC_MSG_CHECKING([for vcredist_x64.exe])
108    if test -e ./external/vcredist/vcredist_x64.exe; then
109       AC_MSG_RESULT([found])
110    else
111       AC_MSG_ERROR([vcredist_x64.exe is missing in external/vcredist/.
112 Get the version corresponding to your Visual Studio from the Microsoft site
113 and put it into external/vcredist.])
114    fi