From 07b258a472570108e50c45c4aaf02e006494eec3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 29 Apr 2005 02:54:37 +0000 Subject: [PATCH] stop running exit since its bad form ... use AC_MSG_ERROR instead SVN revision: 14464 --- legacy/ecore/configure.in | 3 +-- legacy/emotion/configure.in | 24 ++++++++---------------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/legacy/ecore/configure.in b/legacy/ecore/configure.in index edf88e20c6..43dbed96e2 100644 --- a/legacy/ecore/configure.in +++ b/legacy/ecore/configure.in @@ -466,8 +466,7 @@ if test "x$have_ecore_evas" = "xyes"; then if [ test -z $EVAS_CONFIG ]; then echo $PROG " is not in your \$PATH. Please ensure it is."; echo "Read the manual page for you shell as to how to extend your path."; - echo "FATAL ERROR. ABORT."; - exit -1; + AC_MSG_ERROR(Cannot find $PROG) fi evas_cflags=`$EVAS_CONFIG --cflags` evas_libs=`$EVAS_CONFIG --libs` diff --git a/legacy/emotion/configure.in b/legacy/emotion/configure.in index 4fc6478181..43d7fcd1eb 100644 --- a/legacy/emotion/configure.in +++ b/legacy/emotion/configure.in @@ -185,54 +185,46 @@ xine_libs=`$XINE_CONFIG --libs` V=`$ECORE_CONFIG --version` if test -z "$V"; then - echo "Error. Ecore is not installed or $ECORE_CONFIG cannot be found. Abort." - exit -1 + AC_MSG_ERROR(Ecore is not installed or $ECORE_CONFIG cannot be found.) fi VV=`vser $V` VM="0.9.9" VVM=`vser $VM` if test $VV -lt $VVM; then - echo "Error. Ecore is not at least "$VM". It is "$V". Abort." - exit -1 + AC_MSG_ERROR(Ecore is not at least "$VM". It is "$V".) fi V=`$EVAS_CONFIG --version` if test -z "$V"; then - echo "Error. Evas is not installed or $EVAS_CONFIG cannot be found. Abort." - exit -1 + AC_MSG_ERROR(Evas is not installed or $EVAS_CONFIG cannot be found.) fi VV=`vser $V` VM="0.9.9" VVM=`vser $VM` if test $VV -lt $VVM; then - echo "Error. Evas is not at least "$VM". It is "$V". Abort." - exit -1 + AC_MSG_ERROR(Evas is not at least "$VM". It is "$V".) fi V=`$EDJE_CONFIG --version` if test -z "$V"; then - echo "Error. Edje is not installed or $EDJE_CONFIG cannot be found. Abort." - exit -1 + AC_MSG_ERROR(Edje is not installed or $EDJE_CONFIG cannot be found.) fi VV=`vser $V` VM="0.5.0" VVM=`vser $VM` if test $VV -lt $VVM; then - echo "Error. Edje is not at least "$VM". It is "$V". Abort." - exit -1 + AC_MSG_ERROR(Edje is not at least "$VM". It is "$V".) fi V=`$XINE_CONFIG --version` if test -z "$V"; then - echo "Error. Xine is not installed or $XINE_CONFIG cannot be found. Abort." - exit -1 + AC_MSG_ERROR(Xine is not installed or $XINE_CONFIG cannot be found.) fi VV=`vser $V` VM="1.0.0" VVM=`vser $VM` if test $VV -lt $VVM; then - echo "Error. Xine is not at least "$VM". It is "$V". Abort." - exit -1 + AC_MSG_ERROR(Xine is not at least "$VM". It is "$V".) fi my_cflags=`$EVAS_CONFIG --cflags`" "`$ECORE_CONFIG --cflags`