diff options
| author | Andreas Schwab | 2021-04-11 17:23:22 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2021-04-11 17:33:33 +0200 |
| commit | 751e801f90339480ea43fc2237fc45c8eb39bd6f (patch) | |
| tree | c45fb90201418af637ea4b9a881d1f9b8a32cee2 | |
| parent | 725fc96b706c57ef8ceca5e7d82b175d9a72e845 (diff) | |
| download | emacs-751e801f90339480ea43fc2237fc45c8eb39bd6f.tar.gz emacs-751e801f90339480ea43fc2237fc45c8eb39bd6f.zip | |
Fix check for timer_getoverrun
* configure.ac (timer_getoverrun): Move check after gnulib checks
and use $LIB_TIMER_TIME during check.
| -rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 681c25b052c..169ffc55341 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -4201,7 +4201,7 @@ getrusage get_current_dir_name \ | |||
| 4201 | lrand48 random rint trunc \ | 4201 | lrand48 random rint trunc \ |
| 4202 | select getpagesize setlocale newlocale \ | 4202 | select getpagesize setlocale newlocale \ |
| 4203 | getrlimit setrlimit shutdown \ | 4203 | getrlimit setrlimit shutdown \ |
| 4204 | pthread_sigmask strsignal setitimer timer_getoverrun \ | 4204 | pthread_sigmask strsignal setitimer \ |
| 4205 | sendto recvfrom getsockname getifaddrs freeifaddrs \ | 4205 | sendto recvfrom getsockname getifaddrs freeifaddrs \ |
| 4206 | gai_strerror sync \ | 4206 | gai_strerror sync \ |
| 4207 | getpwent endpwent getgrent endgrent \ | 4207 | getpwent endpwent getgrent endgrent \ |
| @@ -5498,6 +5498,12 @@ gl_INIT | |||
| 5498 | CFLAGS=$SAVE_CFLAGS | 5498 | CFLAGS=$SAVE_CFLAGS |
| 5499 | LIBS=$SAVE_LIBS | 5499 | LIBS=$SAVE_LIBS |
| 5500 | 5500 | ||
| 5501 | # timer_getoverrun needs the same libarary as timer_settime | ||
| 5502 | OLD_LIBS=$LIBS | ||
| 5503 | LIBS="$LIB_TIMER_TIME $LIBS" | ||
| 5504 | AC_CHECK_FUNCS(timer_getoverrun) | ||
| 5505 | LIBS=$OLD_LIBS | ||
| 5506 | |||
| 5501 | if test "${opsys}" = "mingw32"; then | 5507 | if test "${opsys}" = "mingw32"; then |
| 5502 | CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I \${abs_top_srcdir}/nt/inc" | 5508 | CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I \${abs_top_srcdir}/nt/inc" |
| 5503 | # Remove unneeded switches from the value of CC that goes to Makefiles | 5509 | # Remove unneeded switches from the value of CC that goes to Makefiles |