[Git][NTPsec/ntpsec][master] Fix audio refclocks by moving test block above refclock configuring.

Amar Takhar gitlab at mg.gitlab.com
Mon Dec 7 23:36:19 UTC 2015


Amar Takhar pushed to branch master at NTPsec / ntpsec


Commits:
119443f8 by Amar Takhar at 2015-12-07T18:36:03Z
Fix audio refclocks by moving test block above refclock configuring.

- - - - -


1 changed file:

- pylib/configure.py


Changes:

=====================================
pylib/configure.py
=====================================
--- a/pylib/configure.py
+++ b/pylib/configure.py
@@ -337,6 +337,13 @@ def cmd_configure(ctx):
 
 	if ctx.options.refclocks:
 		from refclock import refclock_config
+
+		# Enable audio when the right headers exist.
+		if ctx.get_define("HAVE_SYS_AUDIOIO_H") or \
+				ctx.get_define("HAVE_SYS_SOUNDCARD_H") or \
+				ctx.get_define("HAVE_MACHINE_SOUNDCARD_H"):
+			ctx.env.AUDIO_ENABLE = True
+
 		refclock_config(ctx)
 
 	# FIXME: These other things should be derived,
@@ -456,13 +463,6 @@ def cmd_configure(ctx):
 
 	ctx.define("DIR_SEP", "'%s'" % sep, quote=False)
 
-	# Enable audio when the right headers exist.
-	if ctx.get_define("HAVE_SYS_AUDIOIO_H") or \
-			ctx.get_define("HAVE_SYS_SOUNDCARD_H") or \
-			ctx.get_define("HAVE_MACHINE_SOUNDCARD_H"):
-		ctx.env.AUDIO_ENABLE = True
-
-
 	# libisc/
 	# XXX: Hack that needs to be fixed properly for all platforms
 	ctx.define("ISC_PLATFORM_NORETURN_PRE", "", quote=False)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/119443f863f24824abaa51aa099abb1b2051b5fe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151207/3fe39a19/attachment.html>


More information about the vc mailing list