configure.ac (407bc2ee) configure.ac (e986c8d8)
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 14 unchanged lines hidden (view full) ---

23AC_INIT()
24echo "$@" >config.parms
25AC_ARG_WITH(dmake-path,
26[ --with-dmake-path=<PATH TO EXECUTABLE> Specify the location of dmake ],
27[ DMAKE_PATH="$withval"
28])
29AC_ARG_WITH(dmake-url,
30[ --with-dmake-url=<URL> Specify the location of downloadable dmake source code. For example:
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 14 unchanged lines hidden (view full) ---

23AC_INIT()
24echo "$@" >config.parms
25AC_ARG_WITH(dmake-path,
26[ --with-dmake-path=<PATH TO EXECUTABLE> Specify the location of dmake ],
27[ DMAKE_PATH="$withval"
28])
29AC_ARG_WITH(dmake-url,
30[ --with-dmake-url=<URL> Specify the location of downloadable dmake source code. For example:
31 http://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2
31 https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2
32 Note that dmake is under GPL license.],
33[ DMAKE_URL="$withval"
34])
35AC_ARG_WITH(packager-list,
36[ --with-packager-list=<PATH TO PACK LIST> Specify a file to drive the packaging process.
37 The file must follow the format explained in
38 instsetoo_native/util/pack.lst
39],,)

--- 30 unchanged lines hidden (view full) ---

70AC_ARG_WITH(external-tar,
71[ --with-external-tar=<TARFILE PATH> Specify path to tarfiles manually ],
72[ TARFILE_LOCATION="$withval"
73])
74AC_ARG_WITH(openldap,
75[ --with-openldap Enables the use of the OpenLDAP
76],,)
77AC_ARG_ENABLE(lockdown,
32 Note that dmake is under GPL license.],
33[ DMAKE_URL="$withval"
34])
35AC_ARG_WITH(packager-list,
36[ --with-packager-list=<PATH TO PACK LIST> Specify a file to drive the packaging process.
37 The file must follow the format explained in
38 instsetoo_native/util/pack.lst
39],,)

--- 30 unchanged lines hidden (view full) ---

70AC_ARG_WITH(external-tar,
71[ --with-external-tar=<TARFILE PATH> Specify path to tarfiles manually ],
72[ TARFILE_LOCATION="$withval"
73])
74AC_ARG_WITH(openldap,
75[ --with-openldap Enables the use of the OpenLDAP
76],,)
77AC_ARG_ENABLE(lockdown,
78[ --enable-lockdown Enables the gconf integration work in OOo
78[ --enable-lockdown Enables the gconf integration work in AOO
79],,)
80AC_ARG_ENABLE(vba,
81[ --disable-vba disables the vba compatibility feature
82],,)
83AC_ARG_WITH(vba-package-format,
84[ --with-vba-package-format specify package format for vba compatibility api.
79],,)
80AC_ARG_ENABLE(vba,
81[ --disable-vba disables the vba compatibility feature
82],,)
83AC_ARG_WITH(vba-package-format,
84[ --with-vba-package-format specify package format for vba compatibility api.
85 Specifying "builtin" means the api component and
86 associated type library are part of the installation set.
85 Specifying "builtin" means the api component and
86 associated type library are part of the installation set.
87 Specifying "extn" creates an uno extension that is
87 Specifying "extn" creates an uno extension that is
88 part of the installation set ( located in the program
88 part of the installation set ( located in the program
89 directory ) that MUST be optionly registered using
90 either the unopkg executeable or the extension manager
91 gui.
89 directory ) that MUST be optionly registered using
90 either the unopkg executeable or the extension manager
91 gui.
92
92
93 Note: "builtin" is the default, "extn" can cause
94 problems.
95 Usage: --with-vba-package-format="builtin" or
96 --with-vba-package-format="extn"
93 Note: "builtin" is the default, "extn" can cause
94 problems.
95 Usage: --with-vba-package-format="builtin" or
96 --with-vba-package-format="extn"
97],,)
97],,)
98AC_ARG_ENABLE(pch,
99[ --enable-pch EXPERIMENTAL: Enables precompiled header support for C++.
100],,)
101AC_ARG_WITH(fonts,
98AC_ARG_ENABLE(pch,
99[ --enable-pch EXPERIMENTAL: Enables precompiled header support for C++.
100],,)
101AC_ARG_WITH(fonts,
102[ --without-fonts OOo includes some third-party fonts to provide a reliable
102[ --without-fonts AOO includes some third-party fonts to provide a reliable
103 basis for help content, templates, samples, etc.
104 When these fonts are already known to be available on the
105 system then you should use this option.
106],,)
107AC_ARG_WITH(ppds,
108[ --without-ppds Removes Postscript Printer definition files from
109 Apache Openoffice installation set, for people building
110 for specific distributions where PPDs are known to be

--- 21 unchanged lines hidden (view full) ---

132[ --with-epm-url=<URL> Specify the location of downloadable epm source code. For example:
133 https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz
134 or
135 http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
136 Version 3.7 or later is required. Note that epm is under GPL license.
137],[ EPM_URL="$withval"
138])
139AC_ARG_WITH(package-format,
103 basis for help content, templates, samples, etc.
104 When these fonts are already known to be available on the
105 system then you should use this option.
106],,)
107AC_ARG_WITH(ppds,
108[ --without-ppds Removes Postscript Printer definition files from
109 Apache Openoffice installation set, for people building
110 for specific distributions where PPDs are known to be

--- 21 unchanged lines hidden (view full) ---

132[ --with-epm-url=<URL> Specify the location of downloadable epm source code. For example:
133 https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz
134 or
135 http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz
136 Version 3.7 or later is required. Note that epm is under GPL license.
137],[ EPM_URL="$withval"
138])
139AC_ARG_WITH(package-format,
140[ --with-package-format specify package format(s) for OOo installsets.
140[ --with-package-format specify package format(s) for AOO installsets.
141 Default is "normal" one of the OS/Distribution.
142
143 Usage: --with-package-format="foo bar"
144],,)
145AC_ARG_ENABLE(odk,
146[ --disable-odk AOO includes an ODK, office development kit
147 which some packagers may want to build without
148],,enable_odk="yes")

--- 100 unchanged lines hidden (view full) ---

249],,)
250AC_ARG_ENABLE(werror,
251[ --enable-werror Turn warnings to errors. (Has no effect in modules
252 where the treating of warnings as errors is disabled
253 explicitly)
254],,)
255AC_ARG_ENABLE(debug,
256[ --enable-debug Include debugging symbols from --enable-symbols
141 Default is "normal" one of the OS/Distribution.
142
143 Usage: --with-package-format="foo bar"
144],,)
145AC_ARG_ENABLE(odk,
146[ --disable-odk AOO includes an ODK, office development kit
147 which some packagers may want to build without
148],,enable_odk="yes")

--- 100 unchanged lines hidden (view full) ---

249],,)
250AC_ARG_ENABLE(werror,
251[ --enable-werror Turn warnings to errors. (Has no effect in modules
252 where the treating of warnings as errors is disabled
253 explicitly)
254],,)
255AC_ARG_ENABLE(debug,
256[ --enable-debug Include debugging symbols from --enable-symbols
257 plus extra debugging code. Extra large build!
257 plus extra debugging code. Extra large build!
258 (enables -g compiler flag and dmake debug=true)
259],,)
260AC_ARG_ENABLE(dbgutil,
261[ --enable-dbgutil Include additional debugging utilities, such as
262 assertions, object counting, etc. Larger build.
263 Independent from --enable-debug
264],,)
265AC_ARG_ENABLE(crashdump,

--- 375 unchanged lines hidden (view full) ---

641AC_ARG_WITH(stlport,
642[ --with-stlport Only building --without-stlport is supported.
643], WITH_STLPORT=$withval , WITH_STLPORT=no)
644AC_ARG_WITH(jdk-home,
645[ --with-jdk-home if you have installed JDK 1.3 or later on your system
646 please supply the path here.
647 Note that this is not the location of the Java binary
648 but the location of the entire distribution.
258 (enables -g compiler flag and dmake debug=true)
259],,)
260AC_ARG_ENABLE(dbgutil,
261[ --enable-dbgutil Include additional debugging utilities, such as
262 assertions, object counting, etc. Larger build.
263 Independent from --enable-debug
264],,)
265AC_ARG_ENABLE(crashdump,

--- 375 unchanged lines hidden (view full) ---

641AC_ARG_WITH(stlport,
642[ --with-stlport Only building --without-stlport is supported.
643], WITH_STLPORT=$withval , WITH_STLPORT=no)
644AC_ARG_WITH(jdk-home,
645[ --with-jdk-home if you have installed JDK 1.3 or later on your system
646 please supply the path here.
647 Note that this is not the location of the Java binary
648 but the location of the entire distribution.
649
649
650 Usage: --with-jdk-home=<absolute path to JDK home>
651],,)
652AC_ARG_WITH(java,
650 Usage: --with-jdk-home=<absolute path to JDK home>
651],,)
652AC_ARG_WITH(java,
653[ --with-java Build with[[out]] Java support. If you use
653[ --with-java Build with[[out]] Java support. If you use
654 --without-java/--with-java=no then the build will have
655 no support for Java components, applets, accessibility
656 or XML filters.
657], if test "$withval" = "yes"; then WITH_JAVA=java; else WITH_JAVA=$withval; fi, WITH_JAVA=java)
658AC_ARG_ENABLE(gcjaot,
659[ --enable-gcjaot Build with[[out]] using Ahead of Time java compilation
660 support to speed up buildsi by compiling the jars also
661 to native code..
662 --enable-gcjaot is only known to work with bytecode
663 created with gcj or ecj
664],,)
665AC_ARG_WITH(ant-home,
666[ --with-ant-home If you have installed Apache Ant on your system,
667 please supply the path here.
668 Note that this is not the location of the Ant binary
669 but the location of the entire distribution.
654 --without-java/--with-java=no then the build will have
655 no support for Java components, applets, accessibility
656 or XML filters.
657], if test "$withval" = "yes"; then WITH_JAVA=java; else WITH_JAVA=$withval; fi, WITH_JAVA=java)
658AC_ARG_ENABLE(gcjaot,
659[ --enable-gcjaot Build with[[out]] using Ahead of Time java compilation
660 support to speed up buildsi by compiling the jars also
661 to native code..
662 --enable-gcjaot is only known to work with bytecode
663 created with gcj or ecj
664],,)
665AC_ARG_WITH(ant-home,
666[ --with-ant-home If you have installed Apache Ant on your system,
667 please supply the path here.
668 Note that this is not the location of the Ant binary
669 but the location of the entire distribution.
670
670
671 Usage: --with-ant-home=<absolute path to Ant home>
672],,)
673AC_ARG_WITH(junit,
674[ --with-junit Specifies the JUnit 4 jar file to use for JUnit-based
675 tests. --without-junit disables those tests. Not
676 relevant in the --without-java case.
677
678 Usage: --with-junit=<absolute path to JUnit 4 jar>

--- 5 unchanged lines hidden (view full) ---

684 --without-junit cases, and only needed for recent
685 versions of JUnit. (Default: disabled.)
686],,with_hamcrest_core=no)
687AC_ARG_WITH(perl-home,
688[ --with-perl-home If you have installed the Perl 5 Distribution, on your
689 system, please supply the path here.
690 Note that this is not the location of the Perl binary
691 but the location of the entire distribution.
671 Usage: --with-ant-home=<absolute path to Ant home>
672],,)
673AC_ARG_WITH(junit,
674[ --with-junit Specifies the JUnit 4 jar file to use for JUnit-based
675 tests. --without-junit disables those tests. Not
676 relevant in the --without-java case.
677
678 Usage: --with-junit=<absolute path to JUnit 4 jar>

--- 5 unchanged lines hidden (view full) ---

684 --without-junit cases, and only needed for recent
685 versions of JUnit. (Default: disabled.)
686],,with_hamcrest_core=no)
687AC_ARG_WITH(perl-home,
688[ --with-perl-home If you have installed the Perl 5 Distribution, on your
689 system, please supply the path here.
690 Note that this is not the location of the Perl binary
691 but the location of the entire distribution.
692
692
693 Usage: --with-perl-home=<absolute path to Perl 5 home>
694],,)
695AC_ARG_WITH(cl-home,
696[ --with-cl-home For Windows NT users, please supply the path
697 for the Microsoft C/C++ compiler.
698 Note that this is not the location of the compiler
699 binary but the location of the entire distribution.
693 Usage: --with-perl-home=<absolute path to Perl 5 home>
694],,)
695AC_ARG_WITH(cl-home,
696[ --with-cl-home For Windows NT users, please supply the path
697 for the Microsoft C/C++ compiler.
698 Note that this is not the location of the compiler
699 binary but the location of the entire distribution.
700
700
701 Usage: --with-cl-home=<absolute path to Microsoft C/C++ compiler home>
702],,)
703AC_ARG_WITH(mspdb-path,
704[ --with-mspdb-path For Microsoft C/C++ compiler users, please supply the
705 path pointing to the mspdb71.dll (.NET 2003).
701 Usage: --with-cl-home=<absolute path to Microsoft C/C++ compiler home>
702],,)
703AC_ARG_WITH(mspdb-path,
704[ --with-mspdb-path For Microsoft C/C++ compiler users, please supply the
705 path pointing to the mspdb71.dll (.NET 2003).
706
706
707 Usage: --with-mspdb-path=<absolute path to mspdb71.dll>
708],,)
709AC_ARG_WITH(midl-path,
710[ --with-midl-path For Microsoft C/C++ .NET compiler users, please supply
711 the path pointing to the midl.exe.
707 Usage: --with-mspdb-path=<absolute path to mspdb71.dll>
708],,)
709AC_ARG_WITH(midl-path,
710[ --with-midl-path For Microsoft C/C++ .NET compiler users, please supply
711 the path pointing to the midl.exe.
712
712
713 Usage: --with-midl-path=<absolute path to midl.exe>
714],,)
715AC_ARG_WITH(csc-path,
716[ --with-csc-path For Microsoft C/C++ .NET compiler users, please supply
717 the path pointing to the csc.exe.
713 Usage: --with-midl-path=<absolute path to midl.exe>
714],,)
715AC_ARG_WITH(csc-path,
716[ --with-csc-path For Microsoft C/C++ .NET compiler users, please supply
717 the path pointing to the csc.exe.
718
718
719 Usage: --with-csc-path=<absolute path to csc.exe>
720],,)
721AC_ARG_WITH(nsis-path,
722[ --with-nsis-path For Windows users, please supply the path to the
723 "Nullsoft Scriptable Install System" (NSIS). If NSIS
724 is found in the path or this option is supplied a self
725 contained executable installer for Apache OpenOffice
726 will be created.

--- 11 unchanged lines hidden (view full) ---

738 like:
739 "/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Vc7"
740
741 Usage: --with-frame-home=<absolute path to Framework SDK [[home]]>
742],,)
743AC_ARG_WITH(psdk-home,
744[ --with-psdk-home For Windows users, please supply the path to the
745 Microsoft Platform SDK.
719 Usage: --with-csc-path=<absolute path to csc.exe>
720],,)
721AC_ARG_WITH(nsis-path,
722[ --with-nsis-path For Windows users, please supply the path to the
723 "Nullsoft Scriptable Install System" (NSIS). If NSIS
724 is found in the path or this option is supplied a self
725 contained executable installer for Apache OpenOffice
726 will be created.

--- 11 unchanged lines hidden (view full) ---

738 like:
739 "/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Vc7"
740
741 Usage: --with-frame-home=<absolute path to Framework SDK [[home]]>
742],,)
743AC_ARG_WITH(psdk-home,
744[ --with-psdk-home For Windows users, please supply the path to the
745 Microsoft Platform SDK.
746
746
747 Usage: --with-psdk-home=<absolute path to Microsoft Platform SDK>
748],,)
749AC_ARG_WITH(directx-home,
750[ --with-directx-home For Windows users, please supply the path to the
751 Microsoft DirectX SDK.
747 Usage: --with-psdk-home=<absolute path to Microsoft Platform SDK>
748],,)
749AC_ARG_WITH(directx-home,
750[ --with-directx-home For Windows users, please supply the path to the
751 Microsoft DirectX SDK.
752
752
753 Usage: --with-directx-home=<absolute path to Microsoft DirectX SDK>
754],,)
755AC_ARG_WITH(mozilla-build,
756[ --with-mozilla-build For Windows users, please supply the path to the
757 mozilla build tools.
753 Usage: --with-directx-home=<absolute path to Microsoft DirectX SDK>
754],,)
755AC_ARG_WITH(mozilla-build,
756[ --with-mozilla-build For Windows users, please supply the path to the
757 mozilla build tools.
758
758
759 Usage: --with-mozilla-build=<absolute path to mozilla build tools>
760
761 At the moment of this writing, an installer for the mozilla build tools
762 can be obtained from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/.
763],[MOZILLABUILD=$withval],)
764AC_ARG_WITH(local-solenv,
765[ --with-local-solenv If you have solenv in a location other than ./solenv,
766 please supply the path here.
759 Usage: --with-mozilla-build=<absolute path to mozilla build tools>
760
761 At the moment of this writing, an installer for the mozilla build tools
762 can be obtained from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/.
763],[MOZILLABUILD=$withval],)
764AC_ARG_WITH(local-solenv,
765[ --with-local-solenv If you have solenv in a location other than ./solenv,
766 please supply the path here.
767
767
768 Usage: --with-local-solenv=<absolute path to solenv>
769],,)
770AC_ARG_WITH(local-solver,
771[ --with-local-solver if you have solver in a location other than ./solver,
772 please supply the path here.
768 Usage: --with-local-solenv=<absolute path to solenv>
769],,)
770AC_ARG_WITH(local-solver,
771[ --with-local-solver if you have solver in a location other than ./solver,
772 please supply the path here.
773
773
774 Usage: --with-local-solver=<absolute path to solver>
775],,)
776AC_ARG_ENABLE(javascript,
777[ --disable-javascript Disables support for JavaScript macros.
778],,)
779AC_ARG_WITH(system-apr,
780[ --with-system-apr Use apr library already installed on the system
781],,)

--- 8 unchanged lines hidden (view full) ---

790],,)
791AC_ARG_ENABLE(coinmp,
792[ --disable-coinmp Do not use CoinMP as the Calc solver.
793],,)
794AC_ARG_ENABLE(check-only,
795[ --enable-check-only Use this option option if you just want to check your
796 environment. This option stops the generation of an
797 ????env.set
774 Usage: --with-local-solver=<absolute path to solver>
775],,)
776AC_ARG_ENABLE(javascript,
777[ --disable-javascript Disables support for JavaScript macros.
778],,)
779AC_ARG_WITH(system-apr,
780[ --with-system-apr Use apr library already installed on the system
781],,)

--- 8 unchanged lines hidden (view full) ---

790],,)
791AC_ARG_ENABLE(coinmp,
792[ --disable-coinmp Do not use CoinMP as the Calc solver.
793],,)
794AC_ARG_ENABLE(check-only,
795[ --enable-check-only Use this option option if you just want to check your
796 environment. This option stops the generation of an
797 ????env.set
798
798
799 Usage: --enable-check-only=yes
800],,)
801AC_ARG_ENABLE(ccache-skip,
802[[ --enable-ccache-skip [default=auto] allow the use of --ccache-skip to
803 escape compiler flags that would otherwise prevent
804 caching of the result (currently used on Mac only)
805 NOTE: requires patched version because of a bug in
806 ccache (see issue 104567 for details and patch)

--- 104 unchanged lines hidden (view full) ---

911AC_ARG_ENABLE(verbose,
912[ --enable-verbose Increase build verbosity.
913 --disable-verbose Decrease build verbosity.
914],,)
915AC_ARG_ENABLE(dependency-tracking,
916[ --disable-dependency-tracking Disables generation of dependency information.
917],,)
918AC_ARG_ENABLE(category-b,
799 Usage: --enable-check-only=yes
800],,)
801AC_ARG_ENABLE(ccache-skip,
802[[ --enable-ccache-skip [default=auto] allow the use of --ccache-skip to
803 escape compiler flags that would otherwise prevent
804 caching of the result (currently used on Mac only)
805 NOTE: requires patched version because of a bug in
806 ccache (see issue 104567 for details and patch)

--- 104 unchanged lines hidden (view full) ---

911AC_ARG_ENABLE(verbose,
912[ --enable-verbose Increase build verbosity.
913 --disable-verbose Decrease build verbosity.
914],,)
915AC_ARG_ENABLE(dependency-tracking,
916[ --disable-dependency-tracking Disables generation of dependency information.
917],,)
918AC_ARG_ENABLE(category-b,
919[ --enable-category-b Activate components under a category B license
919[ --enable-category-b Activate components under a category B license
920 (see http://www.apache.org/legal/3party.html#category-b):
921 MPL (hunspell, hyphen, nss, saxon, rhino),
922 CPL (silgraphite), CPL/EPL (CoinMP), OFL (fonts).
923 Flags for individual libraries override this one.
924],,)
925AC_ARG_WITH(arm-target,
926[ --arm-target The minimal targeted arm processor
927 used for the build environment.

--- 346 unchanged lines hidden (view full) ---

1274 VC_STANDARD="TRUE"
1275 AC_MSG_RESULT([yes])
1276 fi
1277 AC_SUBST(VC_STANDARD)
1278fi
1279
1280if test "$_os" = "WINNT"; then
1281 dnl ===================================================================
920 (see http://www.apache.org/legal/3party.html#category-b):
921 MPL (hunspell, hyphen, nss, saxon, rhino),
922 CPL (silgraphite), CPL/EPL (CoinMP), OFL (fonts).
923 Flags for individual libraries override this one.
924],,)
925AC_ARG_WITH(arm-target,
926[ --arm-target The minimal targeted arm processor
927 used for the build environment.

--- 346 unchanged lines hidden (view full) ---

1274 VC_STANDARD="TRUE"
1275 AC_MSG_RESULT([yes])
1276 fi
1277 AC_SUBST(VC_STANDARD)
1278fi
1279
1280if test "$_os" = "WINNT"; then
1281 dnl ===================================================================
1282 dnl Set the BUILD_X64 variable.
1282 dnl Set the BUILD_X64 variable.
1283 dnl ===================================================================
1284 AC_MSG_CHECKING([whether to build/use the Windows 64bit shell extensions])
1285 if test "$enable_win_x64_shellext" = "" -o "$enable_win_x64_shellext" = "no"; then
1286 BUILD_X64=""
1287 AC_MSG_RESULT([no])
1288 else
1289 BUILD_X64="TRUE"
1290 AC_MSG_RESULT([yes])
1291 fi
1292 AC_SUBST(BUILD_X64)
1293
1294 dnl ===================================================================
1283 dnl ===================================================================
1284 AC_MSG_CHECKING([whether to build/use the Windows 64bit shell extensions])
1285 if test "$enable_win_x64_shellext" = "" -o "$enable_win_x64_shellext" = "no"; then
1286 BUILD_X64=""
1287 AC_MSG_RESULT([no])
1288 else
1289 BUILD_X64="TRUE"
1290 AC_MSG_RESULT([yes])
1291 fi
1292 AC_SUBST(BUILD_X64)
1293
1294 dnl ===================================================================
1295 dnl Set the BUILD_WIN64 variable.
1295 dnl Set the BUILD_WIN64 variable.
1296 dnl ===================================================================
1297 AC_MSG_CHECKING([whether to build 64 bit OpenOffice on 64 bit Windows])
1298 if test "$build_cpu" = "x86_64" ; then
1299 if test "x$enable_win64" != "xno" ; then
1300 BUILD_WIN64="TRUE"
1301 AC_MSG_RESULT([yes])
1302 OOWINTOOL="./oowintool"
1303 else

--- 369 unchanged lines hidden (view full) ---

1673 fi
1674 AC_MSG_RESULT([ok])
1675fi
1676AC_SUBST(WITH_MINGWIN)
1677
1678dnl ===================================================================
1679dnl Extra check for Windows. cygwin builds need gcc to build dmake
1680dnl and g++ to build guw.exe although MS cl (or MinGW) is used to
1296 dnl ===================================================================
1297 AC_MSG_CHECKING([whether to build 64 bit OpenOffice on 64 bit Windows])
1298 if test "$build_cpu" = "x86_64" ; then
1299 if test "x$enable_win64" != "xno" ; then
1300 BUILD_WIN64="TRUE"
1301 AC_MSG_RESULT([yes])
1302 OOWINTOOL="./oowintool"
1303 else

--- 369 unchanged lines hidden (view full) ---

1673 fi
1674 AC_MSG_RESULT([ok])
1675fi
1676AC_SUBST(WITH_MINGWIN)
1677
1678dnl ===================================================================
1679dnl Extra check for Windows. cygwin builds need gcc to build dmake
1680dnl and g++ to build guw.exe although MS cl (or MinGW) is used to
1681dnl build OOo.
1681dnl build AOO.
1682dnl ===================================================================
1683if test "$_os" = "WINNT" ; then
1684 AC_MSG_CHECKING([for cygwin gcc/g++])
1685 if which gcc > /dev/null && which g++ > /dev/null ; then
1686 AC_MSG_RESULT([found])
1687 else
1688 AC_MSG_ERROR([cygwin gcc and g++ are needed, please install them.])
1689 fi

--- 43 unchanged lines hidden (view full) ---

1733 AC_PATH_PROGS(COMPATH, $CC)
1734 dnl double square bracket to get single because of M4 quote...
1735 COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`;
1736fi
1737CC_PATH="$COMPATH/"
1738COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`;
1739
1740dnl ===================================================================
1682dnl ===================================================================
1683if test "$_os" = "WINNT" ; then
1684 AC_MSG_CHECKING([for cygwin gcc/g++])
1685 if which gcc > /dev/null && which g++ > /dev/null ; then
1686 AC_MSG_RESULT([found])
1687 else
1688 AC_MSG_ERROR([cygwin gcc and g++ are needed, please install them.])
1689 fi

--- 43 unchanged lines hidden (view full) ---

1733 AC_PATH_PROGS(COMPATH, $CC)
1734 dnl double square bracket to get single because of M4 quote...
1735 COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`;
1736fi
1737CC_PATH="$COMPATH/"
1738COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`;
1739
1740dnl ===================================================================
1741dnl Test the gcc version, 3 is OK
1741dnl Test the gcc version, 3 is OK
1742dnl ===================================================================
1743GCCVER=20995
1744if test \( "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes" \) -a "$GCC" = "yes"; then
1745 AC_MSG_CHECKING([the GNU gcc compiler version])
1746 _gcc_version=`$CC -dumpversion`
1747 _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
1748 GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
1749

--- 689 unchanged lines hidden (view full) ---

2439 LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
2440fi
2441if test -n "$ac_cv_sys_large_files" && test "$ac_cv_sys_large_files" != "no"; then
2442 LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
2443fi
2444AC_SUBST(LFS_CFLAGS)
2445
2446dnl ===================================================================
1742dnl ===================================================================
1743GCCVER=20995
1744if test \( "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes" \) -a "$GCC" = "yes"; then
1745 AC_MSG_CHECKING([the GNU gcc compiler version])
1746 _gcc_version=`$CC -dumpversion`
1747 _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
1748 GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
1749

--- 689 unchanged lines hidden (view full) ---

2439 LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
2440fi
2441if test -n "$ac_cv_sys_large_files" && test "$ac_cv_sys_large_files" != "no"; then
2442 LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
2443fi
2444AC_SUBST(LFS_CFLAGS)
2445
2446dnl ===================================================================
2447dnl Check if valgrind.h is available
2447dnl Check if valgrind.h is available
2448dnl ===================================================================
2449if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
2450 dnl Test $prefix (currently only testing for /usr and /usr/local)
2451 dnl so that VALGRIND_CFLAGS = -I$prefix/include/valgrind
2452 VALGRIND_CFLAGS=""
2453 prev_cppflags=$CPPFLAGS
2454 if test -z "$VALGRIND_CFLAGS"; then
2455 CPPFLAGS="-I/usr/include/valgrind"

--- 7 unchanged lines hidden (view full) ---

2463 CPPFLAGS=$VALGRIND_CFLAGS
2464 AC_CHECK_HEADER([memcheck.h], [], [VALGRIND_CFLAGS=""])
2465 fi
2466 CPPFLAGS=$prev_cppflags
2467fi
2468AC_SUBST([VALGRIND_CFLAGS])
2469
2470dnl ===================================================================
2448dnl ===================================================================
2449if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
2450 dnl Test $prefix (currently only testing for /usr and /usr/local)
2451 dnl so that VALGRIND_CFLAGS = -I$prefix/include/valgrind
2452 VALGRIND_CFLAGS=""
2453 prev_cppflags=$CPPFLAGS
2454 if test -z "$VALGRIND_CFLAGS"; then
2455 CPPFLAGS="-I/usr/include/valgrind"

--- 7 unchanged lines hidden (view full) ---

2463 CPPFLAGS=$VALGRIND_CFLAGS
2464 AC_CHECK_HEADER([memcheck.h], [], [VALGRIND_CFLAGS=""])
2465 fi
2466 CPPFLAGS=$prev_cppflags
2467fi
2468AC_SUBST([VALGRIND_CFLAGS])
2469
2470dnl ===================================================================
2471dnl Check if cups/cups.h is available
2471dnl Check if cups/cups.h is available
2472dnl ===================================================================
2473if test "$test_cups" = "yes" -a "$ENABLE_CUPS" = "TRUE" ; then
2474 AC_CHECK_HEADER(cups/cups.h, [],
2475 [AC_MSG_ERROR([cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?])], [])
2476fi
2477
2478dnl ===================================================================
2479dnl Check if PAM/pam_appl.h is available on Linux or FreeBSD

--- 600 unchanged lines hidden (view full) ---

3080 JAVA_HOME=$with_jdk_home
3081
3082 else
3083 JDK=sun
3084
3085 dnl SUN JDK specific tests
3086 _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
3087 _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
2472dnl ===================================================================
2473if test "$test_cups" = "yes" -a "$ENABLE_CUPS" = "TRUE" ; then
2474 AC_CHECK_HEADER(cups/cups.h, [],
2475 [AC_MSG_ERROR([cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?])], [])
2476fi
2477
2478dnl ===================================================================
2479dnl Check if PAM/pam_appl.h is available on Linux or FreeBSD

--- 600 unchanged lines hidden (view full) ---

3080 JAVA_HOME=$with_jdk_home
3081
3082 else
3083 JDK=sun
3084
3085 dnl SUN JDK specific tests
3086 _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
3087 _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
3088
3088
3089 if test "$_jdk_ver" -lt 10500; then
3090 AC_MSG_ERROR([JDK is too old, you need at least 1.5])
3091 fi
3092 AC_MSG_RESULT([checked (JDK $_jdk)])
3093 JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
3094 if test "$_os" = "WINNT"; then
3095 JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[[eE]][[xX]][[eE]]$,,"`
3096 fi

--- 416 unchanged lines hidden (view full) ---

3513deb - Debian software distribution
3514inst or tardist - IRIX software distribution
3515osx - MacOS X software distribution
3516pkg - Solaris software distribution
3517rpm - RedHat software distribution
3518setld - Tru64 (setld) software distribution
3519native - "Native" software distribution for the platform
3520portable - Portable software distribution
3089 if test "$_jdk_ver" -lt 10500; then
3090 AC_MSG_ERROR([JDK is too old, you need at least 1.5])
3091 fi
3092 AC_MSG_RESULT([checked (JDK $_jdk)])
3093 JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
3094 if test "$_os" = "WINNT"; then
3095 JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[[eE]][[xX]][[eE]]$,,"`
3096 fi

--- 416 unchanged lines hidden (view full) ---

3513deb - Debian software distribution
3514inst or tardist - IRIX software distribution
3515osx - MacOS X software distribution
3516pkg - Solaris software distribution
3517rpm - RedHat software distribution
3518setld - Tru64 (setld) software distribution
3519native - "Native" software distribution for the platform
3520portable - Portable software distribution
3521OOo additionally supports:
3521AOO additionally supports:
3522archive - .tar.gz or .zip
3523dmg - Mac OS X .dmg
3524installed - installation tree
3525msi - Windows .msi
3526 ])
3527 ;;
3528 esac
3529 done

--- 43 unchanged lines hidden (view full) ---

3573 else
3574 AC_MSG_ERROR([PackageMaker needed to build OSX packages and you are not on OSX...])
3575 fi
3576 fi
3577 if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
3578 echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
3579 if test "$EPM" != "no" && test "$EPM" != "internal"; then
3580 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
3522archive - .tar.gz or .zip
3523dmg - Mac OS X .dmg
3524installed - installation tree
3525msi - Windows .msi
3526 ])
3527 ;;
3528 esac
3529 done

--- 43 unchanged lines hidden (view full) ---

3573 else
3574 AC_MSG_ERROR([PackageMaker needed to build OSX packages and you are not on OSX...])
3575 fi
3576 fi
3577 if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
3578 echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
3579 if test "$EPM" != "no" && test "$EPM" != "internal"; then
3580 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
3581 AC_MSG_CHECKING([whether epm is patched for OOos needs])
3581 AC_MSG_CHECKING([whether epm is patched for AOOs needs])
3582 if $GREP "Patched for Apache OpenOffice" $EPM >/dev/null 2>/dev/null; then
3583 AC_MSG_RESULT([yes])
3584 else
3585 AC_MSG_RESULT([no])
3586 if echo "$PKGFORMAT" | $GREP -q rpm; then
3587 _pt="rpm"
3588 AC_MSG_WARN([the rpms will need to be installed with --nodeps])
3589 echo "the rpms will need to be installed with --nodeps" >> warn

--- 751 unchanged lines hidden (view full) ---

4341 fi
4342 if test -n "$SERIALIZER_JAR"; then
4343 AC_CHECK_FILE($SERIALIZER_JAR, [],
4344 [AC_MSG_ERROR(serializer.jar not found.)], [])
4345 AC_SUBST(SERIALIZER_JAR)
4346 fi
4347
4348dnl Saxon comes in two practically available versions, the out-of-date saxonb which
3582 if $GREP "Patched for Apache OpenOffice" $EPM >/dev/null 2>/dev/null; then
3583 AC_MSG_RESULT([yes])
3584 else
3585 AC_MSG_RESULT([no])
3586 if echo "$PKGFORMAT" | $GREP -q rpm; then
3587 _pt="rpm"
3588 AC_MSG_WARN([the rpms will need to be installed with --nodeps])
3589 echo "the rpms will need to be installed with --nodeps" >> warn

--- 751 unchanged lines hidden (view full) ---

4341 fi
4342 if test -n "$SERIALIZER_JAR"; then
4343 AC_CHECK_FILE($SERIALIZER_JAR, [],
4344 [AC_MSG_ERROR(serializer.jar not found.)], [])
4345 AC_SUBST(SERIALIZER_JAR)
4346 fi
4347
4348dnl Saxon comes in two practically available versions, the out-of-date saxonb which
4349dnl supports the java extensions that OOo uses, and the up-to-date saxon he
4349dnl supports the java extensions that AOO uses, and the up-to-date saxon he
4350dnl "home edition" version, which is crippled to not support those java extensions.
4350dnl "home edition" version, which is crippled to not support those java extensions.
4351dnl And as an aside the he one also needs to be tweaked to include
4351dnl And as an aside the he one also needs to be tweaked to include
4352dnl a META-INF/services to broadcast that it supports the jaxp transform factory
4353
4354 AC_MSG_CHECKING([if saxon works])
4355 cat > saxontest.java <<_ACEOF
4356[import javax.xml.transform.TransformerFactory;
4357import javax.xml.transform.Transformer;
4358import javax.xml.transform.stream.StreamSource;
4359import java.io.*;

--- 2995 unchanged lines hidden (view full) ---

7355 AC_MSG_RESULT([low])
7356 fi
7357else
7358 AC_MSG_RESULT([not set])
7359fi
7360AC_SUBST(VERBOSE)
7361
7362dnl ===================================================================
4352dnl a META-INF/services to broadcast that it supports the jaxp transform factory
4353
4354 AC_MSG_CHECKING([if saxon works])
4355 cat > saxontest.java <<_ACEOF
4356[import javax.xml.transform.TransformerFactory;
4357import javax.xml.transform.Transformer;
4358import javax.xml.transform.stream.StreamSource;
4359import java.io.*;

--- 2995 unchanged lines hidden (view full) ---

7355 AC_MSG_RESULT([low])
7356 fi
7357else
7358 AC_MSG_RESULT([not set])
7359fi
7360AC_SUBST(VERBOSE)
7361
7362dnl ===================================================================
7363dnl Hook up OOos nodep environmental variable to automake's equivalent
7363dnl Hook up AOOs nodep environmental variable to automake's equivalent
7364dnl --enable-dependency-tracking configure option
7365dnl ===================================================================
7366AC_MSG_CHECKING([whether to enable dependency tracking])
7367if test "$enable_dependency_tracking" = "no"; then
7368 nodep=TRUE
7369 AC_MSG_RESULT([no])
7370else
7371 AC_MSG_RESULT([yes])

--- 63 unchanged lines hidden ---
7364dnl --enable-dependency-tracking configure option
7365dnl ===================================================================
7366AC_MSG_CHECKING([whether to enable dependency tracking])
7367if test "$enable_dependency_tracking" = "no"; then
7368 nodep=TRUE
7369 AC_MSG_RESULT([no])
7370else
7371 AC_MSG_RESULT([yes])

--- 63 unchanged lines hidden ---