summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-08 18:17:28 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-08 18:33:15 (EDT)
commitc955d291ab89b0b577179f914a297418c5ecdb62 (patch)
tree280090c43d195670401df6e0b24ebf7f30c2c02e /configure
parent8fe4bffb3301189d5425ee57cd49264a30b55ca3 (diff)
Sanitize option names in configure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index c5743d1..67bc927 100755
--- a/configure
+++ b/configure
@@ -202,6 +202,7 @@ EOF
exit 1
fi
if ${_optarg_set}; then
+ _opt="$(printf '%s' "${_opt}" | tr -c '[a-z0-9]' '_')"
eval ${_opt}=\$\{_optarg\}
else
_prev="${_opt}"