From fd8f4ac9f070e748a7a35deb178c40d37e1046f1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 18 Feb 2004 18:05:38 +0000 Subject: * configure.ac: Make the check for funopen fail with just a warning. * assuan-handler.c (assuan_get_data_fp): Fail with ENOSYS if we can't implement this. --- configure.ac | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1755a30f..163fa4ac 100644 --- a/configure.ac +++ b/configure.ac @@ -277,23 +277,28 @@ AM_CONDITIONAL(RUN_GPGSM_TESTS, # FIXME: Only build if supported. AM_CONDITIONAL(BUILD_ASSUAN, test "$GPGSM" != "no") -if test "$GPGSM" != "no"; then - AC_CHECK_FUNCS(funopen) - if test $ac_cv_func_funopen != yes; then + +# The assuan code uses funopen but it will also build without it. So +# test for it. Frankly, this is not required in gpgme, but thats the +# way we handle it in libassuan. +AC_CHECK_FUNCS(funopen) +if test $ac_cv_func_funopen != yes; then # No funopen but we can implement that in terms of fopencookie. AC_CHECK_FUNCS(fopencookie) if test $ac_cv_func_fopencookie = yes; then AC_LIBOBJ([funopen]) else - AC_MSG_ERROR([No implementation of fopencookie or funopen available]) + AC_MSG_WARN([ +*** +*** No implementation of fopencookie or funopen available +***]) fi - fi - - AC_REPLACE_FUNCS(isascii) - AC_REPLACE_FUNCS(putc_unlocked) - AC_REPLACE_FUNCS(memrchr) fi +AC_REPLACE_FUNCS(isascii) +AC_REPLACE_FUNCS(putc_unlocked) +AC_REPLACE_FUNCS(memrchr) + AM_CONDITIONAL(BUILD_COMPLUS, test "$component_system" = "COM+") -- cgit v1.2.3