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.
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
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.
18
dnl Checks for special options needed on MacOS X.
19
dnl Defines INTL_MACOSX_LIBS.
20
AC_DEFUN([gt_INTL_MACOSX],
22
dnl Check for API introduced in MacOS X 10.2.
23
AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
24
gt_cv_func_CFPreferencesCopyAppValue,
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.])
36
dnl Check for API introduced in MacOS X 10.3.
37
AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
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.])
49
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
52
AC_SUBST([INTL_MACOSX_LIBS])