diff options
author | JP Rosevear <jpr@ximian.com> | 2001-11-12 05:01:25 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-11-12 05:01:25 +0800 |
commit | 94497ea891f77c974e9ff6693d32c9cf20510ae0 (patch) | |
tree | 8b6372cb40b301268ba3f5f9ad55f74e436c611f | |
parent | 2c0cff9f335f59bc016ffbcb33e34de4e8e38283 (diff) | |
download | gsoc2013-evolution-94497ea891f77c974e9ff6693d32c9cf20510ae0.tar gsoc2013-evolution-94497ea891f77c974e9ff6693d32c9cf20510ae0.tar.gz gsoc2013-evolution-94497ea891f77c974e9ff6693d32c9cf20510ae0.tar.bz2 gsoc2013-evolution-94497ea891f77c974e9ff6693d32c9cf20510ae0.tar.lz gsoc2013-evolution-94497ea891f77c974e9ff6693d32c9cf20510ae0.tar.xz gsoc2013-evolution-94497ea891f77c974e9ff6693d32c9cf20510ae0.tar.zst gsoc2013-evolution-94497ea891f77c974e9ff6693d32c9cf20510ae0.zip |
Check to make sure pilot-link has the charset conversion stuff enabled
2001-11-09 JP Rosevear <jpr@ximian.com>
* configure.in: Check to make sure pilot-link has the charset
conversion stuff enabled
svn path=/trunk/; revision=14668
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 33 |
2 files changed, 37 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2001-11-09 JP Rosevear <jpr@ximian.com> + + * configure.in: Check to make sure pilot-link has the charset + conversion stuff enabled + 2001-11-09 Ettore Perazzoli <ettore@ximian.com> * tools/killev: Chop the output from `uname -s'. Thanks to diff --git a/configure.in b/configure.in index 1a3611e67c..273c05e1d5 100644 --- a/configure.in +++ b/configure.in @@ -655,7 +655,38 @@ dnl ****************************** AC_ARG_ENABLE(pilot-conduits, [ --enable-pilot-conduits=[no/yes] Enable support for building pilot conduits.],,enable_pilot_conduits=no) if test "x$enable_pilot_conduits" = "xyes"; then -GNOME_PILOT_CHECK + GNOME_PILOT_CHECK + + CFLAGS_save="$CFLAGS" + CFLAGS="$CFLAGS $PISOCK_CFLAGS" + LDFLAGS="$save_LDFLAGS" + LDFLAGS="$LDFLAGS $PISOCK_LIBS" + + AC_CACHE_CHECK([if pilot-link handles UTF-8 conversions], ac_cv_pilot_link_utf8, AC_TRY_RUN([ + +#include <stdlib.h> +#include <string.h> +#include <pi-util.h> + +int main (int argc, char **argv) +{ + const char *utf8 = "\x66\x66\x66\x66\x66\x66\x66\xC2\xA9"; + size_t utf8_real_len = strlen (utf8); + char *pstring; + + if (convert_ToPilotChar ("UTF8", utf8, utf8_real_len, &pstring) == -1) + exit (1); + + exit (0); +} +], ac_cv_pilot_link_utf8=yes, ac_cv_pilot_link_utf8=no, ac_cv_pilot_link_utf8=no)) + + CFLAGS="$save_CFLAGS" + LDFLAGS="$save_LDFLAGS" + + if test "$ac_cv_pilot_link_utf8" = no; then + AC_MSG_ERROR(evolution requires pilot-link to have working UTF-8 conversion routines) + fi fi AM_CONDITIONAL(ENABLE_PILOT_CONDUITS, test "x$enable_pilot_conduits" = "xyes") if test x$enable_pilot_conduits = xyes; then |