diff --git a/configure.ac b/configure.ac index c639c33..e1bada3 100644 --- a/configure.ac +++ b/configure.ac @@ -28,10 +28,14 @@ AS_CASE([${host_os}], [mingw32], [OS=WINDOWS32], [macos], [OS=DARWIN], [linux-android], [OS=ANDROID], - [OS="$(echo ${host_os}|tr "a-z" "A-Z_")"]) + [OS="$(echo ${host_os}|tr "a-z" "A-Z")"]) uname_os="$(uname | tr "a-z" "A-Z")" +# Avoid, e.g., OS=DARWIN15.6.0 +AS_CASE([${uname_os}], + [DARWIN], [OS=DARWIN]) + AC_MSG_NOTICE([host_os: ${host_os}]) AC_MSG_NOTICE([uname_os: ${uname_os}]) AC_MSG_NOTICE([adjusted OS: ${OS}])