Blob
- Date:
- Message:
- portable: improve macos compat with bison/openssl Some MacOS systems might not have GNU Bison installed, or have openssl installed. In such instances the host versions of those can be used, with a few tweaks around the edges to make them work. This commit addresses these by: * Relaxing a HAVE_CRYPTO check for __APPLE__, since the inclusion of the machine-specific headers isn't dependent on openssl being installed; * If the non-GNU version of bison on MacOS is being used, define any missing YY* variables, and add a compiler #warning so we log something. This also updates the CI scripts to default to the system versions of bison and removes openssl as a core dependency -- it's more likely openssl is going to be installed, so removing it here will mean we can catch the case for just the MacOS-specific failures, and the inclusion of openssl on other OSes should cover the rest. Noticed by Evan Silberman
- Actions:
- History | Blame | Raw File
1 #!/bin/sh3 if [ "$CIRRUS_OS" = "linux" ]; then4 apt-get update -qq && \5 apt-get -y install bison \6 autotools-dev \7 libncurses5-dev \8 pkg-config \9 build-essential \10 libmd-dev \11 libssl-dev \12 uuid-dev \13 zlib1g-dev14 fi16 if [ "$CIRRUS_OS" = "freebsd" ]; then17 pkg install -y \18 automake \19 pkgconf20 fi22 if [ "$CIRRUS_OS" = "darwin" ]; then23 brew install autoconf \24 automake \25 pkg-config \26 ncurses \27 ossp-uuid28 fi