summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2015-05-07 22:33:31 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-05-07 22:33:31 -0700
commit0e2a061b910102cfe858da1807061ace2918c527 (patch)
treeece077e5d720c86c5c96c8b9747e04eb8bcce4f0
parentbb47858b634a4ce49cfca4ce7e3e2795d2cafe2f (diff)
Replace -D_XOPEN_SOURCE -D_BSD_SOURCE with AC_USE_SYSTEM_EXTENSIONS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac11
1 files changed, 1 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index e607596..780e76d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,7 @@ AC_INIT([xfwp], [1.0.3],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xfwp])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
+AC_USE_SYSTEM_EXTENSIONS
# Initialize Automake
AM_INIT_AUTOMAKE([foreign dist-bzip2])
@@ -37,16 +38,6 @@ m4_ifndef([XORG_MACROS_VERSION],
XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
-AC_CANONICAL_HOST
-case $host_os in
- linux*|gnu*|*-gnu)
- OS_CFLAGS="-D_XOPEN_SOURCE -D_BSD_SOURCE"
- ;;
- *)
- OS_CFLAGS=
- ;;
-esac
-
# Checks for pkg-config packages
PKG_CHECK_MODULES(XFWP, xproto ice xproxymngproto)