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

« back to all changes in this revision

Viewing changes to m4/environ.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# environ.m4 serial 5
2
 
dnl Copyright (C) 2001-2004, 2006-2011 Free Software Foundation, Inc.
 
1
# environ.m4 serial 6
 
2
dnl Copyright (C) 2001-2004, 2006-2012 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.
9
9
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
10
10
  dnl Persuade glibc <unistd.h> to declare environ.
11
11
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
12
 
  gt_CHECK_VAR_DECL([#include <unistd.h>], environ)
 
12
 
 
13
  AC_CHECK_HEADERS_ONCE([unistd.h])
 
14
  gt_CHECK_VAR_DECL(
 
15
    [#if HAVE_UNISTD_H
 
16
     #include <unistd.h>
 
17
     #endif
 
18
     /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
 
19
     #include <stdlib.h>
 
20
    ],
 
21
    [environ])
13
22
  if test $gt_cv_var_environ_declaration != yes; then
14
23
    HAVE_DECL_ENVIRON=0
15
24
  fi