dnl -*- Mode: Autoconf; tab-width: 8; indent-tabs-mode: nil -*- dnl configure.in serves as input for the GNU autoconf package dnl in order to create a configure script. AC_INIT([LibreOffice],[3.5],[],[],[http://documentfoundation.org/]) AC_PREREQ([2.59]) save_CC=$CC save_CXX=$CXX BUILD_TYPE="LibO" SCPDEFS="" GIT_REPO_NAMES="" MINGW_EXTERNAL_DLLS="" if test -n "$SOLARENV" ; then AC_MSG_ERROR([You have sourced Env.Host.sh 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 if test "$cross_compiling" = "yes"; then CROSS_COMPILING=YES else CROSS_COMPILING= BUILD_TYPE="$BUILD_TYPE NATIVE" fi AC_SUBST(CROSS_COMPILING) if test "$build_os" = "cygwin"; then EXEEXT_FOR_BUILD=.exe SRC_ROOT=`pwd` SRC_ROOT=`cygpath -d "$SRC_ROOT"` SRC_ROOT=`cygpath -u "$SRC_ROOT"` else EXEEXT_FOR_BUILD= SRC_ROOT=`pwd` fi AC_SUBST(SRC_ROOT) AC_SUBST(EXEEXT_FOR_BUILD) cat /dev/null > warn if test "z$EUID" = "z0" -a "z`uname -o 2>/dev/null`" = "zCygwin"; 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 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_fontconfig=yes case "$host_os" in solaris*) test_gtk=yes build_gstreamer=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 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_randr=no test_xrender=no test_freetype=no test_fontconfig=no _os=WINNT # 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 if test "$host_cpu" = "arm"; then _os=iOS test_gtk=no test_cups=no else _os=Darwin fi enable_systray=no ;; freebsd*) test_gtk=yes build_gstreamer=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 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_kde=yes test_freetype=yes PTHREAD_CFLAGS="-D_THREAD_SAFE" PTHREAD_LIBS="-pthread" _os=OpenBSD ;; dragonfly*) test_gtk=yes build_gstreamer=yes test_kde=yes test_kde4=yes test_freetype=yes PTHREAD_LIBS="-pthread" _os=DragonFly ;; linux-androideabi*) build_gstreamer=no test_cups=no test_fontconfig=no test_freetype=no test_gtk=no test_kde=no test_kde4=no test_randr=no test_xrender=no test_unix_quickstarter=no _os=Android # Make sure env vars pointing to where to find the cross-build # toolchain are set. There aren't really any sensible # guesstimates. for var in CC CXX AR NM OBJDUMP RANLIB STRIP; do if test -z `eval echo '$'$var`; then AC_MSG_ERROR([You need to set the $var environment variable in a cross-compilation for Android. See README.cross for an example.]) fi done ;; *) 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(WITH_MINGW) AC_SUBST(OSVERSION) AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_LIBS) ############################################################################### # 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 wether the requiring feature is enabled or not. # All this options change anything only with --enable-extension-integration. AC_ARG_ENABLE(extension-integration, AS_HELP_STRING([--disable-extension-integration], [Disable integration of the builded extensions to 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(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-lightproof, AS_HELP_STRING([--enable-ext-lightproof], [Enable the Lightproof extension. The enable switch can contain only the desired languages: --enable-lightproof="en hu ru"]), [enable_ext_lightproof="$enableval"], [enable_ext_lightproof=no] ) 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-postgresql-sdbc, AS_HELP_STRING([--enable-ext-postgresql-sdbc], [Enable the build of the PostgreSQL-SDBC 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], [Enable support for scripts in BeanShell.]) ) AC_ARG_ENABLE(ext-scripting-javascript, AS_HELP_STRING([--enable-ext-scripting-javascript], [Enable support for scripts in JavaScript.]) ) 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 used for better performance.]) ) AC_ARG_ENABLE(graphite, AS_HELP_STRING([--enable-graphite], [Enables the compilation of Graphite smart font rendering.]) ) AC_ARG_ENABLE(ldap, AS_HELP_STRING([--disable-ldap], [Disables the use of LDAP backend via Netscape/Mozilla or OpenLDAP LDAP SDK]) ) 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], [EXPERIMENTAL: Enables precompiled header support for C++.]) ) AC_ARG_ENABLE(mozilla, AS_HELP_STRING([--disable-mozilla], [LibreOffice usually includes a strangely hacked up Mozilla binary for your platform, to build without 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(activex_component, AS_HELP_STRING([--disable-activex-component], [Remove support for ActiveX embedding of LibreOffice.]) ) 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([--disable-mathmldtd], [Disable mathmldtd (useful for distributions that want to avoid packaging it).]) ) 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 symbols in output. WARNING - a complete build needs 8 Gb of space and takes much longer (enables -g compiler flag).]) [ Enabling symbols disables the stripping of the solver (--disable-strip-solver). ], ,) AC_ARG_ENABLE(strip-solver, AS_HELP_STRING([--disable-strip-solver], [Disable the stripping of the solver. By default the solver is stripped unless a build with debugging symbols (--enable-symbols) is requested.]) [ This switch allows to override this setting. ], ,) 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(debug, AS_HELP_STRING([--enable-debug], [Include debugging symbols from --enable-symbols plus extra debugging code. 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".])) 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])) 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=], [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([--disable-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. ],,enable_cairo_canvas=yes) AC_ARG_ENABLE(librsvg, AS_HELP_STRING([--enable-librsvg=], [Enables or disables use of librsvg to render SVG at run-time. Also specificed what librsvg to use. 'auto' is the default.])) 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([--enable-dbus], [Determines whether to enable presentation mode screensaver control under GNOME via DBUS.]), ,enable_dbus=no) 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(static-gtk, AS_HELP_STRING([--enable-static-gtk], [Modules that are linked against GTK+ libraries use the static libraries instead of the dynamic ones. (Enables -Bstatic linker flag for GTK+ libraries.)]), ,) 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(xmlsec, AS_HELP_STRING([--disable-xmlsec], [Whether to enable XMLsec for open document signing.]), ) 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(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_libpng=yes) AC_ARG_ENABLE(binfilter, AS_HELP_STRING([--enable-binfilter], [Enable legacy binary file formats filters build.]), ,enable_binfilter=no ) AC_ARG_ENABLE(ugly, AS_HELP_STRING([--enable-ugly], [Enables ugly pieces of functionality.]), ,enable_ugly=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([--disable-gstreamer], [Disable building the gstreamer avmedia backend.]), ,enable_gstreamer=yes) AC_ARG_ENABLE(neon, AS_HELP_STRING([--disable-neon], [Disable neon and the compilation of webdav binding.]), ,) 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(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(cl-x64, AS_HELP_STRING([--enable-cl-x64], [Build a 64-bit LibreOffice using the Microsoft C/C++ x64 compiler.]), ,) 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(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).]), ,) 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(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=], [Specify path to tarfiles manually.]), TARFILE_LOCATION=$withval , ) AC_ARG_WITH(linked-git, AS_HELP_STRING([--with-linked-git=], [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(openldap, AS_HELP_STRING([--with-openldap], [Enables the use of the OpenLDAP LDAP SDK instead of the Netscape/Mozilla one.]), ,) 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 optionly 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: *default, *crystal, *hicontrast, *oxygen, *tango, classic, industrial.]), ,) 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).]), ,) 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 (except for the db case where --with-system-db *has to* imply using the db.jar from there, too).]), ,) AC_ARG_WITH(system-stdlibs, AS_HELP_STRING([--with-system-stdlibs], [Use libstdc++/libgcc_s already on system.]),, [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-version, AS_HELP_STRING([--with-mozilla-version], [Choose which version of Mozilla to use while building Mozilla. (default=1.7.5) Note that not all versions are supported.]), ,) 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([--with-system-dicts], [Use dictionaries from system paths- Specify them via --with-{dict,hyph,thes}-path=/path if you want to override the default ones.]), ,) 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.]),, [if test "$_os" != "WINNT"; then with_system_zlib=yes else with_system_zlib="$with_system_libs" fi]) 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.]),, [if test "$_os" = "Linux"; then with_system_jpeg=yes else with_system_jpeg="$with_system_libs" fi]) 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-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.]),, [if test "$_os" = "Darwin"; then with_system_libxml=yes else with_system_libxml="$with_system_libs" fi]) 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-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-lucene, AS_HELP_STRING([--with-system-lucene], [Use Lucene already on system.]),, [with_system_lucene="$with_system_jars"]) 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(lucene-core-jar, AS_HELP_STRING([--with-lucene-core-jar=JARFILE], [Specify path to jarfile manually.]), LUCENE_CORE_JAR=$withval) AC_ARG_WITH(lucene-analyzers-jar, AS_HELP_STRING([--with-lucene-analyzers-jar=JARFILE], [Specify path to jarfile manually.]), LUCENE_ANALYZERS_JAR=$withval ,) 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= ], ,) 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 extension. 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= ], ,) AC_ARG_WITH(system-hsqldb, AS_HELP_STRING([--with-system-hsqldb], [Use hsqldb already on system.]),, [with_system_hsqldb="$with_system_jars"]) AC_ARG_WITH(hsqldb-jar, AS_HELP_STRING([--with-hsqldb-jar=JARFILE], [Specify path to jarfile manually.]), HSQLDB_JAR=$withval) 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_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.]),, [with_system_saxon="$with_system_jars"]) 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-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.]),, [if test "$_os" = "Darwin"; then with_system_curl=yes else with_system_curl="$with_system_libs" fi]) 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-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=. Supported are: libxul (default), xulrunner, firefox, seamonkey, mozilla.]), 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="$with_system_libs"]) AC_ARG_WITH(linker-hash-style, AS_HELP_STRING([--with-linker-hash-style], [Use linker with --hash-style=