#!/bin/sh set -e usage() { cat < 'config/1-generated.mk' << MAKE PREFIX = $prefix EPREFIX = $eprefix BINDIR = $bindir DATAROOTDIR = $datarootdir MANDIR = $mandir ENABLE_XINERAMA = $enable_xinerama WITH_TERMINAL = $with_terminal MAKE make_help_result="$(make --help 2>&1 || true)" if [ "$(echo "$make_help_result" | grep 'gnu.org')" = '' ]; then ln -sf '2-conditionals-bsd.mk' 'config/2-conditionals.mk' else ln -sf '2-conditionals-gnu.mk' 'config/2-conditionals.mk' fi