~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to m4/intlmacosx.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-10-19 00:00:09 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20111019000009-8p33w3wz4b1rdri0
Tags: 1.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
  - Depend on libssl-dev 0.9.8k-7ubuntu4 (LP: #503339)
* Dropped changes, superseded in Debian:
  - Keep build dependencies in main:
    + debian/control: remove info2man build-dep
    + debian/patches/series: disable wget-infopod_generated_manpage
  - Mark wget Multi-Arch: foreign, so packages that aren't of the same arch
    can depend on it.
* Pass --with-ssl=openssl; we don't want to use gnutls, there's no udeb for
  it.
* Add a second build pass for the udeb, so we can build without libidn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- buffer-read-only: t -*- vi: set ro:
 
2
# DO NOT EDIT! GENERATED AUTOMATICALLY!
 
3
# intlmacosx.m4 serial 1 (gettext-0.17)
 
4
dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
 
5
dnl This file is free software; the Free Software Foundation
 
6
dnl gives unlimited permission to copy and/or distribute it,
 
7
dnl with or without modifications, as long as this notice is preserved.
 
8
dnl
 
9
dnl This file can can be used in projects which are not available under
 
10
dnl the GNU General Public License or the GNU Library General Public
 
11
dnl License but which still want to provide support for the GNU gettext
 
12
dnl functionality.
 
13
dnl Please note that the actual code of the GNU gettext library is covered
 
14
dnl by the GNU Library General Public License, and the rest of the GNU
 
15
dnl gettext package package is covered by the GNU General Public License.
 
16
dnl They are *not* in the public domain.
 
17
 
 
18
dnl Checks for special options needed on MacOS X.
 
19
dnl Defines INTL_MACOSX_LIBS.
 
20
AC_DEFUN([gt_INTL_MACOSX],
 
21
[
 
22
  dnl Check for API introduced in MacOS X 10.2.
 
23
  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
 
24
    gt_cv_func_CFPreferencesCopyAppValue,
 
25
    [gt_save_LIBS="$LIBS"
 
26
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
27
     AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
 
28
       [CFPreferencesCopyAppValue(NULL, NULL)],
 
29
       [gt_cv_func_CFPreferencesCopyAppValue=yes],
 
30
       [gt_cv_func_CFPreferencesCopyAppValue=no])
 
31
     LIBS="$gt_save_LIBS"])
 
32
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
33
    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
 
34
      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
 
35
  fi
 
36
  dnl Check for API introduced in MacOS X 10.3.
 
37
  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
 
38
    [gt_save_LIBS="$LIBS"
 
39
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
40
     AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
 
41
       [gt_cv_func_CFLocaleCopyCurrent=yes],
 
42
       [gt_cv_func_CFLocaleCopyCurrent=no])
 
43
     LIBS="$gt_save_LIBS"])
 
44
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
45
    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
 
46
      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
 
47
  fi
 
48
  INTL_MACOSX_LIBS=
 
49
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
50
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
51
  fi
 
52
  AC_SUBST([INTL_MACOSX_LIBS])
 
53
])