# HG changeset patch # User Rik # Date 1328204253 28800 # Node ID 99428221b4e12873fd8360c002cd48aa2b6ab5b4 # Parent 1734c3a48f312977331db45cf72f9a95e3c451e9 build: Add new location for Qhull2012 include files to build system. configure.ac: Add location libqhull/libqhull.h to list of possibilities. acinclude.m4: Change conftests to possibly use new header files. oct-qhull.h: Add possible new location of headder files. diff -r 1734c3a48f31 -r 99428221b4e1 configure.ac --- a/configure.ac Thu Feb 02 11:34:11 2012 -0500 +++ b/configure.ac Thu Feb 02 09:37:33 2012 -0800 @@ -649,7 +649,7 @@ OCTAVE_CHECK_LIBRARY(qhull, QHull, [Qhull library not found -- this will result in loss of functionality of some geometry functions.], - [qhull/libqhull.h libqhull.h qhull/qhull.h qhull.h], [qh_qhull], [], [], + [libqhull/libqhull.h qhull/libqhull.h libqhull.h qhull/qhull.h qhull.h], [qh_qhull], [], [], [warn_qhull= OCTAVE_CHECK_QHULL_VERSION OCTAVE_CHECK_QHULL_OK([TEXINFO_QHULL="@set HAVE_QHULL" diff -r 1734c3a48f31 -r 99428221b4e1 m4/acinclude.m4 --- a/m4/acinclude.m4 Thu Feb 02 11:34:11 2012 -0500 +++ b/m4/acinclude.m4 Thu Feb 02 09:37:33 2012 -0800 @@ -937,7 +937,13 @@ octave_cv_lib_qhull_version, [ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include -#if defined (HAVE_QHULL_LIBQHULL_H) || defined (HAVE_QHULL_QHULL_H) +#if defined (HAVE_LIBQHULL_LIBQHULL_H) +# include +# include +# include +# include +# include +#elif defined (HAVE_QHULL_LIBQHULL_H) || defined (HAVE_QHULL_QHULL_H) # if defined (HAVE_QHULL_LIBQHULL_H) # include # else @@ -974,7 +980,13 @@ octave_cv_lib_qhull_ok, [ AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include -#if defined (HAVE_QHULL_LIBQHULL_H) || defined (HAVE_QHULL_QHULL_H) +#if defined (HAVE_LIBQHULL_LIBQHULL_H) +# include +# include +# include +# include +# include +#elif defined (HAVE_QHULL_LIBQHULL_H) || defined (HAVE_QHULL_QHULL_H) # if defined (HAVE_QHULL_LIBQHULL_H) # include # else diff -r 1734c3a48f31 -r 99428221b4e1 src/DLD-FUNCTIONS/oct-qhull.h --- a/src/DLD-FUNCTIONS/oct-qhull.h Thu Feb 02 11:34:11 2012 -0500 +++ b/src/DLD-FUNCTIONS/oct-qhull.h Thu Feb 02 09:37:33 2012 -0800 @@ -27,7 +27,13 @@ extern "C" { -#if defined (HAVE_QHULL_LIBQHULL_H) || defined (HAVE_QHULL_QHULL_H) +#if defined (HAVE_LIBQHULL_LIBQHULL_H) +# include +# include +# include +# include +# include +#elif defined (HAVE_QHULL_LIBQHULL_H) || defined (HAVE_QHULL_QHULL_H) # if defined (HAVE_QHULL_LIBQHULL_H) # include # else