|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN(GC_SET_VERSION, [ |
|
AC_MSG_CHECKING(GC version numbers) |
|
GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([[0-9]][[0-9]]*\)[[.]].*$/\1/g'` |
|
GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[[^.]]*[[.]]\([[0-9]][[0-9]]*\).*$/\1/g'` |
|
GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[[^.]]*[[.]][[0-9]]*//'` |
|
|
|
case "$GC_ALPHA_VERSION" in |
|
alpha*) |
|
GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \ |
|
| sed 's/alpha\([[0-9]][[0-9]]*\)/\1/'` ;; |
|
*) GC_ALPHA_MAJOR='' ;; |
|
esac |
|
|
|
if test :$GC_VERSION_MAJOR: = :: \ |
|
-o :$GC_VERSION_MINOR: = :: ; |
|
then |
|
AC_MSG_RESULT(invalid) |
|
AC_MSG_ERROR([nonconforming PACKAGE_VERSION='$PACKAGE_VERSION']) |
|
fi |
|
|
|
AC_DEFINE_UNQUOTED(GC_VERSION_MAJOR, $GC_VERSION_MAJOR) |
|
AC_DEFINE_UNQUOTED(GC_VERSION_MINOR, $GC_VERSION_MINOR) |
|
if test :$GC_ALPHA_VERSION: != :: ; then |
|
AC_DEFINE_UNQUOTED(GC_ALPHA_VERSION, $GC_ALPHA_VERSION) |
|
fi |
|
AC_MSG_RESULT(major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \ |
|
${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION) |
|
]) |
|
|
|
sinclude(libtool.m4) |
|
|