1 dnl Process this file with autoconf to produce a configure script.
2 dnl ==================================================
5 AC_CONFIG_SRCDIR(zypp/Makefile.am)
7 AC_PREFIX_DEFAULT(/usr)
11 AM_INIT_AUTOMAKE(foreign dist-bzip2 no-dist-gzip tar-ustar)
12 AM_CONFIG_HEADER(config.h)
14 dnl ==================================================
18 dnl CURRENT The most recent interface number that this library implements.
20 dnl REVISION The implementation number of the current interface.
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'.
27 dnl 1) Start with version information of `0:0:0' for each libtool library.
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.
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').
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.
39 dnl 5) If any interfaces have been added since the last public release, then
42 dnl 6) If any interfaces have been removed since the last public release, then
50 LIBZYPP_VERSION=$LIBZYPP_CURRENT.$LIBZYPP_REVISION.$LIBZYPP_AGE
51 AC_SUBST(LIBZYPP_VERSION)
53 LIBZYPP_VERSION_INFO="-version-info $LIBZYPP_CURRENT:$LIBZYPP_REVISION:$LIBZYPP_AGE"
54 AC_SUBST(LIBZYPP_VERSION_INFO)
56 dnl ==================================================
58 CXXFLAGS="-g -O2 -Wall -Wformat"
60 dnl ==================================================
62 docdir=\${datadir}/doc/packages
63 pkgdocdir=\${docdir}/$PACKAGE
68 dnl ==================================================
69 dnl checks for programs
72 AC_PATH_PROG(DOCGEN, doxygen, doxygen)
73 if test -z "$DOCGEN" ; then
74 AC_MSG_ERROR(doxygen is missing; please install doxygen.)
76 AC_PATH_PROG(XGETTEXT, xgettext)
77 if test -z "$XGETTEXT" ; then
78 AC_MSG_ERROR(xgettext is missing; please install gettext-devel.)
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...])
99 doc/autodoc/Makefile \
100 doc/autodoc/Doxyfile \
103 test/devel.jsrain/Makefile \
104 test/devel.jsrain/yum/Makefile \
105 test/devel.ma/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
116 dnl ==================================================
123 LIBVERSION: lib${PACKAGE}.so.${LIBZYPP_VERSION}
126 CXXFLAGS: ${CXXFLAGS}