cvs: /php4 acinclude.m4
| From: | Sascha Schumann | Date: | Sat, 01 Apr 2000 16:01:04 +0000 |
| Subject: | cvs: /php4 acinclude.m4 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12985@lists.php.net to get a copy of this message | ||
sas Sat Apr 1 08:01:04 2000 EDT
Modified files:
/php4 acinclude.m4
Log:
Fix the HPUX 10.20 check for non-standard reentrant time functions
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.70 php4/acinclude.m4:1.71
--- php4/acinclude.m4:1.70 Thu Mar 30 07:00:30 2000
+++ php4/acinclude.m4 Sat Apr 1 08:00:34 2000
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.70 2000/03/30 15:00:30 sas Exp $
+dnl $Id: acinclude.m4,v 1.71 2000/04/01 16:00:34 sas Exp $
dnl
dnl This file contains local autoconf functions.
@@ -57,16 +57,17 @@
AC_CACHE_CHECK(for time_r type, ac_cv_time_r_type,[
AC_TRY_RUN([
#include <time.h>
+#include <stdlib.h>
main() {
char buf[27];
struct tm t;
time_t old = 0;
-int r;
+int r, s;
-gmtime_r(&old, &t);
+s = gmtime_r(&old, &t);
r = (int) asctime_r(&t, buf, 26);
-if (r == -1 || (r > 0 && r <= 26)) exit(0);
+if (r == s && s == 0) exit(0);
exit(1);
}
],[