~ubuntu-branches/ubuntu/utopic/parted/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/error.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-07-21 10:23:16 UTC
  • mfrom: (7.2.32 sid)
  • Revision ID: package-import@ubuntu.com-20140721102316-jsyv3yzmbo8vlde5
Tags: 3.1-3
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#serial 12
 
1
#serial 14
2
2
 
3
 
# Copyright (C) 1996-1998, 2001-2004, 2009-2010 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-1998, 2001-2004, 2009-2012 Free Software Foundation, Inc.
4
4
#
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
8
8
 
9
9
AC_DEFUN([gl_ERROR],
10
10
[
11
 
  AC_FUNC_ERROR_AT_LINE
12
 
  dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]).
13
 
  gl_PREREQ_ERROR
 
11
  dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer
 
12
  dnl maintained in Autoconf and because it invokes AC_LIBOBJ.
 
13
  AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line],
 
14
    [AC_LINK_IFELSE(
 
15
       [AC_LANG_PROGRAM(
 
16
          [[#include <error.h>]],
 
17
          [[error_at_line (0, 0, "", 0, "an error occurred");]])],
 
18
       [ac_cv_lib_error_at_line=yes],
 
19
       [ac_cv_lib_error_at_line=no])])
14
20
])
15
21
 
16
22
# Prerequisites of lib/error.c.