blob: 272d3ce2c3e16bab95fcce6b7fa14205cd9c018a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
dnl Checks for the correct version of the courier-unicode library.
AC_DEFUN([AX_COURIER_UNICODE_VERSION],[
AC_MSG_CHECKING(courier-unicode library and version)
vers="$1"
if test "$vers" = ""
then
vers=@VERSION@
fi
set -- `echo "$vers" | tr '.' ' '`
v=$[]1
r=`echo "00"$[]2 | sed 's/.*(...)$/$[]1/'`
p=$[]3
if test "$p" = ""
then p="0"
fi
p=`echo "00"$p | sed 's/.*(...)$/$[]1/'`
if test "$v$r$p" -lt 2002002
then
r=$[]2
p=$[]3
if test "$p" = ""
then p="0"
fi
fi
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <courier-unicode.h>
#ifndef COURIER_UNICODE_VERSION
#define COURIER_UNICODE_VERSION 0
#endif
#if COURIER_UNICODE_VERSION < $v$r$p
#error "courier-unicode $vers library is required"
#endif
]], [[]])],[],[AC_MSG_ERROR(
ERROR: The Courier Unicode Library $vers header files appear not to be installed.
You may need to upgrade the library or install a separate development
subpackage in addition to the main package.)
])
AC_MSG_RESULT([ok])
])
|