Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Molaro <lupus@oddwiz.org>2004-08-10 12:56:24 +0400
committerPaolo Molaro <lupus@oddwiz.org>2004-08-10 12:56:24 +0400
commit3a80172e9a0a265de7750db8f08291f0f29b854b (patch)
treedfdea285d957e9ab9127e0de099601af151075bc /configure.in
parent2fe23db0c0c64f170b04b4fb6927d6ecb76776ae (diff)
Detect old compilers.
svn path=/trunk/mono/; revision=32133
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 5af998712d2..a47c13c4e56 100644
--- a/configure.in
+++ b/configure.in
@@ -1028,6 +1028,18 @@ ac_cv_c_socklen_t=yes
AC_MSG_RESULT(no)
])
+AC_MSG_CHECKING(for array element initalizer support)
+AC_TRY_COMPILE([#include <sys/socket.h>], [
+ const int array[] = {[1] = 2,};
+], [
+ # Yes, we have it...
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_ARRAY_ELEM_INIT)
+], [
+ # We'll have to use signals
+ AC_MSG_RESULT(no)
+])
+
AC_CHECK_FUNCS(trunc, , AC_MSG_CHECKING(for trunc in math.h)
# Simply calling trunc (0.0) is no good since gcc will optimize the call away
AC_TRY_LINK([#include <math.h>],