Bug 12903 - configure fails to produce ada subdirectory
Summary: configure fails to produce ada subdirectory
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 3.4.0
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-05 02:33 UTC by Georg Bauhaus
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: powerpc-apple-darwin6.6
Target: powerpc-apple-darwin6.6
Build: powerpc-apple-darwin6.6
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Bauhaus 2003-11-05 02:33:26 UTC
when in the build directory,
after initial configure --enable-languages="c,ada" ...,
% make CC="cc -no-cpp-precomp"
is entered, a "test" command, repeated below, seems to
fail with "too many arguments".
It seems that in this case the ada directory is not created
during further configuration triggered by make.
Apparently this can be "fixed" by setenv ADAC to a driver named just "cc"
(though it looks like Ada files will still be translated by CC, not ADAC)

excerpt from gcc/gcc/configure, section "Find Ada Compiler":

echo "configure:1849: checking for compiler driver that understands Ada" >&5
if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
Comment 1 Andrew Pinski 2003-11-05 03:50:44 UTC
On my machine (Mac OS X 10.2.6) where both gcc and cc understand Ada, configure produces an 
ada subdirectory with 3.4.  Note there is a bug in gcc right now that Ada will not be able to 
bootstrap on powerpc-apple-darwin6.6 but that is filled under another PR, and I have a fix for that.
Comment 2 Georg Bauhaus 2003-11-05 11:45:28 UTC
Had you been using CC="cc -no-cpp-precomp", i.e., two words?
My cc for C and Ada are the same commands too,
but the test command problem might be one of missing
quotes in at least the second comparison of

if test x$GNATBIND != xno && test x$ADAC != xno; then

because if ADAC  is set to $cand, where cand has been set to
${CC} (set as above), then

+ test xcc -no-cpp-precomp '!=' xno
my-configure-test.sh: test: too many arguments

from which results

+ have_gnat=no