~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_pthread.m4

Extracted the LOAD command into its own class and implementation files.
Removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
dnl   
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.
9
 
dnl
10
 
dnl From Monty Taylor
11
 
 
12
 
 
13
 
dnl --------------------------------------------------------------------
14
 
dnl  Check for libpthread
15
 
dnl --------------------------------------------------------------------
16
 
 
17
 
AC_DEFUN([_PANDORA_SEARCH_PTHREAD],[
18
 
  ACX_PTHREAD
19
 
  LIBS="${PTHREAD_LIBS} ${LIBS}"
20
 
  AM_CFLAGS="${PTHREAD_CFLAGS} ${AM_CFLAGS}"
21
 
  AM_CXXFLAGS="${PTHREAD_CFLAGS} ${AM_CXXFLAGS}"
22
 
  CC="$PTHREAD_CC"
23
 
])
24
 
 
25
 
 
26
 
AC_DEFUN([PANDORA_HAVE_PTHREAD],[
27
 
  AC_REQUIRE([_PANDORA_SEARCH_PTHREAD])
28
 
])
29
 
 
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)])
34
 
])