c036668cd14e8b73063a19a7f8d9ff2e2bb4aa53
[nivanova/samba-autobuild/.git] / lib / replace / build_macros.m4
1 AC_DEFUN(BUILD_WITH_SHARED_BUILD_DIR,
2   [ AC_ARG_WITH([shared-build-dir],
3                 [AC_HELP_STRING([--with-shared-build-dir=DIR],
4                                 [temporary build directory where libraries are installed [$srcdir/sharedbuild]])])
5
6     sharedbuilddir="$srcdir/sharedbuild"
7     if test x"$with_shared_build_dir" != x; then
8         sharedbuilddir=$with_shared_build_dir
9         CFLAGS="$CFLAGS -I$with_shared_build_dir/include"
10         LDFLAGS="$LDFLAGS -L$with_shared_build_dir/lib"
11     fi
12     AC_SUBST(sharedbuilddir)
13   ])
14