diff --git a/configure b/configure index d632555a4c..f85fbd2994 100755 --- a/configure +++ b/configure @@ -2657,6 +2657,20 @@ else fi echores "$_fseeko" +echocheck "localtime_r()" +cat > $TMPC << EOF +#include +int main( void ) { localtime_r(NULL, NULL); } +EOF +_localtime_r=no +cc_check && _localtime_r=yes +if test "$_localtime_r" = yes ; then + _def_localtime_r='#define HAVE_LOCALTIME_R 1' +else + _def_localtime_r='#undef HAVE_LOCALTIME_R' +fi +echores "$_localtime_r" + echocheck "vsscanf()" cat > $TMPC << EOF #include @@ -6254,6 +6268,8 @@ $_def_fseeko int fseeko(FILE *, off_t, int); #endif +$_def_localtime_r + /* Define this if your system has vsscanf */ $_def_vsscanf