# HG changeset patch # User William Pitcock # Date 1189143058 18000 # Node ID 2f96a5ab19163dca6d3b96ce7e3de926673f3f3d # Parent b79892e2229d6a043adf4d494202614801a995e5 --enable-pch to use precompiled headers, does not properly work diff -r b79892e2229d -r 2f96a5ab1916 configure.ac --- a/configure.ac Fri Sep 07 00:20:55 2007 -0500 +++ b/configure.ac Fri Sep 07 00:30:58 2007 -0500 @@ -40,11 +40,7 @@ AC_ISC_POSIX AC_C_BIGENDIAN -dnl If we have GCC, build pre-compiled headers to speed compilation times. -PCH="" test x"$GCC" = x"yes" && CFLAGS="$CFLAGS -Wall -pipe" -test x"$GCC" = x"yes" && PCH="pch" -AC_SUBST(PCH) dnl Check for assembler @@ -145,6 +141,16 @@ AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes) AC_SUBST(USE_IPV6) +dnl PCH support +dnl ======================== +AC_ARG_ENABLE(pch, + [ --enable-pch use GCC precompiled headers (experimental) (default=no)], + enable_pch=$enableval, enable_pch=no) +if test "x$enable_pch" = xyes; then + PCH="pch" +fi +AC_SUBST(PCH) + dnl rpath stuff dnl ======================== AC_ARG_ENABLE(rpath, diff -r b79892e2229d -r 2f96a5ab1916 src/audacious/Makefile --- a/src/audacious/Makefile Fri Sep 07 00:20:55 2007 -0500 +++ b/src/audacious/Makefile Fri Sep 07 00:30:58 2007 -0500 @@ -1,11 +1,12 @@ include ../../mk/rules.mk include ../../mk/init.mk -include ../../mk/objective.mk SUBDIRS = $(INTL_OBJECTIVE) glade images ui OBJECTIVE_BINS = audacious +include ../../mk/objective.mk + LDFLAGS += $(AUDLDFLAGS) LDADD = \ @@ -197,3 +198,4 @@ @printf "%10s %-20s\n" DBUS-BIND $@ OBJECTIVE_DATA = audacious.desktop:$(datadir)/applications +