improved python detection and added --with-pythonincdir for configure.in

This commit is contained in:
Jaroslav Kysela 2007-08-31 15:22:26 +02:00
parent 77603ff798
commit dcdf8c2a00
3 changed files with 13 additions and 4 deletions

View file

@ -1,5 +1,6 @@
pkglibdir = @ALSA_PLUGIN_DIR@/smixer
pythonlibs = @PYTHON_LIBS@
pythonincdir = @PYTHON_INCDIR@
AM_CFLAGS = -g -O2 -W -Wall
@ -30,5 +31,6 @@ smixer_hda_la_LIBADD = ../../../src/libasound.la
if BUILD_PYTHON
smixer_python_la_SOURCES = python.c
smixer_python_la_LDFLAGS = -module -avoid-version $(pythonlibs)
smixer_python_la_CFLAGS = -I$(pythonincdir)
smixer_python_la_LIBADD = ../../../src/libasound.la
endif

View file

@ -19,11 +19,11 @@
*
*/
#include "Python.h"
#include <stddef.h>
#include "config.h"
#include "asoundlib.h"
#include "mixer_abst.h"
#include <python/Python.h>
struct python_priv {
int py_initialized;