Lines 38-43
AC_DEFUN([gl_LIBTEXTSTYLE_NEWEST_VERSION], [0.20.5])
Link Here
|
38 |
AC_DEFUN([gl_LIBTEXTSTYLE_INITIALIZE], |
38 |
AC_DEFUN([gl_LIBTEXTSTYLE_INITIALIZE], |
39 |
[ |
39 |
[ |
40 |
m4_divert_text([DEFAULTS], [gl_libtextstyle_minversion=' 0.20 ']) |
40 |
m4_divert_text([DEFAULTS], [gl_libtextstyle_minversion=' 0.20 ']) |
|
|
41 |
|
42 |
AC_MSG_CHECKING([whether to link against libtextstyle]) |
43 |
AC_ARG_WITH([libtextstyle], |
44 |
[AS_HELP_STRING([--with-libtextstyle], |
45 |
[support fancy colors @<:@default=auto@:>@])], |
46 |
[], |
47 |
[with_libtextstyle=auto]) |
48 |
AC_MSG_RESULT([$with_libtextstyle]) |
41 |
]) |
49 |
]) |
42 |
|
50 |
|
43 |
AC_DEFUN([gl_LIBTEXTSTYLE_SEARCH], |
51 |
AC_DEFUN([gl_LIBTEXTSTYLE_SEARCH], |
Lines 53-59
AC_DEFUN([gl_LIBTEXTSTYLE_SEARCH],
Link Here
|
53 |
snippet='term_styled_ostream_create(1,"",TTYCTL_AUTO,"");' |
61 |
snippet='term_styled_ostream_create(1,"",TTYCTL_AUTO,"");' |
54 |
;; |
62 |
;; |
55 |
esac |
63 |
esac |
56 |
AC_LIB_HAVE_LINKFLAGS([textstyle], [], |
64 |
|
57 |
[#include <textstyle.h>], [$snippet], |
65 |
AS_IF( |
58 |
[no]) |
66 |
[test "x$with_libtextstyle" != xno], |
|
|
67 |
[AC_LIB_HAVE_LINKFLAGS([textstyle], [], |
68 |
[#include <textstyle.h>], [$snippet], |
69 |
[no] |
70 |
)] |
71 |
) |
72 |
|
73 |
AS_IF( |
74 |
[test "x$with_libtextstyle" = xyes -a "x$HAVE_LIBTEXTSTYLE" != xyes], |
75 |
[AC_MSG_FAILURE( |
76 |
[--with-libtextstyle was given, but test for libtextstyle failed] |
77 |
)] |
78 |
) |
59 |
]) |
79 |
]) |
60 |
- |
|
|