From: Akim Demaille Date: Wed, 1 Mar 2000 12:25:02 +0000 (+0000) Subject: * acspecific.m4 (AC_PATH_XTRA): On LynxOS 3.0.1/i386, X-Git-Tag: autoconf-2.50~1108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93cabdd478e75522edbc859e110d9b7d8ba5aa9a;p=thirdparty%2Fautoconf.git * acspecific.m4 (AC_PATH_XTRA): On LynxOS 3.0.1/i386, gethostbyname(), getservbyname(), and inet_addr() are in -lbsd. --- diff --git a/ChangeLog b/ChangeLog index f91c11f48..d051f7a03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-03-01 Lars Hecking + + * acspecific.m4 (AC_PATH_XTRA): On LynxOS 3.0.1/i386, + gethostbyname(), getservbyname(), and inet_addr() are in -lbsd. + 2000-03-01 Akim Demaille * tests/actest.m4 (AC_ENV_SAVE): Use multiple -e instead of diff --git a/THANKS b/THANKS index f577fef29..d8375be61 100644 --- a/THANKS +++ b/THANKS @@ -68,6 +68,7 @@ Marcus Thiessel marcus@xemacs.org Mark Elbrecht snowball3@usa.net Markku Savela msa@msa.tte.vtt.fi Markus Oberhumer markus.oberhumer@jk.uni-linz.ac.at +Martyn Johnson Martyn.Johnson@cl.cam.ac.uk Matthew D. Langston langston@SLAC.Stanford.EDU Michael Schoene mrs@mlc.de Mike Hopkirk hops@sco.com diff --git a/acspecific.m4 b/acspecific.m4 index 1dda93a5d..19044962c 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -3344,7 +3344,7 @@ else # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" -dnl FIXME banish uname from this macro! +dnl FIXME: banish uname from this macro! # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . case "`(uname -sr) 2>/dev/null`" in @@ -3376,7 +3376,7 @@ dnl FIXME banish uname from this macro! if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else - # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X + # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) @@ -3390,10 +3390,15 @@ dnl FIXME banish uname from this macro! # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display - # on Irix 5.2, according to dickey@clark.net. + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. AC_CHECK_FUNC(gethostbyname) if test $ac_cv_func_gethostbyname = no; then AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") + if test $ac_cv_lib_nsl_gethostbyname = no; then + AC_CHECK_LIB(bsd, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd") + fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, @@ -3409,7 +3414,7 @@ dnl FIXME banish uname from this macro! $X_EXTRA_LIBS) fi - # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. + # Guillermo Gomez says -lposix is necessary on A/UX. AC_CHECK_FUNC(remove) if test $ac_cv_func_remove = no; then AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") @@ -3430,7 +3435,7 @@ dnl FIXME banish uname from this macro! # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. - # --interran@uluru.Stanford.EDU, Karl Berry + # John Interrante, Karl Berry AC_CHECK_LIB(ICE, IceConnectionNumber, [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], , $X_EXTRA_LIBS) LDFLAGS="$ac_save_LDFLAGS" diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 1dda93a5d..19044962c 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -3344,7 +3344,7 @@ else # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" -dnl FIXME banish uname from this macro! +dnl FIXME: banish uname from this macro! # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . case "`(uname -sr) 2>/dev/null`" in @@ -3376,7 +3376,7 @@ dnl FIXME banish uname from this macro! if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else - # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X + # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"]) @@ -3390,10 +3390,15 @@ dnl FIXME banish uname from this macro! # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display - # on Irix 5.2, according to dickey@clark.net. + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. AC_CHECK_FUNC(gethostbyname) if test $ac_cv_func_gethostbyname = no; then AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl") + if test $ac_cv_lib_nsl_gethostbyname = no; then + AC_CHECK_LIB(bsd, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd") + fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, @@ -3409,7 +3414,7 @@ dnl FIXME banish uname from this macro! $X_EXTRA_LIBS) fi - # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. + # Guillermo Gomez says -lposix is necessary on A/UX. AC_CHECK_FUNC(remove) if test $ac_cv_func_remove = no; then AC_CHECK_LIB(posix, remove, X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix") @@ -3430,7 +3435,7 @@ dnl FIXME banish uname from this macro! # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. - # --interran@uluru.Stanford.EDU, Karl Berry + # John Interrante, Karl Berry AC_CHECK_LIB(ICE, IceConnectionNumber, [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], , $X_EXTRA_LIBS) LDFLAGS="$ac_save_LDFLAGS"