splash screen support
[dia.git] / acinclude.m4
blob4ad8c42478db9a2bf09927a4938304f7f6d26c77
1 dnl Check if the C compiler accepts a certain C flag, and if so adds it to
2 dnl CFLAGS
3 AC_DEFUN(DIA_CHECK_CFLAG, [
4   AC_MSG_CHECKING(if C compiler accepts $1)
5   save_CFLAGS="$CFLAGS"
6   CFLAGS="$CFLAGS $1"
7   AC_TRY_COMPILE([#include <stdio.h>], [printf("hello");],
8     [AC_MSG_RESULT(yes)],dnl
9     [AC_MSG_RESULT(no)
10      CFLAGS="$save_CFLAGS"])