--- a/configure.ac +++ b/configure.ac @@ -916,7 +916,10 @@ # The alias functions want to know the native off_t bits. # "Native" also means large file offsets, if enabled, it's what is native to the mpg123 library. -if test "x$ac_cv_sizeof_long" = "x"; then +if test "x$ac_cv_sizeof_off_t" != "x"; then + LFS_ALIAS_BITS=`expr "$ac_cv_sizeof_off_t" "*" "8"` + AC_DEFINE_UNQUOTED([LFS_ALIAS_BITS], $LFS_ALIAS_BITS, +elif test "x$ac_cv_sizeof_long" = "x"; then AC_MSG_ERROR([Cannot determine sizeof(long)?]) else LFS_ALIAS_BITS=`expr "$ac_cv_sizeof_long" "*" "8"` --- a/configure +++ b/configure @@ -14836,7 +14836,14 @@ # The alias functions want to know the native off_t bits. # "Native" also means large file offsets, if enabled, it's what is native to the mpg123 library. -if test "x$ac_cv_sizeof_long" = "x"; then +if test "x$ac_cv_sizeof_off_t" != "x"; then + LFS_ALIAS_BITS=`expr "$ac_cv_sizeof_off_t" "*" "8"` + +cat >>confdefs.h <<_ACEOF +#define LFS_ALIAS_BITS $LFS_ALIAS_BITS +_ACEOF + +elif test "x$ac_cv_sizeof_long" = "x"; then as_fn_error $? "Cannot determine sizeof(long)?" "$LINENO" 5 else LFS_ALIAS_BITS=`expr "$ac_cv_sizeof_long" "*" "8"`