shithub: aubio

Download patch

ref: 8a22fc4c7d74012520cb510aecccfc71cafecac1
parent: 7f2c515ad6e1b930498b03b555ed0543f622bd42
author: Paul Brossier <[email protected]>
date: Sat Dec 7 04:03:59 EST 2013

examples/parse_args.h: only use jack where need be

--- a/examples/parse_args.h
+++ b/examples/parse_args.h
@@ -215,6 +215,7 @@
 
   // if no source, show a message
   if (source_uri == NULL) {
+#ifdef PROG_HAS_JACK
 #if HAVE_JACK
     verbmsg("No input source given, using jack\n");
     usejack = 1;
@@ -221,7 +222,11 @@
 #else
     errmsg("Error: no arguments given (and no available audio input)\n");
     usage ( stderr, 1 );
-#endif
+#endif /* HAVE_JACK */
+#else
+    errmsg("Error: no arguments given\n");
+    usage ( stderr, 1 );
+#endif /* PROG_HAS_JACK */
   }
 
   return 0;