Mercurial > hg > octave-jordi > gnulib-hg
annotate m4/rpmatch.m4 @ 12559:c2cbabec01dd
update nearly all FSF copyright year lists to include 2010
Use the same procedure as for 2009, outlined in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Fri, 01 Jan 2010 10:31:12 +0100 |
parents | 0e6b6e9d54d0 |
children | 97fc9a21a8fb |
rev | line source |
---|---|
11929
0e6b6e9d54d0
Replace uses of obsolete autoconf macros in Jim's modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
11007
diff
changeset
|
1 # rpmatch.m4 serial 9 |
12559
c2cbabec01dd
update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents:
11929
diff
changeset
|
2 dnl Copyright (C) 2002-2003, 2007-2010 Free Software Foundation, Inc. |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4674
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:
4674
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:
4674
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 AC_DEFUN([gl_FUNC_RPMATCH], |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 [ |
10001 | 9 dnl Persuade glibc <stdlib.h> to declare rpmatch(). |
10 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | |
11 | |
12 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) | |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10001
diff
changeset
|
13 AC_REPLACE_FUNCS([rpmatch]) |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 if test $ac_cv_func_rpmatch = no; then |
10001 | 15 HAVE_RPMATCH=0 |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 gl_PREREQ_RPMATCH |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 fi |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 ]) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 # Prerequisites of lib/rpmatch.c. |
10000
8095c13f76df
Change rpmatch to use nl_langinfo when appropriate.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
21 AC_DEFUN([gl_PREREQ_RPMATCH], [ |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10001
diff
changeset
|
22 AC_CACHE_CHECK([for nl_langinfo and YESEXPR], [gl_cv_langinfo_yesexpr], |
11929
0e6b6e9d54d0
Replace uses of obsolete autoconf macros in Jim's modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
11007
diff
changeset
|
23 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], |
0e6b6e9d54d0
Replace uses of obsolete autoconf macros in Jim's modules.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
11007
diff
changeset
|
24 [[char* cs = nl_langinfo(YESEXPR); return !cs;]])], |
10000
8095c13f76df
Change rpmatch to use nl_langinfo when appropriate.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
25 [gl_cv_langinfo_yesexpr=yes], |
8095c13f76df
Change rpmatch to use nl_langinfo when appropriate.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
26 [gl_cv_langinfo_yesexpr=no]) |
8095c13f76df
Change rpmatch to use nl_langinfo when appropriate.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
27 ]) |
8095c13f76df
Change rpmatch to use nl_langinfo when appropriate.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
28 if test $gl_cv_langinfo_yesexpr = yes; then |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10001
diff
changeset
|
29 AC_DEFINE([HAVE_LANGINFO_YESEXPR], [1], |
10000
8095c13f76df
Change rpmatch to use nl_langinfo when appropriate.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
30 [Define if you have <langinfo.h> and nl_langinfo(YESEXPR).]) |
8095c13f76df
Change rpmatch to use nl_langinfo when appropriate.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
31 fi |
8095c13f76df
Change rpmatch to use nl_langinfo when appropriate.
Bruno Haible <bruno@clisp.org>
parents:
5611
diff
changeset
|
32 ]) |