Browse Source

configure: Include "no" response in BFG_PTHREAD_FLAG_CHECK

Luke Dashjr 12 years ago
parent
commit
dca6e5932d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      configure.ac

+ 3 - 2
configure.ac

@@ -173,6 +173,9 @@ m4_define([BFG_PTHREAD_FLAG_CHECK],
 			],[])
 			],[])
 		done
 		done
 	done
 	done
+	if test "x${found_pthread}" = "xfalse"; then
+		AC_MSG_RESULT([no])
+	fi
 )
 )
 
 
 save_CFLAGS="${CFLAGS}"
 save_CFLAGS="${CFLAGS}"
@@ -182,10 +185,8 @@ BFG_PTHREAD_FLAG_CHECK([pthread_cancel],[
 	AC_DEFINE([HAVE_PTHREAD_CANCEL], [1], [Define if you have a native pthread_cancel])
 	AC_DEFINE([HAVE_PTHREAD_CANCEL], [1], [Define if you have a native pthread_cancel])
 ])
 ])
 if test "x${found_pthread}" = "xfalse"; then
 if test "x${found_pthread}" = "xfalse"; then
-	AC_MSG_RESULT([no])
 	BFG_PTHREAD_FLAG_CHECK([pthread_create])
 	BFG_PTHREAD_FLAG_CHECK([pthread_create])
 	if test "x${found_pthread}" = "xfalse"; then
 	if test "x${found_pthread}" = "xfalse"; then
-		AC_MSG_RESULT([no])
 		AC_MSG_ERROR([Could not find pthread library - please install libpthread])
 		AC_MSG_ERROR([Could not find pthread library - please install libpthread])
 	fi
 	fi
 fi
 fi