diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-05-13 01:46:41 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-05-13 01:46:41 +0200 |
commit | 5fea9ab85029df7b3a4b16a24b4d58c353e811b2 (patch) | |
tree | 4538865b00c14cc1eca4b678a01c699973fbb2aa /gsm-receiver/config/gr_omnithread.m4 | |
parent | 085852622cb2641fbc1fa88c85494c7951914ebd (diff) |
gsm-receiver: Migrate to more recent gnuradio autotools integration
These changes forward-port gsm-receiver to the gnuradio autotools magic
as per "gr-howto-write-a-block-3.2.2"
It also updates to libosmocore >= 0.3.0 and fixes other minor compilation
issues.
Diffstat (limited to 'gsm-receiver/config/gr_omnithread.m4')
-rw-r--r-- | gsm-receiver/config/gr_omnithread.m4 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gsm-receiver/config/gr_omnithread.m4 b/gsm-receiver/config/gr_omnithread.m4 index b5e4090..054f078 100644 --- a/gsm-receiver/config/gr_omnithread.m4 +++ b/gsm-receiver/config/gr_omnithread.m4 @@ -1,6 +1,6 @@ # Check for Omnithread (pthread/NT) thread support. -*- Autoconf -*- -# Copyright 2003 Free Software Foundation, Inc. +# Copyright 2003,2007 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -21,8 +21,9 @@ AC_DEFUN([GR_OMNITHREAD], [ # Check first for POSIX ACX_PTHREAD( - [ ot_posix="yes" - AC_DEFINE(OMNITHREAD_POSIX,[1],[Define to 1 to enable pthread]) + [ AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]) + ot_posix="yes" + DEFINES="$DEFINES -DOMNITHREAD_POSIX=1" ],[ # If no POSIX support found, then check for NT threads AC_MSG_CHECKING([for NT threads]) @@ -34,7 +35,7 @@ AC_DEFUN([GR_OMNITHREAD], ], [ ot_nt="yes" - AC_DEFINE(OMNITHREAD_NT,[1],[Define to 1 to enable NT thread]) + DEFINES="$DEFINES -DOMNITHREAD_NT=1" ], [AC_MSG_FAILURE([GNU Radio requires POSIX threads. pthreads not found.])] ) |