4 |
dnl Allan Rae (rae@lyx.org) |
dnl Allan Rae (rae@lyx.org) |
5 |
|
|
6 |
|
|
7 |
|
dnl Usage XFORMS_SET_VERSION(Version, Revision, Fixlevel) |
8 |
|
dnl Sets variables VERSION, FL_VERSION, FL_REVISION, FL_FIXLEVEL. |
9 |
|
AC_DEFUN(XFORMS_SET_VERSION,[ |
10 |
|
VERSION="$1.$2.$3" |
11 |
|
AC_SUBST(FL_VERSION, $1) |
12 |
|
AC_SUBST(FL_REVISION, $2) |
13 |
|
AC_SUBST(FL_FIXLEVEL, $3) |
14 |
|
AC_SUBST(VERSION, $VERSION) |
15 |
|
]) |
16 |
|
|
17 |
dnl Usage XFORMS_CHECK_VERSION Displays version of xforms being built and |
dnl Usage XFORMS_CHECK_VERSION Displays version of xforms being built and |
18 |
dnl sets variables "xforms_devel_version" and "xforms_prerelease" |
dnl sets variables "xforms_devel_version" and "xforms_prerelease" |
19 |
AC_DEFUN(XFORMS_CHECK_VERSION,[ |
AC_DEFUN(XFORMS_CHECK_VERSION,[ |
|
changequote(, ) dnl |
|
20 |
echo "configuring xforms version $VERSION" |
echo "configuring xforms version $VERSION" |
21 |
if echo "$VERSION" | grep 'cvs' >/dev/null ; then |
xforms_prerelease=no |
22 |
xforms_devel_version=yes |
xforms_devel_version=no |
23 |
echo "WARNING: This is a development version. Expect bugs." |
case $VERSION in |
24 |
else |
*cvs*) xforms_devel_version=yes |
25 |
xforms_devel_version=no |
AC_DEFINE(DEVEL_VERSION, 1, Define if you are building a development version of xforms) |
26 |
fi |
echo "WARNING: This is a development version. Expect bugs." ;; |
27 |
if echo "$VERSION" | grep 'pre' > /dev/null ; then |
*pre*) xforms_prerelease=yes |
28 |
xforms_prerelease=yes |
echo "WARNING: This is a prerelease. Be careful!" ;; |
29 |
echo "WARNING: This is a prerelease. Be careful!" |
esac]) |
|
else |
|
|
xforms_prerelease=no |
|
|
fi |
|
|
changequote([, ]) dnl |
|
|
AC_SUBST(xforms_devel_version) |
|
|
if test $xforms_devel_version = yes ; then |
|
|
AC_DEFINE(DEVEL_VERSION, 1, Define if you are building a development version of xforms) |
|
|
fi]) |
|
|
|
|
30 |
|
|
31 |
dnl Usage XFORMS_CHECK_LIB_JPEG: Checks for jpeg library |
dnl Usage XFORMS_CHECK_LIB_JPEG: Checks for jpeg library |
32 |
AC_DEFUN(XFORMS_CHECK_LIB_JPEG,[ |
AC_DEFUN(XFORMS_CHECK_LIB_JPEG,[ |