DO not just compile pygtk program, link it
This commit is contained in:
parent
a4749f7d14
commit
e63454cc5d
@ -9,8 +9,12 @@ AC_DEFUN([_MOO_AC_CHECK_PYGTK_REAL],[
|
||||
CPPFLAGS="$CPPFLAGS $PYGTK_CFLAGS $PYTHON_INCLUDES"
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $PYGTK_CFLAGS $PYTHON_INCLUDES"
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS $PYGTK_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS"
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $PYGTK_LDFLAGS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
|
||||
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
||||
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||
#include <pygobject.h>
|
||||
#include <pycairo.h>
|
||||
int main ()
|
||||
@ -32,6 +36,8 @@ AC_DEFUN([_MOO_AC_CHECK_PYGTK_REAL],[
|
||||
|
||||
CFLAGS="$save_CFLAGS"
|
||||
CPPFLAGS="$save_CPPFLAGS"
|
||||
LIBS="$save_LIBS"
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
],[
|
||||
m4_if([$2],[],[:],[$2])
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user