[Libreoffice-commits] core.git: Branch 'aoo/trunk' - configure.in
Pedro Giffuni
pfg at apache.org
Sun Sep 13 17:08:12 PDT 2015
configure.in | 7377 -----------------------------------------------------------
1 file changed, 7377 deletions(-)
New commits:
commit e4ce4bec980c151c048d6ef0decf441293ab41d5
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Sep 13 20:23:51 2015 +0000
mv configure.in configure.ac
This takes care of a deprecation warning.
Documented:
http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Writing-Autoconf-Input.html#Writing-Autoconf-Input
diff --git a/configure.in b/configure.in
deleted file mode 100644
index 20ab2e2..0000000
--- a/configure.in
+++ /dev/null
@@ -1,7377 +0,0 @@
-dnl * *************************************************************
-dnl *
-dnl * Licensed to the Apache Software Foundation (ASF) under one
-dnl * or more contributor license agreements. See the NOTICE file
-dnl * distributed with this work for additional information
-dnl * regarding copyright ownership. The ASF licenses this file
-dnl * to you under the Apache License, Version 2.0 (the
-dnl * "License"); you may not use this file except in compliance
-dnl * with the License. You may obtain a copy of the License at
-dnl *
-dnl * http://www.apache.org/licenses/LICENSE-2.0
-dnl *
-dnl * Unless required by applicable law or agreed to in writing,
-dnl * software distributed under the License is distributed on an
-dnl * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-dnl * KIND, either express or implied. See the License for the
-dnl * specific language governing permissions and limitations
-dnl * under the License.
-dnl *
-dnl * *************************************************************
-AC_REVISION( $Revision: 1.290 $ )
-AC_PREREQ(2.50)
-AC_INIT()
-echo "$@" >config.parms
-AC_ARG_WITH(dmake-path,
-[ --with-dmake-path=<PATH TO EXECUTABLE> Specify the location of dmake ],
-[ DMAKE_PATH="$withval"
-])
-AC_ARG_WITH(dmake-url,
-[ --with-dmake-url=<URL> Specify the location of downloadable dmake source code. For example:
- http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
- Note that dmake is under GPL license.],
-[ DMAKE_URL="$withval"
-])
-AC_ARG_WITH(packager-list,
-[ --with-packager-list=<PATH TO PACK LIST> Specify a file to drive the packaging process.
- The file must follow the format explained in
- instsetoo_native/util/pack.lst
-],,)
-AC_ARG_WITH(gnu-patch,
-[ --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD
-],,)
-AC_ARG_WITH(gnu-cp,
-[ --with-gnu-cp Specify location of GNU cp on Solaris
-],,)
-AC_ARG_WITH(gperf,
-[ --with-gperf Specify location of gperf on Solaris or FreeBSD
-],,)
-AC_ARG_ENABLE(graphite,
-[ --enable-graphite Enables the compilation of Graphite smart font rendering
-],,)
-AC_ARG_WITH(system-graphite,
-[ --with-system-graphite use graphite library already installed on system
-],,)
-AC_ARG_WITH(system-apache-commons,
-[ --with-system-apache-commons use apache-commons jar files already installed on system
-],,)
-AC_ARG_ENABLE(online-update,
-[ --disable-online-update Disables the Online Update feature.
-],,enable_online_update=yes)
-AC_ARG_ENABLE(unit-tests,
-[ --disable-unit-tests Disables default unit tests (eg. unit tests using Google test, ...).
-],,enable_unit_tests=yes)
-AC_ARG_ENABLE(ldap,
-[ --disable-ldap Disables the use of LDAP backend via OpenLDAP
-],,)
-AC_ARG_ENABLE(fetch-external,
-[ --disable-fetch-external Disables fetching external tarballs from web sources.
-],,)
-AC_ARG_WITH(external-tar,
-[ --with-external-tar=<TARFILE PATH> Specify path to tarfiles manually ],
-[ TARFILE_LOCATION="$withval"
-])
-AC_ARG_WITH(openldap,
-[ --with-openldap Enables the use of the OpenLDAP
-],,)
-AC_ARG_ENABLE(lockdown,
-[ --enable-lockdown Enables the gconf integration work in OOo
-],,)
-AC_ARG_ENABLE(vba,
-[ --disable-vba disables the vba compatibility feature
-],,)
-AC_ARG_WITH(vba-package-format,
-[ --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_ENABLE(pch,
-[ --enable-pch EXPERIMENTAL: Enables precompiled header support for C++.
-],,)
-AC_ARG_WITH(fonts,
-[ --without-fonts OOo 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,
-[ --without-ppds Removes Postscript Printer definition files from
- Apache Openoffice 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,
-[ --without-afms Removes bitmap font files from Apache Openoffice
- installation set, for people building for specific
- distributions where AFM files or TrueType Fonts
- are known to be available.
-],,)
-AC_ARG_ENABLE(epm,
-[ --disable-epm AOO includes self-packaging code, that requires
- epm, however epm is useless for large scale
- package building.
-],,enable_epm="yes")
-AC_ARG_WITH(epm,
-[ --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(epm-url,
-[ --with-epm-url=<URL> Specify the location of downloadable epm 3.7 source code. For example:
- http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
- or
- http://www.msweet.org/files/project2/epm-3.7-source.tar.gz
- Note that epm is under GPL license.
-],[ EPM_URL="$withval"
-])
-AC_ARG_WITH(package-format,
-[ --with-package-format specify package format(s) for OOo installsets.
- Default is "normal" one of the OS/Distribution.
-
- Usage: --with-package-format="foo bar"
-],,)
-AC_ARG_ENABLE(odk,
-[ --disable-odk OO.o includes an ODK, office development kit
- which some packagers may with to build without
-],,enable_odk="yes")
-AC_ARG_ENABLE(mathmldtd,
-[ --disable-mathmldtd disable mathmldtd
- (useful for distributions that want to avoid packaging
- it)
-],,enable_mathmldtd="yes")
-AC_ARG_ENABLE(evolution2,
-[ --enable-evolution2 Allows the built-in evolution 2 addressbook
- connectivity build to be enabled.
-],,)
-AC_ARG_WITH(system-stdlibs,
-[ --with-system-stdlibs use libstdc++/libgcc_s already on system
-],,)
-AC_ARG_ENABLE(cups,
-[ --disable-cups disable CUPS support (for printing on UNIX)
-],,enable_cups=yes)
-AC_ARG_ENABLE(fontconfig,
-[ --disable-fontconfig disable support for the fontconfig library
-],,enable_fontconfig=yes)
-AC_ARG_ENABLE(directx,
-[ --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)
-],,enable_directx=yes)
-AC_ARG_ENABLE(activex,
-[ --disable-activex Disable the use of ActiveX for windows build.
- This switch is mandatory when using VC++ 2005/2008 Express.
- Alternatively you can use the Windows Driver Kit (WDK) and
- configure with the following switches:
- --with-atl-include-dir=$WDK_HOME\inc\atl71
- --with-atl-lib-dir=$WDK_HOME\lib\ATL\i386
- --with-mfc-include-dir=$WDK_HOME\inc\mfc42
- --with-mfc-lib-dir=$WDK_HOME\lib\Mfc\i386
-],,)
-
-AC_ARG_ENABLE(atl,
-[ --disable-atl Disable the use of ATL for windows build.
- This switch is mandatory when using VC++ 2005/2008 Express.
- Alternatively you can use the Windows Driver Kit (WDK) and
- configure with the following switches:
- --with-atl-include-dir=$WDK_HOME\inc\atl71
- --with-atl-lib-dir=$WDK_HOME\lib\ATL\i386
- --with-mfc-include-dir=$WDK_HOME\inc\mfc42
- --with-mfc-lib-dir=$WDK_HOME\lib\Mfc\i386
-],,)
-
-AC_ARG_WITH(atl-include-dir,
-[ --with-atl-include-dir Path to ATL include directory for windows build.
- This switch is mandatory when using VC++ 2008 Express
- and configuring with ATL/ActiveX enabled.
- You can use the Windows Driver Kit (WDK) and
- configure with the following switch:
- --with-atl-include-dir=$WDK_HOME\inc\atl71
-],,)
-
-AC_ARG_WITH(atl-lib-dir,
-[ --with-atl-lib-dir Path to ATL libraries directory for windows build.
- This switch is mandatory when using VC++ 2008 Express
- and configuring with ATL/ActiveX enabled.
- You can use the Windows Driver Kit (WDK) and
- configure with the following switch:
- --with-atl-lib-dir=$WDK_HOME\lib\ATL\i386
-],,)
-
-AC_ARG_WITH(mfc-include-dir,
-[ --with-mfc-include-dir Path to MFC include directory for windows build.
- This switch is mandatory when using VC++ 2008 Express
- and configuring with ATL/ActiveX enabled.
- You can use the Windows Driver Kit (WDK) and
- configure with the following switch:
- --with-mfc-include-dir=$WDK_HOME\inc\mfc42
-],,)
-
-AC_ARG_WITH(mfc-lib-dir,
-[ --with-mfc-lib-dir Path to MFC libraries directory for windows build.
- This switch is mandatory when using VC++ 2008 Express
- and configuring with ATL/ActiveX enabled.
- You can use the Windows Driver Kit (WDK) and
- configure with the following switch:
- --with-mfc-lib-dir=$WDK_HOME\lib\Mfc\i386
-],,)
-
-
-AC_ARG_ENABLE(symbols,
-[ --enable-symbols Include debugging symbols in output.
- WARNING - a complete build needs 8 Gb of space and
- takes much longer. (enables -g compiler flag)
-
- --enable-symbols=SMALL sets the gcc -g1 setting
- which is smaller.
-
- Enabling symbols disables the stripping of the solver
- (--disable-strip-solver).
-],,)
-AC_ARG_ENABLE(strip-solver,
-[ --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,
-[ --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,
-[ --enable-debug Include debugging symbols from --enable-symbols
- plus extra debugging code. Extra large build!
- (enables -g compiler flag and dmake debug=true)
-],,)
-AC_ARG_ENABLE(dbgutil,
-[ --enable-dbgutil Include additional debugging utilities, such as
- assertions, object counting, etc. Larger build.
- Independent from --enable-debug
-],,)
-AC_ARG_ENABLE(crashdump,
-[ --enable-crashdump Enable the crashdump feature code.
-],,)
-AC_ARG_ENABLE(cl-standard,
-[ --enable-cl-standard For Microsoft C/C++ compiler users, use non-optimizing
- standard compiler. ( This just disables optimization
- options and therefore removes a lot of warnings when
- using the cheaper standard compiler. )
-],,)
-AC_ARG_ENABLE(win-x64-shellext,
-[ --enable-win-x64-shellext Enable the build/usage of Windows 64bit shell extensions.
- These extension are used for the system integration on a
- Windows 64bit systems. For example supporting the search
- in ODF files with the standard Windows search feature.
-],,)
-AC_ARG_ENABLE(gtk,
-[ --disable-gtk Determines whether to use Gtk+ vclplug on platforms
- where Gtk+ is available.
-],,enable_gtk=yes)
-AC_ARG_ENABLE(gstreamer,
-[ --enable-gstreamer Determines whether to use the GStreamer media
- backend on platforms where GStreamer is available.
-],,enable_gstreamer=no)
-AC_ARG_ENABLE(systray,
-[ --disable-systray Determines whether to build the systray quickstarter.
-],,enable_systray=yes)
-AC_ARG_ENABLE(cairo,
-[ --enable-cairo Determines whether to use Cairo library on
- platforms where Cairo is available.
-],,enable_cairo=no)
-AC_ARG_WITH(system-cairo,
-[ --with-system-cairo Use Cairo libraries already on system
-],,)
-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(opengl,
-[ --enable-opengl Determines whether to build the OpenGL 3D slide
- transitions component
-],,enable_opengl=no)
-AC_ARG_ENABLE(dbus,
-[ --enable-dbus Determines whether to enable presentation mode
- screensaver control under GNOME via DBUS
-],,enable_dbus=no)
-AC_ARG_ENABLE(gconf,
-[ --disable-gconf Determines whether to use the GConf support
-],,enable_gconf=yes)
-AC_ARG_ENABLE(gnome-vfs,
-[ --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,
-[ --enable-gio Determines whether to use the GIO support
-],,enable_gio=no)
-AC_ARG_ENABLE(static-gtk,
-[ --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(layout,
-[ --enable-layout Enable the compilation and use of layout dialogs
-],,)
-AC_ARG_ENABLE(nss-module,
-[ --disable-nss-module Whether to use the NSS module that is used for xml-security
-],,enable_nss_module=yes)
-AC_ARG_ENABLE(kde,
-[ --enable-kde Determines whether to use Qt/KDE vclplug on platforms
- where Qt and KDE are available.
-],,)
-AC_ARG_ENABLE(kdeab,
-[ --disable-kdeab Disable the KDE address book support
-],,if test "$enable_kde" = "yes"; then enable_kdeab=yes; fi)
-AC_ARG_ENABLE(kde4,
-[ --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(rpath,
-[ --disable-rpath Disable the use of relative paths in shared libraries
-],,)
-AC_ARG_ENABLE(pam,
-[ --disable-pam Disable pam support.
-],,)
-AC_ARG_ENABLE(pam-link,
-[ --enable-pam-link link with libpam instead of dynamically open it
-],,)
-AC_ARG_ENABLE(crypt-link,
-[ --disable-crypt-link disable linking with libcrypt instead of dynamically
- open it (needed for ancient GNU/Linux distributions
- without crypt()/libcrypt)
-],,enable_crypt_link=yes)
-AC_ARG_ENABLE(xrender-link,
-[ --enable-xrender-link link with libXrender instead of dynamically open it
-],,)
-AC_ARG_ENABLE(randr,
-[ --disable-randr disable RandR support in the vcl project
-],,enable_randr=yes)
-AC_ARG_ENABLE(randr-link,
-[ --disable-randr-link disable linking with libXrandr, instead dynamically
- open it at runtime
-],,enable_randr_link=yes)
-AC_ARG_WITH(bundled-extension-blobs,
-[ --with-bundled-extension-blobs Whitespace separated list of files in the tarball directory
- that are to be bundled as-is for installation as extensions
- at the first program start. Make sure to only bundle extensions
- which can be installed without requiring a license dialog
- and comply with their distribution requirements by updating the
- files LICENSE_aggregated and NOTICE_aggregated accordingly
-],,)
-#AC_ARG_WITH(bundled-prereg-extensions,
-#[ --with-bundled-prereg-extensions Whitespace separated list of files in the tarball directory that
-# are to be bundled as pre-registered extensions. Make sure to only bundle
-# extensions which can be installed without requiring a license dialog
-#],,)
-AC_ARG_ENABLE(bundled-dictionaries,
-[ --enable-bundled-dictionaries Download dictionaries (spelling, hyphenation, thesaurus)
- according to main/extensions.lst and bundle them. Make sure to
- comply with their distribution requirements and update the
- files LICENSE_aggregated and NOTICE_aggregated accordingly
-],,enable_bundled_dictionaries=no)
-
-# Remove the following switches when not in release mode.
-AC_ARG_WITH(system-dicts,
-[ --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,
-[ --with-external-dict-dir Specify external dictionary dir
-],,)
-AC_ARG_WITH(external-hyph-dir,
-[ --with-external-hyph-dir Specify external hyphenation pattern dir
-],,)
-AC_ARG_WITH(external-thes-dir,
-[ --with-external-thes-dir Specify external thesaurus dir
-],,)
-# End of remove.
-
-
-AC_ARG_WITH(system-libs,
-[ --with-system-libs Use libs already on system -- enables all
- --with-system-* flags except
- odbc/sane/xrender-header(s)
-],,)
-AC_ARG_WITH(system-headers,
-[ --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/xrender-header(s)
-],,)
-AC_ARG_WITH(system-jars,
-[ --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-zlib,
-[ --with-system-zlib Use zlib already on system
-],,)
-AC_ARG_WITH(system-nss,
-[ --with-system-nss Use NSS already on system
-],,)
-AC_ARG_WITH(system-openssl,
-[ --with-system-openssl Use OpenSSL already on system
-],,)
-AC_ARG_WITH(system-jpeg,
-[ --with-system-jpeg Use jpeg already on system
-],,)
-AC_ARG_WITH(system-expat,
-[ --with-system-expat Use expat already on system
-],,)
-AC_ARG_WITH(system-libwpd,
-[ --with-system-libwpd Use libwpd already on system
-],,)
-AC_ARG_WITH(system-libxml,
-[ --with-system-libxml Use libxml already on system
-],,)
-AC_ARG_WITH(system-python,
-[ --with-system-python Use python already on system
-],,)
-AC_ARG_WITH(system-icu,
-[ --with-system-icu Use icu already on system
-],,)
-AC_ARG_WITH(system-poppler,
-[ --with-system-poppler Use poppler already on system
-],,)
-AC_ARG_WITH(system-lucene,
-[ --with-system-lucene Use lucene already on system
-],,)
-AC_ARG_WITH(lucene-core-jar,
-[ --with-lucene-core-jar=JARFILE Specify path to jarfile manually ],
-[ LUCENE_CORE_JAR="$withval"
-])
-AC_ARG_WITH(lucene-analyzers-jar,
-[ --with-lucene-analyzers-jar=JARFILE Specify path to jarfile manually ],
-[ LUCENE_ANALYZERS_JAR="$withval"
-])
-AC_ARG_ENABLE(mysql-connector,
-[ --enable-mysql-connector enables the build of the MySQL Connector/OOo extension.
- This requires access to the MySQL Connector/C (aka libmysql) to be given, too, with
- either the --with-system-mysql or --with-libmysql-path option.
-],,)
-AC_ARG_WITH(system-mysql,
-[ --with-system-mysql Use MySQL libraries already on system, for building the MySQL Connector/OOo extension.
- Requires MYSQLCONFIG to point to the mysql_config executable.
-],,)
-AC_ARG_WITH(libmysql-path,
-[ --with-libmysql-path Use Connector/C (libmysql) installation for building the MySQL Connector/OOo extension.
-
- Usage: --with-libmysql-path=<absolute path to your Connector/C installation>
-],,)
-AC_ARG_WITH(system-mysql-cppconn,
-[ --with-system-mysql-cppconn Use MySQL C++ Connector libraries already on system
-],,)
-AC_ARG_WITH(system-hsqldb,
-[ --with-system-hsqldb Use hsqldb already on system
-],,)
-AC_ARG_WITH(hsqldb-jar,
-[ --with-hsqldb-jar=JARFILE Specify path to jarfile manually ],
-[ HSQLDB_JAR="$withval"
-])
-AC_ARG_WITH(system-beanshell,
-[ --with-system-beanshell Use beanshell already on system (default)
-],,)
-AC_ARG_ENABLE(beanshell,
-[ --disable-beanshell Disable the use of beanshell.
-],,)
-AC_ARG_WITH(beanshell-jar,
-[ --with-beanshell-jar=JARFILE Specify path to jarfile manually ],
-[ BSH_JAR="$withval"
-])
-AC_ARG_ENABLE(pdfimport,
-[ --enable-pdfimport enables the build of the PDF Import extension
-],,)
-AC_ARG_ENABLE(wiki-publisher,
-[ --enable-wiki-publisher enables the build of the Wiki Publisher extension
-],,)
-AC_ARG_WITH(commons-codec-jar,
-[ --with-commons-codec-jar=JARFILE Specify path to jarfile manually ],
-[ COMMONS_CODEC_JAR="$withval"
-])
-AC_ARG_WITH(commons-lang-jar,
-[ --with-commons-lang-jar=JARFILE Specify path to jarfile manually ],
-[ COMMONS_LANG_JAR="$withval"
-])
-AC_ARG_WITH(commons-httpclient-jar,
-[ --with-commons-httpclient-jar=JARFILE Specify path to jarfile manually ],
-[ COMMONS_HTTPCLIENT_JAR="$withval"
-])
-AC_ARG_WITH(commons-logging-jar,
-[ --with-commons-logging-jar=JARFILE Specify path to jarfile manually ],
-[ COMMONS_LOGGING_JAR="$withval"
-])
-AC_ARG_WITH(servlet-api-jar,
-[ --servlet-api-jar=JARFILE Specify path to jarfile manually ],
-[ SERVLETAPI_JAR="$withval"
-])
-AC_ARG_ENABLE(report-builder,
-[ --enable-report-builder enables the build of the Report Builder extension
-],,)
-AC_ARG_WITH(sac-jar,
-[ --with-sac-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ SAC_JAR="$withval"
-])
-AC_ARG_WITH(libxml-jar,
-[ --with-libxml-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBXML_JAR="$withval"
-])
-AC_ARG_WITH(flute-jar,
-[ --with-flute-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ FLUTE_JAR="$withval"
-])
-AC_ARG_WITH(jfreereport-jar,
-[ --with-jfreereport-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ JFREEREPORT_JAR="$withval"
-])
-AC_ARG_WITH(liblayout-jar,
-[ --with-liblayout-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBLAYOUT_JAR="$withval"
-])
-AC_ARG_WITH(libloader-jar,
-[ --with-libloader-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBLOADER_JAR="$withval"
-])
-AC_ARG_WITH(libloader-jar,
-[ --with-libloader-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBLOADER_JAR="$withval"
-])
-AC_ARG_WITH(libformula-jar,
-[ --with-libformula-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBFORMULA_JAR="$withval"
-])
-AC_ARG_WITH(librepository-jar,
-[ --with-librepository-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBREPOSITORY_JAR="$withval"
-])
-AC_ARG_WITH(libfonts-jar,
-[ --with-libfonts-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBFONTS_JAR="$withval"
-])
-AC_ARG_WITH(libserializer-jar,
-[ --with-libserializer-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBSERIALIZER_JAR="$withval"
-])
-AC_ARG_WITH(libbase-jar,
-[ --with-libbase-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
-[ LIBBASE_JAR="$withval"
-])
-AC_ARG_WITH(system-saxon,
-[ --with-system-saxon Use saxon already on system (default)
-],,)
-AC_ARG_ENABLE(saxon,
-[ --disable-saxon Disable use of saxon
-],,)
-AC_ARG_WITH(saxon-jar,
-[ --with-saxon-jar=JARFILE Specify path to jarfile manually. This implies --with-system-saxon ],
-[ SAXON_JAR="$withval"
-])
-AC_ARG_WITH(system-libxslt,
-[ --with-system-libxslt Use libxslt already on system
-],,)
-AC_ARG_WITH(system-odbc,
-[ --with-system-odbc-headers Use the odbc headers already on system
-],,)
-AC_ARG_WITH(system-sane,
-[ --with-system-sane-header Use sane.h already on system
-],,)
-AC_ARG_WITH(system-xrender,
-[ --with-system-xrender-headers Use XRender headers already on system
-],,)
-AC_ARG_WITH(system-curl,
-[ --with-system-curl Use curl already on system
-],,)
-AC_ARG_WITH(system-boost,
-[ --with-system-boost Use boost already on system
-],,)
-AC_ARG_WITH(system-mdds,
-[ --with-system-mdds Use mdds already on system
-],,)
-AC_ARG_WITH(system-vigra,
-[ --with-system-vigra Use vigra already on system
-],,)
-AC_ARG_ENABLE(hunspell,
-[ --enable-hunspell Determines whether to enable the Hunspell library.
- If enabled, the library will be built unless you
- specify --with-system-hunspell to use the library
- already present on your system.
- If disabled, the Spell Checking component will also
- be disabled.
- (Default: hunspell disabled)
-],,enable_hunspell=no)
-AC_ARG_WITH(system-hunspell,
-[ --with-system-hunspell Use libhunspell already on system
-],,)
-AC_ARG_WITH(system-mythes,
-[ --with-system-mythes Use mythes already on system
-],,)
-AC_ARG_ENABLE(hyphen,
-[ --enable-hyphen Determines whether to enable the Hyphen library.
- If enabled, the library will be built unless you
- specify --with-system-hyphen to use the library
- already present on your system.
- If disabled, the Hyphenator component will also
- be disabled.
- (Default: hyphen disabled)
-],,enable_hyphen=no)
-AC_ARG_WITH(system-hyphen,
-[ --with-system-hyphen Use libhypeh already on system
-],,)
-AC_ARG_WITH(system-libtextcat,
-[ --with-system-libtextcat Use libtextcat already on system
-],,)
-AC_ARG_WITH(external-libtextcat-data,
-[ --with-system-libtextcat-data Use libtextcat data already on system
-],,)
-AC_ARG_WITH(system-cppunit,
-[ --with-system-cppunit Use cppunit already on system
-],,)
-AC_ARG_WITH(system-redland,
-[ --with-system-redland Use redland library already on system
-],,)
-AC_ARG_WITH(stlport,
-[ --with-stlport Only building --without-stlport is supported.
-], WITH_STLPORT=$withval , WITH_STLPORT=no)
-AC_ARG_WITH(jdk-home,
-[ --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 binary
- but the location of the entire distribution.
-
- Usage: --with-jdk-home=<absolute path to JDK home>
-],,)
-AC_ARG_WITH(gxx_include_path,
-[ --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(java,
-[ --with-java Build with[[out]] Java support. If you use
- --without-java/--with-java=no then the build will have
- no support for Java components, applets, accessibility
- or XML filters.
-], if test "$withval" = "yes"; then WITH_JAVA=java; else WITH_JAVA=$withval; fi, WITH_JAVA=java)
-AC_ARG_ENABLE(gcjaot,
-[ --enable-gcjaot Build with[[out]] using Ahead of Time java compilation
- support to speed up buildsi by compiling the jars also
- to native code..
- --enable-gcjaot is only known to work with bytecode
- created with gcj or ecj
-],,)
-AC_ARG_WITH(ant-home,
-[ --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,
-[ --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,
-[ --with-perl-home If you have installed the 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=<absolute path to Perl 5 home>
-],,)
-AC_ARG_WITH(cl-home,
-[ --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,
-[ --with-mspdb-path For Microsoft C/C++ compiler users, please supply the
- path pointing to the mspdb71.dll (.NET 2003).
-
- Usage: --with-mspdb-path=<absolute path to mspdb71.dll>
-],,)
-AC_ARG_WITH(midl-path,
-[ --with-midl-path For Microsoft C/C++ .NET compiler users, please supply
- the path pointing to the midl.exe.
-
- Usage: --with-midl-path=<absolute path to midl.exe>
-],,)
-AC_ARG_WITH(csc-path,
-[ --with-csc-path For Microsoft C/C++ .NET compiler users, please supply
- the path pointing to the csc.exe.
-
- Usage: --with-csc-path=<absolute path to csc.exe>
-],,)
-AC_ARG_WITH(nsis-path,
-[ --with-nsis-path For Windows users, please supply the path to the
- "Nullsoft Scriptable Install System" (NSIS). If NSIS
- is found in the path or this option is supplied a self
- contained executable installer for Apache OpenOffice
- will be created.
-
- Usage: --with-nsis-path=<absolute path to nsis.exe>
-],,)
-AC_ARG_WITH(frame-home,
-[ --with-frame-home For Microsoft C/C++ .NET compiler users, please supply
- the path pointing to lib/mscoree.lib, usually
- something like:
- "/cygdrive/c/Program Files/Microsoft Visual Studio .NET/FrameworkSDK"
-
- MS Visual Toolkit compiler users, please supply the
- path pointing to lib/msvcrt.lib, usually something
- like:
- "/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Vc7"
-
- Usage: --with-frame-home=<absolute path to Framework SDK [[home]]>
-],,)
-AC_ARG_WITH(psdk-home,
-[ --with-psdk-home For Windows users, please supply the path to the
- Microsoft Platform SDK.
-
- Usage: --with-psdk-home=<absolute path to Microsoft Platform SDK>
-],,)
-AC_ARG_WITH(directx-home,
-[ --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,
-[ --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(local-solenv,
-[ --with-local-solenv If you have solenv in a location other than ./solenv,
- please supply the path here.
-
- Usage: --with-local-solenv=<absolute path to solenv>
-],,)
-AC_ARG_WITH(local-solver,
-[ --with-local-solver if you have solver in a location other than ./solver,
- please supply the path here.
-
- Usage: --with-local-solver=<absolute path to solver>
-],,)
-AC_ARG_ENABLE(javascript,
-[ --disable-javascript Disables support for JavaScript macros.
-],,)
-AC_ARG_WITH(system-apr,
-[ --with-system-apr Use apr library already installed on the system
-],,)
-AC_ARG_WITH(system-apr-util,
-[ --with-system-apr-util Use apr-util library already installed on the system
-],,)
-AC_ARG_WITH(system-serf,
-[ --with-system-serf Use serf library already installed on the system
-],,)
-AC_ARG_WITH(system-coinmp,
-[ --with-system-coinmp Use CoinMP library already installed on the system
-],,)
-AC_ARG_ENABLE(coinmp,
-[ --disable-coinmp Do not use CoinMP as the Calc solver.
-],,)
-AC_ARG_ENABLE(check-only,
-[ --enable-check-only Use this option option if you just want to check your
- environment. This option stops the generation of an
- ????env.set
-
- Usage: --enable-check-only=yes
-],,)
-AC_ARG_ENABLE(ccache-skip,
-[[ --enable-ccache-skip [default=auto] allow the use of --ccache-skip to
- escape compiler flags that would otherwise prevent
- caching of the result (currently used on Mac only)
- NOTE: requires patched version because of a bug in
- ccache (see issue 104567 for details and patch)
- explicitly enable if your version of ccache does not
- identify as version 2.4_OOo
-]],,enable_ccache_skip=auto)
-AC_ARG_WITH(lang,
-[ --with-lang Use this option to build Apache OpenOffice 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"
-],,)
-AC_ARG_WITH(poor-help-localizations,
-[ --with-poor-help-localizations
- Use this option to specify which languages have
- unusable help localizations. Separate multiple
- languages with space.
-
- Usage: --with-poor-help-localizations="af ar be-BY ca"
-],,)
-AC_ARG_WITH(dict,
-[ --with-dict Use this option to build Apache OpenOffice with
- dictionary support. ALL dictionaries are always
- included by default unless overridden with
- this option. Separate multiple dictionaries with
- commas. For all dictionaries, use --with-dict=ALL.
-
- Usage: --with-dict=ENGB,ENUS,ITIT
-],,)
-AC_ARG_WITH(intro-bitmaps,
-[ --with-intro-bitmaps Prefer the specified intro bitmaps over the
- the default one. Can be more than one (separated by
- commas), the order means priority of fallback if the
- first does not exist (in the installed tree).
-
- Usage: --with-intro-bitmaps=/path/my_ooo_intro.bmp
-],,)
-AC_ARG_WITH(about-bitmaps,
-[ --with-about-bitmaps Similarly to --with-intro-bitmaps, this allows
- specification of bitmaps for the About box.
-
- Usage: --with-about-bitmaps=/path/my_ooo_about.bmp
-],,)
-AC_ARG_WITH(vendor,
-[ --with-vendor Set vendor of the build.
-
- Usage: --with-vendor="John the Builder"
-],,)
-AC_ARG_WITH(unix-wrapper,
-[ --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(asm-home,
-[ --with-asm-home For Windows users, please supply the path for the
- ml.exe assembler.
-
- Usage: --with-asm-home=<path to ml.exe directory>
-],,)
-AC_ARG_WITH(os-version,
-[ --with-os-version For FreeBSD users, use this option option to override
- the detected OSVERSION.
-
- Usage: --with-os-version=<OSVERSION>
-],,)
-AC_ARG_WITH(unzip-home,
-[ --with-unzip-home Deprecated: use --with-zip-home instead],,)
-AC_ARG_WITH(zip-home,
-[ --with-zip-home If you use a non standard zip, for example windows
- please supply the path for zip
-
- Usage: --with-zip-home=<path to zip executable>
-],,)
-AC_ARG_WITH(mingwin,
-[ --with-mingwin For Windows users, use the mingwin32 compiler within
- cygwin environment
-
- Usage: --with-mingwin=yes
-
- For !Windows use, use the mingw32 C++ compiler to
- (re-) build unowinreg.dll. Specify the MinGW C++
- Compilers name.
-
- Usage: --with-mingwin=i586-mingw32msvc-g++
-],WITH_MINGWIN=$withval,WITH_MINGWIN=0)
-AC_ARG_WITH(build-version,
-[ --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,
-[ --with-alloc Define which allocator to build with
- (choices are oo, system, tcmalloc, jemalloc)
-
- Note that on FreeBSD/NetBSD system==jemalloc
-],,)
-AC_ARG_ENABLE(verbose,
-[ --enable-verbose Increase build verbosity.
- --disable-verbose Decrease build verbosity.
-],,)
-AC_ARG_ENABLE(dependency-tracking,
-[ --disable-dependency-tracking Disables generation of dependency information.
-],,)
-AC_ARG_ENABLE(category-b,
-[ --enable-category-b Activate components under a category B license
- (see http://www.apache.org/legal/3party.html#category-b):
- MPL (seamonkey, hunspell, hyphen, nss, saxon, rhino),
- CPL (silgraphite), CPL/EPL (CoinMP), OFL (fonts).
- Flags for individual libraries override this one.
-],,)
-AC_ARG_WITH(arm-target,
-[ --arm-target The minimal targeted arm processor
- used for the build environment.
- Cases :
- arm-target < 6 : armv4t compatibility
- arm-target = 6 : exact armv6 compatibility
- arm-target > 6 : armv7-a compatibility
-
- Usage: --with-arm-target=7
-],with_arm_target=$withval,with_arm_target=4)
-AC_ARG_WITH(rat-scan,
-[ --with-rat-scan Scan source code for license headers.
- Use as --with-rat-scan to automatically download pre-built Rat binaries.
- Alternatively use as --with-rat-scan=<path-to-rat-direcetory> to use
- a separately installed library.
-],with_rat_scan=$withval,)
-
-BUILD_TYPE="OOo"
-ADDITIONAL_REPOSITORIES="../ext_libraries"
-SCPDEFS=""
-
-dnl ===================================================================
-dnl Check configure script vs. configure.in
-dnl ===================================================================
-AC_MSG_CHECKING([whether configure is up-to-date])
-if test "configure" -ot "configure.in"; then
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([configure is not up-to-date, run autoconf first!])
-else
- AC_MSG_RESULT([yes])
-fi
-dnl ===================================================================
-dnl Message.
-dnl ===================================================================
-echo "********************************************************************"
-echo "* *"
-echo "* Apache OpenOffice build configuration. *"
-echo "* *"
-echo "* The configure process checks your platform to see whether *"
-echo "* you can build Apache OpenOffice on it. *"
-echo "* This process checks all pre-requisites and generates a file *"
-echo "* containing the necessary environment variables. *"
-echo "* Source this file after configure has ended successfully. *"
-echo "* *"
-echo "* Warnings that are generated during the configure process *"
-echo "* must be taken into account since it can be a reason for *"
-echo "* an unsuccessful build of Apache OpenOffice. *"
-echo "* *"
-echo "********************************************************************"
-echo ""
-echo "********************************************************************"
-echo "* *"
-echo "* Checking the platform pre-requisites. *"
-echo "* *"
-echo "********************************************************************"
-echo ""
-dnl ===================================================================
-dnl Configure pre-requisites.
-dnl ===================================================================
-cat /dev/null > warn
-
-AC_PROG_EGREP
-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_PROGS(SED, sed )
-if test -z "$SED"; then
- AC_MSG_ERROR([install sed to run this script])
-fi
-
-AC_MSG_CHECKING([for solenv environment])
-if test -z "$with_local_solenv"; then
- LOCAL_SOLENV="DEFAULT"
- AC_MSG_RESULT([default])
-else
- LOCAL_SOLENV=$with_local_solenv
- AC_MSG_RESULT([$with_local_solenv])
-fi
-AC_SUBST(LOCAL_SOLENV)
-
-if test "$LOCAL_SOLENV" = "DEFAULT"; then
- _solenv="./solenv"
-else
- _solenv="$LOCAL_SOLENV"
-fi
-AC_SUBST(_solenv)
-
-if test -e $_solenv/inc/minor.mk; then
- # Get UPD number from ./solenv/inc/minor.mk
- UPD="`grep RSCVERSION= $_solenv/inc/minor.mk | $AWK -F"=" '{ print $2 }'`"
- AC_SUBST(UPD)
- SOURCEVERSION="`grep SOURCEVERSION= $_solenv/inc/minor.mk | $AWK -F"=" '{ print $2 }'`"
- AC_SUBST(SOURCEVERSION)
-else
- AC_MSG_ERROR([$_solenv/inc/minor.mk missing but needed for architecture/os detecion and proper environment script generation...])
-fi
-
-
-dnl ==================================================================
-dnl Checks for custom pack.lst
-dnl ==================================================================
-AC_MSG_CHECKING([for custom pack.lst])
-CUSTOM_PACK_LIST=
-USE_PACKAGER=
-if test -n "$with_packager_list" ; then
- if test -e $with_packager_list; then
- CUSTOM_PACK_LIST=$with_packager_list
- USE_PACKAGER=YES
- fi
-fi
-if test -n "$CUSTOM_PACK_LIST"; then
- AC_MSG_RESULT([$CUSTOM_PACK_LIST])
-else
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(CUSTOM_PACK_LIST)
-AC_SUBST(USE_PACKAGER)
-
-
-dnl ===================================================================
-dnl Checks for the operating system and processor.
-dnl ===================================================================
-AC_CANONICAL_SYSTEM
-if test "$build" != "$host" -o "$build" != "$target" \
- -o "$host" != "$target"; then
- AC_MSG_WARN([cross-compiling by any means is not supported (yet)!])
- echo "cross-compiling by any means is not supported (yet)!" >> warn
-fi
-
-if echo "$build_os" | grep cygwin; then
- AC_MSG_CHECKING([Cygwin version])
- CygwinVer=`uname -r`
- AC_MSG_RESULT([$CygwinVer])
- if test "`echo $CygwinVer | $AWK -F . '{ print $1$2 }'`" -lt "15"; then
- AC_MSG_ERROR([You need at least Cygwin V1.5.x])
- fi
-else
- CygwinVer="false"
-fi
-
-# get info about the system provided release/version details
-head /etc/*-release
-uname -a
-
-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 ===================================================================
-case "$build_os" in
- solaris*)
- test_gtk=yes
- test_cairo=yes
- test_kde=yes
- test_cups=yes
- test_randr=yes
- test_freetype=yes
- test_gstreamer=yes
- _os=SunOS
- AC_PATH_PROG( GNUTAR, gtar,,$PATH:/usr/sfw/bin)
- if test -z "$GNUTAR"; then
- AC_MSG_ERROR([gtar (gnu tar) not found but needed. Install it (SUN Freeware package).])
- fi
- AC_SUBST(GNUTAR)
-
- dnl ===========================================================
- dnl check whether we're using solaris 6,7,8 - sparc or intel.
- dnl ===========================================================
- AC_MSG_CHECKING([the Solaris operating system release])
- _os_release=`echo $build_os | $SED -e s/solaris2\.//`
- if test "$_os_release" -lt "6"; then
- AC_MSG_ERROR([use solaris >= 6 to build Apache OpenOffice])
- 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 "$build_cpu" = "sparc" -o "$build_cpu" = "i386"; then
- AC_MSG_RESULT([ok ($build_cpu)])
- else
- AC_MSG_ERROR([only sparc and i386 processors are supported])
- fi
- ;;
- linux-gnu*|k*bsd*-gnu*)
- test_gtk=yes
- test_cairo=yes
- test_kde=yes
- test_kde4=yes
- test_cups=yes
- test_randr=yes
- test_freetype=yes
- test_gstreamer=yes
- _os=Linux
- ;;
- gnu)
- test_cups=no
- _os=GNU
- ;;
- cygwin*) # Windows
- test_cups=no
- test_cairo=yes
- test_freetype=no
- test_gstreamer=no
- _os=WINNT
- ;;
- darwin*) # Mac OS X
- test_cups=yes
- test_gtk=yes
- test_cairo=yes
- test_randr=no
- test_freetype=no
- test_gstreamer=no
- _os=Darwin
- if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then
- AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray])
- echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn
- enable_systray=no
- fi
- if test ! -n "$CC"; then
- CC="`xcrun -f clang` -arch x86_64"
- fi
- if test ! -n "$CXX"; then
- CXX="`xcrun -f clang++` -arch x86_64 -std=c++11"
- fi
- ;;
- os2*)
- test_x=no
- test_cups=no
- test_randr=no
- test_gtk=no
- test_freetype=no
- test_gstreamer=no
- _os=OS2
- ;;
- freebsd*)
- test_gtk=yes
- test_cairo=yes
- test_kde=yes
- test_kde4=yes
- test_cups=yes
- test_randr=yes
- test_freetype=yes
- test_gstreamer=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
- ;;
- osf)
- test_cups=no
- test_randr=no
- _os=OSF1
- ;;
- netbsd)
- test_gtk=yes
- test_cairo=yes
- test_kde=yes
- test_kde4=yes
- test_cups=no
- test_randr=yes
- test_freetype=yes
- test_gstreamer=yes
- PTHREAD_CFLAGS="-pthread"
- PTHREAD_LIBS="-pthread -lpthread"
- _os=NetBSD
- ;;
- aix*)
- test_cups=no
- test_randr=no
- test_freetype=yes
- test_gstreamer=yes
- PTHREAD_LIBS=-pthread
- echo "AIX is an alpha port --- Use at own risk" >> warn
- _os=AIX
- ;;
- *)
- AC_MSG_ERROR([$_os operating system is not suitable to build Apache OpenOffice!])
- ;;
-esac
-
-AC_SUBST(OSVERSION)
-AC_SUBST(PTHREAD_CFLAGS)
-AC_SUBST(PTHREAD_LIBS)
-
-
-dnl Ensure pkg-config is initialized before any possible use
-PKG_PROG_PKG_CONFIG
-
-
-dnl ===================================================================
-dnl Set the ENABLE_CRASHDUMP variable.
-dnl ===================================================================
-AC_MSG_CHECKING([whether to enable crashdump feature])
-if test "$enable_crashdump" = "yes"; then
- ENABLE_CRASHDUMP="TRUE"
- BUILD_TYPE="$BUILD_TYPE CRASHREP"
- AC_MSG_RESULT([yes])
-else
- ENABLE_CRASHDUMP=""
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_CRASHDUMP)
-
-if test "$_os" = "WINNT"; then
- BUILD_TYPE="$BUILD_TYPE TWAIN"
-fi
-
-if test "$_os" = "WINNT"; then
- dnl ===================================================================
- dnl Set the VC_STANDARD variable.
- dnl ===================================================================
- AC_MSG_CHECKING([whether to use the standard non-optimizing compiler])
- if test "$enable_cl_standard" = "" -o "$enable_cl_standard" = "no"; then
- VC_STANDARD=""
- AC_MSG_RESULT([no])
- else
- VC_STANDARD="TRUE"
- AC_MSG_RESULT([yes])
- fi
- AC_SUBST(VC_STANDARD)
-fi
-
-if test "$_os" = "WINNT"; then
- dnl ===================================================================
- dnl Set the BUILD_X64 variable.
- dnl ===================================================================
- AC_MSG_CHECKING([whether to build/use the Windows 64bit shell extensions])
- if test "$enable_win_x64_shellext" = "" -o "$enable_win_x64_shellext" = "no"; then
- BUILD_X64=""
- AC_MSG_RESULT([no])
- else
- BUILD_X64="TRUE"
- AC_MSG_RESULT([yes])
- fi
- AC_SUBST(BUILD_X64)
-fi
-
-dnl ===================================================================
-dnl Set the ENABLE_WERROR variable. (Activate --enable-werror)
-dnl ===================================================================
-AC_MSG_CHECKING([whether to turn warnings to errors])
-if test -n "$enable_werror" && test "$enable_werror" != "no"; then
- ENABLE_WERROR="TRUE"
- AC_MSG_RESULT([yes])
- AC_MSG_WARN([Turning warnings to errors has no effect in modules or])
- AC_MSG_WARN([on platforms where it has been disabled explicitely])
- echo "Turning warnings to errors has no effect in modules or on platforms where it has been disabled explicitely" >> warn
-else
- ENABLE_WERROR="FALSE"
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_WERROR)
-
-dnl ===================================================================
-dnl Set the ENABLE_DEBUG variable. (Activate --enable-symbols)
-dnl ===================================================================
-AC_MSG_CHECKING([whether to do a debug build])
-if test -n "$enable_debug" && test "$enable_debug" != "no"; then
- ENABLE_DEBUG="TRUE"
- if test -z "$enable_symbols"; then
- enable_symbols="yes"
- fi
- AC_MSG_RESULT([yes])
-else
- ENABLE_DEBUG="FALSE"
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_DEBUG)
-
-dnl ===================================================================
-dnl Set the ENABLE_DBGUTIL variable
-dnl ===================================================================
-AC_MSG_CHECKING([whether to build with additional debug utilities])
-if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
- PROEXT=""
- PRODUCT=""
- PROFULLSWITCH=""
- AC_MSG_RESULT([yes])
-else
- PRODUCT="full"
- PROFULLSWITCH="product=full"
- PROEXT=".pro"
- AC_MSG_RESULT([no, full product build])
-fi
-AC_SUBST(PRODUCT)
-AC_SUBST(PROFULLSWITCH)
-AC_SUBST(PROEXT)
-
-dnl ===================================================================
-dnl First setting is whether to include symbols into final build.
-dnl ===================================================================
-AC_MSG_CHECKING([whether to include symbols into final build])
-if test -n "$enable_symbols" && test "$enable_symbols" != "no"; then
- if test "$enable_symbols" = "yes" -o "$enable_symbols" = "TRUE"; then
- ENABLE_SYMBOLS="TRUE"
- AC_MSG_RESULT([yes])
- else
- if test "$enable_symbols" = "SMALL" -o "$enable_symbols" = "small"; then
- ENABLE_SYMBOLS="SMALL"
- AC_MSG_RESULT([yes, small ones])
- else if test "$enable_symbols" != "no" ; then
- echo enable symbols is: $enable_symbols
- AC_MSG_ERROR([--enable-symbols only accepts yes, TRUE or SMALL as parameter.])
- else
- ENABLE_SYMBOLS=
- fi
- fi
- fi
-else
- ENABLE_SYMBOLS=
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_SYMBOLS)
-
-dnl ===================================================================
-dnl Determine if the solver is to be stripped or not.
-dnl ===================================================================
-AC_MSG_CHECKING([whether to strip the solver or not.])
-if test -n "$enable_strip_solver"; then
- if test "$enable_strip_solver" = "yes"; then
- DISABLE_STRIP=
- else if test "$enable_strip_solver" = "no"; then
- DISABLE_STRIP="TRUE"
- else
- AC_MSG_ERROR([--disable-strip-solver only accepts yes or no as parameter.])
- fi
- fi
-else
- if test -n "$ENABLE_SYMBOLS"; then
- DISABLE_STRIP="TRUE"
- else
- DISABLE_STRIP=
- fi
-fi
-if test -z "$DISABLE_STRIP"; then
- AC_MSG_RESULT([yes])
-else
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(DISABLE_STRIP)
-
-dnl ===================================================================
-dnl Build options
-dnl ===================================================================
-
-# Disable or enable category-B librariets: nss, hunspell, hyphen, saxon,
-# rhino, silgraphite.
-
-# Note that further below they may be enabled or disabled again by
-# more specific options.
-
-ENABLE_CATEGORY_B=
-
-AC_MSG_CHECKING([whether to enable category B components])
-# Category B modules (libraries):
-# nss (nss)
-# hunspell (hunspell)
-# hyphen (hyphen)
-# saxon (saxon)
-# rhino (rhino)
-# graphite (silgraphite)
-if test "$enable_category_b" = "yes"; then
- ENABLE_CATEGORY_B=YES
- enable_hunspell="yes"
- enable_hyphen="yes"
- enable_saxon="yes"
- enable_javascript="yes"
- enable_graphite="yes"
- enable_coinmp="yes"
- enable_category_b_fonts="yes"
-
- AC_MSG_RESULT([yes: allow modules nss, hunspell, hyphen, saxon, rhino, beanshell, graphite, coinmp to be built])
-else
- # Disable libraries.
- enable_nss_module="no"
- enable_hunspell="no"
- enable_hyphen="no"
- enable_saxon="no"
- enable_javascript="no"
- enable_graphite="no"
- enable_coinmp="no"
- enable_category_b_fonts="no"
-
- AC_MSG_RESULT([no: disabled modules nss, hunspell, hyphen, saxon, rhino, graphite, coinmp])
-fi
-AC_SUBST(ENABLE_CATEGORY_B)
-
-# gstreamer is used only via pre-installed libraries: not a problem
-
-dnl ===================================================================
-dnl Online Update
-dnl ===================================================================
-AC_MSG_CHECKING([whether to enable the Online Update support])
-if test "$enable_online_update" = "yes" -o "$enable_online_update" = "TRUE"; then
- ENABLE_ONLINE_UPDATE="YES"
- SCPDEFS="$SCPDEFS -DENABLE_ONLINE_UPDATE"
- AC_MSG_RESULT([yes])
-else
- ENABLE_ONLINE_UPDATE=""
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_ONLINE_UPDATE)
-
-dnl ===================================================================
-dnl Unit Tests
-dnl ===================================================================
-AC_MSG_CHECKING([whether to enable unit tests])
-if test "$enable_unit_tests" = "yes" -o "$enable_unit_tests" = "TRUE"; then
- ENABLE_UNIT_TESTS="YES"
- BUILD_TYPE="$BUILD_TYPE GTEST"
- AC_MSG_RESULT([yes])
-else
- ENABLE_UNIT_TESTS=""
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_UNIT_TESTS)
-
-AC_MSG_CHECKING([whether to enable native CUPS support])
-if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
- ENABLE_CUPS="TRUE"
- AC_MSG_RESULT([yes])
-else
- ENABLE_CUPS=""
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_CUPS)
-
-AC_MSG_CHECKING([whether to enable fontconfig support])
-if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a \( "$enable_fontconfig" = "yes" -o "$enable_fontconfig" = "TRUE" \); then
- ENABLE_FONTCONFIG="TRUE"
- AC_MSG_RESULT([yes])
-else
- ENABLE_FONTCONFIG=""
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_FONTCONFIG)
-
-dnl ===================================================================
-dnl find external tarballs.
-dnl ===================================================================
-if test -z $TARFILE_LOCATION; then
- TARFILE_LOCATION="DEFAULT"
-fi
-AC_SUBST(TARFILE_LOCATION)
-
-if test -z "$enable_fetch_external" || test "$enable_fetch_external" = "yes" \
- && test -z "$with_system_libs" -a "$with_system_jars" != "no"; then
- DO_FETCH_TARBALLS="yes"
-fi
-AC_SUBST(DO_FETCH_TARBALLS)
-
-if test "$_os" = "WINNT"; then
- AC_MSG_CHECKING([whether to use DirectX])
- ENABLE_DIRECT_DRAW=""
- if test "$enable_directx" = "yes" -o "$enable_directx" = "TRUE" -o "$enable_directx" = ""; then
- ENABLE_DIRECTX="TRUE"
- AC_MSG_RESULT([yes])
- else
- ENABLE_DIRECTX=""
- AC_MSG_RESULT([no])
- fi
- AC_SUBST(ENABLE_DIRECTX)
-
- AC_MSG_CHECKING([whether to use ActiveX])
- if test "$enable_activex" = "yes" -o "$enable_activex" = "TRUE" -o "$enable_activex" = ""; then
- DISABLE_ACTIVEX=""
- AC_MSG_RESULT([yes])
- else
- DISABLE_ACTIVEX="TRUE"
- AC_MSG_RESULT([no])
- fi
-
- AC_MSG_CHECKING([whether to use ATL])
- if test "$enable_atl" = "yes" -o "$enable_atl" = "TRUE" -o "$enable_atl" = ""; then
- DISABLE_ATL=""
- AC_MSG_RESULT([yes])
- else
- DISABLE_ATL="TRUE"
- dnl ActiveX depends on ATL, it should be disabled
- DISABLE_ACTIVEX="TRUE"
- AC_MSG_RESULT([no])
- fi
-
- AC_SUBST(DISABLE_ATL)
- AC_SUBST(DISABLE_ACTIVEX)
-
-fi
-
-dnl ===================================================================
-dnl Disable rpath in shared libraries?
-dnl ===================================================================
-AC_MSG_CHECKING([whether to use RPATH in shared libraries])
-if test "$enable_rpath" = "no"; then
- ENABLE_RPATH="no"
-else
- ENABLE_RPATH="yes"
-fi
-AC_MSG_RESULT([$ENABLE_RPATH])
-AC_SUBST(ENABLE_RPATH)
-
-dnl ===================================================================
-dnl Check extensions to be bundled as literal blobs
-dnl ===================================================================
-if test -n "$with_bundled_extension_blobs"; then
- BUNDLED_EXTENSION_BLOBS="$with_bundled_extension_blobs"
-else
- BUNDLED_EXTENSION_BLOBS=
-fi
-AC_SUBST(BUNDLED_EXTENSION_BLOBS)
-
-#dnl ===================================================================
-#dnl Check extensions that are to be bundled as pre-registerd
-#dnl ===================================================================
-if test -n "$with_bundled_prereg_extensions"; then
- BUNDLED_PREREG_EXTENSIONS="$with_bundled_prereg_extensions"
-else
- BUNDLED_PREREG_EXTENSIONS=
-fi
-AC_SUBST(BUNDLED_PREREG_EXTENSIONS)
-
-dnl ===================================================================
-dnl Configure system provided dictionary/hyphenation/thesaurus
-dnl ===================================================================
- AC_MSG_CHECKING([whether to use dicts from external paths])
- if test -n "$with_system_dicts" -a "$with_system_dicts" = "yes"; then
- AC_MSG_RESULT([yes])
- SYSTEM_DICTS=YES
- AC_MSG_CHECKING([for spelling dictionary directory])
- if test -n "$with_external_dict_dir"; then
- DICT_SYSTEM_DIR=file://$with_external_dict_dir
- else
- DICT_SYSTEM_DIR=file:///usr/share/hunspell
- fi
- AC_MSG_RESULT([$DICT_SYSTEM_DIR])
- AC_MSG_CHECKING([for hyphenation patterns directory])
- if test -n "$with_external_hyph_dir"; then
- HYPH_SYSTEM_DIR=file://$with_external_hyph_dir
- else
- HYPH_SYSTEM_DIR=file:///usr/share/hyphen
- fi
- AC_MSG_RESULT([$HYPH_SYSTEM_DIR])
- AC_MSG_CHECKING([for thesaurus directory])
- if test -n "$with_external_thes_dir"; then
- THES_SYSTEM_DIR=file://$with_external_thes_dir
- else
- THES_SYSTEM_DIR=file:///usr/share/mythes
- fi
- AC_MSG_RESULT([$THES_SYSTEM_DIR])
- else
- AC_MSG_RESULT([no])
- SYSTEM_DICTS=NO
- fi
-AC_SUBST(SYSTEM_DICTS)
-AC_SUBST(DICT_SYSTEM_DIR)
-AC_SUBST(HYPH_SYSTEM_DIR)
-AC_SUBST(THES_SYSTEM_DIR)
-
-if test $_os = "WINNT"; then
- AC_MSG_CHECKING([Windows build environment sanity])
- dnl ===================================================================
- dnl Sanity check! Native windows programs cannot use cygwin symlinks!
- dnl ===================================================================
- dnl As long as awk instead of $AWK is used somewhere in the sources,
- dnl check for $AWK and awk. $AWK is pointing to gawk in cygwin.
- if test -L $AWK -o -L `which awk` -o -L `which tar` -o -L `which gunzip` ; then
- AC_MSG_ERROR([$AWK, awk, tar or gunzip is a cygwin symlink!
-Native windows programs cannot use cygwin symlinks. Remove the symbolic
-link, and copy the program to the name of the link.])
- fi
- dnl ===================================================================
- dnl Another sanity check! More a band-aid. winenv.* adds guw.exe to
- dnl CC and CXX but the configure checks here assume that guw.exe
- dnl (if needed at all) is not yet present.
- dnl ===================================================================
- CC=`echo $CC | $SED "s/^guw.exe //"`
- CXX=`echo $CXX | $SED "s/^guw.exe //"`
- dnl ===================================================================
- dnl If $CC is set to a MinGW compiler, e.g. "gcc -mno-cygwin" enable
- dnl $WITH_MINGWIN
- dnl ===================================================================
- if test -n "$CC";then
- if test "`$CC -dumpmachine 2>/dev/null | $SED -e 's/^.*-//'`" = "mingw32"; then
- WITH_MINGWIN="yes"
- fi
- fi
- dnl ===================================================================
- if test "$WITH_MINGWIN" = "yes" ; then
- if test -z "$CC"; then
- CC="gcc -mno-cygwin"
- CXX="g++ -mno-cygwin"
- fi
- fi
- AC_MSG_RESULT([ok])
-fi
-AC_SUBST(WITH_MINGWIN)
-
-dnl ===================================================================
-dnl Extra check for Windows. cygwin builds need gcc to build dmake
-dnl and g++ to build guw.exe although MS cl (or MinGW) is used to
-dnl build OOo.
-dnl ===================================================================
-if test "$_os" = "WINNT" ; 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
-
-
-dnl ===================================================================
-dnl Check whether the bash shell can be used.
-dnl ===================================================================
-AC_PATH_PROG(SHELLPATH, bash)
-if test -z "$SHELLPATH"; then
- AC_MSG_ERROR([bash not found in \$PATH])
-else
- SHELLPATH=`echo $SHELLPATH | $SED -n "s/\/bash$//p"`
-fi
-AC_SUBST(SHELLPATH)
-
-dnl ===================================================================
-dnl Checks for c compiler,
-dnl The check for the c++ compiler is later on.
-dnl ===================================================================
-AC_MSG_CHECKING([gcc home])
-if test -z "$with_gcc_home"; then
- GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
-else
- GCC_HOME="$with_gcc_home"
-fi
-AC_MSG_RESULT($GCC_HOME)
-AC_SUBST(GCC_HOME)
-
-save_CC=$CC
-save_CXX=$CXX
-
-if test -n "$with_gcc_home"; then
- if test -z "$CC"; then
- CC="$with_gcc_home/bin/gcc"
- 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_MINGWIN" = "yes"; then
- AC_PROG_CC
-fi
-
-if test "$_os" = "FreeBSD"; then
- FBSD_GCC_RPATH=
- if $CC --version 2>&1 | grep clang > /dev/null ; then
- COM_IS=CLANG
- else
- COM_IS=GCC
- rpath=`$CC --print-file-name libstdc++.so`
- rpath=`realpath $rpath`
- rpath=`dirname $rpath`
- if test "$rpath" != "/usr/lib" ; then
- FBSD_GCC_RPATH="-Wl,-rpath=$rpath"
- fi
- fi
- AC_SUBST(COM_IS)
- AC_SUBST(FBSD_GCC_RPATH)
-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
-CC_PATH="$COMPATH/"
-COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`;
-
-dnl ===================================================================
-dnl Test the gcc version, 3 is OK
-dnl ===================================================================
-GCCVER=20995
-if test \( "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes" \) -a "$GCC" = "yes"; then
- AC_MSG_CHECKING([the GNU gcc compiler version])
- _gcc_version=`$CC -dumpversion`
- _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
- GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
-
- if test "$_gcc_major" -lt "3"; then
- AC_MSG_ERROR([found version "$_gcc_version", use version 3+ of the gcc compiler])
- else
- if test "$GCCVER" -eq "030203"; then
- if test "$ENABLE_SYMBOLS" = "SMALL"; then
- AC_MSG_ERROR([version "$_gcc_version" gives internal error with small.])
- fi
- fi
- fi
- if test "$_os" = "Darwin" ; then
- AC_MSG_RESULT([implicitly using CC=$CC])
- else
- AC_MSG_RESULT([checked (gcc $_gcc_version)])
- fi
- if test "$_os" = "SunOS"; then
- AC_MSG_CHECKING([gcc linker])
- if $CC -Wl,--version 2>&1 |head -n 1| grep -v GNU > /dev/null;then
- AC_MSG_ERROR([failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris])
- fi
- AC_MSG_RESULT([ok (GNU ld)])
- fi
-fi
-AC_SUBST(GCCVER)
-
-HAVE_LD_BSYMBOLIC_FUNCTIONS=
-if test "$GCC" = "yes"; then
- AC_MSG_CHECKING( for -Bsymbolic-functions linker support )
- bsymbolic_functions_ldflags_save=$LDFLAGS
- LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([
- #include <stdio.h>
- ],[
- printf ("hello world\n");
- ])], HAVE_LD_BSYMBOLIC_FUNCTIONS=TRUE, [])
- if test "z$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "zTRUE"; then
- AC_MSG_RESULT( found )
- else
- AC_MSG_RESULT( not found )
- fi
- LDFLAGS=$bsymbolic_functions_ldflags_save
-fi
-AC_SUBST(HAVE_LD_BSYMBOLIC_FUNCTIONS)
-
-dnl ===================================================================
-dnl Set the ENABLE_PCH variable. (Activate --enable-pch)
-dnl ===================================================================
-AC_MSG_CHECKING([whether to enable pch feature])
-if test -n "$enable_pch" && test "$enable_pch" != "no"; then
- if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
- ENABLE_PCH="TRUE"
- AC_MSG_RESULT([yes])
-dnl There is no PCH support in GCC versions prior to this
- elif test "$GCC" = "yes" -a "$GCCVER" -gt "030400"; then
- ENABLE_PCH="TRUE"
- AC_MSG_RESULT([yes])
- else
- ENABLE_PCH=""
- AC_MSG_WARN([Precompiled header not yet supported for your platform/compiler])
- fi
-else
- ENABLE_PCH=""
- AC_MSG_RESULT([no])
-fi
-AC_SUBST(ENABLE_PCH)
-
-dnl ===================================================================
-dnl Search all the common names for GNU make
-dnl ===================================================================
-AC_MSG_CHECKING([for GNU make])
-for a in "$MAKE" $GNUMAKE make gmake gnumake; do
- $a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
- if test $? -eq 0; then
- GNUMAKE=$a
- break
- fi
-done
-AC_MSG_RESULT($GNUMAKE)
-if test -z "$GNUMAKE"; then
- AC_MSG_ERROR([not found. install GNU make.])
-fi
-
-AC_MSG_CHECKING([the GNU make version])
-_make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
-_make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
-if test "$_make_longver" -ge "038100" ; then
- AC_MSG_RESULT([$GNUMAKE $_make_version])
-else
- AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed])
-fi
-AC_SUBST(GNUMAKE)
-
-dnl ===================================================================
-dnl Search for a pre-installed dmake
-dnl ===================================================================
-AC_MSG_CHECKING([for dmake])
-DMAKE="no"
-# Override system dmake if --with-dmake-path or --with-dmake-url is used.
-if test -z "$with_dmake_path" && test -z "$with_dmake_url"; then
- AC_PATH_PROG(DMAKE, dmake, no)
- IS_SYSTEM_DMAKE=NO
- if test "$DMAKE" != "no"; then
- AC_MSG_RESULT([using system dmake])
- DMAKE_PATH="$DMAKE"
- IS_SYSTEM_DMAKE=YES
- fi
-elif test -n "$with_dmake_path" ; then
- # Did not find pre-installed dmake.
- # Is it at a nonstandard location provided by --with-dmake-path ?
- AC_MSG_NOTICE([looking for dmake at $DMAKE_PATH])
- if test -x "$with_dmake_path" ; then
- AC_MSG_RESULT([using user provided dmake])
- DMAKE=$with_dmake_path
- fi
-fi
-
-DMAKE_URL=
-if test "$DMAKE" = "no"; then
- AC_MSG_NOTICE([no system or user-provided dmake found])
- # Check if a URL was supplied from which we can download the source and compile it.
- if test -n "$with_dmake_url" ; then
- # At this moment we can not verify the URL or the content that we want to download.
- # Neither can we apply the test below for ruling out that it is the SunStudio dmake.
- DMAKE_URL=$with_dmake_url
- AC_MSG_RESULT([dmake will be downloaded and compiled in bootstrap])
- DMAKE=
- else
- AC_MSG_ERROR([no URL for dmake source code specified, either. Use --with-dmake-url to supply an URL; run configure with the --help option for a list of possible URLs.])
- BUILD_DMAKE=YES
- fi
-else
- AC_MSG_CHECKING([whether the found dmake is the right dmake])
- # we need to find out whether that dmake we found is "our" dmake
- # or the dmake from Sun's SunStudio Compiler which is something
- # different
- # This test _should_ work because the one accepts -V (ours) and one
- # (the other) not...
- $DMAKE -V 2>/dev/null | grep -E 'dmake(.exe)? .* Version .*' >/dev/null
- if test $? -eq 0; then
- BUILD_DMAKE=NO
- AC_MSG_RESULT([yes])
- AC_MSG_CHECKING([the dmake version])
- DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
- if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
- AC_MSG_RESULT([OK, >= 4.11])
- elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
- test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
- AC_MSG_RESULT([OK, >= 4.11])
- else
- AC_MSG_ERROR([too old. >= 4.11 is needed])
- DMAKE=no
- fi
- else
- AC_MSG_WARN([no])
- DMAKE=no
- fi
-fi
-if test "$DMAKE" = "no"; then
- AC_MSG_ERROR([please use --with-dmake-path or --with-dmake-url to specify dmake executable or source])
-fi
-AC_SUBST(DMAKE_URL)
-AC_SUBST(DMAKE_PATH)
-AC_SUBST(IS_SYSTEM_DMAKE)
-
-
-dnl ===================================================================
-dnl Search all the common names for GNU or BSD tar
-dnl ===================================================================
-AC_MSG_CHECKING([for GNU or compatible BSD tar])
-for a in $GNUTAR gtar gnutar bsdtar tar; do
- $a --version 2> /dev/null | egrep "GNU|libarchive" 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 tar.])
-fi
-
-AC_SUBST(GNUTAR)
-
-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
-
-if test "$GCC" = "yes"; then
- AC_MSG_CHECKING( for --hash-style=both linker support )
- hash_style_ldflags_save=$LDFLAGS
- LDFLAGS="$LDFLAGS -Wl,--hash-style=both"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([
- #include <stdio.h>
- ],[
- printf ("hello world\n");
- ])], HAVE_LD_HASH_STYLE=TRUE, HAVE_LD_HASH_STYLE=FALSE)
- if test "z$HAVE_LD_HASH_STYLE" = "zTRUE"; then
- AC_MSG_RESULT( found )
- else
- AC_MSG_RESULT( not found )
- fi
- LDFLAGS=$hash_style_ldflags_save
-fi
-AC_SUBST(HAVE_LD_HASH_STYLE)
-
-dnl ===================================================================
-dnl Test the Compaq compiler for OSF1
-dnl ===================================================================
-if test "$_os" = "OSF1"; then
- if test "$CC" = "cc"; then
- AC_PATH_PROGS(_cc, cc)
- COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
- AC_MSG_WARN([******* $_cc , $COMPATH])
- AC_MSG_CHECKING([the Compaq C compiler version])
- dnl cc -V outputs to standard error!!!!
- _compaqc_version=`$CC -V 2>&1 | $AWK '{ print $3 }'`
- _compaqc_major=`echo $_compaqc_version | $AWK -F. '{ print $1 }'`
- if test "$_compaqc_major" != "T6"; then
- AC_MSG_ERROR([found version "$_compaqc_version", use version 6 of the Compaq C compiler])
- else
- dnl compiler will do
- AC_MSG_RESULT([checked])
- fi
- fi
-fi
-
-dnl ===================================================================
-dnl Check whether there's a Perl version available.
-dnl ===================================================================
-if test -z "$with_perl_home"; then
- AC_PATH_PROG(PERL, perl)
-else
- if test "$_os" = "WINNT"; then
- with_perl_home=`cygpath -u "$with_perl_home"`
- fi
- _perl_path="$with_perl_home/bin/perl"
- if test -x "$_perl_path"; then
- PERL=$_perl_path
- else
- AC_MSG_ERROR([$_perl_path not found])
- fi
-fi
-
-dnl ===================================================================
-dnl Testing for Perl version 5 or greater.
-dnl $] is the perl version variable, it is returned as an integer
-dnl ===================================================================
-if test "$PERL"; then
- AC_MSG_CHECKING([the Perl version])
- ${PERL} -e "exit($]);"
- _perl_version=$?
- if test "$_perl_version" -lt 5; then
- AC_MSG_ERROR([found Perl version "$_perl_version", use version 5 of Perl])
- fi
- AC_MSG_RESULT([checked (perl $_perl_version)])
-else
- AC_MSG_ERROR([Perl not found, install version 5 of Perl])
-fi
-AC_SUBST(PERL)
-
-dnl ===================================================================
-dnl Testing for required Perl modules
-dnl The list of required Perl modules is documented here:
-dnl http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements
-dnl ===================================================================
-AC_MSG_CHECKING([for required Perl modules])
-if `$PERL -e 'use Archive::Zip; use LWP::UserAgent; use XML::Parser;'>/dev/null 2>&1`; then
- AC_MSG_RESULT([all modules found])
-else
- # Find out which modules are missing.
- missing_perl_modules=
- if ! `$PERL -e 'use Archive::Zip;'>/dev/null 2>&1`; then
- missing_perl_modules=Archive::Zip
- fi
- if ! `$PERL -e 'use LWP::UserAgent;'>/dev/null 2>&1`; then
- missing_perl_modules="$missing_perl_modules LWP::UserAgent"
- fi
- if ! `$PERL -e 'use XML::Parser;'>/dev/null 2>&1`; then
- missing_perl_modules="$missing_perl_modules XML::Parser"
- fi
- AC_MSG_ERROR([
- The missing Perl modules are: $missing_perl_modules
- Install them as superuser/administrator with "cpan -i $missing_perl_modules"])
-fi
-
-dnl ===================================================================
-dnl Check which Microsoft C/C++ or MinGW compiler is used for WINNT
-dnl ===================================================================
-if test "$_os" = "WINNT"; then
- if test "$WITH_MINGWIN" != "yes"; then
- AC_MSG_CHECKING([for friendly registry keys])
- # VS.Net 2003, VS.Net 2005
- if test -z "$with_cl_home"; then
- vctest=`./oowintool --msvc-productdir`;
- if test -x "$vctest/bin/cl.exe"; then
- with_cl_home=$vctest;
- fi
- else
- with_cl_home=`cygpath -u "$with_cl_home"`
- fi
- AC_MSG_RESULT([done])
-
- dnl ===========================================================
- dnl Check for mspdb71.dll/mspdb80.dll
- dnl ===========================================================
- dnl .NET 2003/5/8 Compiler
- if test -n "$with_mspdb_path";then
- with_mspdb_path=`cygpath -u "$with_mspdb_path"`
- fi
- if test -e "$with_mspdb_path/mspdb71.dll" -o -e "$with_mspdb_path/mspdb80.dll"; then
- MSPDB_PATH="$with_mspdb_path"
- fi
- dnl .NET 2003 case
- if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb71.dll"; then
- MSPDB_PATH="$with_cl_home/../Common7/IDE"
- fi
- dnl .NET 2005/2008 case
- if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb80.dll"; then
- MSPDB_PATH="$with_cl_home/../Common7/IDE"
- fi
- dnl Windows SDK 6.0 case
- if test -z "$MSPDB_PATH" -a -e "$with_cl_home/bin/mspdb80.dll"; then
- MSPDB_PATH="$with_cl_home/bin"
- fi
-
- if test -z "$MSPDB_PATH";then
- dnl AC_PATH_PROG only checks if MSPDB_PATH is still empty
- AC_PATH_PROG(MSPDB_PATH, mspdb80.dll)
- AC_PATH_PROG(MSPDB_PATH, mspdb71.dll)
- MSPDB_PATH=`dirname "$MSPDB_PATH"`
- fi
-
- if test -z "$MSPDB_PATH"; then
- AC_MSG_ERROR([You need a mspdb71.dll/mspdb80.dll, make sure it's in the path or use --with-mspdb-path])
- fi
- MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
- MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
- dnl The path needs to be added before cl is called
- PATH="$MSPDB_PATH:$PATH"
-
- AC_MSG_CHECKING([the Microsoft C/C++ Compiler])
- if test -x "$with_cl_home/bin/cl.exe"; then
- CC="$with_cl_home/bin/cl.exe"
- else
- AC_PATH_PROG(CC, cl.exe)
- fi
- if test -e "$CC"; then
- # This gives us a posix path with 8.3 filename restrictions
- CC=`cygpath -d "$CC"`
- CC=`cygpath -u "$CC"`
- # Remove /cl.exe from CC case insensitive
- AC_MSG_RESULT([found ($CC)])
- COMPATH=`echo $CC | $SED 's@\/[[Bb]][[Ii]][[Nn]]\/[[cC]][[lL]]\.[[eE]][[xX]][[eE]]@@'`
- export INCLUDE=`cygpath -d "$COMPATH/Include"`
- dnl Check which Microsoft C/C++ compiler is found
- AC_MSG_CHECKING([the Version of Microsoft C/C++ Compiler])
-dnl The following find microsoft, matches nn.nn.nnnn then pulls numbers out.
- CCTXTVER=`$CC 2>&1 | head -n1`
- CCNUMVER=`echo $CCTXTVER | $AWK "/Microsoft/ && /..\\...\\...../ {
- x = match( \\\$0, /..\\...\\...../ )
- CCversion = substr( \\\$0, RSTART, RLENGTH)
- tokencount = split (CCversion,vertoken,\".\")
- for ( i = 1 ; i <= tokencount ; i++ ) {
- printf (\"%04d\",vertoken[[i]] )
- }
- }"`
- AC_MSG_RESULT([found Compiler version $CCNUMVER in \"$CCTXTVER\"])
- if test "$CCNUMVER" -ge "001500000000"; then
- COMEX=12
- MSVSVER=2008
- AC_MSG_RESULT([found .NET 2008 / VS 9.0.])
- else
- AC_MSG_ERROR([Compiler too old. Use Microsoft C/C++ .NET 2008.])
- fi
- else
- AC_MSG_ERROR([Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe.])
- fi
- else
- AC_MSG_CHECKING([the Mingwin32 C++ Compiler])
- if test `$CC -dumpmachine | $SED -e 's/^.*-//'` = "mingw32"; then
- AC_MSG_RESULT([found.])
- if $CC -dumpspecs | grep -q "mno-cygwin"; then
- USE_MINGW="cygwin"
- else
- USE_MINGW="pure-mingw"
- fi
- else
- AC_MSG_ERROR([Mingwin32 C++ Compiler not found.])
- fi
- fi
-fi
-AC_SUBST(COMEX)
-AC_SUBST(MSPDB_PATH)
-AC_SUBST(USE_MINGW)
-
-dnl ===================================================================
-dnl .NET needs special treatment
-dnl ===================================================================
-if test "$_os" = "WINNT"; then
-if test "$WITH_MINGWIN" = "yes" || test "$COMEX" -ge "10"; then
- dnl Check midl.exe
- AC_PATH_PROG(MIDL_PATH, midl.exe)
- if test -n "$MIDL_PATH";then
- MIDL_PATH=`dirname "$MIDL_PATH"`
- fi
- if test -n "$with_midl_path";then
- with_midl_path=`cygpath -u "$with_midl_path"`
- fi
- if test -x "$with_midl_path/midl.exe"; then
- MIDL_PATH="$with_midl_path"
- fi
- if test -z "$MIDL_PATH" -a -e "$with_cl_home/../Common7/Tools/Bin/midl.exe"; then
- MIDL_PATH="$with_cl_home/../Common7/Tools/Bin"
- fi
- if test -z "$MIDL_PATH" ; then
- vstest=`./oowintool --msvs-productdir`;
- if test -x "$vstest/Common7/Tools/Bin/midl.exe" ; then
- MIDL_PATH="$vstest/Common7/Tools/Bin"
- fi
- fi
- if test -z "$MIDL_PATH" ; then
- psdktest=`./oowintool --psdk-home`
- if test -x "$psdktest/Bin/midl.exe" ; then
- MIDL_PATH="$psdktest/Bin"
- fi
- fi
- if test ! -x "$MIDL_PATH/midl.exe"; then
- AC_MSG_ERROR([midl.exe not found. Make sure it's in the path or use --with-midl-path])
- fi
- # Convert to posix path with 8.3 filename restrictions ( No spaces )
- MIDL_PATH=`cygpath -d "$MIDL_PATH"`
- MIDL_PATH=`cygpath -u "$MIDL_PATH"`
-
- dnl Check csc.exe
- AC_PATH_PROG(CSC_PATH, csc.exe)
- if test -n "$CSC_PATH";then
- CSC_PATH=`dirname "$CSC_PATH"`
- fi
- if test -n "$with_csc_path";then
- with_csc_path=`cygpath -u "$with_csc_path"`
- fi
- if test -x "$with_csc_path/csc.exe"; then
- CSC_PATH="$with_csc_path"
- else
- csctest=`./oowintool --csc-compilerdir`;
- if test -x "$csctest/csc.exe"; then
- CSC_PATH="$csctest"
- fi
- fi
- if test ! -x "$CSC_PATH/csc.exe"; then
- AC_MSG_ERROR([csc.exe not found. Make sure it's in the path or use --with-csc-path])
- fi
- # Convert to posix path with 8.3 filename restrictions ( No spaces )
- CSC_PATH=`cygpath -d "$CSC_PATH"`
- CSC_PATH=`cygpath -u "$CSC_PATH"`
-
- dnl Check mscoree.lib / .NET Frameworks dir
- dnl For VS2003/2005 $with_frame_home has to point to the directory with lib/mscoree.lib.
- AC_MSG_CHECKING(.NET Framework)
- if test -n "$with_frame_home"; then
- with_frame_home=`cygpath -u "$with_frame_home"`
- fi
- if test -f "$with_frame_home/lib/mscoree.lib"; then
- FRAME_HOME="$with_frame_home"
- fi
- if test -z "$FRAME_HOME" -a -e "$with_cl_home/../SDK/v1.1/lib/mscoree.lib"; then
- FRAME_HOME="$with_cl_home/../SDK/v1.1"
- fi
- if test -z "$FRAME_HOME" ; then
- frametest=`./oowintool --dotnetsdk-dir`
- if test -f "$frametest/lib/mscoree.lib"; then
- FRAME_HOME="$frametest"
- else
- frametest=`./oowintool --psdk-home`
- if test -f "$frametest/lib/mscoree.lib"; then
- FRAME_HOME="$frametest"
- fi
- fi
- fi
- if test ! -f "$FRAME_HOME/lib/mscoree.lib"; then
- AC_MSG_ERROR([mscoree.lib (.NET Framework) not found. Make sure you use --with-frame-home])
- fi
- AC_MSG_RESULT(found)
- # Convert to posix path with 8.3 filename restrictions ( No spaces )
- FRAME_HOME=`cygpath -d "$FRAME_HOME"`
- FRAME_HOME=`cygpath -u "$FRAME_HOME"`
-fi
-AC_SUBST(MIDL_PATH)
-AC_SUBST(CSC_PATH)
-AC_SUBST(FRAME_HOME)
-fi
-
-dnl ===================================================================
-dnl Check if stdc headers are available excluding windows.
-dnl ===================================================================
-if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
- AC_HEADER_STDC
-fi
-
-dnl ===================================================================
-dnl Find pre-processors.
-dnl ===================================================================
-if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
- AC_PROG_CXXCPP
-
-dnl Check whether there's a C pre-processor.
-dnl ===================================================================
-dnl When using SunStudio compiler, there is a bug with the cc
-dnl preprocessor, so use CC preprocessor as the cc preprocessor
-dnl See Issuezilla #445.
-dnl ===================================================================
- if test "$_os" = "SunOS"; then
- CPP=$CXXCPP
- else
- AC_PROG_CPP
- fi
-fi
-
-AC_CHECK_SIZEOF(long)
-SIZEOF_LONG=$ac_cv_sizeof_long
-AC_SUBST(SIZEOF_LONG)
-AC_C_BIGENDIAN
-WORDS_BIGENDIAN=$ac_cv_c_bigendian
-AC_SUBST(WORDS_BIGENDIAN)
-
-dnl Check for large file support
-AC_SYS_LARGEFILE
-if test -n "$ac_cv_sys_file_offset_bits"; then
- LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
-fi
-if test -n "$ac_cv_sys_large_files" && test "$ac_cv_sys_large_files" != "no"; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
-fi
-AC_SUBST(LFS_CFLAGS)
-
-dnl ===================================================================
-dnl Check if valgrind.h is available
-dnl ===================================================================
-if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
- dnl Test $prefix (currently only testing for /usr and /usr/local)
- dnl so that VALGRIND_CFLAGS = -I$prefix/include/valgrind
- VALGRIND_CFLAGS=""
- prev_cppflags=$CPPFLAGS
- if test -z "$VALGRIND_CFLAGS"; then
- CPPFLAGS="-I/usr/include/valgrind"
- AC_CHECK_HEADER([valgrind.h], [VALGRIND_CFLAGS=$CPPFLAGS], [unset ac_cv_header_valgrind_h])
- fi
- if test -z "$VALGRIND_CFLAGS"; then
- CPPFLAGS="-I/usr/local/include/valgrind"
- AC_CHECK_HEADER([valgrind.h], [VALGRIND_CFLAGS=$CPPFLAGS], [])
- fi
- if test -n "$VALGRIND_CFLAGS"; then
- CPPFLAGS=$VALGRIND_CFLAGS
- AC_CHECK_HEADER([memcheck.h], [], [VALGRIND_CFLAGS=""])
- fi
- CPPFLAGS=$prev_cppflags
-fi
-AC_SUBST([VALGRIND_CFLAGS])
-
-dnl ===================================================================
-dnl Check if cups/cups.h is available
-dnl ===================================================================
-if test "$test_cups" = "yes" -a "$ENABLE_CUPS" = "TRUE" ; then
- AC_CHECK_HEADER(cups/cups.h, [],
- [AC_MSG_ERROR([cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?])], [])
-fi
-
-dnl ===================================================================
-dnl Check if PAM/pam_appl.h is available on Linux or FreeBSD
-dnl ===================================================================
-if test "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "GNU"; then
- AC_MSG_CHECKING([whether to enable pam support])
- if test -z "$enable_pam" || test "$enable_pam" != "no"; then
- AC_MSG_RESULT([yes])
- PAM=YES
- AC_CHECK_HEADER(security/pam_appl.h, [],
- [AC_MSG_ERROR([pam_appl.h could not be found. libpam-dev or pam-devel missing?])], [])
- AC_MSG_CHECKING([whether to link to libpam])
- if test -n "$enable_pam_link" -a "$enable_pam_link" != "no"; then
- AC_MSG_RESULT([yes])
- PAM_LINK=YES
- AC_CHECK_LIB(pam, pam_start, [],
- [AC_MSG_ERROR(libpam not found or functional)], [])
- else
- AC_MSG_RESULT([no, dynamically open it])
- PAM_LINK=NO
- fi
- else
- AC_MSG_RESULT([no])
- PAM=NO
- PAM_LINK=NO
- dnl check getspnam_r for needed args (4 or 5)
- AX_FUNC_WHICH_GETSPNAM_R
- fi
-fi
-AC_SUBST(PAM)
-AC_SUBST(NEW_SHADOW_API)
-AC_SUBST(PAM_LINK)
-
-if test "$_os" = "Linux"; then
- AC_MSG_CHECKING([whether to link to libcrypt])
- if test -n "$enable_crypt_link" -a "$enable_crypt_link" != "no"; then
- AC_MSG_RESULT([yes])
- CRYPT_LINK=YES
- AC_CHECK_LIB(crypt, crypt, [],
- [AC_MSG_ERROR(libcrypt not found or functional)], [])
- else
- AC_MSG_RESULT([no, dynamically open it])
- CRYPT_LINK=NO
- fi
-fi
-AC_SUBST(CRYPT_LINK)
-
-dnl ===================================================================
-dnl Testing for c++ compiler and version...
-dnl ===================================================================
-if test -n "$with_gcc_home"; then
- if test -z "$CXX"; then
- CXX="$with_gcc_home/bin/g++"
- fi
-fi
-
-if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
- if test -e "$CC"; then
- CXX="$CC"
- fi
-fi
-
-dnl Autoconf 2.53 can do this test for cl.exe, 2.13 can't!
-if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
- AC_PROG_CXX
-fi
-
-dnl check if we are using a buggy version of g++ (currently 3.4.0, 3.4.1 and trunk)
-if test "$GXX" = "yes"; then
- AC_MSG_CHECKING([the GNU C++ compiler version])
-
- _gpp_version=`$CXX -dumpversion`
- _gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'`
-
- AC_MSG_RESULT([checked (g++ $_gpp_version)])
-
- if test "$_gpp_majmin" = "304"; then
- AC_MSG_CHECKING([whether $CXX has the enum bug])
-AC_TRY_RUN([
-extern "C" void abort (void);
-extern "C" void exit (int status);
-
-enum E { E0, E1, E2, E3, E4, E5 };
-
-void
-test (enum E e)
-{
- if (e == E2 || e == E3 || e == E1)
- exit (1);
-}
-
-int
-main (void)
-{
- test (E4);
- test (E5);
- test (E0);
- return 0;
-}
-],[AC_MSG_ERROR([your version of the GNU C++ compile has a bug which prevents Apache OpenOffice from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details.])], [AC_MSG_RESULT([no])])
- fi
-fi
-
-dnl ===================================================================
-dnl Set the gcc/gxx include directories
-dnl ===================================================================
-# Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
-# often contains an i386 which is expanded as a macro.
-if test "$GXX" = "yes"; then
- AC_MSG_CHECKING([for g++ include path])
- if test -z "$with_gxx_include_path"; then
- with_gxx_include_path=`echo "#include <cstring>" | $CXX -E -xc++ - | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
- if test "$with_gxx_include_path" = "/usr/libexec/(null)/include"; then
- with_gxx_include_path="/usr/include"
- fi
- if test "$WITH_MINGWIN" = "yes"; then
- with_gxx_include_path=`cygpath -d "$with_gxx_include_path"`
- with_gxx_include_path=`cygpath -u "$with_gxx_include_path"`
- fi
- if echo $with_gxx_include_path | grep -q linux; then
- # workaround for Mandriva - issue 100049
- with_gxx_include_path=`cd $with_gxx_include_path && pwd`
- fi
- fi
-fi
-dnl This is the original code...
-dnl with_gxx_include_path=`$CXX -print-search-dirs | grep instal |$AWK '{ print \$2 }'`/include
-if test -z "$with_gxx_include_path"; then
- with_gxx_include_path="NO_GXX_INCLUDE"
- AC_MSG_RESULT([no g++ includes])
-else
- AC_MSG_RESULT([$with_gxx_include_path])
-fi
-GXX_INCLUDE_PATH="$with_gxx_include_path"
-AC_SUBST(GXX_INCLUDE_PATH)
-
-dnl ===================================================================
-dnl Set the mingw runtime library include directories
-dnl ===================================================================
-if test "$WITH_MINGWIN" = "yes"; then
- AC_MSG_CHECKING([for mingwin runtime include path])
- cat >conftest.$ac_ext <<_ACEOF
-#include <stddef.h>
-#include <bits/c++config.h>
-_ACEOF
- _mingw_lib_include_path=`$CXX -E -xc++ conftest.$ac_ext | $SED -n -e '/.*1*"\(.*\)\/stddef.h".*/s//\1/p' -e '/.*1*"\(.*\)\/bits\/c++config.h".*/s//\1/p' | sort -u | xargs echo`
- rm conftest.$ac_ext
- if test -n "$_mingw_lib_include_path"; then
- _temp=""
- for a in $_mingw_lib_include_path
- do
- a=`cygpath -d "$a"`
- _temp="$_temp "`cygpath -u "$a"`
- done
- _mingw_lib_include_path=$_temp
- fi
- if test -z "$_mingw_lib_include_path"; then
- _mingw_lib_include_path="NO_LIB_INCLUDE"
- AC_MSG_RESULT([no mingwin runtime includes])
- else
- AC_MSG_RESULT([$_mingw_lib_include_path])
- fi
- MINGW_LIB_INCLUDE_PATH="$_mingw_lib_include_path"
- AC_SUBST(MINGW_LIB_INCLUDE_PATH)
-dnl mingw gcc 4.4.0 needs backward in include path to use hash_set/hash_map
- AC_MSG_CHECKING([for mingwin c++ backward include path])
- cat >conftest.$ac_ext <<_ACEOF
-#include <hash_set>
-_ACEOF
- _mingw_backward_include_path=`$CXX -E -xc++ -Wno-deprecated conftest.$ac_ext 2>&5| $SED -n -e '/.*1*"\(.*\)\/hash_set".*/s//\1/p' | sort -u | xargs echo`
- rm conftest.$ac_ext
- if test -n "$_mingw_backward_include_path"; then
- _mingw_backward_include_path=`cygpath -d $_mingw_backward_include_path`
- _mingw_backward_include_path=`cygpath -u $_mingw_backward_include_path`
- AC_MSG_RESULT([$_mingw_backward_include_path])
- else
- _mingw_backward_include_path="NO_BACKWARD_INCLUDE"
- AC_MSG_RESULT([no mingwin c++ backward includes])
- fi
- MINGW_BACKWARD_INCLUDE_PATH="$_mingw_backward_include_path"
- AC_SUBST(MINGW_BACKWARD_INCLUDE_PATH)
- mingw_crtbegin=`$CC -print-file-name=crtbegin.o`
- MINGW_CLIB_DIR=`dirname $mingw_crtbegin`
- AC_MSG_CHECKING([whether to use dynamic libgcc])
- if test -e "$MINGW_CLIB_DIR/libgcc_s.a"; then
- AC_MSG_CHECKING([dynamic libgcc name])
- MINGW_GCCDLL_pattern=`nm $MINGW_CLIB_DIR/libgcc_s.a | sed -ne 's at .* _libgcc\(.*\)_dll_iname at libgcc\1.dll at p' | uniq | sed -e 's at _@?@g'`
- MINGW_GCCDLL=`cd $COMPATH/bin && ls $MINGW_GCCDLL_pattern 2>/dev/null`
- if test -n "$MINGW_GCCDLL"; then
- MINGW_SHARED_GCCLIB=YES
- AC_MSG_RESULT([use $MINGW_GCCDLL])
- else
- AC_MSG_RESULT([no])
- fi
- else
- AC_MSG_RESULT([no])
- fi
- if test -e "$MINGW_CLIB_DIR/libgcc_eh.a"; then
- MINGW_GCCLIB_EH=YES
- fi
- AC_MSG_CHECKING([whether to use dynamic libstdc++])
- MINGW_SHARED_LIBSTDCPP=
- if test -e "$MINGW_CLIB_DIR/libstdc++_s.a" ; then
- MINGW_SHARED_LIBSTDCPP=stdc++_s
- fi
- if test -e "$MINGW_CLIB_DIR/libstdc++.dll.a" ; then
- MINGW_SHARED_LIBSTDCPP=stdc++.dll
- fi
- if test -n "$MINGW_SHARED_LIBSTDCPP" ; then
- AC_MSG_CHECKING([dynamic libstdc++ name])
- MINGW_GXXDLL_pattern=`nm $MINGW_CLIB_DIR/lib$MINGW_SHARED_LIBSTDCPP.a | sed -ne 's at .* _libstdc__\(.*\)_dll_iname at libstdc++\1.dll at p' | uniq | sed -e 's at _@?@g'`
- MINGW_GXXDLL=`cd $COMPATH/bin && ls $MINGW_GXXDLL_pattern 2>/dev/null`
- if test -n "$MINGW_GXXDLL"; then
- MINGW_SHARED_LIBSTDCPP=-l$MINGW_SHARED_LIBSTDCPP
- MINGW_SHARED_GXXLIB=YES
- AC_MSG_RESULT([use $MINGW_GXXDLL])
- else
- MINGW_SHARED_LIBSTDCPP=
- AC_MSG_RESULT([no])
- fi
- else
- AC_MSG_RESULT([no])
- fi
- MINGW_CLIB_DIR=`cygpath $MINGW_CLIB_DIR`
- AC_SUBST(MINGW_CLIB_DIR)
- AC_SUBST(MINGW_SHARED_GCCLIB)
- AC_SUBST(MINGW_GCCLIB_EH)
- AC_SUBST(MINGW_SHARED_GXXLIB)
- AC_SUBST(MINGW_SHARED_LIBSTDCPP)
- AC_SUBST(MINGW_GCCDLL)
- AC_SUBST(MINGW_GXXDLL)
-fi
-
-dnl ===================================================================
-dnl Extra checking for the SUN OS compiler
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list