summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-10-03 10:01:59 +0200
committerPaolo Bonzini <bonzini@gnu.org>2008-10-03 10:34:54 +0200
commit51d634a52ff43e7197d96a2284377a4ceb1aa4fc (patch)
treeffa2c22b3a8d1d3035ad640b13f6232d8e2e07d7
parent74687e4bf7b3df0953a9226cf7ac9124cdc7f0db (diff)
downloadsed-51d634a52ff43e7197d96a2284377a4ceb1aa4fc.tar.gz
switch to external gettext
2008-10-03 Paolo Bonzini <bonzini@gnu.org> Jim Meyering <meyering@redhat.com> * Makefile.am: Remove intl subdir. Require Automake 1.10. * configure.ac: Remove useless macros, switch to external gettext. * lib/Makefile.am: Remove intl subdir from CPPFLAGS. * sed/Makefile.am: Remove intl subdir from CPPFLAGS.
-rw-r--r--.gitignore1
-rw-r--r--ChangeLog9
-rw-r--r--Makefile.am6
-rw-r--r--NEWS3
-rw-r--r--autoboot.conf4
-rw-r--r--basicdefs.h14
-rw-r--r--build-aux/.gitignore82
-rw-r--r--configure.ac12
-rw-r--r--lib/.gitignore1
-rw-r--r--lib/Makefile.am3
-rw-r--r--sed/Makefile.am5
11 files changed, 27 insertions, 113 deletions
diff --git a/.gitignore b/.gitignore
index eff76fa..190f48e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,7 +10,6 @@ config.sub
config_h.in
configure
depcomp
-intl
m4
mdate-sh
missing
diff --git a/ChangeLog b/ChangeLog
index 55ec97d..b463e73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-10-03 Paolo Bonzini <bonzini@gnu.org>
+ Jim Meyering <meyering@redhat.com>
+
+ * autoboot.conf: Add localcharset.
+ * Makefile.am: Remove intl subdir. Require Automake 1.10.
+ * configure.ac: Remove useless macros, switch to external gettext.
+ * lib/Makefile.am: Remove intl subdir from CPPFLAGS.
+ * sed/Makefile.am: Remove intl subdir from CPPFLAGS.
+
2008-10-02 Paolo Bonzini <bonzini@gnu.org>
* autoboot: Sync with gnulib's build-aux/bootstrap.
diff --git a/Makefile.am b/Makefile.am
index 394f729..e5a7d57 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,12 +1,12 @@
## Process this file with automake to produce Makefile.in
# Automake requirements
-AUTOMAKE_OPTIONS = gnits 1.8
-ACLOCAL_AMFLAGS = -I build-aux
+AUTOMAKE_OPTIONS = gnits 1.10
+ACLOCAL_AMFLAGS = -I m4
PACKAGE = sed
-SUBDIRS = intl lib po sed doc testsuite
+SUBDIRS = lib po sed doc testsuite
noinst_DATA = bootstrap.sh
noinst_HEADERS = basicdefs.h
diff --git a/NEWS b/NEWS
index 96b2b0d..89f93ff 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,9 @@ Sed 4.1f
* added a new extension `z` to clear pattern space even in the presence
of invalid multibyte sequences
+* a preexisting GNU gettext installation is needed in order to compile
+GNU sed with NLS support
+
* multibyte processing fixed
----------------------------------------------------------------------------
diff --git a/autoboot.conf b/autoboot.conf
index 57fd40e..7e8964c 100644
--- a/autoboot.conf
+++ b/autoboot.conf
@@ -18,8 +18,8 @@
# gnulib modules used by this package.
gnulib_modules="
- acl alloca extensions getline getopt gettext memchr memcmp memmove
- mkstemp obstack pathmax regex stdbool stat-macros
+ acl alloca extensions getline getopt gettext localcharset memchr memcmp \
+ memmove mkstemp obstack pathmax regex stdbool stat-macros
strerror strverscmp unlocked-io verify"
checkout_only_file=
diff --git a/basicdefs.h b/basicdefs.h
index eca9916..72f7503 100644
--- a/basicdefs.h
+++ b/basicdefs.h
@@ -40,20 +40,10 @@
# include <stdbool.h>
#endif
-#if ENABLE_NLS
-# include <libintl.h>
-#else
-# define gettext(msgid) (msgid)
-# define ngettext(sing, plur, n) ((n) == 1 ? (sing) : (plur))
-#endif
+#include <gettext.h>
+#define N_(String) gettext_noop(String)
#define _(String) gettext(String)
-#ifdef gettext_noop
-# define N_(String) gettext_noop(String)
-#else
-# define N_(String) (String)
-#endif
-
/* type countT is used to keep track of line numbers, etc. */
typedef unsigned long countT;
diff --git a/build-aux/.gitignore b/build-aux/.gitignore
index bbc933c..37fc209 100644
--- a/build-aux/.gitignore
+++ b/build-aux/.gitignore
@@ -1,86 +1,4 @@
-absolute-header.m4
-acl.m4
-alloca.m4
-codeset.m4
config.rpath
-eoverflow.m4
-error.m4
-exitfail.m4
-extensions.m4
-float_h.m4
-getdelim.m4
-getline.m4
-getopt.m4
-gettext.m4
-gettimeofday.m4
-glibc2.m4
-glibc21.m4
-gnulib-common.m4
-gnulib-comp.m4
-gnulib-tool.m4
-iconv.m4
-include_next.m4
-inline.m4
install-sh
-intdiv0.m4
-intl.m4
-intldir.m4
-intlmacosx.m4
-intmax.m4
-intmax_t.m4
-inttypes-h.m4
-inttypes-pri.m4
-inttypes_h.m4
-lcmessage.m4
-lib-ld.m4
-lib-link.m4
-lib-prefix.m4
link-warning.h
-localcharset.m4
-lock.m4
-longdouble.m4
-longlong.m4
-malloc.m4
-mbrtowc.m4
-mbstate_t.m4
-memchr.m4
-memcmp.m4
-memmove.m4
-mkstemp.m4
-nls.m4
-pathmax.m4
-po.m4
-printf-posix.m4
-progtest.m4
-quote.m4
-quotearg.m4
-realloc.m4
-regex.m4
-signed.m4
-size_max.m4
-snprintf.m4
-ssize_t.m4
-stdbool.m4
-stdint.m4
-stdint_h.m4
-stdio_h.m4
-stdlib_h.m4
-strerror.m4
-string_h.m4
-strverscmp.m4
-sys_stat_h.m4
-sys_time_h.m4
-tempname.m4
texinfo.tex
-uintmax_t.m4
-ulonglong.m4
-unistd_h.m4
-unlocked-io.m4
-vasnprintf.m4
-visibility.m4
-wchar.m4
-wchar_t.m4
-wctype.m4
-wint_t.m4
-xalloc.m4
-xsize.m4
diff --git a/configure.ac b/configure.ac
index d7a6a1a..6c59cf4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,14 +12,10 @@ AC_DEFINE_UNQUOTED(SED_FEATURE_VERSION, "$SED_FEATURE_VERSION",
AC_SUBST(SED_FEATURE_VERSION)
AC_PROG_CC
-gl_DISABLE_THREADS
-AC_USE_SYSTEM_EXTENSIONS
-AC_GNU_SOURCE
gl_EARLY
-AC_SYS_LARGEFILE
-AC_SYS_LONG_FILE_NAMES
-
gl_INIT
+gl_DISABLE_THREADS
+AC_SYS_LONG_FILE_NAMES
AC_CACHE_CHECK([whether -lcP is needed], [sed_cv_libcp_needed], [
AC_TRY_RUN([
#include <stdio.h>
@@ -55,7 +51,7 @@ AC_FUNC_VPRINTF
AC_DEFUN([AM_MKINSTALLDIRS], [MKINSTALLDIRS="$mkdir_p" AC_SUBST(MKINSTALLDIRS)])
AM_GNU_GETTEXT_VERSION(0.15)
-AM_GNU_GETTEXT(no-libtool, need-ngettext, ../intl)
+AM_GNU_GETTEXT([external])
AC_CHECK_FUNCS_ONCE(isatty bcopy bzero isascii memcpy memset strchr strtoul
popen pathconf isblank fchown fchmod setlocale wcrtomb
@@ -92,5 +88,5 @@ AC_CONFIG_FILES([bootstrap.sh], chmod +x bootstrap.sh)
AC_CONFIG_FILES([testsuite/version.good:testsuite/version.gin])
AC_CONFIG_FILES([Makefile doc/Makefile \
lib/Makefile sed/Makefile testsuite/Makefile \
-po/Makefile.in intl/Makefile])
+po/Makefile.in])
AC_OUTPUT
diff --git a/lib/.gitignore b/lib/.gitignore
index b818438..0af89a7 100644
--- a/lib/.gitignore
+++ b/lib/.gitignore
@@ -55,6 +55,7 @@ stdbool.h
stdbool.in.h
stdint.h
stdint.in.h
+stdio-write.c
stdio.h
stdio.in.h
stdlib.h
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 21f670c..73c1b33 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -4,6 +4,5 @@ include gnulib.mk
SUFFIXES += .a .o .c .y .l .h .sh .elc .el
-AM_CPPFLAGS += -I$(top_srcdir)/lib -I$(top_srcdir)/intl -I$(top_srcdir) \
- -I$(top_builddir)/lib -I$(top_builddir)/intl
+AM_CPPFLAGS += -I$(top_srcdir)/lib -I$(top_srcdir) -I$(top_builddir)/lib
diff --git a/sed/Makefile.am b/sed/Makefile.am
index 34ddd52..cfa7ed3 100644
--- a/sed/Makefile.am
+++ b/sed/Makefile.am
@@ -6,9 +6,8 @@ localedir = $(datadir)/locale
sed_SOURCES = sed.c compile.c execute.c regexp.c fmt.c mbcs.c utils.c
noinst_HEADERS = sed.h utils.h
-AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/intl \
- -I$(top_srcdir) -I$(top_builddir)/lib \
- -I$(top_builddir)/intl -DLOCALEDIR=\"$(localedir)\"
+AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir) -I$(top_builddir)/lib \
+ -DLOCALEDIR=\"$(localedir)\"
sed_LDADD = @INTLLIBS@ @LIB_ACL@ ../lib/libsed.a
sed_DEPENDENCIES = ../lib/libsed.a