1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.43 2012/01/15 20:03:50 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.44 2012/01/19 21:49:38 mgorny Exp $ |
4 | |
4 | |
5 | # @ECLASS: autotools-utils.eclass |
5 | # @ECLASS: autotools-utils.eclass |
6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
7 | # Maciej Mrozowski <reavertm@gentoo.org> |
7 | # Maciej Mrozowski <reavertm@gentoo.org> |
8 | # Michał Górny <mgorny@gentoo.org> |
8 | # Michał Górny <mgorny@gentoo.org> |
… | |
… | |
282 | # Override this func to not require unnecessary eaclocal calls. |
282 | # Override this func to not require unnecessary eaclocal calls. |
283 | autotools_check_macro() { |
283 | autotools_check_macro() { |
284 | local x |
284 | local x |
285 | |
285 | |
286 | # Add a few additional variants as we don't get expansions. |
286 | # Add a few additional variants as we don't get expansions. |
287 | [[ ${1} = AC_CONFIG_HEADERS ]] && set -- "${@}" AC_CONFIG_HEADER |
287 | [[ ${1} = AC_CONFIG_HEADERS ]] && set -- "${@}" \ |
|
|
288 | AC_CONFIG_HEADER AM_CONFIG_HEADER |
288 | |
289 | |
289 | for x; do |
290 | for x; do |
290 | grep -h "^${x}" configure.{ac,in} 2>/dev/null |
291 | grep -h "^${x}" configure.{ac,in} 2>/dev/null |
291 | done |
292 | done |
292 | } |
293 | } |