summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-03-28 20:28:08 -0700
committerGary E. Miller <gem@rellim.com>2019-03-28 20:28:08 -0700
commit30da38aecb8ada54d425cdf01590f4a8745ee34e (patch)
tree8761fd2f88b51be15ab12809f0e396ed10173004 /SConstruct
parent4c10bf5e862c5265c92f6562f42b15b8faba08e9 (diff)
downloadgpsd-30da38aecb8ada54d425cdf01590f4a8745ee34e.tar.gz
SConstruct: And yet more env -> config.env
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct16
1 files changed, 8 insertions, 8 deletions
diff --git a/SConstruct b/SConstruct
index 3cd4b7f2..55619f82 100644
--- a/SConstruct
+++ b/SConstruct
@@ -785,15 +785,15 @@ else:
announce("Turning off dbus-export support, library not found.")
config.env["dbus_export"] = False
- if env['bluez'] and config.CheckPKG('bluez'):
+ if config.env['bluez'] and config.CheckPKG('bluez'):
confdefs.append("#define ENABLE_BLUEZ 1\n")
bluezflags = pkg_config('bluez')
else:
confdefs.append("/* #undef ENABLE_BLUEZ */\n")
bluezflags = []
- if env["bluez"]:
+ if config.env["bluez"]:
announce("Turning off Bluetooth support, library not found.")
- env["bluez"] = False
+ config.env["bluez"] = False
# in_port_t is not defined on Android
if not config.CheckType("in_port_t", "#include <netinet/in.h>"):
@@ -816,7 +816,7 @@ else:
else:
confdefs.append("/* #undef HAVE_LINUX_CAN_H */\n")
announce("You do not have kernel CANbus available.")
- env["nmea2000"] = False
+ config.env["nmea2000"] = False
# check for C11 or better, and __STDC__NO_ATOMICS__ is not defined
# before looking for stdatomic.h
@@ -862,7 +862,7 @@ else:
confdefs.append("/* #undef HAVE_MACHINE_ENDIAN_H */\n")
announce("You do not have the endian.h header file. "
"RTCM V2 support disabled.")
- env["rtcm104v2"] = False
+ config.env["rtcm104v2"] = False
for hdr in ("arpa/inet",
"netdb",
@@ -892,13 +892,13 @@ else:
if config.CheckHeader(["sys/types.h", "sys/time.h", "sys/timepps.h"]):
# this gets lost on scons 3.0.5
- env.MergeFlags("-DHAVE_SYS_TIMEPPS_H=1")
+ config.env.MergeFlags("-DHAVE_SYS_TIMEPPS_H=1")
kpps = True
else:
kpps = False
- if env["magic_hat"]:
+ if config.env["magic_hat"]:
announce("Forcing magic_hat=no since RFC2783 API is unavailable")
- env["magic_hat"] = False
+ config.env["magic_hat"] = False
tiocmiwait = config.CheckHeaderDefines("sys/ioctl.h", "TIOCMIWAIT")
if env["pps"] and not tiocmiwait and not kpps:
announce("Forcing pps=no (neither TIOCMIWAIT nor RFC2783 "