| 1 |
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
| 2 |
|
|
| 3 |
dnl NOTE FOR MAINTAINERS: Do not use major or minor version numbers with |
dnl NOTE FOR MAINTAINERS: Do not use minor version numbers 08 or 09 because |
| 4 |
dnl leading zeros, because they may be treated as octal constants. The |
dnl the leading zeros may cause them to be treated as invalid octal constants |
| 5 |
dnl PCRE_PRERELEASE feature is for identifying release candidates. It might |
dnl if a PCRE user writes code that uses PCRE_MINOR as a number. There is now |
| 6 |
dnl be defined as -RC2, for example. For real releases, it should be defined |
dnl a check further down that throws an error if 08 or 09 are used. |
| 7 |
dnl empty. |
|
| 8 |
|
dnl The PCRE_PRERELEASE feature is for identifying release candidates. It might |
| 9 |
|
dnl be defined as -RC2, for example. For real releases, it should be empty. |
| 10 |
|
|
| 11 |
m4_define(pcre_major, [8]) |
m4_define(pcre_major, [8]) |
| 12 |
m4_define(pcre_minor, [01]) |
m4_define(pcre_minor, [01]) |
| 84 |
PCRE_PRERELEASE="pcre_prerelease" |
PCRE_PRERELEASE="pcre_prerelease" |
| 85 |
PCRE_DATE="pcre_date" |
PCRE_DATE="pcre_date" |
| 86 |
|
|
| 87 |
|
if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09" |
| 88 |
|
then |
| 89 |
|
echo "***" |
| 90 |
|
echo "*** Minor version number $PCRE_MINOR must not be used. ***" |
| 91 |
|
echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***" |
| 92 |
|
echo "***" |
| 93 |
|
exit 1 |
| 94 |
|
fi |
| 95 |
|
|
| 96 |
AC_SUBST(PCRE_MAJOR) |
AC_SUBST(PCRE_MAJOR) |
| 97 |
AC_SUBST(PCRE_MINOR) |
AC_SUBST(PCRE_MINOR) |
| 98 |
AC_SUBST(PCRE_PRERELEASE) |
AC_SUBST(PCRE_PRERELEASE) |