# HG changeset patch # User Rik # Date 1328205010 28800 # Node ID 82a3127af11cc65e52566c473fc0751e0eac7192 # Parent 17de694961f5f3ac4c73ae5fe48824baad7ae5d9# Parent 99428221b4e12873fd8360c002cd48aa2b6ab5b4 maint: merge stable to default to bring in Qhull2012 build fixes. diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -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 --git a/m4/acinclude.m4 b/m4/acinclude.m4 --- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -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 --git a/src/DLD-FUNCTIONS/oct-qhull.h b/src/DLD-FUNCTIONS/oct-qhull.h --- a/src/DLD-FUNCTIONS/oct-qhull.h +++ b/src/DLD-FUNCTIONS/oct-qhull.h @@ -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