On Mon, 25 Jun 2001, Ken Williams wrote:
>
> * During 'sh Configure -de -Dusedevel', I get the typical errors about
> try.c, but no other errors.
>
Is there anywhere that we are configuring for that doesnt declare exit()
in 'stdlib.h' if it cares about it being declared at all ?
If not Configure could do something like :
cat <<FOO >try.c
#include <stdlib.h>
int main(int argc, char *argv[]) { return 0;}
FOO
if $cc -o try $ccflags $ldflags try.c 2>/dev/null; then
$stdlib='#include <stdlib.h>'
else
$stdlib=''
fi
Shortly after having determined that there is indeed a working C compiler
and put $stdlib in the top of every subsequent try.c it makes - or is this
a little too simple minded ? :)
BTW what is the SP on making patches to Configure ?
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|