From c2cde930ed189d70846bf86acfddf6fdd0c998f9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 1 Aug 2006 20:31:11 +0000 Subject: Moved some basic checks above the checks on the libraries we depend on, in order to get rid of the confusing rpl_realloc error. --- configure.ac | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ce30607f..d8f980d3 100755 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,20 @@ AC_PROG_CC AC_PROG_INSTALL AC_PROG_MAKE_SET +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_CONST +AC_HEADER_TIME +AC_C_VOLATILE + +# Checks for library functions. +AC_FUNC_ERROR_AT_LINE +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_FUNC_SELECT_ARGTYPES +AC_FUNC_VPRINTF +AC_CHECK_FUNCS([atexit floor getcwd gethostbyname memset mkdir select socket]) + # Checks for libraries AC_CHECK_LIB([pthread], [pthread_create], , AC_MSG_ERROR([ *** Unable to find pthread library ])) @@ -57,20 +71,6 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h str AC_CHECK_HEADERS([guichan.hpp], , AC_MSG_ERROR([*** Library found but cannot find headers (guichan.sf.net) *** ])) -# Checks for typedefs, structures, and compiler characteristics. -AC_HEADER_STDBOOL -AC_C_CONST -AC_HEADER_TIME -AC_C_VOLATILE - -# Checks for library functions. -AC_FUNC_ERROR_AT_LINE -AC_FUNC_MALLOC -AC_FUNC_REALLOC -AC_FUNC_SELECT_ARGTYPES -AC_FUNC_VPRINTF -AC_CHECK_FUNCS([atexit floor getcwd gethostbyname memset mkdir select socket]) - AM_INIT_AUTOMAKE # Option to enable OpenGL -- cgit v1.2.3-70-g09d2