summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-11-16 14:34:10 +0000
committerSimon Josefsson <simon@josefsson.org>2006-11-16 14:34:10 +0000
commit8d0e3fe63087fdf8b83f810977a163d903bb3999 (patch)
tree44d6d0aaa10c0f17629cc452f32c827db5882e4b /gl
parent7fb4b71c5c3f55e7686209d9993726dfaa219b27 (diff)
downloadlibtasn1-8d0e3fe63087fdf8b83f810977a163d903bb3999.tar.gz
libtasn1-8d0e3fe63087fdf8b83f810977a163d903bb3999.tar.bz2
libtasn1-8d0e3fe63087fdf8b83f810977a163d903bb3999.zip
Update.
Diffstat (limited to 'gl')
-rw-r--r--gl/Makefile.am9
-rw-r--r--gl/gettext.h19
-rw-r--r--gl/m4/gnulib-comp.m47
3 files changed, 28 insertions, 7 deletions
diff --git a/gl/Makefile.am b/gl/Makefile.am
index 74fcbf1..c8e6410 100644
--- a/gl/Makefile.am
+++ b/gl/Makefile.am
@@ -18,6 +18,7 @@ noinst_LTLIBRARIES = libgnu.la
libgnu_la_SOURCES =
libgnu_la_LIBADD = $(gl_LTLIBOBJS)
libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS)
+EXTRA_libgnu_la_SOURCES =
libgnu_la_LDFLAGS = $(AM_LDFLAGS)
noinst_HEADERS =
EXTRA_DIST =
@@ -46,6 +47,8 @@ MOSTLYCLEANFILES += getopt.h getopt.h-t
EXTRA_DIST += getopt.c getopt1.c getopt_.h getopt_int.h
+EXTRA_libgnu_la_SOURCES += getopt.c getopt1.c
+
## end gnulib module getopt
## begin gnulib module gettext-h
@@ -59,6 +62,8 @@ libgnu_la_SOURCES += gettext.h
EXTRA_DIST += memmove.c
+EXTRA_libgnu_la_SOURCES += memmove.c
+
## end gnulib module memmove
## begin gnulib module progname
@@ -72,6 +77,8 @@ libgnu_la_SOURCES += progname.h progname.c
EXTRA_DIST += read-file.c read-file.h
+EXTRA_libgnu_la_SOURCES += read-file.c
+
## end gnulib module read-file
## begin gnulib module strdup
@@ -79,6 +86,8 @@ EXTRA_DIST += read-file.c read-file.h
EXTRA_DIST += strdup.c strdup.h
+EXTRA_libgnu_la_SOURCES += strdup.c
+
## end gnulib module strdup
## begin gnulib module unistd
diff --git a/gl/gettext.h b/gl/gettext.h
index f15eb6a..18c62a4 100644
--- a/gl/gettext.h
+++ b/gl/gettext.h
@@ -64,17 +64,22 @@
On pre-ANSI systems without 'const', the config.h file is supposed to
contain "#define const". */
# define gettext(Msgid) ((const char *) (Msgid))
-# define dgettext(Domainname, Msgid) ((const char *) (Msgid))
-# define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
+# define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid))
+# define dcgettext(Domainname, Msgid, Category) \
+ ((void) (Category), dgettext (Domainname, Msgid))
# define ngettext(Msgid1, Msgid2, N) \
- ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+ ((N) == 1 \
+ ? ((void) (Msgid2), (const char *) (Msgid1)) \
+ : ((void) (Msgid1), (const char *) (Msgid2)))
# define dngettext(Domainname, Msgid1, Msgid2, N) \
- ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+ ((void) (Domainname), ngettext (Msgid1, Msgid2, N))
# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
- ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+ ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N))
# define textdomain(Domainname) ((const char *) (Domainname))
-# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
-# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
+# define bindtextdomain(Domainname, Dirname) \
+ ((void) (Domainname), (const char *) (Dirname))
+# define bind_textdomain_codeset(Domainname, Codeset) \
+ ((void) (Domainname), (const char *) (Codeset))
#endif
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4
index 1140f4f..389f5a0 100644
--- a/gl/m4/gnulib-comp.m4
+++ b/gl/m4/gnulib-comp.m4
@@ -33,6 +33,7 @@ AC_DEFUN([gl_INIT],
[
m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
+ m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
gl_cond_libtool=true
gl_source_base='gl'
@@ -42,6 +43,7 @@ AC_DEFUN([gl_INIT],
gl_STDARG_H
gl_FUNC_STRDUP
gl_HEADER_UNISTD
+ m4_popdef([AC_LIBSOURCES])
m4_popdef([AC_REPLACE_FUNCS])
m4_popdef([AC_LIBOBJ])
AC_CONFIG_COMMANDS_PRE([
@@ -70,6 +72,11 @@ AC_DEFUN([gl_LIBOBJ],
AC_DEFUN([gl_REPLACE_FUNCS],
[AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])])
+# Like AC_LIBSOURCES, except that it does nothing.
+# We rely on EXTRA_lib..._SOURCES instead.
+AC_DEFUN([gl_LIBSOURCES],
+ [])
+
# This macro records the list of files which have been installed by
# gnulib-tool and may be removed by future gnulib-tool invocations.
AC_DEFUN([gl_FILE_LIST], [