Solaris install fixes, solaris needs to use ginstall, not install and it does not have ldconfig

This commit is contained in:
Ronnie Sahlberg
2011-01-03 11:15:50 +11:00
parent adfb7326e3
commit 71ec54603d
2 changed files with 11 additions and 3 deletions

View File

@@ -13,6 +13,10 @@ if test "${libdir}" = '${exec_prefix}/lib'; then
esac
fi
is_solaris="no"
install="/usr/bin/install"
ldconfig="ldconfig"
case `uname` in
Linux*)
AC_DEFINE(HAVE_GETHOSTBYNAME2,1,[Whether we have gethostbyname2 or not])
@@ -20,6 +24,9 @@ case `uname` in
AIX*)
;;
SunOS)
is_solaris="yes"
install="ginstall"
ldconfig="echo no ldconfig on solaris"
LIBS="$LIBS -lsocket -lnsl"
;;
*)
@@ -91,8 +98,9 @@ else
exit
fi
AC_SUBST(libdir)
AC_SUBST(install)
AC_SUBST(ldconfig)
#AC_SUBST(LIBISCSI_LDFLAGS)
AC_OUTPUT(Makefile)