[Libreoffice-commits] .: configure.ac configure.in Makefile
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 19 13:59:45 PDT 2012
Makefile | 2
configure.ac |12967 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in |12967 -----------------------------------------------------------
3 files changed, 12968 insertions(+), 12968 deletions(-)
New commits:
commit 3955876751890966626e3be2e4258967f3d7308c
Author: Peter Foley <pefoley2 at verizon.net>
Date: Fri Oct 19 16:59:21 2012 -0400
use prefered name configure.ac to scilence aclocal 1.12 warning
Change-Id: I5875d3fface19bdce2948c6a2979b1b5e4e0735f
diff --git a/Makefile b/Makefile
index 4d97e71..3fdc86d 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ $(SRCDIR)/config_host.mk : \
$(SRCDIR)/config_host.mk.in \
$(SRCDIR)/bin/repo-list.in \
$(SRCDIR)/ooo.lst.in \
- $(SRCDIR)/configure.in \
+ $(SRCDIR)/configure.ac \
$(SRCDIR)/autogen.lastrun
./autogen.sh
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..1ef16ff
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,12967 @@
+dnl -*- Mode: Autoconf; tab-width: 4; indent-tabs-mode: nil; fill-column: 102 -*-
+dnl configure.ac serves as input for the GNU autoconf package
+dnl in order to create a configure script.
+
+AC_INIT([LibreOffice],[3.7],[],[],[http://documentfoundation.org/])
+AC_PREREQ([2.59])
+
+save_CC=$CC
+save_CXX=$CXX
+
+BUILD_TYPE="LibO"
+SCPDEFS=""
+GIT_REPO_NAMES=""
+GIT_NEEDED_SUBMODULES=""
+LO_PATH= # used by path_munge to construct a PATH variable
+
+PathFormat()
+{
+ formatted_path="$1"
+ if test "$build_os" = "cygwin"; then
+ pf_part1=
+ pf_conv_to_dos=
+ for pf_part in $formatted_path; do
+ if test -z "$pf_part1"; then
+ pf_part1="$pf_part"
+ else
+ pf_conv_to_dos="yes"
+ fi
+ done
+ if test "$pf_conv_to_dos" = "yes"; then
+ formatted_path=`cygpath -d "$formatted_path"`
+ if test $? -ne 0; then
+ AC_MSG_ERROR([path conversion failed for "$1".])
+ fi
+ fi
+ fp_count_colon=`echo "$formatted_path" | $GREP -c "[:]"`
+ fp_count_slash=`echo "$formatted_path" | $GREP -c "[/]"`
+ if test "$fp_count_slash$fp_count_colon" != "00"; then
+ if test "$fp_count_colon" = "0"; then
+ formatted_path=`realpath "$formatted_path"`
+ if test $? -ne 0; then
+ AC_MSG_ERROR([realpath failed for "$1".])
+ fi
+ fi
+ formatted_path=`cygpath -m "$formatted_path"`
+ if test $? -ne 0; then
+ AC_MSG_ERROR([path conversion failed for "$1".])
+ fi
+ fi
+ fi
+}
+
+cat /dev/null > warn
+have_WARNINGS="no"
+add_warning()
+{
+ if test "$have_WARNINGS" = "no" ; then
+ echo "*************************************" >> warn
+ have_WARNINGS="yes"
+ if which tput >/dev/null 2>/dev/null && test `tput colors` -ge 8; then
+ dnl <esc> as actual byte (U+1b), [ escaped using quadrigraph @<:@
+ COLORWARN='*@<:@1;33;40m WARNING @<:@0m:'
+ else
+ COLORWARN="* WARNING :"
+ fi
+ fi
+ echo "$COLORWARN $@" >> warn
+}
+
+if test -n "$SOLARENV" ; then
+ AC_MSG_ERROR([You have sourced config_host.mk in this shell. This may lead to trouble, please run in a fresh (login) shell.])
+fi
+
+echo "********************************************************************"
+echo "*"
+echo "* Running ${PACKAGE_NAME} build configuration."
+echo "*"
+echo "********************************************************************"
+echo ""
+
+dnl ===================================================================
+dnl checks build and host OSes
+dnl do this before argument processing to allow for platform dependent defaults
+dnl ===================================================================
+AC_CANONICAL_HOST
+
+AC_PROG_EGREP
+# AC_PROG_EGREP doesn't set GREP on all systems as well
+AC_PATH_PROG(GREP, grep)
+
+if test "$build_os" = "cygwin"; then
+ EXEEXT_FOR_BUILD=.exe
+ SRC_ROOT=`pwd`
+ PathFormat "$SRC_ROOT"
+ SRC_ROOT="$formatted_path"
+ x_Cygwin=
+else
+ EXEEXT_FOR_BUILD=
+ SRC_ROOT=`pwd`
+ x_Cygwin=[\#]
+fi
+
+AC_SUBST(SRC_ROOT)
+AC_SUBST(EXEEXT_FOR_BUILD)
+AC_SUBST(x_Cygwin)
+
+if test "z$EUID" = "z0" -a "`uname -o 2>/dev/null`" = "Cygwin"; then
+ AC_MSG_ERROR([You must build LibreOffice as a normal user - not using an administrative account])
+fi
+
+# need sed in os checks...
+AC_PATH_PROGS(SED, sed)
+if test -z "$SED"; then
+ AC_MSG_ERROR([install sed to run this script])
+fi
+
+dnl ===================================================================
+dnl When building for Android the --with-android-ndk is mandatory
+dnl ===================================================================
+
+AC_ARG_WITH(android-ndk,
+ AS_HELP_STRING([--with-android-ndk],
+ [Specify location of the Android Native Development Kit. Mandatory when building for Android.]),
+,)
+
+AC_ARG_WITH(android-ndk-toolchain-version,
+ AS_HELP_STRING([--with-android-ndk-toolchain-version],
+ [Specify which toolchain version to use, of those present in the
+ Android NDK you are using. Mandatory if the NDK used has several
+ toolchain versions for the host architecture you are building for.]), ,)
+
+AC_ARG_WITH(android-sdk,
+ AS_HELP_STRING([--with-android-sdk],
+ [Specify location of the Android SDK. Mandatory when building for Android.]),
+,)
+
+ANDROID_NDK_HOME=
+if test -n "$with_android_ndk"; then
+ ANDROID_NDK_HOME=$with_android_ndk
+
+ # Set up a lot of pre-canned defaults
+
+ if test $host_cpu = arm; then
+ android_cpu=arm
+ elif test $host_cpu = mips; then
+ android_cpu=mips
+ else
+ # host_cpu is something like "i386" or "i686" I guess, NDK uses
+ # "x86" in some contexts
+ android_cpu=x86
+ fi
+
+ ANDROID_ABI_PREBUILT_BIN=`echo $ANDROID_NDK_HOME/toolchains/$android_cpu*-*$with_android_ndk_toolchain_version/prebuilt/*/bin`
+ # Check if there are several toolchain versions
+ case "$ANDROID_ABI_PREBUILT_BIN" in
+ */bin\ */bin*)
+ AC_MSG_ERROR([Several toolchain versions in NDK, you must specify --with-android-ndk-toolchain-version])
+ esac
+
+ # This stays empty if there is just one version of the toolchain in the NDK
+ ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR=
+ case "`echo $ANDROID_NDK_HOME/toolchains/$android_cpu*-*/prebuilt/*/bin`" in
+ */bin\ */bin*)
+ # Trailing slash intentional and necessary, compare to how this is used
+ ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR="${with_android_ndk_toolchain_version}/"
+ ;;
+ esac
+
+ if test $host_cpu = arm; then
+ android_gcc_prefix=arm-linux-androideabi
+ elif test $host_cpu = mips; then
+ android_gcc_prefix=mipsel-linux-android
+ elif test -f $ANDROID_ABI_PREBUILT_BIN/i686-android-linux-gcc; then
+ android_gcc_prefix=i686-android-linux
+ elif test -f $ANDROID_ABI_PREBUILT_BIN/i686-linux-android-gcc; then
+ android_gcc_prefix=i686-linux-android
+ else
+ AC_MSG_ERROR([Can't figure out the toolchain prefix])
+ fi
+
+ test -z "$SYSBASE" && export SYSBASE=$ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu
+ test -z "$AR" && AR=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-ar
+ test -z "$NM" && NM=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-nm
+ test -z "$OBJDUMP" && OBJDUMP=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-objdump
+ test -z "$RANLIB" && RANLIB=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-ranlib
+ test -z "$STRIP" && STRIP=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-strip
+
+ if test $host_cpu = arm; then
+ ANDROID_APP_ABI=armeabi-v7a
+ ANDROIDCFLAGS="-march=armv7-a -mfloat-abi=softfp -mthumb -mfpu=neon -Wl,--fix-cortex-a8"
+ elif test $host_cpu = mips; then
+ ANDROID_APP_ABI=mips
+ ANDROIDCFLAGS=""
+ else # x86
+ ANDROID_APP_ABI=x86
+ ANDROIDCFLAGS="-march=atom"
+ fi
+ ANDROIDCFLAGS="$ANDROIDCFLAGS -Wno-psabi --sysroot $ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu -L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/$ANDROID_APP_ABI"
+
+ # When using the 4.6 or newer toolchain, use the gold linker
+ case "$with_android_ndk_toolchain_version" in
+ 4.[[6789]]*|[[56789]].*)
+ # The NDK doesn't have ld.gold for MIPS for some reason
+ if test "$host_cpu" != mips; then
+ ANDROIDCFLAGS="$ANDROIDCFLAGS -fuse-ld=gold"
+ fi
+ ;;
+ esac
+
+ # gdbserver can be in different locations
+ if test -f $ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-4.4.3/prebuilt/gdbserver; then
+ ANDROID_NDK_GDBSERVER=$ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-4.4.3/prebuilt/gdbserver
+ elif test -f $ANDROID_NDK_HOME/prebuilt/android-$android_cpu/gdbserver/gdbserver; then
+ ANDROID_NDK_GDBSERVER=$ANDROID_NDK_HOME/prebuilt/android-$android_cpu/gdbserver/gdbserver
+ else
+ AC_MSG_ERROR([Can't find gdbserver for your Android target])
+ fi
+
+ if test $host_cpu = arm; then
+ ANDROIDCXXFLAGS="$ANDROIDCFLAGS -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/armeabi-v7a/include"
+ elif test $host_cpu = mips; then
+ ANDROIDCXXFLAGS="$ANDROIDCFLAGS -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/mips/include"
+ else # x86
+ ANDROIDCXXFLAGS="$ANDROIDCFLAGS -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/x86/include"
+ fi
+
+ test -z "$CC" && CC="$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-gcc $ANDROIDCFLAGS"
+ test -z "$CXX" && CXX="$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-g++ $ANDROIDCXXFLAGS"
+fi
+AC_SUBST(ANDROID_NDK_HOME)
+AC_SUBST(ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR)
+AC_SUBST(ANDROID_NDK_GDBSERVER)
+AC_SUBST(ANDROID_APP_ABI)
+
+dnl ===================================================================
+dnl Also --with-android-sdk is mandatory
+dnl ===================================================================
+ANDROID_SDK_HOME=
+if test -n "$with_android_sdk"; then
+ ANDROID_SDK_HOME=$with_android_sdk
+ PATH="$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools:$PATH"
+fi
+AC_SUBST(ANDROID_SDK_HOME)
+
+dnl ===================================================================
+dnl The following is a list of supported systems.
+dnl Sequential to keep the logic very simple
+dnl These values may be checked and reset later.
+dnl ===================================================================
+#defaults unless the os test overrides this:
+test_randr=yes
+test_xrender=yes
+test_cups=yes
+test_dbus=yes
+test_fontconfig=yes
+test_cairo=yes
+
+# Default values, as such probably valid just for Linux, set
+# differently below just for Mac OSX,but at least better than
+# hardcoding these as we used to do. Much of this is duplicated also
+# in solenv for old build system and for gbuild, ideally we should
+# perhaps define stuff like this only here in configure.ac?
+
+LINKFLAGSSHL="-shared"
+PICSWITCH="-fpic"
+DLLPOST=".so"
+
+LINKFLAGSNOUNDEFS="-Wl,-z,defs"
+
+case "$host_os" in
+
+solaris*)
+ test_gtk=yes
+ build_gstreamer=yes
+ build_gstreamer_0_10=yes
+ test_tde=yes
+ test_kde=yes
+ test_freetype=yes
+ test_gstreamer=yes
+ _os=SunOS
+
+ dnl ===========================================================
+ dnl Check whether we're using Solaris 10 - SPARC or Intel.
+ dnl ===========================================================
+ AC_MSG_CHECKING([the Solaris operating system release])
+ _os_release=`echo $host_os | $SED -e s/solaris2\.//`
+ if test "$_os_release" -lt "10"; then
+ AC_MSG_ERROR([use Solaris >= 10 to build LibreOffice])
+ else
+ AC_MSG_RESULT([ok ($_os_release)])
+ fi
+
+ dnl Check whether we're using a SPARC or i386 processor
+ AC_MSG_CHECKING([the processor type])
+ if test "$host_cpu" = "sparc" -o "$host_cpu" = "i386"; then
+ AC_MSG_RESULT([ok ($host_cpu)])
+ else
+ AC_MSG_ERROR([only SPARC and i386 processors are supported])
+ fi
+ ;;
+
+linux-gnu*|k*bsd*-gnu*)
+ test_gtk=yes
+ build_gstreamer=yes
+ build_gstreamer_0_10=yes
+ test_tde=yes
+ test_kde=yes
+ test_kde4=yes
+ test_freetype=yes
+ test_unix_quickstarter=yes
+ _os=Linux
+ ;;
+
+gnu)
+ test_randr=no
+ test_xrender=no
+ _os=GNU
+ ;;
+
+cygwin*|interix*|mingw32*)
+
+ # When building on Windows normally with MSVC under Cygwin,
+ # configure thinks that the host platform (the platform the
+ # built code will run on) is Cygwin, even if it obviously is
+ # Windows, which in Autoconf terminology is called
+ # "mingw32". (Which is misleading as MinGW is the name of the
+ # tool-chain, not an operating system.)
+
+ # Somewhat confusing, yes. But this configure script doesn't
+ # look at $host etc that much, it mostly uses its own $_os
+ # variable, set here in this case statement.
+
+ # When cross-compiling to Windows from Unix, the host platform
+ # is "mingw32" (because in that case it is the MinGW
+ # tool-chain that is used).
+
+ test_cups=no
+ test_dbus=no
+ test_randr=no
+ test_xrender=no
+ test_freetype=no
+ test_fontconfig=no
+ _os=WINNT
+ use_shl_version="TRUE"
+ DYNAMIC_CRT="TRUE"
+ # If the host OS matches "mingw32*", that means we are using the
+ # MinGW cross-compiler, because we don't see the point in building
+ # LibreOffice using MinGW on Windows. If you want to build on
+ # Windows, use MSVC. If you want to use MinGW, surely you want to
+ # cross-compile (from Linux or some other Unix).
+
+ case "$host_os" in
+ mingw32*)
+ WITH_MINGW=yes
+ if test -z "$CC"; then
+ CC="$host_cpu-$host_vendor-$host_os-gcc"
+ fi
+ if test -z "$CXX"; then
+ CXX="$host_cpu-$host_vendor-$host_os-g++"
+ fi
+ ;;
+ esac
+ ;;
+
+darwin*) # Mac OS X or iOS
+ test_gtk=yes
+ test_randr=no
+ test_xrender=no
+ test_freetype=no
+ test_fontconfig=no
+ test_dbus=no
+ if test "$host_cpu" = "arm"; then
+ _os=iOS
+ test_gtk=no
+ test_cups=no
+ else
+ _os=Darwin
+ fi
+ enable_systray=no
+ # See comment above the case "$host_os"
+ LINKFLAGSSHL="-dynamiclib -single_module"
+
+ # -fPIC is default
+ PICSWITCH=""
+
+ DLLPOST=".dylib"
+
+ # -undefined error is the default
+ LINKFLAGSNOUNDEFS=""
+;;
+
+freebsd*)
+ test_gtk=yes
+ build_gstreamer=yes
+ build_gstreamer_0_10=yes
+ test_tde=yes
+ test_kde=yes
+ test_kde4=yes
+ test_freetype=yes
+ AC_MSG_CHECKING([the FreeBSD operating system release])
+ if test -n "$with_os_version"; then
+ OSVERSION="$with_os_version"
+ else
+ OSVERSION=`/sbin/sysctl -n kern.osreldate`
+ fi
+ AC_MSG_RESULT([found OSVERSION=$OSVERSION])
+ AC_MSG_CHECKING([which thread library to use])
+ if test "$OSVERSION" -lt "500016"; then
+ PTHREAD_CFLAGS="-D_THREAD_SAFE"
+ PTHREAD_LIBS="-pthread"
+ elif test "$OSVERSION" -lt "502102"; then
+ PTHREAD_CFLAGS="-D_THREAD_SAFE"
+ PTHREAD_LIBS="-lc_r"
+ else
+ PTHREAD_CFLAGS=""
+ PTHREAD_LIBS="-pthread"
+ fi
+ AC_MSG_RESULT([$PTHREAD_LIBS])
+ _os=FreeBSD
+ ;;
+
+*netbsd*)
+ test_gtk=yes
+ build_gstreamer=yes
+ build_gstreamer_0_10=yes
+ test_tde=no
+ test_kde=no
+ test_kde4=yes
+ test_freetype=yes
+ PTHREAD_LIBS="-pthread -lpthread"
+ _os=NetBSD
+ ;;
+
+aix*)
+ test_randr=no
+ test_freetype=yes
+ PTHREAD_LIBS=-pthread
+ _os=AIX
+ ;;
+
+openbsd*)
+ test_gtk=yes
+ test_tde=yes
+ test_kde=yes
+ test_freetype=yes
+ PTHREAD_CFLAGS="-D_THREAD_SAFE"
+ PTHREAD_LIBS="-pthread"
+ _os=OpenBSD
+ ;;
+
+dragonfly*)
+ test_gtk=yes
+ build_gstreamer=yes
+ build_gstreamer_0_10=yes
+ test_tde=yes
+ test_kde=yes
+ test_kde4=yes
+ test_freetype=yes
+ PTHREAD_LIBS="-pthread"
+ _os=DragonFly
+ ;;
+
+linux-android*)
+ build_gstreamer=no
+ build_gstreamer_0_10=no
+ test_cups=no
+ test_dbus=no
+ test_fontconfig=no
+ test_freetype=no
+ test_gtk=no
+ test_tde=no
+ test_kde=no
+ test_kde4=no
+ test_randr=no
+ test_xrender=no
+ test_unix_quickstarter=no
+ _os=Android
+
+ if test -z "$with_android_ndk"; then
+ AC_MSG_ERROR([the --with-android-ndk option is mandatory])
+ fi
+
+ if test -z "$with_android_sdk"; then
+ AC_MSG_ERROR([the --with-android-sdk option is mandatory])
+ fi
+
+ # Verify that the NDK and SDK options are proper
+ if test ! -f "$ANDROID_NDK_HOME/platforms/android-9/arch-arm/usr/lib/libc.a"; then
+ AC_MSG_ERROR([the --with-android-ndk option does not point to an Android NDK])
+ fi
+
+ if test ! -d "$ANDROID_SDK_HOME/platforms"; then
+ AC_MSG_ERROR([the --with-android-sdk option does not point to an Android SDK])
+ fi
+
+ BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE"
+ FREETYPE_TARBALL=dbf2caca1d3afd410a29217a9809d397-freetype-2.4.8.tar.bz2
+ FONTCONFIG_TARBALL=77e15a92006ddc2adbb06f840d591c0e-fontconfig-2.8.0.tar.gz
+ ;;
+
+*)
+ AC_MSG_ERROR([$host_os operating system is not suitable to build LibreOffice for!])
+ ;;
+esac
+
+if test "$_os" = "AIX"; then
+ AC_PATH_PROG(GAWK, gawk)
+ if test -z "$GAWK"; then
+ AC_MSG_ERROR([gawk not found in \$PATH])
+ fi
+fi
+
+AC_SUBST(use_shl_version)
+AC_SUBST(DYNAMIC_CRT)
+
+AC_SUBST(WITH_MINGW)
+AC_SUBST(OSVERSION)
+AC_SUBST(PTHREAD_CFLAGS)
+AC_SUBST(PTHREAD_LIBS)
+
+AC_SUBST(FREETYPE_TARBALL)
+AC_SUBST(FONTCONFIG_TARBALL)
+
+###############################################################################
+# Extensions switches --enable/--disable
+###############################################################################
+# By default these should be enabled unless having extra dependencies.
+# If there is extra dependency over configure options then the enable should
+# be automagic based on whether the requiring feature is enabled or not.
+# All this options change anything only with --enable-extension-integration.
+
+# The name of this option and its help string makes it sound as if
+# extensions are built anyway, just not integrated in the installer,
+# if you use --disable-extension-integration. Is that really the
+# case?
+
+AC_ARG_ENABLE(extension-integration,
+ AS_HELP_STRING([--disable-extension-integration],
+ [Disable integration of the built extensions in the installer of the
+ product. Use this switch to disable the integration.])
+)
+
+AC_ARG_ENABLE(ext-barcode,
+ AS_HELP_STRING([--enable-ext-barcode],
+ [Enable the Barcode extension.])
+)
+
+AC_ARG_ENABLE(database-connectivity,
+ AS_HELP_STRING([--disable-database-connectivity],
+ [Disable various database connectivity. Work in progress, use only if you are hacking on it.])
+)
+
+# This doesn't mean not building (or "integrating") extensions
+# (although it probably should; i.e. it should imply
+# --disable-extension-integration I guess), it means not supporting
+# any extension mechanism at all
+AC_ARG_ENABLE(extensions,
+ AS_HELP_STRING([--disable-extensions],
+ [Disable all add-on extension functionality. Work in progress, use only if you are hacking on it.])
+)
+
+AC_ARG_ENABLE(scripting,
+ AS_HELP_STRING([--disable-scripting],
+ [Disable BASIC, Java and Python. Work in progress, use only if you are hacking on it.])
+)
+
+# This is mainly for iOS, but could potentially be used in some
+# special case otherwise, too, so factored out as a separate setting
+AC_ARG_ENABLE(dynamic-loading,
+ AS_HELP_STRING([--disable-dynamic-loading],
+ [Disable any use of dynamic loading of code. Work in progress, use only if you are hacking on it.])
+)
+
+AC_ARG_ENABLE(ext-diagram,
+ AS_HELP_STRING([--enable-ext-diagram],
+ [Enable the SmART Gallery (Diagram) extension.])
+)
+
+AC_ARG_ENABLE(ext-google-docs,
+ AS_HELP_STRING([--enable-ext-google-docs],
+ [Enable the Google Documents extension.])
+)
+
+AC_ARG_ENABLE(ext-hunart,
+ AS_HELP_STRING([--enable-ext-hunart],
+ [Enable the Hungarian Cross-reference Toolbar extension.])
+)
+
+AC_ARG_ENABLE(ext-languagetool,
+ AS_HELP_STRING([--enable-ext-languagetool],
+ [Enable the LanguageTool extension.])
+)
+
+AC_ARG_ENABLE(ext-mysql-connector,
+ AS_HELP_STRING([--enable-ext-mysql-connector],
+ [Enable the build of the MySQL Connector extension.])
+)
+
+AC_ARG_ENABLE(ext-nlpsolver,
+ AS_HELP_STRING([--enable-ext-nlpsolver],
+ [Enable the NLPSolver extension.])
+)
+
+AC_ARG_ENABLE(ext-ct2n,
+ AS_HELP_STRING([--enable-ext-ct2n],
+ [Enable the ConvertTextToNumber extension.])
+)
+
+AC_ARG_ENABLE(ext-numbertext,
+ AS_HELP_STRING([--enable-ext-numbertext],
+ [Enable the Numbertext extension.])
+)
+
+AC_ARG_ENABLE(ext-oooblogger,
+ AS_HELP_STRING([--enable-ext-oooblogger],
+ [Enable the OOo Blogger extension.])
+)
+
+AC_ARG_ENABLE(ext-pdfimport,
+ AS_HELP_STRING([--disable-ext-pdfimport],
+ [Disable the PDF Import extension.])
+)
+
+AC_ARG_ENABLE(ext-presenter-console,
+ AS_HELP_STRING([--disable-ext-presenter-console],
+ [Disable the Presenter Console extension.])
+)
+
+AC_ARG_ENABLE(ext-presenter-minimizer,
+ AS_HELP_STRING([--disable-ext-presenter-minimizer],
+ [Disable the Presentation Minimizer extension.])
+)
+
+AC_ARG_ENABLE(ext-report-builder,
+ AS_HELP_STRING([--disable-ext-report-builder],
+ [Disable the Report Builder extension.])
+)
+
+AC_ARG_ENABLE(ext-scripting-beanshell,
+ AS_HELP_STRING([--enable-ext-scripting-beanshell],
+ [DEPRECATED: use --enable-scripting-beanshell instead.])
+,AC_MSG_ERROR([--enable-ext-scripting-beanshell is no longer supported.])
+)
+
+AC_ARG_ENABLE(ext-scripting-javascript,
+ AS_HELP_STRING([--enable-ext-scripting-javascript],
+ [DEPRECATED: use --enable-scripting-javascript instead.])
+,AC_MSG_ERROR([--enable-ext-scripting-javascript is no longer supported.])
+)
+
+AC_ARG_ENABLE(ext-typo,
+ AS_HELP_STRING([--enable-ext-typo],
+ [Enable the Typography Toolbar extension.])
+)
+
+AC_ARG_ENABLE(ext-validator,
+ AS_HELP_STRING([--enable-ext-validator],
+ [Enable the Validator extension.])
+)
+
+AC_ARG_ENABLE(ext-watch-window,
+ AS_HELP_STRING([--enable-ext-watch-window],
+ [Enable the Watch Window extension to Calc.])
+)
+
+AC_ARG_ENABLE(ext-wiki-publisher,
+ AS_HELP_STRING([--enable-ext-wiki-publisher],
+ [Enable the Wiki Publisher extension.])
+)
+###############################################################################
+
+dnl ---------- *** ----------
+
+AC_ARG_ENABLE(mergelibs,
+ AS_HELP_STRING([--enable-mergelibs],
+ [Enables linking of big, merged, library. Experimental feature tested
+ only on Linux and Android.])
+)
+
+AC_ARG_ENABLE(graphite,
+ AS_HELP_STRING([--enable-graphite],
+ [Enables the compilation of Graphite smart font rendering.])
+)
+
+AC_ARG_ENABLE(fetch-external,
+ AS_HELP_STRING([--disable-fetch-external],
+ [Disables fetching external tarballs from web sources.])
+)
+
+AC_ARG_ENABLE(lockdown,
+ AS_HELP_STRING([--disable-lockdown],
+ [Disables the gconf integration work in LibreOffice.]),
+)
+
+AC_ARG_ENABLE(vba,
+ AS_HELP_STRING([--disable-vba],
+ [Disables the vba compatibility feature.])
+)
+
+AC_ARG_ENABLE(pch,
+ AS_HELP_STRING([--enable-pch],
+ [DEPRECATED : is ignored])
+)
+
+AC_ARG_ENABLE(mozilla,
+ AS_HELP_STRING([--enable-mozilla],
+ [LibreOffice can include a strangely hacked up Mozilla binary for your
+ platform, to build with this version, use this option.])
+)
+
+AC_ARG_ENABLE(epm,
+ AS_HELP_STRING([--enable-epm],
+ [LibreOffice includes self-packaging code, that requires epm, however epm is
+ useless for large scale package building.])
+)
+
+AC_ARG_ENABLE(odk,
+ AS_HELP_STRING([--disable-odk],
+ [LibreOffice includes an ODK, office development kit which some packagers may
+ wish to build without.])
+)
+
+AC_ARG_ENABLE(mathmldtd,
+ AS_HELP_STRING([--enable-mathmldtd],
+ [Enable bundling of (modified) MathML 1.01 DTD.])
+)
+
+AC_ARG_ENABLE(evolution2,
+ AS_HELP_STRING([--enable-evolution2],
+ [Allows the built-in evolution 2 addressbook connectivity build to be
+ enabled.])
+)
+
+AC_ARG_ENABLE(directx,
+ AS_HELP_STRING([--disable-directx],
+ [Remove DirectX implementation for the new XCanvas interface.
+ The DirectX support requires more stuff installed on Windows to
+ compile. (DirectX SDK, GDI+ libs)])
+)
+
+AC_ARG_ENABLE(activex,
+ AS_HELP_STRING([--disable-activex],
+ [Disable the use of ActiveX for a Windows build.
+ This switch is mandatory when using VC++ 2008 Express.])
+)
+
+AC_ARG_ENABLE(atl,
+ AS_HELP_STRING([--disable-atl],
+ [Disable the use of ATL for a Windows build.])
+ [
+ This switch is mandatory when using VC++ 2008 Express.
+ ],
+,)
+
+AC_ARG_ENABLE(symbols,
+ AS_HELP_STRING([--enable-symbols],
+ [Include debugging information in output ("symbols" is misleading here;
+ enables -g compiler option or equivalent). WARNING: A complete build
+ needs a lot of space (roughly 10 GiB) and takes much longer.]),
+,)
+
+AC_ARG_ENABLE(werror,
+ AS_HELP_STRING([--enable-werror],
+ [Turn warnings to errors. (Has no effect in modules where the treating
+ of warnings as errors is disabled explicitly.)]),
+,)
+
+AC_ARG_ENABLE(assert-always-abort,
+ AS_HELP_STRING([--enable-assert-always-abort],
+ [make assert() abort even in release code.]),
+,)
+
+AC_ARG_ENABLE(debug,
+ AS_HELP_STRING([--enable-debug],
+ [Include debugging information like with --enable-symbols, disable
+ compiler optimization and inlining plus extra debugging code like
+ assertions. Extra large build! (enables -g compiler flag and dmake
+ debug=true) If you need even more verbose output, build a module with
+ "build -- debug=true dbglevel=2".
+ You can also use this switch as follows:
+ --enable-debug="all -sw/ -Library_sc" to enable debugging only for
+ the specified gbuild-build targets (all means everything, - prepended
+ means not to enable, / appended means everything in the directory,
+ there is no ordering, more specific overrides more general, and
+ disabling takes precedence).]))
+
+AC_ARG_ENABLE(dbgutil,
+ AS_HELP_STRING([--enable-dbgutil],
+ [Include additional debugging utilities, such as assertions, object
+ counting, etc. Larger build. Independent from --enable-debug.
+ Note that this option makes the build ABI incompatible:
+ It is not possible to mix object files or libraries from a
+ --enable-dbgutil and a --disable-dbgutil build.]))
+
+AC_ARG_ENABLE(compiler-plugins,
+ AS_HELP_STRING([--enable-compiler-plugins],
+ [Enable compiler plugins that will perform additional checks during
+ building. Enabled automatically by --enable-dbgutil.]))
+
+AC_ARG_ENABLE(linkoo,
+ AS_HELP_STRING([--disable-linkoo],
+ [Disable linkoo for the smoketest installation.]))
+
+AC_ARG_ENABLE(lto,
+ AS_HELP_STRING([--enable-lto],
+ [Enable link-time optimization. Suitable for product builds.
+ Building takes longer but libraries are optimized for speed.
+ (possible only with gcc-4.5 or later,
+ better to use gcc-4.6 and 'gold' as linker)]))
+
+AC_ARG_ENABLE(crashdump,
+ AS_HELP_STRING([--enable-crashdump],
+ [Enable the crashdump feature.]))
+
+AC_ARG_ENABLE(python,
+ AS_HELP_STRING([--enable-python=<no/auto/system/internal>],
+ [Enables or disables Python support at run-time and build-time.
+ Also specifies what Python to use. 'auto' is the
+ default. Note that Python can be disabled with
+ --disable-python or --enable-python=no only if no
+ translations are required.]))
+
+AC_ARG_ENABLE(gtk,
+ AS_HELP_STRING([--disable-gtk],
+ [Determines whether to use Gtk+ vclplug on platforms where Gtk+ is available.]),
+,enable_gtk=yes)
+
+AC_ARG_ENABLE(gtk3,
+ AS_HELP_STRING([--enable-gtk3],
+ [Determines whether to use Gtk+ 3.0 vclplug on platforms where Gtk+ 3.0 is available.]),
+,enable_gtk3=no)
+
+AC_ARG_ENABLE(systray,
+ AS_HELP_STRING([--disable-systray],
+ [Determines whether to build the systray quickstarter.]),
+,enable_systray=yes)
+
+AC_ARG_ENABLE(split-app-modules,
+ AS_HELP_STRING([--enable-split-app-modules],
+ [Split file lists for app modules, e.g. base, calc.
+ Has effect only with make distro-pack-install]),
+,)
+
+AC_ARG_ENABLE(split-opt-features,
+ AS_HELP_STRING([--enable-split-opt-features],
+ [Split file lists for some optional features, .e.g. pyuno, testtool.
+ Has effect only with make distro-pack-install]),
+,)
+
+AC_ARG_ENABLE(cairo-canvas,
+[ --disable-cairo-canvas Determines whether to build the Cairo canvas on
+ platforms where Cairo is available.
+])
+
+AC_ARG_ENABLE(librsvg,
+ AS_HELP_STRING([--enable-librsvg=<no/auto/system/internal/fully-internal>],
+ [Enables or disables use of librsvg to render SVG at run-time.
+ Also specificed what librsvg to use. 'auto' is the default.
+ 'fully-internal' also forces internal versions of libraries (only)
+ librsvg depends on (currently GLib, gdk-pixbuf, libcroco, libgsf,
+ pango).]))
+
+AC_ARG_ENABLE(opengl,
+ AS_HELP_STRING([--disable-opengl],
+ [Determines whether to build the OpenGL 3D slide transitions component.]),
+,enable_opengl=yes)
+
+AC_ARG_ENABLE(dbus,
+ AS_HELP_STRING([--disable-dbus],
+ [Determines whether to enable features that depend on dbus.
+ e.g. Presentation mode screensaver control, bluetooth presentation control]),
+,enable_dbus=yes)
+
+AC_ARG_ENABLE(packagekit,
+ AS_HELP_STRING([--enable-packagekit],
+ [Determines whether to enable features using packagekit.
+ Right now that is auto font install]),
+,)
+
+AC_ARG_ENABLE(sdremote,
+ AS_HELP_STRING([--disable-sdremote],
+ [Determines whether to enable Impress remote control.
+ Uses dbus and bluetooth (bluez).]),
+,enable_sdremote=yes)
+
+AC_ARG_ENABLE(gconf,
+ AS_HELP_STRING([--disable-gconf],
+ [Determines whether to use the GConf support.]),
+,enable_gconf=yes)
+
+AC_ARG_ENABLE(gnome-vfs,
+ AS_HELP_STRING([--disable-gnome-vfs],
+ [Determines whether to use the Gnome Virtual Filing System on platforms
+ where that VFS is available.]),
+,enable_gnome_vfs=yes)
+
+AC_ARG_ENABLE(gio,
+ AS_HELP_STRING([--enable-gio],
+ [Determines whether to use the GIO support.]),
+,enable_gio=no)
+
+AC_ARG_ENABLE(telepathy,
+ AS_HELP_STRING([--enable-telepathy],
+ [Determines whether to enable Telepathy for collaboration.]),
+,enable_telepathy=no)
+
+AC_ARG_ENABLE(build-mozilla,
+ AS_HELP_STRING([--disable-build-mozilla],
+ [Use this option if you do not want to build the Mozilla components from
+ the Mozilla source code but take precompiled zips.]),
+,)
+
+AC_ARG_ENABLE(tde,
+ AS_HELP_STRING([--enable-tde],
+ [Determines whether to use TQt/TDE vclplug on platforms where TQt and
+ TDE are available.]),
+,)
+
+AC_ARG_ENABLE(tdeab,
+ AS_HELP_STRING([--disable-tdeab],
+ [Disable the TDE address book support.]),
+,
+ if test "$enable_tde" = "yes"; then
+ enable_tdeab=yes
+ fi
+)
+
+AC_ARG_ENABLE(kde,
+ AS_HELP_STRING([--enable-kde],
+ [Determines whether to use Qt3/KDE3 vclplug on platforms where Qt3 and
+ KDE3 are available.]),
+,)
+
+AC_ARG_ENABLE(kdeab,
+ AS_HELP_STRING([--disable-kdeab],
+ [Disable the KDE3 address book support.]),
+,
+ if test "$enable_kde" = "yes"; then
+ enable_kdeab=yes
+ fi
+)
+
+AC_ARG_ENABLE(kde4,
+ AS_HELP_STRING([--enable-kde4],
+ [Determines whether to use Qt4/KDE4 vclplug on platforms where Qt4 and
+ KDE4 are available. May be used with --enable-kde if you want to support
+ both KDE3 and KDE4.]),
+,)
+
+AC_ARG_ENABLE(headless,
+ AS_HELP_STRING([--enable-headless],
+ [Disable building of GUIs to reduce dependencies. Useful for
+ server usage. Work in progress, use only if you are hacking on
+ it. Not related to the --headless option.]), ,)
+
+AC_ARG_ENABLE(unix-qstart-libpng,
+ AS_HELP_STRING([--disable-unix-qstart-libpng],
+ [On UNIX systems, we have a faster splash app, that can use libpng to
+ render its splash, if we can safely link to the system libpng then
+ enabling this is a good idea (ie. for Linux Distro packaging).]),
+,enable_unix_qstart_libpng=yes)
+
+AC_ARG_ENABLE(binfilter,
+ AS_HELP_STRING([--enable-binfilter],
+ [Enable legacy binary file formats filters build.]),
+,enable_binfilter=no
+)
+
+AC_ARG_ENABLE(rpath,
+ AS_HELP_STRING([--disable-rpath],
+ [Disable the use of relative paths in shared libraries.]),
+,)
+
+AC_ARG_ENABLE(randr,
+ AS_HELP_STRING([--disable-randr],
+ [Disable RandR support in the vcl project.]),
+,enable_randr=yes)
+
+AC_ARG_ENABLE(randr-link,
+ AS_HELP_STRING([--disable-randr-link],
+ [Disable linking with libXrandr, instead dynamically open it at runtime.]),
+,enable_randr_link=yes)
+
+AC_ARG_ENABLE(gstreamer,
+ AS_HELP_STRING([--enable-gstreamer],
+ [Enable building with the new gstreamer 1.0 avmedia backend.]),
+,enable_gstreamer=no)
+
+AC_ARG_ENABLE(gstreamer-0-10,
+ AS_HELP_STRING([--disable-gstreamer-0-10],
+ [Disable building the gstreamer avmedia backend.]),
+,enable_gstreamer_0_10=yes)
+
+AC_ARG_ENABLE(neon,
+ AS_HELP_STRING([--disable-neon],
+ [Disable neon and the compilation of webdav binding.]),
+,)
+
+AC_ARG_ENABLE(cve-tests,
+ AS_HELP_STRING([--disable-cve-tests],
+ [Prevent CVE tests to be executed]),
+,)
+
+AC_ARG_ENABLE(build-unowinreg,
+ AS_HELP_STRING([--enable-build-unowinreg],
+ [Do not use the prebuilt unowinreg.dll. Build it instead. The MinGW C++
+ compiler is needed on Linux.])
+ [
+ Usage: --enable-build-unowinreg
+ ],
+,)
+
+AC_ARG_ENABLE(verbose,
+ AS_HELP_STRING([--enable-verbose],
+ [Increase build verbosity.])[
+ --disable-verbose Decrease build verbosity.],
+,)
+
+AC_ARG_ENABLE(dependency-tracking,
+ AS_HELP_STRING([--enable-dependency-tracking],
+ [Do not reject slow dependency extractors.])[
+ --disable-dependency-tracking
+ Disables generation of dependency information.
+ Speed up one-time builds.],
+,)
+
+AC_ARG_ENABLE(icecream,
+ AS_HELP_STRING([--enable-icecream],
+ [Use the 'icecream' distributed compiling tool to speedup the compilation.
+ It defaults to /opt/icecream for the location of the icecream gcc/g++
+ wrappers, you can override that using --with-gcc-home=/the/path switch.]),
+,)
+
+AC_ARG_ENABLE(zenity,
+ AS_HELP_STRING([--disable-zenity],
+ [Do not display a build icon in the notification area (on unix) during build.]),
+,enable_zenity=yes)
+
+AC_ARG_ENABLE(nsplugin,
+ AS_HELP_STRING([--disable-nsplugin],
+ [Do not build nsplugin extension for browser embedding.])
+)
+
+AC_ARG_ENABLE(cups,
+ AS_HELP_STRING([--disable-cups],
+ [Do not build cups support.])
+)
+
+AC_ARG_ENABLE(ccache,
+ AS_HELP_STRING([--disable-ccache],
+ [Do not try to use ccache automatically.
+ By default, we will try to detect if ccache is available; in that case if
+ CC/CXX are not yet set, and --enable-icecream is not given, we
+ attempt to use ccache. --disable-ccache disables ccache completely.
+]),
+,)
+
+AC_ARG_ENABLE(64-bit,
+ AS_HELP_STRING([--enable-64-bit],
+ [Build a 64-bit LibreOffice on platforms where the normal and only supported build
+ is 32-bit. In other words, this option is experimental and possibly quite broken,
+ use only if you are hacking on 64-bit support.]), ,)
+
+AC_ARG_ENABLE(extra-gallery,
+ AS_HELP_STRING([--enable-extra-gallery],
+ [Add extra gallery content.]),
+,)
+
+AC_ARG_ENABLE(extra-template,
+ AS_HELP_STRING([--enable-extra-template],
+ [Add extra template content.]),
+,)
+
+AC_ARG_ENABLE(extra-sample,
+ AS_HELP_STRING([--enable-extra-sample],
+ [Add extra sample content.]),
+,)
+
+AC_ARG_ENABLE(extra-font,
+ AS_HELP_STRING([--enable-extra-font],
+ [Add extra font content.]),
+,)
+
+AC_ARG_ENABLE(oxygenoffice,
+ AS_HELP_STRING([--enable-oxygenoffice],
+ [Download OxygenOffice branding and set custom settings.]),
+,)
+
+AC_ARG_ENABLE(lomenubar,
+ AS_HELP_STRING([--enable-lomenubar],
+ [Enable global menu support.]),
+,)
+
+AC_ARG_ENABLE(online-update,
+ AS_HELP_STRING([--enable-online-update],
+ [Enable the online update service that will check for new versions of
+ LibreOffice. By default, it is on on Windows and Mac, and off on Linux.]),
+,)
+
+AC_ARG_ENABLE(release-build,
+ AS_HELP_STRING([--enable-release-build],
+ [Enable release build.
+ See http://wiki.documentfoundation.org/DevBuild]),
+,)
+
+AC_ARG_ENABLE(silent-msi,
+ AS_HELP_STRING([--enable-silent-msi],
+ [Enable MSI with LIMITUI=1 (silent install).]),
+,)
+
+AC_ARG_ENABLE(postgresql-sdbc,
+ AS_HELP_STRING([--disable-postgresql-sdbc],
+ [Disable the build of the PostgreSQL-SDBC driver.])
+)
+
+AC_ARG_ENABLE(coretext,
+ AS_HELP_STRING([--enable-coretext],
+ [Use CoreText framework on Mac (instead of ATSU).
+ Known to not work properly, use only if you plan to work on that.]),
+)
+
+AC_ARG_ENABLE(winegcc,
+ AS_HELP_STRING([--enable-winegcc],
+ [Enable use of winegcc during the build, in order to create msi* tools
+ needed for MinGW cross-compilation.]),
+)
+
+AC_ARG_ENABLE(liblangtag,
+ AS_HELP_STRING([--disable-liblangtag],
+ [Disable use of liblangtag, and insted use an own simple
+ implementation.]),
+)
+
+AC_ARG_ENABLE(bogus-pkg-config,
+ AS_HELP_STRING([--enable-bogus-pkg-config],
+ [MACOSX only: on MacOSX pkg-config can cause trouble. by default if one is found in the PATH, an error is issued. This flag turn that error into a warning.]),
+)
+
+dnl ===================================================================
+dnl Optional Packages (--with/without-)
+dnl ===================================================================
+
+AC_ARG_WITH(gnu-patch,
+ AS_HELP_STRING([--with-gnu-patch],
+ [Specify location of GNU patch on Solaris or FreeBSD.]),
+,)
+
+AC_ARG_WITH(build-platform-configure-options,
+ [Specify options for the configure script run for the *build* platform in a cross-compilation])
+
+AC_ARG_WITH(gnu-cp,
+ AS_HELP_STRING([--with-gnu-cp],
+ [Specify location of GNU cp on Solaris or FreeBSD.]),
+,)
+
+AC_ARG_WITH(external-tar,
+ AS_HELP_STRING([--with-external-tar=<TARFILE PATH>],
+ [Specify path to tarfiles manually.]),
+ TARFILE_LOCATION=$withval ,
+)
+
+AC_ARG_WITH(solver-and-workdir-root,
+ AS_HELP_STRING([--with-solver-and-workdir-root=<PATH>],
+ [Specify path that contains SOLARVER and WORKDIR directories manually.])
+)
+
+AC_ARG_WITH(linked-git,
+ AS_HELP_STRING([--with-linked-git=<OTHER_CLONE_DIR>],
+ [Specify another checkout's clonedir to re-use. This makes use of
+ git-new-workdir, and saves a lot of diskspace when having multiple
+ trees side-by-side.]),
+ GIT_LINK_SRC=$withval ,
+)
+
+AC_ARG_WITH(vba-package-format,
+ AS_HELP_STRING([--with-vba-package-format],
+ [Specify package format for vba compatibility api. Specifying "builtin"
+ means the api component and associated type library are part of the
+ installation set. Specifying "extn" creates an uno extension that is
+ part of the installation set (located in the program directory) that
+ MUST be optionally registered using either the unopkg executeable or the
+ extension manager gui.])
+ [
+ Note: "builtin" is the default, "extn" can cause
+ problems.
+
+ Usage: --with-vba-package-format="builtin" or
+ --with-vba-package-format="extn"
+ ],
+,)
+
+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: *crystal, *default (galaxy), *hicontrast, human, industrial, *oxygen, *tango, *tango_testing.]),
+,)
+
+AC_ARG_WITH(helppack-integration,
+[
+ --without-helppack-integration It will not integrate the helppacks to the installer
+ of the product.
+ Please use this switch to use the online help or separate help packages.],
+,)
+
+AC_ARG_WITH(fonts,
+ AS_HELP_STRING([--without-fonts],
+ [LibreOffice includes some third-party fonts to provide a reliable basis for
+ help content, templates, samples, etc. When these fonts are already
+ known to be available on the system then you should use this option.]),
+,)
+
+AC_ARG_WITH(ppds,
+ AS_HELP_STRING([--without-ppds],
+ [Removes Postscript Printer definition files from LibreOffice
+ installation set, for people building for specific distributions where
+ PPDs are known to be already available (every recent distro with CUPS backend).]),
+,)
+
+AC_ARG_WITH(afms,
+ AS_HELP_STRING([--without-afms],
+ [Removes bitmap font files from LibreOffice installation set, for people
+ building for specific distributions where AFM files or TrueType Fonts
+ are known to be available.]),
+,)
+
+AC_ARG_WITH(agfa-monotype-fonts,
+ AS_HELP_STRING([--with-agfa-monotype-fonts],
+ [This switch should only be enabled for those who have the right
+ to use or distribute the proprietary Agfa Monotype
+ fonts.]),
+,)
+
+AC_ARG_WITH(epm,
+ AS_HELP_STRING([--with-epm],
+ [Decides which epm to use. Default is to use the one from the system if
+ one is built. When either this is not there or you say =internal epm
+ will be built.]),
+,)
+
+AC_ARG_WITH(package-format,
+ AS_HELP_STRING([--with-package-format],
+ [Specify package format(s) for LibreOffice installsets. Default is the
+ "normal" one of the OS/Distribution. Possible values: aix, bsd, deb,
+ inst, tardist, osx, pkg, rpm, setld, native, portable, archive, dmg,
+ installed, msi. Example: --with-package-format="deb dmg"]),
+,)
+
+AC_ARG_WITH(system-libs,
+ AS_HELP_STRING([--with-system-libs],
+ [Use libraries already on system -- enables all --with-system-* flags except
+ mozilla.]),
+,)
+
+AC_ARG_WITH(system-headers,
+ AS_HELP_STRING([--with-system-headers],
+ [Use headers already on system -- enables all --with-system-* flags for
+ external packages whose headers are the only entities used i.e.
+ boost/vigra/odbc/sane-header(s).]),,
+ [with_system_headers="$with_system_libs"])
+
+AC_ARG_WITH(system-jars,
+ AS_HELP_STRING([--without-system-jars],
+ [When building with --with-system-libs, also the needed jars are expected
+ on the system. Use this to disable that]),,
+ [with_system_jars="$with_system_libs"])
+
+AC_ARG_WITH(system-stdlibs,
+ AS_HELP_STRING([--without-system-stdlibs],
+ [Bundle the used libstdc++/libgcc_s into the installation set.]),,
+ [with_system_stdlibs="$with_system_libs"])
+
+AC_ARG_WITH(system-cairo,
+ AS_HELP_STRING([--with-system-cairo],
+ [Use Cairo libraries already on system.]),,
+ [with_system_cairo="$with_system_libs"])
+
+AC_ARG_WITH(system-graphite,
+ AS_HELP_STRING([--with-system-graphite],
+ [Use graphite library already installed on system.]),,
+ [with_system_graphite="$with_system_libs"])
+
+AC_ARG_WITH(system-nss,
+ AS_HELP_STRING([--with-system-nss],
+ [Use NSS/nspr libraries already on system.]),,
+ [with_system_nss="$with_system_libs"])
+
+AC_ARG_WITH(mozilla-toolkit,
+ AS_HELP_STRING([--with-mozilla-toolkit],
+ [Choose which GUI toolkit to use while building Mozilla components. (default=gtk2)]),
+,)
+
+AC_ARG_WITH(myspell-dicts,
+ AS_HELP_STRING([--without-myspell-dicts],
+ [Removes myspell dictionaries from LibreOffice installation set, for
+ people building for specific distributions where the myspell dictionaries
+ are installed from other sources.]),
+,)
+
+AC_ARG_WITH(system-dicts,
+ AS_HELP_STRING([--without-system-dicts],
+ [Do not use dictionaries from system paths.]),
+,)
+
+AC_ARG_WITH(external-dict-dir,
+ AS_HELP_STRING([--with-external-dict-dir],
+ [Specify external dictionary dir.]),
+,)
+
+AC_ARG_WITH(external-hyph-dir,
+ AS_HELP_STRING([--with-external-hyph-dir],
+ [Specify external hyphenation pattern dir.]),
+,)
+
+AC_ARG_WITH(external-thes-dir,
+ AS_HELP_STRING([--with-external-thes-dir],
+ [Specify external thesaurus dir.]),
+,)
+
+AC_ARG_WITH(system-zlib,
+ AS_HELP_STRING([--with-system-zlib],
+ [Use zlib already on system.]),,
+ [with_system_zlib=auto])
+
+AC_ARG_WITH(system-openssl,
+ AS_HELP_STRING([--with-system-openssl],
+ [Use OpenSSL already on system.]),,
+ [with_system_openssl="$with_system_libs"])
+
+AC_ARG_WITH(system-jpeg,
+ AS_HELP_STRING([--with-system-jpeg],
+ [Use jpeg already on system.]),,
+ [with_system_jpeg=auto])
+
+AC_ARG_WITH(system-clucene,
+ AS_HELP_STRING([--with-system-clucene],
+ [Use clucene already on system.]),,
+ [with_system_clucene="$with_system_libs"])
+
+AC_ARG_WITH(system-expat,
+ AS_HELP_STRING([--with-system-expat],
+ [Use expat already on system.]),,
+ [with_system_expat="$with_system_libs"])
+
+AC_ARG_WITH(system-libcmis,
+ AS_HELP_STRING([--with-system-libcmis],
+ [Use libcmis already on system.]),,
+ [with_system_libcmis="$with_system_libs"])
+
+AC_ARG_WITH(system-lcms2,
+ AS_HELP_STRING([--with-system-lcms2],
+ [Use littlecms v2 already on system.]),,
+ [with_system_lcms2="$with_system_libs"])
+
+AC_ARG_WITH(system-libcdr,
+ AS_HELP_STRING([--with-system-libcdr],
+ [Use libcdr already on system.]),,
+ [with_system_libcdr="$with_system_libs"])
+
+AC_ARG_WITH(system-libmspub,
+ AS_HELP_STRING([--with-system-libmspub],
+ [Use libmspub already on system.]),,
+ [with_system_libmspub="$with_system_libs"])
+
+AC_ARG_WITH(system-libvisio,
+ AS_HELP_STRING([--with-system-libvisio],
+ [Use libvisio already on system.]),,
+ [with_system_libvisio="$with_system_libs"])
+
+AC_ARG_WITH(system-libwpd,
+ AS_HELP_STRING([--with-system-libwpd],
+ [Use libwpd already on system.]),,
+ [with_system_libwpd="$with_system_libs"])
+
+AC_ARG_WITH(system-libwps,
+ AS_HELP_STRING([--with-system-libwps],
+ [Use libwps already on system.]),,
+ [with_system_libwps="$with_system_libs"])
+
+AC_ARG_WITH(system-libwpg,
+ AS_HELP_STRING([--with-system-libwpg],
+ [Use libwpg already on system.]),,
+ [with_system_libwpg="$with_system_libs"])
+
+AC_ARG_WITH(system-libxml,
+ AS_HELP_STRING([--with-system-libxml],
+ [Use libxml/libxslt already on system.]),,
+ [with_system_libxml=auto])
+
+AC_ARG_WITH(system-icu,
+ AS_HELP_STRING([--with-system-icu],
+ [Use icu already on system.]),,
+ [with_system_icu="$with_system_libs"])
+
+AC_ARG_WITH(system-ucpp,
+ AS_HELP_STRING([--with-system-ucpp],
+ [Use ucpp already on system.]),,
+ [])
+
+AC_ARG_WITH(system-openldap,
+ AS_HELP_STRING([--with-system-openldap],
+ [Use the OpenLDAP LDAP SDK already on system.]),,
+ [with_system_openldap="$with_system_libs"])
+
+AC_ARG_WITH(system-poppler,
+ AS_HELP_STRING([--with-system-poppler],
+ [Use system poppler. (only needed for pdfimport extension)]),,
+ [with_system_poppler="$with_system_libs"])
+
+AC_ARG_WITH(system-db,
+ AS_HELP_STRING([--with-system-db],
+ [Use Berkeley db already on system.]),,
+ [with_system_db="$with_system_libs"])
+
+AC_ARG_WITH(system-apache-commons,
+ AS_HELP_STRING([--with-system-apache-commons],
+ [Use Apache commons libraries already on system.]),,
+ [with_system_apache_commons="$with_system_jars"])
+
+AC_ARG_WITH(system-mysql,
+ AS_HELP_STRING([--with-system-mysql],
+ [Use MySQL libraries already on system, for building the MySQL Connector/LibreOffice
+ extension. If the the mysql_config executable is not in PATH, use MYSQLCONFIG to
+ point to it.]),,
+ [with_system_mysql="$with_system_libs"])
+
+AC_ARG_WITH(libmysql-path,
+ AS_HELP_STRING([--with-libmysql-path],
+ [Use Connector/C (libmysql) installation for building the MySQL
+ Connector/LibreOffice extension.])
+ [
+ Usage: --with-libmysql-path=<absolute path to
+ your Connector/C installation>
+ ],
+,)
+
+AC_ARG_WITH(system-mysql-cppconn,
+ AS_HELP_STRING([--with-system-mysql-cppconn],
+ [Use MySQL C++ Connector libraries already on system.]),,
+ [with_system_mysql_cppconn="$with_system_libs"])
+
+AC_ARG_WITH(system-postgresql,
+ AS_HELP_STRING([--with-system-postgresql],
+ [Use PostgreSQL libraries already on system, for building the PostgreSQL-SDBC
+ driver. If pg_config is not in PATH, use PGCONFIG to point to it.]),,
+ [with_system_postgresql="$with_system_libs"])
+
+AC_ARG_WITH(libpq-path,
+ AS_HELP_STRING([--with-libpq-path],
+ [Use this PostgreSQL C interface (libpq) installation for building
+ the PostgreSQL-SDBC extension.])
+ [
+ Usage: --with-libpq-path=<absolute path to
+ your libq installation>
+ ],
+,)
+
+AC_ARG_WITH(system-hsqldb,
+ AS_HELP_STRING([--with-system-hsqldb],
+ [Use hsqldb already on system.]))
+
+AC_ARG_WITH(hsqldb-jar,
+ AS_HELP_STRING([--with-hsqldb-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ HSQLDB_JAR=$withval)
+
+AC_ARG_ENABLE(scripting-beanshell,
+ AS_HELP_STRING([--disable-scripting-beanshell],
+ [Disable support for scripts in BeanShell.]),
+,
+)
+
+AC_ARG_WITH(system-beanshell,
+ AS_HELP_STRING([--with-system-beanshell],
+ [Use beanshell already on system.]),,
+ [with_system_beanshell="$with_system_jars"])
+
+AC_ARG_WITH(beanshell-jar,
+ AS_HELP_STRING([--with-beanshell-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ BSH_JAR=$withval)
+
+AC_ARG_ENABLE(scripting-javascript,
+ AS_HELP_STRING([--disable-scripting-javascript],
+ [Disable support for scripts in JavaScript.]),
+,
+)
+
+AC_ARG_WITH(system-rhino,
+ AS_HELP_STRING([--with-system-rhino],
+ [Use rhino already on system.]),,)
+# [with_system_rhino="$with_system_jars"])
+# Above is not used as we have different debug interface
+# patched into internal rhino. This code needs to be fixed
+# before we can enable it by default.
+
+AC_ARG_WITH(rhino-jar,
+ AS_HELP_STRING([--with-rhino-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ RHINO_JAR=$withval)
+
+AC_ARG_WITH(commons-codec-jar,
+ AS_HELP_STRING([--with-commons-codec-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ COMMONS_CODEC_JAR=$withval)
+
+AC_ARG_WITH(commons-lang-jar,
+ AS_HELP_STRING([--with-commons-lang-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ COMMONS_LANG_JAR=$withval)
+
+AC_ARG_WITH(commons-httpclient-jar,
+ AS_HELP_STRING([--with-commons-httpclient-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ COMMONS_HTTPCLIENT_JAR=$withval)
+
+AC_ARG_WITH(commons-logging-jar,
+ AS_HELP_STRING([--with-commons-logging-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ COMMONS_LOGGING_JAR=$withval)
+
+AC_ARG_WITH(system-servlet-api,
+ AS_HELP_STRING([--with-system-servlet-api],
+ [Use servlet-api already on system.]),,
+ [with_system_servlet_api="$with_system_jars"])
+
+AC_ARG_WITH(servlet-api-jar,
+ AS_HELP_STRING([--with-servlet-api-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ SERVLETAPI_JAR=$withval)
+
+AC_ARG_WITH(system-jfreereport,
+ AS_HELP_STRING([--with-system-jfreereport],
+ [Use JFreeReport already on system.]),,
+ [with_system_jfreereport="$with_system_jars"])
+
+AC_ARG_WITH(sac-jar,
+ AS_HELP_STRING([--with-sac-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ SAC_JAR=$withval)
+
+AC_ARG_WITH(libxml-jar,
+ AS_HELP_STRING([--with-libxml-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBXML_JAR=$withval)
+
+AC_ARG_WITH(flute-jar,
+ AS_HELP_STRING([--with-flute-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ FLUTE_JAR=$withval)
+
+AC_ARG_WITH(jfreereport-jar,
+ AS_HELP_STRING([--with-jfreereport-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ JFREEREPORT_JAR=$withval)
+
+AC_ARG_WITH(liblayout-jar,
+ AS_HELP_STRING([--with-liblayout-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBLAYOUT_JAR=$withval)
+
+AC_ARG_WITH(libloader-jar,
+ AS_HELP_STRING([--with-libloader-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBLOADER_JAR=$withval)
+
+AC_ARG_WITH(libloader-jar,
+ AS_HELP_STRING([--with-libloader-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBLOADER_JAR=$withval)
+
+AC_ARG_WITH(libformula-jar,
+ AS_HELP_STRING([--with-libformula-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBFORMULA_JAR=$withval)
+
+AC_ARG_WITH(librepository-jar,
+ AS_HELP_STRING([--with-librepository-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBREPOSITORY_JAR=$withval)
+
+AC_ARG_WITH(libfonts-jar,
+ AS_HELP_STRING([--with-libfonts-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBFONTS_JAR=$withval)
+
+AC_ARG_WITH(libserializer-jar,
+ AS_HELP_STRING([--with-libserializer-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBSERIALIZER_JAR=$withval)
+
+AC_ARG_WITH(libbase-jar,
+ AS_HELP_STRING([--with-libbase-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ LIBBASE_JAR=$withval)
+
+AC_ARG_WITH(system-saxon,
+ AS_HELP_STRING([--with-system-saxon],
+ [Use saxon already on system.]))
+
+AC_ARG_WITH(saxon-jar,
+ AS_HELP_STRING([--with-saxon-jar=JARFILE],
+ [Specify path to jarfile manually.]),
+ SAXON_JAR=$withval)
+
+AC_ARG_WITH(system-odbc,
+ AS_HELP_STRING([--with-system-odbc],
+ [Use the odbc headers already on system.]),,
+ [with_system_odbc="$with_system_headers"])
+
+AC_ARG_WITH(system-sane,
+ AS_HELP_STRING([--with-system-sane],
+ [Use sane.h already on system.]),,
+ [with_system_sane="$with_system_headers"])
+
+AC_ARG_WITH(system-bluez,
+ AS_HELP_STRING([--with-system-bluez],
+ [Use bluetooth.h already on system.]),,
+ [with_system_bluez="$with_system_headers"])
+
+AC_ARG_WITH(system-xextensions-headers,
+ AS_HELP_STRING([--with-system-xextensions-headers],
+ [To build without system X11 extensions headers, use
+ --without-system-xextensions-headers. This is possibly
+ useful on legacy unix systems which ship with the libs
+ but without the headers.]))
+
+AC_ARG_WITH(system-mesa-headers,
+ AS_HELP_STRING([--with-system-mesa-headers],
+ [Use Mesa headers already on system.]),,
+ [with_system_mesa_headers="$with_system_headers"])
+
+AC_ARG_WITH(system-curl,
+ AS_HELP_STRING([--with-system-curl],
+ [Use curl already on system.]),,
+ [with_system_curl=auto])
+
+AC_ARG_WITH(system-boost,
+ AS_HELP_STRING([--with-system-boost],
+ [Use boost already on system.]),,
+ [with_system_boost="$with_system_headers"])
+
+AC_ARG_WITH(system-mdds,
+ AS_HELP_STRING([--with-system-mdds],
+ [Use mdds already on system.]),,
+ [with_system_mdds="$with_system_headers"])
+
+AC_ARG_WITH(system-vigra,
+ AS_HELP_STRING([--with-system-vigra],
+ [Use vigra already on system.]),,
+ [with_system_vigra="$with_system_headers"])
+
+AC_ARG_WITH(system-neon,
+ AS_HELP_STRING([--with-system-neon],
+ [Use neon already on system.]),,
+ [with_system_neon="$with_system_libs"])
+
+AC_ARG_WITH(system-hunspell,
+ AS_HELP_STRING([--with-system-hunspell],
+ [Use libhunspell already on system.]),,
+ [with_system_hunspell="$with_system_libs"])
+
+AC_ARG_WITH(system-mythes,
+ AS_HELP_STRING([--with-system-mythes],
+ [Use mythes already on system.]),,
+ [with_system_mythes="$with_system_libs"])
+
+AC_ARG_WITH(system-altlinuxhyph,
+ AS_HELP_STRING([--with-system-altlinuxhyph],
+ [Use ALTLinuxhyph already on system.]),,
+ [with_system_altlinuxhyph="$with_system_libs"])
+
+AC_ARG_WITH(system-lpsolve,
+ AS_HELP_STRING([--with-system-lpsolve],
+ [Use lpsolve already on system.]),,
+ [with_system_lpsolve="$with_system_libs"])
+
+AC_ARG_WITH(system-libexttextcat,
+ AS_HELP_STRING([--with-system-libexttextcat],
+ [Use libexttextcat already on system.]),,
+ [with_system_libexttextcat="$with_system_libs"])
+
+AC_ARG_WITH(system-cppunit,
+ AS_HELP_STRING([--with-system-cppunit],
+ [Use cppunit already on system.]),,
+ [with_system_cppunit="$with_system_libs"])
+
+AC_ARG_WITH(system-redland,
+ AS_HELP_STRING([--with-system-redland],
+ [Use redland library already on system.]),,
+ [with_system_redland="$with_system_libs"])
+
+AC_ARG_WITH(system-orcus,
+ AS_HELP_STRING([--with-system-orcus],
+ [Use orcus library already on system.]),,
+ [with_system_orcus="$with_system_libs"])
+
+AC_ARG_WITH(system-liblangtag,
+ AS_HELP_STRING([--with-system-liblangtag],
+ [Use liblangtag library already on system.]),,
+ [with_system_liblangtag="$with_system_libs"])
+
+AC_ARG_WITH(system-mozilla,
+ AS_HELP_STRING([--with-system-mozilla],
+ [Use Mozilla already on system. Note that some components cannot be built
+ against a contemporary Mozilla. The flavour used can be specified by
+ --with-system-mozilla=<flavour>. Supported are: libxul (default),
+ xulrunner, firefox, seamonkey, mozilla, iceape.]),
+ WITH_SYSTEM_MOZILLA=$withval ,
+WITH_SYSTEM_MOZILLA=no)
+
+AC_ARG_WITH(system-mozilla-headers,
+ AS_HELP_STRING([--with-system-mozilla-headers],
+ [Use mozilla headers provided by system instead of bundled ones. Used in
+ nsplugin]),,
+ [with_system_mozilla_headers="$with_system_headers"]
+)
+
+AC_ARG_WITH(system-gettext,
+ AS_HELP_STRING([--with-system-gettext],
+ [Use gettext runtime library already on system.]),,
+ [with_system_gettext="$with_system_libs"])
+
+AC_ARG_WITH(system-libpng,
+ AS_HELP_STRING([--with-system-libpng],
+ [Use libpng already on system.]),,
+ [with_system_libpng=auto])
+
+AC_ARG_WITH(linker-hash-style,
+ AS_HELP_STRING([--with-linker-hash-style],
+ [Use linker with --hash-style=<style> when linking shared objects.
+ Possible values: "sysv", "gnu", "both". The default value is "gnu"
+ if supported on the build system, and "sysv" otherwise.]))
+
+AC_ARG_WITH(stlport,
+ AS_HELP_STRING([--with-stlport],
+ [Build the STLPort library for compatibility with old extensions for
+ architectures where STLPort used to be used.]),
+ with_stlport=$withval ,
+with_stlport=auto)
+
+AC_ARG_WITH(jdk-home,
+ AS_HELP_STRING([--with-jdk-home],
+ [If you have installed JDK 1.3 or later on your system please supply the
+ path here. Note that this is not the location of the java command but the
+ location of the entire distribution.])
+ [
+ Usage: --with-jdk-home=<absolute path to JDK home>
+ ],
+,)
+
+AC_ARG_WITH(gxx_include_path,
+ AS_HELP_STRING([--with-gxx-include-path],
+ [If you want to override the autodetected g++ include path.])
+ [
+ Usage: --with-gxx-include-path=<absolute path to
+ g++ include dir>
+ ],
+,)
+
+AC_ARG_WITH(help,
+ AS_HELP_STRING([--without-help],
+ [Disable the build of help.]))
+
+AC_ARG_WITH(java,
+ AS_HELP_STRING([--with-java],
+ [Specify the name of the Java interpreter command. Typically "java"
+ which is the default.
+
+ To build without support for Java components, applets, accessibility
+ or the XML filters written in Java, use --without-java or --with-java=no.])
+ [
+ Usage: --with-java==<java command>
+ --without-java
+ ],
+ [ test -z "$with_java" -o "$with_java" = "yes" && with_java=java ],
+ [ with_java=java ]
+)
+
+AC_ARG_WITH(java-target-version,
+ AS_HELP_STRING([--with-java-target-version],
+ [Generate class files that will work on JVMs with the specified version.
+ For example, use --with-java-target-version=1.5 to make sure that the
+ application will work with JVM 1.5 even when compiled with JDK 1.6.])
+ [
+ This option is ignored when you compile with gcj/gij.
+
+ Usage: --with-java-target-version=<jvm version>
+ ],
+,)
+
+AC_ARG_WITH(jvm-path,
+ AS_HELP_STRING([--with-jvm-path],
+ [Use a specific JVM search path at runtime.])
+ [
+ Usage: --with-jvm-path=<absolute path to parent of jvm home>
+
+ e. g.: --with-jvm-path=/usr/lib/
+ to find JRE/JDK in /usr/lib/jvm/
+ ],
+,)
+
+AC_ARG_WITH(ant-home,
+ AS_HELP_STRING([--with-ant-home],
+ [If you have installed Jakarta Ant on your system, please supply the path here.
+ Note that this is not the location of the Ant binary but the location
+ of the entire distribution.])
+ [
+ Usage: --with-ant-home=<absolute path to Ant home>
+ ],
+,)
+
+AC_ARG_WITH(junit,
+ AS_HELP_STRING([--with-junit],
+ [Specifies the JUnit 4 jar file to use for JUnit-based tests.
+ --without-junit disables those tests. Not relevant in the --without-java case.])
+ [
+ Usage: --with-junit=<absolute path to JUnit 4 jar>
+ ],
+,with_junit=yes)
+
+AC_ARG_WITH(perl-home,
+ AS_HELP_STRING([--with-perl-home],
+ [If you have installed Perl 5 Distribution, on your system, please
+ supply the path here. Note that this is not the location of the Perl
+ binary but the location of the entire distribution.])
+ [
+ Usage: --with-perl-home=<abs. path to Perl 5 home>
+ ],
+,)
+
+AC_ARG_WITH(
+ [doxygen],
+ AS_HELP_STRING(
+ [--with-doxygen],
+ [Specifies the doxygen executable to use when generating ODK C/C++
+ documentation. --without-doxygen disables generation of ODK C/C++
+ documentation. Not relevant in the --disable-odk case.])
+ [
+ Usage: --with-doxygen=<absolute path to doxygen executable>
+ ],,
+ [with_doxygen=yes])
+
+AC_ARG_WITH(cl-home,
+ AS_HELP_STRING([--with-cl-home],
+ [For Windows NT users, please supply the path for the Microsoft C/C++
+ compiler. Note that this is not the location of the compiler binary but
+ the location of the entire distribution.])
+ [
+ Usage: --with-cl-home=<absolute path to Microsoft
+ C/C++ compiler home>
+ ],
+,)
+
+AC_ARG_WITH(mspdb-path,
+ AS_HELP_STRING([--with-mspdb-path],
+ [For Microsoft C/C++ compiler users, please supply the path pointing to
+ the mspdb80.dll (if using Visual Studio 2008) or mspdb100.dll (if using
+ Visual Studio 2010).])
+ [
+ Usage: --with-mspdb-path=<path to
+ mspdb80.dll/mspdb100.dll>
+ ],
+,)
+
+AC_ARG_WITH(midl-path,
+ AS_HELP_STRING([--with-midl-path],
+ [For Microsoft compiler users, please supply the path pointing to the midl.exe.])
+ [
+ Usage: --with-midl-path=<abs. path to midl.exe>
+ ],
+,)
+
+AC_ARG_WITH(csc-path,
+ AS_HELP_STRING([--with-csc-path],
+ [For Windows builds, please supply the path pointing to the csc.exe.
+ Usually found automatically when building on Windows.])
+ [
+ Usage: --with-csc-path=<abs. path to csc.exe>
+ ],
+,)
+
+AC_ARG_WITH(dotnet-framework-home,
+ AS_HELP_STRING([--with-dotnet-framework-home],
+ [For Microsoft compiler users, please supply the path pointing to
+ lib/mscoree.lib, usually something like:
+ "/cygdrive/c/Program Files/Windows SDKs/Windows/v7.0"])
+ [
+ Note that in most cases it will be automatically
+ found, though.
+
+ Usage: --with-dotnet-framework-home=<absolute path to .NET
+ Framework>
+ ],
+,)
+
+AC_ARG_WITH(windows-sdk-home,
+ AS_HELP_STRING([--with-windows-sdk-home],
+ [For Windows builds, please supply the path to the Windows SDK.
+ Usually found automatically when building on Windows.])
+ [
+ Usage: --with-windows-sdk-home=<absolute path to Windows SDK>
+ ],
+,)
+
+AC_ARG_WITH(directx-home,
+ AS_HELP_STRING([--with-directx-home],
+ [For Windows users, please supply the path to the Microsoft DirectX SDK.])
+ [
+ Usage: --with-directx-home=<absolute path to
+ Microsoft DirectX SDK>
+ ],
+,)
+
+AC_ARG_WITH(mozilla-build,
+ AS_HELP_STRING([--with-mozilla-build],
+ [For Windows users, please supply the path to the Mozilla build tools.])
+ [
+ Usage: --with-mozilla-build=<absolute path to
+ Mozilla build tools>
+
+ At the moment of this writing, an installer for the
+ mozilla build tools can be obtained from http://ftp.
+ mozilla.org/pub/mozilla.org/mozilla/libraries/win32.
+ ],
+ MOZILLABUILD=$withval ,
+)
+
+AC_ARG_WITH(lang,
+ AS_HELP_STRING([--with-lang],
+ [Use this option to build LibreOffice with additional language support.
+ English (US) is always included by default.
+ Separate multiple languages with space.
+ For all languages, use --with-lang=ALL.])
+ [
+ Usage: --with-lang="es sw tu cs sk"
+ ],
+,)
+
+# Kerberos and GSSAPI used only by PostgreSQL as of LibO 3.5
+AC_ARG_WITH(krb5,
+ AS_HELP_STRING([--with-krb5],
+ [Enable MIT Kerberos 5 support in modules that support it.
+ By default automatically enabled on platforms
+ where a good system Kerberos 5 is available.]),
+,)
+
+AC_ARG_WITH(gssapi,
+ AS_HELP_STRING([--with-gssapi],
+ [Enable GSSAPI support in modules that support it.
+ By default automatically enabled on platforms
+ where a good system GSSAPI is available.]),
+,)
+
+dnl ===================================================================
+dnl Branding
+dnl ===================================================================
+
+AC_ARG_WITH(branding,
+[ --with-branding Use given path to retrieve all branding images.
+ Expects /path/intro.png ...
+ /path/backing_rtl_right.png to be there. Individual
+ images can be overridden via --with-intro-bitmap ...
+ --with-startcenter-rtl-left-bitmap switches.
+
+ Usage: --with-branding=/path/to/images
+],,)
+
+AC_ARG_WITH(intro-bitmap,
+[ --with-intro-bitmap Prefer the specified intro bitmap over the
+ the default one.
+
+ Usage: --with-intro-bitmap=/path/my_ooo_intro.png
+],,)
+
+AC_ARG_WITH(intro-progressbar-color,
+[ --with-intro-progressbar-color Set color of progress bar on intro screen.
+ Comma separated RGB values in decimal format.
+
+ Usage: --with-intro-progressbar-color=126,170,23
+],,)
+
+AC_ARG_WITH(intro-progressbar-size,
+[ --with-intro-progressbar-size Set size of progress bar on intro screen.
+ Comma separated values in decimal format.
+
+ Usage: --with-intro-progressbar-size=319,10
+],,)
+
+AC_ARG_WITH(intro-progressbar-position,
+[ --with-intro-progressbar-position Set position of progress bar on intro screen.
+ Comma separated values in decimal format.
+
+ Usage: --with-intro-progressbar-position=164,225
+],,)
+
+AC_ARG_WITH(intro-progressbar-frame-color,
+[ --with-intro-progressbar-frame-color Set color of progress bar frame on intro screen.
+ Comma separated RGB values in decimal format.
+
+ Usage: --with-intro-progressbar-frame-color=207,208,211
+],,)
+
+AC_ARG_WITH(intro-progressbar-text-color,
+ AS_HELP_STRING([--with-intro-progressbar-text-color],
+ [Set color of progress bar text on intro screen. Comma separated RGB values in decimal format.])
+ [
+ Usage: --with-intro-progressbar-text-color=207,208,211
+],,)
+
+AC_ARG_WITH(intro-progressbar-text-baseline,
+ AS_HELP_STRING([--with-intro-progressbar-text-baseline],
+ [Set vertical position of progress bar text on intro screen. Value in decimal format.])
+ [
+ Usage: --with-intro-progressbar-text-baseline=250
+],,)
+
+AC_ARG_WITH(flat-logo-svg,
+[ --with-flat-logo-svg Allows specification of the flat Logo SVG.
+
+ Usage: --with-flat-logo-svg=/path/my_flat_logo.svg
+],,)
+
+AC_ARG_WITH(about-background-svg,
+[ --with-about-background-svg Allows specification of the background SVG for the About dialog.
+
+ Usage: --with-about-background-svg=/path/my_libo_about.svg
+],,)
+
+AC_ARG_WITH(startcenter-left-bitmap,
+[ --with-startcenter-left-bitmap Similarly to --with-intro-bitmap, this allows
+ specification of bitmap for the Start center.
+
+ Usage: --with-startcenter-left-bitmap=/path/my_backing_left.png
+],,)
+
+AC_ARG_WITH(startcenter-right-bitmap,
+[ --with-startcenter-right-bitmap Similarly to --with-intro-bitmap, this allows
+ specification of bitmap for the Start center.
+
+ Usage: --with-startcenter-right-bitmap=/path/my_backing_right.png
+],,)
+
+AC_ARG_WITH(startcenter-rtl-left-bitmap,
+[ --with-startcenter-rtl-left-bitmap Similarly to --with-intro-bitmap, this allows
+ specification of bitmap for the Start center.
+
+ Usage: --with-startcenter-rtl-left-bitmap=/path/my_backing_rtl_left.png
+],,)
+
+AC_ARG_WITH(startcenter-rtl-right-bitmap,
+[ --with-startcenter-rtl-right-bitmap Similarly to --with-intro-bitmap, this allows
+ specification of bitmap for the Start center.
+
+ Usage: --with-startcenter-rtl-right-bitmap=/path/my_backing_rtl_right.png
+],,)
+
+AC_ARG_WITH(startcenter-space-bitmap,
+[ --with-startcenter-space-bitmap Similarly to --with-intro-bitmap, this allows
+ specification of bitmap for the Start center.
+
+ Usage: --with-startcenter-space-bitmap=/path/my_backing_space.png
+],,)
+
+AC_ARG_WITH(vendor,
+ AS_HELP_STRING([--with-vendor],
+ [Set vendor of the build.])
+ [
+ Usage: --with-vendor="John the Builder"
+ ],
+,)
+
+AC_ARG_WITH(unix-wrapper,
+ AS_HELP_STRING([--with-unix-wrapper],
+ [Redefines the name of the UNIX wrapper that will be used in the desktop
+ files and in the desktop-integration RPMs.])
+ [
+ Usage: --with-unix-wrapper=ooffice
+ ],
+,)
+
+AC_ARG_WITH(compat-oowrappers,
+ AS_HELP_STRING([--with-compat-oowrappers],
+ [Install oo* wrappers in parallel with
+ lo* ones to keep backward compatibility.
+ Has effect only with make distro-pack-install]),
+,)
+
+AC_ARG_WITH(asm-home,
+ AS_HELP_STRING([--with-asm-home],
+ [For Windows, please supply the path for the ml.exe or ml64.exe assembler.])
+ [
+ Usage: --with-asm-home=<path to assembler directory>
+ ],
+,)
+
+AC_ARG_WITH(os-version,
+ AS_HELP_STRING([--with-os-version],
+ [For FreeBSD users, use this option option to override the detected OSVERSION.])
+ [
+ Usage: --with-os-version=<OSVERSION>
+ ],
+,)
+
+AC_ARG_WITH(mingw-cross-compiler,
+ AS_HELP_STRING([--with-mingw-cross-compiler],
+ [Specify the MinGW cross-compiler to use.])
+ [
+ Usage: --with-mingw-cross-compiler=<mingw32-g++ command>
+
+ When building on the ODK on Unix and building unowinreg.dll,
+ specify the MinGW C++ cross-compiler.
+ ],
+,)
+
+AC_ARG_WITH(idlc-cpp,
+ AS_HELP_STRING([--with-idlc-cpp],
+ [Specify the C Preprocessor to use for idlc.])
+ [
+ Usage: --with-idlc-cpp=cpp
+
+ Default is ucpp.
+ ]
+,)
+
+AC_ARG_WITH(build-version,
+ AS_HELP_STRING([--with-build-version],
+ [Allows the builder to add a custom version tag that will appear in the
+ Help/About box for QA purposes.])
+ [
+ Usage: --with-build-version="Built by Jim"
+ ],
+ with_build_version=$withval ,
+)
+
+AC_ARG_WITH(alloc,
+ AS_HELP_STRING([--with-alloc],
+ [Define which allocator to build with (choices are oo, system, tcmalloc, jemalloc).
+ Note that on FreeBSD/NetBSD system==jemalloc]),
+,)
+
+AC_ARG_WITH(sun-templates,
+ AS_HELP_STRING([--with-sun-templates],
+ [Integrate Sun template packages.]),
+,)
+
+AC_ARG_WITH(num-cpus,
+ AS_HELP_STRING([--with-num-cpus],
+ [Number of build processes/cpus to use (number of projects that will build at the same time).
+ Multi-process/multi-cpu builds can save a lot of time on multi-cpu machines.
+ Defaults to the number of CPUs on the machine.]),
+,)
+
+AC_ARG_WITH(max-jobs,
+ AS_HELP_STRING([--with-max-jobs],
+ [Maximum number of jobs that will be issued at the same time per dmake or gbuild subproject.
+ The real number of the jobs is affected by the --with-num-cpus too, it can get up to CPUS*max_jobs.
+ Defaults to 1, unless you configure --enable-icecream - then to 10.]),
+,)
+
+AC_ARG_WITH(check-jobs,
+ AS_HELP_STRING([--with-check-jobs],
+ [Maximum number of jobs that will be issued at the same time during 'make subsequenttest'.
+ Default value is the same as 'max-jobs'. Useful because the subsequent tests are very lighweight.]),
+,)
+
+dnl ===================================================================
+dnl Test whether build target is Release Build
+dnl ===================================================================
+AC_MSG_CHECKING([whether build target is Release Build])
+if test "$enable_release_build" = "" -o "$enable_release_build" = "no"; then
+ AC_MSG_RESULT([no])
+ ENABLE_RELEASE_BUILD="FALSE"
+else
+ AC_MSG_RESULT([yes])
+ ENABLE_RELEASE_BUILD="TRUE"
+fi
+AC_SUBST(ENABLE_RELEASE_BUILD)
+
+dnl ===================================================================
+dnl MacOSX build and runtime environment options
+dnl ===================================================================
+
+AC_ARG_WITH(macosx-sdk,
+ AS_HELP_STRING([--with-macosx-sdk],
+ [Use a specific SDK for building.])
+ [
+ Usage: --with-macosx-sdk=<version>
+
+ e. g.: --with-macosx-sdk=10.4
+
+ there are 3 options to control the MacOSX build:
+ --with-macosx-sdk (refered as 'sdk' below)
+ --with-macosx-version-min-required (refered as 'min' below)
+ --with-macosx-version-max-allowed (refered as 'max' below)
+
+ the connection between these value and the default they take is as follow:
+ ( ? means not specified on the command line, s means the SDK version found,
+ constraint: x <= y <= z)
+
+ ==========================================
+ command line || config result
+ ==========================================
+ min | max | sdk || min | max | sdk |
+ ? | ? | ? || 10.4 | 10.s | 10.s |
+ ? | ? | 10.x || 10.4 | 10.x | 10.x |
+ ? | 10.x | ? || 10.4 | 10.s | 10.s |
+ ? | 10.x | 10.y || 10.4 | 10.x | 10.y |
+ 10.x | ? | ? || 10.x | 10.s | 10.s |
+ 10.x | ? | 10.y || 10.x | 10.y | 10.y |
+ 10.x | 10.y | ? || 10.x | 10.y | 10.y |
+ 10.x | 10.y | 10.z || 10.x | 10.y | 10.z |
+
+
+ see: http://developer.apple.com/library/mac/#technotes/tn2064/_index.html
+ for a detailled technical explanation of these variables
+
+ Note: MACOSX_DEPLOYMENT_TARGET will be set to the value of 'min'.
+
+ Note that even if in theory using a --with-macosx-version-max-allowed
+ (i.e. the MAC_OS_X_VERSION_MAX_ALLOWED macro) less than the SDK version
+ should work, in practice Apple doesn't seem to test that, and at least
+ compiling with -DMAC_OS_X_VERSION_MAX_ALLOWED=1060 against the 10.7 SDK
+ fails in a couple of places. Just because of oversights in ifdefs in the SDK
+ headers, but still.
+ ],
+,)
+
+AC_ARG_WITH(macosx-version-min-required,
+ AS_HELP_STRING([--with-macosx-version-min-required],
+ [set the minimum OS version needed to run the built LibreOffice])
+ [
+ Usage: --with-macosx-version-min-required=<version>
+
+ e. g.: --with-macos-version-min-required=10.4
+ see --with-macosx-sdk for more info
+ ],
+,)
+
+AC_ARG_WITH(macosx-version-max-allowed,
+ AS_HELP_STRING([--with-macosx-version-max-allowed],
+ [set the maximum allowed OS version the LibreOffice compilation can use APIs from])
+ [
+ Usage: --with-macosx-version-max-allowed=<version>
+
+ e. g.: --with-macos-version-max-allowed=10.6
+ see --with-macosx-sdk for more info
+ ],
+,)
+
+
+dnl ===================================================================
+dnl options for stuff used during cross-compilation build
+dnl These are superseded by --with-build-platform-configure-options
+dnl ===================================================================
+
+AC_ARG_WITH(system-boost-for-build,
+ AS_HELP_STRING([--with-system-boost-for-build],
+ [Use boost already on system for build tools (cross-compilation only).]))
+
+AC_ARG_WITH(system-cppunit-for-build,
+ AS_HELP_STRING([--with-system-cppunit-for-build],
+ [Use cppunit already on system for build tools (cross-compilation only).]))
+
+AC_ARG_WITH(system-db-for-build,
+ AS_HELP_STRING([--with-system-db-for-build],
+ [Use db already on system for build tools (cross-compilation only).]))
+
+AC_ARG_WITH(system-expat-for-build,
+ AS_HELP_STRING([--with-system-expat-for-build],
+ [Use expat already on system for build tools (cross-compilation only).]))
+
+AC_ARG_WITH(system-icu-for-build,
+ AS_HELP_STRING([--with-system-icu-for-build=yes/no/force],
+ [Use icu already on system for build tools (cross-compilation only).]))
+
+AC_ARG_WITH(system-libxml-for-build,
+ AS_HELP_STRING([--with-system-libxml-for-build],
+ [Use libxml/libxslt already on system for build tools (cross-compilation only).]))
+
+
+dnl ===================================================================
+dnl check for required programs (grep, awk, sed, bash)
+dnl ===================================================================
+
+pathmunge ()
+{
+ if test -n "$1"; then
+ if test "$build_os" = "cygwin"; then
+ PathFormat "$1"
+ new_path=`cygpath -u "$formatted_path"`
+ else
+ new_path="$1"
+ fi
+ if ! echo "$LO_PATH" | $EGREP -q "(^|:)$1($|:)"; then
+ if test "$2" = "after"; then
+ LO_PATH="$LO_PATH:$new_path"
+ else
+ LO_PATH="$new_path:$LO_PATH"
+ fi
+ fi
+ unset new_path
+ fi
+}
+
+AC_PROG_AWK
+AC_PATH_PROG( AWK, $AWK)
+if test -z "$AWK"; then
+ AC_MSG_ERROR([install awk to run this script])
+fi
+
+AC_PATH_PROG(BASH, bash)
+if test -z "$BASH"; then
+ AC_MSG_ERROR([bash not found in \$PATH])
+fi
+AC_SUBST(BASH)
+
+AC_MSG_CHECKING([for GNU or BSD tar])
+for a in $GNUTAR gtar gnutar tar /usr/sfw/bin/gtar; do
+ $a --version 2> /dev/null | egrep "GNU|bsdtar" 2>&1 > /dev/null
+ if test $? -eq 0; then
+ GNUTAR=$a
+ break
+ fi
+done
+AC_MSG_RESULT($GNUTAR)
+if test -z "$GNUTAR"; then
+ AC_MSG_ERROR([not found. install GNU or BSD tar.])
+fi
+AC_SUBST(GNUTAR)
+
+AC_MSG_CHECKING([for tar's option to strip components])
+$GNUTAR --help 2> /dev/null | egrep "bsdtar|strip-components" 2>&1 >/dev/null
+if test $? -eq 0; then
+ STRIP_COMPONENTS="--strip-components"
+else
+ $GNUTAR --help 2> /dev/null | egrep "strip-path" 2>&1 >/dev/null
+ if test $? -eq 0; then
+ STRIP_COMPONENTS="--strip-path"
+ else
+ STRIP_COMPONENTS="unsupported"
+ fi
+fi
+AC_MSG_RESULT($STRIP_COMPONENTS)
+if test x$STRIP_COMPONENTS == xunsupported; then
+ AC_MSG_ERROR([you need a tar that is able to strip components.])
+fi
+AC_SUBST(STRIP_COMPONENTS)
+
+dnl It is useful to have a BUILD_TYPE keyword to distinguish "normal"
+dnl desktop OSes from "mobile" ones.
+
+dnl We assume that a non-DESKTOP build type is also a non-NATIVE one.
+dnl In other words, that when building for an OS that is not a
+dnl "desktop" one but a "mobile" one, we are always cross-compiling.
+
+dnl Note the direction of the implication; there is no assumption that
+dnl cross-compiling would imply a non-desktop OS.
+
+if test $_os != iOS -a $_os != Android; then
+ BUILD_TYPE="$BUILD_TYPE DESKTOP"
+fi
+
+dnl Decide whether to build database connectivity stuff (including
+dnl Base) or not. We probably don't want to on non-desktop OSes.
+
+if test -z "$enable_database_connectivity"; then
+ # Do enable database connectivity for Android for now as otherwise
+ # we presumably will get linking errors... We are not as far in
+ # the work for iOS, so we might as well disable it for iOS already.
+
+ # And actually, do enable it for iOS, too. Let's get back to
+ # figuring out what to do with this later, if ever.
+
+ # (Note that with "enable", I mean "enable building the related
+ # code". Very likely little of it will make any sense at run-time
+ # on Android or iOS and won't even be shipped with/linked into any
+ # app.)
+
+ #if test $_os != iOS; then
+ enable_database_connectivity=yes
+ #fi
+fi
+
+DISABLE_DBCONNECTIVITY=''
+if test "$enable_database_connectivity" = yes; then
+ BUILD_TYPE="$BUILD_TYPE DBCONNECTIVITY"
+else
+ DISABLE_DBCONNECTIVITY='TRUE'
+ SCPDEFS="$SCPDEFS -DDISABLE_DBCONNECTIVITY"
+fi
+AC_SUBST(DISABLE_DBCONNECTIVITY)
+
+if test -z "$enable_extensions"; then
+ # For iOS disable extensions unless specifically overridden with
+ # --enable-extensions.
+ if test $_os != iOS; then
+ enable_extensions=yes
+ fi
+fi
+
+DISABLE_EXTENSIONS=''
+if test "$enable_extensions" = yes; then
+ BUILD_TYPE="$BUILD_TYPE EXTENSIONS"
+else
+ DISABLE_EXTENSIONS='TRUE'
+fi
+AC_SUBST(DISABLE_EXTENSIONS)
+
+if test -z "$enable_scripting"; then
+ # Disable scripting for iOS unless specifically overridden
+ # with --enable-scripting.
+ if test $_os != iOS; then
+ enable_scripting=yes
+ fi
+fi
+
+DISABLE_SCRIPTING=''
+if test "$enable_scripting" = yes; then
+ BUILD_TYPE="$BUILD_TYPE SCRIPTING"
+else
+ DISABLE_SCRIPTING='TRUE'
+ SCPDEFS="$SCPDEFS -DDISABLE_SCRIPTING"
+fi
+AC_SUBST(DISABLE_SCRIPTING)
+
+if test $_os = iOS -o $_os = Android; then
+ # Disable dynamic_loading always for iOS and Android
+ enable_dynamic_loading=no
+elif test -z "$enable_dynamic_loading"; then
+ # Otherwise enable it unless speficically disabled
+ enable_dynamic_loading=yes
+fi
+
+DISABLE_DYNLOADING=''
+if test "$enable_dynamic_loading" = yes; then
+ BUILD_TYPE="$BUILD_TYPE DYNLOADING"
+else
+ DISABLE_DYNLOADING='TRUE'
+ SCPDEFS="$SCPDEFS -DDISABLE_DYNLOADING"
+fi
+AC_SUBST(DISABLE_DYNLOADING)
+
+if test -n "${with_solver_and_workdir_root}"; then
+ if ! test -d ${with_solver_and_workdir_root}; then
+ AC_MSG_ERROR([directory does not exist: ${with_solver_and_workdir_root}])
+ fi
+ PathFormat "${with_solver_and_workdir_root}"
+ # IsValidFilePath in /sal/osl/w32/file_url.cxx rejects "X:\\" breaking idlc
+ if echo ${formatted_path} | $GREP -q '/$'; then
+ SOLARVER=${formatted_path}solver
+ else
+ SOLARVER=${formatted_path}/solver
+ fi
+else
+ SOLARVER=${SRC_ROOT}/solver
+fi
+
+dnl ===================================================================
+dnl Extra check for Windows. Cygwin builds need gcc to build dmake
+dnl although MSVC is used to build other build-time tools and
+dnl LibreOffice itself.
+dnl ===================================================================
+if test "$build_os" = "cygwin"; then
+ AC_MSG_CHECKING([for Cygwin gcc/g++])
+ if which gcc > /dev/null && which g++ > /dev/null; then
+ AC_MSG_RESULT([found])
+ else
+ AC_MSG_ERROR([Cygwin gcc and g++ are needed, please install them.])
+ fi
+fi
+
+# remenber SYSBASE value
+AC_SUBST(SYSBASE)
+
+dnl ===================================================================
+dnl Checks if ccache is available
+dnl ===================================================================
+if test "$enable_ccache" = "yes" -o \( "$enable_ccache" = "" -a "$enable_icecream" != "yes" \); then
+ case "%$CC%$CXX%" in
+ # If $CC and/or $CXX already contain "ccache" (possibly suffixed with some verison number etc),
+ # assume that's good then
+ *%ccache[[-_' ']]*|*/ccache[[-_' ']]*)
+ AC_MSG_NOTICE([ccache seems to be included in a pre-defined CC and/or CXX])
+ ;;
+ *)
+ AC_PATH_PROG([CCACHE],[ccache],[not found])
+ if test "$CCACHE" = "not found"; then
+ CCACHE=""
+ else
+ # Need to check for ccache version: otherwise prevents
+ # caching of the results (like "-x objective-c++" for Mac)
+ if test $_os = Darwin -o $_os = iOS; then
+ # Check ccache version
+ AC_MSG_CHECKING([whether version of ccache is suitable])
+ CCACHE_VERSION=`"$CCACHE" -V | "$AWK" '/^ccache version/{print $3}'`
+ CCACHE_NUMVER=`echo $CCACHE_VERSION | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
+ if test "$CCACHE_VERSION" = "2.4_OOo" -o "$CCACHE_NUMVER" -ge "030100"; then
+ AC_MSG_RESULT([yes, $CCACHE_VERSION])
+ else
+ AC_MSG_RESULT([no, $CCACHE_VERSION])
+ CCACHE=""
+ fi
+ fi
+ fi
+ ;;
+ esac
+else
+ CCACHE=""
+fi
+
+if test "$CCACHE" != ""; then
+ ccache_size_msg=$([ccache -s | tail -n 1 | sed 's/^[^0-9]*//' | sed -e 's/\.[0-9]*//'])
+ ccache_size=$(echo "$ccache_size_msg" | grep "G" | sed -e 's/G.*$//')
+ if test "$ccache_size" = ""; then
+ ccache_size=$(echo "$ccache_size_msg" | grep "M" | sed -e 's/\ M.*$//')
+ if test "$ccache_size" = ""; then
+ ccache_size=0
+ fi
+ # we could not determine the size or it was less than 1GB -> disable auto-ccache
+ if test $ccache_size -lt 1024; then
+ CCACHE=""
+ AC_MSG_WARN([ccache's cache size is less than 1GB using it is counter-producive: Disabling auto-ccache detection])
+ add_warning "ccache's cache size is less than 1GB using it is counter-producive: auto-ccache detection disabled"
+ else
+ # warn that ccache may be too small for debug build
+ AC_MSG_WARN([ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build])
+ add_warning "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build"
+ fi
+ else
+ if test $ccache_size -lt 5; then
+ #warn that ccache may be too small for debug build
+ AC_MSG_WARN([ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build])
+ add_warning "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build"
+ fi
+ fi
+fi
+
+dnl ===================================================================
+dnl Checks for C compiler,
+dnl The check for the C++ compiler is later on.
+dnl ===================================================================
+GCC_HOME_SET="true"
+AC_MSG_CHECKING([gcc home])
+if test -z "$with_gcc_home"; then
+ if test "$enable_icecream" = "yes"; then
+ if test -d "/usr/lib/icecc/bin"; then
+ GCC_HOME="/usr/lib/icecc/"
+ else
+ GCC_HOME="/opt/icecream/"
+ fi
+ else
+ GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
+ GCC_HOME_SET="false"
+ fi
+else
+ GCC_HOME="$with_gcc_home"
+fi
+AC_MSG_RESULT($GCC_HOME)
+AC_SUBST(GCC_HOME)
+
+if test "$GCC_HOME_SET" = "true"; then
+ if test -z "$CC"; then
+ CC="$GCC_HOME/bin/gcc"
+ fi
+ if test -z "$CXX"; then
+ CXX="$GCC_HOME/bin/g++"
+ fi
+fi
+
+dnl The following checks for gcc, cc and then cl (if it weren't guarded for win32)
+if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
+ AC_PROG_CC
+fi
+
+COMPATH=`dirname "$CC"`
+if test "$COMPATH" = "."; then
+ AC_PATH_PROGS(COMPATH, $CC)
+ dnl double square bracket to get single because of M4 quote...
+ COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`
+fi
+COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`
+
+dnl ===================================================================
+dnl Test the Solaris compiler version
+dnl ===================================================================
+if test "$_os" = "SunOS"; then
+ if test "$CC" = "cc"; then
+ AC_PATH_PROGS(_cc, cc)
+ COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
+ AC_MSG_CHECKING([the SunStudio C/C++ compiler version])
+ dnl cc -V outputs to standard error!!!!
+ _sunstudio_string=`$CC -V 2>&1 | grep '^cc' | $SED -e 's/.* C //'`
+ _sunstudio_version=`echo $_sunstudio_string | $AWK '{ print $1 }'`
+ _sunstudio_major=`echo $_sunstudio_version | $AWK -F. '{ print $1 }'`
+ if test "$_sunstudio_major" != "5"; then
+ AC_MSG_ERROR([found version "$_sunstudio_version", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler])
+ else
+ _sunstudio_minor=`echo $_sunstudio_version | $AWK -F. '{ if ($2 == 5) print "true"; else if ($2 == 7) print "true"; else if ($2 == 8) print "true"; else if ($2 == 9) print "true"; else print "false" }'`
+ if test "$_sunstudio_minor" = "false"; then
+ AC_MSG_ERROR([found version "$_sunstudio_version", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler])
+ else
+ dnl compiler will do
+ AC_MSG_RESULT([checked])
+ fi
+ fi
+ fi
+fi
+
+
+dnl ===================================================================
+dnl Check / find MacOSX SDK and compiler, version checks
+dnl ===================================================================
+if test "$_os" = "Darwin"; then
+
+ if test "$build_cpu" = i386 -a "$host_cpu" = powerpc; then
+ # Cross-compiling for PPC from Intel
+ arch='-arch ppc'
+ elif test "$enable_64_bit" = "" -o "$enable_64_bit" = "no"; then
+ bitness=-m32
+ else
+ bitness=-m64
+ BITNESS_OVERRIDE=64
+ fi
+
+ # If no --with-macosx-sdk option is given, first look for the 10.4u
+ # SDK (which is distributed with the obsolete Xcode 3), then the
+ # 10.6, 10.7 and 10.8 SDKs, in that order. (Don't bother looking
+ # for the 10.5 SDK, unlikely somebody would have that but not
+ # 10.6, I think.) If not found in some (old) default locations,
+ # try the xcode-select tool.
+
+ # The intent is that for "most" Mac-based developers, a suitable
+ # SDK will be found automatically without any configure options.
+
+ # For developers still using Xcode 2 or 3, in /Developer, either
+ # because it is the only Xcode they have, or they have that in
+ # addition to Xcode 4 in /Applications/Xcode.app, the 10.4 SDK
+ # should be found.
+
+ # For developers with a current Xcode 4 installed from the Mac App
+ # Store, the 10.6, 10.7 or 10.8 SDK should be found.
+
+ AC_MSG_CHECKING([what Mac OS X SDK to use])
+
+ if test -z "$with_macosx_sdk"; then
+ if test -d /Developer/SDKs/MacOSX10.4u.sdk; then
+ with_macosx_sdk=10.4
+ elif test -d /Developer-old/SDKs/MacOSX10.4u.sdk; then
+ with_macosx_sdk=10.4
+ elif test -d /Xcode3/SDKs/MacOSX10.4u.sdk; then
+ with_macosx_sdk=10.4
+ elif test -d /Developer/SDKs/MacOSX10.6.sdk; then
+ with_macosx_sdk=10.6
+ elif test -d /Developer/SDKs/MacOSX10.7.sdk; then
+ with_macosx_sdk=10.7
+ elif test -x /usr/bin/xcode-select; then
+ xcodepath="`xcode-select -print-path`"
+ if test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"; then
+ with_macosx_sdk=10.6
+ elif test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"; then
+ with_macosx_sdk=10.7
+ elif test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"; then
+ with_macosx_sdk=10.8
+ fi
+ fi
+ if test -z "$with_macosx_sdk"; then
+ AC_MSG_ERROR([Could not figure out the location of a Mac OS X SDK and its version])
+ fi
+ fi
+
+ case $with_macosx_sdk in
+ 10.4)
+ MACOSX_SDK_VERSION=1040
+ ;;
+ 10.5)
+ MACOSX_SDK_VERSION=1050
+ ;;
+ 10.6)
+ MACOSX_SDK_VERSION=1060
+ ;;
+ 10.7)
+ MACOSX_SDK_VERSION=1070
+ ;;
+ 10.8)
+ MACOSX_SDK_VERSION=1080
+ ;;
+ *)
+ AC_MSG_ERROR([with-macosx-sdk $with_macosx_sdk is not a supported value, supported value are 10.4--8])
+ ;;
+ esac
+
+ # Next find it (again, if we deduced its version above by finding
+ # it... but we need to look for it once more in case
+ # --with-macosx-sdk was given so that the aboce search did not
+ # happen).
+ if test -z "$MACOSX_SDK_PATH"; then
+ case $with_macosx_sdk in
+ 10.4)
+ if test -d /Developer/SDKs/MacOSX10.4u.sdk; then
+ MACOSX_SDK_PATH=/Developer/SDKs/MacOSX10.4u.sdk
+ elif test -d /Developer-old/SDKs/MacOSX10.4u.sdk; then
+ MACOSX_SDK_PATH=/Developer-old/SDKs/MacOSX10.4u.sdk
+ elif test -d /Xcode3/SDKs/MacOSX10.4u.sdk; then
+ MACOSX_SDK_PATH=/Xcode3/SDKs/MacOSX10.4u.sdk
+ fi
+ ;;
+ 10.6|10.7|10.8)
+ if test -d /Developer/SDKs/MacOSX$with_macosx_sdk.sdk; then
+ MACOSX_SDK_PATH=/Developer/SDKs/MacOSX$with_macosx_sdk.sdk
+ elif test -x /usr/bin/xcode-select; then
+ xcodepath="`xcode-select -print-path`"
+ if test -d "$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk"; then
+ MACOSX_SDK_PATH="$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$with_macosx_sdk.sdk"
+ fi
+ fi
+ ;;
+ esac
+ if test -z "$MACOSX_SDK_PATH"; then
+ AC_MSG_ERROR([Could not figure out the location of Mac OS X $with_macosx_sdk SDK])
+ fi
+ fi
+ AC_MSG_RESULT([SDK $with_macosx_sdk at $MACOSX_SDK_PATH])
+
+ if test "$with_macosx_version_min_required" = ""; then
+ case $with_macosx_sdk in
+ 10.4|10.5)
+ with_macosx_version_min_required="10.4";;
+ *)
+ with_macosx_version_min_required="10.6";;
+ esac
+ fi
+
+ if test "$with_macosx_version_max_allowed" = ""; then
+ with_macosx_version_max_allowed="$with_macosx_sdk"
+ fi
+
+ FRAMEWORKSHOME="$MACOSX_SDK_PATH/System/Library/Frameworks"
+ MACOSX_DEPLOYMENT_TARGET="$with_macosx_version_min_required"
+
+ case "$with_macosx_version_min_required" in
+ 10.4)
+ MAC_OS_X_VERSION_MIN_REQUIRED="1040"
+ ;;
+ 10.5)
+ MAC_OS_X_VERSION_MIN_REQUIRED="1050"
+ ;;
+ 10.6)
+ MAC_OS_X_VERSION_MIN_REQUIRED="1060"
+ ;;
+ 10.7)
+ MAC_OS_X_VERSION_MIN_REQUIRED="1070"
+ ;;
+ 10.8)
+ MAC_OS_X_VERSION_MIN_REQUIRED="1080"
+ ;;
+ *)
+ AC_MSG_ERROR([with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.4--8])
+ ;;
+ esac
+
+ if test "$BITNESS_OVERRIDE" = 64; then
+ case $with_macosx_version_min_required in
+ 10.4|10.5)
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list