From: Gary V. Vaughan Date: Tue, 2 Oct 2012 12:25:17 +0000 (+0700) Subject: libtool: save an if statement, with a compound statement. X-Git-Tag: v2.4.2.418~168^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9053a05940aa5f697a86b423916365bd0c2cc523;p=thirdparty%2Flibtool.git libtool: save an if statement, with a compound statement. * build-aux/ltmain.m4sh (func_mode_link): Simplify. Signed-off-by: Gary V. Vaughan --- diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 2a4823c8e..6ff35d1ff 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -5717,9 +5717,8 @@ func_mode_link () # This library was specified with -dlopen. if test dlopen = "$pass"; then - if test -z "$libdir"; then - func_fatal_error "cannot -dlopen a convenience library: \`$lib'" - fi + test -z "$libdir" \ + && func_fatal_error "cannot -dlopen a convenience library: \`$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"