Hello..

Im having some troubles getting libtool to run properly on IRIX,  Im trying to 
integrate the autobuild system into some software, and everything works fine on Linux, 
but Irix is a different story.

When the generated makefile is run, this is the output:

     /bin/sh ../../libtool --mode=compile CC <***> -LANG:std -fullwarn -woff 
1110,1209,1424,3201 -c foo.cc
     rm -f .libs/foo.lo
     CC <***> -LANG:std -fullwarn -woff 1110,1209,1424,3201 -Wp,-MD,.deps/foo.pp -c 
foo.cc  -DPIC -o .libs/foo.lo
     cc-1574 CC: ERROR
       The definition of macro %sq is not valid.
 
     cc-1005 CC: ERROR
       The source file ".deps/foo.pp" is unavailable.                              

NB: <***> is where a whole bunch of -D's and -I's were, they were snipped for 
clarity's sake

If I, however, copy the first line, and simple run it from the shell, everything works 
fine!! here is the output:


     $> /bin/sh ../../libtool --mode=compile CC <***> -LANG:std -fullwarn -woff 
1110,1209,1424,3201 -c foo.cc

    rm -f .libs/foo.lo
    CC <***> -LANG:std -fullwarn -woff 1110,1209,1424,3201 -c foo.cc  -DPIC -o 
.libs/foo.lo
    mv -f .libs/foo.lo foo.o
    (cd . && ln -s foo.o foo.lo)

Notice the missing -Wp,-MD.. statement, which I assume is the problem.

The only conclusion I can draw from this is that libtool is getting incorrectly 
configured in my configure script which could be closely related to another problem I 
was having: under Irix, gcc will be used to compile even tho I would like the code to 
compile with IRIX's C++ compiler (CC)

To solve this problem, I did the following in configure.in:

  case "${os}" in
    Linux) CXX=g++;
           CC=gcc; 
           CXXFLAGS="-LANG:std -Wall -Wno-reorder -Wno-unused -Wno-sign-compare";;
    Irix)  CXX=CC;
           CC=cc;
           CXXFLAGS="-LANG:std -fullwarn -woff 1110,1209,1424,3201";;
    *)     AC_PROG_CXX;;
  esac

this is one of the first things to get done in configure.in, AM_PROG_LIBTOOL comes 
after.  So im suspecting that my libtool troubles are realted to the fact that 
AC_PROG_CXX is not being used correctly, am I forgetting to set any varibales that 
AM_PROG_CXX would normally set??? Ive also tried setting DLD, LD, PIC, AR, ARFLAGS, 
and RANLIB in this case statement... no luck.

I have read over all of the GNU documentation of Automake, Autoconf and Libtool, as 
well as "GNU automake, autoconf, and libtool" that is available online at 
sources.redhat.com and I cant seem to find the solution

I also ran the testsuite and it failed on hardcode.test, but I suspect this is not the 
problem

Anyone got any suggestions??

Thank you all for your time

-Paul Wighton

_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to