|
|
@ -6,7 +6,7 @@ |
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
|
|
# |
|
|
# |
|
|
# ROCK Linux: rock-src/package/base/python/python.conf |
|
|
# ROCK Linux: rock-src/package/base/python/python.conf |
|
|
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
|
|
|
|
|
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf |
|
|
# |
|
|
# |
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
@ -20,17 +20,16 @@ |
|
|
# |
|
|
# |
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If this is enabled, the resulting python binary will not run without X11 |
|
|
# If this is enabled, the resulting python binary will not run without X11 |
|
|
# and Tcl/Tk. So there is no _tkinter module on default ... |
|
|
# and Tcl/Tk. So there is no _tkinter module on default ... |
|
|
# |
|
|
# |
|
|
enable_tcltk() { |
|
|
enable_tcltk() { |
|
|
if [ -f /usr/include/tcl.h -a -f /usr/include/tk.h ] ; then |
|
|
if [ -f /usr/include/tcl.h -a -f /usr/include/tk.h ] ; then |
|
|
|
|
|
echo "Found tcl.h and tk.h: enabling tcltk support" |
|
|
{ echo "_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \\" ; |
|
|
{ echo "_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \\" ; |
|
|
echo " -L/usr/X11R6/lib -I/usr/X11R6/include \\" ; |
|
|
echo " -L/usr/X11R6/lib -I/usr/X11R6/include \\" ; |
|
|
echo " -ltk8.4 -ltcl8.4 -lX11" ; |
|
|
echo " -ltk8.4 -ltcl8.4 -lX11" ; |
|
|
} >> Modules/Setup.local |
|
|
} >> Modules/Setup.local |
|
|
echo "Found tcl.h and tk.h: enabling tcltk support" |
|
|
|
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|