Remove redundant check for GCC and move compiler checks to the beginning. Before the AC_HEADERS_STDC checked for compilers implicitly and later on we checked again explicitly for them.
Signed-off-by: Andreas Bießmann <[email protected]> --- configure.ac | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/configure.ac b/configure.ac index 390fcaf..c33cbb4 100644 --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,17 @@ else AC_MSG_ERROR([install the ptxdist-patches archive into the same directory as ptxdist.]) fi +dnl +dnl Check for C and C++ compilers +dnl +AC_PROG_CC +if test -z "$CC"; then + AC_MSG_ERROR([gcc could not be found, please install]) +fi +AC_PROG_CXX +if test -z "$CXX"; then + AC_MSG_ERROR([g++ could not be found, please install]) +fi dnl dnl Check header files, mostly for lxdialog & kconfig @@ -160,18 +171,6 @@ GNU_TOOL(xargs, findutils) dnl Check for egrep AC_PROG_EGREP -dnl Check for gcc -AC_PROG_CC -if test -z "$CC"; then - AC_MSG_ERROR([gcc could not be found, please install]) -fi - -dnl Check for g++ -AC_PROG_CXX -if test -z "$CXX"; then - AC_MSG_ERROR([g++ could not be found, please install]) -fi - dnl Check for awk AC_PROG_AWK AC_PATH_PROGS(AWK, ${AWK},) @@ -285,9 +284,6 @@ if test -z "$MSGFMT"; then AC_MSG_ERROR([gettext could not be found, please install]) fi -dnl Check for gcc -AC_PATH_PROGS(GCC, gcc,, $PATH) - dnl dnl Checks for Python, needed for ipkg-utils dnl -- 1.9.2 -- ptxdist mailing list [email protected]
