~ubuntu-branches/ubuntu/natty/libvirt/natty-security

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-02-23 09:05:46 UTC
  • mfrom: (1.2.8 upstream) (3.4.25 sid)
  • Revision ID: james.westby@ubuntu.com-20110223090546-4pwmrrt7h51hr3l3
Tags: 0.8.8-1ubuntu1
* Resynchronize and merge from Debian unstable. Remaining changes:
  - debian/patches:
    * 9000-delayed_iff_up_bridge.patch
    * 9001-dont_clobber_existing_bridges.patch
    * 9002-better_default_uri_virsh.patch
    * 9003-better-default-arch.patch
    * 9004-libvirtd-group-name.patch
    * 9005-increase-unix-socket-timeout.patch
    * 9006-default-config-test-case.patch
    * 9007-fix-daemon-conf-ftbfs.patch
    * 9011-move-ebtables-script.patch
    * 9014-skip-nodeinfotest.patch
    * 9020-lp545795.patch
    * 9021-fix-uint64_t.patch
  - debian/patches/series:
    * Disable qemu-disable-network.diff.patch
  - debian/control:
    * set ubuntu maintainer
    * Build-Depends:
      - swap libxen to libxen3, qemu to qemu-kvm, and open-iscsi to
        open-iscsi-utils in Build-Depends
      - remove virtualbox Build-Depends
      - add libxml2 and libapparmor-dev Build-Depends
    * convert Vcs-Git to Xs-Debian-Vcs-Git
    * libvirt-bin Depends: move netcat-openbsd, bridge-utils, dnsmasq-base
      (>= 2.46-1), and iptables from Recommends to Depends
    * libvirt-bin Recommends: move qemu to Suggests
    * libvirt-bin Suggests: add apparmor
    * libvirt0 Recommands: move lvm2 to Suggests
  - keep debian/libvirt-bin.apport
  - keep debian/libvirt-bin.cron.daily
  - debian/libvirt-bin.dirs:
    * add apparmor, cron.daily, and apport dirs
  - debian/libvirt-bin.examples:
    * add debian/libvirt-suspendonreboot
  - debian/libvirt-bin.install:
    * add /etc/apparmor.d files
    * add apport hook
  - debian/libvirt-bin.manpages:
    * add debian/libvirt-migrate-qemu-disks.1
  - debian/libvirt-bin.postinst:
    * replace libvirt groupname with libvirtd
    * add each admin user to libvirtd group
    * call apparmor_parser on usr.sbin.libvirtd and
      usr.lib.libvirt.virt-aa-helper
    * call 'libvirt-migrate-qemu-disks -a' after
      libvirt-bin has started if migrating from
      older than 0.8.3-1ubuntu1
  - debian/libvirt-bin.postrm:
    * replace libvirt groupname with libvirtd
    * remove usr.sbin.libvirtd and
      usr.lib.libvirt.virt-aa-helper
  - keep added files under debian/:
    * libvirt-bin.upstart
    * libvirt-migrate-qemu-disks
    * libvirt-migrate-qemu-disks.1
    * libvirt-suspendonreboot
    * apparmor profiles
  - debian/README.Debian:
    * add 'Apparmor Profile' section
    * add 'Disk migration' section
  - debian/rules:
    * don't build with vbox since virtualbox-ose is in universe
    * add --with-apparmor to DEB_CONFIGURE_EXTRA_FLAGS
    * set DEB_DH_INSTALLINIT_ARGS to '--upstart-only'
    * set DEB_MAKE_CHECK_TARGET to 'check'
    * remove unneeded binary-install/libvirt-bin:: and clean::
      sections (they only deal with sysvinit stuff)
    * add build/libvirt-bin:: section to install
      - apparmor files
      - apport hooks
      - libvirt-migrate-qemu-disks
* The following Ubuntu packaging changes occurred during the divergence
  between Debian and Ubuntu. These changes are not new, but included here
  for completeness: (0.8.5-0ubuntu1 - 0.8.5-0ubuntu5):
  - Have upstart job source /etc/default/libvirt-bin.  This is only a
    temporary fix until upstart provides proper default override support
    through /etc/init/libvirt-bin.override (or any other mechanism).
    (LP: 708172)
  - debian/apparmor/usr.sbin.libvirtd: use PUx instead of Ux for executables
    (LP: 573315)
  - Rebuild with python 2.7 as the python default.
  - debian/libvirt-bin.cron.daily: use shell globbing to enumerate xml files.
    Based on patch thanks to Henryk Plötz (LP: 655176)
* Dropped the following patches included/fixed upstream:
  - 9010-dont-disable-ipv6.patch
  - 9022-build-cleanup-declaration-of-xen-tests.patch
  - 9023-vah-require-uuid.patch
  - 9009-autodetect-nc-params.patch
    * rolled into Debian's
      Autodetect-if-the-remote-nc-command-supports-the-q-o.patch
* Updated the following patches:
  - 9011-move-ebtables-script.patch:
    * LOCALSTATEDIR is defined in configmake.h
  - 9000-9006: added DEP-3 tags
  - 9002-better_default_uri_virsh.patch: updated (context changed)
* New patches:
  - 9022-drop-booton-when-kernel-specified.patch (LP: #720426)
  - 9023-fix-lxc-console-hangup.patch (LP: #668369)
  - 9024-skip-broken-commandtest.patch
* debian/patches/series:
  - don't apply Disable-CHECKSUM-rule.patch: our iptables can do this
  - don't apply Debian-specific Debianize-libvirt-guests.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
22
22
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
23
# serial 1 (pkg-config-0.24)
23
24
24
25
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
25
26
#
47
48
AC_DEFUN([PKG_PROG_PKG_CONFIG],
48
49
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
49
50
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
50
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
51
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
52
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
53
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
54
 
51
55
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
52
56
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
53
57
fi
60
64
                AC_MSG_RESULT([no])
61
65
                PKG_CONFIG=""
62
66
        fi
63
 
                
64
67
fi[]dnl
65
68
])# PKG_PROG_PKG_CONFIG
66
69
 
69
72
# Check to see whether a particular set of modules exists.  Similar
70
73
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
71
74
#
72
 
#
73
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
74
 
# this or PKG_CHECK_MODULES is called, or make sure to call
75
 
# PKG_CHECK_EXISTS manually
 
75
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
76
# only at the first occurence in configure.ac, so if the first place
 
77
# it's called might be skipped (such as if it is within an "if", you
 
78
# have to call PKG_CHECK_EXISTS manually
76
79
# --------------------------------------------------------------
77
80
AC_DEFUN([PKG_CHECK_EXISTS],
78
81
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
79
82
if test -n "$PKG_CONFIG" && \
80
83
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
81
 
  m4_ifval([$2], [$2], [:])
 
84
  m4_default([$2], [:])
82
85
m4_ifvaln([$3], [else
83
86
  $3])dnl
84
87
fi])
85
88
 
86
 
 
87
89
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
88
90
# ---------------------------------------------
89
91
m4_define([_PKG_CONFIG],
136
138
See the pkg-config man page for more details.])
137
139
 
138
140
if test $pkg_failed = yes; then
 
141
        AC_MSG_RESULT([no])
139
142
        _PKG_SHORT_ERRORS_SUPPORTED
140
143
        if test $_pkg_short_errors_supported = yes; then
141
144
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
145
148
        # Put the nasty error message in config.log where it belongs
146
149
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
147
150
 
148
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
151
        m4_default([$4], [AC_MSG_ERROR(
149
152
[Package requirements ($2) were not met:
150
153
 
151
154
$$1_PKG_ERRORS
153
156
Consider adjusting the PKG_CONFIG_PATH environment variable if you
154
157
installed software in a non-standard prefix.
155
158
 
156
 
_PKG_TEXT
157
 
])],
158
 
                [AC_MSG_RESULT([no])
159
 
                $4])
 
159
_PKG_TEXT])
 
160
        ])
160
161
elif test $pkg_failed = untried; then
161
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
162
        AC_MSG_RESULT([no])
 
163
        m4_default([$4], [AC_MSG_FAILURE(
162
164
[The pkg-config script could not be found or is too old.  Make sure it
163
165
is in your PATH or set the PKG_CONFIG environment variable to the full
164
166
path to pkg-config.
165
167
 
166
168
_PKG_TEXT
167
169
 
168
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
169
 
                [$4])
 
170
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
171
        ])
170
172
else
171
173
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
172
174
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
173
175
        AC_MSG_RESULT([yes])
174
 
        ifelse([$3], , :, [$3])
 
176
        $3
175
177
fi[]dnl
176
178
])# PKG_CHECK_MODULES
177
179
 
766
768
rmdir .tst 2>/dev/null
767
769
AC_SUBST([am__leading_dot])])
768
770
 
 
771
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
772
# From Jim Meyering
 
773
 
 
774
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
775
# Free Software Foundation, Inc.
 
776
#
 
777
# This file is free software; the Free Software Foundation
 
778
# gives unlimited permission to copy and/or distribute it,
 
779
# with or without modifications, as long as this notice is preserved.
 
780
 
 
781
# serial 5
 
782
 
 
783
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
784
# ----------------------------------
 
785
# Control maintainer-specific portions of Makefiles.
 
786
# Default is to disable them, unless `enable' is passed literally.
 
787
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
788
# can override the default with the --enable/--disable switch.
 
789
AC_DEFUN([AM_MAINTAINER_MODE],
 
790
[m4_case(m4_default([$1], [disable]),
 
791
       [enable], [m4_define([am_maintainer_other], [disable])],
 
792
       [disable], [m4_define([am_maintainer_other], [enable])],
 
793
       [m4_define([am_maintainer_other], [enable])
 
794
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
795
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
796
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
797
  AC_ARG_ENABLE([maintainer-mode],
 
798
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
799
                          (and sometimes confusing) to the casual installer],
 
800
      [USE_MAINTAINER_MODE=$enableval],
 
801
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
802
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
803
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
804
  MAINT=$MAINTAINER_MODE_TRUE
 
805
  AC_SUBST([MAINT])dnl
 
806
]
 
807
)
 
808
 
 
809
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
810
 
769
811
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
770
812
 
771
813
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
1427
1469
m4_include([gnulib/m4/asm-underscore.m4])
1428
1470
m4_include([gnulib/m4/base64.m4])
1429
1471
m4_include([gnulib/m4/canonicalize.m4])
 
1472
m4_include([gnulib/m4/chown.m4])
1430
1473
m4_include([gnulib/m4/close.m4])
 
1474
m4_include([gnulib/m4/configmake.m4])
1431
1475
m4_include([gnulib/m4/count-one-bits.m4])
1432
1476
m4_include([gnulib/m4/dirname.m4])
1433
1477
m4_include([gnulib/m4/dos.m4])
1434
1478
m4_include([gnulib/m4/double-slash-root.m4])
1435
1479
m4_include([gnulib/m4/eealloc.m4])
 
1480
m4_include([gnulib/m4/environ.m4])
1436
1481
m4_include([gnulib/m4/errno_h.m4])
 
1482
m4_include([gnulib/m4/error.m4])
1437
1483
m4_include([gnulib/m4/extensions.m4])
1438
1484
m4_include([gnulib/m4/fclose.m4])
1439
1485
m4_include([gnulib/m4/fcntl-o.m4])
1443
1489
m4_include([gnulib/m4/func.m4])
1444
1490
m4_include([gnulib/m4/getaddrinfo.m4])
1445
1491
m4_include([gnulib/m4/getdelim.m4])
 
1492
m4_include([gnulib/m4/getgroups.m4])
1446
1493
m4_include([gnulib/m4/gethostname.m4])
1447
1494
m4_include([gnulib/m4/getline.m4])
1448
1495
m4_include([gnulib/m4/getpagesize.m4])
1449
1496
m4_include([gnulib/m4/getpass.m4])
1450
1497
m4_include([gnulib/m4/gettimeofday.m4])
 
1498
m4_include([gnulib/m4/getugroups.m4])
1451
1499
m4_include([gnulib/m4/gnulib-common.m4])
1452
1500
m4_include([gnulib/m4/gnulib-comp.m4])
1453
1501
m4_include([gnulib/m4/hostent.m4])
1454
1502
m4_include([gnulib/m4/include_next.m4])
1455
1503
m4_include([gnulib/m4/inet_ntop.m4])
1456
1504
m4_include([gnulib/m4/inet_pton.m4])
 
1505
m4_include([gnulib/m4/inline.m4])
1457
1506
m4_include([gnulib/m4/intmax_t.m4])
1458
1507
m4_include([gnulib/m4/inttypes_h.m4])
1459
1508
m4_include([gnulib/m4/ioctl.m4])
 
1509
m4_include([gnulib/m4/lock.m4])
1460
1510
m4_include([gnulib/m4/longlong.m4])
1461
1511
m4_include([gnulib/m4/lseek.m4])
1462
1512
m4_include([gnulib/m4/lstat.m4])
1464
1514
m4_include([gnulib/m4/malloca.m4])
1465
1515
m4_include([gnulib/m4/md5.m4])
1466
1516
m4_include([gnulib/m4/memchr.m4])
 
1517
m4_include([gnulib/m4/mgetgroups.m4])
1467
1518
m4_include([gnulib/m4/mkstemp.m4])
 
1519
m4_include([gnulib/m4/mkstemps.m4])
1468
1520
m4_include([gnulib/m4/mktime.m4])
1469
1521
m4_include([gnulib/m4/mmap-anon.m4])
 
1522
m4_include([gnulib/m4/mode_t.m4])
1470
1523
m4_include([gnulib/m4/multiarch.m4])
1471
1524
m4_include([gnulib/m4/netdb_h.m4])
1472
1525
m4_include([gnulib/m4/netinet_in_h.m4])
1473
1526
m4_include([gnulib/m4/onceonly.m4])
 
1527
m4_include([gnulib/m4/open.m4])
1474
1528
m4_include([gnulib/m4/pathmax.m4])
1475
1529
m4_include([gnulib/m4/perror.m4])
1476
1530
m4_include([gnulib/m4/physmem.m4])
 
1531
m4_include([gnulib/m4/pipe.m4])
1477
1532
m4_include([gnulib/m4/po.m4])
1478
1533
m4_include([gnulib/m4/poll.m4])
1479
1534
m4_include([gnulib/m4/poll_h.m4])
1480
1535
m4_include([gnulib/m4/posix-shell.m4])
1481
1536
m4_include([gnulib/m4/printf.m4])
1482
1537
m4_include([gnulib/m4/pthread.m4])
 
1538
m4_include([gnulib/m4/putenv.m4])
1483
1539
m4_include([gnulib/m4/random_r.m4])
1484
1540
m4_include([gnulib/m4/rawmemchr.m4])
1485
1541
m4_include([gnulib/m4/readlink.m4])
1487
1543
m4_include([gnulib/m4/sched_h.m4])
1488
1544
m4_include([gnulib/m4/select.m4])
1489
1545
m4_include([gnulib/m4/servent.m4])
 
1546
m4_include([gnulib/m4/setenv.m4])
 
1547
m4_include([gnulib/m4/sigaction.m4])
 
1548
m4_include([gnulib/m4/signal_h.m4])
 
1549
m4_include([gnulib/m4/signalblocking.m4])
 
1550
m4_include([gnulib/m4/sigpipe.m4])
1490
1551
m4_include([gnulib/m4/sleep.m4])
1491
1552
m4_include([gnulib/m4/snprintf.m4])
1492
1553
m4_include([gnulib/m4/socketlib.m4])
1494
1555
m4_include([gnulib/m4/socklen.m4])
1495
1556
m4_include([gnulib/m4/sockpfaf.m4])
1496
1557
m4_include([gnulib/m4/ssize_t.m4])
 
1558
m4_include([gnulib/m4/stat-time.m4])
1497
1559
m4_include([gnulib/m4/stat.m4])
1498
1560
m4_include([gnulib/m4/stdbool.m4])
1499
1561
m4_include([gnulib/m4/stddef_h.m4])
1506
1568
m4_include([gnulib/m4/strchrnul.m4])
1507
1569
m4_include([gnulib/m4/strdup.m4])
1508
1570
m4_include([gnulib/m4/strerror.m4])
 
1571
m4_include([gnulib/m4/strerror_r.m4])
1509
1572
m4_include([gnulib/m4/string_h.m4])
1510
1573
m4_include([gnulib/m4/strings_h.m4])
1511
1574
m4_include([gnulib/m4/strndup.m4])
1523
1586
m4_include([gnulib/m4/sys_wait_h.m4])
1524
1587
m4_include([gnulib/m4/tempname.m4])
1525
1588
m4_include([gnulib/m4/termios_h.m4])
 
1589
m4_include([gnulib/m4/thread.m4])
 
1590
m4_include([gnulib/m4/threadlib.m4])
1526
1591
m4_include([gnulib/m4/time_h.m4])
1527
1592
m4_include([gnulib/m4/time_r.m4])
1528
1593
m4_include([gnulib/m4/timegm.m4])
1533
1598
m4_include([gnulib/m4/usleep.m4])
1534
1599
m4_include([gnulib/m4/vasnprintf.m4])
1535
1600
m4_include([gnulib/m4/vasprintf.m4])
 
1601
m4_include([gnulib/m4/waitpid.m4])
1536
1602
m4_include([gnulib/m4/warn-on-use.m4])
1537
1603
m4_include([gnulib/m4/wchar_h.m4])
 
1604
m4_include([gnulib/m4/write.m4])
 
1605
m4_include([gnulib/m4/xalloc.m4])
 
1606
m4_include([gnulib/m4/yield.m4])
1538
1607
m4_include([m4/compiler-flags.m4])
1539
1608
m4_include([m4/gettext.m4])
1540
1609
m4_include([m4/iconv.m4])