[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib-tool: indicating the presence of gnulib modules
From: |
Bruno Haible |
Subject: |
Re: gnulib-tool: indicating the presence of gnulib modules |
Date: |
Mon, 8 Jan 2007 20:14:51 +0100 |
User-agent: |
KMail/1.9.1 |
Following Simon's comments, I backed this out and instead introduce a
macro gl_MODULE_INDICATOR, for use in the module description.
2007-01-08 Bruno Haible <address@hidden>
* m4/gnulib-common.m4: New file.
* gnulib-tool (func_get_autoconf_snippet): Undo last change.
(func_get_filelist): Add m4/gnulib-common.m4.
*** gnulib-tool 4 Jan 2007 18:10:42 -0000 1.208
--- gnulib-tool 8 Jan 2007 19:15:39 -0000
***************
*** 908,913 ****
--- 908,914 ----
{
func_lookup_file "modules/$1"
sed -n -e "/^Files$sed_extract_prog" < "$lookedup_file"
+ echo m4/gnulib-common.m4
case "$autoconf_minversion" in
2.59)
#echo m4/onceonly.m4
***************
*** 935,943 ****
{
func_lookup_file "modules/$1"
sed -n -e "/^configure\.ac$sed_extract_prog" < "$lookedup_file"
- # Define a C macro indicating the presence of the given module.
- echo " AC_DEFINE([GNULIB_"`echo "$1" | LC_ALL=C tr 'a-z' 'A-Z' | sed -e
's,[-./],_,g'`"], [1],"
- echo " [Define to 1 when using the gnulib module $1.])"
}
# func_get_automake_snippet module
--- 936,941 ----
=========================== m4/gnulib-common.m4 ===============================
# gnulib-common.m4 serial 1
dnl Copyright (C) 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
# gl_MODULE_INDICATOR([modulename])
# defines a C macro indicating the presence of the given module.
AC_DEFUN([gl_MODULE_INDICATOR],
[
AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]),
[1],
[Define to 1 when using the gnulib module ]$1[.])
])