X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Facosl.m4;h=66cbd6cd9e583dc6eb031cde53812a38b24729a2;hb=db2ebe9d04c394f51b2b0f4306c9f9a79959b1da;hp=0e57df5b25e1a45f7277166ed61c15d09d12cdb0;hpb=73e329f11142c2804e42825e1590041d68dbb6e9;p=gnulib.git diff --git a/m4/acosl.m4 b/m4/acosl.m4 index 0e57df5b2..66cbd6cd9 100644 --- a/m4/acosl.m4 +++ b/m4/acosl.m4 @@ -1,4 +1,4 @@ -# acosl.m4 serial 1 +# acosl.m4 serial 2 dnl Copyright (C) 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -54,7 +54,16 @@ AC_DEFUN([gl_FUNC_ACOSL], AC_LIBOBJ([acosl]) AC_REQUIRE([gl_FUNC_ASINL]) AC_REQUIRE([gl_FUNC_SQRTL]) - ACOSL_LIBM="$ASINL_LIBM $SQRTL_LIBM" + dnl Append $ASINL_LIBM to ACOSL_LIBM, avoiding gratuitous duplicates. + case " $ACOSL_LIBM " in + *" $ASINL_LIBM "*) ;; + *) ACOSL_LIBM="$ACOSL_LIBM $ASINL_LIBM" ;; + esac + dnl Append $SQRTL_LIBM to ACOSL_LIBM, avoiding gratuitous duplicates. + case " $ACOSL_LIBM " in + *" $SQRTL_LIBM "*) ;; + *) ACOSL_LIBM="$ACOSL_LIBM $SQRTL_LIBM" ;; + esac fi AC_SUBST([ACOSL_LIBM]) ])