forked from enlightenment/efl
parent
4bd7dd03d6
commit
a14cd60f77
|
@ -1,8 +1,24 @@
|
|||
# get rid of that stupid cache mechanism
|
||||
rm -f config.cache
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
m4_define([v_maj], [0])
|
||||
m4_define([v_min], [9])
|
||||
m4_define([v_mic], [9])
|
||||
m4_define([v_rev], m4_esyscmd([svnversion . | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g']))
|
||||
m4_ifelse(m4_len[v_rev], [0], [m4_undefine([v_rev])])
|
||||
##-- When released, remove the dnl on the below line
|
||||
dnl m4_undefine([v_rev])
|
||||
##-- When doing snapshots - change soname. remove dnl on below line
|
||||
m4_define([v_rel], [-release ver-pre-svn-05])
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])],
|
||||
[m4_define([v_ver], [v_maj.v_min.v_mic])])
|
||||
m4_define([lt_rev], m4_eval(v_maj + v_min))
|
||||
m4_define([lt_cur], v_mic)
|
||||
m4_define([lt_age], v_min)
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
|
||||
AC_INIT([embryo], [0.9.9.063], [enlightenment-devel@lists.sourceforge.net])
|
||||
release="ver-pre-svn-05"
|
||||
AC_INIT([embryo], [v_ver], [enlightenment-devel@lists.sourceforge.net])
|
||||
AC_PREREQ([2.52])
|
||||
AC_CONFIG_SRCDIR([configure.ac])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
@ -19,21 +35,20 @@ define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
|||
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
|
||||
VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
|
||||
VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
|
||||
SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
|
||||
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
|
||||
m4_ifdef([v_rel], , [m4_define([v_rel], [])])
|
||||
AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
|
||||
AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
|
||||
AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
|
||||
AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
|
||||
version_info="lt_rev:lt_cur:lt_age"
|
||||
release_info="v_rel"
|
||||
AC_SUBST(version_info)
|
||||
|
||||
case "$host_os" in
|
||||
mingw32ce* | cegcc*)
|
||||
;;
|
||||
*)
|
||||
release_info="-release $release"
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(release_info)
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
||||
|
||||
EFL_CHECK_PATH_MAX
|
||||
|
||||
|
|
|
@ -31,6 +31,19 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define EMBRYO_VERSION_MAJOR 0
|
||||
#define EMBRYO_VERSION_MINOR 9
|
||||
|
||||
typedef struct _Embryo_Version
|
||||
{
|
||||
int major;
|
||||
int minor;
|
||||
int micro;
|
||||
int revision;
|
||||
} Embryo_Version;
|
||||
|
||||
EAPI extern Embryo_Version *embryo_version;
|
||||
|
||||
/* potentioal error values */
|
||||
enum
|
||||
{
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
#include "Embryo.h"
|
||||
#include "embryo_private.h"
|
||||
|
||||
static Embryo_Version _version = { VMAJ, VMIN, VMIC, VREV };
|
||||
EAPI Embryo_Version *embryo_version = &_version;
|
||||
|
||||
static int _embryo_init_count = 0;
|
||||
|
||||
/*** EXPORTED CALLS ***/
|
||||
|
|
Loading…
Reference in New Issue