From 019e86347b3d63efe2ee7aa8238bd822302872e4 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sat, 16 Jul 2011 23:19:02 +0000 Subject: [PATCH] Embryo: * remove all occurences of cegcc (not supported anymore) * fix unistd.h guards * remove useless headers in embryo_cc_prefix.c SVN revision: 61433 --- legacy/embryo/configure.ac | 14 ++++++------ legacy/embryo/src/bin/embryo_cc_prefix.c | 27 ------------------------ legacy/embryo/src/bin/embryo_cc_sc1.c | 2 +- legacy/embryo/src/bin/embryo_cc_sc5.c | 2 +- 4 files changed, 8 insertions(+), 37 deletions(-) diff --git a/legacy/embryo/configure.ac b/legacy/embryo/configure.ac index 6e08c63d38..129fdf14b8 100644 --- a/legacy/embryo/configure.ac +++ b/legacy/embryo/configure.ac @@ -97,7 +97,7 @@ AC_SUBST(pkgconfig_requires_private) EFL_EMBRYO_BUILD="" case "$host_os" in - mingw* | cegcc*) + mingw*) PKG_CHECK_MODULES([EVIL], [evil]) AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed]) requirement_embryo="evil ${requirement_embryo}" @@ -106,10 +106,12 @@ case "$host_os" in esac AC_SUBST(EFL_EMBRYO_BUILD) +# For embryo_cc_prefix.c PKG_CHECK_MODULES([EINA], [eina >= 1.0.999]) ### Checks for header files +AC_CHECK_HEADERS([unistd.h]) EFL_CHECK_PATH_MAX @@ -134,10 +136,6 @@ case "$host_os" in mingw32ce*) EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420" ;; - cegcc*) - EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420" - EMBRYO_CFLAGS="-mwin32" - ;; esac AC_SUBST(EMBRYO_CPPFLAGS) AC_SUBST(EMBRYO_CFLAGS) @@ -147,7 +145,7 @@ AC_SUBST(EMBRYO_CFLAGS) lt_enable_auto_import="" case "$host_os" in - mingw* | cegcc*) + mingw*) lt_enable_auto_import="-Wl,--enable-auto-import" ;; esac @@ -165,8 +163,8 @@ AC_FUNC_ALLOCA EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])]) case "$host_os" in - mingw* | cegcc*) - AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defined to 1 (MinGW / CeGCC platform)]) + mingw*) + AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defined to 1 (MinGW platform)]) ;; *) AC_CHECK_FUNCS(gettimeofday) diff --git a/legacy/embryo/src/bin/embryo_cc_prefix.c b/legacy/embryo/src/bin/embryo_cc_prefix.c index 4774a977ba..ad46e5c5cb 100644 --- a/legacy/embryo/src/bin/embryo_cc_prefix.c +++ b/legacy/embryo/src/bin/embryo_cc_prefix.c @@ -2,33 +2,6 @@ # include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifndef _MSC_VER -# include -# include -#endif - -#ifdef HAVE_EVIL -# include /* for realpath */ -#else -# include -# include -# include -#endif /* ! HAVE_EVIL */ - #include #include "embryo_cc_prefix.h" diff --git a/legacy/embryo/src/bin/embryo_cc_sc1.c b/legacy/embryo/src/bin/embryo_cc_sc1.c index eee28038b8..180679678e 100644 --- a/legacy/embryo/src/bin/embryo_cc_sc1.c +++ b/legacy/embryo/src/bin/embryo_cc_sc1.c @@ -34,7 +34,7 @@ #include #include -#ifndef _MSC_VER +#ifdef HAVE_UNISTD_H # include #endif diff --git a/legacy/embryo/src/bin/embryo_cc_sc5.c b/legacy/embryo/src/bin/embryo_cc_sc5.c index ebbd6a09e1..a8af498724 100644 --- a/legacy/embryo/src/bin/embryo_cc_sc5.c +++ b/legacy/embryo/src/bin/embryo_cc_sc5.c @@ -32,7 +32,7 @@ #include #include -#ifndef _MSC_VER +#ifdef HAVE_UNISTD_H # include #endif