Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 56016ce

Browse files
dimpaseMatthias Koeppe
authored and
Matthias Koeppe
committed
use AC_LINK_IFELSE instead of obsolete AC_TRY_LINK
1 parent f826ded commit 56016ce

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build/pkgs/4ti2/spkg-configure.m4

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ SAGE_SPKG_CONFIGURE([4ti2], [
1717
FORTYTWO_LIBS="-l4ti2gmp -lzsolve"
1818
CXXFLAGS="${BACKUP_CXXFLAGS} ${FORTYTWO_CXXFLAGS} ${GMP_CFLAGS}"
1919
LIBS="${BACKUP_LIBS} ${FORTYTWO_LIBS} ${GMP_LIBS}"
20-
AC_TRY_LINK([
20+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2121
#include "4ti2/4ti2.h"
22-
],
23-
[ _4ti2_rays_create_state(_4ti2_PREC_INT_ARB);
24-
], [
22+
]], [[ _4ti2_rays_create_state(_4ti2_PREC_INT_ARB);
23+
]])],[
2524
AC_MSG_RESULT([yes])
26-
], [
25+
],[
2726
AC_MSG_RESULT([no])
2827
sage_spkg_install_4ti2=yes
2928
])

0 commit comments

Comments
 (0)