diff options
author | paul <paul> | 2004-08-19 04:34:29 +0000 |
---|---|---|
committer | paul <paul> | 2004-08-19 04:34:29 +0000 |
commit | e0a29621d6ac1a944e2d8c23eaa8517aa96c8fc0 (patch) | |
tree | 8147122797f7c2cdeba2978147b52484fc098da0 /m4/argz.m4 | |
parent | e6822768a281a5d46d497c0bbfe5ffd2a10c78c8 (diff) |
2004-08-19 Paul Jakma <paul@dishone.st>
* *.m4: import of libtool CVS m4 autoconf files. These only
configure libtool support for languages where configure has
already called AC_PROG_<lang>, less fragile.
* README.txt: doc file for contents of this directory.
Diffstat (limited to 'm4/argz.m4')
-rw-r--r-- | m4/argz.m4 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/m4/argz.m4 b/m4/argz.m4 new file mode 100644 index 00000000..66f3bc1e --- /dev/null +++ b/m4/argz.m4 @@ -0,0 +1,43 @@ +# Portability macros for glibc argz. -*- Autoconf -*- +# Written by Gary V. Vaughan <gary@gnu.org> + +# Copyright (C) 2004 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 1 + +AC_DEFUN([gl_FUNC_ARGZ], +[gl_PREREQ_ARGZ + +AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_TYPES([error_t], + [], + [AC_DEFINE([error_t], [int], + [Define to a type to use for `error_t' if it is not otherwise available.])], + [#if defined(HAVE_ARGZ_H) +# include <argz.h> +#endif]) + +ARGZ_H= +AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next \ + argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])]) +AC_SUBST([ARGZ_H]) +]) + +# Prerequisites of lib/argz.c. +AC_DEFUN([gl_PREREQ_ARGZ], [:]) |