configure: add general libs for Solaris
Assume we just need them, this makes us find inet_aton()
on Solaris too.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/configure b/configure
index 8f86749..1a75fa4 100755
--- a/configure
+++ b/configure
@@ -87,7 +87,7 @@
compile_prog() {
local_cflags="$1"
- local_ldflags="$2"
+ local_ldflags="$2 $LIBS"
echo "Compiling test case $3" >> config.log
do_cc $CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
}
@@ -193,6 +193,7 @@
if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
cpu="x86_64"
fi
+ LIBS="-lnsl -lsocket"
;;
CYGWIN*)
echo "Forcing known good options on Windows"
@@ -906,9 +907,6 @@
EOF
if compile_prog "" "" "TCP_NODELAY"; then
tcp_nodelay="yes"
-elif compile_prog "" "-lnsl -lsocket" "TCP_NODELAY"; then
- tcp_nodelay="yes"
- LIBS="-lnsl -lsocket $LIBS"
fi
echo "TCP_NODELAY $tcp_nodelay"