diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-07-22 19:45:28 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-07-22 19:45:28 +1000 |
commit | 1515a837ec65ee6fe34ff2c3dffac04531672eac (patch) | |
tree | 04aa90516142c331d42002a2653a524ad10f2a6d /auto.def | |
parent | ec88bf12f4f525f1859a9d5fdbb5d38f193c744e (diff) | |
download | jimtcl-1515a837ec65ee6fe34ff2c3dffac04531672eac.zip jimtcl-1515a837ec65ee6fe34ff2c3dffac04531672eac.tar.gz jimtcl-1515a837ec65ee6fe34ff2c3dffac04531672eac.tar.bz2 |
Help Jim Tcl build on Haiku
Don't use -Werror
Prefer user CFLAGS over default options
Haiku needs -lnetwork for networking functions
Haiku does not have -lm
Haiku does not have SIGIO
Silence some warnings
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r-- | auto.def | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -64,10 +64,17 @@ cc-check-types "long long" cc-check-includes sys/socket.h netinet/in.h arpa/inet.h netdb.h cc-check-includes sys/un.h dlfcn.h unistd.h crt_externs.h +# Haiku needs -lnetwork +if {[cc-check-function-in-lib inet_ntop network]} { + if {[get-define lib_inet_ntop] ne ""} { + cc-with {-libs -lnetwork} + } +} + cc-check-functions ualarm sysinfo lstat fork vfork system select cc-check-functions backtrace geteuid mkstemp realpath strptime gettimeofday cc-check-functions regcomp waitpid sigaction sys_signame sys_siglist -cc-check-functions syslog opendir readlink sleep usleep pipe inet_ntop getaddrinfo +cc-check-functions syslog opendir readlink sleep usleep pipe getaddrinfo define TCL_LIBRARY [get-define prefix]/lib/jim @@ -132,7 +139,7 @@ if {[opt-bool maintainer]} { if {[opt-bool math full]} { msg-result "Enabling math functions" define JIM_MATH_FUNCTIONS - define-append LIBS -lm + cc-check-function-in-lib sin m } if {[opt-bool ipv6 full]} { msg-result "Enabling IPv6" |