summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-04 00:30:28 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-04 00:30:28 -0400
commit6b30f26bbc9638976ef03dccef5306f349348b6c (patch)
tree61a48c4c8d4ab6df1ba574150e7cbeae730bb033
parentefa3c22dc8ad978a2339710643489e7055f0d0ca (diff)
downloadgpsd-6b30f26bbc9638976ef03dccef5306f349348b6c.tar.gz
Being on a Mac changes one of the natural defaults.
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 4f7ebe28..2b01035f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -41,6 +41,9 @@ import SCons
# Start by reading configuration variables from the cache
opts = Variables('.scons-option-cache')
+# Being on a Mac changes one of the natural defaults.
+os_x = (sys.platform == "darwin")
+
boolopts = (
# GPS protocols
("nmea", True, "NMEA support"),
@@ -83,7 +86,7 @@ boolopts = (
# Other daemon options
("timing", True, "latency timing support"),
("control_socket",True, "control socket for hotplug notifications"),
- ("systemd", False, "systemd socket activation"),
+ ("systemd", os_x, "systemd socket activation"),
# Client-side options
("clientdebug", True, "client debugging support"),
("oldstyle", True, "oldstyle (pre-JSON) protocol support"),