# Copyright (C) 2003 - 2008 GraphicsMagick Group
AC_PREREQ(2.63)
-AC_INIT([ImageMagick],[6.6.1],[http://www.imagemagick.org],[ImageMagick])
+AC_INIT([ImageMagick],[6.6.2],[http://www.imagemagick.org],[ImageMagick])
AC_CONFIG_SRCDIR([magick/MagickCore.h])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AC_CANONICAL_TARGET([])
+MAGICK_TARGET_CPU=$target_cpu
+AC_SUBST(MAGICK_TARGET_CPU)
+
+MAGICK_TARGET_VENDOR=$target_vendor
+AC_SUBST(MAGICK_TARGET_VENDOR)
+
+MAGICK_TARGET_OS=$target_os
+AC_SUBST(MAGICK_TARGET_OS)
+
# Substitute library versioning
AC_SUBST(MAGICK_LIBRARY_CURRENT)dnl
AC_SUBST(MAGICK_LIBRARY_REVISION)dnl
AC_SUBST(LD)
AC_PROG_CC_C99
AM_PROG_CC_C_O
-AC_COMPILE_WARNINGS
+AX_CFLAGS_WARN_ALL
AC_INCLUDES_DEFAULT
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LN_S
AM_WITH_DMALLOC
+AX_C___ATTRIBUTE__
PKG_PROG_PKG_CONFIG
#
#
AC_EXEEXT
AC_OBJEXT
+AX_LANG_COMPILER_MS
GDI32_LIBS=''
native_win32_build='no'
have_threads=no
if test "$with_threads" != 'no'; then
- ACX_PTHREAD()
- if test "$acx_pthread_ok" = yes; then
+ AX_PTHREAD()
+ if test "$ax_pthread_ok" = yes; then
have_threads=yes
DEF_THREAD="$PTHREAD_CFLAGS"
CFLAGS="$CFLAGS $DEF_THREAD"
[AC_HELP_STRING([--with-perl],
[enable build/install of PerlMagick])],
[with_perl=$withval],
- [with_perl=$libtool_build_shared_libs])
+ [with_perl='no'])
# Options to pass when configuring PerlMagick
AC_ARG_WITH([perl-options],
AC_HEADER_STAT
AC_HEADER_TIME
AC_STRUCT_TM
+AC_STRUCT_TIMEZONE
AC_SYS_INTERPRETER
# If the C compiler supports the keyword inline, do nothing. Otherwise
# functional iomanip iosfwd iostream iterator list string strstream utility
AC_LANG([C++])
AC_PROG_CXX
- AC_CXX_HAVE_BOOL
- AC_CXX_HAVE_NAMESPACES
- AC_CXX_HAVE_STD_NAMESPACE
+ AX_CXX_BOOL
+ AX_CXX_NAMESPACES
+ AX_CXX_NAMESPACE_STD
AC_CXX_HAVE_STD_LIBS
AC_CXX_HAVE_LSTRING
AC_OPENMP([C++])
AC_MSG_CHECKING([whether C++ compiler is sufficient for Magick++])
if \
- test $ac_cv_cxx_have_bool = 'yes' && \
+ test $ax_cv_cxx_bool = 'yes' && \
test $ac_cv_cxx_have_lstring = 'yes' && \
- test $ac_cv_cxx_have_namespaces = 'yes' && \
+ test $ax_cv_cxx_namespaces = 'yes' && \
test $ac_cv_cxx_have_std_libs = 'yes' && \
- test $ac_cv_cxx_have_std_namespace = 'yes'; then
+ test $ax_cv_cxx_have_std_namespace = 'yes'; then
have_magick_plus_plus='yes'
else
have_magick_plus_plus='no (failed tests)'
have_wmf='no'
WMF_LIBS=''
-WMF_LIBS_DEPS=''
-OLIBS="$LIBS"
if test "$with_wmf" != 'no'; then
AC_MSG_RESULT([-------------------------------------------------------------])
AC_MSG_CHECKING([for WMF])
AC_MSG_RESULT([])
- have_libwmf='no'
- have_libwmflite='no'
- have_libwmf_ipa_h='no'
-
- AC_CHECK_HEADER([libwmf/ipa.h],[have_libwmf_ipa_h='yes'],,[$FT2BUILD_H])
- if test "$have_libwmf_ipa_h" = 'yes'; then
- AC_CHECK_LIB(wmflite,wmf_lite_create,have_libwmflite='yes',,)
- if test "$have_libwmflite" = 'yes'; then
- AC_DEFINE(WMFLITE_DELEGATE,1,Define if you have wmflite library)
- WMF_LIBS='-lwmflite'
+ failed=0
+ passed=0
+ AC_CHECK_HEADER(libwmf/eps.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
+ AC_CHECK_LIB(wmf,wmf_eps_function,passed=`expr $passed + 1`,failed=`expr $failed + 1`,"-lwmflite")
+ AC_MSG_CHECKING([if WMF package is complete])
+ if test $passed -gt 0; then
+ if test $failed -gt 0; then
+ AC_MSG_RESULT([no -- some components failed test])
+ have_wmf='no (failed tests)'
+ else
+ WMF_LIBS='-lwmf -lwmflite'
LIBS="$WMF_LIBS $LIBS"
+ AC_DEFINE(WMF_DELEGATE,1,Define if you have WMF library)
+ AC_MSG_RESULT([yes])
have_wmf='yes'
- else
- WMF_LIBS_DEPS=''
- WMF_CONFIG_LIBS=`libwmf-config --libs`
- for lib in xml2 expat freetype jpeg png z; do
- testlib="-l${lib}"
- echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
- done
- AC_CHECK_LIB(wmf,wmf_api_create,have_libwmf='yes',,$WMF_LIBS_DEPS)
- if test "$have_libwmf" = 'yes'; then
- AC_DEFINE(WMF_DELEGATE,1,Define if you have wmf library)
- WMF_LIBS='-lwmf'
- LIBS="$WMF_LIBS $LIBS"
- have_wmf='yes'
- else
- AC_MSG_RESULT([no -- some components failed test])
- have_wmf='no (failed tests)'
- have_wmflite='no (failed tests)'
- LIBS="$OLIBS"
- WMF_LIBS=''
- fi
fi
- fi
- AC_MSG_CHECKING([if WMF package is complete])
- if test "$have_wmf" = 'yes'; then
- AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
fi
-AM_CONDITIONAL(WMF_DELEGATE, test "$have_wmf" = 'yes')
+AM_CONDITIONAL(WMF_DELEGATE,test "$have_wmf" = 'yes')
AC_SUBST(WMF_LIBS)
-AC_SUBST(WMF_LIBS_DEPS)
+
+dnl ===========================================================================
+
dnl ===========================================================================
with_perl_dynamic='yes'
fi
# Is PERL's MakeMaker new enough to support DESTDIR?
- AC_PROG_PERL_VERSION(5.8.1,[PERL_SUPPORTS_DESTDIR='yes'],[PERL_SUPPORTS_DESTDIR='no'])
+ AX_PROG_PERL_VERSION(5.8.1,[PERL_SUPPORTS_DESTDIR='yes'],[PERL_SUPPORTS_DESTDIR='no'])
fi
AM_CONDITIONAL(WITH_PERL, test "$have_perl" != 'no')
AM_CONDITIONAL(WITH_PERL_STATIC, test $with_perl_static = 'yes')