]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use gnulib module 'byteswap'.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Aug 2005 11:04:39 +0000 (11:04 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:47 +0000 (12:12 +0200)
gettext-tools/ChangeLog
gettext-tools/configure.ac
gettext-tools/lib/ChangeLog
gettext-tools/lib/Makefile.am
gettext-tools/m4/ChangeLog
gettext-tools/m4/Makefile.am

index 4f969b991651921841b73b66c4aeb3bb0447855d..f4bb3e1839635a09371aa96526ceeac11bfa81b1 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-23  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: Invoke gl_BYTESWAP. Define ENDIANNESS.
+
 2005-08-13  Bruno Haible  <bruno@clisp.org>
 
        New configure options --disable-java, --disable-native-java.
index d60e27cefc9d7aa93a53e85b4b4f05ed58f4cfd3..eb40a085822b69738709920602b09be536f4d531 100644 (file)
@@ -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
 
index a125c2867e26e7ff333ef7bb5e05f5838a0df667..6015cdccc7a8830d56ccf606a97b3f2308298b19 100644 (file)
@@ -1,3 +1,10 @@
+2005-08-23  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
 
        * strcase.h: Remove file.
index 8d96a65ebb316db0a5e9b80637083152a8daae65..bd2c01c4e40457679f130261975ded87b83c0c95 100644 (file)
@@ -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 <byteswap.h> 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
index 3818d74c607fcd3b6f56237801425f1e83fff88b..70adc307374fc18df5bf635a7cfe8b8873aca17d 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-23  Bruno Haible  <bruno@clisp.org>
+
+       * byteswap.m4: New file, from gnulib.
+       * Makefile.am (EXTRA_DIST): Add byteswap.m4.
+
 2005-08-13  Bruno Haible  <bruno@clisp.org>
 
        * java.m4: New file.
index 2e1baea0a45edcfdd3641132e85401eeb33fbe5b..60286be4b49217281bd5bfc387594f145c70c349 100644 (file)
@@ -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 \