History

acinclude.m4 : Add AC_CHECK_SIGNAL macro.

Erik de Castro Lopo committed 19 years ago

Commit c824b461 parent f14fc1f1 file · +40 −8Browse files

Unified · Split

acinclude.m4+40−8
@@ -156,6 +156,10 @@ else · 155 unmodified lines
156 156
157)# AC_C_FIND_ENDIAN157)# AC_C_FIND_ENDIAN
158 158
159
160
161
162
159dnl @synopsis AC_C99_FUNC_LRINT163dnl @synopsis AC_C99_FUNC_LRINT
160dnl164dnl
161dnl Check whether C99's lrint function is available.165dnl Check whether C99's lrint function is available.
@@ -192,6 +196,11 @@ if test "$ac_cv_c99_lrint" = yes; then · 30 unmodified lines
192 [Define if you have C99's lrint function.])196 [Define if you have C99's lrint function.])
193fi197fi
194])# AC_C99_FUNC_LRINT198])# AC_C99_FUNC_LRINT
199
200
201
202
203
195dnl @synopsis AC_C99_FUNC_LRINTF204dnl @synopsis AC_C99_FUNC_LRINTF
196dnl205dnl
197dnl Check whether C99's lrintf function is available.206dnl Check whether C99's lrintf function is available.
@@ -204,6 +213,7 @@ dnl and this permission notice appear in all copies. No representations are · 6 unmodified lines
204dnl made about the suitability of this software for any purpose. It is 213dnl made about the suitability of this software for any purpose. It is
205dnl provided "as is" without express or implied warranty.214dnl provided "as is" without express or implied warranty.
206dnl215dnl
216
207AC_DEFUN([AC_C99_FUNC_LRINTF],217AC_DEFUN([AC_C99_FUNC_LRINTF],
208[AC_CACHE_CHECK(for lrintf,218[AC_CACHE_CHECK(for lrintf,
209 ac_cv_c99_lrintf,219 ac_cv_c99_lrintf,
@@ -228,6 +238,11 @@ if test "$ac_cv_c99_lrintf" = yes; then · 18 unmodified lines
228 [Define if you have C99's lrintf function.])238 [Define if you have C99's lrintf function.])
229fi239fi
230])# AC_C99_FUNC_LRINTF240])# AC_C99_FUNC_LRINTF
241
242
243
244
245
231dnl @synopsis AC_C99_FUNC_LLRINT246dnl @synopsis AC_C99_FUNC_LLRINT
232dnl247dnl
233dnl Check whether C99's llrint function is available.248dnl Check whether C99's llrint function is available.
@@ -268,6 +283,8 @@ fi · 34 unmodified lines
268 283
269 284
270 285
286
287
271dnl @synopsis AC_C_CLIP_MODE288dnl @synopsis AC_C_CLIP_MODE
272dnl289dnl
273dnl Determine the clipping mode when converting float to int.290dnl Determine the clipping mode when converting float to int.
@@ -280,8 +297,6 @@ dnl and this permission notice appear in all copies. No representations are · 6 unmodified lines
280dnl made about the suitability of this software for any purpose. It is 297dnl made about the suitability of this software for any purpose. It is
281dnl provided "as is" without express or implied warranty.298dnl provided "as is" without express or implied warranty.
282 299
283
284
285dnl Find the clipping mode in the following way:300dnl Find the clipping mode in the following way:
286dnl 1) If we are not cross compiling test it.301dnl 1) If we are not cross compiling test it.
287dnl 2) IF we are cross compiling, assume that clipping isn't done correctly.302dnl 2) IF we are cross compiling, assume that clipping isn't done correctly.
@@ -390,13 +405,30 @@ case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in · 102 unmodified lines
390 405
391 406
392 407
393ifelse(dnl
394 408
395 Do not edit or modify anything in this comment block.409dnl @synopsis AC_CHECK_SIGNAL(SIGNAME)
396 The arch-tag line is a file identity tag for the GNU Arch 410dnl
397 revision control system.411dnl
412dnl @category C
413dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
414dnl @version 1.0 Jul 07 2007
415
416AC_DEFUN([AC_CHECK_SIGNAL],
417[AC_CACHE_CHECK(for $1,
418 ac_cv_signal_$1,
419[
420AC_TRY_LINK([
421#include <signal.h>
422
423], signal($1, SIG_DFL) ;, ac_cv_signal_$1=yes, ac_cv_signal_$1=no)
424
425])
398 426
399 arch-tag: 6db7c287-8971-4074-a193-468446194fd0427if test "$ac_cv_signal_$1" = yes; then
428 AC_DEFINE(HAVE_$1, 1,
429 [Define if you have signal $1.])
430fi
431])# AC_CHECK_SIGNAL
400 432
401)dnl
402 433
434## AC_CHECK_SIGNALS

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t