aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeber <beber>2005-12-09 19:23:23 +0000
committerbeber <beber>2005-12-09 19:23:23 +0000
commitae196b1b8fabbc836369956f1fec8edb7b0c469a (patch)
tree94fe7663ad99efb3aa9d4ce202ee4d52a0f98d55
parentuse printf some times ;) (diff)
downloadespik-ae196b1b8fabbc836369956f1fec8edb7b0c469a.tar.xz
Better check
-rw-r--r--configure.in26
-rw-r--r--m4/ac_espik_debug.m410
2 files changed, 21 insertions, 15 deletions
diff --git a/configure.in b/configure.in
index 32baa0d..2af6fcf 100644
--- a/configure.in
+++ b/configure.in
@@ -23,19 +23,25 @@ AC_C___ATTRIBUTE__
AC_ESPIK_DEBUG
AC_ARG_WITH(ecore-config,
-[ --with-ecore-config=ECORE_CONFIG use ecore-config specified ],
-[
- ECORE_CONFIG=$withval;
- echo "using "$ECORE_CONFIG" for ecore-config";
-],[
- PROG="ecore-config";
- AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
-])
+ [ --with-ecore-config=ECORE_CONFIG use ecore-config specified ],
+ [ ECORE_CONFIG=$withval;
+ if ! test -x "$ECORE_CONFIG"; then
+ AC_MSG_ERROR([$ECORE_CONFIG not found])
+ fi
+ echo "using "$ECORE_CONFIG" for ecore-config"; ],
+ [ PROG="ecore-config";
+ AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
+ if test -z "$ECORE_CONFIG"; then
+ AC_MSG_ERROR([You need ecore !])
+ fi
+ ])
+
ecore_cflags=`$ECORE_CONFIG --cflags`
ecore_libs=`$ECORE_CONFIG --libs`
AC_SUBST(ecore_cflags)
AC_SUBST(ecore_libs)
AC_OUTPUT([
-Makefile
-src/Makefile])
+ Makefile
+ src/Makefile
+])
diff --git a/m4/ac_espik_debug.m4 b/m4/ac_espik_debug.m4
index 1ebe69a..0b904b2 100644
--- a/m4/ac_espik_debug.m4
+++ b/m4/ac_espik_debug.m4
@@ -5,11 +5,11 @@ AC_DEFUN([AC_ESPIK_DEBUG]),
[debug],
AC_HELP_STRING(
[--enable-debug], [Enable debug mode (default=yes)]),
- [if test "$enable_debug" = "yes" ; then
- DEBUG_CFLAGS="-g -D_ESPIK_DEBUG_"
- else
- DEBUG_LDFLAGS="-s"
- fi], [debug="yes"])
+ [if test "$enable_debug" = "yes" ; then
+ DEBUG_CFLAGS="-g -D_ESPIK_DEBUG_"
+ else
+ DEBUG_LDFLAGS="-s"
+ fi], [debug="yes"])
AC_SUBST(DEBUG_CFLAGS)
AC_SUBST(DEBUG_LDFLAGS)