configury: move local gnulib patches to build-aux subdirectory.
[m4/ericb.git] / ltdl / m4 / m4-getopt.m4
bloba2d3a4e3b95230c1e204991b454f871af0d31d3f
1 #                                                            -*- Autoconf -*-
2 # m4-getopt.m4 -- Use the installed version of getopt.h if available.
3 # Written by Gary V. Vaughan <gary@gnu.org>
5 # Copyright (C) 2005-2007, 2009-2010, 2013 Free Software Foundation,
6 # Inc.
8 # This file is part of GNU M4.
10 # GNU M4 is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
15 # GNU M4 is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23 # serial 3
25 # M4_GETOPT
26 # ---------
27 # Use the installed version of getopt.h if available.
28 AC_DEFUN([M4_GETOPT],
30   m4_divert_text([INIT_PREPARE], [M4_replace_getopt=])
31   m4_pushdef([AC_LIBOBJ], [M4_replace_getopt=:])
32   AC_REQUIRE([gl_FUNC_GETOPT_GNU])
33   m4_popdef([AC_LIBOBJ])
34   AM_CONDITIONAL([GETOPT], [test -n "$M4_replace_getopt"])
35 ])# M4_GETOPT