mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
PA_ADD_LANGFLAGS() was broken, resulting in among other things --enable-lto not working. Make autogen.sh fail if aclocal return error. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 lines
477 B
Plaintext
14 lines
477 B
Plaintext
dnl --------------------------------------------------------------------------
|
|
dnl PA_PROG_CC()
|
|
dnl
|
|
dnl Similar to AC_PROG_CC, but add a prototype for main() to
|
|
dnl AC_INCLUDES_DEFAULT to avoid -Werror from breaking compilation.
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN([PA_PROG_CC],
|
|
[AC_PROG_CC
|
|
AS_IF([test x$ac_cv_prog != xno],
|
|
[ac_includes_default="$ac_includes_default
|
|
#ifndef __cplusplus
|
|
extern int main(void);
|
|
#endif"])])
|