From be5434018ad5d117ee184b95fcdf8b3ededbcc09 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 24 Mar 2010 05:37:47 +0000 Subject: Automake fixups git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1106897 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- configure.in | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/configure.in b/configure.in index add03463f..699ee395b 100644 --- a/configure.in +++ b/configure.in @@ -1265,6 +1265,8 @@ KDE_CHECK_HEADER(lcms/lcms.h,have_lcms_header='yes',,) if test "$have_lcms_header" = 'yes' then AC_DEFINE(LCMS_HEADER, , [The correct header]) + HAVELCMS="yes" + LCMS_LIBS="-llcms" echo "#include " > conftest.$ac_ext echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext @@ -1279,6 +1281,8 @@ else if test "$have_lcms_header" = 'yes' then AC_DEFINE(LCMS_HEADER, , [The correct header]) + HAVELCMS="yes" + LCMS_LIBS="-llcms" echo "#include " > conftest.$ac_ext echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext @@ -1290,6 +1294,8 @@ else # and now debian also does it this way... can't they decide for one way of doing stuff ? AC_DEFINE(LCMS_HEADER, , [The correct header]) + HAVELCMS="yes" + LCMS_LIBS="-llcms" echo "#include " > conftest.$ac_ext echo "#if LCMS_VERSION < 115" >> conftest.$ac_ext @@ -1300,20 +1306,6 @@ else fi fi - -ac_link='$LIBTOOL_SHELL --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext -llcms 1>&5' - -if AC_TRY_EVAL(ac_link) && test -s conftest; then - AC_MSG_RESULT(yes) - HAVELCMS="yes" - LCMS_LIBS="-llcms" -else - AC_MSG_RESULT(no) - HAVELCMS="no" - LCMS_LIBS="" - DO_NOT_COMPILE="$DO_NOT_COMPILE krita" -fi - AC_SUBST(LCMS_LIBS) # IM 6.1.3 changed the number of arguments to GetMagickInfoList -- cgit v1.2.3