Where can I find that package Jacek?
Below is the part of "configure" that checks for ImageMagick.
As I understand it checks for $MAGICK_CONFIG and if it is not defined it searches for
Magick-config? Am I right?
All ImageMagick commands ("convert" etc) are installed in /usr/bin in my system.
I have /usr/lib/ImageMagick-6.2.0/config with some xml configuration files.
How do I make configure see my installation?
echo "$as_me:$LINENO: checking for Magick-config" >&5
echo $ECHO_N "checking for Magick-config... $ECHO_C" >&6
if test -n "$MAGICK_CONFIG"; then
kde_cv_path="$MAGICK_CONFIG";
else
kde_cache=`echo Magick-config | sed 'y%./+-%__p_%'`
if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
kde_cv_path="NONE"
kde_save_IFS=$IFS
IFS=':'
dirs=""
for dir in $PATH; do
dirs="$dirs $dir"
done
if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin $dirs"
else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin"
fi
IFS=$kde_save_IFS
for dir in $dirs; do
if test -x "$dir/Magick-config"; then
if test -n ""
then
evalstr="$dir/Magick-config 2>&1 "
if eval $evalstr; then
kde_cv_path="$dir/Magick-config"
break
fi
else
kde_cv_path="$dir/Magick-config"
break
fi
fi
done
eval "kde_cv_path_$kde_cache=$kde_cv_path"
fi
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
fi
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
echo "$as_me:$LINENO: result: not found" >&5
echo "${ECHO_T}not found" >&6
{ echo "$as_me:$LINENO: WARNING: Could not find ImageMagick anywhere, check
http://www.imagemagick.org/ for ImageMagick >= 5.5.2." >&5
echo "$as_me: WARNING: Could not find ImageMagick anywhere, check
http://www.imagemagick.org/ for ImageMagick >= 5.5.2." >&2;}
else
echo "$as_me:$LINENO: result: $kde_cv_path" >&5
echo "${ECHO_T}$kde_cv_path" >&6
MAGICK_CONFIG=$kde_cv_path
fi
if test -n "$MAGICK_CONFIG"; then
vers=`$MAGICK_CONFIG --version 2>/dev/null | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test -n "$vers" && test "$vers" -ge 5005002
then
if test "$vers" -ge 6000003
then
cat >>confdefs.h <<\_ACEOF
#define HAVE_MAGICK6 1
_ACEOF
fi
LIBMAGICK_LIBS="`$MAGICK_CONFIG --libs`"
LIBMAGICK_LDFLAGS="`$MAGICK_CONFIG --ldflags`"
LIBMAGICK_RPATH=
for args in $LIBMAGICK_LIBS; do
case $args in
-L*)
LIBMAGICK_RPATH="$LIBMAGICK_RPATH $args"
;;
esac
done
LIBMAGICK_RPATH=`echo $LIBMAGICK_RPATH | $SED -e "s/-L/-R/g"`
LIBMAGICK_CPPFLAGS="`$MAGICK_CONFIG --cppflags`"
cat >>confdefs.h <<\_ACEOF
#define HAVE_MAGICK 1
_ACEOF
else
{ echo "$as_me:$LINENO: WARNING: You need at least ImageMagick 5.5.2" >&5
echo "$as_me: WARNING: You need at least ImageMagick 5.5.2" >&2;}
fi
fi
if test ! "$USE_RPATH" = "yes"; then
LIBMAGICK_RPATH=
fi