2009/2/17 Danek Duvall:
>
> I may not get to it before this weekend, but I'll post another patch as
> soon as I have it. In the meantime, if you have a chance to try my latest
> patch out on OS X, I'd be curious to know if it works there.
The following bit of configure.in looked a bit strange, so I changed
it. No idea what that special "if" for MACOSX does though.
diff --git a/src/configure.in b/src/configure.in
index b623c6f..bd32b12 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -742,16 +742,12 @@ eof
fi
PYTHON_SRC="if_python.c"
dnl For Mac OSX 10.2 config.o is included in the Python library.
- if test "x$MACOSX" = "xyes"; then
- PYTHON_OBJ="objects/if_python.o"
- else
- if test "${enable_pythoninterp}" = "dynamic"; then
- PYTHON_OBJ="objects/if_python_stub.o"
- PYTHON_SO_OBJ="objects/if_python.o objects/py_config.o"
- else
- PYTHON_OBJ="objects/if_python_stub.o objects/if_python.o objects/py_
- fi
- fi
+ if test "${enable_pythoninterp}" = "dynamic"; then
+ PYTHON_OBJ="objects/if_python_stub.o"
+ PYTHON_SO_OBJ="objects/if_python.o objects/py_config.o"
+ else
+ PYTHON_OBJ="objects/if_python_stub.o objects/if_python.o objects/py_c
+ fi
if test "${vi_cv_var_python_version}" = "1.4"; then
PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
fi
With this change I did regenerated the configure script and tried
building but something's up but I haven't got time to investigate
right now. Probably just some flag to the compiler/linker that is
missing...but I get the following errors:
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall
-Wno-unknown-pragmas -pipe -I. -Iproto -DMACOS_X_UNIX -no-cpp-precomp
-I/Developer/Headers/FlatCarbon -g -O -D_FORTIFY_SOURCE=1
-DDYNAMIC_PYTHON
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-Kpic -o objects/if_python.o if_python.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall
-Wno-unknown-pragmas -pipe -I. -Iproto -DMACOS_X_UNIX -no-cpp-precomp
-I/Developer/Headers/FlatCarbon -g -O -D_FORTIFY_SOURCE=1
-DDYNAMIC_PYTHON -o objects/py_config.o
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/config.c
\
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-I/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config
-DHAVE_CONFIG_H -DNO_MAIN
gcc -o if_python.so objects/if_python.o objects/py_config.o
Undefined symbols:
"_initimp", referenced from:
__PyImport_Inittab in py_config.o
"_ml_get_buf", referenced from:
_RBSlice in if_python.o
_GetBufferLine in if_python.o
"_u_savesub", referenced from:
_SetBufferLine in if_python.o
"_PyInt_Type", referenced from:
_PyInt_Type$non_lazy_ptr in if_python.o
"_ml_append", referenced from:
_RBAssSlice in if_python.o
_RBAppend in if_python.o
_RBAppend in if_python.o
"_win_setwidth", referenced from:
_WindowSetattr in if_python.o
"_init_symtable", referenced from:
__PyImport_Inittab in py_config.o
"_curwin", referenced from:
_curwin$non_lazy_ptr in if_python.o
-snip-
I'll look into it later on, but the compilation at least worked
fine...I just have to get the dynamic library to work (any ideas?).
Björn
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---