* configure.ac: Use AC_GNU_SOURCE macro instead of changing CFLAGS.
* defs.h [HAVE_CONFIG_H]: Include config.h first.
* strace.c: Include "defs.h" first.
Fixes RH#143370.
AM_CONDITIONAL([FREEBSD], [test x$opsys = xfreebsd])
AC_PROG_CC
-dnl That set the default CFLAGS value, which we don't want to diddle first.
-CFLAGS="-D_GNU_SOURCE $CFLAGS"
+AC_GNU_SOURCE
AC_INCLUDEDIR
* $Id$
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef linux
#include <features.h>
#endif
# endif
#endif
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
/* configuration section */
#ifndef MAX_QUALS
#if defined(LINUX) && defined(MIPS)
* $Id$
*/
-#include <sys/types.h>
#include "defs.h"
+#include <sys/types.h>
#include <signal.h>
#include <errno.h>
#include <sys/param.h>