Are you building with gcc? Using SUNWwxwidgets?

/usr/bin/wx-config emits cflags/ldflags compatible with SunStudio, 
including the use of '-mt', which on my system causes gcc (cc1) to choke.

In the config.log I see:

configure:7797: /usr/sfw/bin/gcc -o conftest -g -O2 -mt -D_REENTRANT  
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  conftest.c -lchm   >&5
cc1: error: invalid option `t'

I did a simple test of modifying wx-config to not emit the '-mt' flag 
and the configure script ran ok. It probably needs an option added to 
configure.in to not use wx-config, or somehow using the --with-wx* 
options to the existing ./configure.

But then if you are using Sun Studio you can ignore the above :o) (I 
doubt if you are though as the configure script runs fine with SunStudio)

Amanda




Tomas Bodzar wrote:
> This looks more promising 
> http://www.gnu.org/software/hello/manual/autoconf/Present-But-Cannot-Be-Compiled.html
>
> but I'm not sure what I must add after this line in configure.in :
>
> AC_CHECK_HEADER(chm_lib.h,,AC_MSG_ERROR([Can't find the CHMLIB header.]))
>   

Reply via email to