X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=16d8bb983d84f81501e98aab58215de8ac8064a3;hb=a70f356e023abdd0abb130cc149b0e3de7469044;hp=d03e738308a1df58bb4c7bfc36aeaa13d67e6db1;hpb=aa96eaed38a981da6f95fb9892aed25f478e657c;p=haskell-directory.git diff --git a/aclocal.m4 b/aclocal.m4 index d03e738..16d8bb9 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,3 +1,24 @@ +# FP_DECL_ALTZONE +# --------------- +# Defines HAVE_DECL_ALTZONE to 1 if declared, 0 otherwise. +# +# Used by base package. +AC_DEFUN([FP_DECL_ALTZONE], +[AC_REQUIRE([AC_HEADER_TIME])dnl +AC_CHECK_HEADERS([sys/time.h]) +AC_CHECK_DECLS([altzone], [], [],[#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif]) +])# FP_DECL_ALTZONE + + # FP_COMPUTE_INT(EXPRESSION, VARIABLE, INCLUDES, IF-FAILS) # -------------------------------------------------------- # Assign VARIABLE the value of the compile-time EXPRESSION using INCLUDES for @@ -105,6 +126,14 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include # include #endif +#if HAVE_INTTYPES_H +# include +#else +# if HAVE_STDINT_H +# include +# endif +#endif + #if defined(HAVE_GL_GL_H) # include #elif defined(HAVE_OPENGL_GL_H)