If aclocal.m4 does not exists, run aclocal, so that we can bootstrap.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Sat, 8 Oct 2005 11:18:14 +0000 (11:18 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Sat, 8 Oct 2005 11:18:14 +0000 (11:18 +0000)
eclass/autotools.eclass

index 236a650fac95b33300a4544cf4d266f3e06b43d9..ccc4486ceefbd7f6cc78160aecf0f6ff1468d537 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.21 2005/09/08 15:04:47 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.22 2005/10/08 11:18:14 flameeyes Exp $
 #
 # Author: Diego Pettenò <flameeyes@gentoo.org>
 # Enhancements: Martin Schlemmer <azarah@gentoo.org>
@@ -101,7 +101,7 @@ eaclocal() {
                done
        fi
 
-       [[ -f aclocal.m4 && -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \
+       [[ ! -f aclocal.m4 || -n $(grep -e 'generated.*by aclocal' aclocal.m4) ]] && \
                autotools_run_tool aclocal "$@" ${aclocal_opts}
 }