Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : screenshot

Dir     : e_modules/screenshot


Modified Files:
        configure.in 


Log Message:
Better checks for import and scrot.

===================================================================
RCS file: /cvs/e/e_modules/screenshot/configure.in,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- configure.in        25 Jul 2006 13:33:49 -0000      1.21
+++ configure.in        2 Sep 2006 10:15:48 -0000       1.22
@@ -140,17 +140,25 @@
 AC_SUBST(e_modules)
 
 AC_PATH_PROG(IMPORT, import, "", $PATH)
-if test "x${PATH}" != "xNONE"; then
+if test -z "$IMPORT"; then
+    AC_MSG_WARN([Import not found])
+else
     AC_DEFINE_UNQUOTED(HAVE_IMPORT, 1, "You Have Import")
     AC_DEFINE_UNQUOTED(IMPORT_PATH, "$IMPORT", "You Have Import")
+fi
+
+AC_PATH_PROG(SCROT, scrot, "", $PATH)
+if test -z "$SCROT"; then
+    AC_MSG_WARN([Scrot not found])
 else
-    AC_PATH_PROG(SCROT, scrot, "", $PATH)
-    if test "x${PATH}" != "xNONE"; then
        AC_DEFINE_UNQUOTED(HAVE_SCROT, 1, "You Have Scrot")
        AC_DEFINE_UNQUOTED(SCROT_PATH, "$SCROT", "You Have Scrot")
-    else
-       AC_MSG_ERROR("You do not have import or scrot installed.")
-    fi
+fi
+
+if test -z "$IMPORT"; then
+       if test -z "$SCROT"; then
+                       AC_MSG_ERROR("You do not have import or scrot 
installed.")      
+       fi
 fi
 
 AC_PREFIX_DEFAULT(${HOME}/.e/e)



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to