AC_PROG_LIBTOOL
dnl Check for our special programs
-AC_PATH_PROG(RPWD,[pwd])
-AC_PATH_PROG(AR,[ar])
-AC_PATH_PROG(SED,[sed])
-AC_PATH_PROG(RM,[rm])
-AC_PATH_PROG(ECHO,[echo])
-AC_PATH_PROG(MKDIR,[mkdir])
-AC_PATH_PROG(DATE,[date])
-AC_PATH_PROG(MV,[mv])
-AC_PATH_PROG(DOT,[dot])
-AC_PATH_PROG(ETAGS,[etags])
-AC_PATH_PROG(PURIFY,[purify])
-AC_PATH_PROG(PYTHON,[python])
-AC_PATH_PROG(QMTEST,[qmtest])
+AC_PATH_PROG(RPWD,[pwd],[false])
+if test ${RPWD} = "false"
+then
+ AC_MSG_ERROR([pwd required but not found])
+fi
+
+AC_PATH_PROG(AR,[ar],[false])
+if test ${AR} = "false"
+then
+ AC_MSG_ERROR([ar required but not found])
+fi
+
+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
pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
done
done
+ test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy ar; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy sed; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy rm; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy echo; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy mkdir; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy date; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy mv; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy dot; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
fi
+
# Extract the first word of "etags", so it can be a program name with args.
set dummy etags; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
fi
+
# Extract the first word of "purify", so it can be a program name with args.
set dummy purify; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
fi
+
# Extract the first word of "python", so it can be a program name with args.
set dummy python; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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.
set dummy qmtest; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
done
done
+ test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
;;
esac
fi
echo "${ECHO_T}no" >&6
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`
pymajor=`echo $pyversion | cut -d. -f1`