From 76c6b0ef713edba85ccb5542eded96d3cb3d2882 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (home)" <j.wuttke@fz-juelich.de> Date: Thu, 12 Sep 2013 22:43:59 +0200 Subject: [PATCH] autoupdate'd --- pub/configure.ac | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pub/configure.ac b/pub/configure.ac index 5e3cf83c..b6028920 100644 --- a/pub/configure.ac +++ b/pub/configure.ac @@ -92,17 +92,17 @@ AC_CHECK_HEADERS([kww.h],, AC_MSG_ERROR([Cannot find kww.h.])) AC_CHECK_HEADERS([cerf.h],, AC_MSG_ERROR([Cannot find cerf.h.])) # C++ includes of our own -AC_TRY_CPP([#include<boost/format.hpp>],, - AC_MSG_ERROR([Cannot find boost/format.hpp.])) -AC_TRY_CPP([#include<boost/shared_ptr.hpp>],, - AC_MSG_ERROR([Cannot find boost/shared_ptr.hpp.])) - -AC_TRY_CPP([#include<trivia/file_ops.hpp>],, - AC_MSG_ERROR([Cannot find trivia/file_ops.hpp.])) -AC_TRY_CPP([#include<readplus/readln.hpp>],, - AC_MSG_ERROR([Cannot find readplus/readln.hpp.])) -AC_TRY_CPP([#include<yamlfreeze/yaml.hpp>],, - AC_MSG_ERROR([Cannot find yamlfreeze/yaml.hpp.])) +AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include<boost/format.hpp>]])],[], + [AC_MSG_ERROR(Cannot find boost/format.hpp.)]) +AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include<boost/shared_ptr.hpp>]])],[], + [AC_MSG_ERROR(Cannot find boost/shared_ptr.hpp.)]) + +AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include<trivia/file_ops.hpp>]])],[], + [AC_MSG_ERROR(Cannot find trivia/file_ops.hpp.)]) +AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include<readplus/readln.hpp>]])],[], + [AC_MSG_ERROR(Cannot find readplus/readln.hpp.)]) +AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include<yamlfreeze/yaml.hpp>]])],[], + [AC_MSG_ERROR(Cannot find yamlfreeze/yaml.hpp.)]) ################################################################################ ## Check for libraries, needed at link time ## -- GitLab