Mercurial > urweb
diff configure.ac @ 1528:7770ef82c463
Configure correct C compiler options for Pthreads
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 04 Aug 2011 17:06:50 -0400 |
parents | b5d78407886d |
children | 3b57a6ddef1a |
line wrap: on
line diff
--- a/configure.ac Thu Aug 04 16:44:05 2011 -0400 +++ b/configure.ac Thu Aug 04 17:06:50 2011 -0400 @@ -7,6 +7,8 @@ AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) +AX_PTHREAD([echo >/dev/null], [echo "Your C compiler does not support POSIX threads."; exit 1]) + AX_CHECK_OPENSSL([echo >/dev/null], [echo "You must install OpenSSL development files."; exit 1]) AC_CHECK_PROG(MLTON, mlton, yes, []) @@ -94,6 +96,8 @@ AC_SUBST(MSHEADER) AC_SUBST(SQHEADER) AC_SUBST(VERSION) +AC_SUBST(PTHREAD_CFLAGS) +AC_SUBST(PTHREAD_LIBS) AC_CONFIG_FILES([ Makefile