Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 925100 | Differences between
and this patch

Collapse All | Expand All

(-)a/m4/libtextstyle.m4.orig (-3 / +23 lines)
Lines 21-26 AC_DEFUN([gl_LIBTEXTSTYLE], Link Here
21
[
21
[
22
  AC_REQUIRE([gl_LIBTEXTSTYLE_INITIALIZE])
22
  AC_REQUIRE([gl_LIBTEXTSTYLE_INITIALIZE])
23
  AC_REQUIRE([gl_LIBTEXTSTYLE_SEARCH])
23
  AC_REQUIRE([gl_LIBTEXTSTYLE_SEARCH])
24
25
  AC_MSG_CHECKING([whether to link against libtextstyle])
26
  AC_ARG_WITH([libtextstyle],
27
    [AS_HELP_STRING([--with-libtextstyle],
28
      [support fancy colors @<:@default=check@:>@])],
29
    [],
30
    [with_libtextstyle=check])
31
  AC_MSG_RESULT([$with_libtextstyle])
32
24
  pushdef([MINVERSION], m4_if([$1], [], [gl_LIBTEXTSTYLE_NEWEST_VERSION], [$1]))
33
  pushdef([MINVERSION], m4_if([$1], [], [gl_LIBTEXTSTYLE_NEWEST_VERSION], [$1]))
25
  dnl Signal a fatal error if MINVERSION is not among the allowed values.
34
  dnl Signal a fatal error if MINVERSION is not among the allowed values.
26
  m4_if(m4_if(MINVERSION, [0.20], [x], [])m4_if(MINVERSION, [0.20.5], [x], []), [],
35
  m4_if(m4_if(MINVERSION, [0.20], [x], [])m4_if(MINVERSION, [0.20.5], [x], []), [],
Lines 53-59 AC_DEFUN([gl_LIBTEXTSTYLE_SEARCH], Link Here
53
      snippet='term_styled_ostream_create(1,"",TTYCTL_AUTO,"");'
62
      snippet='term_styled_ostream_create(1,"",TTYCTL_AUTO,"");'
54
      ;;
63
      ;;
55
  esac
64
  esac
56
  AC_LIB_HAVE_LINKFLAGS([textstyle], [],
65
57
    [#include <textstyle.h>], [$snippet],
66
  AS_IF(
58
    [no])
67
    [test "x$with_libtextstyle" != xno],
68
      [AC_LIB_HAVE_LINKFLAGS([textstyle], [],
69
        [#include <textstyle.h>], [$snippet],
70
        [no])
71
      ]
72
  )
73
74
  AS_IF(
75
    [test "x$with_libtextstyle" = xyes -a "x$HAVE_LIBTEXTSTYLE" != xyes],
76
      [AC_MSG_FAILURE(
77
        [--with-libtextstyle was given, but test for libtextstyle failed])]
78
  )
59
])
79
])

Return to bug 925100