| configure.ac (8e162c1b) | configure.ac (06f2ef55) |
|---|---|
| 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 --- 310 unchanged lines hidden (view full) --- 319AC_ARG_ENABLE(static-gtk, 320[ --enable-static-gtk Modules that are linked against gtk libraries use 321 the static libraries instead of the dynamic ones. 322 (enables -Bstatic linker flag for gtk libraries) 323],,) 324AC_ARG_ENABLE(layout, 325[ --enable-layout Enable the compilation and use of layout dialogs 326],,) | 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 --- 310 unchanged lines hidden (view full) --- 319AC_ARG_ENABLE(static-gtk, 320[ --enable-static-gtk Modules that are linked against gtk libraries use 321 the static libraries instead of the dynamic ones. 322 (enables -Bstatic linker flag for gtk libraries) 323],,) 324AC_ARG_ENABLE(layout, 325[ --enable-layout Enable the compilation and use of layout dialogs 326],,) |
| 327AC_ARG_ENABLE(mozilla, 328[ --disable-mozilla OO.o usually includes a strangely hacked up mozilla 329 binary for your platform, to build without this 330 version, use this option. 331],,enable_mozilla="yes") 332AC_ARG_ENABLE(build-mozilla, 333[ --disable-build-mozilla Use this option if you do not want to build the 334 mozilla components from the mozilla source code but 335 take precompiled zips 336],,) 337AC_ARG_WITH(mozilla-version, 338[ --with-mozilla-version Choose which version of mozilla to use while building 339 mozilla. Default: 1.7.5. 340 Note that not all versions are supported. 341],,) 342AC_ARG_WITH(mozilla-toolkit, 343[ --with-mozilla-toolkit Choose which GUI toolkit to use while building mozilla 344 components. Default: gtk2 345],,) 346AC_ARG_WITH(system-mozilla, 347[ --with-system-mozilla Use mozilla already on system. Note that some 348 components cannot be built against a contemporary 349 mozilla. The flavour used can be specified by 350 --with-system-mozilla=<flavour>. Supported are: 351 libxul (default), xulrunner, firefox, seamonkey, 352 mozilla 353], WITH_SYSTEM_MOZILLA=$withval, WITH_SYSTEM_MOZILLA=no) | |
| 354AC_ARG_ENABLE(nss_module, 355[ --disable-nss-module Whether to use provided NSS module 356],,enable_nss_module=yes) 357AC_ARG_ENABLE(kde, 358[ --enable-kde Determines whether to use Qt/KDE vclplug on platforms 359 where Qt and KDE are available. 360],,) 361AC_ARG_ENABLE(kdeab, --- 1061 unchanged lines hidden (view full) --- 1423 1424# Note that further below they may be enabled or disabled again by 1425# more specific options. 1426 1427ENABLE_CATEGORY_B= 1428 1429AC_MSG_CHECKING([whether to enable category B components]) 1430# Category B modules (libraries): | 327AC_ARG_ENABLE(nss_module, 328[ --disable-nss-module Whether to use provided NSS module 329],,enable_nss_module=yes) 330AC_ARG_ENABLE(kde, 331[ --enable-kde Determines whether to use Qt/KDE vclplug on platforms 332 where Qt and KDE are available. 333],,) 334AC_ARG_ENABLE(kdeab, --- 1061 unchanged lines hidden (view full) --- 1396 1397# Note that further below they may be enabled or disabled again by 1398# more specific options. 1399 1400ENABLE_CATEGORY_B= 1401 1402AC_MSG_CHECKING([whether to enable category B components]) 1403# Category B modules (libraries): |
| 1431# moz (seamonkey) | |
| 1432# nss (nss) 1433# hunspell (hunspell) 1434# hyphen (hyphen) 1435# saxon (saxon) 1436# rhino (rhino) 1437# beanshell (beanshell) 1438# graphite (silgraphite) 1439if test "$enable_category_b" = "yes"; then 1440 ENABLE_CATEGORY_B=YES 1441 enable_hunspell="yes" 1442 enable_hyphen="yes" 1443 enable_saxon="yes" 1444 enable_javascript="yes" 1445 enable_beanshell="yes" 1446 enable_graphite="yes" 1447 enable_coinmp="yes" 1448 enable_category_b_fonts="yes" 1449 | 1404# nss (nss) 1405# hunspell (hunspell) 1406# hyphen (hyphen) 1407# saxon (saxon) 1408# rhino (rhino) 1409# beanshell (beanshell) 1410# graphite (silgraphite) 1411if test "$enable_category_b" = "yes"; then 1412 ENABLE_CATEGORY_B=YES 1413 enable_hunspell="yes" 1414 enable_hyphen="yes" 1415 enable_saxon="yes" 1416 enable_javascript="yes" 1417 enable_beanshell="yes" 1418 enable_graphite="yes" 1419 enable_coinmp="yes" 1420 enable_category_b_fonts="yes" 1421 |
| 1450 AC_MSG_RESULT([yes: allow modules moz, nss, hunspell, hyphen, saxon, rhino, beanshell, graphite, coinmp to be built]) | 1422 AC_MSG_RESULT([yes: allow modules, nss, hunspell, hyphen, saxon, rhino, beanshell, graphite, coinmp to be built]) |
| 1451else 1452 # Disable libaries. | 1423else 1424 # Disable libaries. |
| 1453 enable_mozilla="no" | |
| 1454 enable_nss_module="no" 1455 enable_hunspell="no" 1456 enable_hyphen="no" 1457 enable_saxon="no" 1458 enable_javascript="no" 1459 enable_beanshell="no" 1460 enable_graphite="no" 1461 enable_coinmp="no" 1462 enable_category_b_fonts="no" 1463 | 1425 enable_nss_module="no" 1426 enable_hunspell="no" 1427 enable_hyphen="no" 1428 enable_saxon="no" 1429 enable_javascript="no" 1430 enable_beanshell="no" 1431 enable_graphite="no" 1432 enable_coinmp="no" 1433 enable_category_b_fonts="no" 1434 |
| 1464 AC_MSG_RESULT([no: disabled modules moz, nss, hunspell, hyphen, saxon, rhino, beanshell, graphite, coinmp]) | 1435 AC_MSG_RESULT([no: disabled modules, nss, hunspell, hyphen, saxon, rhino, beanshell, graphite, coinmp]) |
| 1465fi 1466AC_SUBST(ENABLE_CATEGORY_B) 1467 1468# gstreamer is used only via pre-installed libraries: not a problem 1469 1470dnl =================================================================== 1471dnl Online Update 1472dnl =================================================================== --- 3287 unchanged lines hidden (view full) --- 4760 [AC_MSG_ERROR(odbc not found. install odbc)], []) 4761else 4762 AC_MSG_RESULT([internal]) 4763 SYSTEM_ODBC_HEADERS=NO 4764 BUILD_TYPE="$BUILD_TYPE UNIXODBC" 4765fi 4766AC_SUBST(SYSTEM_ODBC_HEADERS) 4767 | 1436fi 1437AC_SUBST(ENABLE_CATEGORY_B) 1438 1439# gstreamer is used only via pre-installed libraries: not a problem 1440 1441dnl =================================================================== 1442dnl Online Update 1443dnl =================================================================== --- 3287 unchanged lines hidden (view full) --- 4731 [AC_MSG_ERROR(odbc not found. install odbc)], []) 4732else 4733 AC_MSG_RESULT([internal]) 4734 SYSTEM_ODBC_HEADERS=NO 4735 BUILD_TYPE="$BUILD_TYPE UNIXODBC" 4736fi 4737AC_SUBST(SYSTEM_ODBC_HEADERS) 4738 |
| 4768WITH_MOZILLA=NO 4769AC_MSG_CHECKING([whether to enable build of Mozilla/Mozilla NSS-using components]) 4770if test "$enable_mozilla" = "no"; then 4771 AC_MSG_RESULT([no]) 4772 WITH_MOZILLA=NO 4773 ENABLE_NSS_MODULE=NO 4774else 4775 AC_MSG_RESULT([yes]) 4776 WITH_MOZILLA=YES 4777fi 4778 4779AC_MSG_CHECKING([whether to build Mozilla addressbook connectivity]) 4780if test "$enable_mozilla" = "no"; then 4781 AC_MSG_RESULT([no]) 4782elif test "$with_system_mozilla" = "yes"; then 4783 AC_MSG_RESULT([no, not possible with system-mozilla]) 4784else 4785 AC_MSG_RESULT([yes]) 4786fi 4787 | |
| 4788AC_MSG_CHECKING([whether to build XML Security support]) | 4739AC_MSG_CHECKING([whether to build XML Security support]) |
| 4789if test "$enable_mozilla" = "no"; then 4790 AC_MSG_RESULT([no, since Mozilla (NSS) disabled but needed]) | 4740if test "$enable_nss_module" = "no"; then 4741 AC_MSG_RESULT([no, since NSS disabled but needed]) |
| 4791else 4792 AC_MSG_RESULT([yes]) 4793fi 4794 4795AC_MSG_CHECKING([whether to build LDAP configuration backend]) 4796if test -z "$enable_ldap" || test "$enable_ldap" = "yes"; then | 4742else 4743 AC_MSG_RESULT([yes]) 4744fi 4745 4746AC_MSG_CHECKING([whether to build LDAP configuration backend]) 4747if test -z "$enable_ldap" || test "$enable_ldap" = "yes"; then |
| 4797 if test "$enable_mozilla" = "yes" || test "$with_openldap" = "yes"; then | 4748 if test "$with_openldap" = "yes"; then |
| 4798 AC_MSG_RESULT([yes]) 4799 WITH_LDAP=YES 4800 else | 4749 AC_MSG_RESULT([yes]) 4750 WITH_LDAP=YES 4751 else |
| 4801 AC_MSG_RESULT([no. Either Mozilla or OpenLDAP needed]) | |
| 4802 WITH_LDAP=NO 4803 fi 4804else 4805 AC_MSG_RESULT([no]) 4806 WITH_LDAP=NO 4807fi 4808 4809if test "$WITH_LDAP" = "YES"; then 4810 dnl =================================================================== | 4752 WITH_LDAP=NO 4753 fi 4754else 4755 AC_MSG_RESULT([no]) 4756 WITH_LDAP=NO 4757fi 4758 4759if test "$WITH_LDAP" = "YES"; then 4760 dnl =================================================================== |
| 4811 dnl Test whether we want to use the Mozilla or the OpenLDAP LDAP SDK | 4761 dnl Test whether we want to use the OpenLDAP LDAP SDK |
| 4812 dnl =================================================================== 4813 AC_MSG_CHECKING([which LDAP SDK to use]) 4814 if test -n "$with_openldap" && test "$with_openldap" != "no"; then 4815 AC_MSG_RESULT([OpenLDAP]) 4816 WITH_OPENLDAP=YES 4817 AC_CHECK_HEADERS(ldap.h, [], 4818 [AC_MSG_ERROR(ldap.h not found. install openldap libs)], []) 4819 AC_CHECK_LIB(ldap, ldap_simple_bind_s, [], 4820 [AC_MSG_ERROR(openldap lib not found or functional)], []) 4821 # rumours say that OpenLDAP doesn't have that function. I looked and 4822 # it has it. Test for it to be sure 4823 AC_CHECK_LIB(ldap, ldap_set_option, [], 4824 [AC_MSG_ERROR(openldap lib not found or functional)], []) | 4762 dnl =================================================================== 4763 AC_MSG_CHECKING([which LDAP SDK to use]) 4764 if test -n "$with_openldap" && test "$with_openldap" != "no"; then 4765 AC_MSG_RESULT([OpenLDAP]) 4766 WITH_OPENLDAP=YES 4767 AC_CHECK_HEADERS(ldap.h, [], 4768 [AC_MSG_ERROR(ldap.h not found. install openldap libs)], []) 4769 AC_CHECK_LIB(ldap, ldap_simple_bind_s, [], 4770 [AC_MSG_ERROR(openldap lib not found or functional)], []) 4771 # rumours say that OpenLDAP doesn't have that function. I looked and 4772 # it has it. Test for it to be sure 4773 AC_CHECK_LIB(ldap, ldap_set_option, [], 4774 [AC_MSG_ERROR(openldap lib not found or functional)], []) |
| 4825 else 4826 AC_MSG_RESULT([Netscape/Mozilla]) 4827 # TODO. Actually do a sanity check and check for 4828 # LDAP_OPT_SIZELIMIT and LDAP_X_OPT_CONNECT_TIMEOUT 4829 WITH_OPENLDAP=NO | |
| 4830 fi 4831fi 4832AC_SUBST(WITH_LDAP) 4833AC_SUBST(WITH_OPENLDAP) 4834 | 4775 fi 4776fi 4777AC_SUBST(WITH_LDAP) 4778AC_SUBST(WITH_OPENLDAP) 4779 |
| 4835dnl =================================================================== 4836dnl Check for system mozilla 4837dnl =================================================================== 4838AC_MSG_CHECKING([which mozilla to use]) 4839if test -n "$with_system_mozilla" && test "$with_system_mozilla" != "no"; then 4840 AC_MSG_RESULT([external]) 4841 SYSTEM_MOZILLA=YES 4842 ENABLE_NSS_MODULE=NO 4843 enable_nss_module=no 4844 AC_MSG_CHECKING([which Mozilla flavour to use]) 4845 if test -n "$with_system_mozilla" && test "$with_system_mozilla" = "libxul"; then 4846 MOZ_FLAVOUR=libxul 4847 elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "xulrunner"; then 4848 MOZ_FLAVOUR=xulrunner 4849 elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "seamonkey"; then 4850 MOZ_FLAVOUR=seamonkey 4851 elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "firefox"; then 4852 MOZ_FLAVOUR=firefox 4853 elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "mozilla"; then 4854 MOZ_FLAVOUR=mozilla 4855 else 4856 MOZ_FLAVOUR=libxul 4857 fi 4858 tmp=`echo $MOZ_FLAVOUR | $PERL -e 'print ucfirst(<STDIN>);'` 4859 AC_MSG_RESULT($tmp) 4860 4861 PKG_CHECK_MODULES( MOZ_NSS, nss, STANDALONENSS="TRUE", STANDALONENSS="" ) 4862 if test -z "$STANDALONENSS"; then 4863 PKG_CHECK_MODULES( MOZ_NSS, $MOZ_FLAVOUR-nss ) 4864 else 4865 NSS_LIB="-L`$PKG_CONFIG --variable=libdir nss`" 4866 AC_SUBST(NSS_LIB) 4867 fi 4868 4869 if $PKG_CONFIG --exists nspr ; then 4870 PKG_CHECK_MODULES( MOZ_NSPR, nspr ) 4871 NSPR_LIB="-L`$PKG_CONFIG --variable=libdir nspr`" 4872 AC_SUBST(NSPR_LIB) 4873 else 4874 PKG_CHECK_MODULES( MOZ_NSPR, $MOZ_FLAVOUR-nspr ) 4875 fi 4876 4877 if test "$MOZ_FLAVOUR" != "libxul"; then 4878 PKG_CHECK_MODULES( MOZILLAXPCOM, $MOZ_FLAVOUR-xpcom, HASXPCOM="TRUE", HASXPCOM="" ) 4879 MOZ_INC=`$PKG_CONFIG --variable=includedir $MOZ_FLAVOUR-xpcom` 4880 MOZ_LIB=`$PKG_CONFIG --variable=libdir $MOZ_FLAVOUR-xpcom` 4881 fi 4882 4883 if test -z "$HASXPCOM"; then 4884 PKG_CHECK_MODULES( MOZILLAXPCOM, libxul ) 4885 MOZ_INC=`$PKG_CONFIG --variable=includedir libxul` 4886 MOZ_LIB=`$PKG_CONFIG --variable=libdir libxul` 4887 if ! test -e "$MOZ_LIB/libxul.so"; then 4888 MOZ_LIB=`$PKG_CONFIG --variable=sdkdir libxul` 4889 if test -e "$MOZ_LIB/sdk/lib/libxul.so"; then 4890 MOZ_LIB="$MOZ_LIB/sdk/lib" 4891 fi 4892 fi 4893 fi 4894 4895 save_CPPFLAGS="$CPPFLAGS" 4896 save_LDFLAGS="$LDFLAGS" 4897 save_LIBS="$LIBS" 4898 CPPFLAGS="$CPPFLAGS $MOZ_NSS_CFLAGS" 4899 LDFLAGS="$LDFLAGS $MOZ_NSS_LIBS" 4900 AC_CHECK_LIB(nss3, PK11_GetCertFromPrivateKey, [], 4901 [AC_MSG_ERROR(PK11_GetCertFromPrivateKey missing but needed. 4902See https://bugzilla.mozilla.org/show_bug.cgi?id=262274. 4903Fixed since nss 3.9.3 (contained by e.g. mozilla >= 1.7.5))], []) 4904 LDFLAGS="$save_LDFLAGS" 4905 CPPFLAGS="$save_CPPFLAGS" 4906 LIBS="$save_LIBS" 4907 4908 MOZ_LIB_XPCOM=$MOZILLAXPCOM_LIBS 4909 if test "$WITH_LDAP" != "NO" && test "$WITH_OPENLDAP" != "YES"; then 4910 AC_MSG_CHECKING([whether $tmp was compiled with --enable-ldap]) 4911 if test -d "$MOZ_INC/ldap"; then 4912 AC_MSG_RESULT([yes]) 4913 MOZ_LDAP_CFLAGS="-I$MOZ_INC" 4914 else 4915 AC_MSG_ERROR([no. 4916Could not find LDAP header include files in $MOZ_INC/ldap. 4917Please recompile $tmp with --enable-ldap or use --with-openldap.]) 4918 fi 4919 fi 4920 4921 #e.g. http://fedoraproject.org/wiki/Releases/FeatureXULRunnerAPIChanges 4922 #the plugin pkg-config etc. reverts to "mozilla-plugin" with libxul 4923 if test "$MOZ_FLAVOUR" = "libxul"; then 4924 MOZ_FLAVOUR="mozilla" 4925 fi 4926 4927elif test "$enable_mozilla" = "no"; then 4928 AC_MSG_RESULT([none]) 4929 WITH_MOZILLA=NO 4930 ENABLE_NSS_MODULE=NO 4931 enable_nss_module=no 4932else 4933 AC_MSG_RESULT([internal]) 4934 SYSTEM_MOZILLA=NO 4935 BUILD_TYPE="$BUILD_TYPE MOZ" 4936 WITH_MOZILLA=YES 4937if test -z "$with_mozilla_version"; then 4938 MOZILLA_VERSION= 4939else 4940 AC_MSG_CHECKING([which mozilla version to build]) 4941 MOZILLA_VERSION=$with_mozilla_version 4942 enable_build_mozilla=1 4943 AC_MSG_RESULT([$MOZILLA_VERSION]) 4944fi 4945 4946AC_SUBST(MOZILLA_VERSION) 4947AC_SUBST(WITH_MOZILLA) 4948 4949AC_MSG_CHECKING([for toolkit mozilla should use]) 4950if test -z "$with_mozilla_toolkit"; then 4951 if test "$_os" != "WINNT" ; then 4952 if test "$_os" = "Darwin" ; then 4953 MOZILLA_TOOLKIT=mac 4954 AC_MSG_RESULT([mac]) 4955 else 4956 MOZILLA_TOOLKIT=gtk2 4957 AC_MSG_RESULT([gtk2]) 4958 fi 4959 fi 4960else 4961 MOZILLA_TOOLKIT=$with_mozilla_toolkit 4962 enable_build_mozilla=1 4963 AC_MSG_RESULT([$MOZILLA_TOOLKIT]) 4964fi 4965#if test "$_os" = "Darwin" && test "$MOZILLA_TOOLKIT" != "gtk2"; then 4966# #only gtk2 toolkit supported - xlib or cocoa nees glib1 and libIDL1 - the latter is not 4967# #available using fink, mac (carbon) doesn't work because xcode installs conflicting headers 4968# AC_MSG_ERROR([Only gtk2 toolkit supported on Mac, sorry.]) 4969#fi 4970 4971AC_SUBST(MOZILLA_TOOLKIT) 4972 4973# default to enabling build mozilla 4974if test "$enable_build_mozilla" != "no"; then 4975 enable_build_mozilla=yes 4976else 4977 enable_build_mozilla= 4978fi 4979 4980AC_MSG_CHECKING([whether to build Mozilla/SeaMonkey]) 4981if test -n "$enable_build_mozilla"; then 4982 BUILD_MOZAB="TRUE" 4983 AC_MSG_RESULT([yes]) 4984else 4985 BUILD_MOZAB="" 4986 AC_MSG_RESULT([no]) 4987fi 4988 | |
| 4989AC_MSG_CHECKING([whether to build provided NSS module]) 4990if test "$enable_nss_module" != "no"; then 4991 ENABLE_NSS_MODULE="YES" 4992 BUILD_TYPE="$BUILD_TYPE NSS" 4993 AC_MSG_RESULT([yes]) 4994 if test "$_os" = "WINNT"; then 4995 AC_MSG_CHECKING([for Mozilla build tooling]) 4996 if test -z "$MOZILLABUILD" ; then --- 17 unchanged lines hidden (view full) --- 5014 fi 5015 fi 5016 fi 5017else 5018 ENABLE_NSS_MODULE="NO" 5019 AC_MSG_RESULT([no]) 5020fi 5021 | 4780AC_MSG_CHECKING([whether to build provided NSS module]) 4781if test "$enable_nss_module" != "no"; then 4782 ENABLE_NSS_MODULE="YES" 4783 BUILD_TYPE="$BUILD_TYPE NSS" 4784 AC_MSG_RESULT([yes]) 4785 if test "$_os" = "WINNT"; then 4786 AC_MSG_CHECKING([for Mozilla build tooling]) 4787 if test -z "$MOZILLABUILD" ; then --- 17 unchanged lines hidden (view full) --- 4805 fi 4806 fi 4807 fi 4808else 4809 ENABLE_NSS_MODULE="NO" 4810 AC_MSG_RESULT([no]) 4811fi 4812 |
| 5022if test "$BUILD_MOZAB" = "TRUE"; then 5023 if test "$_os" = "WINNT"; then 5024 if test "$WITH_MINGWIN" != "yes"; then 5025 # compiling with MSVC. Only supported platform here is MSVS2005 at the moment. 5026 if test "$MSVSVER" != "2005"; then 5027 AC_MSG_ERROR([Building SeaMonkey is supported with Microsoft Visual Studio .NET 2005 only.]) 5028 fi 5029 else 5030 AC_MSG_WARN([Building SeaMonkey with mingwin is not tested, and likely to break.]) 5031 echo "Building SeaMonkey with mingwin is not tested, and likely to break." >> warn 5032 fi 5033 fi 5034 5035 if test -z "$MOZILLA_VERSION"; then 5036 MOZILLA_VERSION=1.1.14 5037 fi 5038 if test "$_os" = "WINNT"; then 5039 AC_MSG_CHECKING([for moztools binaries]) 5040 if test ! -e "$TARFILE_LOCATION/vc8-moztools.zip" ; then 5041 AC_MSG_ERROR([The following file is missing in $TARFILE_LOCATION: vc8-moztools.zip 5042(from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)]) 5043 else 5044 AC_MSG_RESULT([ok]) 5045 fi 5046 elif test "$_os" = "Darwin"; then 5047 if test "$MOZILLA_TOOLKIT" = "gtk2"; then 5048 AC_MSG_NOTICE([checking whether mozilla can be built...]) 5049 PKG_CHECK_MODULES(MOZGTK2, gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8, AC_MSG_NOTICE([OK - can build mozilla]), AC_MSG_ERROR([Prerequisites to build mozilla not met. Either use the precompiled mozilla binaries or install the missing packages])) 5050 else 5051 PKG_CHECK_MODULES(MOZLIBREQ, libIDL-2.0 >= 0.6.3, MOZIDL="TRUE", MOZIDL="") 5052 if test -z "$MOZIDL"; then 5053 AC_MSG_ERROR([libIDL 0.6.3 or newer is needed to build mozilla with mac toolkit.]) 5054 fi 5055 fi 5056 else 5057 # Generic Unix/Linux section 5058 if test "$MOZILLA_TOOLKIT" = "gtk2"; then 5059 PKG_CHECK_MODULES(MOZLIBREQ, gtk+-2.0, MOZGTK="TRUE", MOZGTK="") 5060 if test -z "$MOZGTK"; then 5061 AC_MSG_ERROR([GTK2 is needed to build mozilla.]) 5062 fi 5063 PKG_CHECK_MODULES(MOZLIBREQ, libIDL-2.0 >= 0.8.0, MOZIDL="TRUE", MOZIDL="") 5064 if test -z "$MOZIDL"; then 5065 AC_MSG_ERROR([libIDL >= 0.8.0 is needed when using GTK2 to build mozilla.]) 5066 fi 5067 else 5068 PKG_CHECK_MODULES(MOZLIBREQ, gtk+ >= 1.2.3, MOZGTK="TRUE", MOZGTK="") 5069 if test -z "$MOZGTK"; then 5070 AC_MSG_ERROR([gtk 1.2 is needed when not using GTK2 to build mozilla.]) 5071 fi 5072 PKG_CHECK_MODULES(MOZLIBREQ, libidl >= 0.6.3 libidl <= 0.6.8, MOZIDL="TRUE", MOZIDL="") 5073 if test -z "$MOZIDL"; then 5074 AC_MSG_ERROR([libIDL 0.6.3 - 0.6.8 is needed when not using GTK2 to build mozilla.]) 5075 fi 5076 fi 5077 fi 5078fi 5079 5080AC_SUBST(BUILD_MOZAB) 5081 5082fi | |
| 5083AC_SUBST(ENABLE_NSS_MODULE) 5084AC_SUBST(MOZILLABUILD) | 4813AC_SUBST(ENABLE_NSS_MODULE) 4814AC_SUBST(MOZILLABUILD) |
| 5085AC_SUBST(SYSTEM_MOZILLA) 5086AC_SUBST(MOZ_FLAVOUR) | |
| 5087AC_SUBST(MOZ_INC) | 4815AC_SUBST(MOZ_INC) |
| 5088AC_SUBST(MOZ_LIB) 5089AC_SUBST(MOZ_LIB_XPCOM) 5090AC_SUBST(MOZ_NSPR_CFLAGS) 5091AC_SUBST(MOZ_NSS_CFLAGS) 5092AC_SUBST(MOZ_LDAP_CFLAGS) | |
| 5093 5094dnl =================================================================== 5095dnl Check for system sane 5096dnl =================================================================== 5097AC_MSG_CHECKING([which sane header to use]) 5098if test -n "$with_system_sane_header" -o -n "$with_system_headers" && \ 5099 test "$with_system_sane_header" != "no"; then 5100 AC_MSG_RESULT([external]) --- 2601 unchanged lines hidden --- | 4816 4817dnl =================================================================== 4818dnl Check for system sane 4819dnl =================================================================== 4820AC_MSG_CHECKING([which sane header to use]) 4821if test -n "$with_system_sane_header" -o -n "$with_system_headers" && \ 4822 test "$with_system_sane_header" != "no"; then 4823 AC_MSG_RESULT([external]) --- 2601 unchanged lines hidden --- |