Revision a1de4e94 configure.ac
| b/configure.ac | ||
|---|---|---|
| 95 | 95 |
fi |
| 96 | 96 |
fi |
| 97 | 97 |
|
| 98 |
# LibSylph type |
|
| 99 |
libsylph_type=builtin |
|
| 100 |
|
|
| 101 |
AC_ARG_WITH(libsylph, |
|
| 102 |
[ --with-libsylph=[[builtin/standalone/sylpheed]] select LibSylph to use], |
|
| 103 |
libsylph_type=$with_libsylph) |
|
| 104 |
|
|
| 105 |
AC_ARG_WITH(libsylph-dir, |
|
| 106 |
[AC_HELP_STRING([--with-libsylph-dir=DIR], [search for LibSylph in DIR/include and DIR/lib])], |
|
| 107 |
[if test "x$with_libsylph_dir" != x; then |
|
| 108 |
LDFLAGS="$LDFLAGS -L$with_libsylph_dir/lib" |
|
| 109 |
fi]) |
|
| 110 |
|
|
| 111 |
AC_SUBST(libsylph_type) |
|
| 112 |
|
|
| 113 |
case $libsylph_type in |
|
| 114 |
builtin) |
|
| 115 |
AC_DEFINE(BUILTIN_LIBSYLPH, 1, Define if you use built-in LibSylph.) |
|
| 116 |
;; |
|
| 117 |
standalone) |
|
| 118 |
AC_CHECK_LIB(sylph, syl_init, LIBSYLPH_LIBS="-lsylph", AC_MSG_ERROR(Test for LibSylph (standalone) failed.)) |
|
| 119 |
if test "x$with_libsylph_dir" != x; then |
|
| 120 |
CPPFLAGS="$CPPFLAGS -I$with_libsylph_dir/include" |
|
| 121 |
fi |
|
| 122 |
;; |
|
| 123 |
sylpheed) |
|
| 124 |
AC_CHECK_LIB(sylph-0, syl_init, LIBSYLPH_LIBS="-lsylph-0", AC_MSG_ERROR(Test for LibSylph (Sylpheed-included) failed.)) |
|
| 125 |
if test "x$with_libsylph_dir" != x; then |
|
| 126 |
CPPFLAGS="$CPPFLAGS -I$with_libsylph_dir/include/sylpheed" |
|
| 127 |
fi |
|
| 128 |
;; |
|
| 129 |
*) AC_MSG_ERROR([Invalid type for LibSylph: use builtin, standalone, or sylpheed.]) ;; |
|
| 130 |
esac |
|
| 131 |
|
|
| 132 |
AC_SUBST(LIBSYLPH_LIBS) |
|
| 133 |
|
|
| 134 |
AM_CONDITIONAL(BUILTIN_LIBSYLPH, test "$libsylph_type" = "builtin") |
|
| 135 |
|
|
| 98 | 136 |
# Checks for iconv |
| 99 | 137 |
AM_ICONV |
| 100 | 138 |
|
Also available in: Unified diff