How often do I run autoconf?

At my company, I am currently working on creating a Debian package debfrom a third-party library. The library is built using Autotools. I had never worked with Autotools before, and it was hard for me. Library sources contain files configure.inand Makefile.amand m4/. I can build the library using the following sequence:

aclocal -I m4 -I /usr/share/aclocal
autoheader
libtoolize --automake
automake -a
autoconf
./configure
make

In the file, debian/rulesI would like to use CDBS. I wrote this:

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

But that will not work. He complains that the file is missing configure. And that's right, because the Autotools class expects this file to be present. But this is not so, and someone needs to call autoconffriends first!

Why doesn't the Autotools CDOS class allow me to call autoconffriends? How to get around it?

:

, , .

, , , .

, / configure script , , , .

? , CDOS Autotools ​​ - , configure , . ?

, configure , - , . , CDOS Autotools , .

:

  • AutoCools CDBS, ?
  • configure? ( Debian.)
+3
4

-, . , aclocal && autoheader && ...., autoreconf. , ( ). -, configure script, "make dist" tarball, deb. tarball script. ( , tarball, , autotools .)

+6

Jasiu,

true, configure script , , - . , , autotools ( autotools m4).

autotools , configure.ac, Makefile.am, m4 ..

BTW, autoconf , autoreconf configure. , .

+1

" CDOS Autotools autoconf ? ?", , , debian/rules:

makebuilddir/your_package_name::         autoreconf --install

autoreconf --install ( configure script , configure.ac Makefile.am ) . : http://cdbs-doc.duckcorp.org/en/cdbs-doc.xhtml#id489203

adl, autoreconf script , configure.ac Makefile.am SVN. , , configure script, configure script, .

0

debian , , - tarball package-VERSION.tar.gz. autotools, , config. {Sub, guess} .

, , :

" . ."

, . ./configure, .

configure autotools, .

-1

Source: https://habr.com/ru/post/1711259/


All Articles