annotate m4/ptsname.m4 @ 15009:2917eb19f982

truncl: Move AC_LIBOBJ invocations to module description. * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here... * modules/truncl (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 11:32:55 +0200
parents 97fc9a21a8fb
children 1b845c6de6db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13025
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 # ptsname.m4 serial 1
14079
97fc9a21a8fb maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents: 13025
diff changeset
2 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
13025
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_PTSNAME],
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 dnl Persuade glibc <stdlib.h> to declare ptsname().
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 AC_CHECK_FUNCS([ptsname])
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 if test $ac_cv_func_ptsname = no; then
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 HAVE_PTSNAME=0
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 AC_LIBOBJ([ptsname])
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 gl_PREREQ_PTSNAME
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 fi
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 ])
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 # Prerequisites of lib/ptsname.c.
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 AC_DEFUN([gl_PREREQ_PTSNAME], [
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 :
89efc5fdcef3 New module 'ptsname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 ])