X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=configure.in;h=515718a2d9325f3637c9d5d42c2093088b8fd3d9;hp=1a5efbe92f0b2f6a7fef91cb6bfcee906805990f;hb=6595b27601ff72318acbcec25861ba1c824777df;hpb=e321a0df2c56ff61602b13c1440465911b231f89 diff --git a/configure.in b/configure.in index 1a5efbe..515718a 100644 --- a/configure.in +++ b/configure.in @@ -272,7 +272,7 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T AC_STRUCT_TM AC_CHECK_TYPE(boolean,int) #needed for jpeglib - AC_CHECK_FUNCS(popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo open64) + AC_CHECK_FUNCS(popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo open64 calloc) AC_CHECK_SIZEOF([signed char]) AC_CHECK_SIZEOF([signed short]) @@ -578,6 +578,10 @@ AH_BOTTOM([ #endif #endif +// supply a substitute calloc function if necessary +#ifndef HAVE_CALLOC +#define calloc rfx_calloc_replacement +#endif #endif // __config_h__ ])