aboutsummaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-31 15:15:26 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-31 15:15:26 +0000
commit256705f4bd88d4a240f4661faea339e6bddef48f (patch)
tree1652d24d728a261d079c55af6d06c90b67c8c840 /aclocal.m4
parenta1129917d77757941eded59e574f5fc9199284cb (diff)
downloadglibc-256705f4bd88d4a240f4661faea339e6bddef48f.zip
glibc-256705f4bd88d4a240f4661faea339e6bddef48f.tar.gz
glibc-256705f4bd88d4a240f4661faea339e6bddef48f.tar.bz2
Update.
1998-10-31 Ulrich Drepper <drepper@cygnus.com> * aclocal.m4 (LIBC_PROG_FOO_GNU): Name output file using -o to avoid ld test generating an unwanted file.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 9613ec6..4da7ef8 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -100,11 +100,12 @@ cross_compiling=$ac_cv_prog_cc_cross
AC_DEFUN(LIBC_PROG_FOO_GNU,
[# Most GNU programs take a -v and spit out some text including
# the word 'GNU'. Some try to read stdin, so give them /dev/null.
-if $1 -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
+if $1 -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
$2
else
$3
-fi])
+fi
+rm -fr contest*])
AC_DEFUN(LIBC_PROG_BINUTILS,
[# Was a --with-binutils option given?