source:
issm/oecreview/Archive/24684-25833/ISSM-24875-24876.diff
Last change on this file was 25834, checked in by , 4 years ago | |
---|---|
File size: 1.3 KB |
-
../trunk-jpl/m4/issm_options.m4
189 189 [VENDOR=${withval}], dnl action if given 190 190 [VENDOR=""] dnl action if not given 191 191 ) 192 dnl defaults for host OS related variables 193 IS_MAC=no 192 193 AC_MSG_CHECKING([if this is a Mac build]) 194 case "${host_os}" in 195 *darwin*) 196 IS_MAC=yes 197 ;; 198 *) 199 IS_MAC=no 200 ;; 201 esac 202 AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"]) 203 AC_MSG_RESULT([${IS_MAC}]) 204 194 205 IS_WINDOWS=no 195 206 AC_MSG_CHECKING([for vendor compilers]) 196 207 if test -n "${VENDOR}"; then … … 285 296 AC_SUBST([OSLIBS]) 286 297 AC_MSG_RESULT([done]) 287 298 288 AC_MSG_CHECKING([if this is a Mac build])289 dnl TODO: The following test is a POSIX-compliant way of testing for a290 dnl substring, but is not very readable. Perhaps there is a more291 dnl readable method of achieving the same?292 if test "${host_os#*\"darwin\"}" == "$host_os"; then293 IS_MAC=yes294 fi295 AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"])296 AC_MSG_RESULT([${IS_MAC}])297 298 299 AC_MSG_CHECKING([if this is a Windows build]) 299 300 AM_CONDITIONAL([WINDOWS], [test "x${IS_WINDOWS}" == "xyes"]) 300 301 AC_MSG_RESULT([${IS_WINDOWS}])
Note:
See TracBrowser
for help on using the repository browser.