From 07d7e5ce66220891a367986ab5bc213ded0117bf Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Tue, 30 Jun 2009 16:18:41 +0000 Subject: [PATCH] * remove the mention of the static link check in configure ouput * add a (ecologic) warning at the end of configure if a module is statically linked to eina SVN revision: 41226 --- legacy/eina/configure.ac | 7 +++++++ legacy/eina/m4/eina_check.m4 | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/legacy/eina/configure.ac b/legacy/eina/configure.ac index 0b38062334..69a6ec0a4d 100644 --- a/legacy/eina/configure.ac +++ b/legacy/eina/configure.ac @@ -428,3 +428,10 @@ echo "Now type 'make' ('gmake' on some systems) to compile $PACKAGE," echo "and then afterwards as root (or the user who will install this), type" echo "'make install'. Change users with 'su' or 'sudo' appropriately." echo +if test "x${have_static_module}" = "xyes" ; then +echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Eina." +echo " You must know what you are doing, or else you will have a lot of problems." +echo " And dolphins will disappear from the earth." +echo " Think about that." +echo +fi diff --git a/legacy/eina/m4/eina_check.m4 b/legacy/eina/m4/eina_check.m4 index 282c65c759..e0361cc8fb 100644 --- a/legacy/eina/m4/eina_check.m4 +++ b/legacy/eina/m4/eina_check.m4 @@ -42,14 +42,12 @@ if test "x${want_module}" = "xyes" -a "x${enable_module}" = "xstatic" ; then static_module="yes" fi -AC_MSG_CHECKING([whether to statically link $3]) -AC_MSG_RESULT([${static_module}]) - AM_CONDITIONAL(EINA_BUILD_[]UP, [test "x${build_module}" = "xyes"]) AM_CONDITIONAL(EINA_STATIC_BUILD_[]UP, [test "x${static_module}" = "xyes"]) if test "x${static_module}" = "xyes" ; then AC_DEFINE(EINA_STATIC_BUILD_[]UP, 1, [Set to 1 if $2 is statically built]) + have_static_module="yes" fi enable_[]DOWN="no"