1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-21 12:23:50 +03:00

r25970: libreplace: fix AC_N_DEFINE() so that some appears in config.h

metze
This commit is contained in:
Stefan Metzmacher
2007-11-15 14:46:47 +01:00
parent 36ef127c8b
commit a07c983fde

View File

@@ -248,11 +248,18 @@ m4_define([AH_CHECK_FUNC_EXT],
dnl Define an AC_DEFINE with ifndef guard.
dnl AC_N_DEFINE(VARIABLE [, VALUE])
define(AC_N_DEFINE,
[cat >> confdefs.h <<\EOF
[#ifndef] $1
[#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1)
[#endif]
AC_DEFUN([AC_N_DEFINE],
[
AH_VERBATIM([$1], [
#ifndef $1
# undef $1
#endif
])
cat >>confdefs.h <<\EOF
#ifndef $1
[#define] $1 m4_if($#, 1, 1, [$2])
#endif
EOF
])