summaryrefslogtreecommitdiffstats
path: root/source/lib/replace/libreplace_macros.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-14 08:26:41 +0000
committerStefan Metzmacher <metze@samba.org>2006-09-14 08:26:41 +0000
commitdecde684eabcd11e987551b7eae323f396af9c4e (patch)
tree5f584489eea8d2d152578405f83c236ded0e7294 /source/lib/replace/libreplace_macros.m4
parent079097cb0cea52c3b4f16f478f3ea51964855871 (diff)
downloadsamba-decde684eabcd11e987551b7eae323f396af9c4e.tar.gz
samba-decde684eabcd11e987551b7eae323f396af9c4e.tar.xz
samba-decde684eabcd11e987551b7eae323f396af9c4e.zip
r18505: add configure checks for telldir() and seekdir()
telldir() is different on older OpenBSD versions seekdir() is different Tru64 tridge: OpenBSD seems to like this replacement:-) while MAC OS 10 gets 134 runtime error:-( lets wait what Tru64 will give metze
Diffstat (limited to 'source/lib/replace/libreplace_macros.m4')
-rw-r--r--source/lib/replace/libreplace_macros.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/source/lib/replace/libreplace_macros.m4 b/source/lib/replace/libreplace_macros.m4
index 41ec03f07ae..91f816c75d0 100644
--- a/source/lib/replace/libreplace_macros.m4
+++ b/source/lib/replace/libreplace_macros.m4
@@ -268,3 +268,23 @@ dnl AS_HELP_STRING is not available in autoconf 2.57, and AC_HELP_STRING is depr
dnl in autoconf 2.59, so define AS_HELP_STRING to be AC_HELP_STRING unless it is already
dnl defined.
m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
+
+dnl check if the prototype in the header matches the given one
+dnl AC_VERIFY_C_PROTOTYPE(prototype,functionbody,[IF-TRUE].[IF-FALSE],[extraheaders])
+AC_DEFUN(AC_VERIFY_C_PROTOTYPE,
+[AC_CACHE_CHECK([for prototype $1], AS_TR_SH([ac_cv_c_prototype_$1]),
+ AC_COMPILE_IFELSE([
+ AC_INCLUDES_DEFAULT
+ $5
+ $1
+ {
+ $2
+ }
+ ],[
+ AS_TR_SH([ac_cv_c_prototype_$1])=yes
+ $3
+ ],[
+ AS_TR_SH([ac_cv_c_prototype_$1])=no
+ $4
+ ])
+)])