diff options
author | d3v11 <d3v11@d3v11.ano> | 2011-10-29 11:37:41 -0400 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2011-10-29 11:37:41 -0400 |
commit | 78e607b3e4c55b830193dee5711b220e6ca79720 (patch) | |
tree | 70d6fc4c63ed4cd46204350b11e96955e5138d73 /contrib/splicex/configure | |
parent | 81aab712cfe805dc00010cb2ff5761787d0a4050 (diff) | |
download | resdb-78e607b3e4c55b830193dee5711b220e6ca79720.tar.gz resdb-78e607b3e4c55b830193dee5711b220e6ca79720.zip |
SpliceX patched compiler for /path/to/Python.h and /path/to/structmember.h
Diffstat (limited to 'contrib/splicex/configure')
-rwxr-xr-x | contrib/splicex/configure | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/splicex/configure b/contrib/splicex/configure index 535520e..933b51d 100755 --- a/contrib/splicex/configure +++ b/contrib/splicex/configure @@ -57,7 +57,15 @@ echo echo -e " python version == $1" echo -e " interpreter path == $PYPATH" if [ -z "$2" ]; then - echo -e " compiler flags == gcc -I/usr/include/$1" + if [ -e /usr/include/"$1"/Python.h ] && [ -e /usr/include/"$1"/structmember.h ]; then + PYHEADERS="/usr/include/$1" + echo -e " compiler flags == gcc -I /usr/include/$1" + elif [ -e /usr/local/include/"$1"/Python.h ] && [ -e /usr/local/include/"$1"/structmember.h ]; then + PYHEADERS="/usr/local/include/$1" + echo -e " compiler flags == gcc -I /usr/local/include/$1" + else + echo -e " Python.h and structmember.h could not be found... FAILED" + fi fi echo if [ -z "$2" ]; then @@ -69,6 +77,7 @@ sed -e s^PYTHON^"$PYPATH"^g src/deshadow.pyx >build/deshadow.pyx || exit 1 echo -ne " generating Makefile..." if [ -z "$2" ]; then sed -e s^PYTHON^"$1"^g src/make.in >Makefile || exit 1 + sed -i s^HEADERS^"$PYHEADERS"^g Makefile || exit 1 echo -ne ' DONE' echo else |