From bf22689ef7f29c75aa6d9f40131072bb665be455 Mon Sep 17 00:00:00 2001 From: gio Date: Thu, 11 Jun 2015 05:26:40 +0000 Subject: [PATCH] Fail only if python2 components requested Fixes #158 --- configure | 8 ++++---- configure.ac | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 01452fe17..1ae0ec95c 100755 --- a/configure +++ b/configure @@ -5751,13 +5751,13 @@ else if test "$with_ndiff" = "check" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building Ndiff because Python 2.x with x>=4 was not found" >&5 $as_echo "$as_me: WARNING: Not building Ndiff because Python 2.x with x>=4 was not found" >&2;} - else + elif test "$with_ndiff" = "yes"; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "--with-ndiff requires Python 2.x with x>=4 See \`config.log' for more details" "$LINENO" 5; } fi - with_ndiff=no + with_ndiff=no fi if test "$with_ndiff" = "no"; then BUILDNDIFF="" @@ -5799,13 +5799,13 @@ else if test "$with_zenmap" = "check"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building Zenmap because Python 2.x with x>=4 was not found" >&5 $as_echo "$as_me: WARNING: Not building Zenmap because Python 2.x with x>=4 was not found" >&2;} - else + elif test "$with_zenmap" = "yes"; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "--with-zenmap requires Python 2.x with x>=4 See \`config.log' for more details" "$LINENO" 5; } fi - with_zenmap=no + with_zenmap=no fi if test "$with_zenmap" = "no"; then BUILDZENMAP="" diff --git a/configure.ac b/configure.ac index fa0c63ce1..aadc2603f 100644 --- a/configure.ac +++ b/configure.ac @@ -231,10 +231,10 @@ if $HAVE_PYTHON2 ; then : ; else if test "$with_ndiff" = "check" ; then AC_MSG_WARN([Not building Ndiff because Python 2.x with x>=4 was not found]) - else + elif test "$with_ndiff" = "yes"; then AC_MSG_FAILURE([--with-ndiff requires Python 2.x with x>=4]) fi - with_ndiff=no + with_ndiff=no fi if test "$with_ndiff" = "no"; then BUILDNDIFF="" @@ -268,10 +268,10 @@ if $HAVE_PYTHON2 ; then : ; else if test "$with_zenmap" = "check"; then AC_MSG_WARN([Not building Zenmap because Python 2.x with x>=4 was not found]) - else + elif test "$with_zenmap" = "yes"; then AC_MSG_FAILURE([--with-zenmap requires Python 2.x with x>=4]) fi - with_zenmap=no + with_zenmap=no fi if test "$with_zenmap" = "no"; then BUILDZENMAP=""