[Python-Dev] bad exec* prototypes check (original) (raw)

Sjoerd Mullender sjoerd at acm.org
Sat Jan 17 02:47:54 EST 2004


Skip Montanaro wrote:

In configure.in there is a check for bad exec* prototypes:

if test "$haveprototypes" = yes; then badprototypes=no ACMSGCHECKING(for bad exec* prototypes) ACTRYCOMPILE([#include <unistd.h>], [char **t;execve("@",t,t);], , ACDEFINE(BADEXECPROTOTYPES, 1, [Define if your <unistd.h> contains bad prototypes for exec*() (as it does on SGI IRIX 4.x)]) badprototypes=yes ) ACMSGRESULT($badprototypes) fi Since we assume a proper ANSI C compiler at this point, can we get rid of this test?

That code is ancient. The fi on the last line is still from revision 1.1 in 1993! I wrote the original version of this and Guido incorporated it into the Python configure. I think it can go, especially since IRIX 4 support has been deleted.

-- Sjoerd Mullender <sjoerd at acm.org>



More information about the Python-Dev mailing list