From b8ccf13c163e64474733eff97daa5986ac31697f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 29 Jan 2010 07:59:53 +0000 Subject: [PATCH] no point in calling AC_CHECK_FUNCS multiple times when it accepts multiple arguments git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1743 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 2 ++ urjtag/configure.ac | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 71dd2bc4..35b97789 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -3,6 +3,8 @@ * configure.ac: Unify duplicate driver logic into one macro which also allows unifying of the duplicated lists. + * configure.ac: Unify calls to AC_CHECK_FUNCS. + 2010-01-28 Mike Frysinger * src/cmd/cmd_bfin.c: Replace one-insn-a-file option with dynamic instruction diff --git a/urjtag/configure.ac b/urjtag/configure.ac index 2aec7909..6b4a39d1 100644 --- a/urjtag/configure.ac +++ b/urjtag/configure.ac @@ -110,12 +110,14 @@ else fi fi -AC_CHECK_FUNCS(swprintf) +AC_CHECK_FUNCS(m4_flatten([ + nanosleep + swprintf + usleep +])) AC_CHECK_FUNC(clock_gettime, [], [ AC_CHECK_LIB(rt, clock_gettime) ]) -AC_CHECK_FUNCS(usleep) -AC_CHECK_FUNCS(nanosleep) dnl check for sigaction with SA_ONESHOT or SA_RESETHAND AC_TRY_COMPILE([#include ], [