From: kramm Date: Tue, 7 Sep 2004 16:16:23 +0000 (+0000) Subject: fixed bug, added check for 2.95.x gcc. X-Git-Tag: xpdf-3-00~25 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=5b780ccd1569df9c433f042643297d703cd05192 fixed bug, added check for 2.95.x gcc. --- 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