freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Patches against current cvs for acinclude.m4 and configure.in
- From: Harry Felder <harry AT rentec.com>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: Patches against current cvs for acinclude.m4 and configure.in
- Date: Mon, 12 Aug 2002 14:38:45 -0400
Hi all:
The below patches correct some problems I have with the current cvs of
freetds in a Solaris environment. The acinclude.m4 patch is just
a typo correction.
The configure.in patch is perhaps not the most elegent way to solve
the problem, but is effective! Someone who is more skilled than I
am in the ways of autoconf macros can perhaps come up with a better
way. Basically Solaris has the gethostbyXXX function calls in
libnsl.so, which earlier is added to $NETWORK_LIBS. So the testing
of the gethostbyXXX function varients needs to ensure that $NETWORK_LIBS
is included in the test links.
hf
ROE: diff -c acinclude.m4.ORIG acinclude.m4
*** acinclude.m4.ORIG Mon Aug 12 13:13:46 2002
--- acinclude.m4 Mon Aug 12 13:14:40 2002
***************
*** 310,319 ****
hp = gethostbyaddr_r(address, length, type, &h,
buffer, 8192, &h_errnop);
! ],ac_cv_func_which_gethostbyaddr_r=seven,
[
! dnl ac_cv_func_which_gethostbyaddr_r=no
AC_TRY_COMPILE([
#include <sys/types.h>
#include <netdb.h>
--- 310,319 ----
hp = gethostbyaddr_r(address, length, type, &h,
buffer, 8192, &h_errnop);
! ],ac_cv_func_which_gethostaddr_r=seven,
[
! dnl ac_cv_func_which_gethostaddr_r=no
AC_TRY_COMPILE([
#include <sys/types.h>
#include <netdb.h>
ROE: diff -c configure.in.ORIG configure.in
*** configure.in.ORIG Mon Aug 12 13:15:58 2002
--- configure.in Mon Aug 12 13:17:23 2002
***************
*** 124,132 ****
--- 124,135 ----
dnl Checks for library functions.
dnl ------------------------------------------------------------
+ old_ac_link=$ac_link
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $NETWORK_LIBS $LDFLAGS
conftest.$ac_ext $LIBS >&5'
AC_caolan_FUNC_WHICH_GETHOSTBYNAME_R
AC_raf_FUNC_WHICH_GETSERVBYNAME_R
AC_tds_FUNC_WHICH_GETHOSTBYADDR_R
+ ac_link=$old_ac_link
AC_CHECK_FUNCS(atoll)
AC_MSG_CHECKING(if 64-bit arithmetic is available)
- Patches against current cvs for acinclude.m4 and configure.in, Harry Felder, 08/12/2002
Archive powered by MHonArc 2.6.24.