header vars: can determine whether we are running under GNU make
[platform/upstream/automake.git] / t / yacc-depend.sh
index 73d64ad..5df370e 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2001-2012 Free Software Foundation, Inc.
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,8 +17,8 @@
 # Make sure depcomp does not needlessly update headers for yacc rules.
 # Report from Paolo Bonzini.
 
-required=yacc
-. ./defs || Exit 1
+required='cc yacc'
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CC