Add support for Solaris, Irix, and modern Linux. From David Love <fx@gnu.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14973 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -15,6 +15,13 @@ if test "$enable_pthread_support" = maybe; then | |||||||
| case "$host" in  | case "$host" in  | ||||||
| *-*-solaris2*) | *-*-solaris2*) | ||||||
| 	enable_pthread_support=yes | 	enable_pthread_support=yes | ||||||
|  | 	if test "$GCC" = yes; then | ||||||
|  | 		PTHREADS_CFLAGS=-pthreads | ||||||
|  | 		PTHREADS_LIBS=-pthreads | ||||||
|  | 	else | ||||||
|  | 		PTHREADS_CFLAGS=-mt | ||||||
|  | 		PTHREADS_LIBS=-mt | ||||||
|  | 	fi | ||||||
| 	;; | 	;; | ||||||
| *-*-netbsd*) | *-*-netbsd*) | ||||||
| 	enable_pthread_support="if running netbsd 1.6T or newer" | 	enable_pthread_support="if running netbsd 1.6T or newer" | ||||||
| @@ -24,12 +31,20 @@ case "$host" in | |||||||
| *-*-freebsd5*) | *-*-freebsd5*) | ||||||
| 	enable_pthread_support=yes | 	enable_pthread_support=yes | ||||||
| 	;; | 	;; | ||||||
| *-*-linux2[4-9]*) | *-*-linux* | *-*-linux-gnu) | ||||||
|  | 	case `uname -r` in | ||||||
|  | 	2.*) | ||||||
| 		enable_pthread_support=yes | 		enable_pthread_support=yes | ||||||
|  | 		PTHREADS_CFLAGS=-pthread | ||||||
|  | 		;; | ||||||
|  | 	esac | ||||||
| 	;; | 	;; | ||||||
| *-*-aix*) | *-*-aix*) | ||||||
| 	enable_pthread_support=yes | 	enable_pthread_support=yes | ||||||
| 	;; | 	;; | ||||||
|  | mips-sgi-irix6.[[5-9]])  # maybe works for earlier versions too | ||||||
|  | 	enable_pthread_support=yes | ||||||
|  | 	;; | ||||||
| *) | *) | ||||||
| 	enable_pthread_support=no | 	enable_pthread_support=no | ||||||
| 	;; | 	;; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand