- AC_LIBOBJ([atanl])
- AC_REQUIRE([gl_FUNC_ISNANL])
- dnl Append $ISNANL_LIBM to ATANL_LIBM, avoiding gratuitous duplicates.
- case " $ATANL_LIBM " in
- *" $ISNANL_LIBM "*) ;;
- *) ATANL_LIBM="$ATANL_LIBM $ISNANL_LIBM" ;;
- esac
+ dnl Find libraries needed to link lib/atanl.c.
+ if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
+ AC_REQUIRE([gl_FUNC_ATAN])
+ ATANL_LIBM="$ATAN_LIBM"
+ else
+ AC_REQUIRE([gl_FUNC_ISNANL])
+ dnl Append $ISNANL_LIBM to ATANL_LIBM, avoiding gratuitous duplicates.
+ case " $ATANL_LIBM " in
+ *" $ISNANL_LIBM "*) ;;
+ *) ATANL_LIBM="$ATANL_LIBM $ISNANL_LIBM" ;;
+ esac
+ fi