blob: 2c87bf8296fc48e33e6c7ac255aa71bb073c84ad [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "A GNU tool that produce shell scripts to automatically configure software"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002DESCRIPTION = "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"
9DEPENDS_class-native = "m4-native gnu-config-native"
10DEPENDS_class-nativesdk = "nativesdk-m4 nativesdk-gnu-config"
11RDEPENDS_${PN} = "m4 gnu-config \
12 perl \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013 perl-module-bytes \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014 perl-module-carp \
15 perl-module-constant \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016 perl-module-data-dumper \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017 perl-module-errno \
18 perl-module-exporter \
19 perl-module-file-basename \
20 perl-module-file-compare \
21 perl-module-file-copy \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022 perl-module-file-find \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 perl-module-file-glob \
24 perl-module-file-path \
Brad Bishopd89cb5f2019-04-10 09:02:41 -040025 perl-module-file-spec \
26 perl-module-file-spec-unix \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027 perl-module-file-stat \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028 perl-module-getopt-long \
29 perl-module-io-file \
Brad Bishopd89cb5f2019-04-10 09:02:41 -040030 perl-module-overloading \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031 perl-module-posix \
Brad Bishopd89cb5f2019-04-10 09:02:41 -040032 perl-module-symbol \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080033 perl-module-thread-queue \
34 perl-module-threads \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035 "
36RDEPENDS_${PN}_class-native = "m4-native gnu-config-native"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080037RDEPENDS_${PN}_class-nativesdk = "\
38 nativesdk-gnu-config \
39 nativesdk-m4 \
40 nativesdk-perl \
41 nativesdk-perl-module-bytes \
42 nativesdk-perl-module-carp \
43 nativesdk-perl-module-constant \
44 nativesdk-perl-module-data-dumper \
45 nativesdk-perl-module-errno \
46 nativesdk-perl-module-exporter \
47 nativesdk-perl-module-file-basename \
48 nativesdk-perl-module-file-compare \
49 nativesdk-perl-module-file-copy \
50 nativesdk-perl-module-file-find \
51 nativesdk-perl-module-file-glob \
52 nativesdk-perl-module-file-path \
Brad Bishopd89cb5f2019-04-10 09:02:41 -040053 nativesdk-perl-module-file-spec \
54 nativesdk-perl-module-file-spec-unix \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080055 nativesdk-perl-module-file-stat \
56 nativesdk-perl-module-getopt-long \
57 nativesdk-perl-module-io-file \
Brad Bishopd89cb5f2019-04-10 09:02:41 -040058 nativesdk-perl-module-overloading \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080059 nativesdk-perl-module-posix \
Brad Bishopd89cb5f2019-04-10 09:02:41 -040060 nativesdk-perl-module-symbol \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080061 nativesdk-perl-module-thread-queue \
62 nativesdk-perl-module-threads \
63 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050064
Brad Bishopd89cb5f2019-04-10 09:02:41 -040065
66
Patrick Williamsc124f4f2015-09-15 14:41:29 -050067SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.gz \
68 file://program_prefix.patch"
69
70inherit autotools texinfo
71
Brad Bishop6e60e8b2018-02-01 10:27:11 -050072PERL = "${USRBINPATH}/perl"
73PERL_class-native = "/usr/bin/env perl"
74PERL_class-nativesdk = "/usr/bin/env perl"
75
76CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050077
78do_configure() {
Brad Bishop316dfdd2018-06-25 12:45:53 -040079 # manually install a newer config.guess/.sub
80 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/build-aux
81 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/build-aux
82
Patrick Williamsc124f4f2015-09-15 14:41:29 -050083 oe_runconf
84}
85
86do_install_append() {
87 rm -rf ${D}${datadir}/emacs
88}