From 9135a5d0e44b1f2fc77beb7b09584be861f18e76 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 27 Jun 2000 15:04:15 +0000 Subject: Solaris compatibility config check + implementation (ctime_r arguments) svn path=/trunk/; revision=3754 --- configure.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 1e6b5cf2ea..16f722714b 100644 --- a/configure.in +++ b/configure.in @@ -110,6 +110,29 @@ fi AC_CHECK_FUNCS(mkstemp) +dnl ************************************************** +dnl ctime_r prototype +dnl ************************************************** + +AC_CACHE_CHECK([if ctime_r wants three arguments], ac_cv_ctime_r_three_args, +[ + AC_TRY_COMPILE([ + #include + ],[ + char *buf; + time_t date; + ctime_r( &date, buf, 100 ); + ],[ + ac_cv_ctime_r_three_args=yes + ],[ + ac_cv_ctime_r_three_args=no + ]) +]) + +if test x"$ac_cv_ctime_r_three_args" = xyes ; then + AC_DEFINE(CTIME_R_THREE_ARGS) +fi + dnl ************************************************** dnl * pas-backend-file stuff. dnl * check for db_185.h. if it's there, we use it. -- cgit v1.2.3