source: issm/oecreview/Archive/24684-25833/ISSM-24875-24876.diff

Last change on this file was 25834, checked in by Mathieu Morlighem, 4 years ago

CHG: added 24684-25833

File size: 1.3 KB
RevLine 
[25834]1Index: ../trunk-jpl/m4/issm_options.m4
2===================================================================
3--- ../trunk-jpl/m4/issm_options.m4 (revision 24875)
4+++ ../trunk-jpl/m4/issm_options.m4 (revision 24876)
5@@ -189,8 +189,19 @@
6 [VENDOR=${withval}], dnl action if given
7 [VENDOR=""] dnl action if not given
8 )
9- dnl defaults for host OS related variables
10- IS_MAC=no
11+
12+ AC_MSG_CHECKING([if this is a Mac build])
13+ case "${host_os}" in
14+ *darwin*)
15+ IS_MAC=yes
16+ ;;
17+ *)
18+ IS_MAC=no
19+ ;;
20+ esac
21+ AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"])
22+ AC_MSG_RESULT([${IS_MAC}])
23+
24 IS_WINDOWS=no
25 AC_MSG_CHECKING([for vendor compilers])
26 if test -n "${VENDOR}"; then
27@@ -285,16 +296,6 @@
28 AC_SUBST([OSLIBS])
29 AC_MSG_RESULT([done])
30
31- AC_MSG_CHECKING([if this is a Mac build])
32- dnl TODO: The following test is a POSIX-compliant way of testing for a
33- dnl substring, but is not very readable. Perhaps there is a more
34- dnl readable method of achieving the same?
35- if test "${host_os#*\"darwin\"}" == "$host_os"; then
36- IS_MAC=yes
37- fi
38- AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"])
39- AC_MSG_RESULT([${IS_MAC}])
40-
41 AC_MSG_CHECKING([if this is a Windows build])
42 AM_CONDITIONAL([WINDOWS], [test "x${IS_WINDOWS}" == "xyes"])
43 AC_MSG_RESULT([${IS_WINDOWS}])
Note: See TracBrowser for help on using the repository browser.