Skip to content

Commit 6b5baac

Browse files
committed
Remove the included libintl and update build.
GNU gettext no longer supports including a version of libintl, so I've removed the old version and updated the build config to require gettext 0.19 or newer. I'll have to build this separately from bash for the OpenVMS port when I update it to use this C++ version.
1 parent 9791777 commit 6b5baac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+2318
-33060
lines changed

ChangeLog

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2022-10-11 gettextize <[email protected]>
2+
3+
* m4/gettext.m4: New file, from gettext-0.21.
4+
* m4/host-cpu-c-abi.m4: New file, from gettext-0.21.
5+
* m4/iconv.m4: New file, from gettext-0.21.
6+
* m4/intlmacosx.m4: New file, from gettext-0.21.
7+
* m4/lib-ld.m4: New file, from gettext-0.21.
8+
* m4/lib-link.m4: New file, from gettext-0.21.
9+
* m4/lib-prefix.m4: New file, from gettext-0.21.
10+
* m4/nls.m4: New file, from gettext-0.21.
11+
* m4/po.m4: New file, from gettext-0.21.
12+
* m4/progtest.m4: New file, from gettext-0.21.
13+
114

215
12/6/2020
316
---------

Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ bash_SOURCES = shell.cc eval.cc parse.yy general.cc parser.cc \
4545
general.hh hashcmd.hh hashlib.hh input.hh jobs.hh parser.hh \
4646
patchlevel.hh pathexp.hh pcomplete.hh quit.hh shell.hh sig.hh \
4747
siglist.hh subst.hh syntax.hh trap.hh variables.hh \
48-
include/chartypes.hh include/filecntl.hh include/gettext.hh \
48+
include/chartypes.hh include/filecntl.hh include/gettext.h \
4949
include/maxpath.hh include/posixdir.hh include/posixselect.hh \
5050
include/posixstat.hh include/posixtime.hh include/posixwait.hh \
5151
include/shmbchar.hh include/shmbutil.hh include/shtty.hh \

Makefile.in

+14-62
Original file line numberDiff line numberDiff line change
@@ -116,29 +116,16 @@ noinst_PROGRAMS = mkbuiltins$(EXEEXT) psize$(EXEEXT) \
116116
subdir = .
117117
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
118118
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
119-
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/libtool.m4 \
120-
$(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \
121-
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
122-
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/bash-rules.m4 \
123-
$(top_srcdir)/m4/stat-time.m4 $(top_srcdir)/m4/timespec.m4 \
124-
$(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/codeset.m4 \
125-
$(top_srcdir)/m4/extern-inline.m4 $(top_srcdir)/m4/fcntl-o.m4 \
126-
$(top_srcdir)/m4/glibc2.m4 $(top_srcdir)/m4/glibc21.m4 \
127-
$(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/intdiv0.m4 \
128-
$(top_srcdir)/m4/intl.m4 $(top_srcdir)/m4/intlmacosx.m4 \
129-
$(top_srcdir)/m4/intldir.m4 $(top_srcdir)/m4/intmax.m4 \
130-
$(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \
131-
$(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \
132-
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
133-
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/lock.m4 \
119+
$(top_srcdir)/m4/host-cpu-c-abi.m4 $(top_srcdir)/m4/iconv.m4 \
120+
$(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \
121+
$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
122+
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/longlong.m4 \
123+
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
124+
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
134125
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
135-
$(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \
136-
$(top_srcdir)/m4/pthread_rwlock_rdlock.m4 \
137-
$(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \
138-
$(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \
139-
$(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/visibility.m4 \
140-
$(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \
141-
$(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac
126+
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/bash-rules.m4 \
127+
$(top_srcdir)/m4/stat-time.m4 $(top_srcdir)/m4/timespec.m4 \
128+
$(top_srcdir)/configure.ac
142129
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
143130
$(ACLOCAL_M4)
144131
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
@@ -147,8 +134,8 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
147134
configure.lineno config.status.lineno
148135
mkinstalldirs = $(SHELL) $(top_srcdir)/support/mkinstalldirs
149136
CONFIG_HEADER = config.h
150-
CONFIG_CLEAN_FILES = intl/Makefile doc/Makefile pathnames.hh \
151-
support/bash.pc support/bashbug.sh
137+
CONFIG_CLEAN_FILES = doc/Makefile pathnames.hh support/bash.pc \
138+
support/bashbug.sh
152139
CONFIG_CLEAN_VPATH_FILES =
153140
am__installdirs = "$(DESTDIR)$(bindir)"
154141
PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
@@ -165,7 +152,7 @@ am__bash_SOURCES_DIST = shell.cc eval.cc parse.yy general.cc parser.cc \
165152
general.hh hashcmd.hh hashlib.hh input.hh jobs.hh parser.hh \
166153
patchlevel.hh pathexp.hh pcomplete.hh quit.hh shell.hh sig.hh \
167154
siglist.hh subst.hh syntax.hh trap.hh variables.hh \
168-
include/chartypes.hh include/filecntl.hh include/gettext.hh \
155+
include/chartypes.hh include/filecntl.hh include/gettext.h \
169156
include/maxpath.hh include/posixdir.hh include/posixselect.hh \
170157
include/posixstat.hh include/posixtime.hh include/posixwait.hh \
171158
include/shmbchar.hh include/shmbutil.hh include/shtty.hh \
@@ -581,7 +568,6 @@ am__define_uniq_tagged_files = \
581568
DIST_SUBDIRS = $(SUBDIRS)
582569
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
583570
$(srcdir)/pathnames.hh.in $(top_srcdir)/doc/Makefile.in \
584-
$(top_srcdir)/intl/Makefile.in \
585571
$(top_srcdir)/support/bash.pc.in \
586572
$(top_srcdir)/support/bashbug.sh.in \
587573
$(top_srcdir)/support/compile \
@@ -651,12 +637,9 @@ AUTOHEADER = @AUTOHEADER@
651637
AUTOMAKE = @AUTOMAKE@
652638
AWK = @AWK@
653639
BASHVERS = @BASHVERS@
654-
BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
655-
CATOBJEXT = @CATOBJEXT@
656640
CC = @CC@
657641
CCDEPMODE = @CCDEPMODE@
658642
CFLAGS = @CFLAGS@
659-
CFLAG_VISIBILITY = @CFLAG_VISIBILITY@
660643
CPP = @CPP@
661644
CPPFLAGS = @CPPFLAGS@
662645
CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
@@ -669,7 +652,6 @@ CXXFLAGS = @CXXFLAGS@
669652
CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
670653
CXX_FOR_BUILD = @CXX_FOR_BUILD@
671654
CYGPATH_W = @CYGPATH_W@
672-
DATADIRNAME = @DATADIRNAME@
673655
DEBUGGER_START_FILE = @DEBUGGER_START_FILE@
674656
DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\"
675657
DEPDIR = @DEPDIR@
@@ -683,20 +665,10 @@ EGREP = @EGREP@
683665
ETAGS = @ETAGS@
684666
EXEEXT = @EXEEXT@
685667
FGREP = @FGREP@
686-
GENCAT = @GENCAT@
687668
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
688-
GLIBC2 = @GLIBC2@
689-
GLIBC21 = @GLIBC21@
690669
GMSGFMT = @GMSGFMT@
691670
GMSGFMT_015 = @GMSGFMT_015@
692-
GNULIB_OVERRIDES_WINT_T = @GNULIB_OVERRIDES_WINT_T@
693671
GREP = @GREP@
694-
HAVE_ASPRINTF = @HAVE_ASPRINTF@
695-
HAVE_NEWLOCALE = @HAVE_NEWLOCALE@
696-
HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
697-
HAVE_SNPRINTF = @HAVE_SNPRINTF@
698-
HAVE_VISIBILITY = @HAVE_VISIBILITY@
699-
HAVE_WPRINTF = @HAVE_WPRINTF@
700672
HELPDIR = @HELPDIR@
701673
HELPDIRDEFINE = @HELPDIRDEFINE@
702674
HELPFILES_TARGET = @HELPFILES_TARGET@
@@ -707,41 +679,28 @@ INSTALL_DATA = @INSTALL_DATA@
707679
INSTALL_PROGRAM = @INSTALL_PROGRAM@
708680
INSTALL_SCRIPT = @INSTALL_SCRIPT@
709681
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
710-
INSTOBJEXT = @INSTOBJEXT@
711-
INTLBISON = @INTLBISON@
712682
INTLLIBS = @INTLLIBS@
713-
INTLOBJS = @INTLOBJS@
714-
INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@
715-
INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
716683
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
717684
LD = @LD@
718685
LDFLAGS = @LDFLAGS@
719686
LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
720687
LIBICONV = @LIBICONV@
721688
LIBINTL = @LIBINTL@
722-
LIBMULTITHREAD = @LIBMULTITHREAD@
723689
LIBOBJS = @LIBOBJS@
724-
LIBPTH = @LIBPTH@
725-
LIBPTH_PREFIX = @LIBPTH_PREFIX@
726690
LIBS = @LIBS@
727-
LIBTHREAD = @LIBTHREAD@
728691
LIBTOOL = @LIBTOOL@
729692
LIPO = @LIPO@
730693
LN_S = @LN_S@
731-
LTLIBC = @LTLIBC@
732694
LTLIBICONV = @LTLIBICONV@
733695
LTLIBINTL = @LTLIBINTL@
734-
LTLIBMULTITHREAD = @LTLIBMULTITHREAD@
735696
LTLIBOBJS = @LTLIBOBJS@
736-
LTLIBPTH = @LTLIBPTH@
737-
LTLIBTHREAD = @LTLIBTHREAD@
738697
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
739698
MAKEINFO = @MAKEINFO@
740699
MANIFEST_TOOL = @MANIFEST_TOOL@
741700
MKDIR_P = @MKDIR_P@
742701
MSGFMT = @MSGFMT@
743-
MSGFMT_015 = @MSGFMT_015@
744702
MSGMERGE = @MSGMERGE@
703+
MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@
745704
NM = @NM@
746705
NMEDIT = @NMEDIT@
747706
OBJDUMP = @OBJDUMP@
@@ -757,7 +716,6 @@ PACKAGE_URL = @PACKAGE_URL@
757716
PACKAGE_VERSION = @PACKAGE_VERSION@
758717
PATH_SEPARATOR = @PATH_SEPARATOR@
759718
POSUB = @POSUB@
760-
PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
761719
PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@
762720
RANLIB = @RANLIB@
763721
RELSTATUS = @RELSTATUS@
@@ -771,12 +729,8 @@ TERMCAP_DEP = @TERMCAP_DEP@
771729
TERMCAP_LIB = @TERMCAP_LIB@
772730
TESTSCRIPT = @TESTSCRIPT@
773731
TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
774-
USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
775732
USE_NLS = @USE_NLS@
776733
VERSION = @VERSION@
777-
WINDRES = @WINDRES@
778-
WOE32 = @WOE32@
779-
WOE32DLL = @WOE32DLL@
780734
XGETTEXT = @XGETTEXT@
781735
XGETTEXT_015 = @XGETTEXT_015@
782736
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
@@ -863,7 +817,7 @@ bash_SOURCES = shell.cc eval.cc parse.yy general.cc parser.cc \
863817
general.hh hashcmd.hh hashlib.hh input.hh jobs.hh parser.hh \
864818
patchlevel.hh pathexp.hh pcomplete.hh quit.hh shell.hh sig.hh \
865819
siglist.hh subst.hh syntax.hh trap.hh variables.hh \
866-
include/chartypes.hh include/filecntl.hh include/gettext.hh \
820+
include/chartypes.hh include/filecntl.hh include/gettext.h \
867821
include/maxpath.hh include/posixdir.hh include/posixselect.hh \
868822
include/posixstat.hh include/posixtime.hh include/posixwait.hh \
869823
include/shmbchar.hh include/shmbutil.hh include/shtty.hh \
@@ -1003,8 +957,6 @@ $(srcdir)/config.h.in: $(am__configure_deps)
1003957

1004958
distclean-hdr:
1005959
-rm -f config.h stamp-h1
1006-
intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in
1007-
cd $(top_builddir) && $(SHELL) ./config.status $@
1008960
doc/Makefile: $(top_builddir)/config.status $(top_srcdir)/doc/Makefile.in
1009961
cd $(top_builddir) && $(SHELL) ./config.status $@
1010962
pathnames.hh: $(top_builddir)/config.status $(srcdir)/pathnames.hh.in

aclocal.m4

+8
Original file line numberDiff line numberDiff line change
@@ -1149,10 +1149,18 @@ AC_SUBST([am__untar])
11491149
]) # _AM_PROG_TAR
11501150

11511151
m4_include([m4/gettext.m4])
1152+
m4_include([m4/host-cpu-c-abi.m4])
11521153
m4_include([m4/iconv.m4])
1154+
m4_include([m4/intlmacosx.m4])
1155+
m4_include([m4/lib-ld.m4])
1156+
m4_include([m4/lib-link.m4])
1157+
m4_include([m4/lib-prefix.m4])
11531158
m4_include([m4/libtool.m4])
11541159
m4_include([m4/longlong.m4])
11551160
m4_include([m4/ltoptions.m4])
11561161
m4_include([m4/ltsugar.m4])
11571162
m4_include([m4/ltversion.m4])
11581163
m4_include([m4/lt~obsolete.m4])
1164+
m4_include([m4/nls.m4])
1165+
m4_include([m4/po.m4])
1166+
m4_include([m4/progtest.m4])

bashintl.hh

+10-4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,19 @@
2121
#if !defined(_BASHINTL_H_)
2222
#define _BASHINTL_H_
2323

24-
#if defined(BUILDTOOL)
25-
#undef ENABLE_NLS
26-
#define ENABLE_NLS 0
24+
#if defined(__clang__)
25+
#pragma clang diagnostic push
26+
#pragma clang diagnostic ignored "-Wold-style-cast"
27+
#pragma clang diagnostic ignored "-Wvla-extension"
28+
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
2729
#endif
2830

2931
/* Include this *after* config.h */
30-
#include "gettext.hh"
32+
#include "gettext.h"
33+
34+
#if defined(__clang__)
35+
#pragma clang diagnostic pop
36+
#endif
3137

3238
#include <clocale>
3339

0 commit comments

Comments
 (0)