summaryrefslogtreecommitdiff
path: root/source4/lib/replace/libreplace.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-06 09:52:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:43 -0500
commit6150443532ef714fcd060e4fe384db11552eb673 (patch)
tree3bd1bb7b2e6958946aa42174e383708f96738eb4 /source4/lib/replace/libreplace.m4
parent53a78afe301ebcaec234b8fb97de88e2a5bb6fa3 (diff)
downloadsamba-6150443532ef714fcd060e4fe384db11552eb673.tar.gz
samba-6150443532ef714fcd060e4fe384db11552eb673.tar.bz2
samba-6150443532ef714fcd060e4fe384db11552eb673.zip
r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there metze (This used to be commit 38f9e90a120b4e62f005a1bac89139ee87f63071)
Diffstat (limited to 'source4/lib/replace/libreplace.m4')
-rw-r--r--source4/lib/replace/libreplace.m415
1 files changed, 2 insertions, 13 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4
index 0c1d089217..1b3258e184 100644
--- a/source4/lib/replace/libreplace.m4
+++ b/source4/lib/replace/libreplace.m4
@@ -1,15 +1,5 @@
-dnl see if a declaration exists for a function or variable
-dnl defines HAVE_function_DECL if it exists
-dnl AC_HAVE_DECL(var, includes)
-AC_DEFUN(AC_HAVE_DECL,
-[
- AC_CACHE_CHECK([for $1 declaration],ac_cv_have_$1_decl,[
- AC_TRY_COMPILE([$2],[int i = (int)$1],
- ac_cv_have_$1_decl=yes,ac_cv_have_$1_decl=no)])
- if test x"$ac_cv_have_$1_decl" = x"yes"; then
- AC_DEFINE([HAVE_]translit([$1], [a-z], [A-Z])[_DECL],1,[Whether $1() is available])
- fi
-])
+
+LIBREPLACE_C99_STRUCT_INIT([],[])
dnl find the libreplace sources. This is meant to work both for
dnl libreplace standalone builds, and builds of packages using libreplace
@@ -167,7 +157,6 @@ AC_CHECK_FUNCS([syslog memset setnetgrent getnetgrent endnetgrent memcpy],,
[AC_MSG_ERROR([Required function not found])])
m4_include(getpass.m4)
-m4_include(libreplace_macros.m4)
m4_include(system/config.m4)
LIBREPLACE_C99_STRUCT_INIT(c99_struct_initialization=yes,