blob: 324e6f8de5c282b1af0f437de9cdb3cd77c18ea7 [file] [log] [blame]
Andrew Geisslerd1e89492021-02-12 15:35:20 -06001SUMMARY = "A GNU tool that produce shell scripts to automatically configure software"
2DESCRIPTION = "Autoconf is an extensible package of M4 macros that produce shell scripts to automatically \
3configure software source code packages. Autoconf creates a configuration script for a package from a template \
4file that lists the operating system features that the package can use, in the form of M4 macro calls."
5LICENSE = "GPLv3+"
6HOMEPAGE = "http://www.gnu.org/software/autoconf/"
7SECTION = "devel"
8DEPENDS = "m4-native autoconf-native automake-native gnu-config-native help2man-native"
Patrick Williams213cb262021-08-07 19:21:33 -05009DEPENDS:remove:class-native = "autoconf-native automake-native help2man-native"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060010
11LIC_FILES_CHKSUM = "file://COPYING;md5=cc3f3a7596cb558bbd9eb7fbaa3ef16c \
12 file://COPYINGv3;md5=1ebbd3e34237af26da5dc08a4e440464"
13
14SRC_URI = "${GNU_MIRROR}/autoconf/${BP}.tar.gz \
15 file://program_prefix.patch \
16 file://autoreconf-exclude.patch \
17 file://remove-usr-local-lib-from-m4.patch \
18 file://preferbash.patch \
19 file://autotest-automake-result-format.patch \
20 file://man-host-perl.patch \
21 "
Patrick Williams213cb262021-08-07 19:21:33 -050022SRC_URI:append:class-native = " file://no-man.patch"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060023
24SRC_URI[sha256sum] = "431075ad0bf529ef13cb41e9042c542381103e80015686222b8a9d4abef42a1c"
25
Patrick Williams213cb262021-08-07 19:21:33 -050026RDEPENDS:${PN} = "m4 gnu-config \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060027 perl \
28 perl-module-bytes \
29 perl-module-carp \
30 perl-module-constant \
31 perl-module-data-dumper \
32 perl-module-errno \
33 perl-module-exporter \
34 perl-module-file-basename \
35 perl-module-file-compare \
36 perl-module-file-copy \
37 perl-module-file-find \
38 perl-module-file-glob \
39 perl-module-file-path \
40 perl-module-file-spec \
41 perl-module-file-spec-unix \
42 perl-module-file-stat \
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060043 perl-module-file-temp \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060044 perl-module-getopt-long \
45 perl-module-io-file \
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060046 perl-module-list-util \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060047 perl-module-overloading \
48 perl-module-posix \
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060049 perl-module-scalar-util \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060050 perl-module-symbol \
51 perl-module-thread-queue \
52 perl-module-threads \
53 "
Patrick Williams213cb262021-08-07 19:21:33 -050054RDEPENDS:${PN}:class-native = "m4-native gnu-config-native hostperl-runtime-native"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060055
56inherit autotools texinfo
57
58PERL = "${USRBINPATH}/perl"
Patrick Williams213cb262021-08-07 19:21:33 -050059PERL:class-native = "/usr/bin/env perl"
60PERL:class-nativesdk = "/usr/bin/env perl"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060061
62CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'"
63
64EXTRA_OECONF += "ac_cv_path_M4=m4 ac_cv_prog_TEST_EMACS=no"
65
66# As autoconf installs its own config.* files, ensure that they're always up to date.
67update_gnu_config() {
68 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/build-aux
69 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/build-aux
70}
71do_configure[prefuncs] += "update_gnu_config"
72
Patrick Williams213cb262021-08-07 19:21:33 -050073do_configure:class-native() {
Andrew Geisslerd1e89492021-02-12 15:35:20 -060074 oe_runconf
75}
76
Patrick Williams213cb262021-08-07 19:21:33 -050077do_install:append() {
Andrew Geisslerd1e89492021-02-12 15:35:20 -060078 rm -rf ${D}${datadir}/emacs
79}
80
81BBCLASSEXTEND = "native nativesdk"