From: Bruno Haible Date: Mon, 17 Sep 2018 20:25:45 +0000 (+0200) Subject: autogen.sh: Fix use of undefined function. X-Git-Tag: v0.20~381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec885f2fe949e71444b483ace7bcc2f993589aa3;p=thirdparty%2Fgettext.git autogen.sh: Fix use of undefined function. * autogen.sh: Rewrite error message code. --- diff --git a/autogen.sh b/autogen.sh index 2b2f03cc4..bffda50b9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -54,8 +54,10 @@ while :; do esac done -$use_git || test -d "$GNULIB_SRCDIR" \ - || die "Error: --no-git requires --gnulib-srcdir" +if ! $use_git && ! test -d "$GNULIB_SRCDIR"; then + echo "error: --no-git requires GNULIB_SRCDIR to be set" 1>&2 + exit 1 +fi cleanup_gnulib() { status=$?