X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_have_libdrizzle.m4;h=bdd4b6a87ce55bff110fc1f5199f062fb179f22a;hb=b95b86ccfcaf1491760cf84723c48be9f13df49b;hp=218d1fad37f8ae49fc68d4410d11964f14789a69;hpb=04e03499f9070e87fee805a8430266757583a75c;p=m6w6%2Flibmemcached diff --git a/m4/pandora_have_libdrizzle.m4 b/m4/pandora_have_libdrizzle.m4 index 218d1fad..bdd4b6a8 100644 --- a/m4/pandora_have_libdrizzle.m4 +++ b/m4/pandora_have_libdrizzle.m4 @@ -1,5 +1,5 @@ -dnl Copyright (C) 2009 Sun Microsystems -dnl This file is free software; Sun Microsystems +dnl Copyright (C) 2009 Sun Microsystems, Inc. +dnl This file is free software; Sun Microsystems, Inc. dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -36,20 +36,26 @@ AC_DEFUN([PANDORA_HAVE_LIBDRIZZLE],[ AC_DEFUN([PANDORA_REQUIRE_LIBDRIZZLE],[ AC_REQUIRE([PANDORA_HAVE_LIBDRIZZLE]) - AS_IF([test "x${ac_cv_libdrizzle}" = "xno"], - AC_MSG_ERROR([libdrizzle is required for ${PACKAGE}])) + AS_IF([test "x${ac_cv_libdrizzle}" = "xno"],[ + AC_MSG_ERROR([libdrizzle is required for ${PACKAGE}]) + ],[ + dnl We need at least 0.8 on Solaris non-sparc + AS_IF([test "$target_cpu" != "sparc" -a "x${TARGET_SOLARIS}" = "xtrue"],[ + PANDORA_LIBDRIZZLE_RECENT + ]) + ]) ]) -AC_DEFUN([PANDORA_LIBDRIZZLE_NOVCOL],[ - AC_CACHE_CHECK([if libdrizzle still has virtual columns], - [pandora_cv_libdrizzle_vcol], +AC_DEFUN([PANDORA_LIBDRIZZLE_RECENT],[ + AC_CACHE_CHECK([if libdrizzle is recent enough], + [pandora_cv_libdrizzle_recent], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include -int foo= DRIZZLE_COLUMN_TYPE_DRIZZLE_VIRTUAL; +drizzle_con_options_t foo= DRIZZLE_CON_EXPERIMENTAL; ]])], - [pandora_cv_libdrizzle_vcol=yes], - [pandora_cv_libdrizzle_vcol=no])]) - AS_IF([test "$pandora_cv_libdrizzle_vcol" = "yes"],[ - AC_MSG_ERROR([Your version of libdrizzle is too old. ${PACKAGE} requires at least version 0.4]) + [pandora_cv_libdrizzle_recent=yes], + [pandora_cv_libdrizzle_recent=no])]) + AS_IF([test "$pandora_cv_libdrizzle_recent" = "no"],[ + AC_MSG_ERROR([Your version of libdrizzle is too old. ${PACKAGE} requires at least version 0.8]) ]) ])