1
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
dnl pandora-build: A pedantic build system
5
dnl Copyright (C) 2009 Sun Microsystems, Inc.
6
dnl This file is free software; the Free Software Foundation
7
dnl gives unlimited permission to copy and/or distribute it,
8
dnl with or without modifications, as long as this notice is preserved.
13
dnl --------------------------------------------------------------------
14
dnl Check for libpthread
15
dnl --------------------------------------------------------------------
17
AC_DEFUN([_PANDORA_SEARCH_PTHREAD],[
19
LIBS="${PTHREAD_LIBS} ${LIBS}"
20
AM_CFLAGS="${PTHREAD_CFLAGS} ${AM_CFLAGS}"
21
AM_CXXFLAGS="${PTHREAD_CFLAGS} ${AM_CXXFLAGS}"
26
AC_DEFUN([PANDORA_HAVE_PTHREAD],[
27
AC_REQUIRE([_PANDORA_SEARCH_PTHREAD])
30
AC_DEFUN([PANDORA_REQUIRE_PTHREAD],[
31
AC_REQUIRE([PANDORA_HAVE_PTHREAD])
32
AS_IF([test "x$acx_pthread_ok" != "xyes"],[
33
AC_MSG_ERROR(could not find libpthread)])