… | |
… | |
467 | support_afterimage=no |
467 | support_afterimage=no |
468 | |
468 | |
469 | if test "x$afterimage_config" = "x" ; then |
469 | if test "x$afterimage_config" = "x" ; then |
470 | AC_PATH_PROG(afterimage_config, afterimage-config, no) |
470 | AC_PATH_PROG(afterimage_config, afterimage-config, no) |
471 | fi |
471 | fi |
472 | AC_PROG_AWK |
|
|
473 | AC_MSG_CHECKING(for libAfterImage version >= 1.15) |
472 | AC_MSG_CHECKING(for libAfterImage version >= 1.15) |
474 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
473 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
475 | if test -n $AFTERIMAGE_VERSION ; then |
474 | if test -n $AFTERIMAGE_VERSION ; then |
476 | AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
475 | AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
477 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
476 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
478 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
477 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
479 | libai_ver_major=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $1}'` |
478 | libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` |
480 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $2}'` |
479 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` |
481 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
480 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
482 | support_afterimage=yes |
481 | support_afterimage=yes |
483 | fi |
482 | fi |
484 | fi |
483 | fi |
485 | fi |
484 | fi |