Changeset 25665


Ignore:
Timestamp:
10/08/20 20:38:48 (4 years ago)
Author:
jdquinn
Message:

BUG: Bad define

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r25663 r25665  
    207207        dnl If macOS, check if system copy of libc has fmemopen (if it is not
    208208        dnl macOS, we do not check, but still must set SYSTEM_HAS_FMEMOPEN)
    209         SYSTEM_FMEMOPEN="no"
     209        SYSTEM_FMEMOPEN=1
    210210        if test "${IS_MAC}" == "yes"; then
    211                 if [[ $(system_profiler SPSoftwareDataType | $(which grep) "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -ge 13 ]]; then
    212                         SYSTEM_FMEMOPEN="yes"
    213                         AC_DEFINE([_SYSTEM_FMEMOPEN_], [1], [does system libc have fmemopen])
    214                 fi
    215         fi
    216         AM_CONDITIONAL([SYSTEM_HAS_FMEMOPEN], [test "${SYSTEM_FMEMOPEN}" == "yes"])
     211                if [[ $(system_profiler SPSoftwareDataType | $(which grep) "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -lt 13 ]]; then
     212                        SYSTEM_FMEMOPEN=0
     213                fi
     214        fi
     215        AC_DEFINE(_SYSTEM_FMEMOPEN_, ${SYSTEM_FMEMOPEN}, [does system libc have fmemopen])
     216        AM_CONDITIONAL([SYSTEM_HAS_FMEMOPEN], [test ${SYSTEM_FMEMOPEN} == 1])
    217217
    218218        IS_WINDOWS=no
Note: See TracChangeset for help on using the changeset viewer.