[Libreoffice-commits] core.git: configure.ac
jan Iversen
jani at libreoffice.org
Mon Jun 12 07:32:41 UTC 2017
configure.ac | 81 +++++++++++++++++++++++++++++------------------------------
1 file changed, 41 insertions(+), 40 deletions(-)
New commits:
commit 69594d539795cfc267bc6880319c6558dcabf119
Author: jan Iversen <jani at libreoffice.org>
Date: Mon Jun 12 09:30:13 2017 +0200
configure.ac back again.
Readded changes to configure.ac, after seeing that
the android builds.
This is not the ideal way to check that a tinderbox builds
correctly, but currently we have no other options.
Change-Id: I48f898131e2f506db67507d43f4a896748f98c81
diff --git a/configure.ac b/configure.ac
index 24df1493171d..4a96e9370c7e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -719,7 +719,7 @@ darwin*) # Mac OS X or iOS
test_freetype=no
test_fontconfig=no
test_dbus=no
- if test "$host_cpu" = "arm"; then
+ if test "$host_cpu" = "armv7" -o "$host_cpu" = "arm64"; then
_os=iOS
test_gtk=no
test_cups=no
@@ -1373,7 +1373,7 @@ AC_ARG_ENABLE(ccache,
AC_ARG_ENABLE(64-bit,
AS_HELP_STRING([--enable-64-bit],
[Build a 64-bit LibreOffice on platforms where the normal build is 32-bit.
- At the moment meaningful only for iOS and Windows.]), ,)
+ At the moment meaningful only for Windows.]), ,)
libo_FUZZ_ARG_ENABLE(online-update,
AS_HELP_STRING([--enable-online-update],
@@ -1445,11 +1445,6 @@ AC_ARG_WITH(package-version,
[Define the package version. Default is AC_PACKAGE_VERSION. Use only if you distribute an own build for macOS.]),
,)
-AC_ARG_ENABLE(ios-simulator,
- AS_HELP_STRING([--enable-ios-simulator],
- [Build for the iOS Simulator, not iOS device.]),
-,)
-
libo_FUZZ_ARG_ENABLE(readonly-installset,
AS_HELP_STRING([--enable-readonly-installset],
[Prevents any attempts by LibreOffice to write into its installation. That means
@@ -1577,7 +1572,7 @@ AC_ARG_WITH(galleries,
AC_ARG_WITH(theme,
AS_HELP_STRING([--with-theme="theme1 theme2..."],
[Choose which themes to include. By default those themes with an '*' are included.
- Possible choices: *breeze, *breeze_dark, crystal, *galaxy, *hicontrast, oxygen, *sifr, *tango, *tango_testing.]),
+ Possible choices: *breeze, *breeze_dark, crystal, *galaxy, *hicontrast, oxygen, *sifr, *sifr_dark, *tango, *tango_testing.]),
,)
libo_FUZZ_ARG_WITH(helppack-integration,
@@ -2956,19 +2951,24 @@ dnl Check iOS SDK and compiler
dnl ===================================================================
if test $_os = iOS; then
-
- if test "$enable_64_bit" = "" -o "$enable_64_bit" = "no"; then
- :
- else
+ if test "$host_cpu" = "arm64"; then
BITNESS_OVERRIDE=64
fi
AC_MSG_CHECKING([what iOS SDK to use])
- if test "$enable_ios_simulator" = yes; then
+ if test "$build_cpu" = "i386"; then
+ platform=iPhoneSimulator
+ XCODE_ARCHS=i386
+ versionmin=-mios-simulator-version-min=9.3
+ elif test "$build_cpu" = "x86_64"; then
platform=iPhoneSimulator
+ XCODE_ARCHS=x86_64
+ versionmin=-mios-simulator-version-min=9.3
else
platform=iPhoneOS
+ XCODE_ARCHS=$host_cpu
+ versionmin=-miphoneos-version-min=9.3
fi
xcode_developer=`xcode-select -print-path`
@@ -2991,24 +2991,6 @@ if test $_os = iOS; then
XCODEBUILD_SDK=`echo $platform | tr A-Z a-z`$ios_sdk
- if test "$enable_ios_simulator" = yes; then
- if test "$BITNESS_OVERRIDE" = 64; then
- XCODE_ARCHS=x86_64
- versionmin=-mios-simulator-version-min=9.3
- else
- XCODE_ARCHS=i386
- versionmin=-mios-simulator-version-min=9.3
- fi
- else
- platform=iPhoneOS
- if test "$BITNESS_OVERRIDE" = 64; then
- XCODE_ARCHS=arm64
- else
- XCODE_ARCHS=armv7
- fi
- versionmin=-miphoneos-version-min=9.3
- fi
-
# LTO is not really recommended for iOS builds,
# the link time will be astronomical
if test "$ENABLE_LTO" = TRUE; then
@@ -4587,10 +4569,6 @@ dnl Check for syslog header
dnl ===================================================================
AC_CHECK_HEADER(syslog.h, AC_DEFINE(HAVE_SYSLOG_H))
-# placeholder for future crash reporter feature
-ENABLE_CRASHDUMP=""
-AC_SUBST(ENABLE_CRASHDUMP)
-
dnl Set the ENABLE_WERROR variable. (Activate --enable-werror)
dnl ===================================================================
AC_MSG_CHECKING([whether to turn warnings to errors])
@@ -5648,12 +5626,32 @@ dnl ===================================================================
if test "$_os" != "WINNT"; then
+if test "$_os" == "iOS"; then
+if test "$host_cpu" == "armv7"; then
+ ac_cv_sizeof_long=4
+ ac_cv_sizeof_short=2
+ ac_cv_sizeof_int=4
+ ac_cv_sizeof_long_long=8
+ ac_cv_sizeof_double=8
+ ac_cv_sizeof_voidp=4
+else
+ ac_cv_sizeof_long=8
+ ac_cv_sizeof_short=2
+ ac_cv_sizeof_int=4
+ ac_cv_sizeof_long_long=8
+ ac_cv_sizeof_double=8
+ ac_cv_sizeof_voidp=8
+fi
+AC_MSG_CHECKING([iOS setting sizes long, short, int, long long, double, voidp])
+
+else
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(double)
AC_CHECK_SIZEOF(void*)
+fi
SAL_TYPES_SIZEOFSHORT=$ac_cv_sizeof_short
SAL_TYPES_SIZEOFINT=$ac_cv_sizeof_int
@@ -8716,7 +8714,7 @@ AC_SUBST(SYSTEM_BOOST)
dnl ===================================================================
dnl Check for system mdds
dnl ===================================================================
-libo_CHECK_SYSTEM_MODULE([mdds], [MDDS], [mdds-1.2 >= 1.2.0], ["-I${WORKDIR}/UnpackedTarball/mdds/include"])
+libo_CHECK_SYSTEM_MODULE([mdds], [MDDS], [mdds-1.2 >= 1.2.3], ["-I${WORKDIR}/UnpackedTarball/mdds/include"])
dnl ===================================================================
dnl Check for system glm
@@ -8796,7 +8794,7 @@ if test $_os != iOS -a $_os != Android -a "$enable_fuzzers" != "yes"; then
AC_DEFINE(HAVE_FEATURE_NSS)
ENABLE_NSS="TRUE"
AC_DEFINE(ENABLE_NSS)
-else
+elif test $_os != iOS ; then
with_tls=openssl
fi
AC_SUBST(ENABLE_NSS)
@@ -8823,6 +8821,9 @@ if test -n "$with_tls"; then
AC_DEFINE(USE_TLS_NSS)
TLS=NSS
;;
+ no)
+ AC_MSG_WARN([Skipping TLS/SSL])
+ ;;
*)
AC_MSG_ERROR([unsupported implementation $with_tls. Supported are:
openssl - OpenSSL
@@ -11062,7 +11063,7 @@ dnl ===================================================================
AC_MSG_CHECKING([which themes to include])
# if none given use default subset of available themes
if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then
- with_theme="breeze breeze_dark galaxy hicontrast sifr tango"
+ with_theme="breeze breeze_dark galaxy hicontrast sifr sifr_dark tango"
test -z "$ENABLE_RELEASE_BUILD" && with_theme="$with_theme tango_testing"
fi
@@ -11070,7 +11071,7 @@ WITH_THEMES=""
if test "x$with_theme" != "xno"; then
for theme in $with_theme; do
case $theme in
- breeze|breeze_dark|crystal|elementary|galaxy|hicontrast|oxygen|sifr|tango|tango_testing) real_theme="$theme" ;;
+ breeze|breeze_dark|crystal|elementary|galaxy|hicontrast|oxygen|sifr|sifr_dark|tango|tango_testing) real_theme="$theme" ;;
default) real_theme=galaxy ;;
*) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;;
esac
@@ -12242,7 +12243,7 @@ AC_LANG_POP([C++])
LIBS=$save_LIBS
CXXFLAGS=$save_CXXFLAGS
AC_MSG_RESULT([$broken])
-if test "$broken" = yes; then
+if test "$broken" = yes -a "$_os" != "iOS"; then
AC_MSG_ERROR([working support for static initializer_list needed])
fi
More information about the Libreoffice-commits
mailing list