[BusyBox] How to make ./configure happy with busybox's sed version.

Glenn McGrath bug1 at iinet.net.au
Mon Jan 26 01:03:03 UTC 2004


On Sun, 25 Jan 2004 12:55:53 -0600
Rob Landley <rob at landley.net> wrote:

> You may barf now.  (Hey, an ugly solution to an ugly problem. 
> Possibly the define should be LIE_TO_AUTOCONF, and it should probably
> have a menuconfig selection thingy.  I throw it out for the inevitable
> "ewwwww" reaction so somebody can tell me if they can think of a
> better way...)

>From glibc-2.3.2/configure.in

AC_CHECK_PROG_VER(SED, sed, --version,
  [GNU sed version \([0-9]*\.[0-9.]*\)],
  [3.0[2-9]*|3.[1-9]*|[4-9]*],
  SED=: aux_missing="$aux_missing sed")

So its not really autoconf's fault, its glibc's configure.in.

glibc's configure.in could be patched but then the configure and
Makefile's would have to be rebuilt with the ancient and unsupported
autoconf version they use.

I guess the test could be patched out directly in configure, but the
patch would probably be version specific.

If lots of other programs do similar checks for GNU sed than maybe a
patch like yours would be a reasonable short to medium term solution.

Would be better if upstream packages fixed their build scripts.



Glenn



More information about the busybox mailing list