diff options
Diffstat (limited to 'lib/autoconf/programs.m4')
-rw-r--r-- | lib/autoconf/programs.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 index 1b7460c8..62ba6b8b 100644 --- a/lib/autoconf/programs.m4 +++ b/lib/autoconf/programs.m4 @@ -371,6 +371,16 @@ AC_CACHE_CHECK([for egrep], ac_cv_path_EGREP, fi]) EGREP="$ac_cv_path_EGREP" AC_SUBST([EGREP]) + dnl + dnl Also set EGREP_TRADITIONAL even though unnecessary here, + dnl for wrong but too-common code with the following pattern: + dnl AC_PROG_EGREP + dnl if false; then + dnl AC_EGREP_HEADER([printf], [stdio.h], [has_printf=yes]) + dnl fi + dnl AC_EGREP_HEADER([malloc], [stdlib.h], [has_malloc=yes]) + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP ])# AC_PROG_EGREP # _AC_PROG_EGREP_TRADITIONAL |