--- asterisk-1.6.0.18/configure.ac.orig Mon Oct 26 23:13:28 2009 +++ asterisk-1.6.0.18/configure.ac Fri Nov 27 21:42:36 2009 @@ -627,9 +627,11 @@ AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h]) -if test "x${OSARCH}" = "xlinux-gnu" ; then - AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h]) -fi +case "${OSARCH}" in + linux*) + AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h]) + ;; +esac AST_C_DEFINE_CHECK([DAHDI], [DAHDI_CODE], [dahdi/user.h])