Mercurial > hg > octave-jordi > gnulib-hg
annotate m4/renameat.m4 @ 15083:0c86c6d851e0
renameat: Move AC_LIBOBJ invocations to module description.
* m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
here...
* modules/renameat (configure.ac): ... to here.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 21 May 2011 20:53:14 +0200 |
parents | 97fc9a21a8fb |
children | 8250f2777afc |
rev | line source |
---|---|
15083
0c86c6d851e0
renameat: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
1 # serial 3 |
12099 | 2 # See if we need to provide renameat replacement. |
3 | |
14079
97fc9a21a8fb
maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents:
12559
diff
changeset
|
4 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. |
12099 | 5 dnl This file is free software; the Free Software Foundation |
6 dnl gives unlimited permission to copy and/or distribute it, | |
7 dnl with or without modifications, as long as this notice is preserved. | |
8 | |
9 # Written by Eric Blake. | |
10 | |
11 AC_DEFUN([gl_FUNC_RENAMEAT], | |
12 [ | |
13 AC_REQUIRE([gl_FUNC_OPENAT]) | |
14 AC_REQUIRE([gl_FUNC_RENAME]) | |
15 AC_REQUIRE([gl_STDIO_H_DEFAULTS]) | |
16 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) | |
17 AC_CHECK_FUNCS_ONCE([renameat]) | |
18 if test $ac_cv_func_renameat = no; then | |
19 HAVE_RENAMEAT=0 | |
12100 | 20 elif test $REPLACE_RENAME = 1; then |
21 dnl Solaris 9 and 10 have the same bugs in renameat as in rename. | |
22 REPLACE_RENAMEAT=1 | |
12099 | 23 fi |
24 ]) |