~ubuntu-branches/ubuntu/karmic/gnupg2/karmic-security

« back to all changes in this revision

Viewing changes to m4/intmax.m4

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# intmax.m4 serial 1 (gettext-0.12)
2
 
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3
 
dnl This file is free software, distributed under the terms of the GNU
4
 
dnl General Public License.  As a special exception to the GNU General
5
 
dnl Public License, this file may be distributed as part of a program
6
 
dnl that contains a configuration script generated by Autoconf, under
7
 
dnl the same distribution terms as the rest of that program.
 
1
# intmax.m4 serial 3 (gettext-0.16)
 
2
dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
 
3
dnl This file is free software; the Free Software Foundation
 
4
dnl gives unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
8
6
 
9
7
dnl From Bruno Haible.
10
8
dnl Test whether the system has the 'intmax_t' type, but don't attempt to
12
10
 
13
11
AC_DEFUN([gt_TYPE_INTMAX_T],
14
12
[
15
 
  AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
16
 
  AC_REQUIRE([jm_AC_HEADER_STDINT_H])
 
13
  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
 
14
  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
17
15
  AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
18
16
    [AC_TRY_COMPILE([
19
 
#include <stddef.h> 
 
17
#include <stddef.h>
20
18
#include <stdlib.h>
21
19
#if HAVE_STDINT_H_WITH_UINTMAX
22
20
#include <stdint.h>
24
22
#if HAVE_INTTYPES_H_WITH_UINTMAX
25
23
#include <inttypes.h>
26
24
#endif
27
 
], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
 
25
],     [intmax_t x = -1;
 
26
        return !x;],
 
27
       gt_cv_c_intmax_t=yes,
 
28
       gt_cv_c_intmax_t=no)])
28
29
  if test $gt_cv_c_intmax_t = yes; then
29
30
    AC_DEFINE(HAVE_INTMAX_T, 1,
30
31
      [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])