diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-14 08:26:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:40 -0500 |
commit | a0e87e5dc79bc631cb2362ebbf4d91913a342273 (patch) | |
tree | 7b7dfd24fcbf6f634a1d5dde4d5ffdca95d326ac /source4/lib/replace/libreplace_macros.m4 | |
parent | 595c141a69ea0744fccba477717a71fa4abeb825 (diff) | |
download | samba-a0e87e5dc79bc631cb2362ebbf4d91913a342273.tar.gz samba-a0e87e5dc79bc631cb2362ebbf4d91913a342273.tar.bz2 samba-a0e87e5dc79bc631cb2362ebbf4d91913a342273.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
(This used to be commit 1f4e602ff239b7feabb2dd1d6938dedf91bde5cd)
Diffstat (limited to 'source4/lib/replace/libreplace_macros.m4')
-rw-r--r-- | source4/lib/replace/libreplace_macros.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_macros.m4 b/source4/lib/replace/libreplace_macros.m4 index 41ec03f07a..91f816c75d 100644 --- a/source4/lib/replace/libreplace_macros.m4 +++ b/source4/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 + ]) +)]) |