diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-08 13:47:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:58 -0500 |
commit | 52102bc76cdad859ba170ca96d119610efb12be2 (patch) | |
tree | 437ef8cb0c8e8e6f314c9db671971b8b7ad8b0f4 | |
parent | 0627a4715d0aae2acf9d986657cacf5a7dd073a5 (diff) | |
download | samba-52102bc76cdad859ba170ca96d119610efb12be2.tar.gz samba-52102bc76cdad859ba170ca96d119610efb12be2.tar.bz2 samba-52102bc76cdad859ba170ca96d119610efb12be2.zip |
r18266: we should bail out in configure if C99 structs are not support
tridge: I think we should create macros in libreplace_macros.m4
and call them in check_cc.m4 instead of running the tests
in libreplace.m4. Maybe the macros should remember if they're called
and then they're skipped in libreplace.m4 inside samba4
metze
(This used to be commit ce08bf12803869914b35c05e125070f267daf78c)
-rw-r--r-- | source4/build/m4/check_cc.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index 2b222f9f4b..4f714402cf 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -29,6 +29,18 @@ if test x$ac_cv_prog_cc_g = xyes -a x$debug = xyes; then CFLAGS="${CFLAGS} -g" fi +dnl needed before AC_TRY_COMPILE +AC_ISC_POSIX + +############################################ +# check if the compiler handles c99 struct initialization +LIBREPLACE_C99_STRUCT_INIT(samba_cv_c99_struct_initialization=yes, + samba_cv_c99_struct_initialization=no) + +if test x"$samba_cv_c99_struct_initialization" != x"yes"; then + AC_MSG_WARN([C compiler does not support c99 struct initialization!]) + AC_MSG_ERROR([Please Install gcc from http://gcc.gnu.org/]) +fi ############################################ # check if the compiler can handle negative enum values |