examples/parse_args.h: only use jack where need be
authorPaul Brossier <piem@piem.org>
Sat, 7 Dec 2013 14:03:59 +0000 (09:03 -0500)
committerPaul Brossier <piem@piem.org>
Sat, 7 Dec 2013 14:03:59 +0000 (09:03 -0500)
examples/parse_args.h

index 0708c5e..66c47b1 100644 (file)
@@ -215,13 +215,18 @@ parse_args (int argc, char **argv)
 
   // if no source, show a message
   if (source_uri == NULL) {
 
   // 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;
 #else
     errmsg("Error: no arguments given (and no available audio input)\n");
     usage ( stderr, 1 );
 #if HAVE_JACK
     verbmsg("No input source given, using jack\n");
     usejack = 1;
 #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;
   }
 
   return 0;