fixed version number
This commit is contained in:
		| @@ -22,21 +22,19 @@ m4_define(x_least, mrw_esyscmd_s([ | |||||||
| # define version number from subversion's revision number: | # define version number from subversion's revision number: | ||||||
| # it is taken modulo 256 due to a bug on Apple's MacOSX | # it is taken modulo 256 due to a bug on Apple's MacOSX | ||||||
| # add to x_minor if revision number is > 256 | # add to x_minor if revision number is > 256 | ||||||
| m4_define(x_minor_fixed, mrw_esyscmd_s([ | m4_define(x_minor_diff, mrw_esyscmd_s([ | ||||||
|   SVN_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" |   SVN_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" | ||||||
|   for path in . .. ../..; do |   for path in . .. ../..; do | ||||||
|     if svn info $path 2>&1 > /dev/null; then |     if svn info $path 2>&1 > /dev/null; then | ||||||
|       SVN_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p') |       SVN_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p') | ||||||
|       break; |       break; | ||||||
|     fi |     fi; | ||||||
|   done |   done | ||||||
|   # Mac does not support LEAST > 255 |   # Mac does not support LEAST > 255 | ||||||
|   echo $ECHO_N $((x_minor+$SVN_REVISION/256)) |   echo $ECHO_N $(($SVN_REVISION/256)) | ||||||
| ])) | ])) | ||||||
| # setup version number | # setup version number | ||||||
| m4_define(x_version, mrw_esyscmd_s([ | m4_define(x_version, [x_major.m4_eval(x_minor+x_minor_diff).x_least]) | ||||||
|   echo $ECHO_N x_major.x_minor_fixed.x_least |  | ||||||
| ])) |  | ||||||
|  |  | ||||||
| ## bugreport mail address is taken from <user@host> in first line of AUTHORS | ## bugreport mail address is taken from <user@host> in first line of AUTHORS | ||||||
| m4_define(x_bugreport, mrw_esyscmd_s([ | m4_define(x_bugreport, mrw_esyscmd_s([ | ||||||
| @@ -264,9 +262,9 @@ EOF | |||||||
| # use this in configure.ac to support C++ libraries | # use this in configure.ac to support C++ libraries | ||||||
| AC_DEFUN([AX_USE_LIBTOOL], [ | AC_DEFUN([AX_USE_LIBTOOL], [ | ||||||
|   # libtool versioning |   # libtool versioning | ||||||
|   LIB_MAJOR=m4_eval(x_major+x_minor_fixed) |   LIB_MAJOR=m4_eval(x_major+x_minor+x_minor_diff) | ||||||
|   LIB_MINOR=x_least |   LIB_MINOR=x_least | ||||||
|   LIB_LEAST=x_minor_fixed |   LIB_LEAST=m4_eval(x_minor+x_minor_diff) | ||||||
|   LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}" |   LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}" | ||||||
|   AM_LDFLAGS="-version-info ${LIB_VERSION}" |   AM_LDFLAGS="-version-info ${LIB_VERSION}" | ||||||
|   AC_SUBST(AM_LDFLAGS) |   AC_SUBST(AM_LDFLAGS) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user