This is the mail archive of the
automake-prs@sourceware.cygnus.com
mailing list for the automake project.
automake/74: configure code fragment doesn't test requirement in depcomp
- To: automake-gnats at sourceware dot cygnus dot com
- Subject: automake/74: configure code fragment doesn't test requirement in depcomp
- From: js dot pendry at msdw dot com
- Date: 11 Jun 2000 08:45:39 -0000
- Reply-To: js dot pendry at msdw dot com
- Resent-Cc: automake-prs at sourceware dot cygnus dot com
- Resent-Reply-To: automake-gnats@sourceware.cygnus.com, js.pendry@msdw.com
>Number: 74
>Category: automake
>Synopsis: configure code fragment doesn't test requirement in depcomp
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 11 01:51:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: js.pendry@msdw.com
>Release: cvs version of automake
>Organization:
>Environment:
Solaris 2.5, SunPro C++ 4.2/5.0
>Description:
depcomp's -M processing (dashmstdout) has the following
comment:
dashmstdout)
# Important note: in order to support this mode, a compiler *must*
# always write the proprocessed file to stdout, regardless of -o,
# because we must use -o when running libtool.
SunPro C handles this correctly, however SunPro C++
doesn't. While this is arguably a bug in SunPro C++,
the code fragment in m4/depend.m4 doesn't test for
this requirement. The test doesn't use the -o option and
the effect is that dashmstdout is selected even though
it doesn't work with -o.
a workaround is attached. however, this assumes that
-o works everywhere which may also not be a correct
assumption. a more sophisticated way of doing the
test is needed.
>How-To-Repeat:
>Fix:
RCS file: /cvs/automake/automake/m4/depend.m4,v
retrieving revision 1.2
diff -c -2 -r1.2 depend.m4
*** depend.m4 1999/11/21 21:35:41 1.2
--- depend.m4 2000/06/11 08:30:28
***************
*** 45,49 ****
source=conftest.c object=conftest.o \
depfile=conftest.Po tmpdepfile=conftest.TPo \
! $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
grep conftest.h conftest.Po > /dev/null 2>&1; then
am_cv_[$1]_dependencies_compiler_type="$depmode"
--- 45,49 ----
source=conftest.c object=conftest.o \
depfile=conftest.Po tmpdepfile=conftest.TPo \
! $SHELL $am_depcomp $depcc -c conftest.c -o conftest.o 2>/dev/null &&
grep conftest.h conftest.Po > /dev/null 2>&1; then
am_cv_[$1]_dependencies_compiler_type="$depmode"
>Release-Note:
>Audit-Trail:
>Unformatted: