#59 configuration with python on Mandriva

closed
nobody
None
5
2006-09-28
2006-04-27
Anonymous
No

I had some problems with the configure.

There was a problem with some missing libraries, which
are needed to link with Python and are not checked in
the configure.

I had Python installed on my machine, but the
distribution did not put this libraries when it was
installed.

I made small changes on your configure.in file in order
to check the presence of these libs.

Here are they:
(The first few lines are just for orientation they are
not changed)

if test "x$PYTHON_VERSION" == "x"; then

echo -n "Automatic determination of python version."

queryfile=$ac_confdir/query_version.py
echo # tmp file auto (re)generated by GDL configure.
Please delete > $queryfile
echo import sys >> $queryfile
echo print
sys.version.split\(\'.\'\)[\[0\]]+\".\"+sys.version.split\(\'.\'\)[\[1\]]
>> $queryfile
PYTHON_VERSION=`python $queryfile`
rm $queryfile
fi

if test "x$with_python" != "xno"; then

# before linking with python we need Math library
AC_SEARCH_LIBS(fabs, m)
# before linking with python we need dl library
(dynamic-link)
AC_SEARCH_LIBS(dlopen, dl dlcompat,
[AC_CHECK_HEADER(dlfcn.h)])

# before python also needs pthread and util (code
stolen from Pleinpot)
AC_SEARCH_LIBS(openpty, util,, AC_MSG_ERROR([[
*******************************************************************
configure --with-python requires the function
"openpty", normally
found in the "util" library.
This function could not be found, check if you can
provide it (install
libutil?) or configure without python: configure
--without-python
*******************************************************************
]])
)

AC_SEARCH_LIBS(pthread_create, pthread,,
AC_MSG_ERROR([[
*******************************************************************
configure --with-python requires the function
"pthread_create", normally
found in the "pthread" library.
This function could not be found, check if you can
provide it (install
libpthread?) or configure without python: configure
--without-python
*******************************************************************
]])
)
fi

Also you configure is not checking for "numarray",
which is mandatory for Python. I know that you are
saying this in the "Requirements", but it will be also
nice if configure file is checking.

Mina Koleva.

Discussion

  • Marc Schellens

    Marc Schellens - 2006-05-22

    Logged In: YES
    user_id=932957

    What are the macro you are using AC_SEARCH_LIBS ?
    Could not find any info about it.

    And do you know an easy way to check for an
    intalled python module?

    Regards,
    Marc

     
  • Marc Schellens

    Marc Schellens - 2006-09-28

    Logged In: YES
    user_id=932957

    I closed this as this topic stagnated for a long time.
    Please repost if appropiate.
    Marc

     
  • Marc Schellens

    Marc Schellens - 2006-09-28
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks