Mercurial > hg > octave-lyh
changeset 15054:a6d4965ef04b
configure.ac: replace deprecated AC_TRY_LINK macro
author | Carnë Draug <carandraug+dev@gmail.com> |
---|---|
date | Mon, 30 Jul 2012 16:23:52 +0100 |
parents | 70a1b50bcb45 |
children | bc32288f4a42 |
files | configure.ac |
diffstat | 1 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -900,12 +900,17 @@ AC_LANG_PUSH(C++) AC_CHECK_HEADER([Magick++.h], [ AC_MSG_CHECKING([for Magick::ColorRGB in Magick++.h]) - AC_TRY_LINK([#include <Magick++.h>], [Magick::ColorRGB c;], [ - AC_MSG_RESULT(yes) - warn_magick= - ], [ - AC_MSG_RESULT(no) - ]) + AC_PREPROC_IFELSE( + [AC_LANG_SOURCE( + [[#include <Magick++.h>]], + [[Magick::ColorRGB c;]]) + ], [ + AC_MSG_RESULT(yes) + warn_magick= + ], [ + AC_MSG_RESULT(no) + ] + ) ]) AC_LANG_POP(C++) CPPFLAGS="$save_CPPFLAGS"