[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/21] Fix incorrect determination of host/build OS
From: |
John Darrington |
Subject: |
[PATCH 11/21] Fix incorrect determination of host/build OS |
Date: |
Sun, 12 Jan 2014 12:00:24 +0100 |
* configure.ac: use $host_os or $build_os as appropriate, instead of `uname`
(the latter incorrectly gives the build OS regardless of what is needed).
---
configure.ac | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5889603..1a98f07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -145,8 +145,8 @@ AC_ARG_ENABLE([contrib], AC_HELP_STRING([--disable-contrib],
CONTRIBINCLUDE="include"
INSTALL_CONTRIB="install-contrib-extras"
-case `uname` in
- MINGW*)
+case $host_os in
+ mingw*)
AC_MSG_WARN([disabling contrib devices])
enable_contrib=no
;;
@@ -389,8 +389,8 @@ AC_CHECK_LIB(m, cos)
SYNC="nosync"
PTHREAD_LIBS=""
-case `uname` in
- MINGW*)
+case $host_os in
+ mingw*)
AC_MSG_WARN([disabling support for pthreads......])
;;
*)
@@ -996,8 +996,8 @@ dnl look for IJS implementation
AC_ARG_WITH([ijs], AC_HELP_STRING([--without-ijs],
[disable IJS driver support]))
-case `uname` in
- MINGW*)
+case $host_os in
+ mingw*)
AC_MSG_WARN([disabling the ijs device])
with_ijs=no
;;
@@ -1647,7 +1647,7 @@ DYNAMIC_LIBS=""
INSTALL_SHARED=""
DYNANIC_LIB_EXT="so"
-case `uname` in
+case $host_os in
Linux*|GNU*)
DYNAMIC_CFLAGS="-fPIC"
DYNAMIC_LDFLAGS="-fPIC -shared"
@@ -1931,8 +1931,8 @@ AC_SUBST(HAVE_BYTESWAP_H)
# mingw, add the same prefix as the VS build uses
# --------------------------------------------------
AUXDIRPOSTFIX=""
-case `uname` in
- MINGW*)
+case $build_os in
+ mingw*)
AUXDIRPOSTFIX="_"
;;
esac
--
1.7.10.4
- [no subject], (continued)
- [no subject], John Darrington, 2014/01/12
- [PATCH 02/21] Makefile.in (top_srcdir): New variable, John Darrington, 2014/01/12
- [PATCH 06/21] configure: Fix endianess test while cross-compiling, John Darrington, 2014/01/12
- [PATCH 07/21] Fix test for fontconfig when cross building, John Darrington, 2014/01/12
- [PATCH 09/21] Simplify the conditional inclusion of the contrib directory., John Darrington, 2014/01/12
- [PATCH 08/21] configure.ac, Makefile.in: Use CC_FOR_BUILD for native compilation., John Darrington, 2014/01/12
- [PATCH 04/21] Fix crash on startup if the configuration file is missing., John Darrington, 2014/01/12
- [PATCH 13/21] Improve reliability of freetype library (esp. wrt cross-building), John Darrington, 2014/01/12
- [PATCH 05/21] base/lib.mak: Fix broken build dependency, John Darrington, 2014/01/12
- [PATCH 10/21] Fix test for dbus when cross building, John Darrington, 2014/01/12
- [PATCH 11/21] Fix incorrect determination of host/build OS,
John Darrington <=
- [PATCH 17/21] Avoid redundancy in package version number/string, John Darrington, 2014/01/12
- [PATCH 16/21] Remove the code running ./configure from autogen.sh - I am of the opinion, that the bootstrap process and the configuration should be kept seperate. It should be possible to bootstrap without configuring., John Darrington, 2014/01/12
- [PATCH 20/21] Remove 'exe' suffix from GS variable., John Darrington, 2014/01/12
- [PATCH 21/21] Do install contrib drivers if the --disable-contrib option was chosen., John Darrington, 2014/01/12
- [PATCH 14/21] Remove broken test for OpenJpeg library., John Darrington, 2014/01/12
- [PATCH 12/21] Minor re-ordering of configure.ac, John Darrington, 2014/01/12
- [PATCH 03/21] doc/gs-vms.htp: Gnu policy is not to acknowledge trademarks., John Darrington, 2014/01/12
- [PATCH 15/21] Correct bad directories for ROMFS_OBJS, John Darrington, 2014/01/12
- [PATCH 18/21] Remove hard coded variables for tools (eg: SHELL)., John Darrington, 2014/01/12
- [PATCH 19/21] Remove duplicate assignment to EXTRALIBS, John Darrington, 2014/01/12