Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Feb 22, 2024
1 parent 3d1b68b commit 9c3596d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 123 deletions.
56 changes: 0 additions & 56 deletions aclocal.m4

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 16 additions & 55 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 9 additions & 11 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ AC_DEFUN([PY_CHECK_FUNC],
AS_VAR_POPDEF([py_define])
])

dnl PY_CHECK_CPP(CPP_CHECK, [LIST-OF-INCLUDES], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
dnl PY_CHECK_CPP(CPP_CHECK, [LIST-OF-INCLUDES], [ACTION-IF-TRUE], [ACTION-IF-FALSE])
AC_DEFUN([PY_CHECK_CPP],
[AC_PREPROC_IFELSE([AC_LANG_PROGRAM([
m4_foreach_w([incl], [$2], [@%:@include <incl> m4_newline])
@%:@if $1
/* pass */
#else
#error "not defined"
#error "check failed"
#endif
])], [$3], [$4])])

Expand Down Expand Up @@ -2838,15 +2838,13 @@ AC_CHECK_HEADERS(
#endif
])

# checks for typedefs
AC_CACHE_CHECK([for clock_t in time.h], [ac_cv_clock_t_time_h], [
AX_CHECK_TYPEDEF([clock_t], [time.h], [ac_cv_clock_t_time_h=yes], [ac_cv_clock_t_time_h=no])
])
dnl checks for "no"
AS_VAR_IF([ac_cv_clock_t_time_h], [no], [
AC_DEFINE([clock_t], [long],
[Define to 'long' if <time.h> doesn't define.])
])
# Check for clock_t in time.h.
AC_CHECK_TYPES([clock_t],
[],
[AS_VAR_IF([ac_cv_type_clock_t], [no],
[AC_DEFINE([clock_t], [long],
["Define to 'long' if <time.h> doesn't define."])])],
[@%:@include time.h])

AC_CACHE_CHECK([for makedev], [ac_cv_func_makedev], [
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
Expand Down
5 changes: 4 additions & 1 deletion pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@
/* Define to 1 if you have the `clock_settime' function. */
#undef HAVE_CLOCK_SETTIME

/* Define to 1 if the system has the type `clock_t'. */
#undef HAVE_CLOCK_T

/* Define to 1 if you have the `closefrom' function. */
#undef HAVE_CLOSEFROM

Expand Down Expand Up @@ -1938,7 +1941,7 @@
/* Define on FreeBSD to activate all library features */
#undef __BSD_VISIBLE

/* Define to 'long' if <time.h> doesn't define. */
/* "Define to 'long' if <time.h> doesn't define." */
#undef clock_t

/* Define to empty if `const' does not conform to ANSI C. */
Expand Down

0 comments on commit 9c3596d

Please sign in to comment.