From d08fb7b1cc39f4fa92045a4789fcf6182caba907 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 13 Sep 2006 16:51:45 +0000 Subject: r18485: include libreplace.m4 in the aclocal.m4 files and use the macros in configure.ac metze (This used to be commit 95d33e4d71b4c97af8413bcd136f393aa3e380dd) --- source4/build/m4/check_cc.m4 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'source4/build/m4/check_cc.m4') diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index 311caa342e..d8dd407891 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -5,14 +5,7 @@ dnl Released under the GNU GPL dnl ------------------------------------------------------- dnl -# don't let the AC_PROG_CC macro auto set the CFLAGS -OLD_CFLAGS="${CFLAGS}" -AC_PROG_CC -CFLAGS="${OLD_CFLAGS}" -if test x"$CC" = x""; then - AC_MSG_WARN([No c compiler was not found!]) - AC_MSG_ERROR([Please Install gcc from http://gcc.gnu.org/]) -fi +AC_LIBREPLACE_CC_CHECKS if test x"$GCC" = x"yes" ; then AC_MSG_CHECKING([for version of gcc]) @@ -29,9 +22,6 @@ 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, -- cgit