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]])])
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"
12
AC_SUBST(sharedbuilddir)