aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-27 22:25:07 +0000
committerYang Tse <yangsita@gmail.com>2008-07-27 22:25:07 +0000
commitd2661cb4b26a986ab8f008390fb65cb9cebb23c3 (patch)
tree9acdb1ac54e1f01e21c5bde90c5ffc6ab00c8445
parent9b0110f50cb0b48ab9883205807c1e5b5c7f4126 (diff)
Partially undo change that prevented SED, GREP, EGREP and AR from being changed by libtool or autoconf.
-rw-r--r--ares/configure.ac16
-rw-r--r--configure.ac16
2 files changed, 6 insertions, 26 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index c188bd1a3..96019ac90 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -9,29 +9,23 @@ AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
dnl SED is mandatory for configure process and libtool.
-dnl Set it now and prevent it from being changed later.
+dnl Set it now, allowing it to be changed later.
AC_PATH_PROG([SED], [sed], [not_found],
[$PATH:/usr/bin:/usr/local/bin])
if test -z "$SED" || test "$SED" = "not_found"; then
AC_MSG_ERROR([sed not found in PATH. Cannot continue without sed.])
fi
-ac_cv_prog_sed="$SED"
-ac_cv_prog_SED="$SED"
-AC_SUBST([SED])
dnl GREP is mandatory for configure process and libtool.
-dnl Set it now and prevent it from being changed later.
+dnl Set it now, allowing it to be changed later.
AC_PATH_PROG([GREP], [grep], [not_found],
[$PATH:/usr/bin:/usr/local/bin])
if test -z "$GREP" || test "$GREP" = "not_found"; then
AC_MSG_ERROR([grep not found in PATH. Cannot continue without grep.])
fi
-ac_cv_prog_grep="$GREP"
-ac_cv_prog_GREP="$GREP"
-AC_SUBST([GREP])
dnl EGREP is mandatory for configure process and libtool.
-dnl Set it now and prevent it from being changed later.
+dnl Set it now, allowing it to be changed later.
if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
AC_MSG_CHECKING([for egrep])
EGREP="$GREP -E"
@@ -43,9 +37,6 @@ fi
if test -z "$EGREP" || test "$EGREP" = "not_found"; then
AC_MSG_ERROR([egrep not found in PATH. Cannot continue without egrep.])
fi
-ac_cv_prog_egrep="$EGREP"
-ac_cv_prog_EGREP="$EGREP"
-AC_SUBST([EGREP])
dnl AR is mandatory for configure process and libtool.
dnl This is target dependant, so check it as a tool.
@@ -54,7 +45,6 @@ AC_PATH_TOOL([AR], [ar], [not_found],
if test -z "$AR" || test "$AR" = "not_found"; then
AC_MSG_ERROR([ar not found in PATH. Cannot continue without ar.])
fi
-AC_SUBST([AR])
dnl Fetch c-ares version from ares_version.h
VERSION=`$SED -ne 's/^#define ARES_VERSION_STR "\(.*\)"/\1/p' ${srcdir}/ares_version.h`
diff --git a/configure.ac b/configure.ac
index 7e0e3f351..adfb19e87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,29 +37,23 @@ AM_CONFIG_HEADER(lib/config.h src/config.h)
AM_MAINTAINER_MODE
dnl SED is mandatory for configure process and libtool.
-dnl Set it now and prevent it from being changed later.
+dnl Set it now, allowing it to be changed later.
AC_PATH_PROG([SED], [sed], [not_found],
[$PATH:/usr/bin:/usr/local/bin])
if test -z "$SED" || test "$SED" = "not_found"; then
AC_MSG_ERROR([sed not found in PATH. Cannot continue without sed.])
fi
-ac_cv_prog_sed="$SED"
-ac_cv_prog_SED="$SED"
-AC_SUBST([SED])
dnl GREP is mandatory for configure process and libtool.
-dnl Set it now and prevent it from being changed later.
+dnl Set it now, allowing it to be changed later.
AC_PATH_PROG([GREP], [grep], [not_found],
[$PATH:/usr/bin:/usr/local/bin])
if test -z "$GREP" || test "$GREP" = "not_found"; then
AC_MSG_ERROR([grep not found in PATH. Cannot continue without grep.])
fi
-ac_cv_prog_grep="$GREP"
-ac_cv_prog_GREP="$GREP"
-AC_SUBST([GREP])
dnl EGREP is mandatory for configure process and libtool.
-dnl Set it now and prevent it from being changed later.
+dnl Set it now, allowing it to be changed later.
if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
AC_MSG_CHECKING([for egrep])
EGREP="$GREP -E"
@@ -71,9 +65,6 @@ fi
if test -z "$EGREP" || test "$EGREP" = "not_found"; then
AC_MSG_ERROR([egrep not found in PATH. Cannot continue without egrep.])
fi
-ac_cv_prog_egrep="$EGREP"
-ac_cv_prog_EGREP="$EGREP"
-AC_SUBST([EGREP])
dnl AR is mandatory for configure process and libtool.
dnl This is target dependant, so check it as a tool.
@@ -82,7 +73,6 @@ AC_PATH_TOOL([AR], [ar], [not_found],
if test -z "$AR" || test "$AR" = "not_found"; then
AC_MSG_ERROR([ar not found in PATH. Cannot continue without ar.])
fi
-AC_SUBST([AR])
AC_SUBST(libext)