forked from laurikari/tre
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request laurikari#108 from dag-erling/des/misc-fixes
Miscellaneous bug fixes
- Loading branch information
Showing
14 changed files
with
105 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
EXTRA_DIST = \ | ||
ac_libtool_tags.m4 \ | ||
ax_check_funcs_comp.m4 \ | ||
ax_check_sign.m4 \ | ||
ax_decl_wchar_max.m4 \ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,56 @@ | ||
dnl @synopsis AX_CHECK_SIGN (TYPE, [ACTION-IF-SIGNED], [ACTION-IF-UNSIGNED], [INCLUDES]) | ||
dnl | ||
dnl Checks whether TYPE is signed or not. If no INCLUDES are specified, | ||
dnl the default includes are used. If ACTION-IF-SIGNED is given, it is | ||
dnl additional shell code to execute when the type is signed. If | ||
dnl ACTION-IF-UNSIGNED is given, it is executed when the type is unsigned. | ||
dnl | ||
dnl This macro assumes that the type exists. Therefore the existence of | ||
dnl the type should be checked before calling this macro. For example: | ||
dnl | ||
dnl AC_CHECK_HEADERS([wchar.h]) | ||
dnl AC_CHECK_TYPE([wchar_t],,[ AC_MSG_ERROR([Type wchar_t not found.]) ]) | ||
dnl AX_CHECK_SIGN([wchar_t], | ||
dnl [ AC_DEFINE(WCHAR_T_SIGNED, 1, [Define if wchar_t is signed]) ], | ||
dnl [ AC_DEFINE(WCHAR_T_UNSIGNED, 1, [Define if wchar_t is unsigned]) ], [ | ||
dnl #ifdef HAVE_WCHAR_H | ||
dnl #include <wchar.h> | ||
dnl #endif | ||
dnl ]) | ||
dnl | ||
dnl @version 1.1 | ||
dnl @author Ville Laurikari <[email protected]> | ||
# =========================================================================== | ||
# https://www.gnu.org/software/autoconf-archive/ax_check_sign.html | ||
# =========================================================================== | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_CHECK_SIGN (TYPE, [ACTION-IF-SIGNED], [ACTION-IF-UNSIGNED], [INCLUDES]) | ||
# | ||
# DESCRIPTION | ||
# | ||
# Checks whether TYPE is signed or not. If no INCLUDES are specified, the | ||
# default includes are used. If ACTION-IF-SIGNED is given, it is | ||
# additional shell code to execute when the type is signed. If | ||
# ACTION-IF-UNSIGNED is given, it is executed when the type is unsigned. | ||
# | ||
# This macro assumes that the type exists. Therefore the existence of the | ||
# type should be checked before calling this macro. For example: | ||
# | ||
# AC_CHECK_HEADERS([wchar.h]) | ||
# AC_CHECK_TYPE([wchar_t],,[ AC_MSG_ERROR([Type wchar_t not found.]) ]) | ||
# AX_CHECK_SIGN([wchar_t], | ||
# [ AC_DEFINE(WCHAR_T_SIGNED, 1, [Define if wchar_t is signed]) ], | ||
# [ AC_DEFINE(WCHAR_T_UNSIGNED, 1, [Define if wchar_t is unsigned]) ], [ | ||
# #ifdef HAVE_WCHAR_H | ||
# #include <wchar.h> | ||
# #endif | ||
# ]) | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2008 Ville Laurikari <[email protected]> | ||
# | ||
# Copying and distribution of this file, with or without modification, are | ||
# permitted in any medium without royalty provided the copyright notice | ||
# and this notice are preserved. This file is offered as-is, without any | ||
# warranty. | ||
|
||
#serial 10 | ||
|
||
AU_ALIAS([VL_CHECK_SIGN], [AX_CHECK_SIGN]) | ||
AC_DEFUN([AX_CHECK_SIGN], [ | ||
typename=`echo $1 | sed "s/@<:@^a-zA-Z0-9_@:>@/_/g"` | ||
AC_CACHE_CHECK([whether $1 is signed], ax_cv_decl_${typename}_signed, [ | ||
AC_COMPILE_IFELSE( | ||
[ AC_LANG_PROGRAM([$4], | ||
[ int foo @<:@ 1 - 2 * !((($1) -1) < 0) @:>@ ])], | ||
[AC_LANG_PROGRAM([[$4]], | ||
[[ int foo @<:@ 1 - 2 * !((($1) -1) < 0) @:>@ ; (void)foo[0] ]])], | ||
[ eval "ax_cv_decl_${typename}_signed=\"yes\"" ], | ||
[ eval "ax_cv_decl_${typename}_signed=\"no\"" ])]) | ||
symbolname=`echo $1 | sed "s/@<:@^a-zA-Z0-9_@:>@/_/g" | tr "@<:@a-z@:>@" "@<:@A-Z@:>@"` | ||
[ eval "ax_cv_decl_${typename}_signed=\"no\"" ]) | ||
]) | ||
symbolname=`echo $1 | sed "s/@<:@^a-zA-Z0-9_@:>@/_/g" | tr "a-z" "A-Z"` | ||
if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then | ||
true | ||
$2 | ||
elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then | ||
true | ||
$3 | ||
fi | ||
])dnl |
Oops, something went wrong.