tests: fetch the 'compile' script for subdir objects
authorPeter Rosin <peda@lysator.liu.se>
Mon, 30 Jan 2012 19:33:17 +0000 (20:33 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 30 Jan 2012 19:33:17 +0000 (20:33 +0100)
* tests/libobj19.test: Subdir objects are used, so the 'compile'
script needs to be present for inferior hosts.  Fetch it.

tests/libobj19.test

index 79334d9..ac8f5f7 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
+# Copyright (C) 2010, 2011, 2012 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
@@ -22,6 +22,7 @@ required=cc
 cat >> configure.in << 'END'
 AC_CONFIG_LIBOBJ_DIR([libobj-dir])
 AC_PROG_CC
+AM_PROG_CC_C_O
 AM_PROG_AR
 AC_PROG_RANLIB
 AC_LIBOBJ([foobar])
@@ -53,7 +54,8 @@ cat > libobj-dir/foobar.c << 'END'
 extern int dummy;
 END
 
-cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script \`ar-lib'"
+cp "$am_scriptdir/ar-lib" . || fatal_ "fetching auxiliary script 'ar-lib'"
+cp "$am_scriptdir/compile" . || fatal_ "fetching auxiliary script 'compile'"
 
 $ACLOCAL
 $AUTOCONF