aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-05 16:25:28 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-05 16:25:28 +0000
commit1c8c6fb0cad83cdde9ef02ca238605a09c3d8be4 (patch)
tree7faca993c6e7c2a829fb81350966dabb3b5a6189 /configure.ac
parentUse is_env_on(ENV_SANDBOX_ON) now that we have is_env_on(). (diff)
downloadsandbox-1c8c6fb0cad83cdde9ef02ca238605a09c3d8be4.tar.gz
sandbox-1c8c6fb0cad83cdde9ef02ca238605a09c3d8be4.tar.bz2
sandbox-1c8c6fb0cad83cdde9ef02ca238605a09c3d8be4.zip
Enable building of librcutil.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9caee0d..a15ab9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,34 @@ AC_CHECK_FUNCS([ \
strerror strndup strrchr strspn strstr \
strtok_r \
])
+dnl For librcutil
+AC_CHECK_FUNCS([remove])
+
+dnl Check if gcc provides va_copy or __va_copy (for librcutil)
+AC_MSG_CHECKING([for va_copy])
+AC_TRY_COMPILE([
+ #include <stdarg.h>
+ ], [
+ va_list ap, aq;
+ va_copy(ap, aq);
+ ],
+ [va_copy="va_copy"],
+ [AC_TRY_COMPILE([
+ #include <stdarg.h>
+ ], [
+ va_list ap, aq;
+ __va_copy(ap, aq);
+ ],
+ [va_copy="__va_copy"],
+ [AC_MSG_ERROR([Unable to determine name of va_copy macro])]
+ )]
+)
+AC_MSG_RESULT([$va_copy])
+if test x"$va_copy" != xva_copy ; then
+ AC_DEFINE_UNQUOTED([va_copy], [$va_copy],
+ [Define to name of va_copy macro proviced by gcc if its not `va_copy'.]
+ )
+fi
dnl Verify people aren't doing stupid shit
if test x"$enable_static" != xno ; then
@@ -169,5 +197,6 @@ AC_OUTPUT([
Makefile
scripts/Makefile
data/Makefile
+ librcutil/Makefile
src/Makefile
])