~ubuntu-branches/ubuntu/quantal/lightning-extension/quantal-security

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-05-21 16:09:39 UTC
  • mfrom: (1.3.1) (25.1.1 precise-security)
  • Revision ID: package-import@ubuntu.com-20120521160939-0702473a46xfq3tl
Tags: 1.5~b2+build1-0ubuntu1
New upstream release from the beta channel (CALENDAR_1_5b2_BUILD1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
MOZ_ARG_WITH_STRING(l10n-base,
231
231
[  --with-l10n-base=DIR     path to l10n repositories],
232
232
    L10NBASEDIR=$withval)
233
 
if test ! -z "$L10NBASEDIR"; then
 
233
if test -n "$L10NBASEDIR"; then
234
234
    if test "$L10NBASEDIR" = "yes" -o "$L10NBASEDIR" = "no"; then
235
235
        AC_MSG_ERROR([--with-l10n-base must specify a path])
236
236
    elif test -d "$L10NBASEDIR"; then
399
399
    AC_DEFINE(CROSS_COMPILE)
400
400
else
401
401
    AC_PROG_CC
 
402
    case "$target" in
 
403
    *-mingw*)
 
404
      # Work around the conftest.exe access problem on Windows (bug 545015)
 
405
      sleep 1
 
406
    esac
402
407
    AC_PROG_CXX
403
408
    AC_PROG_RANLIB
404
409
    MOZ_PATH_PROGS(AS, $AS as, $CC)
489
494
MOZ_ARG_WITH_STRING(windows-version,
490
495
[  --with-windows-version=WINSDK_TARGETVER
491
496
                          Highest Windows version to target using this SDK
492
 
                              502: Windows Server 2003
493
 
                              600: Windows Vista
494
497
                              601: Windows 7],
495
498
  WINSDK_TARGETVER=$withval)
496
499
 
497
500
case "$WINSDK_TARGETVER" in
498
 
502|600|601)
 
501
601)
499
502
    MOZ_WINSDK_TARGETVER=0${WINSDK_TARGETVER}0000
500
503
    ;;
501
504
 
502
505
*)
503
 
    AC_MSG_ERROR([Invalid value for --with-windows-version ($WINSDK_TARGETVER), must be 502, 600 or 601]);
 
506
    AC_MSG_ERROR([Invalid value for --with-windows-version ($WINSDK_TARGETVER), must be 601]);
504
507
    ;;
505
508
 
506
509
esac
507
510
 
508
 
dnl Vista SDK specific api (deprecated)
509
 
MOZ_ARG_DISABLE_BOOL(vista-sdk-requirements,
510
 
[  --disable-vista-sdk-requirements
511
 
                           Do not build Vista SDK specific code],
512
 
   MOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1,
513
 
   MOZ_DISABLE_VISTA_SDK_REQUIREMENTS=)
514
 
if test -n "$COMPILE_ENVIRONMENT"; then
515
 
if test -n "$MOZ_DISABLE_VISTA_SDK_REQUIREMENTS"; then
516
 
    AC_MSG_WARN([--disable-vista-sdk-requirements is deprecated, use --with-windows-version=502 instead])
517
 
    MOZ_WINSDK_TARGETVER=05020000
518
 
fi
519
 
 
520
 
if test "$MOZ_WINSDK_TARGETVER" -lt "06000000"; then
521
 
    MOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1
522
 
    AC_DEFINE(MOZ_DISABLE_VISTA_SDK_REQUIREMENTS)
523
 
fi
524
 
fi
525
 
 
526
 
AC_SUBST(MOZ_DISABLE_VISTA_SDK_REQUIREMENTS)
527
 
 
528
511
case "$target" in
529
512
*-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince|*-winmo)
530
513
    if test "$GCC" != "yes"; then
681
664
                           ])
682
665
            MOZ_WINSDK_MAXVER=${ac_cv_winsdk_maxver}
683
666
        else
684
 
            # The Vista SDK is the only one to have sdkddkver.h but not
685
 
            # WinSDKVer.h
686
 
            AC_CHECK_HEADERS([sdkddkver.h])
687
 
            if test "$ac_cv_header_sdkddkver_h" = "yes"; then
688
 
                MOZ_WINSDK_MAXVER=0x06000000
689
 
            else
690
 
                # Assume the Server 2003 Platform SDK
691
 
                MOZ_WINSDK_MAXVER=0x05020000
692
 
            fi
 
667
            # Any SDK which doesn't have WinSDKVer.h is too old.
 
668
            AC_MSG_ERROR([Your SDK does not have WinSDKVer.h. It is probably too old. Please upgrade to a newer SDK or try running the Windows SDK Configuration Tool and selecting a newer SDK. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this.])
693
669
        fi
694
670
 
695
671
        unset _MSVC_VER_FILTER
795
771
            AC_MSG_ERROR([windres version $WINDRES_VERSION or higher is required to build.])
796
772
        fi
797
773
 
798
 
        # Server 2003 is the highest version supported
799
 
        MOZ_WINSDK_MAXVER=0x05020000
 
774
        MOZ_WINSDK_MAXVER=0x06010000
800
775
    fi # !GNU_CC
801
776
 
802
777
    AC_DEFINE_UNQUOTED(WINVER,0x$WINVER)
803
778
    AC_DEFINE_UNQUOTED(_WIN32_WINNT,0x$WINVER)
804
 
    # Require OS features provided by IE 5.0
805
 
    AC_DEFINE_UNQUOTED(_WIN32_IE,0x0500)
 
779
    # Require OS features provided by IE 6.0 SP2 (XP SP2)
 
780
    AC_DEFINE_UNQUOTED(_WIN32_IE,0x0603)
806
781
 
807
782
    # If the maximum version supported by this SDK is lower than the target
808
783
    # version, error out
2336
2311
        AC_MSG_ERROR([\$MOZ_TOOLS\\bin must be in your path.])
2337
2312
    fi
2338
2313
    MOZ_TOOLS_DIR=`$CYGPATH_W $MOZ_TOOLS_DIR | $CYGPATH_S`
2339
 
 
2340
 
    if test -n "$GLIB_PREFIX"; then
2341
 
        _GLIB_PREFIX_DIR=`cd $GLIB_PREFIX && pwd -W`
2342
 
        if test "$?" = "0"; then
2343
 
            if test `echo ${PATH}: | grep -ic "$_GLIB_PREFIX_DIR/bin:"` = 0; then
2344
 
                AC_MSG_ERROR([GLIB_PREFIX must be in your \$PATH.])
2345
 
            fi
2346
 
            _GLIB_PREFIX_DIR=`$CYGPATH_W $_GLIB_PREFIX_DIR | $CYGPATH_S`
2347
 
        else
2348
 
            AC_MSG_ERROR([GLIB_PREFIX is set but "${GLIB_PREFIX}" is not a directory.])
2349
 
        fi
2350
 
    else
2351
 
        _GLIB_PREFIX_DIR=$MOZ_TOOLS_DIR
2352
 
    fi
2353
 
    if test ! -f "${_GLIB_PREFIX_DIR}/include/glib.h"; then
2354
 
        AC_MSG_ERROR([Cannot find $_GLIB_PREFIX_DIR/include/glib.h .])
2355
 
    fi
2356
 
    GLIB_CFLAGS="-I${_GLIB_PREFIX_DIR}/include"
2357
 
    if test -f "${_GLIB_PREFIX_DIR}/lib/glib-1.2_s.lib"; then
2358
 
        GLIB_LIBS="${_GLIB_PREFIX_DIR}/lib/glib-1.2_s.lib"
2359
 
    elif test -f "${_GLIB_PREFIX_DIR}/lib/glib-1.2.lib"; then
2360
 
        GLIB_LIBS="${_GLIB_PREFIX_DIR}/lib/glib-1.2.lib"
2361
 
    else
2362
 
        AC_MSG_ERROR([Cannot find $_GLIB_PREFIX_DIR/lib/glib-1.2.lib or $_GLIB_PREFIX_DIR/lib/glib-1.2_s.lib])
2363
 
    fi
2364
2314
    ;;
2365
 
 
2366
 
    *) # else cross-compiling
2367
 
        if test -n "$GLIB_PREFIX"; then
2368
 
            GLIB_CFLAGS="-I${GLIB_PREFIX}/include"
2369
 
            if test -f "${GLIB_PREFIX}/lib/glib-1.2_s.lib"; then
2370
 
                GLIB_LIBS="${GLIB_PREFIX}/lib/glib-1.2_s.lib"
2371
 
            elif test -f "${GLIB_PREFIX}/lib/glib-1.2.lib"; then
2372
 
                GLIB_LIBS="${GLIB_PREFIX}/lib/glib-1.2.lib"
2373
 
            else
2374
 
                AC_MSG_ERROR([Cannot find $GLIB_PREFIX/lib/glib-1.2.lib or $GLIB_PREFIX/lib/glib-1.2_s.lib])
2375
 
            fi
2376
 
        fi
2377
 
        ;;
2378
2315
    esac 
2379
2316
 
2380
2317
 
4107
4044
                            ac_cv_thread_keyword=no)])
4108
4045
LDFLAGS=$_SAVE_LDFLAGS
4109
4046
if test "$ac_cv_thread_keyword" = yes; then
4110
 
  AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
 
4047
  # mips builds fail with TLS variables because of a binutils bug.
 
4048
  # See bug 528687
 
4049
  case "${target}" in
 
4050
    mips*-*)
 
4051
      :
 
4052
      ;;
 
4053
    *)
 
4054
      AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
 
4055
      ;;
 
4056
  esac
4111
4057
fi
4112
4058
 
4113
4059
dnl Check for the existence of various allocation headers/functions
4177
4123
                                ac_cv_i18n_lc_messages=no)])
4178
4124
if test "$ac_cv_i18n_lc_messages" = yes; then
4179
4125
   AC_DEFINE(HAVE_I18N_LC_MESSAGES)
4180
 
fi      
4181
 
 
4182
 
fi # SKIP_COMPILER_CHECKS
 
4126
fi
 
4127
fi # ! SKIP_COMPILER_CHECKS
4183
4128
 
4184
4129
TARGET_XPCOM_ABI=
4185
4130
if test -n "${CPU_ARCH}" -a -n "${TARGET_COMPILER_ABI}"; then
4526
4471
MOZ_CALENDAR=
4527
4472
MOZ_FEEDS=1
4528
4473
MOZ_INSTALLER=1
4529
 
MOZ_IPC=1
4530
4474
MOZ_JSDEBUGGER=1
4531
4475
MOZ_LDAP_XPCOM=
4532
4476
MOZ_MORK=
4554
4498
MOZ_UI_LOCALE=en-US
4555
4499
MOZ_UNIVERSALCHARDET=1
4556
4500
MOZ_URL_CLASSIFIER=
4557
 
MOZ_USE_NATIVE_UCONV=
4558
4501
MOZ_XSLT_STANDALONE=
4559
4502
MOZ_XTF=1
4560
4503
MOZ_XUL=1
5120
5063
    MOZ_JSDEBUGGER=1)
5121
5064
 
5122
5065
dnl ========================================================
5123
 
dnl = Disable IPC support for tabs and plugins
5124
 
dnl ========================================================
5125
 
MOZ_ARG_DISABLE_BOOL(ipc,
5126
 
[  --disable-ipc           Disable IPC supports for tabs and plugins],
5127
 
    MOZ_IPC=,
5128
 
    MOZ_IPC=1)
5129
 
 
5130
 
if test -n "$MOZ_IPC"; then
5131
 
    AC_DEFINE(MOZ_IPC)
5132
 
fi
5133
 
 
5134
 
AC_SUBST(MOZ_IPC)
5135
 
 
5136
 
dnl ========================================================
5137
5066
dnl = Disable plugin support
5138
5067
dnl ========================================================
5139
5068
MOZ_ARG_DISABLE_BOOL(plugins,
5183
5112
fi
5184
5113
 
5185
5114
dnl ========================================================
5186
 
dnl use native unicode converters
5187
 
dnl ========================================================
5188
 
MOZ_ARG_ENABLE_BOOL(native-uconv,
5189
 
[  --enable-native-uconv   Enable iconv support],
5190
 
    MOZ_USE_NATIVE_UCONV=1,
5191
 
    MOZ_USE_NATIVE_UCONV= )
5192
 
if test "$MOZ_USE_NATIVE_UCONV"; then
5193
 
    AC_DEFINE(MOZ_USE_NATIVE_UCONV)
5194
 
fi
5195
 
if test "$OS_ARCH" != "WINCE" -a "$OS_ARCH" != "WINNT" -a "$MOZ_USE_NATIVE_UCONV" -a "$ac_cv_func_iconv" != "yes"; then
5196
 
    AC_MSG_ERROR([iconv() not found.  Cannot enable native uconv support.])
5197
 
fi
5198
 
 
5199
 
 
5200
 
dnl ========================================================
5201
5115
dnl Libeditor can be build as plaintext-only,
5202
5116
dnl or as a full html and text editing component.
5203
5117
dnl We build both by default.
5370
5284
  fi
5371
5285
 
5372
5286
  if test -n "`echo $MOZ_DIRECTX_SDK_REG_KEY | grep 'February 2010'`" ; then
5373
 
    AC_MSG_WARN([Found the February 2010 DirectX SDK. This is too old. We now require the June 2010 DirectX SDK, or newer.])
 
5287
    AC_MSG_ERROR([Found the February 2010 DirectX SDK. This is too old. We now require the June 2010 DirectX SDK, or newer.  Upgrade your SDK or to explicitly build without ANGLE, reconfigure with --disable-angle.])
5374
5288
  else
5375
5289
    MOZ_DIRECTX_SDK_PATH=`reg query "$MOZ_DIRECTX_SDK_REG_KEY" //v InstallPath | grep REG_SZ | sed 's/.*\([[a-zA-Z]]\)\\:\\\\/\\1\\:\\\\/'`
5376
5290
  fi
5442
5356
fi
5443
5357
 
5444
5358
dnl ========================================================
5445
 
dnl SMIL
5446
 
dnl ========================================================
5447
 
MOZ_SMIL=1
5448
 
MOZ_ARG_DISABLE_BOOL(smil,
5449
 
[  --disable-smil           Disable SMIL animation support],
5450
 
    MOZ_SMIL=,
5451
 
    MOZ_SMIL=1 )
5452
 
 
5453
 
if test -n "$MOZ_SMIL"; then
5454
 
  AC_DEFINE(MOZ_SMIL)
5455
 
fi
5456
 
 
5457
 
dnl ========================================================
5458
5359
dnl Build Freetype in the tree
5459
5360
dnl ========================================================
5460
5361
MOZ_ARG_ENABLE_BOOL(tree-freetype,
6351
6252
fi
6352
6253
 
6353
6254
dnl ========================================================
6354
 
dnl Profile guided optimization
 
6255
dnl Profile guided optimization (gcc checks)
6355
6256
dnl ========================================================
6356
6257
dnl Test for profiling options
6357
6258
dnl Under gcc 3.4+, use -fprofile-generate/-fprofile-use
6358
6259
 
6359
 
dnl Provide a switch to disable PGO even when called via profiledbuild.
6360
 
MOZ_ARG_DISABLE_BOOL(profile-guided-optimization,
6361
 
[  --disable-profile-guided-optimization
6362
 
                           Don't build with PGO even if called via make profiledbuild],
6363
 
MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE=1,
6364
 
MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE=)
6365
 
 
6366
 
AC_SUBST(MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE)
6367
 
 
6368
6260
_SAVE_CFLAGS="$CFLAGS"
6369
6261
CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
6370
6262
 
6502
6394
if test "$ac_nscap_nonconst_opeq_bug" = "yes" ; then
6503
6395
    AC_DEFINE(NSCAP_DONT_PROVIDE_NONCONST_OPEQ)
6504
6396
fi
6505
 
fi # SKIP_COMPILER_CHECKS
 
6397
fi # ! SKIP_COMPILER_CHECKS
6506
6398
 
6507
6399
dnl ========================================================
6508
6400
dnl C++ exceptions (g++/VC/irix6/Sun only - for now)
6850
6742
AC_SUBST(MOZ_PERMISSIONS)
6851
6743
AC_SUBST(MOZ_XTF)
6852
6744
AC_SUBST(MOZ_PREF_EXTENSIONS)
6853
 
AC_SUBST(MOZ_SMIL)
6854
6745
AC_SUBST(MOZ_XSLT_STANDALONE)
6855
6746
AC_SUBST(MOZ_JS_LIBS)
6856
6747
AC_SUBST(MOZ_PSM)
6867
6758
AC_SUBST(MOZ_JPROF)
6868
6759
AC_SUBST(MOZ_SHARK)
6869
6760
AC_SUBST(MOZ_PROFILING)
6870
 
AC_SUBST(MOZ_USE_NATIVE_UCONV)
6871
6761
AC_SUBST(MOZ_QUANTIFY)
6872
6762
AC_SUBST(MOZ_LDAP_XPCOM)
6873
6763
AC_SUBST(LDAP_CFLAGS)
6939
6829
fi
6940
6830
AC_SUBST(MOZ_MACBUNDLE_NAME)
6941
6831
 
 
6832
# For extensions and langpacks, we require a max version that is compatible
 
6833
# across security releases. MOZ_APP_MAXVERSION is our method for doing that.
 
6834
# 10.0a1 and 10.0a2 aren't affected
 
6835
# 10.0 becomes 10.0.*
 
6836
# 10.0.1 becomes 10.0.*
 
6837
IS_ALPHA=`echo $MOZ_APP_VERSION | grep a`
 
6838
if test -z "$IS_ALPHA"; then
 
6839
  changequote(,)
 
6840
  MOZ_APP_MAXVERSION=`echo $MOZ_APP_VERSION | sed "s|\(^[0-9]*.[0-9]*\).*|\1|"`.*
 
6841
  changequote([,])
 
6842
else
 
6843
  MOZ_APP_MAXVERSION=$MOZ_APP_VERSION
 
6844
fi
 
6845
 
6942
6846
AC_SUBST(MOZ_APP_NAME)
6943
6847
AC_SUBST(MOZ_APP_DISPLAYNAME)
6944
6848
AC_SUBST(MOZ_APP_VERSION)
 
6849
AC_SUBST(MOZ_APP_MAXVERSION)
6945
6850
AC_SUBST(FIREFOX_VERSION)
6946
6851
AC_SUBST(THUNDERBIRD_VERSION)
6947
6852
AC_SUBST(SUNBIRD_VERSION)