#! /bin/sh
-# Copyright (C) 1998-2012 Free Software Foundation, Inc.
+# Copyright (C) 1998-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
# 'subobj-clean-pr10697.sh', which deals with the non-libtool case.
required='cc libtoolize'
-. ./defs || Exit 1
+. test-init.sh
cat >> configure.ac << 'END'
AM_PROG_AR
AC_PROG_LIBTOOL
AC_PROG_CC
-AM_PROG_CC_C_O
AC_OUTPUT
END
ls -l . sub1 sub2
for i in 1 2; do
for j in a b c d e f; do
- test ! -f sub$i/$j.o
- test ! -f sub$i/$j.obj
- test ! -f sub$i/$j.lo
- test -f sub$i/$j.c || Exit 99 # Sanity check
+ test ! -e sub$i/$j.o
+ test ! -e sub$i/$j.obj
+ test ! -e sub$i/$j.lo
+ test -f sub$i/$j.c || exit 99 # Sanity check
done
done
# ... but they get removed by "make mostlyclean" ...
$MAKE mostlyclean
-test ! -f sub1/a.$OBJEXT
-test ! -f sub2/d.$OBJEXT
+test ! -e sub1/a.$OBJEXT
+test ! -e sub2/d.$OBJEXT
# ... and do not get rebuilt ...
$MAKE clean
$MAKE all
-test ! -f sub1/a.$OBJEXT
-test ! -f sub2/d.$OBJEXT
+test ! -e sub1/a.$OBJEXT
+test ! -e sub2/d.$OBJEXT
# ... while the non-stale files do.
test -f sub1/b.$OBJEXT