annotate m4/canon-host.m4 @ 5103:ec9fb052682f

s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 13 Jul 2004 17:22:56 +0000
parents c74e2d0a05f5
children 81e1a3092078
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4635
c74e2d0a05f5 Remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4476
diff changeset
1 # canon-host.m4 serial 3
4474
f1650b772bb6 Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4107
diff changeset
2 dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software, distributed under the terms of the GNU
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl General Public License. As a special exception to the GNU General
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl Public License, this file may be distributed as part of a program
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 dnl that contains a configuration script generated by Autoconf, under
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 dnl the same distribution terms as the rest of that program.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_DEFUN([gl_CANON_HOST],
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 [
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 dnl Prerequisites of lib/canon-host.c.
4635
c74e2d0a05f5 Remove K&R cruft.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4476
diff changeset
12 AC_CHECK_HEADERS_ONCE(unistd.h)
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 AC_CHECK_HEADERS(netdb.h sys/socket.h netinet/in.h arpa/inet.h)
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 dnl Add any libraries as early as possible.
4474
f1650b772bb6 Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4107
diff changeset
16 dnl In particular, inet_ntoa needs -lnsl at least on Solaris 2.5.1,
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 dnl so we have to add -lnsl to LIBS before checking for that function.
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 AC_SEARCH_LIBS(gethostbyname, [inet nsl])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
4474
f1650b772bb6 Correct SunOS and Solaris version number notation to match Sun's usage.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4107
diff changeset
20 dnl These come from -lnsl on Solaris 2.5.1.
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa)
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 ])