Ticket #42925: patch-POTFILES.in-libgrss.diff

File patch-POTFILES.in-libgrss.diff, 25.5 KB (added by dbevans (David B. Evans), 10 years ago)

Patch to address POTFILES.in issues, dependencies, etc

  • Portfile

     
    1919                    sha256  a0b5d9cc18b90891c20b3645567b31edda1e6f61e6a4c2f314ac77490bb767b1
    2020
    2121depends_build       port:pkgconfig \
    22                     port:gnome-doc-utils
     22                    port:intltool \
     23                    port:gtk-doc \
     24                    port:autoconf \
     25                    port:automake \
     26                    port:libtool \
     27                    port:gnome-common
    2328
    2429depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
    2530                    port:libxml2 \
    2631                    port:libsoup \
    27                     port:rarian
     32                    port:gobject-introspection
    2833
    29 configure.args      --disable-scrollkeeper
     34patchfiles          patch-netinet-utils.h.diff \
     35                    patch-autotools.diff
    3036
    31 patchfiles          patch-netinet-utils.h.diff
     37# temporary work around for absence of po/POTFILES.in
     38# silences non-fatal error during configure
    3239
    33 post-activate {
    34     system "${prefix}/bin/scrollkeeper-update"
    35 }
     40post-patch {
     41    file mkdir ${worksrcpath}/po
     42    touch ${worksrcpath}/po/POTFILES.in
     43}   
    3644
    37 livecheck.type  regex
    38 livecheck.url   http://gtk.mplat.es/libgrss/tarballs/
    39 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
     45configure.cmd       ./autogen.sh
     46
     47livecheck.type      regex
     48livecheck.url       http://gtk.mplat.es/libgrss/tarballs/
     49livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
  • files/patch-autotools.diff

     
     1From 876a8327d6ded380ff5e6c5130c0e00e543eba24 Mon Sep 17 00:00:00 2001
     2From: Roberto Guido <bob4job@gmail.com>
     3Date: Thu, 20 Mar 2014 01:15:21 +0000
     4Subject: Updated autotools files
     5
     6---
     7diff --git a/INSTALL b/INSTALL
     8index 6931b4e..2099840 100644
     9--- INSTALL
     10+++ INSTALL
     11@@ -1,8 +1,370 @@
     12-The simple way to install libgrss is:
     13+Installation Instructions
     14+*************************
     15 
     16-./configure
     17-make
     18-sudo make install
     19+Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
     20+Inc.
     21 
     22-You can also use the --enable-gtk-doc option with ./configure to generate
     23-documentation in GtkDoc format.
     24+   Copying and distribution of this file, with or without modification,
     25+are permitted in any medium without royalty provided the copyright
     26+notice and this notice are preserved.  This file is offered as-is,
     27+without warranty of any kind.
     28+
     29+Basic Installation
     30+==================
     31+
     32+   Briefly, the shell command `./configure && make && make install'
     33+should configure, build, and install this package.  The following
     34+more-detailed instructions are generic; see the `README' file for
     35+instructions specific to this package.  Some packages provide this
     36+`INSTALL' file but do not implement all of the features documented
     37+below.  The lack of an optional feature in a given package is not
     38+necessarily a bug.  More recommendations for GNU packages can be found
     39+in *note Makefile Conventions: (standards)Makefile Conventions.
     40+
     41+   The `configure' shell script attempts to guess correct values for
     42+various system-dependent variables used during compilation.  It uses
     43+those values to create a `Makefile' in each directory of the package.
     44+It may also create one or more `.h' files containing system-dependent
     45+definitions.  Finally, it creates a shell script `config.status' that
     46+you can run in the future to recreate the current configuration, and a
     47+file `config.log' containing compiler output (useful mainly for
     48+debugging `configure').
     49+
     50+   It can also use an optional file (typically called `config.cache'
     51+and enabled with `--cache-file=config.cache' or simply `-C') that saves
     52+the results of its tests to speed up reconfiguring.  Caching is
     53+disabled by default to prevent problems with accidental use of stale
     54+cache files.
     55+
     56+   If you need to do unusual things to compile the package, please try
     57+to figure out how `configure' could check whether to do them, and mail
     58+diffs or instructions to the address given in the `README' so they can
     59+be considered for the next release.  If you are using the cache, and at
     60+some point `config.cache' contains results you don't want to keep, you
     61+may remove or edit it.
     62+
     63+   The file `configure.ac' (or `configure.in') is used to create
     64+`configure' by a program called `autoconf'.  You need `configure.ac' if
     65+you want to change it or regenerate `configure' using a newer version
     66+of `autoconf'.
     67+
     68+   The simplest way to compile this package is:
     69+
     70+  1. `cd' to the directory containing the package's source code and type
     71+     `./configure' to configure the package for your system.
     72+
     73+     Running `configure' might take a while.  While running, it prints
     74+     some messages telling which features it is checking for.
     75+
     76+  2. Type `make' to compile the package.
     77+
     78+  3. Optionally, type `make check' to run any self-tests that come with
     79+     the package, generally using the just-built uninstalled binaries.
     80+
     81+  4. Type `make install' to install the programs and any data files and
     82+     documentation.  When installing into a prefix owned by root, it is
     83+     recommended that the package be configured and built as a regular
     84+     user, and only the `make install' phase executed with root
     85+     privileges.
     86+
     87+  5. Optionally, type `make installcheck' to repeat any self-tests, but
     88+     this time using the binaries in their final installed location.
     89+     This target does not install anything.  Running this target as a
     90+     regular user, particularly if the prior `make install' required
     91+     root privileges, verifies that the installation completed
     92+     correctly.
     93+
     94+  6. You can remove the program binaries and object files from the
     95+     source code directory by typing `make clean'.  To also remove the
     96+     files that `configure' created (so you can compile the package for
     97+     a different kind of computer), type `make distclean'.  There is
     98+     also a `make maintainer-clean' target, but that is intended mainly
     99+     for the package's developers.  If you use it, you may have to get
     100+     all sorts of other programs in order to regenerate files that came
     101+     with the distribution.
     102+
     103+  7. Often, you can also type `make uninstall' to remove the installed
     104+     files again.  In practice, not all packages have tested that
     105+     uninstallation works correctly, even though it is required by the
     106+     GNU Coding Standards.
     107+
     108+  8. Some packages, particularly those that use Automake, provide `make
     109+     distcheck', which can by used by developers to test that all other
     110+     targets like `make install' and `make uninstall' work correctly.
     111+     This target is generally not run by end users.
     112+
     113+Compilers and Options
     114+=====================
     115+
     116+   Some systems require unusual options for compilation or linking that
     117+the `configure' script does not know about.  Run `./configure --help'
     118+for details on some of the pertinent environment variables.
     119+
     120+   You can give `configure' initial values for configuration parameters
     121+by setting variables in the command line or in the environment.  Here
     122+is an example:
     123+
     124+     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
     125+
     126+   *Note Defining Variables::, for more details.
     127+
     128+Compiling For Multiple Architectures
     129+====================================
     130+
     131+   You can compile the package for more than one kind of computer at the
     132+same time, by placing the object files for each architecture in their
     133+own directory.  To do this, you can use GNU `make'.  `cd' to the
     134+directory where you want the object files and executables to go and run
     135+the `configure' script.  `configure' automatically checks for the
     136+source code in the directory that `configure' is in and in `..'.  This
     137+is known as a "VPATH" build.
     138+
     139+   With a non-GNU `make', it is safer to compile the package for one
     140+architecture at a time in the source code directory.  After you have
     141+installed the package for one architecture, use `make distclean' before
     142+reconfiguring for another architecture.
     143+
     144+   On MacOS X 10.5 and later systems, you can create libraries and
     145+executables that work on multiple system types--known as "fat" or
     146+"universal" binaries--by specifying multiple `-arch' options to the
     147+compiler but only a single `-arch' option to the preprocessor.  Like
     148+this:
     149+
     150+     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
     151+                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
     152+                 CPP="gcc -E" CXXCPP="g++ -E"
     153+
     154+   This is not guaranteed to produce working output in all cases, you
     155+may have to build one architecture at a time and combine the results
     156+using the `lipo' tool if you have problems.
     157+
     158+Installation Names
     159+==================
     160+
     161+   By default, `make install' installs the package's commands under
     162+`/usr/local/bin', include files under `/usr/local/include', etc.  You
     163+can specify an installation prefix other than `/usr/local' by giving
     164+`configure' the option `--prefix=PREFIX', where PREFIX must be an
     165+absolute file name.
     166+
     167+   You can specify separate installation prefixes for
     168+architecture-specific files and architecture-independent files.  If you
     169+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
     170+PREFIX as the prefix for installing programs and libraries.
     171+Documentation and other data files still use the regular prefix.
     172+
     173+   In addition, if you use an unusual directory layout you can give
     174+options like `--bindir=DIR' to specify different values for particular
     175+kinds of files.  Run `configure --help' for a list of the directories
     176+you can set and what kinds of files go in them.  In general, the
     177+default for these options is expressed in terms of `${prefix}', so that
     178+specifying just `--prefix' will affect all of the other directory
     179+specifications that were not explicitly provided.
     180+
     181+   The most portable way to affect installation locations is to pass the
     182+correct locations to `configure'; however, many packages provide one or
     183+both of the following shortcuts of passing variable assignments to the
     184+`make install' command line to change installation locations without
     185+having to reconfigure or recompile.
     186+
     187+   The first method involves providing an override variable for each
     188+affected directory.  For example, `make install
     189+prefix=/alternate/directory' will choose an alternate location for all
     190+directory configuration variables that were expressed in terms of
     191+`${prefix}'.  Any directories that were specified during `configure',
     192+but not in terms of `${prefix}', must each be overridden at install
     193+time for the entire installation to be relocated.  The approach of
     194+makefile variable overrides for each directory variable is required by
     195+the GNU Coding Standards, and ideally causes no recompilation.
     196+However, some platforms have known limitations with the semantics of
     197+shared libraries that end up requiring recompilation when using this
     198+method, particularly noticeable in packages that use GNU Libtool.
     199+
     200+   The second method involves providing the `DESTDIR' variable.  For
     201+example, `make install DESTDIR=/alternate/directory' will prepend
     202+`/alternate/directory' before all installation names.  The approach of
     203+`DESTDIR' overrides is not required by the GNU Coding Standards, and
     204+does not work on platforms that have drive letters.  On the other hand,
     205+it does better at avoiding recompilation issues, and works well even
     206+when some directory options were not specified in terms of `${prefix}'
     207+at `configure' time.
     208+
     209+Optional Features
     210+=================
     211+
     212+   If the package supports it, you can cause programs to be installed
     213+with an extra prefix or suffix on their names by giving `configure' the
     214+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
     215+
     216+   Some packages pay attention to `--enable-FEATURE' options to
     217+`configure', where FEATURE indicates an optional part of the package.
     218+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
     219+is something like `gnu-as' or `x' (for the X Window System).  The
     220+`README' should mention any `--enable-' and `--with-' options that the
     221+package recognizes.
     222+
     223+   For packages that use the X Window System, `configure' can usually
     224+find the X include and library files automatically, but if it doesn't,
     225+you can use the `configure' options `--x-includes=DIR' and
     226+`--x-libraries=DIR' to specify their locations.
     227+
     228+   Some packages offer the ability to configure how verbose the
     229+execution of `make' will be.  For these packages, running `./configure
     230+--enable-silent-rules' sets the default to minimal output, which can be
     231+overridden with `make V=1'; while running `./configure
     232+--disable-silent-rules' sets the default to verbose, which can be
     233+overridden with `make V=0'.
     234+
     235+Particular systems
     236+==================
     237+
     238+   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
     239+CC is not installed, it is recommended to use the following options in
     240+order to use an ANSI C compiler:
     241+
     242+     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
     243+
     244+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
     245+
     246+   HP-UX `make' updates targets which have the same time stamps as
     247+their prerequisites, which makes it generally unusable when shipped
     248+generated files such as `configure' are involved.  Use GNU `make'
     249+instead.
     250+
     251+   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
     252+parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
     253+a workaround.  If GNU CC is not installed, it is therefore recommended
     254+to try
     255+
     256+     ./configure CC="cc"
     257+
     258+and if that doesn't work, try
     259+
     260+     ./configure CC="cc -nodtk"
     261+
     262+   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
     263+directory contains several dysfunctional programs; working variants of
     264+these programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
     265+in your `PATH', put it _after_ `/usr/bin'.
     266+
     267+   On Haiku, software installed for all users goes in `/boot/common',
     268+not `/usr/local'.  It is recommended to use the following options:
     269+
     270+     ./configure --prefix=/boot/common
     271+
     272+Specifying the System Type
     273+==========================
     274+
     275+   There may be some features `configure' cannot figure out
     276+automatically, but needs to determine by the type of machine the package
     277+will run on.  Usually, assuming the package is built to be run on the
     278+_same_ architectures, `configure' can figure that out, but if it prints
     279+a message saying it cannot guess the machine type, give it the
     280+`--build=TYPE' option.  TYPE can either be a short name for the system
     281+type, such as `sun4', or a canonical name which has the form:
     282+
     283+     CPU-COMPANY-SYSTEM
     284+
     285+where SYSTEM can have one of these forms:
     286+
     287+     OS
     288+     KERNEL-OS
     289+
     290+   See the file `config.sub' for the possible values of each field.  If
     291+`config.sub' isn't included in this package, then this package doesn't
     292+need to know the machine type.
     293+
     294+   If you are _building_ compiler tools for cross-compiling, you should
     295+use the option `--target=TYPE' to select the type of system they will
     296+produce code for.
     297+
     298+   If you want to _use_ a cross compiler, that generates code for a
     299+platform different from the build platform, you should specify the
     300+"host" platform (i.e., that on which the generated programs will
     301+eventually be run) with `--host=TYPE'.
     302+
     303+Sharing Defaults
     304+================
     305+
     306+   If you want to set default values for `configure' scripts to share,
     307+you can create a site shell script called `config.site' that gives
     308+default values for variables like `CC', `cache_file', and `prefix'.
     309+`configure' looks for `PREFIX/share/config.site' if it exists, then
     310+`PREFIX/etc/config.site' if it exists.  Or, you can set the
     311+`CONFIG_SITE' environment variable to the location of the site script.
     312+A warning: not all `configure' scripts look for a site script.
     313+
     314+Defining Variables
     315+==================
     316+
     317+   Variables not defined in a site shell script can be set in the
     318+environment passed to `configure'.  However, some packages may run
     319+configure again during the build, and the customized values of these
     320+variables may be lost.  In order to avoid this problem, you should set
     321+them in the `configure' command line, using `VAR=value'.  For example:
     322+
     323+     ./configure CC=/usr/local2/bin/gcc
     324+
     325+causes the specified `gcc' to be used as the C compiler (unless it is
     326+overridden in the site shell script).
     327+
     328+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
     329+an Autoconf limitation.  Until the limitation is lifted, you can use
     330+this workaround:
     331+
     332+     CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
     333+
     334+`configure' Invocation
     335+======================
     336+
     337+   `configure' recognizes the following options to control how it
     338+operates.
     339+
     340+`--help'
     341+`-h'
     342+     Print a summary of all of the options to `configure', and exit.
     343+
     344+`--help=short'
     345+`--help=recursive'
     346+     Print a summary of the options unique to this package's
     347+     `configure', and exit.  The `short' variant lists options used
     348+     only in the top level, while the `recursive' variant lists options
     349+     also present in any nested packages.
     350+
     351+`--version'
     352+`-V'
     353+     Print the version of Autoconf used to generate the `configure'
     354+     script, and exit.
     355+
     356+`--cache-file=FILE'
     357+     Enable the cache: use and save the results of the tests in FILE,
     358+     traditionally `config.cache'.  FILE defaults to `/dev/null' to
     359+     disable caching.
     360+
     361+`--config-cache'
     362+`-C'
     363+     Alias for `--cache-file=config.cache'.
     364+
     365+`--quiet'
     366+`--silent'
     367+`-q'
     368+     Do not print messages saying which checks are being made.  To
     369+     suppress all normal output, redirect it to `/dev/null' (any error
     370+     messages will still be shown).
     371+
     372+`--srcdir=DIR'
     373+     Look for the package's source code in directory DIR.  Usually
     374+     `configure' can determine that directory automatically.
     375+
     376+`--prefix=DIR'
     377+     Use DIR as the installation prefix.  *note Installation Names::
     378+     for more details, including other options available for fine-tuning
     379+     the installation locations.
     380+
     381+`--no-create'
     382+`-n'
     383+     Run the configure checks, but stop before creating any output
     384+     files.
     385+
     386+`configure' also accepts some other, not widely useful, options.  Run
     387+`configure --help' for more details.
     388diff --git a/autogen.sh b/autogen.sh
     389index 5c0e4e6..30119f5 100755
     390--- autogen.sh
     391+++ autogen.sh
     392@@ -5,10 +5,19 @@ srcdir=`dirname $0`
     393 test -z "$srcdir" && srcdir=.
     394 
     395 PKG_NAME="libgrss"
     396+REQUIRED_AUTOMAKE_VERSION=1.9
     397+REQUIRED_M4MACROS=introspection.m4
     398+
     399+(test -f $srcdir/configure.ac \
     400+  ) || {
     401+    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
     402+    echo " top-level $PKG_NAME directory"
     403+    exit 1
     404+}
     405 
     406 which gnome-autogen.sh || {
     407-        echo "Missing gnome-autogen.sh: you need to install gnome-common"
     408-        exit 1
     409+    echo "You need to install gnome-common."
     410+    exit 1
     411 }
     412 
     413-USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
     414+. gnome-autogen.sh
     415--- configure.ac.orig   2012-03-03 16:11:22.000000000 -0800
     416+++ configure.ac        2014-03-25 02:03:00.000000000 -0700
     417@@ -1,109 +1,111 @@
     418-m4_define([libgrss_major_version], [0])
     419-m4_define([libgrss_minor_version], [5])
     420-m4_define([libgrss_micro_version], [0])
     421-
     422-m4_define([libgrss_version],
     423-          [libgrss_major_version.libgrss_minor_version.libgrss_micro_version])
     424-
     425-m4_define([libgrss_interface_age], [0])
     426-m4_define([libgrss_binary_age],
     427-          [m4_eval(100 * libgrss_minor_version + libgrss_micro_version)])
     428-
     429-m4_define([lt_current],
     430-          [m4_eval(100 * libgrss_minor_version + libgrss_micro_version - libgrss_interface_age)])
     431-m4_define([lt_revision], [libgrss_interface_age])
     432-m4_define([lt_age],
     433-          [m4_eval(libgrss_binary_age - libgrss_interface_age)])
     434-
     435-m4_define([glib_req_version], [2.30.2])
     436-m4_define([xml_req_version], [2.7.8])
     437-m4_define([soup_req_version], [2.36.1])
     438-
     439-AC_PREREQ([2.59])
     440-AC_INIT([libgrss], [libgrss_version], [], [libgrss])
     441-
     442-AM_INIT_AUTOMAKE([1.10])
     443-AM_CONFIG_HEADER([config.h])
     444-
     445-GNOME_COMMON_INIT
     446-GNOME_COMPILE_WARNINGS
     447-GNOME_DEBUG_CHECK
     448-
     449-AM_DISABLE_STATIC
     450-AM_PATH_GLIB_2_0
     451-AM_PROG_CC_C_O
     452-AM_PROG_LIBTOOL
     453-
     454-AC_HEADER_STDC
     455-AC_CHECK_HEADERS([unistd.h])
     456-AC_C_CONST
     457-AC_FUNC_MALLOC
     458-AC_FUNC_MMAP
     459-AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
     460-AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
     461-AC_CHECK_FUNCS([strptime localtime_r])
     462+AC_PREREQ(2.62)
     463 
     464-LIBGRSS_MAJOR_VERSION=libgrss_major_version
     465-LIBGRSS_MINOR_VERSION=libgrss_minor_version
     466-LIBGRSS_MICRO_VERSION=libgrss_micro_version
     467-LIBGRSS_VERSION=libgrss_version
     468-AC_SUBST(LIBGRSS_MAJOR_VERSION)
     469-AC_SUBST(LIBGRSS_MICRO_VERSION)
     470-AC_SUBST(LIBGRSS_MINOR_VERSION)
     471+m4_define([grss_major_version], [0])
     472+m4_define([grss_minor_version], [5])
     473+m4_define([grss_micro_version], [0])
     474+m4_define([grss_api_version], [0.5])
     475+m4_define([grss_version],
     476+          [grss_major_version.grss_minor_version.grss_micro_version])
     477+
     478+AC_INIT([libgrss], [grss_version], [])
     479+
     480+AC_CONFIG_HEADERS(config.h)
     481+
     482+AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz tar-ustar])
     483+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
     484+AC_CONFIG_MACRO_DIR([m4])
     485+
     486+GNOME_MAINTAINER_MODE_DEFINES
     487+
     488+GRSS_MAJOR_VERSION=grss_major_version
     489+GRSS_MINOR_VERSION=grss_minor_version
     490+GRSS_MICRO_VERSION=grss_micro_version
     491+LIBGRSS_API_VERSION=grss_api_version
     492+LIBGRSS_VERSION=grss_version
     493+AC_SUBST(GRSS_MAJOR_VERSION)
     494+AC_SUBST(GRSS_MINOR_VERSION)
     495+AC_SUBST(GRSS_MICRO_VERSION)
     496+AC_SUBST(LIBGRSS_API_VERSION)
     497 AC_SUBST(LIBGRSS_VERSION)
     498 
     499-dnl libgrss checks
     500-PKG_CHECK_MODULES(LIBGRSS,
     501-                  gobject-2.0 >= glib_req_version dnl
     502-                  libxml-2.0 >= xml_req_version dnl
     503-                  libsoup-2.4 >= soup_req_version)
     504-AC_SUBST(LIBGRSS_CFLAGS)
     505-AC_SUBST(LIBGRSS_LIBS)
     506-
     507-dnl = Enable strict compiler flags =========================================
     508-
     509-# use strict compiler flags only on development releases
     510-#m4_define([maintainer_flags_default],
     511-#          m4_if(m4_eval(libgrss_minor_version % 2), [1], [yes], [no]))
     512-m4_define([maintainer_flags_default], [no])
     513-AC_ARG_ENABLE([maintainer-flags],
     514-              AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
     515-                             [Use strict compiler flags @<:@default=maintainer_flags_default@:>@]),,
     516-              enable_maintainer_flags=maintainer_flags_default)
     517-
     518-if test "x$enable_maintainer_flags" = "xyes"; then
     519-  CPPFLAGS="$CPPFLAGS -g -Wall -Wshadow -Wcast-align -Wno-uninitialized -Werror"
     520-else
     521-  CPPFLAGS="$CPPFLAGS -g -Wall"
     522+LT_PREREQ([2.2.6])
     523+LT_INIT([dlopen disable-static])
     524+
     525+IT_PROG_INTLTOOL([0.40.6])
     526+
     527+AC_PROG_CC
     528+
     529+GNOME_COMPILE_WARNINGS([maximum])
     530+
     531+AC_ARG_ENABLE(deprecation_flags,
     532+              [AC_HELP_STRING([--enable-deprecation-flags],
     533+                              [use *_DISABLE_DEPRECATED flags @<:@default=no@:>@])],,
     534+              [enable_deprecation_flags=no])
     535+
     536+if test "x$enable_deprecation_flags" = "xyes"; then
     537+   DISABLE_DEPRECATED_CFLAGS=$DISABLE_DEPRECATED
     538+   AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
     539 fi
     540 
     541-dnl Internationalization
     542 GETTEXT_PACKAGE=libgrss
     543-AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Define the gettext package to use])
     544 AC_SUBST(GETTEXT_PACKAGE)
     545+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Package name])
     546+
     547 AM_GLIB_GNU_GETTEXT
     548 
     549-AM_CONDITIONAL(GTK_DOC_BUILD_HTML, true)
     550-AM_CONDITIONAL(GTK_DOC_BUILD_PDF, false)
     551-dnl gnome-doc-utils stuff
     552-GNOME_DOC_INIT
     553-
     554-GTK_DOC_CHECK([1.10])
     555-
     556-AC_CONFIG_FILES([
     557-        Makefile
     558-        src/Makefile
     559-        doc/Makefile
     560-        doc/reference/Makefile
     561-        doc/reference/version.xml
     562-        libgrss.pc
     563+# AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
     564+# this is the directory where the *.{mo,gmo} files are installed
     565+grsslocaledir='${prefix}/${DATADIRNAME}/locale'
     566+AC_SUBST(grsslocaledir)
     567+
     568+AC_PATH_PROG(PKG_CONFIG, pkg-config)
     569+AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
     570+AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
     571+AC_CHECK_FUNCS([strptime localtime_r])
     572+
     573+AC_CHECK_LIBM
     574+AC_SUBST(LIBM)
     575+
     576+PKG_CHECK_MODULES([LIBGRSS],[
     577+       glib-2.0 >= 2.32.4
     578+       libsoup-2.4 >= 2.38.1
     579+       libxml-2.0 >= 2.7.8
     580 ])
     581 
     582-AC_OUTPUT
     583+##################################################
     584+# Checks for gtk-doc and docbook-tools
     585+##################################################
     586+GTK_DOC_CHECK([1.9])
     587+
     588+GOBJECT_INTROSPECTION_CHECK([1.30.0])
     589+
     590+AC_OUTPUT([
     591+       Makefile
     592+       src/Makefile
     593+       doc/Makefile
     594+       doc/reference/Makefile
     595+       doc/reference/version.xml
     596+       po/Makefile.in
     597+       libgrss.pc
     598+])
     599+
     600+dnl ---------------------------------------------------------------------------
     601+dnl - Show summary
     602+dnl ---------------------------------------------------------------------------
     603+
     604+echo "
     605+              libgrss $VERSION
     606+              `echo libgrss $VERSION | sed "s/./=/g"`
     607+
     608+        prefix:                       ${prefix}
     609+        source code location:         ${srcdir}
     610+        compiler:                     ${CC}
     611+        cflags:                       ${CFLAGS}
     612+        Maintainer mode:              ${USE_MAINTAINER_MODE}
     613+        Use *_DISABLE_DEPRECATED:     ${enable_deprecation_flags}
     614+
     615+        Build introspection support:  ${found_introspection}
     616+        Build gtk-doc documentation:  ${enable_gtk_doc}
     617+
     618+"
     619 
     620-echo ""
     621-echo "                libgrss: $VERSION"
     622-echo ""
     623-echo "                 Prefix: ${prefix}"
     624-echo "         Compiler flags: ${CPPFLAGS}"
     625-echo ""