Skip to content
Snippets Groups Projects
Commit 450aea15 authored by ballen4705's avatar ballen4705
Browse files

Only include libnsl if needed, and make search for libsocket conditional

on libnsl not being enough.  Keiji, please double-check this for me.


git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@1657 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent df30c007
No related branches found
No related tags found
No related merge requests found
# #
# $Id: configure.in,v 1.72 2004/04/07 16:41:43 card_captor Exp $ # $Id: configure.in,v 1.73 2004/04/08 18:18:39 ballen4705 Exp $
# #
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.50) AC_PREREQ(2.50)
...@@ -7,7 +7,7 @@ AC_INIT(smartmontools, 5.31, smartmontools-support@lists.sourceforge.net) ...@@ -7,7 +7,7 @@ AC_INIT(smartmontools, 5.31, smartmontools-support@lists.sourceforge.net)
AC_CONFIG_SRCDIR(smartctl.c) AC_CONFIG_SRCDIR(smartctl.c)
smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"` smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"`
smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.72 2004/04/07 16:41:43 card_captor Exp $'` smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.73 2004/04/08 18:18:39 ballen4705 Exp $'`
smartmontools_release_date=2004/03/07 smartmontools_release_date=2004/03/07
smartmontools_release_time="20:57:36 UTC" smartmontools_release_time="20:57:36 UTC"
...@@ -39,9 +39,10 @@ case "${host}" in ...@@ -39,9 +39,10 @@ case "${host}" in
CPPFLAGS="$CPPFLAGS -idirafter ${srcdir}/posix -idirafter ${srcdir}/os_win32" CPPFLAGS="$CPPFLAGS -idirafter ${srcdir}/posix -idirafter ${srcdir}/os_win32"
esac esac
dnl Checks for libraries. dnl Checks for libraries.needed for gethostbyname (Solaris needs
AC_CHECK_LIB(nsl, main, LIBS="-lnsl ${LIBS}") dnl libnsl, might in the future also need libsocket)
AC_CHECK_LIB(socket, main, LIBS="-lsocket ${LIBS}";) # AC_SEARCH_LIBS (FUNCTION, SEARCH-LIBS, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [OTHER-LIBRARIES])
AC_SEARCH_LIBS(gethostbyname, nsl, , AC_SEARCH_LIBS(gethostbyname, nsl, , , -lsocket), , )
dnl Checks for header files. dnl Checks for header files.
AC_CHECK_HEADER([getopt.h]) AC_CHECK_HEADER([getopt.h])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment