1 dnl --------------------------------------------------------------------------
4 dnl Attempt to add the given option to CFLAGS, if it doesn't break compilation
5 dnl --------------------------------------------------------------------------
6 AC_DEFUN(PA_ADD_CFLAGS,
7 [AC_MSG_CHECKING([if $CC accepts $1])
8 pa_add_cflags__old_cflags="$CFLAGS"
10 AC_TRY_LINK([#include <stdio.h>],
11 [printf("Hello, World!\n");],
14 CFLAGS="$pa_add_cflags__old_cflags")])
16 dnl ------------------------------------------------------------------------
19 dnl PA_WITH_BOOL(option, default, help, enable, disable)
21 dnl Provides a more convenient way to specify --with-option and
22 dnl --without-option, with a default. default should be either 0 or 1.
23 dnl ------------------------------------------------------------------------
24 AC_DEFUN(PA_WITH_BOOL,
25 [AC_ARG_WITH([$1], [$3],
26 if test ["$withval"] != no; then
31 if test [$2] -ne 0; then