Changeset 69e438 in git


Ignore:
Timestamp:
Jan 28, 2013, 2:24:52 PM (11 years ago)
Author:
Alexander Dreyer <adreyer@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
5efd81570bd3d8921d3bf3272bb1214556bf665f
Parents:
687272a659feb32db61b3cd8137d48231f1d95a8
git-author:
Alexander Dreyer <adreyer@gmx.de>2013-01-28 14:24:52+01:00
git-committer:
Alexander Dreyer <adreyer@gmx.de>2013-01-28 14:39:09+01:00
Message:
Skip pyobject.so if linking to libpythonx.y breaks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/ax_python_with_version.m4

    r687272a r69e438  
    8585                      AC_MSG_RESULT([too recent, skipping python interface!])
    8686                    ],
    87                     [ ax_python_use=true
    88                       si_embed_python=$si_try_embed
    89                       AC_MSG_RESULT([no (ok)])
    90                       AC_MSG_CHECKING(embedding python interface module)
    91                       AC_MSG_RESULT($si_try_embed)
    92                       AX_PYTHON_PREFIX( )
    93                       AX_PYTHON_LSPEC( )
    94                       AX_PYTHON_CSPEC( )
     87                    [ AC_MSG_RESULT([no (ok)])
     88                      ax_python_version=`$PYTHON -c "import sys; print '.'.join(sys.version.split('.')[[:2]])"`
     89                      AC_CHECK_LIB([python${ax_python_version}],[main], [
     90                          ax_python_use=true
     91                          si_embed_python=$si_try_embed
     92                          AC_MSG_CHECKING(embedding python interface module)
     93                          AC_MSG_RESULT($si_try_embed)
     94                          AX_PYTHON_PREFIX( )
     95                          AX_PYTHON_LSPEC( )
     96                          AX_PYTHON_CSPEC( )
     97                        ],
     98                        [ ax_python_use=false
     99                          AC_MSG_RESULT([Cannot link to python, skipping python interface!])
     100                        ]
     101                      )
    95102                    ])
    96103                  ],
Note: See TracChangeset for help on using the changeset viewer.