llvm.org GIT mirror llvm / 39827c8
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 John Criswell 16 years ago
2 changed file(s) with 150 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
298298 AC_PROG_LIBTOOL
299299
300300 dnl Check for our special programs
301 AC_PATH_PROG(RPWD,[pwd])
302 AC_PATH_PROG(AR,[ar])
303 AC_PATH_PROG(SED,[sed])
304 AC_PATH_PROG(RM,[rm])
305 AC_PATH_PROG(ECHO,[echo])
306 AC_PATH_PROG(MKDIR,[mkdir])
307 AC_PATH_PROG(DATE,[date])
308 AC_PATH_PROG(MV,[mv])
309 AC_PATH_PROG(DOT,[dot])
310 AC_PATH_PROG(ETAGS,[etags])
311 AC_PATH_PROG(PURIFY,[purify])
312 AC_PATH_PROG(PYTHON,[python])
313 AC_PATH_PROG(QMTEST,[qmtest])
301 AC_PATH_PROG(RPWD,[pwd],[false])
302 if test ${RPWD} = "false"
303 then
304 AC_MSG_ERROR([pwd required but not found])
305 fi
306
307 AC_PATH_PROG(AR,[ar],[false])
308 if test ${AR} = "false"
309 then
310 AC_MSG_ERROR([ar required but not found])
311 fi
312
313 AC_PATH_PROG(SED,[sed],[false])
314 if test ${SED} = "false"
315 then
316 AC_MSG_ERROR([sed required but not found])
317 fi
318
319 AC_PATH_PROG(RM,[rm],[false])
320 if test ${RM} = "false"
321 then
322 AC_MSG_ERROR([rm required but not found])
323 fi
324
325 AC_PATH_PROG(ECHO,[echo],[false])
326 if test ${ECHO} = "false"
327 then
328 AC_MSG_ERROR([echo required but not found])
329 fi
330
331 AC_PATH_PROG(MKDIR,[mkdir],[false])
332 if test ${MKDIR} = "false"
333 then
334 AC_MSG_ERROR([mkdir required but not found])
335 fi
336
337 AC_PATH_PROG(DATE,[date],[false])
338 if test ${DATE} = "false"
339 then
340 AC_MSG_ERROR([date required but not found])
341 fi
342
343 AC_PATH_PROG(MV,[mv],[false])
344 if test ${MV} = "false"
345 then
346 AC_MSG_ERROR([mv required but not found])
347 fi
348
349 AC_PATH_PROG(DOT,[dot],[false])
350
351 AC_PATH_PROG(ETAGS,[etags],[false])
352
353 AC_PATH_PROG(PURIFY,[purify],[false])
354
355 AC_PATH_PROG(PYTHON,[python],[false])
356 if test ${PYTHON} = "false"
357 then
358 AC_MSG_ERROR([python required but not found])
359 fi
360
361 AC_PATH_PROG(QMTEST,[qmtest],[false])
362 if test ${QMTEST} = "false"
363 then
364 AC_MSG_ERROR([qmtest required but not found])
365 fi
314366
315367 dnl Verify that the version of python available is high enough for qmtest
316368 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
1846718467 done
1846818468 done
1846918469
18470 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
1847018471 ;;
1847118472 esac
1847218473 fi
1847818479 else
1847918480 echo "$as_me:$LINENO: result: no" >&5
1848018481 echo "${ECHO_T}no" >&6
18482 fi
18483
18484 if test ${RPWD} = "false"
18485 then
18486 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18487 echo "$as_me: error: pwd required but not found" >&2;}
18488 { (exit 1); exit 1; }; }
1848118489 fi
1848218490
1848318491 # Extract the first word of "ar", so it can be a program name with args.
1850618514 done
1850718515 done
1850818516
18517 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
1850918518 ;;
1851018519 esac
1851118520 fi
1851718526 else
1851818527 echo "$as_me:$LINENO: result: no" >&5
1851918528 echo "${ECHO_T}no" >&6
18529 fi
18530
18531 if test ${AR} = "false"
18532 then
18533 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18534 echo "$as_me: error: ar required but not found" >&2;}
18535 { (exit 1); exit 1; }; }
1852018536 fi
1852118537
1852218538 # Extract the first word of "sed", so it can be a program name with args.
1854518561 done
1854618562 done
1854718563
18564 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
1854818565 ;;
1854918566 esac
1855018567 fi
1855618573 else
1855718574 echo "$as_me:$LINENO: result: no" >&5
1855818575 echo "${ECHO_T}no" >&6
18576 fi
18577
18578 if test ${SED} = "false"
18579 then
18580 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18581 echo "$as_me: error: sed required but not found" >&2;}
18582 { (exit 1); exit 1; }; }
1855918583 fi
1856018584
1856118585 # Extract the first word of "rm", so it can be a program name with args.
1858418608 done
1858518609 done
1858618610
18611 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
1858718612 ;;
1858818613 esac
1858918614 fi
1859518620 else
1859618621 echo "$as_me:$LINENO: result: no" >&5
1859718622 echo "${ECHO_T}no" >&6
18623 fi
18624
18625 if test ${RM} = "false"
18626 then
18627 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18628 echo "$as_me: error: rm required but not found" >&2;}
18629 { (exit 1); exit 1; }; }
1859818630 fi
1859918631
1860018632 # Extract the first word of "echo", so it can be a program name with args.
1862318655 done
1862418656 done
1862518657
18658 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
1862618659 ;;
1862718660 esac
1862818661 fi
1863418667 else
1863518668 echo "$as_me:$LINENO: result: no" >&5
1863618669 echo "${ECHO_T}no" >&6
18670 fi
18671
18672 if test ${ECHO} = "false"
18673 then
18674 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18675 echo "$as_me: error: echo required but not found" >&2;}
18676 { (exit 1); exit 1; }; }
1863718677 fi
1863818678
1863918679 # Extract the first word of "mkdir", so it can be a program name with args.
1866218702 done
1866318703 done
1866418704
18705 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
1866518706 ;;
1866618707 esac
1866718708 fi
1867318714 else
1867418715 echo "$as_me:$LINENO: result: no" >&5
1867518716 echo "${ECHO_T}no" >&6
18717 fi
18718
18719 if test ${MKDIR} = "false"
18720 then
18721 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18722 echo "$as_me: error: mkdir required but not found" >&2;}
18723 { (exit 1); exit 1; }; }
1867618724 fi
1867718725
1867818726 # Extract the first word of "date", so it can be a program name with args.
1870118749 done
1870218750 done
1870318751
18752 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
1870418753 ;;
1870518754 esac
1870618755 fi
1871218761 else
1871318762 echo "$as_me:$LINENO: result: no" >&5
1871418763 echo "${ECHO_T}no" >&6
18764 fi
18765
18766 if test ${DATE} = "false"
18767 then
18768 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18769 echo "$as_me: error: date required but not found" >&2;}
18770 { (exit 1); exit 1; }; }
1871518771 fi
1871618772
1871718773 # Extract the first word of "mv", so it can be a program name with args.
1874018796 done
1874118797 done
1874218798
18799 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
1874318800 ;;
1874418801 esac
1874518802 fi
1875118808 else
1875218809 echo "$as_me:$LINENO: result: no" >&5
1875318810 echo "${ECHO_T}no" >&6
18811 fi
18812
18813 if test ${MV} = "false"
18814 then
18815 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18816 echo "$as_me: error: mv required but not found" >&2;}
18817 { (exit 1); exit 1; }; }
1875418818 fi
1875518819
1875618820 # Extract the first word of "dot", so it can be a program name with args.
1877918843 done
1878018844 done
1878118845
18846 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
1878218847 ;;
1878318848 esac
1878418849 fi
1879118856 echo "$as_me:$LINENO: result: no" >&5
1879218857 echo "${ECHO_T}no" >&6
1879318858 fi
18859
1879418860
1879518861 # Extract the first word of "etags", so it can be a program name with args.
1879618862 set dummy etags; ac_word=$2
1881818884 done
1881918885 done
1882018886
18887 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
1882118888 ;;
1882218889 esac
1882318890 fi
1883018897 echo "$as_me:$LINENO: result: no" >&5
1883118898 echo "${ECHO_T}no" >&6
1883218899 fi
18900
1883318901
1883418902 # Extract the first word of "purify", so it can be a program name with args.
1883518903 set dummy purify; ac_word=$2
1885718925 done
1885818926 done
1885918927
18928 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
1886018929 ;;
1886118930 esac
1886218931 fi
1886918938 echo "$as_me:$LINENO: result: no" >&5
1887018939 echo "${ECHO_T}no" >&6
1887118940 fi
18941
1887218942
1887318943 # Extract the first word of "python", so it can be a program name with args.
1887418944 set dummy python; ac_word=$2
1889618966 done
1889718967 done
1889818968
18969 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
1889918970 ;;
1890018971 esac
1890118972 fi
1890718978 else
1890818979 echo "$as_me:$LINENO: result: no" >&5
1890918980 echo "${ECHO_T}no" >&6
18981 fi
18982
18983 if test ${PYTHON} = "false"
18984 then
18985 { { echo "$as_me:$LINENO: error: python required but not found" >&5
18986 echo "$as_me: error: python required but not found" >&2;}
18987 { (exit 1); exit 1; }; }
1891018988 fi
1891118989
1891218990 # Extract the first word of "qmtest", so it can be a program name with args.
1893519013 done
1893619014 done
1893719015
19016 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
1893819017 ;;
1893919018 esac
1894019019 fi
1894819027 echo "${ECHO_T}no" >&6
1894919028 fi
1895019029
19030 if test ${QMTEST} = "false"
19031 then
19032 { { echo "$as_me:$LINENO: error: qmtest required but not found" >&5
19033 echo "$as_me: error: qmtest required but not found" >&2;}
19034 { (exit 1); exit 1; }; }
19035 fi
1895119036
1895219037 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
1895319038 pymajor=`echo $pyversion | cut -d. -f1`