summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-27 19:42:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-27 19:42:27 (GMT)
commita5cda2217d4e88b298be544e553725c5a3c80b56 (patch)
tree590bdac43fe4354e844dc8ccbca9f105ca2f0caf /configure
parent7bb9fdbeef33aec26e3b7b36e8a216b393a50a4b (diff)
downloadCMake-a5cda2217d4e88b298be544e553725c5a3c80b56.zip
CMake-a5cda2217d4e88b298be544e553725c5a3c80b56.tar.gz
CMake-a5cda2217d4e88b298be544e553725c5a3c80b56.tar.bz2
ENH: fix install for cygwin, build cmake from configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure49
1 files changed, 49 insertions, 0 deletions
diff --git a/configure b/configure
index ae61b41..90e2555 100755
--- a/configure
+++ b/configure
@@ -983,6 +983,47 @@ EOF
fi
fi
+# find make to use to build cmake, prefer gmake
+for ac_prog in gmake make
+do
+# Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:993: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_RUNMAKE'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ case "$RUNMAKE" in
+ /*)
+ ac_cv_path_RUNMAKE="$RUNMAKE" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_RUNMAKE="$RUNMAKE" # Let the user override the test with a dos path.
+ ;;
+ *)
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_path_RUNMAKE="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
+fi
+RUNMAKE="$ac_cv_path_RUNMAKE"
+if test -n "$RUNMAKE"; then
+ echo "$ac_t""$RUNMAKE" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+test -n "$RUNMAKE" && break
+done
+
trap '' 1 2 15
cat > confcache <<\EOF
@@ -1122,6 +1163,7 @@ s%@CXX@%$CXX%g
s%@CMAKE_ROOT_DIR@%$CMAKE_ROOT_DIR%g
s%@CMAKE_ANSI_CFLAGS@%$CMAKE_ANSI_CFLAGS%g
s%@CMAKE_TEMPLATE_FLAGS@%$CMAKE_TEMPLATE_FLAGS%g
+s%@RUNMAKE@%$RUNMAKE%g
CEOF
EOF
@@ -1336,4 +1378,11 @@ chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+# build the CMakeBuildTargets program
+$RUNMAKE
+./Source/cmake $fullSrcDir
+
+
+
+