Skip to content

Commit

Permalink
Enable python by default. Refs #302
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.nexusformat.org/code/trunk@1754 ff5d1e40-2be0-497f-93bd-dc18237bd3c7
  • Loading branch information
FreddieAkeroyd authored and Freddie Akeroyd committed Nov 14, 2011
1 parent b5d0082 commit 06d3611
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ AC_DEFUN([LINUX_DISTRIBUTION],
# $3 = list of root paths to try. If the path is a file, assume it is
# path/bin/files and then work out path
# $4 = file in path to locate
# $5 = default withval
#
# e.g. AC_CHECK_ROOT([tcl],[TCLROOT],[/usr /usr/local],[include/tcl.h])
#
Expand All @@ -135,7 +136,7 @@ AC_DEFUN(
AC_HELP_STRING([--with-$1=/path/to/$1_install_directory],
[Specify absolute path to root of $1 install directory.]),
[if test x$withval != xno -a x$withval != xyes; then $2=$withval; fi],
[with_$1=no])
[with_$1=$5])
if test x$with_$1 != xno; then
AC_MSG_CHECKING(for $1 root installation directory)
# if --with secified a file, assume it is ROOT/bin/file
Expand Down
10 changes: 5 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -243,16 +243,16 @@ AC_PROG_MAKE_SET
AC_PROG_RANLIB

if test x$with_tcl != xno; then
AC_CHECK_ROOT([tcl],[TCLROOT],[/usr /usr/local],[include/tcl.h])
AC_CHECK_ROOT([tcl],[TCLROOT],[/usr /usr/local],[include/tcl.h],[no])
fi
if test x$with_guile != xno; then
AC_CHECK_ROOT([guile],[GUILEROOT],[/usr /usr/local],[include/libguile.h])
AC_CHECK_ROOT([guile],[GUILEROOT],[/usr /usr/local],[include/libguile.h],[no])
fi
if test x$with_opengenie != xno; then
AC_CHECK_ROOT([opengenie],[OPENGENIEROOT],[/usr/local],[genie/genie.so])
AC_CHECK_ROOT([opengenie],[OPENGENIEROOT],[/usr/local],[genie/genie.so],[no])
fi
if test x$with_python != xno; then
AC_CHECK_ROOT([python],[PYTHONROOT],[/usr /usr/local],[bin/python])
AC_CHECK_ROOT([python],[PYTHONROOT],[/usr /usr/local],[bin/python],[yes])
if test x$PYTHONROOT != x; then
if test -r "$PYTHONROOT/bin/python"; then PYTHON="$PYTHONROOT/bin/python"; fi
if test -r "$PYTHONROOT/python"; then PYTHON="$PYTHONROOT/python"; fi
Expand Down Expand Up @@ -724,7 +724,7 @@ AC_CHECK_FUNCS([ftime memset strchr strdup strrchr strstr tzset mkstemp])
AM_CONDITIONAL(HAVE_CPP, [test ! -z "$CXX"])
AM_CONDITIONAL(HAVE_F77, [test "$with_f77" != "no"])
AM_CONDITIONAL(HAVE_F90, [test "$with_f90" != "no"])
AM_CONDITIONAL(HAVE_PYTHON, [test ! -z "$PYTHONROOT" -a "$PYTHON_numpy" -eq 1])
AM_CONDITIONAL(HAVE_PYTHON, [test ! -z "$PYTHONROOT" -a "$PYTHON_numpy_found" = "yes"])
AM_CONDITIONAL(HAVE_TCL, [test ! -z "$TCLROOT"])
AM_CONDITIONAL(HAVE_GUILE, [test ! -z "$GUILEROOT"])
AM_CONDITIONAL(HAVE_SWIG, [test ! -z "$SWIG"])
Expand Down

0 comments on commit 06d3611

Please sign in to comment.