summaryrefslogtreecommitdiff
path: root/Config
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-22 22:25:15 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-22 22:25:15 +0000
commit9123489c32e24ed7fc21c7753ca92aaece452961 (patch)
tree61847686a8c33a55e8d61a27cca83f083d6a98c8 /Config
parentfa0d664063d479759073629f5d183a6266a428f0 (diff)
Added Anope.cmake, moving all my CMake macros into it.
Fixed CMake error when CMake older than 2.4.8 is used, there is no 'touch' command in cmake -E, spotted by Adam. Fixed Config to auto-detect CMake and revert to configure if CMake isn't found. Fixed install.js on Windows to show errors in running CMake and detect if there were errors. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2125 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'Config')
-rwxr-xr-xConfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/Config b/Config
index 9ac194e65..1c3058d0b 100755
--- a/Config
+++ b/Config
@@ -157,6 +157,11 @@ USE_RUN_CC_PL="no"
CAN_QUICK="no"
SOURCE_DIR=`dirname $0`
+which cmake > /dev/null
+if [ $? -ne 0 ] ; then
+ BUILD_SYSTEM="configure"
+fi
+
###########################################################################
# Check out the options
###########################################################################
@@ -248,6 +253,11 @@ done
BUILD_SYSTEM=$INPUT
echo ""
+if [ "$SOURCE_DIR" != "." -a "$BUILD_SYSTEM" = "configure" ] ; then
+ echo "You can not use configure unless you are in the same folder as Config!"
+ exit 0
+fi
+
ok=0
echo "In what directory do you want the binaries to be installed?"
while [ $ok -eq 0 ] ; do