Problem with check for functions with Sun CC

2002-05-02 Thread Martin Frydl
I've made check for getcwd function and used the generated script with Sun's CC compiler. It reports unexisting getcwd even if it really exists. Here is what I've done: configure.in (just generating config.h): AC_INIT() AC_PROG_CC AC_PROG_CXX AC_CHECK_FUNCS(getcwd) AC_CONFIG_HEADER(config.h) AC_

Re: Problem with check for functions with Sun CC

2002-05-02 Thread Andreas Schwab
Martin Frydl <[EMAIL PROTECTED]> writes: |> The compiler complains about extern "C". My question is whether this is |> autoconf bug or should I use ./configure CC=cc CXX=CC to really use C |> compiler for these tests. The latter. You cannot expect meaningfull results when compiling C code with

Re: Problem with check for functions with Sun CC

2002-05-02 Thread Martin Frydl
Andreas Schwab wrote: > > Martin Frydl <[EMAIL PROTECTED]> writes: > > |> The compiler complains about extern "C". My question is whether this is > |> autoconf bug or should I use ./configure CC=cc CXX=CC to really use C > |> compiler for these tests. > > The latter. You cannot expect meaningf

Re: Problem with check for functions with Sun CC

2002-05-02 Thread Steve M. Robbins
On Thu, May 02, 2002 at 07:41:03PM +0200, Martin Frydl wrote: > Andreas Schwab wrote: > > > > Martin Frydl <[EMAIL PROTECTED]> writes: > > > > |> The compiler complains about extern "C". My question is whether this is > > |> autoconf bug or should I use ./configure CC=cc CXX=CC to really use C >