Ronnie Sahlberg
027ff2fdca
Solaris: older versions of solaris needs to link with nsl/socket
2013-06-29 12:16:16 -07:00
Ronnie Sahlberg
b73e91c89a
Don't use -Wwrite-strings on Solaris
...
They have a weirdass struct option {} so we can't use this warning.
2013-06-29 12:10:43 -07:00
Doug Goldstein
2d43a056a9
Allow users to disable -Werror at configure time
...
Some users and distro packagers might not want to build with -Werror,
this allows them to disable using -Werror but enables it in the default
case so as to maintain the current behavior.
2013-06-05 14:28:48 -05:00
Paolo Bonzini
bcb2950d8d
use libgcrypt for MD5
...
This makes sure that CHAP authentication is disabled if the system
is running in FIPS 140-2 mode. MD5 is not a secure algorithm according
to the standard.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-05-03 12:51:15 +02:00
Ronnie Sahlberg
b3ca40efbe
Get rid of the popt dependency
2013-04-21 10:25:30 -07:00
Ronnie Sahlberg
402653b9f3
portability updates
...
add check if ipv6/sockaddr_in6 is availavble or not
add check for poll.h and only include when available
add includes for AROS
2013-04-18 19:43:36 -07:00
Paolo Bonzini
5bb67f0a0b
remove libdir hack
...
This does not work with Debian (which uses lib32 or multiarch) nor
when cross-compiling.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-02-22 18:01:23 +01:00
Paolo Bonzini
a5fd68472e
distribute pkgconfig file
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-02-22 18:01:22 +01:00
Ronnie Sahlberg
d21ad441bf
Add check for libcunit and only build the test suite if libcunit is available
2013-01-06 11:28:07 -08:00
Lee Duncan
efcb6a4df9
Added no-strict-aliasing to compile flags.
...
Would not compile on my openSUSE 12.2 system without this fix.
2012-12-22 10:59:07 -08:00
Ronnie Sahlberg
736e175e83
Build with -Werror
2012-11-11 10:15:52 -08:00
Michael Tokarev
aee0e3bf72
always export iscsi_set_tcp_keepalive()
...
Set only the (socket) options which are defined on a given platform.
The function becomes a no-op if no option is known at complie time.
Remove autoconf test for HAVE_TCP_KEEPALIVE too.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2012-05-12 08:41:34 +10:00
Ronnie Sahlberg
846ace255a
Autoconf: Remove AS_SET_STATUS to be compatible with autoconf < 2.65
2012-03-10 10:55:48 +11:00
Ronnie Sahlberg
add1ce67e4
Revert "Rename libiscsi to libiscsiclient to avoid clash with obscure linux library"
...
We dont need to change name anymore so witch back to original libiscsi name
This reverts commit c4386dfb87 .
2012-03-07 14:30:37 +11:00
Ronnie Sahlberg
c4386dfb87
Rename libiscsi to libiscsiclient to avoid clash with obscure linux library
...
Change to version 2
2012-03-03 17:01:37 +11:00
Paolo Bonzini
b4bddce2c6
compile the library if popt is not available
2011-10-28 17:05:00 +02:00
Paolo Bonzini
a235a20fda
remove LOGDIR
...
It looks unused
2011-10-28 17:05:00 +02:00
Paolo Bonzini
17319072b1
use automake and libtool
...
This commits replaces the handwritten makefile with automake+libtool.
There is some hackery needed for the LD_PRELOAD shared library,
but apart from that there is nothing special and it is a large gain in
portability and standardization.
The spec file is modified as little as is needed to properly build
the RPMs.
2011-10-28 17:04:59 +02:00
Ronnie Sahlberg
49017fda58
OpenSolaris: Add support for opensolaris
2011-09-01 18:04:29 +10:00
Ronnie Sahlberg
cbc5bd5f96
only build the LD_PRELOAD hack on linux
2011-07-17 09:56:52 +10:00
Ronnie Sahlberg
b6782dd7c8
TCP KEEPALIVE support
...
Add tcp keeplaive support on platforms that support these socket options.
Set default to fail the socket after 120 seconds
2011-04-13 21:37:28 +10:00
Ronnie Sahlberg
87072d5622
Dont use gethostbyname2() at all since it is non-portable,
...
use gethostbyname() instead.
2011-01-03 14:48:43 +11:00
Ronnie Sahlberg
71ec54603d
Solaris install fixes, solaris needs to use ginstall, not install and it does not have ldconfig
2011-01-03 11:15:50 +11:00
Ronnie Sahlberg
adfb7326e3
Solaris needs -lsocket and -lnsl and does not support gethostbyname2()
...
With these changes we build and work on solaris
2011-01-03 10:57:35 +11:00
Ronnie Sahlberg
4e5fb3a60b
We need libpopt-dev to compile the utilities.
...
Add a test to configure to verify popt development libraries are available
and print an error and exit otherwise.
2010-12-05 14:48:34 +11:00
Ronnie Sahlberg
631954405a
add prefix exec_prefix libdir and bindir to the makefile
2010-12-05 13:40:48 +11:00
Ronnie Sahlberg
d7a1103e13
Add initial autoconf support to make it easier to get ported to
...
other platforms
2010-12-05 13:31:11 +11:00