]> git.wh0rd.org - patches.git/blob - nbd-configure-cross-compile.patch
sync vapier-m
[patches.git] / nbd-configure-cross-compile.patch
1 Index: configure.ac
2 ===================================================================
3 --- configure.ac (revision 227)
4 +++ configure.ac (working copy)
5 @@ -49,6 +49,7 @@ fi
6 AC_PROG_CC
7 AC_PROG_CPP
8 AC_PROG_INSTALL
9 +AC_CANONICAL_HOST
10 AC_C_BIGENDIAN
11 AC_C_INLINE
12 AC_C_CONST
13 @@ -60,9 +61,9 @@ AC_CHECK_FUNCS([llseek alarm gethostbyna
14 AC_FUNC_FORK
15 AC_FUNC_SETVBUF_REVERSED
16 AC_MSG_CHECKING(whether client should be built)
17 -case "`uname`" in
18 - *Linux*) sbin_PROGRAMS=nbd-client
19 - AC_MSG_RESULT(yes)
20 +case $host_os in
21 + linux*) sbin_PROGRAMS=nbd-client
22 + AC_MSG_RESULT(yes)
23 ;;
24 *) AC_MSG_RESULT(no) ;;
25 esac