gugod/App-perlbrew — pull request #249 by friedo (2012-10-17 21:56:37+00:00)
Title: Fixes Configure options for ancient perls

Updated some of the version-comparison logic to use version objects rather than regexes. Makes it a lot easier to deal with multiple kinds of version numbers.

I've successfully got it running Configure on perl5.003_07, but compilation fails (on linux). I'm not sure how to fix this:

```sh cflags libperl.a miniperlmain.o` miniperlmain.c
CCCMD = cc -DPERL_CORE -c -I/usr/local/include -O2
In file included from miniperlmain.c:10:0:
perl.h:1180:1: error: unknown type name ‘bool’
In file included from miniperlmain.c:10:0:
perl.h:1471:1: error: unknown type name ‘bool’
perl.h:1511:1: error: unknown type name ‘bool’
perl.h:1545:1: error: unknown type name ‘bool’
perl.h:1550:1: error: unknown type name ‘bool’
perl.h:1551:1: error: unknown type name ‘bool’
perl.h:1552:1: error: unknown type name ‘bool’
perl.h:1553:1: error: unknown type name ‘bool’
perl.h:1554:1: error: unknown type name ‘bool’
perl.h:1555:1: error: unknown type name ‘bool’
perl.h:1556:1: error: unknown type name ‘bool’
perl.h:1557:1: error: unknown type name ‘bool’
perl.h:1558:1: error: unknown type name ‘bool’
perl.h:1559:1: error: unknown type name ‘bool’
perl.h:1560:1: error: unknown type name ‘bool’
perl.h:1561:1: error: unknown type name ‘bool’
perl.h:1562:1: error: unknown type name ‘bool’
perl.h:1563:1: error: unknown type name ‘bool’
perl.h:1652:1: error: unknown type name ‘bool’
perl.h:1654:1: error: unknown type name ‘bool’
perl.h:1655:1: error: unknown type name ‘bool’
perl.h:1710:1: error: unknown type name ‘bool’
In file included from perl.h:1732:0,
from miniperlmain.c:10:
proto.h:11:1: error: unknown type name ‘bool’
proto.h:69:1: error: unknown type name ‘bool’
proto.h:71:1: error: unknown type name ‘bool’
proto.h:71:15: error: unknown type name ‘bool’
proto.h:72:1: error: unknown type name ‘bool’
proto.h:73:1: error: unknown type name ‘bool’
proto.h:85:1: error: unknown type name ‘bool’
proto.h:88:1: error: unknown type name ‘bool’
proto.h:91:1: error: unknown type name ‘bool’
proto.h:146:1: error: unknown type name ‘bool’
proto.h:147:1: error: unknown type name ‘bool’
proto.h:164:1: error: unknown type name ‘bool’
proto.h:422:1: error: unknown type name ‘bool’
proto.h:477:1: error: unknown type name ‘bool’
make: *** [miniperlmain.o] Error 1
[friedo@ip-10-123-54-53 perl5.003_07]$ vi miniperlmain.c
[friedo@ip-10-123-54-53 perl5.003_07]$ make
`sh cflags libperl.a miniperlmain.o` miniperlmain.c
CCCMD = cc -DPERL_CORE -c -I/usr/local/include -O2
`sh cflags libperl.a perl.o` perl.c
CCCMD = cc -DPERL_CORE -c -I/usr/local/include -O2
In file included from perl.c:15:0:
perl.h:1180:1: error: unknown type name ‘bool’```

Hopefully once I figure that out, we will be able to build a full set of perls. :)