Added code that stops the configure script if a needed program is not found.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
John Criswell
2003-09-23 15:28:52 +00:00
parent 8474f6fcda
commit 39827c866d
2 changed files with 150 additions and 13 deletions

View File

@@ -299,19 +299,71 @@ dnl Check for libtool
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
dnl Check for our special programs dnl Check for our special programs
AC_PATH_PROG(RPWD,[pwd]) AC_PATH_PROG(RPWD,[pwd],[false])
AC_PATH_PROG(AR,[ar]) if test ${RPWD} = "false"
AC_PATH_PROG(SED,[sed]) then
AC_PATH_PROG(RM,[rm]) AC_MSG_ERROR([pwd required but not found])
AC_PATH_PROG(ECHO,[echo]) fi
AC_PATH_PROG(MKDIR,[mkdir])
AC_PATH_PROG(DATE,[date]) AC_PATH_PROG(AR,[ar],[false])
AC_PATH_PROG(MV,[mv]) if test ${AR} = "false"
AC_PATH_PROG(DOT,[dot]) then
AC_PATH_PROG(ETAGS,[etags]) AC_MSG_ERROR([ar required but not found])
AC_PATH_PROG(PURIFY,[purify]) fi
AC_PATH_PROG(PYTHON,[python])
AC_PATH_PROG(QMTEST,[qmtest]) AC_PATH_PROG(SED,[sed],[false])
if test ${SED} = "false"
then
AC_MSG_ERROR([sed required but not found])
fi
AC_PATH_PROG(RM,[rm],[false])
if test ${RM} = "false"
then
AC_MSG_ERROR([rm required but not found])
fi
AC_PATH_PROG(ECHO,[echo],[false])
if test ${ECHO} = "false"
then
AC_MSG_ERROR([echo required but not found])
fi
AC_PATH_PROG(MKDIR,[mkdir],[false])
if test ${MKDIR} = "false"
then
AC_MSG_ERROR([mkdir required but not found])
fi
AC_PATH_PROG(DATE,[date],[false])
if test ${DATE} = "false"
then
AC_MSG_ERROR([date required but not found])
fi
AC_PATH_PROG(MV,[mv],[false])
if test ${MV} = "false"
then
AC_MSG_ERROR([mv required but not found])
fi
AC_PATH_PROG(DOT,[dot],[false])
AC_PATH_PROG(ETAGS,[etags],[false])
AC_PATH_PROG(PURIFY,[purify],[false])
AC_PATH_PROG(PYTHON,[python],[false])
if test ${PYTHON} = "false"
then
AC_MSG_ERROR([python required but not found])
fi
AC_PATH_PROG(QMTEST,[qmtest],[false])
if test ${QMTEST} = "false"
then
AC_MSG_ERROR([qmtest required but not found])
fi
dnl Verify that the version of python available is high enough for qmtest dnl Verify that the version of python available is high enough for qmtest
pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`

85
configure vendored
View File

@@ -18468,6 +18468,7 @@ do
done done
done done
test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
;; ;;
esac esac
fi fi
@@ -18481,6 +18482,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${RPWD} = "false"
then
{ { echo "$as_me:$LINENO: error: pwd required but not found" >&5
echo "$as_me: error: pwd required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "ar", so it can be a program name with args. # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2 set dummy ar; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18507,6 +18515,7 @@ do
done done
done done
test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
;; ;;
esac esac
fi fi
@@ -18520,6 +18529,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${AR} = "false"
then
{ { echo "$as_me:$LINENO: error: ar required but not found" >&5
echo "$as_me: error: ar required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "sed", so it can be a program name with args. # Extract the first word of "sed", so it can be a program name with args.
set dummy sed; ac_word=$2 set dummy sed; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18546,6 +18562,7 @@ do
done done
done done
test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
;; ;;
esac esac
fi fi
@@ -18559,6 +18576,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${SED} = "false"
then
{ { echo "$as_me:$LINENO: error: sed required but not found" >&5
echo "$as_me: error: sed required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "rm", so it can be a program name with args. # Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2 set dummy rm; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18585,6 +18609,7 @@ do
done done
done done
test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
;; ;;
esac esac
fi fi
@@ -18598,6 +18623,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${RM} = "false"
then
{ { echo "$as_me:$LINENO: error: rm required but not found" >&5
echo "$as_me: error: rm required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "echo", so it can be a program name with args. # Extract the first word of "echo", so it can be a program name with args.
set dummy echo; ac_word=$2 set dummy echo; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18624,6 +18656,7 @@ do
done done
done done
test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
;; ;;
esac esac
fi fi
@@ -18637,6 +18670,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${ECHO} = "false"
then
{ { echo "$as_me:$LINENO: error: echo required but not found" >&5
echo "$as_me: error: echo required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "mkdir", so it can be a program name with args. # Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2 set dummy mkdir; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18663,6 +18703,7 @@ do
done done
done done
test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
;; ;;
esac esac
fi fi
@@ -18676,6 +18717,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${MKDIR} = "false"
then
{ { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
echo "$as_me: error: mkdir required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "date", so it can be a program name with args. # Extract the first word of "date", so it can be a program name with args.
set dummy date; ac_word=$2 set dummy date; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18702,6 +18750,7 @@ do
done done
done done
test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
;; ;;
esac esac
fi fi
@@ -18715,6 +18764,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${DATE} = "false"
then
{ { echo "$as_me:$LINENO: error: date required but not found" >&5
echo "$as_me: error: date required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "mv", so it can be a program name with args. # Extract the first word of "mv", so it can be a program name with args.
set dummy mv; ac_word=$2 set dummy mv; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18741,6 +18797,7 @@ do
done done
done done
test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
;; ;;
esac esac
fi fi
@@ -18754,6 +18811,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${MV} = "false"
then
{ { echo "$as_me:$LINENO: error: mv required but not found" >&5
echo "$as_me: error: mv required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "dot", so it can be a program name with args. # Extract the first word of "dot", so it can be a program name with args.
set dummy dot; ac_word=$2 set dummy dot; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18780,6 +18844,7 @@ do
done done
done done
test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
;; ;;
esac esac
fi fi
@@ -18793,6 +18858,7 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
# Extract the first word of "etags", so it can be a program name with args. # Extract the first word of "etags", so it can be a program name with args.
set dummy etags; ac_word=$2 set dummy etags; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18819,6 +18885,7 @@ do
done done
done done
test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
;; ;;
esac esac
fi fi
@@ -18832,6 +18899,7 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
# Extract the first word of "purify", so it can be a program name with args. # Extract the first word of "purify", so it can be a program name with args.
set dummy purify; ac_word=$2 set dummy purify; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18858,6 +18926,7 @@ do
done done
done done
test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
;; ;;
esac esac
fi fi
@@ -18871,6 +18940,7 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
# Extract the first word of "python", so it can be a program name with args. # Extract the first word of "python", so it can be a program name with args.
set dummy python; ac_word=$2 set dummy python; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18897,6 +18967,7 @@ do
done done
done done
test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
;; ;;
esac esac
fi fi
@@ -18910,6 +18981,13 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${PYTHON} = "false"
then
{ { echo "$as_me:$LINENO: error: python required but not found" >&5
echo "$as_me: error: python required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# Extract the first word of "qmtest", so it can be a program name with args. # Extract the first word of "qmtest", so it can be a program name with args.
set dummy qmtest; ac_word=$2 set dummy qmtest; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5 echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -18936,6 +19014,7 @@ do
done done
done done
test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
;; ;;
esac esac
fi fi
@@ -18949,6 +19028,12 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
if test ${QMTEST} = "false"
then
{ { echo "$as_me:$LINENO: error: qmtest required but not found" >&5
echo "$as_me: error: qmtest required but not found" >&2;}
{ (exit 1); exit 1; }; }
fi
pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2` pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
pymajor=`echo $pyversion | cut -d. -f1` pymajor=`echo $pyversion | cut -d. -f1`