- AC_LIBOBJ([acosl])
- AC_REQUIRE([gl_FUNC_ASINL])
- AC_REQUIRE([gl_FUNC_SQRTL])
- 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
+ dnl Find libraries needed to link lib/acosl.c.
+ if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
+ AC_REQUIRE([gl_FUNC_ACOS])
+ ACOSL_LIBM="$ACOS_LIBM"
+ else
+ AC_REQUIRE([gl_FUNC_ASINL])
+ AC_REQUIRE([gl_FUNC_SQRTL])
+ 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