autoconf: modernize and modularize
[tftp-hpa.git] / autoconf / m4 / pa_prog_cc.m4
blob0debe5d411d65dbd3788b06c785812b859e93c0d
1 dnl --------------------------------------------------------------------------
2 dnl PA_PROG_CC()
3 dnl
4 dnl Similar to AC_PROG_CC, but add a prototype for main() to
5 dnl AC_INCLUDES_DEFAULT to avoid -Werror from breaking compilation.
6 dnl --------------------------------------------------------------------------
7 AC_DEFUN([PA_PROG_CC],
8 [AC_PROG_CC
9  AS_IF([test x$ac_cv_prog != xno],
10  [ac_includes_default="$ac_includes_default
11 #ifndef __cplusplus
12 extern int main(void);
13 #endif"])])