summaryrefslogtreecommitdiffstats
path: root/replace/build_macros.m4
diff options
context:
space:
mode:
Diffstat (limited to 'replace/build_macros.m4')
-rw-r--r--replace/build_macros.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/replace/build_macros.m4 b/replace/build_macros.m4
new file mode 100644
index 000000000..bc3ec729d
--- /dev/null
+++ b/replace/build_macros.m4
@@ -0,0 +1,14 @@
+AC_DEFUN(BUILD_WITH_BUILD_INST_DIR,
+ [ AC_ARG_WITH([build-install-dir],
+ [AC_HELP_STRING([--with-build-install-dir=DIR],
+ [temporary build directory where libraries are installed [$srcdir/buildinst]])])
+
+ buildinstdir="$srcdir/buildinst"
+ if test x"$with_build_install_dir" != x; then
+ buildinstdir=$with_build_install_dir
+ CFLAGS="$CFLAGS -I$with_build_install_dir/include"
+ LDFLAGS="$LDFLAGS -L$with_build_install_dir/lib"
+ fi
+ AC_SUBST(buildinstdir)
+ ])
+