@@ -803,6 +803,7 @@ enable_pythoninterp
803803with_python_config_dir
804804enable_python3interp
805805with_python3_config_dir
806+ with_properly_linked_python2_python3
806807enable_tclinterp
807808with_tclsh
808809enable_rubyinterp
@@ -1515,6 +1516,7 @@ Optional Packages:
15151516 --with-plthome=PLTHOME Use PLTHOME.
15161517 --with-python-config-dir=PATH Python's config directory
15171518 --with-python3-config-dir=PATH Python's config directory
1519+ --with-properly-linked-python2-python3 Link with properly linked Python 2 and Python 3.
15181520 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
15191521 --with-ruby-command=RUBY name of the Ruby command (default: ruby)
15201522 --with-x use the X Window System
@@ -6443,6 +6445,15 @@ fi
64436445
64446446
64456447
6448+
6449+ # Check whether --with-properly-linked-python2-python3 was given.
6450+ if test " ${with_properly_linked_python2_python3+set} " = set ; then :
6451+ withval=$with_properly_linked_python2_python3 ; vi_cv_with_properly_linked_python2_python3=" yes"
6452+ else
6453+ vi_cv_with_properly_linked_python2_python3=" no"
6454+ fi
6455+
6456+
64466457if test " $python_ok " = yes && test " $python3_ok " = yes; then
64476458 $as_echo " #define DYNAMIC_PYTHON 1" >> confdefs.h
64486459
@@ -6454,7 +6465,7 @@ $as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6;
64546465 CFLAGS=" $CFLAGS $PYTHON_CFLAGS "
64556466 libs_save=$LIBS
64566467 LIBS=" -ldl $LIBS "
6457- if test " x$MACOSX " ! = " xyes" ; then
6468+ if test " x$MACOSX " ! = " xyes" || test " $vi_cv_with_properly_linked_python2_python3 " = " yes " ; then
64586469 if test " $cross_compiling " = yes; then :
64596470 { { $as_echo " $as_me :${as_lineno-$LINENO } : error: in \` $ac_pwd ':" >&5
64606471$as_echo " $as_me : error: in \` $ac_pwd ':" >&2 ; }
0 commit comments