Skip to content

Commit

Permalink
Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONS
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
  • Loading branch information
alanc committed Oct 6, 2009
1 parent 18c5e2f commit b7be4a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_HEADERS([include/X11/fonts/fontconf.h])

# Require xorg-macros version >= 1.2.0 for XORG_CWARNFLAGS & XORG_CHANGELOG
# Require xorg-macros version >= 1.3.0 for XORG_DEFAULT_OPTIONS
m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])])
XORG_MACROS_VERSION(1.2)
XORG_MACROS_VERSION(1.3)

# Check for progs
AC_PROG_CC
Expand All @@ -47,6 +47,8 @@ dnl If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
dnl must first be located explicitly.
PKG_PROG_PKG_CONFIG

XORG_DEFAULT_OPTIONS

# Look for headers
AC_CHECK_HEADERS([endian.h poll.h sys/poll.h])
AC_CHECK_FUNCS([poll])
Expand Down Expand Up @@ -189,8 +191,6 @@ PKG_CHECK_MODULES(XFONT, xproto xtrans fontsproto fontenc)
# Transport selection macro from xtrans.m4
XTRANS_CONNECTION_FLAGS

XORG_CWARNFLAGS

case $host_os in
linux*)
OS_CFLAGS="-D_XOPEN_SOURCE"
Expand All @@ -204,9 +204,6 @@ case $host_os in
esac
AC_SUBST([OS_CFLAGS])

XORG_RELEASE_VERSION
XORG_CHANGELOG

AC_OUTPUT([Makefile
src/Makefile
src/fontfile/Makefile
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

lib_LTLIBRARIES = libXfont.la

AM_CFLAGS = $(OS_CFLAGS)
AM_CFLAGS = $(OS_CFLAGS) $(CWARNFLAGS)

if XFONT_FONTFILE
FONTFILE_DIR = fontfile
Expand Down

0 comments on commit b7be4a9

Please # to comment.