dnl dnl This macro checks that the function strptime exists and that dnl it is declared in the time.h header. dnl dnl Here is an example of its use: dnl dnl strptime.c replacement: dnl dnl #ifndef HAVE_STRPTIME dnl .... dnl #endif /* HAVE_STRPTIME */ dnl dnl In sources using strptime dnl dnl #ifndef HAVE_STRPTIME_DECL dnl extern char *strptime(const char *__s, const char *__fmt, struct tm *__tp); dnl #endif /* HAVE_STRPTIME_DECL */ dnl dnl @author Loic Dachary dnl @version 1.0 dnl AC_DEFUN([AC_FUNC_STRPTIME], [ AC_CHECK_FUNCS(strptime) AC_MSG_CHECKING(for strptime declaration in time.h) AC_EGREP_HEADER(strptime, time.h, [ AC_DEFINE([HAVE_STRPTIME_DECL],,[Define if the function strptime is declared in ]) AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ]) ])