Check for inttypes.h as well as sys/inttypes.h

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20866 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-03-07 12:16:46 +00:00
parent fb6b0a3dc6
commit d0ed24c454
2 changed files with 16 additions and 13 deletions

14
configure vendored
View file

@ -11602,7 +11602,8 @@ _ACEOF
for ac_header in libc.h limits.h malloc.h memory.h string.h signal.h sys/signal.h sys/wait.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h sys/inttypes.h
for ac_header in libc.h limits.h malloc.h memory.h string.h signal.h sys/signal.h sys/wait.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h inttypes.h sys/inttypes.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
@ -11751,16 +11752,17 @@ fi
done
INCLUDE_STDINT=no
if test $ac_cv_header_stdint_h = yes; then
INCLUDE_STDINT="#include <stdint.h>"
else
if test $ac_cv_header_sys_inttypes_h = yes; then
elif test $ac_cv_header_inttypes_h = yes; then
INCLUDE_STDINT="#include <inttypes.h>"
elif test $ac_cv_header_sys_inttypes_h = yes; then
INCLUDE_STDINT="#include <sys/inttypes.h>"
fi
else
INCLUDE_STDINT="no"
fi
if test "$INCLUDE_STDINT"="no"; then
if test "$INCLUDE_STDINT" = "no"; then
INCLUDE_STDINT=""
DEFINE_INT8_T="#define int8_t gss8"
DEFINE_UINT8_T="#define uint8_t gsu8"

View file

@ -658,19 +658,20 @@ AC_DEFINE_UNQUOTED(HAVE_PTS_STREAM_MODULES, $HAVE_PTS_STREAM_MODULES,
AC_SUBST(HAVE_PTS_STREAM_MODULES)
AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h signal.h dnl
sys/signal.h sys/wait.h sys/file.h sys/fcntl.h dnl
sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h sys/inttypes.h)
sys/signal.h sys/wait.h sys/file.h sys/fcntl.h sys/ioctl.h dnl
sys/stropts.h unistd.h utime.h stdint.h inttypes.h sys/inttypes.h)
INCLUDE_STDINT=no
if test $ac_cv_header_stdint_h = yes; then
INCLUDE_STDINT="#include <stdint.h>"
else
if test $ac_cv_header_sys_inttypes_h = yes; then
elif test $ac_cv_header_inttypes_h = yes; then
INCLUDE_STDINT="#include <inttypes.h>"
elif test $ac_cv_header_sys_inttypes_h = yes; then
INCLUDE_STDINT="#include <sys/inttypes.h>"
fi
else
INCLUDE_STDINT="no"
fi
if test "$INCLUDE_STDINT"="no"; then
if test "$INCLUDE_STDINT" = "no"; then
INCLUDE_STDINT=""
DEFINE_INT8_T="#define int8_t gss8"
DEFINE_UINT8_T="#define uint8_t gsu8"