[Freeciv-Dev] (PR#13450) require stdint.h presence
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13450 >
This rather overcomplicated patch requires that stdint.h (included in
C99) is present. This shouldn't be a problem on any posix systems I
imagine. I've read that msvc doesn't have stdint but it can easily be
replaced (probably just copied over from glibc).
-jason
Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.106
diff -p -u -r1.106 configure.ac
--- configure.ac 26 Jun 2005 09:10:08 -0000 1.106
+++ configure.ac 11 Jul 2005 19:13:26 -0000
@@ -285,6 +285,7 @@ FC_DEBUG
AC_C99_VARIADIC_MACROS
AC_C99_VARIABLE_ARRAYS
AC_C99_INITIALIZERS
+AC_C99_STDINT_H
if test "$CVS_DEPS" = "maybe"; then
dnl Should also check for gmake?
Index: m4/c99.m4
===================================================================
RCS file: /home/freeciv/CVS/freeciv/m4/c99.m4,v
retrieving revision 1.6
diff -p -u -r1.6 c99.m4
--- m4/c99.m4 9 Mar 2005 18:37:52 -0000 1.6
+++ m4/c99.m4 11 Jul 2005 19:13:27 -0000
@@ -79,3 +79,16 @@ AC_DEFUN([AC_C99_INITIALIZERS],
AC_MSG_ERROR([A compiler supporting C99 initializers is required])
fi
])
+
+# Check C99-style stdint.h (required)
+AC_DEFUN([AC_C99_STDINT_H],
+[
+ AC_CHECK_HEADERS([stdint.h])
+ dnl Check for C99 stdint.h
+ AC_CACHE_CHECK([for C99 stdint.h],
+ [ac_cv_c99_stdint_h],
+ [ac_cv_c99_stdint_h=$ac_cv_header_stdint_h])
+ if test "${ac_cv_c99_stdint_h}" != "yes"; then
+ AC_MSG_ERROR([A compiler supporting C99's stdint.h is required])
+ fi
+])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#13450) require stdint.h presence,
Jason Short <=
|
|