forked from yast/yast-devtools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.in.in
51 lines (40 loc) · 895 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## initialize
@YAST2-INIT-COMMON@
@YAST2-INIT-PROGRAM@
@YAST2-INIT-YCP@
YAST2DEVTOOLS=${ydatadir}/devtools
AC_SUBST(YAST2DEVTOOLS)
YCPDOC=${srcdir}/ycpdoc/src/ycpdoc
AC_SUBST(YCPDOC)
CREATE_PKGCONFIG=noarch
## some common checks
@YAST2-CHECKS-COMMON@
# don't take all the garbage of YaST2-CHECKS-PROGRAM
# this is anyway necessary only because autoreconf
# gets confused by Makefile.am in skeletons
AC_PROG_CXX
LT_INIT([disable-static])
AC_SUBST([LIBTOOL_DEPS])
# perl checks
AC_CHECK_PROG(PERL, perl, perl, no)
AC_DEFUN([CHECK_PERL_MODULE],[
AC_MSG_CHECKING([for perl module $1])
TMPFILE=conftest.pl
rm -f $TMPFILE
cat >$TMPFILE <<'EOT'
use $1;
EOT
$PERL $TMPFILE 2> /dev/null
if test $? -eq 0 ; then
$2="true"
AC_MSG_RESULT(found)
else
$2="false"
AC_MSG_RESULT(not found)
fi
rm -f $TMPFILE
])
AX_CHECK_DOCBOOK
AC_SUBST(MOC)
## and generate the output
@YAST2-OUTPUT@