# HG changeset patch # User Andreas Schwab # Date 1223815642 0 # Node ID 015e43fe3098604b218f4b159ebeb232cbfcae0e # Parent 3553ffaa94908ccfee876b56bba8507e8d89c8dd Only check for m17n-flt if HAVE_LIBOTF. diff -r 3553ffaa9490 -r 015e43fe3098 ChangeLog --- a/ChangeLog Sun Oct 12 11:53:26 2008 +0000 +++ b/ChangeLog Sun Oct 12 12:47:22 2008 +0000 @@ -1,3 +1,7 @@ +2008-10-12 Andreas Schwab + + * configure.in: Only check for m17n-flt if HAVE_LIBOTF. + 2008-08-28 Adrian Robert * configure.in: Report USE_TOOLKIT_SCROLLBARS as such (not mentioning diff -r 3553ffaa9490 -r 015e43fe3098 configure --- a/configure Sun Oct 12 11:53:26 2008 +0000 +++ b/configure Sun Oct 12 12:47:22 2008 +0000 @@ -13181,7 +13181,8 @@ fi HAVE_M17N_FLT=no -if test "${with_m17n_flt}" != "no"; then +if test "${HAVE_LIBOTF}" = yes; then + if test "${with_m17n_flt}" != "no"; then succeeded=no @@ -13276,12 +13277,13 @@ HAVE_M17N_FLT=no fi - if test "$HAVE_M17N_FLT" = "yes"; then + if test "$HAVE_M17N_FLT" = "yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_M17N_FLT 1 _ACEOF + fi fi fi @@ -18746,13 +18748,11 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include /* for off_t */ - #include -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); +#include +int +main () +{ +return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); ; return 0; } @@ -18792,13 +18792,11 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #define _LARGEFILE_SOURCE 1 -#include /* for off_t */ - #include -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); +#include +int +main () +{ +return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); ; return 0; } diff -r 3553ffaa9490 -r 015e43fe3098 configure.in --- a/configure.in Sun Oct 12 11:53:26 2008 +0000 +++ b/configure.in Sun Oct 12 12:47:22 2008 +0000 @@ -1876,10 +1876,12 @@ fi HAVE_M17N_FLT=no -if test "${with_m17n_flt}" != "no"; then - PKG_CHECK_MODULES(M17N_FLT, m17n-flt, HAVE_M17N_FLT=yes, HAVE_M17N_FLT=no) - if test "$HAVE_M17N_FLT" = "yes"; then - AC_DEFINE(HAVE_M17N_FLT, 1, [Define to 1 if using libm17n-flt.]) +if test "${HAVE_LIBOTF}" = yes; then + if test "${with_m17n_flt}" != "no"; then + PKG_CHECK_MODULES(M17N_FLT, m17n-flt, HAVE_M17N_FLT=yes, HAVE_M17N_FLT=no) + if test "$HAVE_M17N_FLT" = "yes"; then + AC_DEFINE(HAVE_M17N_FLT, 1, [Define to 1 if using libm17n-flt.]) + fi fi fi