On 04/13/2016 05:12 PM, Dan Wilcox wrote:
> I found that confusing too. Maybe we should make that a conditional in the 
> configure.ac.
> 

implemented in the attached patch.

gfmdsar
IOhannes

From 88b4a7f3f6eb07ffe7541350e290ad3d884ebaaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?=
 <[email protected]>
Date: Tue, 26 Apr 2016 23:40:45 +0200
Subject: [PATCH 1/3] only run portaudio's configure if it has not been
 disabled

---
 configure.ac | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index a263e0c..fbcc5a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,10 +5,6 @@ AC_CONFIG_AUX_DIR([m4/config])
 AM_INIT_AUTOMAKE
 AC_CONFIG_MACRO_DIR([m4/generated])
 
-if test -d "$srcdir/portaudio"; then
-  AC_CONFIG_SUBDIRS([portaudio])
-fi
-
 
 AC_CANONICAL_HOST
 
@@ -203,13 +199,22 @@ AC_ARG_ENABLE([portaudio],
     	[portaudio=$enableval])	
 AM_CONDITIONAL(PORTAUDIO, test x$portaudio = xyes)
 
+AS_IF([test x$portaudio = xyes], [
+ AS_IF([test -d "$srcdir/portaudio" ], [
+  AC_CONFIG_SUBDIRS([portaudio])
+ ])
+])
+
+
 dnl portmidi
 AC_ARG_ENABLE([portmidi],
 	[AS_HELP_STRING([--enable-portmidi],
 		[use portmidi])],
     [portmidi=$enableval])
 AM_CONDITIONAL(PORTMIDI, test x$portmidi = xyes)
-if test x$portmidi = xyes; then echo Using included portmidi; fi
+AS_IF([test x$portmidi = xyes], [
+ AC_MSG_NOTICE([using included portmidi])
+])
 
 dnl fftw v3
 AC_ARG_ENABLE([fftw],
-- 
2.8.1

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to