File tree 1 file changed +9
-12
lines changed
1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -343,24 +343,21 @@ AC_CHECK_FUNCS([posix_spawn_file_actions_addchdir_np])
343
343
dnl
344
344
dnl Check for strptime()
345
345
dnl
346
- AC_CACHE_CHECK ( whether strptime ( ) declaration fails , ac_cv_strptime_decl_fails ,[
347
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
348
- #include <time.h>
349
- ] ] ,[ [
346
+ AC_CACHE_CHECK ( [ whether strptime is declared] ,
347
+ [ php_cv_have_decl_strptime] ,
348
+ [ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ #include <time.h>] , [
350
349
#ifndef HAVE_STRPTIME
351
350
#error no strptime() on this platform
352
351
#else
353
352
/* use invalid strptime() declaration to see if it fails to compile */
354
353
int strptime(const char *s, const char *format, struct tm *tm);
355
354
#endif
356
- ] ] ) ] ,[
357
- ac_cv_strptime_decl_fails=no
358
- ] ,[
359
- ac_cv_strptime_decl_fails=yes
360
- ] ) ] )
361
- if test "$ac_cv_strptime_decl_fails" = "yes"; then
362
- AC_DEFINE ( [ HAVE_STRPTIME_DECL_FAILS] , 1 , [ whether strptime() declaration fails] )
363
- fi
355
+ ] ) ] ,
356
+ [ php_cv_have_decl_strptime=no] ,
357
+ [ php_cv_have_decl_strptime=yes] ) ] )
358
+ AS_VAR_IF ( [ php_cv_have_decl_strptime] , [ yes] ,
359
+ [ AC_DEFINE ( [ HAVE_STRPTIME_DECL_FAILS] , [ 1] ,
360
+ [ Define to 1 if 'strptime' has declaration.] ) ] )
364
361
365
362
dnl
366
363
dnl Check for argon2
You can’t perform that action at this time.
0 commit comments