bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sys/bitypes.h and AC_CHECK_TYPE


From: Piotr KUCHARSKI
Subject: sys/bitypes.h and AC_CHECK_TYPE
Date: Tue, 9 Nov 2004 19:57:32 +0100
User-agent: Mutt/1.4.2.1i

Hi,

configure detects sys/bitypes.h, puts HAVE_SYS_BITYPES_H define onto
confdefs.h, but when later trying AC_CHECK_TYPE(u_int8_t, unsigned char)
sys/bitypes.h is not included in ac_includes_default, so u_int8_t gets
redefined, which gives "redefined" errors when program compiles.

As a quick hack I redefined AC_INCLUDES_DEFAULT:
AC_DEFUN([AC_INCLUDES_DEFAULT],
[m4_ifval([$1], [$1
],
          [AC_REQUIRE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])dnl
$ac_includes_default
#if HAVE_SYS_BITYPES_H
# include <sys/bitypes.h>
#endif
])])
before my AC_CHECK_TYPES, but maybe you could fix it better?

Or I'm missing something? Perhaps there's an easier/nicer way
to expand AC_INCLUDES_DEFAULT? Or that path is doomed anyway?

p.

PS Setup in question was ircd2.11.0b16 on Tru64

-- 
Beware of he who would deny you access to information, for in his
heart he dreams himself your master.   -- Commissioner Pravin Lal
http://nerdquiz.sgh.waw.pl/  -- polska wersja quizu dla nerdów ;)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]