mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	Not only check for poll(), make sure poll.h exists as well
This fixes building ngIRCd on Debian GNU/Linux 1.3 "Bo" :-)
This commit is contained in:
		
							
								
								
									
										15
									
								
								configure.in
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								configure.in
									
									
									
									
									
								
							| @@ -252,13 +252,22 @@ AC_ARG_WITH(poll, | ||||
| 				CPPFLAGS="-I$withval/include $CPPFLAGS" | ||||
| 				LDFLAGS="-L$withval/lib $LDFLAGS" | ||||
| 			fi | ||||
| 			AC_CHECK_FUNCS(poll, x_io_backend=poll\(\), | ||||
| 				AC_MSG_ERROR([Can't enable poll IO support!]) | ||||
| 			AC_CHECK_FUNCS(poll, | ||||
| 				AC_CHECK_HEADERS(poll.h, | ||||
| 					x_io_backend=poll\(\), | ||||
| 						AC_MSG_ERROR( | ||||
| 						[Can't enable poll IO support!]) | ||||
| 					, | ||||
| 					AC_MSG_ERROR( | ||||
| 						[Can't enable poll IO support!]) | ||||
| 				) | ||||
| 			) | ||||
| 		fi | ||||
| 	], | ||||
| 	[ | ||||
| 		AC_CHECK_FUNCS(poll, x_io_backend=poll\(\)) | ||||
| 		AC_CHECK_FUNCS(poll, | ||||
| 			AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\)) | ||||
| 		) | ||||
| 	] | ||||
| ) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton