mirror of
				https://github.com/zeromq/libzmq.git
				synced 2025-10-29 20:59:47 +01:00 
			
		
		
		
	Replace check for sparc with host_cpu
This commit is contained in:
		
							
								
								
									
										23
									
								
								configure.in
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								configure.in
									
									
									
									
									
								
							| @@ -175,23 +175,14 @@ case "${host_os}" in | |||||||
|         ;; |         ;; | ||||||
| esac | esac | ||||||
|  |  | ||||||
| # Check if we are running at sparc harware | # CPU-specific optimizations | ||||||
| AC_MSG_CHECKING([wheter __sparc__ is defined]) | case "${host_cpu}" in | ||||||
| AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |     *sparc*) | ||||||
|     [[#if defined __sparc__ |  | ||||||
|         //OK we are on sparc |  | ||||||
|     #else |  | ||||||
|         error: we are not on sparc |  | ||||||
|     #endif |  | ||||||
|     ]])], |  | ||||||
|         [sparc=yes], |  | ||||||
|         [sparc=no]) |  | ||||||
|  |  | ||||||
| AC_MSG_RESULT([$sparc]) |  | ||||||
|          |  | ||||||
| if test "x$sparc" = "xyes"; then |  | ||||||
|         CPPFLAGS="$CPPFLAGS -mcpu=v9" |         CPPFLAGS="$CPPFLAGS -mcpu=v9" | ||||||
| fi |     ;; | ||||||
|  |     *) | ||||||
|  |     ;; | ||||||
|  | esac | ||||||
|  |  | ||||||
| # Checks for header files. | # Checks for header files. | ||||||
| AC_HEADER_STDC | AC_HEADER_STDC | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Martin Lucina
					Martin Lucina