~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to m4/stdlib_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Evan Broder, Mario Limonciello
  • Date: 2010-11-24 13:59:55 UTC
  • mfrom: (1.17.6 upstream) (17.6.15 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124135955-r6ii5sepayr7jt53
Tags: 1.99~20101124-1ubuntu1
[ Colin Watson ]
* Resynchronise with Debian experimental.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu.  Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed.  If it is, show the
    menu, otherwise boot immediately.  If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt.  Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - Suppress progress messages as the kernel and initrd load for
    non-recovery kernel menu entries.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Don't generate /boot/grub/device.map during grub-install or
    grub-mkconfig by default.
  - Adjust upgrade version checks for Ubuntu.
  - Don't display "GRUB loading" unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts to tolerate
    our backport of the grub-doc split.
  - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
  - Look for .mo files in /usr/share/locale-langpack as well, in
    preference.
  - Make sure GRUB_TIMEOUT isn't quoted unnecessarily.
  - Probe all devices in 'grub-probe --target=drive' if
    /boot/grub/device.map is missing.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Use qemu rather than qemu-system-i386.
  - Program vesafb on BIOS systems rather than efifb.
  - Add a grub-rescue-efi-amd64 package containing a rescue CD-ROM image
    for EFI-AMD64.
  - On Wubi, don't ask for an install device, but just update wubildr
    using the diverted grub-install.
  - When embedding the core image in a post-MBR gap, check for and avoid
    sectors matching any of a list of known signatures.
  - Disable video_bochs and video_cirrus on PC BIOS systems, as probing
    PCI space seems to break on some systems.
* Downgrade "ACPI shutdown failed" error to a debug message, since it can
  cause spurious test failures.

[ Evan Broder ]
* Enable lua from grub-extras.
* Incorporate the bitop library into lua.
* Add enum_pci function to grub module in lua.
* Switch back to gfxpayload=keep by default, unless the video hardware
  is known to not support it.

[ Mario Limonciello ]
* Built part_msdos and vfat into bootx64.efi (LP: #677758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# stdlib_h.m4 serial 30
 
2
dnl Copyright (C) 2007-2010 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.
 
6
 
 
7
AC_DEFUN([gl_STDLIB_H],
 
8
[
 
9
  AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
 
10
  gl_CHECK_NEXT_HEADERS([stdlib.h])
 
11
  AC_CHECK_HEADERS([random.h], [], [], [AC_INCLUDES_DEFAULT])
 
12
  if test $ac_cv_header_random_h = yes; then
 
13
    HAVE_RANDOM_H=1
 
14
  else
 
15
    HAVE_RANDOM_H=0
 
16
  fi
 
17
  AC_SUBST([HAVE_RANDOM_H])
 
18
  AC_CHECK_TYPES([struct random_data],
 
19
    [], [HAVE_STRUCT_RANDOM_DATA=0],
 
20
    [[#include <stdlib.h>
 
21
      #if HAVE_RANDOM_H
 
22
      # include <random.h>
 
23
      #endif
 
24
    ]])
 
25
 
 
26
  dnl Check for declarations of anything we want to poison if the
 
27
  dnl corresponding gnulib module is not in use, and which is not
 
28
  dnl guaranteed by C89.
 
29
  gl_WARN_ON_USE_PREPARE([[#include <stdlib.h>
 
30
#if HAVE_SYS_LOADAVG_H
 
31
# include <sys/loadavg.h>
 
32
#endif
 
33
#if HAVE_RANDOM_H
 
34
# include <random.h>
 
35
#endif
 
36
    ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp
 
37
    mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r
 
38
    setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt
 
39
    unsetenv])
 
40
])
 
41
 
 
42
AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],
 
43
[
 
44
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
45
  AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
 
46
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
 
47
  dnl Define it also as a C macro, for the benefit of the unit tests.
 
48
  gl_MODULE_INDICATOR_FOR_TESTS([$1])
 
49
])
 
50
 
 
51
AC_DEFUN([gl_STDLIB_H_DEFAULTS],
 
52
[
 
53
  GNULIB__EXIT=0;         AC_SUBST([GNULIB__EXIT])
 
54
  GNULIB_ATOLL=0;         AC_SUBST([GNULIB_ATOLL])
 
55
  GNULIB_CALLOC_POSIX=0;  AC_SUBST([GNULIB_CALLOC_POSIX])
 
56
  GNULIB_CANONICALIZE_FILE_NAME=0;  AC_SUBST([GNULIB_CANONICALIZE_FILE_NAME])
 
57
  GNULIB_GETLOADAVG=0;    AC_SUBST([GNULIB_GETLOADAVG])
 
58
  GNULIB_GETSUBOPT=0;     AC_SUBST([GNULIB_GETSUBOPT])
 
59
  GNULIB_GRANTPT=0;       AC_SUBST([GNULIB_GRANTPT])
 
60
  GNULIB_MALLOC_POSIX=0;  AC_SUBST([GNULIB_MALLOC_POSIX])
 
61
  GNULIB_MKDTEMP=0;       AC_SUBST([GNULIB_MKDTEMP])
 
62
  GNULIB_MKOSTEMP=0;      AC_SUBST([GNULIB_MKOSTEMP])
 
63
  GNULIB_MKOSTEMPS=0;     AC_SUBST([GNULIB_MKOSTEMPS])
 
64
  GNULIB_MKSTEMP=0;       AC_SUBST([GNULIB_MKSTEMP])
 
65
  GNULIB_MKSTEMPS=0;      AC_SUBST([GNULIB_MKSTEMPS])
 
66
  GNULIB_PTSNAME=0;       AC_SUBST([GNULIB_PTSNAME])
 
67
  GNULIB_PUTENV=0;        AC_SUBST([GNULIB_PUTENV])
 
68
  GNULIB_RANDOM_R=0;      AC_SUBST([GNULIB_RANDOM_R])
 
69
  GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX])
 
70
  GNULIB_REALPATH=0;      AC_SUBST([GNULIB_REALPATH])
 
71
  GNULIB_RPMATCH=0;       AC_SUBST([GNULIB_RPMATCH])
 
72
  GNULIB_SETENV=0;        AC_SUBST([GNULIB_SETENV])
 
73
  GNULIB_STRTOD=0;        AC_SUBST([GNULIB_STRTOD])
 
74
  GNULIB_STRTOLL=0;       AC_SUBST([GNULIB_STRTOLL])
 
75
  GNULIB_STRTOULL=0;      AC_SUBST([GNULIB_STRTOULL])
 
76
  GNULIB_UNLOCKPT=0;      AC_SUBST([GNULIB_UNLOCKPT])
 
77
  GNULIB_UNSETENV=0;      AC_SUBST([GNULIB_UNSETENV])
 
78
  dnl Assume proper GNU behavior unless another module says otherwise.
 
79
  HAVE__EXIT=1;              AC_SUBST([HAVE__EXIT])
 
80
  HAVE_ATOLL=1;              AC_SUBST([HAVE_ATOLL])
 
81
  HAVE_CANONICALIZE_FILE_NAME=1;  AC_SUBST([HAVE_CANONICALIZE_FILE_NAME])
 
82
  HAVE_DECL_GETLOADAVG=1;    AC_SUBST([HAVE_DECL_GETLOADAVG])
 
83
  HAVE_GETSUBOPT=1;          AC_SUBST([HAVE_GETSUBOPT])
 
84
  HAVE_GRANTPT=1;            AC_SUBST([HAVE_GRANTPT])
 
85
  HAVE_MKDTEMP=1;            AC_SUBST([HAVE_MKDTEMP])
 
86
  HAVE_MKOSTEMP=1;           AC_SUBST([HAVE_MKOSTEMP])
 
87
  HAVE_MKOSTEMPS=1;          AC_SUBST([HAVE_MKOSTEMPS])
 
88
  HAVE_MKSTEMP=1;            AC_SUBST([HAVE_MKSTEMP])
 
89
  HAVE_MKSTEMPS=1;           AC_SUBST([HAVE_MKSTEMPS])
 
90
  HAVE_PTSNAME=1;            AC_SUBST([HAVE_PTSNAME])
 
91
  HAVE_RANDOM_R=1;           AC_SUBST([HAVE_RANDOM_R])
 
92
  HAVE_REALPATH=1;           AC_SUBST([HAVE_REALPATH])
 
93
  HAVE_RPMATCH=1;            AC_SUBST([HAVE_RPMATCH])
 
94
  HAVE_SETENV=1;             AC_SUBST([HAVE_SETENV])
 
95
  HAVE_STRTOD=1;             AC_SUBST([HAVE_STRTOD])
 
96
  HAVE_STRTOLL=1;            AC_SUBST([HAVE_STRTOLL])
 
97
  HAVE_STRTOULL=1;           AC_SUBST([HAVE_STRTOULL])
 
98
  HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA])
 
99
  HAVE_SYS_LOADAVG_H=0;      AC_SUBST([HAVE_SYS_LOADAVG_H])
 
100
  HAVE_UNLOCKPT=1;           AC_SUBST([HAVE_UNLOCKPT])
 
101
  HAVE_UNSETENV=1;           AC_SUBST([HAVE_UNSETENV])
 
102
  REPLACE_CALLOC=0;          AC_SUBST([REPLACE_CALLOC])
 
103
  REPLACE_CANONICALIZE_FILE_NAME=0;  AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME])
 
104
  REPLACE_MALLOC=0;          AC_SUBST([REPLACE_MALLOC])
 
105
  REPLACE_MKSTEMP=0;         AC_SUBST([REPLACE_MKSTEMP])
 
106
  REPLACE_PUTENV=0;          AC_SUBST([REPLACE_PUTENV])
 
107
  REPLACE_REALLOC=0;         AC_SUBST([REPLACE_REALLOC])
 
108
  REPLACE_REALPATH=0;        AC_SUBST([REPLACE_REALPATH])
 
109
  REPLACE_SETENV=0;          AC_SUBST([REPLACE_SETENV])
 
110
  REPLACE_STRTOD=0;          AC_SUBST([REPLACE_STRTOD])
 
111
  REPLACE_UNSETENV=0;        AC_SUBST([REPLACE_UNSETENV])
 
112
])