The autoconf mechanism for determining SHIFT_OFFSET did not work when cross compiling

This commit is contained in:
Gerhard Rieger 2019-02-24 22:37:08 +01:00
parent 4ca048da49
commit aaf90d6efb
2 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,10 @@ corrections:
configure option --enable-msglevel did not work with numbers
The autoconf mechanism for determining SHIFT_OFFSET did not work when
cross compiling.
Thanks to Max Freisinger from Gentoo for seinding a patch.
git:
Added missing Config/Makefile.DragonFly-2-8-2,
Config/config.DragonFly-2-8-2.h

View file

@ -998,11 +998,11 @@ AC_CACHE_VAL(ac_cv_ispeed_offset,
],
[ac_cv_ispeed_offset=`cat $conftestspeedoff`],
[ac_cv_ispeed_offset=-1],
[ac_cv_ispeed_offset=-1] #!
[ac_cv_ispeed_offset="((unsigned long)&((struct termios *)0)->c_ispeed / sizeof(speed_t))"]
)])
LIBS="$LIBS1"
AC_MSG_RESULT($ac_cv_ispeed_offset)
if test $ac_cv_ispeed_offset -ge 0; then
if test "$ac_cv_ispeed_offset" != -1; then
AC_DEFINE_UNQUOTED(ISPEED_OFFSET, $ac_cv_ispeed_offset)
fi
fi