cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2c4ae3fe6f9bb40a6c941d6fef70ee0eea225c73

commit 2c4ae3fe6f9bb40a6c941d6fef70ee0eea225c73
Author: Cedric BAIL <cedric.b...@free.fr>
Date:   Wed Apr 2 10:31:34 2014 +0900

    autotools: better fix for rewriting content of src/Makefile
---
 configure.ac | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index f24400b..409e48e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4188,9 +4188,12 @@ AC_OUTPUT
 
 #### Work around bug in automake check macro
 ## yes it is hugly, but no choice here for now.
-sed -i "s/am__is_gnu_make = test -n '\$(MAKEFILE_LIST)' && test -n 
'\$(MAKELEVEL)'/ifdef MAKEFILE_LIST\nifdef MAKELEVEL\nam__is_gnu_make = 
true\nelse\nam__is_gnu_make = false\nendif\nelse\nam__is_gnu_make = 
false\nendif/" src/Makefile
-
+$SED -i "s/am__is_gnu_make = test -n '\$(MAKEFILE_LIST)' && test -n 
'\$(MAKELEVEL)'/ifdef MAKEFILE_LIST\nifdef MAKELEVEL\nam__is_gnu_make = 
true\nelse\nam__is_gnu_make = false\nendif\nelse\nam__is_gnu_make = 
false\nendif/" src/Makefile
 
+if test -f $srcdir/config.status; then
+   TO="$SED -i \"s/am__is_gnu_make = test -n '\\\\\$(MAKEFILE_LIST)' \&\& test 
-n '\\\\\$(MAKELEVEL)'/ifdef MAKEFILE_LIST\\\nifdef 
MAKELEVEL\\\nam__is_gnu_make = true\\\nelse\\\nam__is_gnu_make = 
false\\\nendif\\\nelse\\\nam__is_gnu_make = false\\\nendif/\" 
src/Makefile\nas_fn_exit 0"
+   $SED -i "s|as_fn_exit 0|$TO|" $srcdir/config.status
+fi
 
 #### Info
 

-- 


Reply via email to