diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-11-28 20:39:15 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-11-28 20:39:15 +0000 |
commit | 50a2690940aab89b5f775a56f3f98403ed8a4d27 (patch) | |
tree | 1af7c86962ebbb4b29c5bc22b4c72032c0502973 /lgl | |
parent | 4a0464f49a9a4d41f9c890253581a709df80435e (diff) | |
download | gnutls-50a2690940aab89b5f775a56f3f98403ed8a4d27.tar.gz |
Update.
Diffstat (limited to 'lgl')
-rw-r--r-- | lgl/Makefile.am | 1 | ||||
-rw-r--r-- | lgl/gettext.h | 3 | ||||
-rw-r--r-- | lgl/m4/eoverflow.m4 | 12 | ||||
-rw-r--r-- | lgl/m4/size_max.m4 | 12 | ||||
-rw-r--r-- | lgl/m4/stdint.m4 | 10 |
5 files changed, 29 insertions, 9 deletions
diff --git a/lgl/Makefile.am b/lgl/Makefile.am index 9eadeec705..98370d34c0 100644 --- a/lgl/Makefile.am +++ b/lgl/Makefile.am @@ -21,6 +21,7 @@ liblgnu_la_DEPENDENCIES = $(lgl_LTLIBOBJS) EXTRA_liblgnu_la_SOURCES = liblgnu_la_LDFLAGS = $(AM_LDFLAGS) noinst_HEADERS = +noinst_LTLIBRARIES = EXTRA_DIST = BUILT_SOURCES = SUFFIXES = diff --git a/lgl/gettext.h b/lgl/gettext.h index 6680203ff5..bd214d5cec 100644 --- a/lgl/gettext.h +++ b/lgl/gettext.h @@ -169,7 +169,8 @@ npgettext_aux (const char *domain, #include <string.h> #define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \ - (__GNUC__ >= 3 || __GNUG__ >= 2 /* || __STDC_VERSION__ >= 199901L */ ) + (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \ + /* || __STDC_VERSION__ >= 199901L */ ) #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include <stdlib.h> diff --git a/lgl/m4/eoverflow.m4 b/lgl/m4/eoverflow.m4 index 8c28ca3056..3bffd10ed1 100644 --- a/lgl/m4/eoverflow.m4 +++ b/lgl/m4/eoverflow.m4 @@ -1,5 +1,5 @@ -# eoverflow.m4 serial 1 -dnl Copyright (C) 2004 Free Software Foundation, Inc. +# eoverflow.m4 serial 2 +dnl Copyright (C) 2004, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -40,7 +40,7 @@ yes if test -n "$have_eoverflow"; then dnl EOVERFLOW exists but is hidden. dnl Define it to the same value. - _AC_COMPUTE_INT([EOVERFLOW], ac_cv_decl_EOVERFLOW, [ + AC_COMPUTE_INT([ac_cv_decl_EOVERFLOW], [EOVERFLOW], [ #define _XOPEN_SOURCE_EXTENDED 1 #include <errno.h> /* The following two lines are a workaround against an autoconf-2.52 bug. */ @@ -62,3 +62,9 @@ yes AC_SUBST(EOVERFLOW) fi ]) + +dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. +dnl Remove this when we can assume autoconf >= 2.61. +m4_ifdef([AC_COMPUTE_INT], [], [ + AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) +]) diff --git a/lgl/m4/size_max.m4 b/lgl/m4/size_max.m4 index bfba811eb6..6cb4868927 100644 --- a/lgl/m4/size_max.m4 +++ b/lgl/m4/size_max.m4 @@ -1,4 +1,4 @@ -# size_max.m4 serial 5 +# size_max.m4 serial 6 dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -26,10 +26,10 @@ Found it dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. Try hard to find a definition that can dnl be used in a preprocessor #if, i.e. doesn't contain a cast. - _AC_COMPUTE_INT([sizeof (size_t) * CHAR_BIT - 1], size_t_bits_minus_1, + AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], [#include <stddef.h> #include <limits.h>], size_t_bits_minus_1=) - _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, + AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], [#include <stddef.h>], fits_in_uint=) if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then @@ -60,3 +60,9 @@ Found it [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi ]) + +dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. +dnl Remove this when we can assume autoconf >= 2.61. +m4_ifdef([AC_COMPUTE_INT], [], [ + AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) +]) diff --git a/lgl/m4/stdint.m4 b/lgl/m4/stdint.m4 index 9261def3bb..6fa651845b 100644 --- a/lgl/m4/stdint.m4 +++ b/lgl/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 19 +# stdint.m4 serial 20 dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -229,7 +229,7 @@ AC_DEFUN([gl_STDINT_BITSIZEOF], [Define to the number of bits in type ']gltype['.])]) for gltype in $1 ; do AC_CACHE_CHECK([for bit size of $gltype], [gl_cv_bitsizeof_${gltype}], - [_AC_COMPUTE_INT([sizeof ($gltype) * CHAR_BIT], result, + [AC_COMPUTE_INT([result], [sizeof ($gltype) * CHAR_BIT], [$2 #include <limits.h>], [result=unknown]) eval gl_cv_bitsizeof_${gltype}=\$result @@ -366,3 +366,9 @@ AC_DEFUN([gl_STDINT_TYPE_PROPERTIES], gl_INTEGER_TYPE_SUFFIX([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], [gl_STDINT_INCLUDES]) ]) + +dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. +dnl Remove this when we can assume autoconf >= 2.61. +m4_ifdef([AC_COMPUTE_INT], [], [ + AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) +]) |