diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 45aff1e..3f67b73 100644 --- a/configure.ac +++ b/configure.ac @@ -91,12 +91,20 @@ AC_CHECK_FUNCS(flockfile funlockfile) # Check for funopen 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, AC_LIBOBJ(funopen), AC_MSG_ERROR([[ -No implementation of fopencookie or funopen available. -]])) + # 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_WARN([ +*** +*** No implementation of fopencookie or funopen available. +*** The assuan_get_data_fp feature won't work. +***]) + fi fi + AC_REPLACE_FUNCS(isascii) AC_REPLACE_FUNCS(putc_unlocked) AC_REPLACE_FUNCS(memrchr) |