Mercurial > hg > octave-kai > gnulib-hg
annotate m4/getdomainname.m4 @ 10661:65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 19 Oct 2008 03:36:00 +0200 |
parents | 87c42e194f4a |
children | f6cba5a556ce |
rev | line source |
---|---|
10661
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
1 # getdomainname.m4 serial 3 |
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
2 dnl Copyright (C) 2002-2003, 2008 Free Software Foundation, Inc. |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4730
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4730
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4730
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
4730 | 6 |
7 AC_DEFUN([gl_FUNC_GETDOMAINNAME], | |
8 [ | |
10661
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
9 AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) |
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
10 |
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
11 dnl Persuade glibc <unistd.h> to declare getdomainname(). |
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
12 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) |
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
13 |
4730 | 14 AC_REPLACE_FUNCS(getdomainname) |
15 if test $ac_cv_func_getdomainname = no; then | |
10661
65c9436dc0d3
Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
16 HAVE_GETDOMAINNAME=0 |
4730 | 17 gl_PREREQ_GETDOMAINNAME |
18 fi | |
19 ]) | |
20 | |
21 # Prerequisites of lib/getdomainname.c. | |
22 AC_DEFUN([gl_PREREQ_GETDOMAINNAME], [ | |
23 : | |
24 ]) |