~ubuntu-branches/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to m4/stdbool.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-01-16 15:18:04 UTC
  • mfrom: (17.6.38 experimental)
  • Revision ID: package-import@ubuntu.com-20140116151804-3foouk7fpqcq3sxx
Tags: 2.02~beta2-2
* Convert patch handling to git-dpm.
* Add bi-endian support to ELF parser (Tomohiro B Berry).
* Adjust restore_mkdevicemap.patch to mark get_kfreebsd_version as static,
  to appease "gcc -Werror=missing-prototypes".
* Cherry-pick from upstream:
  - Change grub-macbless' manual page section to 8.
* Install grub-glue-efi, grub-macbless, grub-render-label, and
  grub-syslinux2cfg.
* grub-shell: Pass -no-pad to xorriso when building floppy images.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Check for stdbool.h that conforms to C99.
2
2
 
3
 
dnl Copyright (C) 2002-2006, 2009-2010 Free Software Foundation, Inc.
 
3
dnl Copyright (C) 2002-2006, 2009-2013 Free Software Foundation, Inc.
4
4
dnl This file is free software; the Free Software Foundation
5
5
dnl gives unlimited permission to copy and/or distribute it,
6
6
dnl with or without modifications, as long as this notice is preserved.
7
7
 
8
 
#serial 3
 
8
#serial 5
9
9
 
10
10
# Prepare for substituting <stdbool.h> if it is not supported.
11
11
 
12
12
AC_DEFUN([AM_STDBOOL_H],
13
13
[
14
 
  AC_REQUIRE([AC_HEADER_STDBOOL])
 
14
  AC_REQUIRE([AC_CHECK_HEADER_STDBOOL])
15
15
 
16
16
  # Define two additional variables used in the Makefile substitution.
17
17
 
21
21
    STDBOOL_H='stdbool.h'
22
22
  fi
23
23
  AC_SUBST([STDBOOL_H])
 
24
  AM_CONDITIONAL([GL_GENERATE_STDBOOL_H], [test -n "$STDBOOL_H"])
24
25
 
25
26
  if test "$ac_cv_type__Bool" = yes; then
26
27
    HAVE__BOOL=1
33
34
# AM_STDBOOL_H will be renamed to gl_STDBOOL_H in the future.
34
35
AC_DEFUN([gl_STDBOOL_H], [AM_STDBOOL_H])
35
36
 
36
 
# This version of the macro is needed in autoconf <= 2.67.  Autoconf has
37
 
# it built in since 2.60, but we want the tweaks from the 2.68 version
38
 
# to avoid rejecting xlc and clang due to relying on extensions.
 
37
# This version of the macro is needed in autoconf <= 2.68.
39
38
 
40
 
AC_DEFUN([AC_HEADER_STDBOOL],
 
39
AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
41
40
  [AC_CACHE_CHECK([for stdbool.h that conforms to C99],
42
41
     [ac_cv_header_stdbool_h],
43
42
     [AC_COMPILE_IFELSE(
98
97
        [ac_cv_header_stdbool_h=yes],
99
98
        [ac_cv_header_stdbool_h=no])])
100
99
   AC_CHECK_TYPES([_Bool])
101
 
   if test $ac_cv_header_stdbool_h = yes; then
102
 
     AC_DEFINE([HAVE_STDBOOL_H], [1], [Define to 1 if stdbool.h conforms to C99.])
103
 
   fi])
 
100
])