From b8a3862ef6dba6eeb06f00946b89a38d875d3dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Laval?= Date: Sat, 2 Mar 2013 22:34:00 +0000 Subject: [build] If ./configure fails with --platform=mac, inform the user about our compilation guide. Since MonoDevelop doesn't compile on Mac out-of-the box, prevent unnecessary user anger by redirecting him to the guide with the correct environment variables to export. --- configure | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index c947cb6169..98f5fd54c1 100755 --- a/configure +++ b/configure @@ -132,6 +132,16 @@ select_packages () done } +handle_config_error () +{ + if test "$profile" = "mac"; then + echo "" + echo "Have you followed http://monodevelop.com/Developers/Mac_Support/Building_MonoDevelop_on_OS_X ?" + echo "" + fi + exit 1 +} + configure_packages () { rm -f local-config/* @@ -159,7 +169,7 @@ configure_packages () exit 1 fi pushd $path > /dev/null - PKG_CONFIG_PATH=$localconf:$PKG_CONFIG_PATH $sct --prefix=$prefix $ops || exit 1 + PKG_CONFIG_PATH=$localconf:$PKG_CONFIG_PATH $sct --prefix=$prefix $ops || handle_config_error popd > /dev/null create_local_config $path packages="$packages $path" -- cgit v1.2.3