build: Only check the mono prefix when using mono
This avoids strange message at the end of configure with .Net
This commit is contained in:
parent
84993d237f
commit
bfc89a1555
1 changed files with 8 additions and 6 deletions
14
configure.ac
14
configure.ac
|
@ -294,10 +294,12 @@ if test "x$enable_monodoc" = "xyes" -a "x$doc_sources_dir" != "x$prefix/lib/mono
|
||||||
fi
|
fi
|
||||||
echo "---"
|
echo "---"
|
||||||
|
|
||||||
mono_prefix=`pkg-config --variable=prefix mono`
|
if test "x$has_mono" = "xtrue"; then
|
||||||
if test "x$mono_prefix" != "x$prefix"; then
|
mono_prefix=`pkg-config --variable=prefix mono`
|
||||||
AC_WARN(Prefix to use ($prefix) is not the same as Mono's ($mono_prefix). Consider using
|
if test "x$mono_prefix" != "x$prefix"; then
|
||||||
./configure --prefix=$mono_prefix
|
AC_MSG_WARN(Prefix to use ($prefix) is not the same as Mono's ($mono_prefix).
|
||||||
See the README for more information.
|
Consider using ./configure --prefix=$mono_prefix
|
||||||
)
|
See the README for more information.
|
||||||
|
)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue