Oddity building 3.2.2 on AIX 4.3.2

Albert Chin gcc@lists.thewrittenword.com
Sun Feb 9 15:31:00 GMT 2003


I'm attempting to build 3.2.2 on AIX 4.3.2 with the AIX compiler and
something odd is happening. Between the 3.2.1 and 3.2.2 releases, the
following was added to zlib/configure:
  if test -n "$with_cross_host" &&
     test x"$with_cross_host" != x"no"; then
    toolexecdir='$(exec_prefix)/$(target_alias)'
    toolexeclibdir='$(toolexecdir)/lib'
  else
    toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
    toolexeclibdir='$(libdir)'
  fi
  toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory 2>/dev/null || echo .`

On AIX, the following will generate usage output from the C compiler:
  $ /bin/sh
  $ /usr/vac/bin/cc -print-multi-os-directory
The following will print `.':
  $ /bin/sh
  /usr/vac/bin/cc -print-multi-os-directory 2>/dev/null || echo .

However, whenever the above code is run, the output of
toolexeclibdir=$toolexeclibdir/... is *always* the usage output from
the C compiler. This later trips up config.status generating an empty
Makefile. I thought it was a /bin/sh error so upgraded to the latest
bos.rte.shell release (4.3.3.83) but that didn't fix anything.  I'm at
a loss for what's going on.

-- 
albert chin (china@thewrittenword.com)



More information about the Gcc mailing list