summaryrefslogtreecommitdiffstats
path: root/source/aclocal.m4
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-03-31 20:44:55 +0000
committerJeremy Allison <jra@samba.org>2000-03-31 20:44:55 +0000
commit3a39acd3535647b0f28f51eea29573d5cb1eb9be (patch)
tree46df6017e8e34fd0d9fbd5491c545c376e2ed6ba /source/aclocal.m4
parent8fb9843c40d5e8942006089e61dc9e709c9c8cc6 (diff)
downloadsamba-3a39acd3535647b0f28f51eea29573d5cb1eb9be.tar.gz
samba-3a39acd3535647b0f28f51eea29573d5cb1eb9be.tar.xz
samba-3a39acd3535647b0f28f51eea29573d5cb1eb9be.zip
IRIX include fixes.
Jeremy.
Diffstat (limited to 'source/aclocal.m4')
-rw-r--r--source/aclocal.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/source/aclocal.m4 b/source/aclocal.m4
index b3e92f44959..39ba426e1a9 100644
--- a/source/aclocal.m4
+++ b/source/aclocal.m4
@@ -74,6 +74,15 @@ AC_DEFUN(AC_LIBTESTFUNC,
esac
])
+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]
+EOF
+])
## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
## Copyright (C) 1996-1999 Free Software Foundation, Inc.