-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfigure.in.in
36 lines (27 loc) · 928 Bytes
/
configure.in.in
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
## SCR agent configure.in.in
## initialize
@YAST2-INIT-COMMON@
@YAST2-INIT-PROGRAM@
## some common checks
@YAST2-CHECKS-COMMON@
@YAST2-CHECKS-PROGRAM@
PKG_CHECK_MODULES([ZYPP], [libzypp])
ZYPP_VERSION=`pkg-config --print-errors --modversion libzypp`
if test -z "$ZYPP_VERSION"; then
ZYPP_VERSION="0.0.0"
fi
ZYPP_VERSION_MAJOR=`echo $ZYPP_VERSION | cut -d. -f1`
ZYPP_VERSION_MINOR=`echo $ZYPP_VERSION | cut -d. -f2`
ZYPP_VERSION_PATCH=`echo $ZYPP_VERSION | cut -d. -f3`
AH_TEMPLATE([HAVE_ZYPP_DUP_FLAGS], [Define if libzypp provides solver flags for DUP mode])
if test \
\( "$ZYPP_VERSION_MAJOR" -eq 15 -a "$ZYPP_VERSION_MINOR" -ge 9 \) -o \
"$ZYPP_VERSION_MAJOR" -ge 16; then
AC_DEFINE([HAVE_ZYPP_DUP_FLAGS], 1)
fi
AX_CHECK_DOCBOOK
# libzypp uses the C++17 standard
# treat missing values in switch statements as errors
CXXFLAGS="${CXXFLAGS} -std=c++17 -Werror=switch"
## and generate the output
@YAST2-OUTPUT@