From 5b780ccd1569df9c433f042643297d703cd05192 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 7 Sep 2004 16:16:23 +0000 Subject: [PATCH] fixed bug, added check for 2.95.x gcc. --- m4/python.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/m4/python.m4 b/m4/python.m4 index ac53552..a41ea5b 100644 --- a/m4/python.m4 +++ b/m4/python.m4 @@ -31,9 +31,11 @@ if test "x$PY_VERSION" "!=" "x"; then int main(int argn, char*argv[]) { - return Py_Main(argn, argv); + int ret; + ret = Py_Main(argn, argv); + int x; // check also for gcc 2.95.x incompatibilities + return ret; } -bli bla blo EOF ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}' if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then -- 1.7.10.4