Fix autoconf warnings.
[awesomized/libmemcached] / m4 / check_sock_cloexec.m4
index 6936ab407d7124a65d88609fc37c4acac24f5959..8dcd14f54e7e3a0bbe6b3c9d3dc0d9d07e50929e 100644 (file)
@@ -2,7 +2,7 @@
 # AX_CHECK_SOCK_CLOEXEC([action-if-found], [action-if-not-found])
 #
 
-#serial 1
+#serial 2
 
 AC_DEFUN([AX_CHECK_SOCK_CLOEXEC], [
     AC_CACHE_CHECK([whether SOCK_CLOEXEC is supported], [ax_cv_sock_cloexec], [
@@ -19,7 +19,8 @@ AC_DEFUN([AX_CHECK_SOCK_CLOEXEC], [
           return (s == -1);
           ])],
         [ax_cv_sock_cloexec=yes],
-        [ax_cv_sock_cloexec=no])
+        [ax_cv_sock_cloexec=no],
+        [AC_MSG_WARN([test program execution failed])])
       ])
 
     AS_IF([test x"ax_cv_sock_cloexec" = xyes], [AC_MSG_RESULT([yes]) ; $1], AC_MSG_RESULT([no]) ; $2)