added frist draft of YUMScriptImpl
[platform/upstream/libzypp.git] / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 dnl ==================================================
3
4 AC_INIT(zypp,0.0.0)
5 AC_CONFIG_SRCDIR(zypp/Makefile.am)
6
7 AC_PREFIX_DEFAULT(/usr)
8 AC_CANONICAL_TARGET
9 AC_ARG_PROGRAM
10
11 AM_INIT_AUTOMAKE(foreign dist-bzip2 no-dist-gzip tar-ustar)
12 AM_CONFIG_HEADER(config.h)
13
14 dnl ==================================================
15 dnl Versioning
16 dnl ==========
17 dnl
18 dnl CURRENT    The most recent interface number that this library implements.
19 dnl
20 dnl REVISION   The implementation number of the current interface.
21 dnl
22 dnl AGE        The difference between the newest and oldest interfaces that this
23 dnl            library implements.
24 dnl            In other words, the library implements all the interface numbers
25 dnl            in the range from number 'CURRENT - AGE' to 'CURRENT'.
26 dnl
27 dnl 1) Start with version information of `0:0:0' for each libtool library.
28 dnl
29 dnl 2) Update the version information only immediately before a public release
30 dnl    of your software. More frequent updates are unnecessary, and only guarantee
31 dnl    that the current interface number gets larger faster.
32 dnl
33 dnl 3) If the library source code has changed at all since the last update,
34 dnl    then increment revision (`c:r:a' becomes `c:r+1:a').
35 dnl
36 dnl 4) If any interfaces have been added, removed, or changed since the last
37 dnl    update, increment current, and set revision to 0.
38 dnl
39 dnl 5) If any interfaces have been added since the last public release, then
40 dnl    increment age.
41 dnl
42 dnl 6) If any interfaces have been removed since the last public release, then
43 dnl    set age to 0.
44 dnl
45
46 LIBZYPP_CURRENT=0
47 LIBZYPP_REVISION=0
48 LIBZYPP_AGE=0
49
50 LIBZYPP_VERSION=$LIBZYPP_CURRENT.$LIBZYPP_REVISION.$LIBZYPP_AGE
51 AC_SUBST(LIBZYPP_VERSION)
52
53 LIBZYPP_VERSION_INFO="-version-info $LIBZYPP_CURRENT:$LIBZYPP_REVISION:$LIBZYPP_AGE"
54 AC_SUBST(LIBZYPP_VERSION_INFO)
55
56 dnl ==================================================
57
58 CXXFLAGS="-g -O2 -Wall -Wformat"
59
60 dnl ==================================================
61
62 docdir=\${datadir}/doc/packages
63 pkgdocdir=\${docdir}/$PACKAGE
64
65 AC_SUBST(docdir)
66 AC_SUBST(pkgdocdir)
67
68 dnl ==================================================
69 dnl checks for programs
70 AC_PROG_CXX
71 AM_PROG_LIBTOOL
72 AC_PATH_PROG(DOCGEN, doxygen, doxygen)
73 if test -z "$DOCGEN" ; then
74     AC_MSG_ERROR(doxygen is missing; please install doxygen.)
75 fi
76 AC_PATH_PROG(XGETTEXT, xgettext)
77 if test -z "$XGETTEXT" ; then
78     AC_MSG_ERROR(xgettext is missing; please install gettext-devel.)
79 fi
80 dnl ==================================================
81 dnl checks for libraries
82 dnl ==================================================
83 dnl checks for header files
84 dnl ==================================================
85 dnl checks for typedefs
86 dnl ==================================================
87 dnl checks for structures
88 dnl ==================================================
89 dnl checks for compiler characteristics
90 dnl ==================================================
91 dnl checks for library functions
92 dnl ==================================================
93 dnl checks for system services
94 dnl ==================================================
95 dnl AC_CONFIG_FILES([FILE...])
96 AC_OUTPUT(      \
97         Makefile                \
98         doc/Makefile            \
99         doc/autodoc/Makefile    \
100         doc/autodoc/Doxyfile    \
101         test/Makefile           \
102         test/genclass           \
103         test/devel.jsrain/Makefile      \
104         test/devel.jsrain/yum/Makefile  \
105         test/devel.ma/Makefile          \
106         zypp/Makefile           \
107         zypp/base/Makefile      \
108         zypp/detail/Makefile    \
109         zypp/capability/Makefile        \
110         zypp/parser/Makefile            \
111         zypp/parser/yum/Makefile        \
112         zypp/parser/yum/schema/Makefile \
113         zypp/source/Makefile            \
114         zypp/source/yum/Makefile
115 )
116 dnl ==================================================
117
118 echo "
119 Configuration:
120
121   PACKAGE:              ${PACKAGE}
122   VERSION:              ${VERSION}
123   LIBVERSION:           lib${PACKAGE}.so.${LIBZYPP_VERSION}
124
125   COMPILER:             ${CXX}
126   CXXFLAGS:             ${CXXFLAGS}
127
128   PREFIX:               ${prefix}
129   LIBDIR:               ${libdir}
130 "