summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/config
diff options
context:
space:
mode:
authorjcorgan2007-02-26 18:11:15 +0000
committerjcorgan2007-02-26 18:11:15 +0000
commit789bfcc9d9172645e7b4bf0c7fbf30574e03c201 (patch)
treeb18ba4f58d0cc678d400839fee5fbb308f114ba1 /gr-howto-write-a-block/config
parent84546ead65d3cf50b681fbfb7de66bf7421f98c9 (diff)
downloadgnuradio-789bfcc9d9172645e7b4bf0c7fbf30574e03c201.tar.gz
gnuradio-789bfcc9d9172645e7b4bf0c7fbf30574e03c201.tar.bz2
gnuradio-789bfcc9d9172645e7b4bf0c7fbf30574e03c201.zip
Updated gr_python.m4 for ticket:39 fix.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4642 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-howto-write-a-block/config')
-rw-r--r--gr-howto-write-a-block/config/gr_python.m419
1 files changed, 7 insertions, 12 deletions
diff --git a/gr-howto-write-a-block/config/gr_python.m4 b/gr-howto-write-a-block/config/gr_python.m4
index b2acbbb0e..d2f3a4b66 100644
--- a/gr-howto-write-a-block/config/gr_python.m4
+++ b/gr-howto-write-a-block/config/gr_python.m4
@@ -28,6 +28,13 @@ AC_DEFUN([PYTHON_DEVEL],[
AC_REQUIRE([AM_PATH_PYTHON])
AC_REQUIRE([AC_CANONICAL_HOST])
+ # For Fedora Core 5 and 6, see ticket:39 in Trac
+ if test -f '/etc/redhat-release'; then
+ if (echo $pyexecdir | grep -q lib64); then
+ pythondir="$pyexecdir"
+ fi
+ fi
+
# Check for Python include path
AC_MSG_CHECKING([for Python include path])
if test -z "$PYTHON" ; then
@@ -93,22 +100,10 @@ print path
PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
AC_MSG_RESULT($PYTHON_LDFLAGS)
# Replace all backslashes in PYTHON Paths with forward slashes
- AC_MSG_CHECKING([for pythondir])
pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
- AC_MSG_RESULT($pythondir)
- AC_SUBST([pythondir])
- AC_MSG_CHECKING([for pkgpythondir])
pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
- AC_MSG_RESULT($pkgpythondir)
- AC_SUBST([pkgpythondir])
- AC_MSG_CHECKING([for pyexecdir])
pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
- AC_MSG_RESULT($pyexecdir)
- AC_SUBST([pyexecdir])
- AC_MSG_CHECKING([for pkgpyexecdir])
pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
- AC_MSG_RESULT($pkgpyexecdir)
- AC_SUBST([pkgpyexecdir])
;;
esac