autoconf: Call AC_CANONICAL_HOST before querying the host variable
Also, get the querying right to prevent false positives, from libvirt.
This commit is contained in:
parent
ff61aa8695
commit
0b0cae7206
1 changed files with 3 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ PACKAGE_URL="http://www.chocolate-doom.org/"
|
|||
PACKAGE_ISSUES="https://github.com/chocolate-doom/chocolate-doom/issues"
|
||||
|
||||
AC_CONFIG_AUX_DIR(autotools)
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
orig_CFLAGS="$CFLAGS"
|
||||
|
||||
|
|
@ -124,8 +125,8 @@ AC_ARG_WITH([bashcompletiondir],
|
|||
[bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)],
|
||||
[bashcompletiondir=${datadir}/bash-completion/completions])])
|
||||
|
||||
case $host in
|
||||
*cygwin* | *mingw* )
|
||||
case "$host" in
|
||||
*-*-mingw* | *-*-cygwin* | *-*-msvc* )
|
||||
AC_CHECK_TOOL(WINDRES, windres, )
|
||||
;;
|
||||
*)
|
||||
|
|
|
|||
Loading…
Reference in a new issue