forked from enlightenment/efl
* make cegcc aware of the _WIN32 macro
* fix warning SVN revision: 34078
This commit is contained in:
parent
45e9085e13
commit
ee23c4b248
|
@ -33,6 +33,7 @@ AC_FUNC_ALLOCA
|
||||||
|
|
||||||
AC_CHECK_FUNCS(gettimeofday)
|
AC_CHECK_FUNCS(gettimeofday)
|
||||||
|
|
||||||
|
WIN32_CFLAGS=""
|
||||||
create_shared_lib=""
|
create_shared_lib=""
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
mingw|mingw32*|cegcc)
|
mingw|mingw32*|cegcc)
|
||||||
|
@ -40,9 +41,13 @@ case "$host_os" in
|
||||||
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
|
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
|
||||||
dnl needed for correct definition of EAPI
|
dnl needed for correct definition of EAPI
|
||||||
AC_DEFINE(EFL_EMBRYO_BUILD, 1, [Define to mention that embryo is built])
|
AC_DEFINE(EFL_EMBRYO_BUILD, 1, [Define to mention that embryo is built])
|
||||||
|
if test "x$host_os" = "xcegcc" ; then
|
||||||
|
WIN32_CFLAGS="-mwin32"
|
||||||
|
fi
|
||||||
create_shared_lib="-no-undefined"
|
create_shared_lib="-no-undefined"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
AC_SUBST(WIN32_CFLAGS)
|
||||||
AC_SUBST(create_shared_lib)
|
AC_SUBST(create_shared_lib)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file]))
|
AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file]))
|
||||||
|
|
|
@ -9,7 +9,8 @@ AM_CPPFLAGS = \
|
||||||
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
|
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
|
||||||
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
|
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
|
||||||
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
|
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
|
||||||
@EVIL_CFLAGS@
|
@EVIL_CFLAGS@ \
|
||||||
|
@WIN32_CFLAGS@
|
||||||
|
|
||||||
bin_PROGRAMS = embryo_cc
|
bin_PROGRAMS = embryo_cc
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,7 @@ sc_compile(int argc, char *argv[])
|
||||||
tmpdir = getenv("TMPDIR");
|
tmpdir = getenv("TMPDIR");
|
||||||
if (!tmpdir) tmpdir = "/tmp";
|
if (!tmpdir) tmpdir = "/tmp";
|
||||||
#else
|
#else
|
||||||
tmpdir = evil_tmpdir_get();
|
tmpdir = (char *)evil_tmpdir_get();
|
||||||
#endif /* ! HAVE_EVIL */
|
#endif /* ! HAVE_EVIL */
|
||||||
|
|
||||||
snprintf(outfname, _MAX_PATH, "%s/embryo_cc.asm-tmp-XXXXXX", tmpdir);
|
snprintf(outfname, _MAX_PATH, "%s/embryo_cc.asm-tmp-XXXXXX", tmpdir);
|
||||||
|
|
Loading…
Reference in New Issue