From: Bruno Haible Date: Fri, 26 Aug 2005 11:04:39 +0000 (+0000) Subject: Use gnulib module 'byteswap'. X-Git-Tag: v0.15~420 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8befa4bae1e35b09c562d9a175171e61adb978ba;p=thirdparty%2Fgettext.git Use gnulib module 'byteswap'. --- diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index 4f969b991..f4bb3e183 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,3 +1,7 @@ +2005-08-23 Bruno Haible + + * configure.ac: Invoke gl_BYTESWAP. Define ENDIANNESS. + 2005-08-13 Bruno Haible New configure options --disable-java, --disable-native-java. diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index d60e27cef..eb40a0858 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -170,6 +170,13 @@ gl_CANONICALIZE gt_SETLOCALE gl_XSIZE gt_LIBGREP +gl_BYTESWAP +AC_C_BIGENDIAN([endianness=1], [endianness=0], + [echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2 + echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2 + exit 1]) +AC_DEFINE_UNQUOTED([ENDIANNESS], [$endianness], + [Define according to the byte order of the target machine: 1 for big endian, 0 for little endian.]) gt_PREREQ_HOSTNAME diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index a125c2867..6015cdccc 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,10 @@ +2005-08-23 Bruno Haible + + * byteswap_.h: New file, from gnulib. + * Makefile.am (BUILT_SOURCES, EXTRA_DIST, MOSTLYCLEANFILES): Adjust + for byteswap.h. + (byteswap.h): New rule. + 2005-08-16 Bruno Haible * strcase.h: Remove file. diff --git a/gettext-tools/lib/Makefile.am b/gettext-tools/lib/Makefile.am index 8d96a65eb..bd2c01c4e 100644 --- a/gettext-tools/lib/Makefile.am +++ b/gettext-tools/lib/Makefile.am @@ -181,6 +181,19 @@ MOSTLYCLEANFILES += alloca.h # <<< gnulib module alloca. +# >>> gnulib module byteswap. +BUILT_SOURCES += $(BYTESWAP_H) +EXTRA_DIST += byteswap_.h + +# We need the following in order to create when the system +# doesn't have one. +byteswap.h: byteswap_.h + cp $(srcdir)/$< $@-t + mv $@-t $@ +MOSTLYCLEANFILES += byteswap.h +# <<< gnulib module byteswap. + + # >>> gnulib module fnmatch. BUILT_SOURCES += $(FNMATCH_H) EXTRA_DIST += fnmatch_.h fnmatch_loop.c diff --git a/gettext-tools/m4/ChangeLog b/gettext-tools/m4/ChangeLog index 3818d74c6..70adc3073 100644 --- a/gettext-tools/m4/ChangeLog +++ b/gettext-tools/m4/ChangeLog @@ -1,3 +1,8 @@ +2005-08-23 Bruno Haible + + * byteswap.m4: New file, from gnulib. + * Makefile.am (EXTRA_DIST): Add byteswap.m4. + 2005-08-13 Bruno Haible * java.m4: New file. diff --git a/gettext-tools/m4/Makefile.am b/gettext-tools/m4/Makefile.am index 2e1baea0a..60286be4b 100644 --- a/gettext-tools/m4/Makefile.am +++ b/gettext-tools/m4/Makefile.am @@ -50,6 +50,7 @@ EXTRA_DIST = README ChangeLog.0 csharpexec-test.exe \ alloca.m4 \ allocsa.m4 \ backupfile.m4 \ +byteswap.m4 \ canonicalize.m4 \ csharp.m4 \ csharpcomp.m4 \