| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 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/xorg-2.eclass,v 1.5 2010/07/04 20:42:22 dirtyepic Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.6 2010/07/14 08:34:27 scarabeus Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: xorg-2.eclass |
5 | # @ECLASS: xorg-2.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # x11@gentoo.org |
7 | # x11@gentoo.org |
| 8 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
8 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
| … | |
… | |
| 206 | # Run eautoreconf if necessary, and run elibtoolize. |
206 | # Run eautoreconf if necessary, and run elibtoolize. |
| 207 | xorg-2_reconf_source() { |
207 | xorg-2_reconf_source() { |
| 208 | case ${CHOST} in |
208 | case ${CHOST} in |
| 209 | *-interix* | *-aix* | *-winnt*) |
209 | *-interix* | *-aix* | *-winnt*) |
| 210 | # some hosts need full eautoreconf |
210 | # some hosts need full eautoreconf |
| 211 | [[ -e "./configure.ac" ]] && eautoreconf || ewarn "Unable to autoreconf the configure script. Things may fail." |
211 | [[ -e "./configure.ac" || -e "./configure.in" ]] && eautoreconf || ewarn "Unable to autoreconf the configure script. Things may fail." |
| 212 | ;; |
212 | ;; |
| 213 | *) |
213 | *) |
| 214 | # elibtoolize required for BSD |
214 | # elibtoolize required for BSD |
| 215 | [[ ${XORG_EAUTORECONF} != no && -e "./configure.ac" ]] && eautoreconf || elibtoolize |
215 | [[ ${XORG_EAUTORECONF} != no && -e "./configure.ac" ]] && eautoreconf || elibtoolize |
| 216 | ;; |
216 | ;; |