Skip to content

Commit

Permalink
Merge AC_CHECK_MEMBERS macros.
Browse files Browse the repository at this point in the history
Remove redundant feature test for BlendCompositeOp
  • Loading branch information
rmagick committed Sep 10, 2006
1 parent 81febab commit 0fbc19f
Showing 1 changed file with 2 additions and 45 deletions.
47 changes: 2 additions & 45 deletions configure.ac
Expand Up @@ -196,42 +196,14 @@ AC_CHECK_MEMBERS([ExceptionInfo.module],,,
#endif
#include "magick/api.h"])

AC_CHECK_MEMBERS([Image.bias],,,
AC_CHECK_MEMBERS([Image.bias, Image.orientation, Image.quality, Image.ticks_per_second, Image.transparent_color],,,
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "magick/api.h"])

AC_CHECK_MEMBERS([Image.orientation],,,
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "magick/api.h"])

AC_CHECK_MEMBERS([ImageInfo.orientation],,,
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "magick/api.h"])

AC_CHECK_MEMBERS([Image.quality],,,
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "magick/api.h"])

AC_CHECK_MEMBERS([Image.ticks_per_second],,,
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "magick/api.h"])

AC_CHECK_MEMBERS([Image.transparent_color],,,
AC_CHECK_MEMBERS([ImageInfo.orientation, ImageInfo.channel],,,
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
Expand Down Expand Up @@ -434,21 +406,6 @@ if test "$rm_cv_enum_ColorDodgeCompositeOp" = yes; then
AC_DEFINE(HAVE_COLORDODGECOMPOSITEOP)
fi

AC_CACHE_CHECK(for BlendCompositeOp enum value, rm_cv_enum_BlendCompositeOp,
[AC_TRY_COMPILE(
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include "magick/api.h"],
[CompositeOperator x; x = BlendCompositeOp],
rm_cv_enum_BlendCompositeOp='yes',
rm_cv_enum_BlendCompositeOp='no')])

if test "$rm_cv_enum_BlendCompositeOp" = yes; then
AC_DEFINE(HAVE_BLENDCOMPOSITEOP)
fi

AC_CACHE_CHECK(for IndexChannel enum value, rm_cv_enum_indexchannel,
[AC_TRY_COMPILE(
[#include <stdio.h>
Expand Down

0 comments on commit 0fbc19f

Please sign in to comment.