Ticket #43254: patch-configure-python2.7.diff

File patch-configure-python2.7.diff, 1.0 KB (added by matt@…, 10 years ago)

My approach for working around the configure errors on OS X

  • configure

    old new  
    2435224352
    2435324353
    2435424354
    24355   PYTHON_PREFIX='${prefix}'
     24355  PYTHON_PREFIX=`python2.7-config --prefix`
    2435624356
    24357   PYTHON_EXEC_PREFIX='${exec_prefix}'
     24357  PYTHON_EXEC_PREFIX=`python2.7-config --exec-prefix`
    2435824358
    2435924359
    2436024360
     
    2461424614        #
    2461524615        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
    2461624616$as_echo_n "checking for Python include path... " >&6; }
     24617        PYTHON_CPPFLAGS=`python2.7-config --cflags`
    2461724618        if test -z "$PYTHON_CPPFLAGS"; then
    2461824619                python_path=`$PYTHON -c "import distutils.sysconfig; \
    2461924620                        print (distutils.sysconfig.get_python_inc ());"`
     
    2474824749        #
    2474924750        { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
    2475024751$as_echo_n "checking python extra linking flags... " >&6; }
     24752        PYTHON_EXTRA_LDFLAGS=`python2.7-config --ldflags`
    2475124753        if test -z "$PYTHON_EXTRA_LDFLAGS"; then
    2475224754                PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
    2475324755                        conf = distutils.sysconfig.get_config_var; \