mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 07:56:57 +02:00
eclass/autotools: Sync with Gentoo
It's from Gentoo commit 2cba2db27919bc449ed2a7bf7ed3259c6b96e65f.
This commit is contained in:
parent
a04731d2cd
commit
e5204a88c9
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: autotools.eclass
|
# @ECLASS: autotools.eclass
|
||||||
@ -13,6 +13,11 @@
|
|||||||
# Note: We require GNU m4, as does autoconf. So feel free to use any features
|
# Note: We require GNU m4, as does autoconf. So feel free to use any features
|
||||||
# from the GNU version of m4 without worrying about other variants (i.e. BSD).
|
# from the GNU version of m4 without worrying about other variants (i.e. BSD).
|
||||||
|
|
||||||
|
case ${EAPI} in
|
||||||
|
6|7|8) ;;
|
||||||
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [[ ${_AUTOTOOLS_AUTO_DEPEND+set} == "set" ]] ; then
|
if [[ ${_AUTOTOOLS_AUTO_DEPEND+set} == "set" ]] ; then
|
||||||
# See if we were included already, but someone changed the value
|
# See if we were included already, but someone changed the value
|
||||||
# of AUTOTOOLS_AUTO_DEPEND on us. We could reload the entire
|
# of AUTOTOOLS_AUTO_DEPEND on us. We could reload the entire
|
||||||
@ -26,14 +31,7 @@ fi
|
|||||||
if [[ -z ${_AUTOTOOLS_ECLASS} ]] ; then
|
if [[ -z ${_AUTOTOOLS_ECLASS} ]] ; then
|
||||||
_AUTOTOOLS_ECLASS=1
|
_AUTOTOOLS_ECLASS=1
|
||||||
|
|
||||||
case ${EAPI} in
|
[[ ${EAPI} == 6 ]] && inherit eqawarn
|
||||||
6)
|
|
||||||
# Needed for eqawarn
|
|
||||||
inherit eutils
|
|
||||||
;;
|
|
||||||
7|8) ;;
|
|
||||||
*) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
inherit gnuconfig libtool
|
inherit gnuconfig libtool
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user