CC configure (AC_CHECK_LIB macro) problem on Solaris

From: Markus Moeller <huaraz_at_moeller.plus.com>
Date: Thu, 3 Jun 2010 19:36:34 +0100

Hi,

I have a problem with

 CC=cc CXX=CC ./configure;

because any check like AC_CHECK_LIB(malloc, main) fails. Is there a known
workaround ?

Thank you
Markus

from 3-HEAD I get:

...

configure:48735: checking for main in -lmalloc
configure:48764: CC -o
conftest -g -I/usr/include/gssapi -I/usr/include/kerberosv5 -g
conftest.cpp -lmalloc -lsocket -lresolv -lnsl >&5
"conftest.cpp", line 224: Error: Cannot have a recursive call of main().
1 Error(s) detected.
configure:48770: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Squid Web Proxy"
| #define PACKAGE_TARNAME "squid"
| #define PACKAGE_VERSION "3.HEAD-20100601"
| #define PACKAGE_STRING "Squid Web Proxy 3.HEAD-20100601"
| #define PACKAGE_BUGREPORT "http://www.squid-cache.org/bugs/"
| #define PACKAGE "squid"
| #define VERSION "3.HEAD-20100601"
| #define USE_LOADABLE_MODULES 1
....
| int
| main ()
| {
| return main ();
| ;
| return 0;
| }
Received on Thu Jun 03 2010 - 18:36:50 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 04 2010 - 12:00:08 MDT