| 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.41 2012/01/15 14:05:14 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.42 2012/01/15 16:40:12 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> |
| … | |
… | |
| 396 | |
396 | |
| 397 | # Common args |
397 | # Common args |
| 398 | local econfargs=() |
398 | local econfargs=() |
| 399 | |
399 | |
| 400 | _check_build_dir |
400 | _check_build_dir |
| 401 | if "${ECONF_SOURCE}"/configure --help 2>&1 | grep docdir; then |
401 | if "${ECONF_SOURCE}"/configure --help 2>&1 | grep '^ *--docdir='; then |
| 402 | econfargs+=( |
402 | econfargs+=( |
| 403 | --docdir="${EPREFIX}"/usr/share/doc/${PF} |
403 | --docdir="${EPREFIX}"/usr/share/doc/${PF} |
| 404 | ) |
404 | ) |
| 405 | fi |
405 | fi |
| 406 | |
406 | |