]> granicus.if.org Git - curl/commitdiff
do not check if gmtime_r usage is allowed when a previous check has failed
authorYang Tse <yangsita@gmail.com>
Thu, 11 Sep 2008 04:15:43 +0000 (04:15 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 11 Sep 2008 04:15:43 +0000 (04:15 +0000)
m4/curl-functions.m4

index 162e1f6ac4d7994fe81b8995d18352d12216e3bc..8973e968e234661a8fe42d29efa681b13dbfc8f8 100644 (file)
@@ -308,7 +308,8 @@ AC_DEFUN([CURL_CHECK_FUNC_GMTIME_R], [
     ])
   fi
   #
-  if test "$tst_works_gmtime_r" != "no"; then
+  if test "$tst_compi_gmtime_r" = "yes" &&
+    test "$tst_works_gmtime_r" != "no"; then
     AC_MSG_CHECKING([if gmtime_r usage allowed])
     if test "x$curl_disallow_gmtime_r" != "xyes"; then
       AC_MSG_RESULT([yes])