-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
128 lines (109 loc) · 3.21 KB
/
configure.ac
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([matxin-eus], [1.5.0])
PACKAGE=matxin-eus
GENERIC_MAJOR_VERSION=1
GENERIC_MINOR_VERSION=5
GENERIC_MICRO_VERSION=0
GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION
GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
AC_SUBST(GENERIC_RELEASE)
AC_SUBST(GENERIC_VERSION)
#
# API version (often = GENERIC_MAJOR_VERSION.GENERIC_MINOR_VERSION)
#
GENERIC_API_VERSION=$GENERIC_MAJOR_VERSION
AC_SUBST(GENERIC_API_VERSION)
AC_SUBST(GENERIC_LIBRARY_NAME, $PACKAGE)
#
# Required library versions
#
m4_define([required_lttoolbox_version], [3.2.0])
m4_define([required_libxml_version], [2.6.17])
m4_define([required_matxin_version], [1.4.0])
m4_define([required_libpcre_version], [6.4])
#
# Our configure script should create Makefiles
#
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
#AM_INIT_AUTOMAKE
#
# Set default paths for PKG_CONFIG_PATH in case it's not defined
#
if ! test $PKG_CONFIG_PATH ; then
PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
fi
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_AWK
AC_LANG([C++])
AC_MSG_CHECKING([Operating System])
OSTYPE=$($(which uname) -s)
AC_MSG_RESULT([$OSTYPE])
AC_SUBST(OSTYPE)
# We need this to determine whether we use zcat or gzcat
AM_CONDITIONAL(OS_IS_SOLARIS, [test x"$OSTYPE" = xSunOS])
AM_CONDITIONAL(OS_IS_DARWIN, [test x"$OSTYPE" = xDarwin])
#
# These programs are required during the make process so we
# must test they're available on the current system
#
if test x$ARCH = xppc
then
AC_PATH_PROG(XSLTPROC, sabcmd, no)
if test x$ac_cv_path_XSLTPROC = x
then
AC_MSG_ERROR([sablotron not found. You may want to adjust your PATH.])
fi
if test x$ac_cv_path_XSLTPROC = xno
then
AC_MSG_ERROR([sablotron not found. You may want to adjust your PATH.])
fi
else
AC_PATH_PROG(XSLTPROC, xsltproc, no)
if test x$ac_cv_path_XSLTPROC = x
then
AC_MSG_ERROR([xsltproc not found. You may want to adjust your PATH.])
fi
if test x$ac_cv_path_XSLTPROC = xno
then
AC_MSG_ERROR([xsltproc not found. You may want to adjust your PATH.])
fi
fi
AC_PATH_PROG(LT_COMP, lt-comp, no)
if test x$ac_cv_path_LT_COMP = x
then
AC_MSG_ERROR([lt-comp not found. You may want to adjust your PATH.])
fi
if test x$ac_cv_path_LT_COMP = xno
then
AC_MSG_ERROR([lt-comp not found. You may want to adjust your PATH.])
fi
PKG_CHECK_MODULES(MATXIN, [dnl
lttoolbox >= required_lttoolbox_version dnl
matxin >= required_matxin_version dnl
libpcre >= required_libpcre_version], CPPFLAGS="$CPPFLAGS $MATXIN_CPPFLAGS $MATXIN_CFLAGS"; LIBS="$LIBS $MATXIN_LIBS")
#
# Generate these files
#
AC_CONFIG_FILES([
Makefile
matxin-eus.pc
])
AC_OUTPUT
#
# Print summary for the selected configuration
#
echo
echo "** $PACKAGE_NAME $PACKAGE_VERSION - selected build configuration **"
echo
echo "Install prefix ................... : $prefix"
echo
echo "Build architecture ............... : $ARCH"
echo "Operating System ................. : $OSTYPE"
echo
echo "Now type 'make', followed by 'make install' as root."
echo "If there are any problems, read the INSTALL file."
echo