X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_libtool.m4;h=85456198b09a6022ba08c071e06ba7217a492a99;hb=481efe3c437e1d87e0fabb987982cc1df2b2c35d;hp=b9e461c7dcfbfb7b8a419a5eddbb57b34c87db10;hpb=d6524995788ff698a0275284f3df4adfec8b6c67;p=m6w6%2Flibmemcached diff --git a/m4/pandora_libtool.m4 b/m4/pandora_libtool.m4 index b9e461c7..85456198 100644 --- a/m4/pandora_libtool.m4 +++ b/m4/pandora_libtool.m4 @@ -1,10 +1,20 @@ -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. AC_DEFUN([PANDORA_LIBTOOL],[ + AC_REQUIRE([AC_DISABLE_STATIC]) AC_REQUIRE([AC_PROG_LIBTOOL]) + m4_ifndef([LT_PREREQ],[ + pandora_have_old_libtool=yes + ],[ + pandora_have_old_libtool=no + ]) + AS_IF([test "$SUNCC" = "yes" -a "${pandora_have_old_libtool}" = "yes"],[ + AC_MSG_ERROR([Building ${PACKAGE} with Sun Studio requires at least libtool 2.2]) + ]) + dnl By requiring AC_PROG_LIBTOOL, we should force the macro system to read dnl libtool.m4, where in 2.2 AC_PROG_LIBTOOL is an alias for LT_INIT dnl Then, if we're on 2.2, we should have LT_LANG, so we'll call it.