]> granicus.if.org Git - curl/commitdiff
fix false negative strerror_r detection
authorYang Tse <yangsita@gmail.com>
Thu, 18 Sep 2008 11:21:55 +0000 (11:21 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 18 Sep 2008 11:21:55 +0000 (11:21 +0000)
m4/curl-functions.m4

index 26ed3960cd8717be07e6e5ed096bd903786c718b..2b11d720e391291079c7c96bd02324b20dd6759c 100644 (file)
@@ -1735,6 +1735,12 @@ AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [
     ])
   fi
   #
+  if test "$tst_works_glibc_strerror_r" = "yes"; then
+    tst_posix_strerror_r="no"
+  fi
+  if test "$tst_works_posix_strerror_r" = "yes"; then
+    tst_glibc_strerror_r="no"
+  fi
   if test "$tst_glibc_strerror_r" = "yes" &&
     test "$tst_works_glibc_strerror_r" != "no" &&
     test "$tst_posix_strerror_r" != "yes"; then