X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=configure.ac;h=8821b5080af2eb3ec8cabd3ae40ee20e10c80f2e;hb=9b3b7fd8072783e2ec20b3cf622713d39b1c8af4;hp=42567420e0b6ab01bc0a905b61c3fd7939f800f9;hpb=496db64202b11e66a080873ca9e32f1354dcfd3e;p=git.git diff --git a/configure.ac b/configure.ac index 42567420e..8821b5080 100644 --- a/configure.ac +++ b/configure.ac @@ -490,6 +490,8 @@ AC_SUBST(NO_MKDTEMP) # Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link. # Enable it on Windows. By default, symrefs are still used. # +# Define NO_PTHREADS if we do not have pthreads +# # Define PTHREAD_LIBS to the linker flag used for Pthread support. AC_LANG_CONFTEST([AC_LANG_PROGRAM( [[#include ]], @@ -502,9 +504,12 @@ else ${CC} -lpthread conftest.c -o conftest.o > /dev/null 2>&1 if test $? -eq 0;then PTHREAD_LIBS="-lpthread" + else + NO_PTHREADS=UnfortunatelyYes fi fi AC_SUBST(PTHREAD_LIBS) +AC_SUBST(NO_PTHREADS) ## Site configuration (override autodetection) ## --with-PACKAGE[=ARG] and --without-PACKAGE