summaryrefslogtreecommitdiffstats
path: root/source3/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
commit15bb28ccd2aeb712c2d874912adc465d83809d60 (patch)
tree2e0e38a9229234168f3cf2db687d550615702dbe /source3/aclocal.m4
parent0c4e40b1630d1aab76a3a8096010f91aa7904a6d (diff)
downloadsamba-15bb28ccd2aeb712c2d874912adc465d83809d60.tar.gz
samba-15bb28ccd2aeb712c2d874912adc465d83809d60.tar.xz
samba-15bb28ccd2aeb712c2d874912adc465d83809d60.zip
IRIX include fixes.
Jeremy. (This used to be commit 3a39acd3535647b0f28f51eea29573d5cb1eb9be)
Diffstat (limited to 'source3/aclocal.m4')
-rw-r--r--source3/aclocal.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/aclocal.m4 b/source3/aclocal.m4
index b3e92f44959..39ba426e1a9 100644
--- a/source3/aclocal.m4
+++ b/source3/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.