From a1be3ba146922141a2713a074d64392e19c3b74b Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Mon, 19 Jan 2004 23:05:49 +0000 Subject: [PATCH] Fix up autoconf/configure issues, esp. mishandling the AC_CHECK_SIZEOF macro. --- aclocal.m4 | 4 ++-- m4/package_types.m4 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index 598cca86c..b376d02f9 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -257,13 +257,13 @@ AC_DEFUN([AC_SIZEOF_POINTERS_AND_LONG], fi AC_CHECK_SIZEOF(long, 4) AC_CHECK_SIZEOF(char *, 4) - if test $ac_cv_sizeof_long -eq 4; then + if test $ac_cv_sizeof_long -eq 4 -o $ac_cv_sizeof_long -eq 0; then AC_DEFINE(HAVE_32BIT_LONG) fi if test $ac_cv_sizeof_long -eq 8; then AC_DEFINE(HAVE_64BIT_LONG) fi - if test $ac_cv_sizeof_char_p -eq 4; then + if test $ac_cv_sizeof_char_p -eq 4 -o $ac_cv_sizeof_char_p -eq 0; then AC_DEFINE(HAVE_32BIT_PTR) fi if test $ac_cv_sizeof_char_p -eq 8; then diff --git a/m4/package_types.m4 b/m4/package_types.m4 index 1bd697510..91db64e98 100644 --- a/m4/package_types.m4 +++ b/m4/package_types.m4 @@ -35,13 +35,13 @@ AC_DEFUN([AC_SIZEOF_POINTERS_AND_LONG], fi AC_CHECK_SIZEOF(long, 4) AC_CHECK_SIZEOF(char *, 4) - if test $ac_cv_sizeof_long -eq 4; then + if test $ac_cv_sizeof_long -eq 4 -o $ac_cv_sizeof_long -eq 0; then AC_DEFINE(HAVE_32BIT_LONG) fi if test $ac_cv_sizeof_long -eq 8; then AC_DEFINE(HAVE_64BIT_LONG) fi - if test $ac_cv_sizeof_char_p -eq 4; then + if test $ac_cv_sizeof_char_p -eq 4 -o $ac_cv_sizeof_char_p -eq 0; then AC_DEFINE(HAVE_32BIT_PTR) fi if test $ac_cv_sizeof_char_p -eq 8; then -- 2.47.2