8000 Better native OS detection using AC_CANONICAL_HOST. More information … · unittest-cpp/unittest-cpp@80d6bf7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80d6bf7

Browse files
author
Saul Beniquez
committed
Better native OS detection using AC_CANONICAL_HOST. More information here: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Canonicalizing.html
1 parent 8544b5b commit 80d6bf7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configure.ac

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ AC_CONFIG_HEADERS([config.h])
99
AC_CONFIG_FILES([UnitTest++.pc])
1010

1111
AM_INIT_AUTOMAKE([foreign subdir-objects])
12+
13+
AC_CANONICAL_HOST
14+
15+
dnl Detect OS and set automake variables
16+
dnl Always the red-headed stepchild...
1217
AM_CONDITIONAL([WINDOWS],
13-
[test "${host#*mingw}" != "${host}" -o "${host#*msvc}" != "${host}"])
18+
[test "${host//mingw/}" != "${host}" -o "${host//msvc/}" != "${host}"])
19+
1420
LT_INIT()
1521

1622
AC_SUBST([LIBUNITTEST_SO_VERSION], [1:6:0])

0 commit comments

Comments
 (0)
0