1
dnl Available from the GNU Autoconf Macro Archive at:
2
dnl http://www.gnu.org/software/ac-archive/htmldoc/vl_check_sign.html
4
AC_DEFUN([VL_CHECK_SIGN], [
5
typename=`echo $1 | sed "s/@<:@^a-zA-Z0-9_@:>@/_/g"`
6
AC_CACHE_CHECK([whether $1 is signed], vl_cv_decl_${typename}_signed, [
8
[ int foo @<:@ 1 - 2 * !((($1) -1) < 0) @:>@ ],
9
[ eval "vl_cv_decl_${typename}_signed=\"yes\"" ],
10
[ eval "vl_cv_decl_${typename}_signed=\"no\"" ])])
11
symbolname=`echo $1 | sed "s/@<:@^a-zA-Z0-9_@:>@/_/g" | tr "a-z" "A-Z"`
12
if eval "test \"\${vl_cv_decl_${typename}_signed}\" = \"yes\""; then
14
elif eval "test \"\${vl_cv_decl_${typename}_signed}\" = \"no\""; then