dnl Copyright (C) 2003, 2007, 2009, 2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl Copyright (C) 2003, 2007, 2009, 2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
- AC_REPLACE_FUNCS([timegm])
- fi
- REPLACE_TIMEGM=1
- if test $ac_cv_func_timegm = yes; then
- AC_CHECK_DECLS([timegm], [REPLACE_TIMEGM=0], [], [#include <time.h>])
+ AC_CHECK_FUNCS([timegm])
+ if test $ac_cv_func_timegm != yes; then
+ REPLACE_TIMEGM=1
+ fi