*** pgsql/configure.in 2006/10/30 22:15:04 1.485 --- pgsql/configure.in 2006/11/06 03:44:37 1.486 *************** *** 1,5 **** dnl Process this file with autoconf to produce a configure script. ! dnl $PostgreSQL: pgsql/configure.in,v 1.484 2006/10/23 22:50:19 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl --- 1,5 ---- dnl Process this file with autoconf to produce a configure script. ! dnl $PostgreSQL: pgsql/configure.in,v 1.485 2006/10/30 22:15:04 petere Exp $ dnl dnl Developers, please strive to achieve this order: dnl *************** AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_V *** 640,648 **** ## ## Libraries ## AC_SEARCH_LIBS(setproctitle, util) - AC_SEARCH_LIBS(pow, m) AC_SEARCH_LIBS(dlopen, dl) AC_SEARCH_LIBS(socket, [socket wsock32]) AC_SEARCH_LIBS(shl_load, dld) --- 640,653 ---- ## ## Libraries ## + ## Most libraries are included only if they demonstrably provide a function + ## we need, but libm is an exception: always include it, because there are + ## too many compilers that play cute optimization games that will break + ## probes for standard functions such as pow(). + ## + AC_CHECK_LIB(m, main) AC_SEARCH_LIBS(setproctitle, util) AC_SEARCH_LIBS(dlopen, dl) AC_SEARCH_LIBS(socket, [socket wsock32]) AC_SEARCH_LIBS(shl_load, dld)