Skip to content

Commit

Permalink
added conditional for python
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestv committed Aug 7, 2008
1 parent 68e9eaa commit d0923f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pkgconfig_DATA = libmpq.pc
EXTRA_DIST = \
AUTHORS \
COPYING \
ChangeLog \
FAQ \
INSTALL \
NEWS \
Expand Down
6 changes: 5 additions & 1 deletion bindings/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# any directories which should be built and installed.
SUBDIRS = d python
SUBDIRS = d

if HAVE_PYTHON
SUBDIRS += python
endif
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ AC_TRY_COMPILE([
#endif
], [], [CFLAGS="$CFLAGS -fvisibility=hidden"])

# find python for binding
AM_PATH_PYTHON([2.4],,[:])
AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])

# configuration files.
AC_CONFIG_FILES([libmpq.pc])
Expand Down

0 comments on commit d0923f8

Please sign in to comment.