only build the LD_PRELOAD hack on linux

This commit is contained in:
Ronnie Sahlberg
2011-07-17 09:56:52 +10:00
parent 768e6b5418
commit cbc5bd5f96
2 changed files with 7 additions and 1 deletions

View File

@@ -16,9 +16,11 @@ fi
is_solaris="no"
install="/usr/bin/install"
ldconfig="ldconfig"
ld_iscsi=""
case `uname` in
Linux*)
ld_iscsi="bin/ld_iscsi.so"
;;
AIX*)
;;
@@ -28,6 +30,9 @@ case `uname` in
ldconfig="echo no ldconfig on solaris"
LIBS="$LIBS -lsocket -lnsl"
;;
CYGWIN*)
ldconfig="echo no ldconfig on cygwin"
;;
*)
;;
esac
@@ -110,6 +115,7 @@ fi
AC_SUBST(libdir)
AC_SUBST(install)
AC_SUBST(ldconfig)
AC_SUBST(ld_iscsi)
#AC_SUBST(LIBISCSI_LDFLAGS)
AC_OUTPUT(Makefile)