r18485: include libreplace.m4 in the aclocal.m4 files
authorStefan Metzmacher <metze@samba.org>
Wed, 13 Sep 2006 16:51:45 +0000 (16:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:36 +0000 (14:18 -0500)
and use the macros in configure.ac

metze
(This used to be commit 95d33e4d71b4c97af8413bcd136f393aa3e380dd)

14 files changed:
source4/aclocal.m4
source4/build/m4/check_cc.m4
source4/configure.ac
source4/lib/ldb/aclocal.m4
source4/lib/ldb/configure.ac
source4/lib/replace/aclocal.m4
source4/lib/replace/configure.ac
source4/lib/replace/libreplace.m4
source4/lib/replace/libreplace_macros.m4
source4/lib/replace/samba.m4
source4/lib/talloc/aclocal.m4
source4/lib/talloc/configure.ac
source4/lib/tdb/aclocal.m4
source4/lib/tdb/configure.ac

index f5437e6683ba0946c1921c9da1d3892bdb0ba80e..df29bf1995c954c250b69be777e502b841a91615 100644 (file)
@@ -34,7 +34,7 @@ AC_DEFUN(LIB_REMOVE_USR_LIB,[
   $1=[$]ac_new_flags
 ])
 
-m4_include(lib/replace/libreplace_macros.m4)
+m4_include(lib/replace/libreplace.m4)
 m4_include(build/m4/ax_cflags_gcc_option.m4)
 m4_include(build/m4/ax_cflags_irix_option.m4)
 m4_include(build/m4/public.m4)
index 311caa342ec5022fbbb6a3ff9214060f9b2df79a..d8dd4078910e39187fed11c4e885bf458abfb89d 100644 (file)
@@ -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,
index 6c238aeb131c5dfab9057e15750fbc65e2bf2272..548db4d720204ac546aed71a17a35cc64e8a085c 100644 (file)
@@ -11,8 +11,8 @@ AC_CONFIG_HEADER(include/config_tmp.h)
 AC_DEFINE(CONFIG_H_IS_FROM_SAMBA,1,[Marker for samba's config.h])
 
 # Configuration rules.
-m4_include(lib/replace/samba.m4)
 m4_include(build/m4/env.m4)
+m4_include(lib/replace/samba.m4)
 m4_include(lib/smbreadline/readline.m4)
 m4_include(heimdal_build/config.m4)
 m4_include(lib/util/fault.m4)
index 2a7ad949631b4153f09a06d612dbbb2b61b0d9d5..5605e476bab4eeef40cc586a3fecb1a5c174a5a6 100644 (file)
@@ -1 +1 @@
-m4_include(libreplace_macros.m4)
+m4_include(libreplace.m4)
index 1666a94de1ec005927c08038876146af4a2db85e..70a410045108a21af9910d985ffac0c0caab4ceb 100644 (file)
@@ -13,7 +13,8 @@ AC_DEFUN([SMB_EXT_LIB], [echo -n ""])
 AC_DEFUN([SMB_ENABLE], [echo -n ""])
 AC_INIT(include/ldb.h)
 AC_CONFIG_SRCDIR([common/ldb.c])
-m4_include(libreplace.m4)
+
+AC_LIBREPLACE_ALL_CHECKS
 
 if test "$ac_cv_prog_gcc" = yes; then
    CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings"
index 2a7ad949631b4153f09a06d612dbbb2b61b0d9d5..5605e476bab4eeef40cc586a3fecb1a5c174a5a6 100644 (file)
@@ -1 +1 @@
-m4_include(libreplace_macros.m4)
+m4_include(libreplace.m4)
index cf1fe8defc50d1fd08540d5d21e8c10e96493fbb..48fb7ce25948dd63f38e744baac6637615e4bd25 100644 (file)
@@ -3,7 +3,7 @@ AC_INIT(replace.c)
 AC_CONFIG_SRCDIR([replace.c])
 AC_CONFIG_HEADER(config.h)
 
-m4_include(libreplace.m4)
+AC_LIBREPLACE_ALL_CHECKS
 
 if test "$ac_cv_prog_gcc" = yes; then
    CFLAGS="$CFLAGS -Wall"
index 293b2380a855fd2df511c35596deb14e3833f366..53655e6544ed13a87daa4de187bef49c27a4dee4 100644 (file)
@@ -303,4 +303,6 @@ AC_LIBREPLACE_BROKEN_CHECKS
 AC__LIBREPLACE_ALL_CHECKS_END
 ])
 
-AC_LIBREPLACE_ALL_CHECKS
+m4_include(libreplace_cc.m4)
+m4_include(libreplace_macros.m4)
+m4_include(autoconf-2.60.m4)
index 67a770c9e28ee05b1dc1f2856c435cc48f6f8ee9..6c1110dc4b07e6b62649b05994159557c64935f4 100644 (file)
@@ -251,6 +251,3 @@ define(AC_ADD_INCLUDE,
 EOF
 ])
 
-m4_include(libreplace_cc.m4)
-m4_include(autoconf-2.60.m4)
-
index c6c5e63b7fd47ec25c9d7daac11825b900b48aa4..3769c7f50e9482ac9dc4f29ebfb5715cb2b2ae89 100644 (file)
@@ -1,4 +1,4 @@
-m4_include(lib/replace/libreplace.m4)
+AC_LIBREPLACE_BROKEN_CHECKS
 
 SMB_EXT_LIB(LIBREPLACE_EXT, [${LIBDL}])
 SMB_ENABLE(LIBREPLACE_EXT)
index 2a7ad949631b4153f09a06d612dbbb2b61b0d9d5..5605e476bab4eeef40cc586a3fecb1a5c174a5a6 100644 (file)
@@ -1 +1 @@
-m4_include(libreplace_macros.m4)
+m4_include(libreplace.m4)
index acde824b87094ab533bfdaae053f46c71fee1d04..51e7256bf888266b022f0fc4f188adb47e903729 100644 (file)
@@ -4,7 +4,8 @@ AC_CONFIG_SRCDIR([talloc.c])
 AC_SUBST(datarootdir)
 AC_CONFIG_HEADER(config.h)
 
-m4_include(libreplace.m4)
+AC_LIBREPLACE_ALL_CHECKS
+
 m4_include(libtalloc.m4)
 
 AC_PATH_PROG(XSLTPROC,xsltproc)
index 2a7ad949631b4153f09a06d612dbbb2b61b0d9d5..5605e476bab4eeef40cc586a3fecb1a5c174a5a6 100644 (file)
@@ -1 +1 @@
-m4_include(libreplace_macros.m4)
+m4_include(libreplace.m4)
index 9da1d85ae25554cc837b1045c6b21fdce1f5076e..bf73b124507c0e2bbbc397001779bdffb8cf6229 100644 (file)
@@ -5,6 +5,6 @@ AC_DEFUN([SMB_ENABLE], [echo -n ""])
 AC_INIT(include/tdb.h)
 AC_CONFIG_SRCDIR([common/tdb.c])
 AC_CONFIG_HEADER(include/config.h)
-m4_include(libreplace.m4)
+AC_LIBREPLACE_ALL_CHECKS
 m4_include(libtdb.m4)
 AC_OUTPUT(Makefile tdb.pc)