1dnl ######################################################################
2dnl set OS libraries specific to an OS:
3dnl libnsl/libsocket are needed only on solaris and some svr4 systems.
4dnl Using a typical macro has proven unsuccesful, because on some other
5dnl systems such as irix, including libnsl and or libsocket actually breaks
6dnl lots of code.  So I am forced to use a special purpose macro that sets
7dnl the libraries based on the OS.  Sigh.  -Erez.
8AC_DEFUN([AMU_CHECK_OS_LIBS],
9[
10AC_CACHE_CHECK(for additional OS libraries,
11ac_cv_os_libs,
12[
13# select the correct set of libraries to link with
14case "${host_os_name}" in
15	svr4* | sysv4* | solaris2* | sunos5* | aoi* )
16			ac_cv_os_libs="-lsocket -lnsl" ;;
17	* )
18			ac_cv_os_libs=none ;;
19esac
20])
21# set list of libraries to link with
22if test "$ac_cv_os_libs" != none
23then
24  LIBS="$ac_cv_os_libs $LIBS"
25fi
26
27])
28dnl ======================================================================
29