Skip to content

Commit

Permalink
Ensure 'awk' is found in runtime environment
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : 12f354fed9b9982a1326ddfe6a92419835659d66
  • Loading branch information
David Lee committed Mar 8, 2007
1 parent fe39b61 commit 7ad523a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -2608,6 +2608,19 @@ if test "xyes" = "x$enable_libc_malloc" -o "x1" = "x$enable_libc_malloc"; then
AC_DEFINE_UNQUOTED(CL_USE_LIBC_MALLOC, 1, Use libc malloc instead of Heartbeat's custom one.)
fi

dnl **********************************************************************
dnl 'AWK' had been determined via 'aclocal.m4' as the simple name, using
dnl the current PATH (i.e. in the context of 'configure').
dnl
dnl Things within heartbeat will use 'AWK', but from a different context,
dnl so we should determine, and substitute, the full path.
dnl
dnl Note: Even that may have a flaw, e.g. if 'configure' finds (say) 'gawk',
dnl which we here convert to '/path/to/gawk', but the run-time machine lacks it.
dnl We won't worry about that for now.
dnl (David Lee; March 2007)
AC_PATH_PROGS([AWK], $AWK)

dnl **********************************************************************
dnl Enable optional, experimental directories here...
dnl
Expand Down

0 comments on commit 7ad523a

Please sign in to comment.