From: Ezra Peisach Date: Tue, 31 Oct 2000 17:37:48 +0000 (+0000) Subject: * aclocal.m4 (AC_LIBRARY_NET): Newer versions of autoconf are more X-Git-Tag: krb5-1.3-alpha1~1786 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4ed06c42ca54a1e28cc9db1b97e6cdf0350c82fe;p=krb5.git * aclocal.m4 (AC_LIBRARY_NET): Newer versions of autoconf are more sensative to using macros within macros without quoting. Quote AC_CHECK_LIB calls within AC_CHECK_LIB macro. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12826 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 98bfe262d..3614b930a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2000-10-31 Ezra Peisach + + * aclocal.m4 (AC_LIBRARY_NET): Newer versions of autoconf are more + sensative to using macros within macros without quoting. Quote + AC_CHECK_LIB calls within AC_CHECK_LIB macro. + 2000-10-27 Ezra Peisach * aclocal.m4 (ac_config_fragdir): Set AUTOCONFFLAGS to use the diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 267ea43b9..7b917a796 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1155,22 +1155,22 @@ dnl AC_DEFUN(AC_LIBRARY_NET, [ # Most operating systems have gethostbyname() in the default searched # libraries (i.e. libc): - AC_CHECK_FUNC(gethostbyname, , + AC_CHECK_FUNC(gethostbyname, , [ # Some OSes (eg. Solaris) place it in libnsl: - AC_CHECK_LIB(nsl, gethostbyname, , + AC_CHECK_LIB(nsl, gethostbyname, , [ # Some strange OSes (SINIX) have it in libsocket: - AC_CHECK_LIB(socket, gethostbyname, , + AC_CHECK_LIB(socket, gethostbyname, , [ # Unfortunately libsocket sometimes depends on libnsl. # AC_CHECK_LIB's API is essentially broken so the following # ugliness is necessary: AC_CHECK_LIB(socket, gethostbyname, LIBS="-lsocket -lnsl $LIBS", - AC_CHECK_LIB(resolv, gethostbyname, - LIBS="-lresolv $LIBS" ; RESOLV_LIB=-lresolv), + [AC_CHECK_LIB(resolv, gethostbyname, + LIBS="-lresolv $LIBS" ; RESOLV_LIB=-lresolv)], -lnsl) - ) - ) - ) + ]) + ]) + ]) AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket, , AC_CHECK_LIB(socket, socket, LIBS="-lsocket -lnsl $LIBS", , -lnsl))) KRB5_AC_ENABLE_DNS