Mercurial > audlegacy
annotate m4/jack.m4 @ 431:4d1aa30a8776 trunk
[svn] create_pbutton() should hook on release, not on push. My bad. :P
author | nenolod |
---|---|
date | Sat, 14 Jan 2006 16:58:03 -0800 |
parents | ea321d1dae48 |
children |
rev | line source |
---|---|
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
1 # Configure paths for JACK |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
2 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
3 dnl AM_PATH_JACK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
4 dnl Test for JACK, and define JACK_CFLAGS and JACK_LIBS |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
5 dnl |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
6 AC_DEFUN([AM_PATH_JACK], |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
7 [dnl |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
8 dnl **** Check for Jack sound server **** |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
9 dnl |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
10 JACK_LIBS= |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
11 JACK_CFLAGS= |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
12 JACK_EVERYTHINGOK=yes |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
13 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
14 AC_CHECK_HEADERS(jack/jack.h) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
15 if test "${ac_cv_header_jack_jack_h}" = "no" |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
16 then |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
17 AC_MSG_WARN([Could not find jack/jack.h Install jack headers to build bio2jack]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
18 JACK_EVERYTHINGOK=no |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
19 else |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
20 JACK_CFLAGS="-lpthread -ljack -ldl" |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
21 fi |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
22 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
23 AC_CHECK_LIB(jack, jack_activate, JACK_LIBS="-ljack -ldl") |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
24 if test "${ac_cv_lib_jack_jack_activate}" = "no" |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
25 then |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
26 AC_MSG_WARN([Could not find jack_activate in libjack. Ensure that you have libjack installed and that it a current version.]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
27 JACK_EVERYTHINGOK=no |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
28 fi |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
29 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
30 AC_SUBST(JACK_CFLAGS) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
31 AC_SUBST(JACK_LIBS) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
32 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
33 dnl **** Check for libsamplerate necessary for bio2jack **** |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
34 PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.15, |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
35 ac_cv_samplerate=1, ac_cv_samplerate=0) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
36 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
37 AC_DEFINE_UNQUOTED([HAVE_SAMPLERATE],${ac_cv_samplerate}, |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
38 [Set to 1 if you have libsamplerate.]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
39 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
40 dnl Make sure libsamplerate is found, we can't compile without it |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
41 if test "${ac_cv_samplerate}" = 0 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
42 then |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
43 AC_MSG_WARN([Could not find libsamplerate, necessary for jack output plugin.]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
44 JACK_EVERYTHINGOK=no |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
45 fi |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
46 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
47 AC_SUBST(SAMPLERATE_CFLAGS) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
48 AC_SUBST(SAMPLERATE_LIBS) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
49 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
50 if test "x$JACK_EVERYTHINGOK" = xno; then |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
51 ifelse([$2], , :, [$2]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
52 else |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
53 ifelse([$1], , :, [$1]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
54 fi |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
55 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
diff
changeset
|
56 ]) |