Add AC_HEADER_ASSERT
This commit is contained in:
parent
dcf3656fa0
commit
44e6fecc34
|
@ -33,6 +33,7 @@ AC_PROG_INSTALL
|
||||||
AC_PROG_CC_C_O # Need to have per product flags myexecutable_CFLAG
|
AC_PROG_CC_C_O # Need to have per product flags myexecutable_CFLAG
|
||||||
AC_PROG_RANLIB # Need for to create libraries: .a
|
AC_PROG_RANLIB # Need for to create libraries: .a
|
||||||
|
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
|
|
||||||
# Found libraries are automatically addded to LIBS
|
# Found libraries are automatically addded to LIBS
|
||||||
|
@ -45,6 +46,7 @@ AC_PROG_RANLIB # Need for to create libraries: .a
|
||||||
# ])
|
# ])
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
|
AC_HEADER_ASSERT # ./configure --disable-assert to define NDEBUG
|
||||||
AC_CHECK_HEADER([stdlib.h])
|
AC_CHECK_HEADER([stdlib.h])
|
||||||
|
|
||||||
# Check for C11's optional Atomic operations library
|
# Check for C11's optional Atomic operations library
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -13,5 +14,6 @@ int main(int argc, char *argv[])
|
||||||
printf ("PACKAGE_NAME "PACKAGE_NAME "\n");
|
printf ("PACKAGE_NAME "PACKAGE_NAME "\n");
|
||||||
printf ("PACKAGE_STRING " PACKAGE_STRING "\n");
|
printf ("PACKAGE_STRING " PACKAGE_STRING "\n");
|
||||||
printf ("PACKAGE_TARNAME " PACKAGE_TARNAME "\n");
|
printf ("PACKAGE_TARNAME " PACKAGE_TARNAME "\n");
|
||||||
|
assert( 1 > 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user