summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 16:51:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:36 -0500
commitd08fb7b1cc39f4fa92045a4789fcf6182caba907 (patch)
treec9103689d7d94412e338e91a551989e1cfd2e14d /source4/build
parent965633a5b4c93e34723f753a807ef0cc77f916fa (diff)
downloadsamba-d08fb7b1cc39f4fa92045a4789fcf6182caba907.tar.gz
samba-d08fb7b1cc39f4fa92045a4789fcf6182caba907.tar.bz2
samba-d08fb7b1cc39f4fa92045a4789fcf6182caba907.zip
r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac metze (This used to be commit 95d33e4d71b4c97af8413bcd136f393aa3e380dd)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/check_cc.m412
1 files changed, 1 insertions, 11 deletions
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,