;;m4_define([catacomb_seen_$3/$$2], [t])])])
catacomb_CPU_FAMILIES([_def])
nil) ;;
;;m4_define([catacomb_seen_$3/$$2], [t])])])
catacomb_CPU_FAMILIES([_def])
nil) ;;
dnl Figure out the target CPU family and ABI.
catacomb_CPU_FAMILIES([catacomb_CLEAR_FLAGS])
catacomb_DEFINE_CPU_OR_ABI([CPUFAM], [2], [cpu],
dnl Figure out the target CPU family and ABI.
catacomb_CPU_FAMILIES([catacomb_CLEAR_FLAGS])
catacomb_DEFINE_CPU_OR_ABI([CPUFAM], [2], [cpu],
catacomb_DEFINE_CPU_OR_ABI([ABI], [3], [abi],
catacomb_DEFINE_CPU_OR_ABI([ABI], [3], [abi],
[AC_DEFINE([socklen_t], [int],
[Define to `int' if <sys/socket.h> does not define])],
[AC_INCLUDES_DEFAULT
[AC_DEFINE([socklen_t], [int],
[Define to `int' if <sys/socket.h> does not define])],
[AC_INCLUDES_DEFAULT
[library needed for syslog], [mdw_cv_syslog_lib],
[mdw_ORIG_LIBS=$LIBS LIBS=
for i in 0 1; do
[library needed for syslog], [mdw_cv_syslog_lib],
[mdw_ORIG_LIBS=$LIBS LIBS=
for i in 0 1; do
- AC_TRY_LINK([#include <syslog.h>],
- [openlog("test", LOG_PID, LOG_DAEMON);
- syslog(LOG_ERR, "this is a test");],
- [ok=t], [ok=nil])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[@%:@include <syslog.h>]],
+ [[openlog("test", LOG_PID, LOG_DAEMON);
+ syslog(LOG_ERR, "this is a test");]])],
+ [ok=t], [ok=nil])
esac])
AC_DEFUN([catacomb_LIMIT],
[catacomb_COMPILE_TIME_CONSTANT([lo], [$2], [$1_min],
esac])
AC_DEFUN([catacomb_LIMIT],
[catacomb_COMPILE_TIME_CONSTANT([lo], [$2], [$1_min],
catacomb_COMPILE_TIME_CONSTANT([hi], [$3], [$1_max],
catacomb_COMPILE_TIME_CONSTANT([hi], [$3], [$1_max],
limits="$limits$limits_sep('$1', $lo, $hi)" limits_sep=", "])
catacomb_LIMIT([SCHAR], [SCHAR_MIN], [SCHAR_MAX])
catacomb_LIMIT([CHAR], [CHAR_MIN], [CHAR_MAX])
limits="$limits$limits_sep('$1', $lo, $hi)" limits_sep=", "])
catacomb_LIMIT([SCHAR], [SCHAR_MIN], [SCHAR_MAX])
catacomb_LIMIT([CHAR], [CHAR_MIN], [CHAR_MAX])
dnl Figure out other aspects of the implementation's arithmetic.
AC_CACHE_CHECK([whether negative numbers use two's complement],
[catacomb_cv_neg_twoc],
dnl Figure out other aspects of the implementation's arithmetic.
AC_CACHE_CHECK([whether negative numbers use two's complement],
[catacomb_cv_neg_twoc],
-[AC_TRY_COMPILE(
-[#include <limits.h>],
-[int check[2*!!(-INT_MAX == INT_MIN + 1) - 1];],
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+[[@%:@include <limits.h>]],
+[[int check[2*!!(-INT_MAX == INT_MIN + 1) - 1];]])],
[catacomb_cv_neg_twoc=yes],
[catacomb_cv_neg_twoc=no])])
case $catacomb_cv_neg_twoc in
[catacomb_cv_neg_twoc=yes],
[catacomb_cv_neg_twoc=no])])
case $catacomb_cv_neg_twoc in
CATACOMB_LIBS=$LIBS LIBS=$mdw_ORIG_LIBS
if test "$ac_cv_search_clock_gettime" != no; then
AC_DEFINE([HAVE_CLOCK_GETTIME], [1],
CATACOMB_LIBS=$LIBS LIBS=$mdw_ORIG_LIBS
if test "$ac_cv_search_clock_gettime" != no; then
AC_DEFINE([HAVE_CLOCK_GETTIME], [1],
fi
AC_CHECK_FUNCS([getentropy])
AC_CACHE_CHECK([whether the freewheel noise generator will work],
[catacomb_cv_freewheel],
fi
AC_CHECK_FUNCS([getentropy])
AC_CACHE_CHECK([whether the freewheel noise generator will work],
[catacomb_cv_freewheel],
-[AC_TRY_LINK(
-[#include <setjmp.h>
-#include <sys/time.h>],
-[struct itimerval itv = { { 0, 0 }, { 0, 5000 } };
+[AC_LINK_IFELSE([AC_LANG_PROGRAM(
+[[@%:@include <setjmp.h>
+@%:@include <sys/time.h>]],
+[[struct itimerval itv = { { 0, 0 }, { 0, 5000 } };
[catacomb_cv_freewheel=yes],
[catacomb_cv_freewheel=no])])
case $catacomb_cv_freewheel in
[catacomb_cv_freewheel=yes],
[catacomb_cv_freewheel=no])])
case $catacomb_cv_freewheel in
AM_CFLAGS="$AM_CFLAGS $mLib_CFLAGS"
dnl--------------------------------------------------------------------------
AM_CFLAGS="$AM_CFLAGS $mLib_CFLAGS"
dnl--------------------------------------------------------------------------