configure.ac (f57bae61) configure.ac (9ef65f0e)
1dnl /******************************************************************
2dnl * vi:set sw=3 ts=3 et:
3dnl *
4dnl * Name: configure.in
5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
6dnl * Date: $Date: 2008-09-08 07:38:40 $
7dnl *
8dnl * Desc: This file serves as input for the GNU autoconf package

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

75 Note: "builtin" is the default, "extn" can cause
76 problems.
77 Usage: --with-vba-package-format="builtin" or
78 --with-vba-package-format="extn"
79],,)
80AC_ARG_ENABLE(pch,
81[ --enable-pch EXPERIMENTAL: Enables precompiled header support for C++.
82],,)
1dnl /******************************************************************
2dnl * vi:set sw=3 ts=3 et:
3dnl *
4dnl * Name: configure.in
5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
6dnl * Date: $Date: 2008-09-08 07:38:40 $
7dnl *
8dnl * Desc: This file serves as input for the GNU autoconf package

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

75 Note: "builtin" is the default, "extn" can cause
76 problems.
77 Usage: --with-vba-package-format="builtin" or
78 --with-vba-package-format="extn"
79],,)
80AC_ARG_ENABLE(pch,
81[ --enable-pch EXPERIMENTAL: Enables precompiled header support for C++.
82],,)
83AC_ARG_ENABLE(mozilla,
84[ --disable-mozilla OO.o usually includes a strangely hacked up mozilla
85 binary for your platform, to build without this
86 version, use this option.
87],,enable_mozilla="yes")
88AC_ARG_WITH(fonts,
89[ --without-fonts OOo includes some third-party fonts to provide a reliable
90 basis for help content, templates, samples, etc.
91 When these fonts are already known to be available on the
92 system then you should use this option.
93],,)
94AC_ARG_WITH(ppds,
95[ --without-ppds Removes Postscript Printer definition files from

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

250AC_ARG_ENABLE(static-gtk,
251[ --enable-static-gtk Modules that are linked against gtk libraries use
252 the static libraries instead of the dynamic ones.
253 (enables -Bstatic linker flag for gtk libraries)
254],,)
255AC_ARG_ENABLE(layout,
256[ --enable-layout Enable the compilation and use of layout dialogs
257],,)
83AC_ARG_WITH(fonts,
84[ --without-fonts OOo includes some third-party fonts to provide a reliable
85 basis for help content, templates, samples, etc.
86 When these fonts are already known to be available on the
87 system then you should use this option.
88],,)
89AC_ARG_WITH(ppds,
90[ --without-ppds Removes Postscript Printer definition files from

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

245AC_ARG_ENABLE(static-gtk,
246[ --enable-static-gtk Modules that are linked against gtk libraries use
247 the static libraries instead of the dynamic ones.
248 (enables -Bstatic linker flag for gtk libraries)
249],,)
250AC_ARG_ENABLE(layout,
251[ --enable-layout Enable the compilation and use of layout dialogs
252],,)
253AC_ARG_ENABLE(mozilla,
254[ --disable-mozilla OO.o usually includes a strangely hacked up mozilla
255 binary for your platform, to build without this
256 version, use this option.
257],,enable_mozilla="yes")
258AC_ARG_ENABLE(build-mozilla,
259[ --disable-build-mozilla Use this option if you do not want to build the
260 mozilla components from the mozilla source code but
261 take precompiled zips
262],,)
263AC_ARG_WITH(mozilla-version,
264[ --with-mozilla-version Choose which version of mozilla to use while building
265 mozilla. Default: 1.7.5.
266 Note that not all versions are supported.
267],,)
268AC_ARG_WITH(mozilla-toolkit,
269[ --with-mozilla-toolkit Choose which GUI toolkit to use while building mozilla
270 components. Default: gtk2
271],,)
258AC_ARG_ENABLE(build-mozilla,
259[ --disable-build-mozilla Use this option if you do not want to build the
260 mozilla components from the mozilla source code but
261 take precompiled zips
262],,)
263AC_ARG_WITH(mozilla-version,
264[ --with-mozilla-version Choose which version of mozilla to use while building
265 mozilla. Default: 1.7.5.
266 Note that not all versions are supported.
267],,)
268AC_ARG_WITH(mozilla-toolkit,
269[ --with-mozilla-toolkit Choose which GUI toolkit to use while building mozilla
270 components. Default: gtk2
271],,)
272AC_ARG_WITH(system-mozilla,
273[ --with-system-mozilla Use mozilla already on system. Note that some
274 components cannot be built against a contemporary
275 mozilla. The flavour used can be specified by
276 --with-system-mozilla=<flavour>. Supported are:
277 libxul (default), xulrunner, firefox, seamonkey,
278 mozilla
279], WITH_SYSTEM_MOZILLA=$withval, WITH_SYSTEM_MOZILLA=no)
272AC_ARG_ENABLE(nss_module,
273[ --disable-nss-module Whether to use provided NSS module
274],,enable_nss_module=yes)
275AC_ARG_ENABLE(kde,
276[ --enable-kde Determines whether to use Qt/KDE vclplug on platforms
277 where Qt and KDE are available.
278],,)
279AC_ARG_ENABLE(kdeab,

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

309],,enable_randr=yes)
310AC_ARG_ENABLE(randr-link,
311[ --disable-randr-link disable linking with libXrandr, instead dynamically
312 open it at runtime
313],,enable_randr_link=yes)
314AC_ARG_WITH(system-dicts,
315[ --with-system-dicts Use dictionaries from system paths- Specify
316 them via --with-{dict,hyph,thes}-path=/path
280AC_ARG_ENABLE(nss_module,
281[ --disable-nss-module Whether to use provided NSS module
282],,enable_nss_module=yes)
283AC_ARG_ENABLE(kde,
284[ --enable-kde Determines whether to use Qt/KDE vclplug on platforms
285 where Qt and KDE are available.
286],,)
287AC_ARG_ENABLE(kdeab,

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

317],,enable_randr=yes)
318AC_ARG_ENABLE(randr-link,
319[ --disable-randr-link disable linking with libXrandr, instead dynamically
320 open it at runtime
321],,enable_randr_link=yes)
322AC_ARG_WITH(system-dicts,
323[ --with-system-dicts Use dictionaries from system paths- Specify
324 them via --with-{dict,hyph,thes}-path=/path
317 if you want to override the default ones
325 if you want to override the default ones
318],,)
319AC_ARG_WITH(external-dict-dir,
320[ --with-external-dict-dir Specify external dictionary dir
321],,)
322AC_ARG_WITH(external-hyph-dir,
323[ --with-external-hyph-dir Specify external hyphenation pattern dir
324],,)
325AC_ARG_WITH(external-thes-dir,

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

401AC_ARG_WITH(system-hsqldb,
402[ --with-system-hsqldb Use hsqldb already on system
403],,)
404AC_ARG_WITH(hsqldb-jar,
405[ --with-hsqldb-jar=JARFILE Specify path to jarfile manually ],
406[ HSQLDB_JAR="$withval"
407])
408AC_ARG_WITH(system-beanshell,
326],,)
327AC_ARG_WITH(external-dict-dir,
328[ --with-external-dict-dir Specify external dictionary dir
329],,)
330AC_ARG_WITH(external-hyph-dir,
331[ --with-external-hyph-dir Specify external hyphenation pattern dir
332],,)
333AC_ARG_WITH(external-thes-dir,

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

409AC_ARG_WITH(system-hsqldb,
410[ --with-system-hsqldb Use hsqldb already on system
411],,)
412AC_ARG_WITH(hsqldb-jar,
413[ --with-hsqldb-jar=JARFILE Specify path to jarfile manually ],
414[ HSQLDB_JAR="$withval"
415])
416AC_ARG_WITH(system-beanshell,
409[ --with-system-beanshell Use beanshell already on system
417[ --with-system-beanshell Use beanshell already on system (default)
410],,)
418],,)
419AC_ARG_ENABLE(beanshell,
420[ --disable-beanshell Disable the use of beanshell.
421],,)
411AC_ARG_WITH(beanshell-jar,
412[ --with-beanshell-jar=JARFILE Specify path to jarfile manually ],
413[ BSH_JAR="$withval"
414])
415AC_ARG_ENABLE(presenter-extra-ui,
416[ --enable-presenter-extra-ui enables extra functionality during slideshow,
417 e.g. selecting pen color, erasing drawings etc.
418],,enable_presenter_extra_ui=no)

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

495[ --with-libserializer-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
496[ LIBSERIALIZER_JAR="$withval"
497])
498AC_ARG_WITH(libbase-jar,
499[ --with-libbase-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
500[ LIBBASE_JAR="$withval"
501])
502AC_ARG_WITH(system-saxon,
422AC_ARG_WITH(beanshell-jar,
423[ --with-beanshell-jar=JARFILE Specify path to jarfile manually ],
424[ BSH_JAR="$withval"
425])
426AC_ARG_ENABLE(presenter-extra-ui,
427[ --enable-presenter-extra-ui enables extra functionality during slideshow,
428 e.g. selecting pen color, erasing drawings etc.
429],,enable_presenter_extra_ui=no)

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

506[ --with-libserializer-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
507[ LIBSERIALIZER_JAR="$withval"
508])
509AC_ARG_WITH(libbase-jar,
510[ --with-libbase-jar=JARFILE Specify path to jarfile manually (for Report Builder extension) ],
511[ LIBBASE_JAR="$withval"
512])
513AC_ARG_WITH(system-saxon,
503[ --with-system-saxon Use saxon already on system
514[ --with-system-saxon Use saxon already on system (default)
504],,)
515],,)
516AC_ARG_ENABLE(saxon,
517[ --disable-saxon Disable use of saxon
518],,)
505AC_ARG_WITH(saxon-jar,
519AC_ARG_WITH(saxon-jar,
506[ --with-saxon-jar=JARFILE Specify path to jarfile manually ],
520[ --with-saxon-jar=JARFILE Specify path to jarfile manually. This implies --with-system-saxon ],
507[ SAXON_JAR="$withval"
508])
509AC_ARG_WITH(system-libxslt,
510[ --with-system-libxslt Use libxslt already on system
511],,)
512AC_ARG_WITH(system-odbc,
513[ --with-system-odbc-headers Use the odbc headers already on system
514],,)

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

571[ --with-system-libtextcat-data Use libtextcat data already on system
572],,)
573AC_ARG_WITH(system-cppunit,
574[ --with-system-cppunit Use cppunit already on system
575],,)
576AC_ARG_WITH(system-redland,
577[ --with-system-redland Use redland library already on system
578],,)
521[ SAXON_JAR="$withval"
522])
523AC_ARG_WITH(system-libxslt,
524[ --with-system-libxslt Use libxslt already on system
525],,)
526AC_ARG_WITH(system-odbc,
527[ --with-system-odbc-headers Use the odbc headers already on system
528],,)

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

585[ --with-system-libtextcat-data Use libtextcat data already on system
586],,)
587AC_ARG_WITH(system-cppunit,
588[ --with-system-cppunit Use cppunit already on system
589],,)
590AC_ARG_WITH(system-redland,
591[ --with-system-redland Use redland library already on system
592],,)
579AC_ARG_WITH(system-mozilla,
580[ --with-system-mozilla Use mozilla already on system. Note that some
581 components cannot be built against a contemporary
582 mozilla. The flavour used can be specified by
583 --with-system-mozilla=<flavour>. Supported are:
584 libxul (default), xulrunner, firefox, seamonkey,
585 mozilla
586], WITH_SYSTEM_MOZILLA=$withval, WITH_SYSTEM_MOZILLA=no)
587AC_ARG_WITH(stlport,
588[ --with-stlport The location that STLport is installed in. The STL
589 header files are assumed to be in
590 stlport-home/stlport and the STLPort library in
591 stlport-home/lib.
592
593 Usage: --with-stlport=<absolute path to stlport home>
594

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

722 Usage: --with-local-solenv=<absolute path to solenv>
723],,)
724AC_ARG_WITH(local-solver,
725[ --with-local-solver if you have solver in a location other than ./solver,
726 please supply the path here.
727
728 Usage: --with-local-solver=<absolute path to solver>
729],,)
593AC_ARG_WITH(stlport,
594[ --with-stlport The location that STLport is installed in. The STL
595 header files are assumed to be in
596 stlport-home/stlport and the STLPort library in
597 stlport-home/lib.
598
599 Usage: --with-stlport=<absolute path to stlport home>
600

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

728 Usage: --with-local-solenv=<absolute path to solenv>
729],,)
730AC_ARG_WITH(local-solver,
731[ --with-local-solver if you have solver in a location other than ./solver,
732 please supply the path here.
733
734 Usage: --with-local-solver=<absolute path to solver>
735],,)
736AC_ARG_ENABLE(javascript,
737[ --disable-javascript Disables support for JavaScript macros.
738],,)
730AC_ARG_ENABLE(check-only,
731[ --enable-check-only Use this option option if you just want to check your
732 environment. This option stops the generation of an
733 ????env.set
734
735 Usage: --enable-check-only=yes
736],,)
737AC_ARG_ENABLE(ccache-skip,

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

840],,)
841AC_ARG_ENABLE(verbose,
842[ --enable-verbose Increase build verbosity.
843 --disable-verbose Decrease build verbosity.
844],,)
845AC_ARG_ENABLE(dependency-tracking,
846[ --disable-dependency-tracking Disables generation of dependency information.
847],,)
739AC_ARG_ENABLE(check-only,
740[ --enable-check-only Use this option option if you just want to check your
741 environment. This option stops the generation of an
742 ????env.set
743
744 Usage: --enable-check-only=yes
745],,)
746AC_ARG_ENABLE(ccache-skip,

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

849],,)
850AC_ARG_ENABLE(verbose,
851[ --enable-verbose Increase build verbosity.
852 --disable-verbose Decrease build verbosity.
853],,)
854AC_ARG_ENABLE(dependency-tracking,
855[ --disable-dependency-tracking Disables generation of dependency information.
856],,)
848AC_ARG_ENABLE(copyleft,
849[ --enable-copyleft Whether to use copyleft components.
857AC_ARG_ENABLE(category-b,
858[ --enable-category-b Activate components under a category B license
859 (see http://www.apache.org/legal/3party.html#category-b):
860 MPL (seamonkey, hunspell, hyphen, nss, saxon, rhino),
861 CPL (silgraphite), SPL (beanshell).
862 Flags for individual libraries override this one.
850],,)
851AC_ARG_WITH(arm-target,
852[ --arm-target The minimal targeted arm processor
853 used for the build environment.
854 Cases :
855 arm-target < 6 : armv4t compatibility
856 arm-target = 6 : exact armv6 compatibility
857 arm-target > 6 : armv7-a compatibility

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

1238 fi
1239else
1240 if test -n "$ENABLE_SYMBOLS"; then
1241 DISABLE_STRIP="TRUE"
1242 else
1243 DISABLE_STRIP=
1244 fi
1245fi
863],,)
864AC_ARG_WITH(arm-target,
865[ --arm-target The minimal targeted arm processor
866 used for the build environment.
867 Cases :
868 arm-target < 6 : armv4t compatibility
869 arm-target = 6 : exact armv6 compatibility
870 arm-target > 6 : armv7-a compatibility

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

1251 fi
1252else
1253 if test -n "$ENABLE_SYMBOLS"; then
1254 DISABLE_STRIP="TRUE"
1255 else
1256 DISABLE_STRIP=
1257 fi
1258fi
1259if test -z "$DISABLE_STRIP"; then
1260 AC_MSG_RESULT([yes])
1261else
1262 AC_MSG_RESULT([no])
1263fi
1246AC_SUBST(DISABLE_STRIP)
1247
1248dnl ===================================================================
1249dnl Build options
1250dnl ===================================================================
1251
1264AC_SUBST(DISABLE_STRIP)
1265
1266dnl ===================================================================
1267dnl Build options
1268dnl ===================================================================
1269
1252AC_MSG_CHECKING([whether to enable copyleft components])
1253if test "$enable_copyleft" != "yes"; then
1270# Disable or enable libraries seamonkey, nss, hunspell, hyphen, saxon,
1271# rhino, silgraphite, beanshell.
1254
1272
1255 enable_mozilla="no"
1256 enable_nss_module="no"
1257 enable_gstreamer="no"
1273# Note that further below they may be enabled or disabled again by
1274# more specific options.
1258
1275
1259 DISABLE_SAXON="TRUE"
1276AC_MSG_CHECKING([whether to enable category B components])
1277# Category B modules (libraries):
1278# moz (seamonkey)
1279# nss (nss)
1280# hunspell (hunspell)
1281# hyphen (hyphen)
1282# saxon (saxon)
1283# rhino (rhino)
1284# beanshell (beanshell)
1285# graphite (silgraphite)
1286if test "$enable_category_b" == "yes"; then
1287# enable_mozilla="yes"
1288# enable_nss_module="yes"
1289 enable_hunspell="yes"
1290 enable_hyphen="yes"
1291 enable_saxon="yes"
1292 enable_javascript="yes"
1293 enable_beanshell="yes"
1294 enable_graphite="yes"
1260
1295
1261 AC_MSG_RESULT([no])
1262
1296 AC_MSG_RESULT([yes: allow modules moz, nss, hunspell, hyphen, saxon, rhino, beanshell, graphite to be built])
1263else
1297else
1298 # Disable libaries.
1299 enable_mozilla="no"
1300 enable_nss_module="no"
1301 enable_hunspell="no"
1302 enable_hyphen="no"
1303 enable_saxon="no"
1304 enable_javascript="no"
1305 enable_beanshell="no"
1306 enable_graphite="no"
1264
1307
1265 DISABLE_SAXON=
1266
1267 AC_MSG_RESULT([yes])
1268
1308 AC_MSG_RESULT([no: disabled modules moz, nss, hunspell, hyphen, saxon, rhino, beanshell, graphite])
1269fi
1309fi
1270AC_SUBST(DISABLE_SAXON)
1271
1310
1311# gstreamer is used only via pre-installed libraries: not a problem
1272
1312
1313
1273AC_MSG_CHECKING([whether to enable native CUPS support])
1274if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
1275 ENABLE_CUPS="TRUE"
1276 AC_MSG_RESULT([yes])
1277else
1278 ENABLE_CUPS=""
1279 AC_MSG_RESULT([no])
1280fi

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

4114 BUILD_TYPE="$BUILD_TYPE HSQLDB"
4115fi
4116AC_SUBST(SYSTEM_HSQLDB)
4117AC_SUBST(HSQLDB_JAR)
4118
4119dnl ===================================================================
4120dnl Check for system beanshell
4121dnl ===================================================================
1314AC_MSG_CHECKING([whether to enable native CUPS support])
1315if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
1316 ENABLE_CUPS="TRUE"
1317 AC_MSG_RESULT([yes])
1318else
1319 ENABLE_CUPS=""
1320 AC_MSG_RESULT([no])
1321fi

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

4155 BUILD_TYPE="$BUILD_TYPE HSQLDB"
4156fi
4157AC_SUBST(SYSTEM_HSQLDB)
4158AC_SUBST(HSQLDB_JAR)
4159
4160dnl ===================================================================
4161dnl Check for system beanshell
4162dnl ===================================================================
4163ENABLE_BEANSHELL=YES
4122AC_MSG_CHECKING([which beanshell to use])
4123if test -n "$with_system_beanshell" -o -n "$with_system_libs" && \
4124 test "$with_system_beanshell" != "no" && test "$with_system_jars" != "no"; then
4125 AC_MSG_RESULT([external])
4126 SYSTEM_BSH=YES
4127 if test -z $BSH_JAR; then
4128 BSH_JAR=/usr/share/java/bsh.jar
4129 fi
4130 AC_CHECK_FILE($BSH_JAR, [],
4131 [AC_MSG_ERROR(bsh.jar not found.)], [])
4164AC_MSG_CHECKING([which beanshell to use])
4165if test -n "$with_system_beanshell" -o -n "$with_system_libs" && \
4166 test "$with_system_beanshell" != "no" && test "$with_system_jars" != "no"; then
4167 AC_MSG_RESULT([external])
4168 SYSTEM_BSH=YES
4169 if test -z $BSH_JAR; then
4170 BSH_JAR=/usr/share/java/bsh.jar
4171 fi
4172 AC_CHECK_FILE($BSH_JAR, [],
4173 [AC_MSG_ERROR(bsh.jar not found.)], [])
4132else
4174elif test "x$enable_beanshell" = "xyes"; then
4133 AC_MSG_RESULT([internal])
4134 SYSTEM_BSH=NO
4135 BUILD_TYPE="$BUILD_TYPE BSH"
4175 AC_MSG_RESULT([internal])
4176 SYSTEM_BSH=NO
4177 BUILD_TYPE="$BUILD_TYPE BSH"
4178else
4179 AC_MSG_RESULT([none (disabled)])
4180 SYSTEM_BSH=NO
4181 ENABLE_BEANSHELL=NO
4136fi
4137AC_SUBST(SYSTEM_BSH)
4138AC_SUBST(BSH_JAR)
4182fi
4183AC_SUBST(SYSTEM_BSH)
4184AC_SUBST(BSH_JAR)
4185AC_SUBST(ENABLE_BEANSHELL)
4139
4140
4141dnl ===================================================================
4186
4187
4188dnl ===================================================================
4142dnl Check for system saxon
4189dnl Check for saxon. It can come from two different places:
4190dnl - pre-installed on the system. This is checked when the --with-system-saxon
4191dnl option is given to configure.
4192dnl The exact place can be specified with the --with-saxon-jar=<path> option.
4193dnl - From the saxon tar ball in ext_sources/. This is used when --enable-saxon
4194dnl is given to configure but not any of --with-system-saxon or --with-saxon-jar.
4143dnl ===================================================================
4195dnl ===================================================================
4144if test -n "$enable_copyleft" -a "$enable_copyleft" != "no"; then
4196DISABLE_SAXON=
4145AC_MSG_CHECKING([which saxon to use])
4146if test -n "$with_system_saxon" -o -n "$with_system_libs" && \
4147 test "$with_system_saxon" != "no" && test "$with_system_jars" != "no"; then
4148 AC_MSG_RESULT([external])
4149 SYSTEM_SAXON=YES
4150 if test -z $SAXON_JAR; then
4151 AC_CHECK_FILE(/usr/share/java/saxon9.jar,
4152 [ SAXON_JAR=/usr/share/java/saxon9.jar ],

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

4229 AC_MSG_RESULT([no])
4230 AC_MSG_ERROR([Non-functional saxon jar, e.g. crippled saxon-he instead of saxonb])
4231 fi
4232 else
4233 AC_MSG_RESULT([no])
4234 cat saxontest.java >&5
4235 AC_MSG_ERROR([saxontest could not be compiled, non-functional saxon jar])
4236 fi
4197AC_MSG_CHECKING([which saxon to use])
4198if test -n "$with_system_saxon" -o -n "$with_system_libs" && \
4199 test "$with_system_saxon" != "no" && test "$with_system_jars" != "no"; then
4200 AC_MSG_RESULT([external])
4201 SYSTEM_SAXON=YES
4202 if test -z $SAXON_JAR; then
4203 AC_CHECK_FILE(/usr/share/java/saxon9.jar,
4204 [ SAXON_JAR=/usr/share/java/saxon9.jar ],

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

4281 AC_MSG_RESULT([no])
4282 AC_MSG_ERROR([Non-functional saxon jar, e.g. crippled saxon-he instead of saxonb])
4283 fi
4284 else
4285 AC_MSG_RESULT([no])
4286 cat saxontest.java >&5
4287 AC_MSG_ERROR([saxontest could not be compiled, non-functional saxon jar])
4288 fi
4237else
4289elif test "x$enable_saxon" = "xyes"; then
4238 AC_MSG_RESULT([internal])
4239 SYSTEM_SAXON=NO
4290 AC_MSG_RESULT([internal])
4291 SYSTEM_SAXON=NO
4240 NEED_SAXON=TRUE
4292 BUILD_TYPE="$BUILD_TYPE SAXON"
4293else
4294 AC_MSG_RESULT([none (disabled)])
4295 SYSTEM_SAXON=NO
4296 DISABLE_SAXON=YES
4241fi
4242AC_SUBST(SYSTEM_SAXON)
4243AC_SUBST(SAXON_JAR)
4297fi
4298AC_SUBST(SYSTEM_SAXON)
4299AC_SUBST(SAXON_JAR)
4300AC_SUBST(DISABLE_SAXON)
4244
4301
4245if test -n "$NEED_SAXON"; then
4246 BUILD_TYPE="$BUILD_TYPE SAXON"
4302
4303dnl ===================================================================
4304dnl Check for rhino
4305dnl ===================================================================
4306ENABLE_JAVASCRIPT=
4307AC_MSG_CHECKING([whether to enable support for JavaScript])
4308if test "x$enable_javascript" = "xyes"; then
4309 BUILD_TYPE="$BUILD_TYPE RHINO"
4310 AC_MSG_RESULT([yes])
4311 ENABLE_JAVASCRIPT=YES
4312else
4313 AC_MSG_RESULT([no])
4314 ENABLE_JAVASCRIPT=NO
4247fi
4315fi
4248fi
4316AC_SUBST(ENABLE_JAVASCRIPT)
4249
4317
4318
4250dnl ===================================================================
4251dnl Check for system curl
4252dnl ===================================================================
4253if test "$_os" = "Darwin" && test "$with_system_curl" != "no"; then
4254 with_system_curl=yes
4255fi
4256AC_MSG_CHECKING([which curl to use])
4257if test -n "$with_system_curl" -o -n "$with_system_libs" && \

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

4372 [AC_MSG_ERROR(odbc not found. install odbc)], [])
4373else
4374 AC_MSG_RESULT([internal])
4375 SYSTEM_ODBC_HEADERS=NO
4376 BUILD_TYPE="$BUILD_TYPE UNIXODBC"
4377fi
4378AC_SUBST(SYSTEM_ODBC_HEADERS)
4379
4319dnl ===================================================================
4320dnl Check for system curl
4321dnl ===================================================================
4322if test "$_os" = "Darwin" && test "$with_system_curl" != "no"; then
4323 with_system_curl=yes
4324fi
4325AC_MSG_CHECKING([which curl to use])
4326if test -n "$with_system_curl" -o -n "$with_system_libs" && \

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

4441 [AC_MSG_ERROR(odbc not found. install odbc)], [])
4442else
4443 AC_MSG_RESULT([internal])
4444 SYSTEM_ODBC_HEADERS=NO
4445 BUILD_TYPE="$BUILD_TYPE UNIXODBC"
4446fi
4447AC_SUBST(SYSTEM_ODBC_HEADERS)
4448
4449WITH_MOZILLA=NO
4380AC_MSG_CHECKING([whether to enable build of Mozilla/Mozilla NSS-using components])
4381if test "$enable_mozilla" = "no"; then
4382 AC_MSG_RESULT([no])
4383 WITH_MOZILLA=NO
4384 ENABLE_NSS_MODULE=NO
4385else
4386 AC_MSG_RESULT([yes])
4387 WITH_MOZILLA=YES
4388fi
4450AC_MSG_CHECKING([whether to enable build of Mozilla/Mozilla NSS-using components])
4451if test "$enable_mozilla" = "no"; then
4452 AC_MSG_RESULT([no])
4453 WITH_MOZILLA=NO
4454 ENABLE_NSS_MODULE=NO
4455else
4456 AC_MSG_RESULT([yes])
4457 WITH_MOZILLA=YES
4458fi
4389AC_SUBST(WITH_MOZILLA)
4390
4391AC_MSG_CHECKING([whether to build Mozilla addressbook connectivity])
4392if test "$enable_mozilla" = "no"; then
4393 AC_MSG_RESULT([no])
4394elif test "$with_system_mozilla" = "yes"; then
4395 AC_MSG_RESULT([no, not possible with system-mozilla])
4396else
4397 AC_MSG_RESULT([yes])

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

4551else
4552 AC_MSG_CHECKING([which mozilla version to build])
4553 MOZILLA_VERSION=$with_mozilla_version
4554 enable_build_mozilla=1
4555 AC_MSG_RESULT([$MOZILLA_VERSION])
4556fi
4557
4558AC_SUBST(MOZILLA_VERSION)
4459
4460AC_MSG_CHECKING([whether to build Mozilla addressbook connectivity])
4461if test "$enable_mozilla" = "no"; then
4462 AC_MSG_RESULT([no])
4463elif test "$with_system_mozilla" = "yes"; then
4464 AC_MSG_RESULT([no, not possible with system-mozilla])
4465else
4466 AC_MSG_RESULT([yes])

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

4620else
4621 AC_MSG_CHECKING([which mozilla version to build])
4622 MOZILLA_VERSION=$with_mozilla_version
4623 enable_build_mozilla=1
4624 AC_MSG_RESULT([$MOZILLA_VERSION])
4625fi
4626
4627AC_SUBST(MOZILLA_VERSION)
4628AC_SUBST(WITH_MOZILLA)
4559
4560AC_MSG_CHECKING([for toolkit mozilla should use])
4561if test -z "$with_mozilla_toolkit"; then
4562 if test "$_os" != "WINNT" ; then
4563 if test "$_os" = "Darwin" ; then
4564 MOZILLA_TOOLKIT=mac
4565 AC_MSG_RESULT([mac])
4566 else

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

4794AC_SUBST(ICU_MAJOR)
4795AC_SUBST(ICU_MINOR)
4796AC_SUBST(ICU_MICRO)
4797
4798dnl ===================================================================
4799dnl Graphite
4800dnl ===================================================================
4801
4629
4630AC_MSG_CHECKING([for toolkit mozilla should use])
4631if test -z "$with_mozilla_toolkit"; then
4632 if test "$_os" != "WINNT" ; then
4633 if test "$_os" = "Darwin" ; then
4634 MOZILLA_TOOLKIT=mac
4635 AC_MSG_RESULT([mac])
4636 else

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

4864AC_SUBST(ICU_MAJOR)
4865AC_SUBST(ICU_MINOR)
4866AC_SUBST(ICU_MICRO)
4867
4868dnl ===================================================================
4869dnl Graphite
4870dnl ===================================================================
4871
4872ENABLE_GRAPHITE="FALSE"
4802AC_MSG_CHECKING([whether to enable graphite support])
4873AC_MSG_CHECKING([whether to enable graphite support])
4803if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "z$enable_graphite" = "z" -o "$enable_graphite" != "no" ; then
4874if test "x$enable_graphite" = "xyes" -a \( "$_os" = "WINNT" -o "$_os" = "Linux" \) ; then
4804 AC_MSG_RESULT([yes])
4805 ENABLE_GRAPHITE="TRUE"
4806 AC_MSG_CHECKING([which graphite to use])
4807 if test -n "$with_system_graphite" -o -n "$with_system_libs" && \
4808 test "$with_system_graphite" != "no"; then
4809 AC_MSG_RESULT([external])
4810 SYSTEM_GRAPHITE=YES
4811 PKG_CHECK_MODULES( GRAPHITE, silgraphite )
4812 else
4813 AC_MSG_RESULT([internal])
4814 SYSTEM_GRAPHITE=NO
4815 BUILD_TYPE="$BUILD_TYPE GRAPHITE"
4816 fi
4817else
4818 AC_MSG_RESULT([no])
4875 AC_MSG_RESULT([yes])
4876 ENABLE_GRAPHITE="TRUE"
4877 AC_MSG_CHECKING([which graphite to use])
4878 if test -n "$with_system_graphite" -o -n "$with_system_libs" && \
4879 test "$with_system_graphite" != "no"; then
4880 AC_MSG_RESULT([external])
4881 SYSTEM_GRAPHITE=YES
4882 PKG_CHECK_MODULES( GRAPHITE, silgraphite )
4883 else
4884 AC_MSG_RESULT([internal])
4885 SYSTEM_GRAPHITE=NO
4886 BUILD_TYPE="$BUILD_TYPE GRAPHITE"
4887 fi
4888else
4889 AC_MSG_RESULT([no])
4890 ENABLE_GRAPHITE="FALSE"
4819fi
4820AC_SUBST(ENABLE_GRAPHITE)
4821AC_SUBST(SYSTEM_GRAPHITE)
4822AC_SUBST(GRAPHITE_LIBS)
4823AC_SUBST(GRAPHITE_CFLAGS)
4824
4825dnl ===================================================================
4826dnl Checks for libraries.

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

6713AC_MSG_CHECKING([whether to build own version of libjpeg])
6714
6715if test "$SYSTEM_JPEG" = "YES"; then
6716SYSTEM_LIBJPEG=YES
6717else
6718case "$_os" in
6719 WINNT*) # Windows
6720 SYSTEM_LIBJPEG=NO
4891fi
4892AC_SUBST(ENABLE_GRAPHITE)
4893AC_SUBST(SYSTEM_GRAPHITE)
4894AC_SUBST(GRAPHITE_LIBS)
4895AC_SUBST(GRAPHITE_CFLAGS)
4896
4897dnl ===================================================================
4898dnl Checks for libraries.

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

6785AC_MSG_CHECKING([whether to build own version of libjpeg])
6786
6787if test "$SYSTEM_JPEG" = "YES"; then
6788SYSTEM_LIBJPEG=YES
6789else
6790case "$_os" in
6791 WINNT*) # Windows
6792 SYSTEM_LIBJPEG=NO
6721 AC_MSG_RESULT([yes])
6722 ;;
6723 Darwin*)
6724 SYSTEM_LIBJPEG=NO
6793 ;;
6794 Darwin*)
6795 SYSTEM_LIBJPEG=NO
6725 AC_MSG_RESULT([yes])
6726 ;;
6727 *)
6796 ;;
6797 *)
6728 SYSTEM_LIBJPEG=YES
6729 AC_MSG_RESULT([no])
6730 ;;
6798 SYSTEM_LIBJPEG=YES
6799 ;;
6731esac
6732fi
6733
6734if test "$SYSTEM_LIBJPEG" = "YES"; then
6735 AC_MSG_RESULT([no])
6736else
6737 AC_MSG_RESULT([yes])
6738fi

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

7122fi
7123AC_SUBST(LOCAL_SOLVER)
7124
7125AC_SUBST(BUILD_TYPE)
7126
7127# make sure config.guess is +x; we execute config.guess, so it has to be so;
7128chmod +x ./config.guess
7129
6800esac
6801fi
6802
6803if test "$SYSTEM_LIBJPEG" = "YES"; then
6804 AC_MSG_RESULT([no])
6805else
6806 AC_MSG_RESULT([yes])
6807fi

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

7191fi
7192AC_SUBST(LOCAL_SOLVER)
7193
7194AC_SUBST(BUILD_TYPE)
7195
7196# make sure config.guess is +x; we execute config.guess, so it has to be so;
7197chmod +x ./config.guess
7198
7130AC_OUTPUT([set_soenv Makefile])
7199# Create files from their *.in templates.
7200AC_CONFIG_FILES([set_soenv Makefile])
7131
7201
7202AC_MSG_NOTICE([writing config.status])
7203AC_OUTPUT
7204
7132dnl Executing the set_soenv script to setup the environment variables.
7133chmod a+x set_soenv
7134if test -z "$enable_check_only"; then
7135 './set_soenv'
7136else
7137 echo
7138 echo Test Complete
7139 echo No environment file will be generated

--- 14 unchanged lines hidden ---
7205dnl Executing the set_soenv script to setup the environment variables.
7206chmod a+x set_soenv
7207if test -z "$enable_check_only"; then
7208 './set_soenv'
7209else
7210 echo
7211 echo Test Complete
7212 echo No environment file will be generated

--- 14 unchanged lines hidden ---