Improved python testing
svn: r215
This commit is contained in:
parent
2347ec8e6f
commit
762182e8ea
54
gramps/configure
vendored
54
gramps/configure
vendored
@ -601,6 +601,7 @@ PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_aux_dir=
|
ac_aux_dir=
|
||||||
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
||||||
if test -f $ac_dir/install-sh; then
|
if test -f $ac_dir/install-sh; then
|
||||||
@ -632,7 +633,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|||||||
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
||||||
# ./install, which can be erroneously created by make from ./install.sh.
|
# ./install, which can be erroneously created by make from ./install.sh.
|
||||||
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
||||||
echo "configure:636: checking for a BSD compatible install" >&5
|
echo "configure:637: checking for a BSD compatible install" >&5
|
||||||
if test -z "$INSTALL"; then
|
if test -z "$INSTALL"; then
|
||||||
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
@ -685,7 +686,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|||||||
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
||||||
|
|
||||||
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
||||||
echo "configure:689: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
||||||
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
@ -715,7 +716,7 @@ fi
|
|||||||
# Extract the first word of "gcc", so it can be a program name with args.
|
# Extract the first word of "gcc", so it can be a program name with args.
|
||||||
set dummy gcc; ac_word=$2
|
set dummy gcc; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:719: checking for $ac_word" >&5
|
echo "configure:720: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -745,7 +746,7 @@ if test -z "$CC"; then
|
|||||||
# Extract the first word of "cc", so it can be a program name with args.
|
# Extract the first word of "cc", so it can be a program name with args.
|
||||||
set dummy cc; ac_word=$2
|
set dummy cc; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:749: checking for $ac_word" >&5
|
echo "configure:750: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -796,7 +797,7 @@ fi
|
|||||||
# Extract the first word of "cl", so it can be a program name with args.
|
# Extract the first word of "cl", so it can be a program name with args.
|
||||||
set dummy cl; ac_word=$2
|
set dummy cl; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:800: checking for $ac_word" >&5
|
echo "configure:801: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -828,7 +829,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
||||||
echo "configure:832: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||||
@ -839,12 +840,12 @@ cross_compiling=$ac_cv_prog_cc_cross
|
|||||||
|
|
||||||
cat > conftest.$ac_ext << EOF
|
cat > conftest.$ac_ext << EOF
|
||||||
|
|
||||||
#line 843 "configure"
|
#line 844 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
main(){return(0);}
|
main(){return(0);}
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
ac_cv_prog_cc_works=yes
|
ac_cv_prog_cc_works=yes
|
||||||
# If we can't run a trivial program, we are probably using a cross compiler.
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
||||||
if (./conftest; exit) 2>/dev/null; then
|
if (./conftest; exit) 2>/dev/null; then
|
||||||
@ -870,12 +871,12 @@ if test $ac_cv_prog_cc_works = no; then
|
|||||||
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
||||||
fi
|
fi
|
||||||
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
||||||
echo "configure:874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
||||||
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
||||||
cross_compiling=$ac_cv_prog_cc_cross
|
cross_compiling=$ac_cv_prog_cc_cross
|
||||||
|
|
||||||
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
||||||
echo "configure:879: checking whether we are using GNU C" >&5
|
echo "configure:880: checking whether we are using GNU C" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -884,7 +885,7 @@ else
|
|||||||
yes;
|
yes;
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
||||||
ac_cv_prog_gcc=yes
|
ac_cv_prog_gcc=yes
|
||||||
else
|
else
|
||||||
ac_cv_prog_gcc=no
|
ac_cv_prog_gcc=no
|
||||||
@ -903,7 +904,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
|
|||||||
ac_save_CFLAGS="$CFLAGS"
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
||||||
echo "configure:907: checking whether ${CC-cc} accepts -g" >&5
|
echo "configure:908: checking whether ${CC-cc} accepts -g" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -939,7 +940,7 @@ fi
|
|||||||
# Extract the first word of "gnome-config", so it can be a program name with args.
|
# Extract the first word of "gnome-config", so it can be a program name with args.
|
||||||
set dummy gnome-config; ac_word=$2
|
set dummy gnome-config; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||||
echo "configure:943: checking for $ac_word" >&5
|
echo "configure:944: checking for $ac_word" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_HAVE_GNOME_CONFIG'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_prog_HAVE_GNOME_CONFIG'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -969,18 +970,25 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking Python bindings for sax/xml""... $ac_c" 1>&6
|
echo $ac_n "checking Python bindings for sax/xml""... $ac_c" 1>&6
|
||||||
echo "configure:973: checking Python bindings for sax/xml" >&5
|
echo "configure:974: checking Python bindings for sax/xml" >&5
|
||||||
|
|
||||||
cat > conftest.py <<EOF
|
cat > conftest.py <<EOF
|
||||||
try:
|
try:
|
||||||
from xml.sax import saxexts, saxlib, saxutils
|
from xml.sax import make_parser, handler
|
||||||
f = open("conftest.out", "w")
|
f = open("conftest.out", "w")
|
||||||
f.write("YES")
|
f.write("YES")
|
||||||
f.close()
|
f.close()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
f = open("conftest.out", "w")
|
|
||||||
f.write("NO")
|
try:
|
||||||
f.close()
|
from _xmlplus.sax import make_parser, handler
|
||||||
|
f = open("conftest.out", "w")
|
||||||
|
f.write("YES")
|
||||||
|
f.close()
|
||||||
|
except ImportError:
|
||||||
|
f = open("conftest.out", "w")
|
||||||
|
f.write("NO")
|
||||||
|
f.close()
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
$PYTHON conftest.py
|
$PYTHON conftest.py
|
||||||
@ -995,7 +1003,7 @@ fi
|
|||||||
echo "$ac_t""ok" 1>&6
|
echo "$ac_t""ok" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking Python bindings for gtk+""... $ac_c" 1>&6
|
echo $ac_n "checking Python bindings for gtk+""... $ac_c" 1>&6
|
||||||
echo "configure:999: checking Python bindings for gtk+" >&5
|
echo "configure:1007: checking Python bindings for gtk+" >&5
|
||||||
|
|
||||||
cat > conftest.py <<EOF
|
cat > conftest.py <<EOF
|
||||||
try:
|
try:
|
||||||
@ -1021,11 +1029,11 @@ fi
|
|||||||
echo "$ac_t""ok" 1>&6
|
echo "$ac_t""ok" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking Python bindings for GNOME""... $ac_c" 1>&6
|
echo $ac_n "checking Python bindings for GNOME""... $ac_c" 1>&6
|
||||||
echo "configure:1025: checking Python bindings for GNOME" >&5
|
echo "configure:1033: checking Python bindings for GNOME" >&5
|
||||||
|
|
||||||
cat > conftest.py <<EOF
|
cat > conftest.py <<EOF
|
||||||
try:
|
try:
|
||||||
import gnome, gnome.ui, gnome.xmhtml
|
import gnome, gnome.ui
|
||||||
f = open("conftest.out", "w")
|
f = open("conftest.out", "w")
|
||||||
f.write("YES")
|
f.write("YES")
|
||||||
f.close()
|
f.close()
|
||||||
@ -1049,7 +1057,7 @@ echo "$ac_t""ok" 1>&6
|
|||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking for headers required to compile python extensions""... $ac_c" 1>&6
|
echo $ac_n "checking for headers required to compile python extensions""... $ac_c" 1>&6
|
||||||
echo "configure:1053: checking for headers required to compile python extensions" >&5
|
echo "configure:1061: checking for headers required to compile python extensions" >&5
|
||||||
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
||||||
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
||||||
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
|
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
|
||||||
@ -1057,7 +1065,6 @@ if test "$py_prefix" != "$py_exec_prefix"; then
|
|||||||
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
|
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${py_exec_prefix}/include/python${PYTHON_VERSION}/Python.h"
|
|
||||||
if test -f "${py_exec_prefix}/include/python${PYTHON_VERSION}/Python.h"
|
if test -f "${py_exec_prefix}/include/python${PYTHON_VERSION}/Python.h"
|
||||||
then
|
then
|
||||||
echo "$ac_t""ok" 1>&6
|
echo "$ac_t""ok" 1>&6
|
||||||
@ -1219,6 +1226,7 @@ s%@infodir@%$infodir%g
|
|||||||
s%@mandir@%$mandir%g
|
s%@mandir@%$mandir%g
|
||||||
s%@PYTHON@%$PYTHON%g
|
s%@PYTHON@%$PYTHON%g
|
||||||
s%@ZIP@%$ZIP%g
|
s%@ZIP@%$ZIP%g
|
||||||
|
s%@PYTHON_VERSION@%$PYTHON_VERSION%g
|
||||||
s%@PACKAGE@%$PACKAGE%g
|
s%@PACKAGE@%$PACKAGE%g
|
||||||
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
||||||
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
||||||
|
@ -31,14 +31,14 @@ AC_MSG_CHECKING(Python bindings for sax/xml)
|
|||||||
changequote(,)
|
changequote(,)
|
||||||
cat > conftest.py <<EOF
|
cat > conftest.py <<EOF
|
||||||
try:
|
try:
|
||||||
from xml.sax import saxlib
|
from xml.sax import make_parser, handler
|
||||||
f = open("conftest.out", "w")
|
f = open("conftest.out", "w")
|
||||||
f.write("YES")
|
f.write("YES")
|
||||||
f.close()
|
f.close()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from _xmlplus.sax import saxlib
|
from _xmlplus.sax import make_parser, handler
|
||||||
f = open("conftest.out", "w")
|
f = open("conftest.out", "w")
|
||||||
f.write("YES")
|
f.write("YES")
|
||||||
f.close()
|
f.close()
|
||||||
@ -88,7 +88,7 @@ AC_MSG_CHECKING(Python bindings for GNOME)
|
|||||||
changequote(,)
|
changequote(,)
|
||||||
cat > conftest.py <<EOF
|
cat > conftest.py <<EOF
|
||||||
try:
|
try:
|
||||||
import gnome, gnome.ui, gnome.xmhtml
|
import gnome, gnome.ui
|
||||||
f = open("conftest.out", "w")
|
f = open("conftest.out", "w")
|
||||||
f.write("YES")
|
f.write("YES")
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user