| On Fri, Feb 18, 2000 at 03:39:59PM +0100, Akim Demaille wrote:
| >
| > Could you change tests/tools.m4 from
| >
| > # A script in charge of testing `/bin/sh -n'.
| > AT_DATA(syntax.sh,
| > [[set -e
| > (/bin/sh -n endless.sh) &
| > cpid=$!
| > sleep 2 && kill $cpid >/dev/null 2>&1
| > ]])
| >
| > to
| >
| > # A script in charge of testing `/bin/sh -n'.
| > AT_DATA(syntax.sh,
| > [[set -e
| > (/bin/sh -n endless.sh) &
| > cpid=$!
| > sleep 2 && kill $cpid >/dev/null 2>&1 || exit 1
| > ]])
|
| Both shell scripts seems to work fine, i tested it on command line and
| it returns the correct values.
|
| The problem seems to be in the test that use this return value because
| changing :
|
| if /bin/sh ./syntax.sh; then
| AT_CHECK([/bin/sh -n ../autoconf], 0)
| AT_CHECK([/bin/sh -n ../autoreconf], 0)
| AT_CHECK([/bin/sh -n ../autoupdate], 0)
| AT_CHECK([/bin/sh -n ../autoreconf], 0)
| AT_CHECK([/bin/sh -n ../ifnames], 0)
| fi
|
| to
|
| /bin/sh ./syntax.sh
| if $? -ne 0; then
| AT_CHECK([/bin/sh -n ../autoconf], 0)
| AT_CHECK([/bin/sh -n ../autoreconf], 0)
| AT_CHECK([/bin/sh -n ../autoupdate], 0)
| AT_CHECK([/bin/sh -n ../autoreconf], 0)
| AT_CHECK([/bin/sh -n ../ifnames], 0)
| fi
|
| Give expected behaviour
| Humph ?
Huh! Well, here I need help, I don't understand. Is there anybody on
autoconf@ who can help us?
Akim