Skip to content
Snippets Groups Projects
Commit 851de1fb authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add ac_define for pthreads.

parent d0028095
Branches
Tags
No related merge requests found
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# init the project # init the project
AC_INIT(src/sched.c) AC_INIT(src/qsched.c)
VERSION="0.1.0" VERSION="0.1.0"
AC_SUBST(VERSION) AC_SUBST(VERSION)
AM_INIT_AUTOMAKE(QUICKSCHED,VERSION) AM_INIT_AUTOMAKE(QUICKSCHED,VERSION)
...@@ -48,7 +48,8 @@ AC_HEADER_STDC ...@@ -48,7 +48,8 @@ AC_HEADER_STDC
# Check for pthreads # Check for pthreads
ACX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ACX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC" LDFLAGS="$PTHREAD_LIBS $LIBS"], CC="$PTHREAD_CC" LDFLAGS="$PTHREAD_LIBS $LIBS"
AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.])],
AC_MSG_ERROR([Could not find a working version of AC_MSG_ERROR([Could not find a working version of
the pthread library. Make sure you have the library and header files installed the pthread library. Make sure you have the library and header files installed
or use CPPFLAGS and LDFLAGS if the library is installed in a or use CPPFLAGS and LDFLAGS if the library is installed in a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment