autoconf: fix warning, replace AC_TRY_COMPILE with AC_COMPILE_IFELSE
The code produced in the configure script is identical. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
		
							parent
							
								
									e38c98fe74
								
							
						
					
					
						commit
						02d866a088
					
				
							
								
								
									
										10
									
								
								configure.ac
								
								
								
								
							
							
						
						
									
										10
									
								
								configure.ac
								
								
								
								
							|  | @ -1820,13 +1820,13 @@ if test "x$XORG" = xyes; then | ||||||
| 		save_CFLAGS="$CFLAGS" | 		save_CFLAGS="$CFLAGS" | ||||||
| 		proto_inc=`$PKG_CONFIG --cflags xproto` | 		proto_inc=`$PKG_CONFIG --cflags xproto` | ||||||
| 		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" | 		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" | ||||||
| 		AC_TRY_COMPILE( | 		AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ | ||||||
| 		    [#include <X11/Xfuncproto.h> | 		    [#include <X11/Xfuncproto.h> | ||||||
| 		     extern _X_HIDDEN int hidden_int; | 		     extern _X_HIDDEN int hidden_int; | ||||||
| 		     extern _X_EXPORT int public_int; | 		     extern _X_EXPORT int public_int; | ||||||
| 		     extern _X_HIDDEN int hidden_int_func(void); | 		     extern _X_HIDDEN int hidden_int_func(void); | ||||||
| 		     extern _X_EXPORT int public_int_func(void);], | 		     extern _X_EXPORT int public_int_func(void);]], | ||||||
| 		    [], | 		    [])], | ||||||
| 		    have_visibility=yes, | 		    have_visibility=yes, | ||||||
| 		    have_visibility=no) | 		    have_visibility=no) | ||||||
| 		CFLAGS=$save_CFLAGS | 		CFLAGS=$save_CFLAGS | ||||||
|  | @ -2386,12 +2386,12 @@ dnl though, thanks to the passing of some significant amount of time, the | ||||||
| dnl above is probably a complete fallacy, and you should not rely on it. | dnl above is probably a complete fallacy, and you should not rely on it. | ||||||
| dnl but this is still actually better than imake, honest. -daniels | dnl but this is still actually better than imake, honest. -daniels | ||||||
| 
 | 
 | ||||||
| AC_TRY_COMPILE([ | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||||||
| #include <features.h> | #include <features.h> | ||||||
| #ifndef __GLIBC__ | #ifndef __GLIBC__ | ||||||
| #error not glibc | #error not glibc | ||||||
| #endif | #endif | ||||||
| ], [], [AC_DEFINE(_GNU_SOURCE, 1, | ]], [])], [AC_DEFINE(_GNU_SOURCE, 1, | ||||||
| 	[ Enable GNU and other extensions to the C environment for glibc])]) | 	[ Enable GNU and other extensions to the C environment for glibc])]) | ||||||
| 
 | 
 | ||||||
| AC_DEFINE_DIR(PROJECTROOT, prefix, [Overall prefix]) | AC_DEFINE_DIR(PROJECTROOT, prefix, [Overall prefix]) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue