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

« back to all changes in this revision

Viewing changes to .pc/01_no_sunbird.patch/configure.in

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-06-08 01:02:31 UTC
  • mfrom: (1.3.1)
  • Revision ID: package-import@ubuntu.com-20120608010231-xinofb50zs95lob9
Tags: 1.5~b2+build1-0ubuntu0.11.10.1
* New upstream release from the beta channel (CALENDAR_1_5b2_BUILD1)
  - LP: #1007556

* fix LP: #996817 - Add a transitional package to remove the old
  lightning-extension package which still has files installed in
  /usr/lib/thunderbird/extensions
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
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