~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/gnulib-common.m4

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# gnulib-common.m4 serial 33
2
 
dnl Copyright (C) 2007-2012 Free Software Foundation, Inc.
 
2
dnl Copyright (C) 2007-2013 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
294
294
# for interoperability with automake-1.9.6 from autoconf-2.62.
295
295
# Remove this macro when we can assume autoconf >= 2.62 or
296
296
# autoconf >= 2.60 && automake >= 1.10.
 
297
# AC_AUTOCONF_VERSION was introduced in 2.62, so use that as the witness.
 
298
m4_ifndef([AC_AUTOCONF_VERSION],[
297
299
m4_ifdef([AC_PROG_MKDIR_P], [
298
300
  dnl For automake-1.9.6 && autoconf < 2.62: Ensure MKDIR_P is AC_SUBSTed.
299
301
  m4_define([AC_PROG_MKDIR_P],
304
306
    [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
305
307
     MKDIR_P='$(mkdir_p)'
306
308
     AC_SUBST([MKDIR_P])])])
 
309
])
307
310
 
308
311
# AC_C_RESTRICT
309
312
# This definition overrides the AC_C_RESTRICT macro from autoconf 2.60..2.61,
310
313
# so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++
311
314
# works.
312
315
# This definition can be removed once autoconf >= 2.62 can be assumed.
313
 
m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.62]),[-1],[
 
316
# AC_AUTOCONF_VERSION was introduced in 2.62, so use that as the witness.
 
317
m4_ifndef([AC_AUTOCONF_VERSION],[
314
318
AC_DEFUN([AC_C_RESTRICT],
315
319
[AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict],
316
320
  [ac_cv_c_restrict=no