Conditional compile. Use compiler flags found by autoconf
authorDavid Schleef <ds@schleef.org>
Thu, 5 Jun 2003 22:17:01 +0000 (22:17 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 5 Jun 2003 22:17:01 +0000 (22:17 +0000)
python/Makefile.am

index fdc9cd89b1e71a4251ef641d1005b7f4a371bd4f..469e4091f837d199afeb11e4ede66978875882f9 100644 (file)
@@ -1,18 +1,15 @@
 
+if HAVE_PYTHON
 pyexec_LTLIBRARIES = _comedi.la
+else
+pyexec_LTLIBRARIES = 
+endif
 
 _comedi_la_SOURCES = comedi_wrap.c
-_comedi_la_CFLAGS = $(COMEDILIB_CFLAGS) $(PYTHON_INCLUDES) \
-       -fno-strict-aliasing -Wno-unused
+_comedi_la_CFLAGS = $(COMEDILIB_CFLAGS) $(PYTHON_INCLUDES) $(PYTHON_QUIET)
 _comedi_la_LDFLAGS = -module -avoid-version $(COMEDILIB_LIBS)
 
 pyexec_SCRIPTS = comedi.py
 
 EXTRA_DIST = comedi.i README.txt comedi.py setup.py test_comedi.py
 
-install-exec-local:
-
-
-#$(INSTALL) build/lib.linux-i686-2.2/_comedi.so $(pythondir)/
-#$(INSTALL) comedi.py $(pythondir)/
-