~ubuntu-branches/ubuntu/lucid/gnome-terminal/lucid-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-09-07 15:07:22 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907150722-e7cisxidt9h4rqlc
Tags: 2.30.2-0ubuntu1
* Update to stable upstream version 2.30.2, fixes:
  - LP: #526437 - Gtk-CRITICAL **: gtk_accel_map_unlock_path: assertion 
    `entry != NULL && entry->lock_count > 0' failed
  - LP: #534225 - setup_http_proxy_env constructs no_proxy incorrectly
* Revert commit 8dfe341 - bump VTE req to 0.24.0. This was just bumped to
  the current stable version of VTE for 2.30.0, but it's not actually
  required (and Lucid only has 0.23.5 anyway)
  - add debian/patches/21_dont_bump_vte_version.patch
* Refresh patches
  - update debian/patches/01_lpi.patch
  - update debian/patches/99_autoreconf.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
 
[m4_warning([this file was generated for autoconf 2.63.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
 
17
[m4_warning([this file was generated for autoconf 2.64.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
22
 
dnl AM_GCONF_SOURCE_2
23
 
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24
 
dnl  (i.e. pass to gconftool-2
25
 
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26
 
dnl  you should install foo.schemas files
27
 
dnl
28
 
 
29
 
AC_DEFUN([AM_GCONF_SOURCE_2],
30
 
[
31
 
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32
 
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
33
 
  else
34
 
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35
 
  fi
36
 
 
37
 
  AC_ARG_WITH([gconf-source],
38
 
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
39
 
                             [Config database for installing schema files.]),
40
 
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
41
 
 
42
 
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43
 
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
44
 
 
45
 
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46
 
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
47
 
  fi
48
 
 
49
 
  AC_ARG_WITH([gconf-schema-file-dir],
50
 
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51
 
                             [Directory for installing schema files.]),
52
 
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
53
 
 
54
 
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55
 
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
56
 
 
57
 
  AC_ARG_ENABLE(schemas-install,
58
 
        AC_HELP_STRING([--disable-schemas-install],
59
 
                       [Disable the schemas installation]),
60
 
     [case ${enableval} in
61
 
       yes|no) ;;
62
 
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
63
 
      esac])
64
 
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
65
 
])
66
 
 
67
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
68
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
69
 
#
70
 
# This file is free software, distributed under the terms of the GNU
71
 
# General Public License.  As a special exception to the GNU General
72
 
# Public License, this file may be distributed as part of a program
73
 
# that contains a configuration script generated by Autoconf, under
74
 
# the same distribution terms as the rest of that program.
75
 
#
76
 
# This file can be copied and used freely without restrictions.  It can
77
 
# be used in projects which are not available under the GNU Public License
78
 
# but which still want to provide support for the GNU gettext functionality.
79
 
#
80
 
# Macro to add for using GNU gettext.
81
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
82
 
#
83
 
# Modified to never use included libintl. 
84
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
85
 
#
86
 
# Major rework to remove unused code
87
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
88
 
#
89
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
90
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
91
 
#
92
 
# Modified to require ngettext
93
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
94
 
#
95
 
# We need this here as well, since someone might use autoconf-2.5x
96
 
# to configure GLib then an older version to configure a package
97
 
# using AM_GLIB_GNU_GETTEXT
98
 
AC_PREREQ(2.53)
99
 
 
100
 
dnl
101
 
dnl We go to great lengths to make sure that aclocal won't 
102
 
dnl try to pull in the installed version of these macros
103
 
dnl when running aclocal in the glib directory.
104
 
dnl
105
 
m4_copy([AC_DEFUN],[glib_DEFUN])
106
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
107
 
dnl
108
 
dnl At the end, if we're not within glib, we'll define the public
109
 
dnl definitions in terms of our private definitions.
110
 
dnl
111
 
 
112
 
# GLIB_LC_MESSAGES
113
 
#--------------------
114
 
glib_DEFUN([GLIB_LC_MESSAGES],
115
 
  [AC_CHECK_HEADERS([locale.h])
116
 
    if test $ac_cv_header_locale_h = yes; then
117
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
118
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
119
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
120
 
    if test $am_cv_val_LC_MESSAGES = yes; then
121
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
122
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
123
 
    fi
124
 
  fi])
125
 
 
126
 
# GLIB_PATH_PROG_WITH_TEST
127
 
#----------------------------
128
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
129
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
130
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
131
 
[# Extract the first word of "$2", so it can be a program name with args.
132
 
set dummy $2; ac_word=[$]2
133
 
AC_MSG_CHECKING([for $ac_word])
134
 
AC_CACHE_VAL(ac_cv_path_$1,
135
 
[case "[$]$1" in
136
 
  /*)
137
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
138
 
  ;;
139
 
  *)
140
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
141
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
142
 
    test -z "$ac_dir" && ac_dir=.
143
 
    if test -f $ac_dir/$ac_word; then
144
 
      if [$3]; then
145
 
        ac_cv_path_$1="$ac_dir/$ac_word"
 
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
23
#
 
24
# This file is free software; the Free Software Foundation
 
25
# gives unlimited permission to copy and/or distribute it,
 
26
# with or without modifications, as long as this notice is preserved.
 
27
 
 
28
# AM_AUTOMAKE_VERSION(VERSION)
 
29
# ----------------------------
 
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
31
# generated from the m4 files accompanying Automake X.Y.
 
32
# (This private macro should not be called outside this file.)
 
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
34
[am__api_version='1.11'
 
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
36
dnl require some minimum version.  Point them to the right macro.
 
37
m4_if([$1], [1.11], [],
 
38
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
39
])
 
40
 
 
41
# _AM_AUTOCONF_VERSION(VERSION)
 
42
# -----------------------------
 
43
# aclocal traces this macro to find the Autoconf version.
 
44
# This is a private macro too.  Using m4_define simplifies
 
45
# the logic in aclocal, which can simply ignore this definition.
 
46
m4_define([_AM_AUTOCONF_VERSION], [])
 
47
 
 
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
49
# -------------------------------
 
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
53
[AM_AUTOMAKE_VERSION([1.11])dnl
 
54
m4_ifndef([AC_AUTOCONF_VERSION],
 
55
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
57
 
 
58
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
59
 
 
60
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
61
#
 
62
# This file is free software; the Free Software Foundation
 
63
# gives unlimited permission to copy and/or distribute it,
 
64
# with or without modifications, as long as this notice is preserved.
 
65
 
 
66
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
67
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
68
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
69
#
 
70
# Of course, Automake must honor this variable whenever it calls a
 
71
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
72
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
73
# depending on how configure is run.  This is pretty annoying, since
 
74
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
75
# source directory, any form will work fine, but in subdirectories a
 
76
# relative path needs to be adjusted first.
 
77
#
 
78
# $ac_aux_dir/missing
 
79
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
80
# $top_srcdir/$ac_aux_dir/missing
 
81
#    fails if $ac_aux_dir is absolute,
 
82
#    fails when called from a subdirectory in a VPATH build with
 
83
#          a relative $ac_aux_dir
 
84
#
 
85
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
86
# are both prefixed by $srcdir.  In an in-source build this is usually
 
87
# harmless because $srcdir is `.', but things will broke when you
 
88
# start a VPATH build or use an absolute $srcdir.
 
89
#
 
90
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
91
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
92
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
93
# and then we would define $MISSING as
 
94
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
95
# This will work as long as MISSING is not called from configure, because
 
96
# unfortunately $(top_srcdir) has no meaning in configure.
 
97
# However there are other variables, like CC, which are often used in
 
98
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
99
#
 
100
# Another solution, used here, is to always expand $ac_aux_dir to an
 
101
# absolute PATH.  The drawback is that using absolute paths prevent a
 
102
# configured tree to be moved without reconfiguration.
 
103
 
 
104
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
105
[dnl Rely on autoconf to set up CDPATH properly.
 
106
AC_PREREQ([2.50])dnl
 
107
# expand $ac_aux_dir to an absolute path
 
108
am_aux_dir=`cd $ac_aux_dir && pwd`
 
109
])
 
110
 
 
111
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
112
 
 
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
114
# Free Software Foundation, Inc.
 
115
#
 
116
# This file is free software; the Free Software Foundation
 
117
# gives unlimited permission to copy and/or distribute it,
 
118
# with or without modifications, as long as this notice is preserved.
 
119
 
 
120
# serial 9
 
121
 
 
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
123
# -------------------------------------
 
124
# Define a conditional.
 
125
AC_DEFUN([AM_CONDITIONAL],
 
126
[AC_PREREQ(2.52)dnl
 
127
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
128
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
129
AC_SUBST([$1_TRUE])dnl
 
130
AC_SUBST([$1_FALSE])dnl
 
131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
133
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
134
if $2; then
 
135
  $1_TRUE=
 
136
  $1_FALSE='#'
 
137
else
 
138
  $1_TRUE='#'
 
139
  $1_FALSE=
 
140
fi
 
141
AC_CONFIG_COMMANDS_PRE(
 
142
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
143
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
144
Usually this means the macro was only invoked conditionally.]])
 
145
fi])])
 
146
 
 
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
 
148
# Free Software Foundation, Inc.
 
149
#
 
150
# This file is free software; the Free Software Foundation
 
151
# gives unlimited permission to copy and/or distribute it,
 
152
# with or without modifications, as long as this notice is preserved.
 
153
 
 
154
# serial 10
 
155
 
 
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
157
# written in clear, in which case automake, when reading aclocal.m4,
 
158
# will think it sees a *use*, and therefore will trigger all it's
 
159
# C support machinery.  Also note that it means that autoscan, seeing
 
160
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
161
 
 
162
 
 
163
# _AM_DEPENDENCIES(NAME)
 
164
# ----------------------
 
165
# See how the compiler implements dependency checking.
 
166
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
167
# We try a few techniques and use that to set a single cache variable.
 
168
#
 
169
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
170
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
171
# dependency, and given that the user is not expected to run this macro,
 
172
# just rely on AC_PROG_CC.
 
173
AC_DEFUN([_AM_DEPENDENCIES],
 
174
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
175
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
176
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
177
AC_REQUIRE([AM_DEP_TRACK])dnl
 
178
 
 
179
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
180
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
181
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
182
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
183
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
184
                   [depcc="$$1"   am_compiler_list=])
 
185
 
 
186
AC_CACHE_CHECK([dependency style of $depcc],
 
187
               [am_cv_$1_dependencies_compiler_type],
 
188
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
189
  # We make a subdir and do the tests there.  Otherwise we can end up
 
190
  # making bogus files that we don't know about and never remove.  For
 
191
  # instance it was reported that on HP-UX the gcc test will end up
 
192
  # making a dummy file named `D' -- because `-MD' means `put the output
 
193
  # in D'.
 
194
  mkdir conftest.dir
 
195
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
196
  # using a relative directory.
 
197
  cp "$am_depcomp" conftest.dir
 
198
  cd conftest.dir
 
199
  # We will build objects and dependencies in a subdirectory because
 
200
  # it helps to detect inapplicable dependency modes.  For instance
 
201
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
202
  # side effect of compilation, but ICC will put the dependencies in
 
203
  # the current directory while Tru64 will put them in the object
 
204
  # directory.
 
205
  mkdir sub
 
206
 
 
207
  am_cv_$1_dependencies_compiler_type=none
 
208
  if test "$am_compiler_list" = ""; then
 
209
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
210
  fi
 
211
  am__universal=false
 
212
  m4_case([$1], [CC],
 
213
    [case " $depcc " in #(
 
214
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
215
     esac],
 
216
    [CXX],
 
217
    [case " $depcc " in #(
 
218
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
219
     esac])
 
220
 
 
221
  for depmode in $am_compiler_list; do
 
222
    # Setup a source with many dependencies, because some compilers
 
223
    # like to wrap large dependency lists on column 80 (with \), and
 
224
    # we should not choose a depcomp mode which is confused by this.
 
225
    #
 
226
    # We need to recreate these files for each test, as the compiler may
 
227
    # overwrite some of them when testing with obscure command lines.
 
228
    # This happens at least with the AIX C compiler.
 
229
    : > sub/conftest.c
 
230
    for i in 1 2 3 4 5 6; do
 
231
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
232
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
233
      # Solaris 8's {/usr,}/bin/sh.
 
234
      touch sub/conftst$i.h
 
235
    done
 
236
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
237
 
 
238
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
239
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
240
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
241
    # versions had trouble with output in subdirs
 
242
    am__obj=sub/conftest.${OBJEXT-o}
 
243
    am__minus_obj="-o $am__obj"
 
244
    case $depmode in
 
245
    gcc)
 
246
      # This depmode causes a compiler race in universal mode.
 
247
      test "$am__universal" = false || continue
 
248
      ;;
 
249
    nosideeffect)
 
250
      # after this tag, mechanisms are not by side-effect, so they'll
 
251
      # only be used when explicitly requested
 
252
      if test "x$enable_dependency_tracking" = xyes; then
 
253
        continue
 
254
      else
146
255
        break
147
256
      fi
148
 
    fi
149
 
  done
150
 
  IFS="$ac_save_ifs"
151
 
dnl If no 4th arg is given, leave the cache variable unset,
152
 
dnl so AC_PATH_PROGS will keep looking.
153
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
154
 
])dnl
155
 
  ;;
156
 
esac])dnl
157
 
$1="$ac_cv_path_$1"
158
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
159
 
  AC_MSG_RESULT([$]$1)
160
 
else
161
 
  AC_MSG_RESULT(no)
162
 
fi
163
 
AC_SUBST($1)dnl
164
 
])
165
 
 
166
 
# GLIB_WITH_NLS
167
 
#-----------------
168
 
glib_DEFUN([GLIB_WITH_NLS],
169
 
  dnl NLS is obligatory
170
 
  [USE_NLS=yes
171
 
    AC_SUBST(USE_NLS)
172
 
 
173
 
    gt_cv_have_gettext=no
174
 
 
175
 
    CATOBJEXT=NONE
176
 
    XGETTEXT=:
177
 
    INTLLIBS=
178
 
 
179
 
    AC_CHECK_HEADER(libintl.h,
180
 
     [gt_cv_func_dgettext_libintl="no"
181
 
      libintl_extra_libs=""
182
 
 
183
 
      #
184
 
      # First check in libc
185
 
      #
186
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
187
 
        [AC_TRY_LINK([
188
 
#include <libintl.h>
189
 
],
190
 
         [return !ngettext ("","", 1)],
191
 
          gt_cv_func_ngettext_libc=yes,
192
 
          gt_cv_func_ngettext_libc=no)
193
 
        ])
194
 
  
195
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
196
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
197
 
                [AC_TRY_LINK([
198
 
#include <libintl.h>
199
 
],
200
 
                  [return !dgettext ("","")],
201
 
                  gt_cv_func_dgettext_libc=yes,
202
 
                  gt_cv_func_dgettext_libc=no)
203
 
                ])
204
 
      fi
205
 
  
206
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
207
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
208
 
      fi
209
 
 
210
 
      #
211
 
      # If we don't have everything we want, check in libintl
212
 
      #
213
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
214
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
215
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
216
 
        
217
 
        AC_CHECK_LIB(intl, bindtextdomain,
218
 
            [AC_CHECK_LIB(intl, ngettext,
219
 
                    [AC_CHECK_LIB(intl, dgettext,
220
 
                                  gt_cv_func_dgettext_libintl=yes)])])
221
 
 
222
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
223
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
224
 
          AC_MSG_RESULT([])
225
 
          AC_CHECK_LIB(intl, ngettext,
226
 
                [AC_CHECK_LIB(intl, dcgettext,
227
 
                       [gt_cv_func_dgettext_libintl=yes
228
 
                        libintl_extra_libs=-liconv],
229
 
                        :,-liconv)],
230
 
                :,-liconv)
231
 
        fi
232
 
 
233
 
        #
234
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
235
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
236
 
        # and both have dgettext and ngettext
237
 
        #
238
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
239
 
          glib_save_LIBS="$LIBS"
240
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
241
 
          unset ac_cv_func_bind_textdomain_codeset
242
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
243
 
          LIBS="$glib_save_LIBS"
244
 
 
245
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
246
 
            gt_cv_func_dgettext_libc=no
247
 
          else
248
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
249
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
250
 
              gt_cv_func_dgettext_libintl=no
251
 
            fi
252
 
          fi
253
 
        fi
254
 
      fi
255
 
 
256
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
257
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
258
 
        gt_cv_have_gettext=yes
259
 
      fi
260
 
  
261
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
262
 
        INTLLIBS="-lintl $libintl_extra_libs"
263
 
      fi
264
 
  
265
 
      if test "$gt_cv_have_gettext" = "yes"; then
266
 
        AC_DEFINE(HAVE_GETTEXT,1,
267
 
          [Define if the GNU gettext() function is already present or preinstalled.])
268
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
269
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
270
 
        if test "$MSGFMT" != "no"; then
271
 
          glib_save_LIBS="$LIBS"
272
 
          LIBS="$LIBS $INTLLIBS"
273
 
          AC_CHECK_FUNCS(dcgettext)
274
 
          MSGFMT_OPTS=
275
 
          AC_MSG_CHECKING([if msgfmt accepts -c])
276
 
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
277
 
msgid ""
278
 
msgstr ""
279
 
"Content-Type: text/plain; charset=UTF-8\n"
280
 
"Project-Id-Version: test 1.0\n"
281
 
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
282
 
"Last-Translator: test <foo@bar.xx>\n"
283
 
"Language-Team: C <LL@li.org>\n"
284
 
"MIME-Version: 1.0\n"
285
 
"Content-Transfer-Encoding: 8bit\n"
286
 
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
287
 
          AC_SUBST(MSGFMT_OPTS)
288
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
289
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
290
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
291
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
292
 
                         return _nl_msg_cat_cntr],
293
 
            [CATOBJEXT=.gmo 
294
 
             DATADIRNAME=share],
295
 
            [case $host in
296
 
            *-*-solaris*)
297
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
298
 
            dnl GNU format message catalog is always supported,
299
 
            dnl since both are added to the libc all together.
300
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
301
 
            dnl and CATOBJEXT=.gmo in this case.
302
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
303
 
              [CATOBJEXT=.gmo 
304
 
               DATADIRNAME=share],
305
 
              [CATOBJEXT=.mo
306
 
               DATADIRNAME=lib])
307
 
            ;;
308
 
            *)
309
 
            CATOBJEXT=.mo
310
 
            DATADIRNAME=lib
311
 
            ;;
312
 
            esac])
313
 
          LIBS="$glib_save_LIBS"
314
 
          INSTOBJEXT=.mo
315
 
        else
316
 
          gt_cv_have_gettext=no
317
 
        fi
318
 
      fi
319
 
    ])
320
 
 
321
 
    if test "$gt_cv_have_gettext" = "yes" ; then
322
 
      AC_DEFINE(ENABLE_NLS, 1,
323
 
        [always defined to indicate that i18n is enabled])
324
 
    fi
325
 
 
326
 
    dnl Test whether we really found GNU xgettext.
327
 
    if test "$XGETTEXT" != ":"; then
328
 
      dnl If it is not GNU xgettext we define it as : so that the
329
 
      dnl Makefiles still can work.
330
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
331
 
        : ;
332
 
      else
333
 
        AC_MSG_RESULT(
334
 
          [found xgettext program is not GNU xgettext; ignore it])
335
 
        XGETTEXT=":"
336
 
      fi
337
 
    fi
338
 
 
339
 
    # We need to process the po/ directory.
340
 
    POSUB=po
341
 
 
342
 
    AC_OUTPUT_COMMANDS(
343
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
344
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
345
 
      esac])
346
 
 
347
 
    dnl These rules are solely for the distribution goal.  While doing this
348
 
    dnl we only have to keep exactly one list of the available catalogs
349
 
    dnl in configure.in.
350
 
    for lang in $ALL_LINGUAS; do
351
 
      GMOFILES="$GMOFILES $lang.gmo"
352
 
      POFILES="$POFILES $lang.po"
353
 
    done
354
 
 
355
 
    dnl Make all variables we use known to autoconf.
356
 
    AC_SUBST(CATALOGS)
357
 
    AC_SUBST(CATOBJEXT)
358
 
    AC_SUBST(DATADIRNAME)
359
 
    AC_SUBST(GMOFILES)
360
 
    AC_SUBST(INSTOBJEXT)
361
 
    AC_SUBST(INTLLIBS)
362
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
363
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
364
 
    AC_SUBST(POFILES)
365
 
    AC_SUBST(POSUB)
366
 
  ])
367
 
 
368
 
# AM_GLIB_GNU_GETTEXT
369
 
# -------------------
370
 
# Do checks necessary for use of gettext. If a suitable implementation 
371
 
# of gettext is found in either in libintl or in the C library,
372
 
# it will set INTLLIBS to the libraries needed for use of gettext
373
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
374
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
375
 
# on various variables needed by the Makefile.in.in installed by 
376
 
# glib-gettextize.
377
 
dnl
378
 
glib_DEFUN([GLIB_GNU_GETTEXT],
379
 
  [AC_REQUIRE([AC_PROG_CC])dnl
380
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
381
 
   
382
 
   GLIB_LC_MESSAGES
383
 
   GLIB_WITH_NLS
384
 
 
385
 
   if test "$gt_cv_have_gettext" = "yes"; then
386
 
     if test "x$ALL_LINGUAS" = "x"; then
387
 
       LINGUAS=
388
 
     else
389
 
       AC_MSG_CHECKING(for catalogs to be installed)
390
 
       NEW_LINGUAS=
391
 
       for presentlang in $ALL_LINGUAS; do
392
 
         useit=no
393
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
394
 
           desiredlanguages="$LINGUAS"
395
 
         else
396
 
           desiredlanguages="$ALL_LINGUAS"
397
 
         fi
398
 
         for desiredlang in $desiredlanguages; do
399
 
           # Use the presentlang catalog if desiredlang is
400
 
           #   a. equal to presentlang, or
401
 
           #   b. a variant of presentlang (because in this case,
402
 
           #      presentlang can be used as a fallback for messages
403
 
           #      which are not translated in the desiredlang catalog).
404
 
           case "$desiredlang" in
405
 
             "$presentlang"*) useit=yes;;
406
 
           esac
407
 
         done
408
 
         if test $useit = yes; then
409
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
410
 
         fi
411
 
       done
412
 
       LINGUAS=$NEW_LINGUAS
413
 
       AC_MSG_RESULT($LINGUAS)
414
 
     fi
415
 
 
416
 
     dnl Construct list of names of catalog files to be constructed.
417
 
     if test -n "$LINGUAS"; then
418
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
419
 
     fi
420
 
   fi
421
 
 
422
 
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
423
 
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
424
 
   dnl Try to locate is.
425
 
   MKINSTALLDIRS=
426
 
   if test -n "$ac_aux_dir"; then
427
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
428
 
   fi
429
 
   if test -z "$MKINSTALLDIRS"; then
430
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
431
 
   fi
432
 
   AC_SUBST(MKINSTALLDIRS)
433
 
 
434
 
   dnl Generate list of files to be processed by xgettext which will
435
 
   dnl be included in po/Makefile.
436
 
   test -d po || mkdir po
437
 
   if test "x$srcdir" != "x."; then
438
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
439
 
       posrcprefix="$srcdir/"
440
 
     else
441
 
       posrcprefix="../$srcdir/"
442
 
     fi
443
 
   else
444
 
     posrcprefix="../"
445
 
   fi
446
 
   rm -f po/POTFILES
447
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
448
 
        < $srcdir/po/POTFILES.in > po/POTFILES
449
 
  ])
450
 
 
451
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
452
 
# -------------------------------
453
 
# Define VARIABLE to the location where catalog files will
454
 
# be installed by po/Makefile.
455
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
456
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
457
 
glib_save_prefix="$prefix"
458
 
glib_save_exec_prefix="$exec_prefix"
459
 
glib_save_datarootdir="$datarootdir"
460
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
461
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
462
 
datarootdir=`eval echo "${datarootdir}"`
463
 
if test "x$CATOBJEXT" = "x.mo" ; then
464
 
  localedir=`eval echo "${libdir}/locale"`
465
 
else
466
 
  localedir=`eval echo "${datadir}/locale"`
467
 
fi
468
 
prefix="$glib_save_prefix"
469
 
exec_prefix="$glib_save_exec_prefix"
470
 
datarootdir="$glib_save_datarootdir"
471
 
AC_DEFINE_UNQUOTED($1, "$localedir",
472
 
  [Define the location where the catalogs will be installed])
473
 
])
474
 
 
475
 
dnl
476
 
dnl Now the definitions that aclocal will find
477
 
dnl
478
 
ifdef(glib_configure_in,[],[
479
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
481
 
])dnl
482
 
 
483
 
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
484
 
485
 
# Create a temporary file with TEST-FILE as its contents and pass the
486
 
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
487
 
# 0 and perform ACTION-IF-FAIL for any other exit status.
488
 
AC_DEFUN([GLIB_RUN_PROG],
489
 
[cat >conftest.foo <<_ACEOF
490
 
$2
491
 
_ACEOF
492
 
if AC_RUN_LOG([$1 conftest.foo]); then
493
 
  m4_ifval([$3], [$3], [:])
494
 
m4_ifvaln([$4], [else $4])dnl
495
 
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
496
 
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
497
 
fi])
498
 
 
499
 
 
500
 
# gnome-common.m4
501
 
502
 
 
503
 
dnl GNOME_COMMON_INIT
504
 
 
505
 
AC_DEFUN([GNOME_COMMON_INIT],
506
 
[
507
 
  dnl this macro should come after AC_CONFIG_MACRO_DIR
508
 
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
509
 
 
510
 
  dnl ensure that when the Automake generated makefile calls aclocal,
511
 
  dnl it honours the $ACLOCAL_FLAGS environment variable
512
 
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
513
 
  if test -n "$ac_macro_dir"; then
514
 
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
515
 
  fi
516
 
 
517
 
  AC_SUBST([ACLOCAL_AMFLAGS])
518
 
])
519
 
 
520
 
AC_DEFUN([GNOME_DEBUG_CHECK],
521
 
[
522
 
        AC_ARG_ENABLE([debug],
523
 
                      AC_HELP_STRING([--enable-debug],
524
 
                                     [turn on debugging]),,
525
 
                      [enable_debug=no])
526
 
 
527
 
        if test x$enable_debug = xyes ; then
528
 
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
529
 
                [Enable additional debugging at the expense of performance and size])
530
 
        fi
531
 
])
532
 
 
533
 
dnl GNOME_MAINTAINER_MODE_DEFINES ()
534
 
dnl define DISABLE_DEPRECATED
535
 
dnl
536
 
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
537
 
[
538
 
        AC_REQUIRE([AM_MAINTAINER_MODE])
539
 
 
540
 
        DISABLE_DEPRECATED=""
541
 
        if test $USE_MAINTAINER_MODE = yes; then
542
 
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
543
 
                for DOMAIN in $DOMAINS; do
544
 
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
545
 
                done
546
 
        fi
547
 
 
548
 
        AC_SUBST(DISABLE_DEPRECATED)
549
 
])
550
 
 
551
 
dnl GNOME_COMPILE_WARNINGS
552
 
dnl Turn on many useful compiler warnings
553
 
dnl For now, only works on GCC
554
 
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
555
 
    dnl ******************************
556
 
    dnl More compiler warnings
557
 
    dnl ******************************
558
 
 
559
 
    AC_ARG_ENABLE(compile-warnings, 
560
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
561
 
                                 [Turn on compiler warnings]),,
562
 
                  [enable_compile_warnings="m4_default([$1],[yes])"])
563
 
 
564
 
    warnCFLAGS=
565
 
    if test "x$GCC" != xyes; then
566
 
        enable_compile_warnings=no
567
 
    fi
568
 
 
569
 
    warning_flags=
570
 
    realsave_CFLAGS="$CFLAGS"
571
 
 
572
 
    case "$enable_compile_warnings" in
573
 
    no)
574
 
        warning_flags=
575
 
        ;;
576
 
    minimum)
577
 
        warning_flags="-Wall"
578
 
        ;;
579
 
    yes)
580
 
        warning_flags="-Wall -Wmissing-prototypes"
581
 
        ;;
582
 
    maximum|error)
583
 
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
584
 
        CFLAGS="$warning_flags $CFLAGS"
585
 
        for option in -Wno-sign-compare; do
586
 
                SAVE_CFLAGS="$CFLAGS"
587
 
                CFLAGS="$CFLAGS $option"
588
 
                AC_MSG_CHECKING([whether gcc understands $option])
589
 
                AC_TRY_COMPILE([], [],
590
 
                        has_option=yes,
591
 
                        has_option=no,)
592
 
                CFLAGS="$SAVE_CFLAGS"
593
 
                AC_MSG_RESULT($has_option)
594
 
                if test $has_option = yes; then
595
 
                  warning_flags="$warning_flags $option"
596
 
                fi
597
 
                unset has_option
598
 
                unset SAVE_CFLAGS
599
 
        done
600
 
        unset option
601
 
        if test "$enable_compile_warnings" = "error" ; then
602
 
            warning_flags="$warning_flags -Werror"
603
 
        fi
604
 
        ;;
605
 
    *)
606
 
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
607
 
        ;;
 
257
      ;;
 
258
    msvisualcpp | msvcmsys)
 
259
      # This compiler won't grok `-c -o', but also, the minuso test has
 
260
      # not run yet.  These depmodes are late enough in the game, and
 
261
      # so weak that their functioning should not be impacted.
 
262
      am__obj=conftest.${OBJEXT-o}
 
263
      am__minus_obj=
 
264
      ;;
 
265
    none) break ;;
608
266
    esac
609
 
    CFLAGS="$realsave_CFLAGS"
610
 
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
611
 
    AC_MSG_RESULT($warning_flags)
612
 
 
613
 
    AC_ARG_ENABLE(iso-c,
614
 
                  AC_HELP_STRING([--enable-iso-c],
615
 
                                 [Try to warn if code is not ISO C ]),,
616
 
                  [enable_iso_c=no])
617
 
 
618
 
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
619
 
    complCFLAGS=
620
 
    if test "x$enable_iso_c" != "xno"; then
621
 
        if test "x$GCC" = "xyes"; then
622
 
        case " $CFLAGS " in
623
 
            *[\ \       ]-ansi[\ \      ]*) ;;
624
 
            *) complCFLAGS="$complCFLAGS -ansi" ;;
625
 
        esac
626
 
        case " $CFLAGS " in
627
 
            *[\ \       ]-pedantic[\ \  ]*) ;;
628
 
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
629
 
        esac
630
 
        fi
631
 
    fi
632
 
    AC_MSG_RESULT($complCFLAGS)
633
 
 
634
 
    WARN_CFLAGS="$warning_flags $complCFLAGS"
635
 
    AC_SUBST(WARN_CFLAGS)
636
 
])
637
 
 
638
 
dnl For C++, do basically the same thing.
639
 
 
640
 
AC_DEFUN([GNOME_CXX_WARNINGS],[
641
 
  AC_ARG_ENABLE(cxx-warnings,
642
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
643
 
                               [Turn on compiler warnings.]),,
644
 
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
645
 
 
646
 
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
647
 
  warnCXXFLAGS=
648
 
  if test "x$GXX" != xyes; then
649
 
    enable_cxx_warnings=no
650
 
  fi
651
 
  if test "x$enable_cxx_warnings" != "xno"; then
652
 
    if test "x$GXX" = "xyes"; then
653
 
      case " $CXXFLAGS " in
654
 
      *[\ \     ]-Wall[\ \      ]*) ;;
655
 
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
656
 
      esac
657
 
 
658
 
      ## -W is not all that useful.  And it cannot be controlled
659
 
      ## with individual -Wno-xxx flags, unlike -Wall
660
 
      if test "x$enable_cxx_warnings" = "xyes"; then
661
 
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
 
267
    if depmode=$depmode \
 
268
       source=sub/conftest.c object=$am__obj \
 
269
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
270
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
271
         >/dev/null 2>conftest.err &&
 
272
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
273
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
274
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
275
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
276
      # icc doesn't choke on unknown options, it will just issue warnings
 
277
      # or remarks (even with -Werror).  So we grep stderr for any message
 
278
      # that says an option was ignored or not supported.
 
279
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
280
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
281
      # The diagnosis changed in icc 8.0:
 
282
      #   icc: Command line remark: option '-MP' not supported
 
283
      if (grep 'ignoring option' conftest.err ||
 
284
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
285
        am_cv_$1_dependencies_compiler_type=$depmode
 
286
        break
662
287
      fi
663
288
    fi
664
 
  fi
665
 
  AC_MSG_RESULT($warnCXXFLAGS)
666
 
 
667
 
   AC_ARG_ENABLE(iso-cxx,
668
 
                 AC_HELP_STRING([--enable-iso-cxx],
669
 
                                [Try to warn if code is not ISO C++ ]),,
670
 
                 [enable_iso_cxx=no])
671
 
 
672
 
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
673
 
   complCXXFLAGS=
674
 
   if test "x$enable_iso_cxx" != "xno"; then
675
 
     if test "x$GXX" = "xyes"; then
676
 
      case " $CXXFLAGS " in
677
 
      *[\ \     ]-ansi[\ \      ]*) ;;
678
 
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
679
 
      esac
680
 
 
681
 
      case " $CXXFLAGS " in
682
 
      *[\ \     ]-pedantic[\ \  ]*) ;;
683
 
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
684
 
      esac
685
 
     fi
686
 
   fi
687
 
  AC_MSG_RESULT($complCXXFLAGS)
688
 
 
689
 
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
690
 
  AC_SUBST(WARN_CXXFLAGS)
691
 
])
692
 
 
693
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
694
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
695
 
AC_DEFUN([GNOME_DOC_DEFINES],
696
 
[
697
 
AC_ARG_WITH([help-dir],
698
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
699
 
  [with_help_dir='${datadir}/gnome/help'])
700
 
HELP_DIR="$with_help_dir"
701
 
AC_SUBST(HELP_DIR)
702
 
 
703
 
AC_ARG_WITH([omf-dir],
704
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
705
 
  [with_omf_dir='${datadir}/omf'])
706
 
OMF_DIR="$with_omf_dir"
707
 
AC_SUBST(OMF_DIR)
708
 
 
709
 
AC_ARG_WITH([help-formats],
710
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
711
 
  [with_help_formats=''])
712
 
DOC_USER_FORMATS="$with_help_formats"
713
 
AC_SUBST(DOC_USER_FORMATS)
714
 
 
715
 
AC_ARG_ENABLE([scrollkeeper],
716
 
        [AC_HELP_STRING([--disable-scrollkeeper],
717
 
                        [do not make updates to the scrollkeeper database])],,
718
 
        enable_scrollkeeper=yes)
719
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
720
 
 
721
 
dnl disable scrollkeeper automatically for distcheck
722
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
723
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
724
 
 
725
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
726
 
])
727
 
 
728
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
729
 
#
730
 
AC_DEFUN([GNOME_DOC_INIT],
731
 
[AC_REQUIRE([AC_PROG_LN_S])dnl
732
 
 
733
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
734
 
 
735
 
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
736
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
737
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
738
 
 
739
 
if test "$gdu_cv_have_gdu" = "yes"; then
740
 
        AC_MSG_RESULT([yes])
741
 
        ifelse([$2],,[:],[$2])
742
 
else
743
 
        AC_MSG_RESULT([no])
744
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
745
 
fi
746
 
 
747
 
GNOME_DOC_DEFINES
748
 
])
749
 
 
750
 
 
751
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
752
 
# serial 40 IT_PROG_INTLTOOL
753
 
AC_DEFUN([IT_PROG_INTLTOOL], [
754
 
AC_PREREQ([2.50])dnl
755
 
AC_REQUIRE([AM_NLS])dnl
756
 
 
757
 
case "$am__api_version" in
758
 
    1.[01234])
759
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
760
 
    ;;
761
 
    *)
762
 
    ;;
763
 
esac
764
 
 
765
 
if test -n "$1"; then
766
 
    AC_MSG_CHECKING([for intltool >= $1])
767
 
 
768
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
769
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
770
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
771
 
    ]
772
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
773
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
774
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
775
 
fi
776
 
 
777
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
778
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
779
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
780
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
781
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
782
 
fi
783
 
 
784
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
785
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
786
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
787
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
788
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
789
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
790
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
791
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
792
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
793
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
794
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
795
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
796
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
797
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
798
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
799
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
800
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
801
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
802
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
803
 
 
804
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
805
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
806
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
807
 
_IT_SUBST(INTLTOOL_PROP_RULE)
808
 
_IT_SUBST(INTLTOOL_OAF_RULE)
809
 
_IT_SUBST(INTLTOOL_PONG_RULE)
810
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
811
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
812
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
813
 
_IT_SUBST(INTLTOOL_UI_RULE)
814
 
_IT_SUBST(INTLTOOL_XAM_RULE)
815
 
_IT_SUBST(INTLTOOL_KBD_RULE)
816
 
_IT_SUBST(INTLTOOL_XML_RULE)
817
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
818
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
819
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
820
 
_IT_SUBST(INTLTOOL_THEME_RULE)
821
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
822
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
823
 
 
824
 
# Check the gettext tools to make sure they are GNU
825
 
AC_PATH_PROG(XGETTEXT, xgettext)
826
 
AC_PATH_PROG(MSGMERGE, msgmerge)
827
 
AC_PATH_PROG(MSGFMT, msgfmt)
828
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
829
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
830
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
831
 
fi
832
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
833
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
834
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
835
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
836
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
837
 
fi
838
 
 
839
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
840
 
if test -z "$INTLTOOL_PERL"; then
841
 
   AC_MSG_ERROR([perl not found])
842
 
fi
843
 
AC_MSG_CHECKING([for perl >= 5.8.1])
844
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
845
 
if test $? -ne 0; then
846
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
847
 
else
848
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
849
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
850
 
fi
851
 
if test "x$2" != "xno-xml"; then
852
 
   AC_MSG_CHECKING([for XML::Parser])
853
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
854
 
       AC_MSG_RESULT([ok])
855
 
   else
856
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
857
 
   fi
858
 
fi
859
 
 
860
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
861
 
AC_SUBST(ALL_LINGUAS)
862
 
 
863
 
# Set DATADIRNAME correctly if it is not set yet
864
 
# (copied from glib-gettext.m4)
865
 
if test -z "$DATADIRNAME"; then
866
 
  AC_LINK_IFELSE(
867
 
    [AC_LANG_PROGRAM([[]],
868
 
                     [[extern int _nl_msg_cat_cntr;
869
 
                       return _nl_msg_cat_cntr]])],
870
 
    [DATADIRNAME=share],
871
 
    [case $host in
872
 
    *-*-solaris*)
873
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
874
 
    dnl GNU format message catalog is always supported,
875
 
    dnl since both are added to the libc all together.
876
 
    dnl Hence, we'd like to go with DATADIRNAME=share
877
 
    dnl in this case.
878
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
879
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
880
 
    ;;
881
 
    *)
882
 
    [DATADIRNAME=lib]
883
 
    ;;
884
 
    esac])
885
 
fi
886
 
AC_SUBST(DATADIRNAME)
887
 
 
888
 
IT_PO_SUBDIR([po])
889
 
 
890
 
])
891
 
 
892
 
 
893
 
# IT_PO_SUBDIR(DIRNAME)
894
 
# ---------------------
895
 
# All po subdirs have to be declared with this macro; the subdir "po" is
896
 
# declared by IT_PROG_INTLTOOL.
897
 
#
898
 
AC_DEFUN([IT_PO_SUBDIR],
899
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
900
 
dnl
901
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
902
 
dnl of config.status.
903
 
AC_CONFIG_COMMANDS_PRE([
904
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
905
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
906
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
289
  done
 
290
 
 
291
  cd ..
 
292
  rm -rf conftest.dir
 
293
else
 
294
  am_cv_$1_dependencies_compiler_type=none
 
295
fi
 
296
])
 
297
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
298
AM_CONDITIONAL([am__fastdep$1], [
 
299
  test "x$enable_dependency_tracking" != xno \
 
300
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
301
])
 
302
 
 
303
 
 
304
# AM_SET_DEPDIR
 
305
# -------------
 
306
# Choose a directory name for dependency files.
 
307
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
308
AC_DEFUN([AM_SET_DEPDIR],
 
309
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
310
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
311
])
 
312
 
 
313
 
 
314
# AM_DEP_TRACK
 
315
# ------------
 
316
AC_DEFUN([AM_DEP_TRACK],
 
317
[AC_ARG_ENABLE(dependency-tracking,
 
318
[  --disable-dependency-tracking  speeds up one-time build
 
319
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
320
if test "x$enable_dependency_tracking" != xno; then
 
321
  am_depcomp="$ac_aux_dir/depcomp"
 
322
  AMDEPBACKSLASH='\'
 
323
fi
 
324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
325
AC_SUBST([AMDEPBACKSLASH])dnl
 
326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
327
])
 
328
 
 
329
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
330
 
 
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
332
# Free Software Foundation, Inc.
 
333
#
 
334
# This file is free software; the Free Software Foundation
 
335
# gives unlimited permission to copy and/or distribute it,
 
336
# with or without modifications, as long as this notice is preserved.
 
337
 
 
338
#serial 5
 
339
 
 
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
341
# ------------------------------
 
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
343
[{
 
344
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
345
  # are listed without --file.  Let's play safe and only enable the eval
 
346
  # if we detect the quoting.
 
347
  case $CONFIG_FILES in
 
348
  *\'*) eval set x "$CONFIG_FILES" ;;
 
349
  *)   set x $CONFIG_FILES ;;
 
350
  esac
 
351
  shift
 
352
  for mf
 
353
  do
 
354
    # Strip MF so we end up with the name of the file.
 
355
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
356
    # Check whether this is an Automake generated Makefile or not.
 
357
    # We used to match only the files named `Makefile.in', but
 
358
    # some people rename them; so instead we look at the file content.
 
359
    # Grep'ing the first line is not enough: some people post-process
 
360
    # each Makefile.in and add a new line on top of each file to say so.
 
361
    # Grep'ing the whole file is not good either: AIX grep has a line
 
362
    # limit of 2048, but all sed's we know have understand at least 4000.
 
363
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
364
      dirpart=`AS_DIRNAME("$mf")`
 
365
    else
 
366
      continue
907
367
    fi
908
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
909
 
    >"$1/stamp-it.tmp"
910
 
    [sed '/^#/d
911
 
         s/^[[].*] *//
912
 
         /^[    ]*$/d
913
 
        '"s|^|  $ac_top_srcdir/|" \
914
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
915
 
    ]
916
 
    [sed '/^POTFILES =/,/[^\\]$/ {
917
 
                /^POTFILES =/!d
918
 
                r $1/POTFILES
919
 
          }
920
 
         ' "$1/Makefile.in" >"$1/Makefile"]
921
 
    rm -f "$1/Makefile.tmp"
922
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
923
 
  ])
924
 
])dnl
925
 
])
926
 
 
927
 
# _IT_SUBST(VARIABLE)
928
 
# -------------------
929
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
930
 
#
931
 
AC_DEFUN([_IT_SUBST],
932
 
[
933
 
AC_SUBST([$1])
934
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
368
    # Extract the definition of DEPDIR, am__include, and am__quote
 
369
    # from the Makefile without running `make'.
 
370
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
371
    test -z "$DEPDIR" && continue
 
372
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
373
    test -z "am__include" && continue
 
374
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
375
    # When using ansi2knr, U may be empty or an underscore; expand it
 
376
    U=`sed -n 's/^U = //p' < "$mf"`
 
377
    # Find all dependency output files, they are included files with
 
378
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
379
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
380
    # expansion.
 
381
    for file in `sed -n "
 
382
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
383
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
384
      # Make sure the directory exists.
 
385
      test -f "$dirpart/$file" && continue
 
386
      fdir=`AS_DIRNAME(["$file"])`
 
387
      AS_MKDIR_P([$dirpart/$fdir])
 
388
      # echo "creating $dirpart/$file"
 
389
      echo '# dummy' > "$dirpart/$file"
 
390
    done
 
391
  done
 
392
}
 
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
394
 
 
395
 
 
396
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
397
# -----------------------------
 
398
# This macro should only be invoked once -- use via AC_REQUIRE.
 
399
#
 
400
# This code is only required when automatic dependency tracking
 
401
# is enabled.  FIXME.  This creates each `.P' file that we will
 
402
# need in order to bootstrap the dependency handling code.
 
403
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
404
[AC_CONFIG_COMMANDS([depfiles],
 
405
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
406
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
407
])
 
408
 
 
409
# Do all the work for Automake.                             -*- Autoconf -*-
 
410
 
 
411
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
412
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
413
#
 
414
# This file is free software; the Free Software Foundation
 
415
# gives unlimited permission to copy and/or distribute it,
 
416
# with or without modifications, as long as this notice is preserved.
 
417
 
 
418
# serial 16
 
419
 
 
420
# This macro actually does too much.  Some checks are only needed if
 
421
# your package does certain things.  But this isn't really a big deal.
 
422
 
 
423
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
424
# AM_INIT_AUTOMAKE([OPTIONS])
 
425
# -----------------------------------------------
 
426
# The call with PACKAGE and VERSION arguments is the old style
 
427
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
428
# and VERSION should now be passed to AC_INIT and removed from
 
429
# the call to AM_INIT_AUTOMAKE.
 
430
# We support both call styles for the transition.  After
 
431
# the next Automake release, Autoconf can make the AC_INIT
 
432
# arguments mandatory, and then we can depend on a new Autoconf
 
433
# release and drop the old call support.
 
434
AC_DEFUN([AM_INIT_AUTOMAKE],
 
435
[AC_PREREQ([2.62])dnl
 
436
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
437
dnl the ones we care about.
 
438
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
439
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
440
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
441
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
442
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
443
  # is not polluted with repeated "-I."
 
444
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
445
  # test to see if srcdir already configured
 
446
  if test -f $srcdir/config.status; then
 
447
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
448
  fi
 
449
fi
 
450
 
 
451
# test whether we have cygpath
 
452
if test -z "$CYGPATH_W"; then
 
453
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
454
    CYGPATH_W='cygpath -w'
 
455
  else
 
456
    CYGPATH_W=echo
 
457
  fi
 
458
fi
 
459
AC_SUBST([CYGPATH_W])
 
460
 
 
461
# Define the identity of the package.
 
462
dnl Distinguish between old-style and new-style calls.
 
463
m4_ifval([$2],
 
464
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
465
 AC_SUBST([PACKAGE], [$1])dnl
 
466
 AC_SUBST([VERSION], [$2])],
 
467
[_AM_SET_OPTIONS([$1])dnl
 
468
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
469
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
470
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
471
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
472
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
473
 
 
474
_AM_IF_OPTION([no-define],,
 
475
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
476
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
477
 
 
478
# Some tools Automake needs.
 
479
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
480
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
481
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
482
AM_MISSING_PROG(AUTOCONF, autoconf)
 
483
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
484
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
485
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
486
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
487
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
488
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
489
# We need awk for the "check" target.  The system "awk" is bad on
 
490
# some platforms.
 
491
AC_REQUIRE([AC_PROG_AWK])dnl
 
492
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
493
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
494
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
495
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
496
                             [_AM_PROG_TAR([v7])])])
 
497
_AM_IF_OPTION([no-dependencies],,
 
498
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
499
                  [_AM_DEPENDENCIES(CC)],
 
500
                  [define([AC_PROG_CC],
 
501
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
502
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
503
                  [_AM_DEPENDENCIES(CXX)],
 
504
                  [define([AC_PROG_CXX],
 
505
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
506
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
507
                  [_AM_DEPENDENCIES(OBJC)],
 
508
                  [define([AC_PROG_OBJC],
 
509
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
510
])
 
511
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
512
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
513
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
514
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
515
AC_CONFIG_COMMANDS_PRE(dnl
 
516
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
517
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
518
])
 
519
 
 
520
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
521
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
522
dnl mangled by Autoconf and run in a shell conditional statement.
 
523
m4_define([_AC_COMPILER_EXEEXT],
 
524
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
525
 
 
526
 
 
527
# When config.status generates a header, we must update the stamp-h file.
 
528
# This file resides in the same directory as the config header
 
529
# that is generated.  The stamp files are numbered to have different names.
 
530
 
 
531
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
532
# loop where config.status creates the headers, so we can generate
 
533
# our stamp files there.
 
534
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
535
[# Compute $1's index in $config_headers.
 
536
_am_arg=$1
 
537
_am_stamp_count=1
 
538
for _am_header in $config_headers :; do
 
539
  case $_am_header in
 
540
    $_am_arg | $_am_arg:* )
 
541
      break ;;
 
542
    * )
 
543
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
544
  esac
 
545
done
 
546
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
547
 
 
548
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
549
#
 
550
# This file is free software; the Free Software Foundation
 
551
# gives unlimited permission to copy and/or distribute it,
 
552
# with or without modifications, as long as this notice is preserved.
 
553
 
 
554
# AM_PROG_INSTALL_SH
 
555
# ------------------
 
556
# Define $install_sh.
 
557
AC_DEFUN([AM_PROG_INSTALL_SH],
 
558
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
559
if test x"${install_sh}" != xset; then
 
560
  case $am_aux_dir in
 
561
  *\ * | *\     *)
 
562
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
563
  *)
 
564
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
565
  esac
 
566
fi
 
567
AC_SUBST(install_sh)])
 
568
 
 
569
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
570
#
 
571
# This file is free software; the Free Software Foundation
 
572
# gives unlimited permission to copy and/or distribute it,
 
573
# with or without modifications, as long as this notice is preserved.
 
574
 
 
575
# serial 2
 
576
 
 
577
# Check whether the underlying file-system supports filenames
 
578
# with a leading dot.  For instance MS-DOS doesn't.
 
579
AC_DEFUN([AM_SET_LEADING_DOT],
 
580
[rm -rf .tst 2>/dev/null
 
581
mkdir .tst 2>/dev/null
 
582
if test -d .tst; then
 
583
  am__leading_dot=.
 
584
else
 
585
  am__leading_dot=_
 
586
fi
 
587
rmdir .tst 2>/dev/null
 
588
AC_SUBST([am__leading_dot])])
 
589
 
 
590
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
591
# From Jim Meyering
 
592
 
 
593
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
594
# Free Software Foundation, Inc.
 
595
#
 
596
# This file is free software; the Free Software Foundation
 
597
# gives unlimited permission to copy and/or distribute it,
 
598
# with or without modifications, as long as this notice is preserved.
 
599
 
 
600
# serial 5
 
601
 
 
602
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
603
# ----------------------------------
 
604
# Control maintainer-specific portions of Makefiles.
 
605
# Default is to disable them, unless `enable' is passed literally.
 
606
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
607
# can override the default with the --enable/--disable switch.
 
608
AC_DEFUN([AM_MAINTAINER_MODE],
 
609
[m4_case(m4_default([$1], [disable]),
 
610
       [enable], [m4_define([am_maintainer_other], [disable])],
 
611
       [disable], [m4_define([am_maintainer_other], [enable])],
 
612
       [m4_define([am_maintainer_other], [enable])
 
613
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
614
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
615
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
616
  AC_ARG_ENABLE([maintainer-mode],
 
617
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
618
                          (and sometimes confusing) to the casual installer],
 
619
      [USE_MAINTAINER_MODE=$enableval],
 
620
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
621
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
622
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
623
  MAINT=$MAINTAINER_MODE_TRUE
 
624
  AC_SUBST([MAINT])dnl
935
625
]
936
626
)
937
627
 
938
 
# deprecated macros
939
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
940
 
# A hint is needed for aclocal from Automake <= 1.9.4:
941
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
942
 
 
 
628
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
629
 
 
630
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
631
 
 
632
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
633
#
 
634
# This file is free software; the Free Software Foundation
 
635
# gives unlimited permission to copy and/or distribute it,
 
636
# with or without modifications, as long as this notice is preserved.
 
637
 
 
638
# serial 4
 
639
 
 
640
# AM_MAKE_INCLUDE()
 
641
# -----------------
 
642
# Check to see how make treats includes.
 
643
AC_DEFUN([AM_MAKE_INCLUDE],
 
644
[am_make=${MAKE-make}
 
645
cat > confinc << 'END'
 
646
am__doit:
 
647
        @echo this is the am__doit target
 
648
.PHONY: am__doit
 
649
END
 
650
# If we don't find an include directive, just comment out the code.
 
651
AC_MSG_CHECKING([for style of include used by $am_make])
 
652
am__include="#"
 
653
am__quote=
 
654
_am_result=none
 
655
# First try GNU make style include.
 
656
echo "include confinc" > confmf
 
657
# Ignore all kinds of additional output from `make'.
 
658
case `$am_make -s -f confmf 2> /dev/null` in #(
 
659
*the\ am__doit\ target*)
 
660
  am__include=include
 
661
  am__quote=
 
662
  _am_result=GNU
 
663
  ;;
 
664
esac
 
665
# Now try BSD make style include.
 
666
if test "$am__include" = "#"; then
 
667
   echo '.include "confinc"' > confmf
 
668
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
669
   *the\ am__doit\ target*)
 
670
     am__include=.include
 
671
     am__quote="\""
 
672
     _am_result=BSD
 
673
     ;;
 
674
   esac
 
675
fi
 
676
AC_SUBST([am__include])
 
677
AC_SUBST([am__quote])
 
678
AC_MSG_RESULT([$_am_result])
 
679
rm -f confinc confmf
 
680
])
 
681
 
 
682
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
683
 
 
684
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
685
# Free Software Foundation, Inc.
 
686
#
 
687
# This file is free software; the Free Software Foundation
 
688
# gives unlimited permission to copy and/or distribute it,
 
689
# with or without modifications, as long as this notice is preserved.
 
690
 
 
691
# serial 6
 
692
 
 
693
# AM_MISSING_PROG(NAME, PROGRAM)
 
694
# ------------------------------
 
695
AC_DEFUN([AM_MISSING_PROG],
 
696
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
697
$1=${$1-"${am_missing_run}$2"}
 
698
AC_SUBST($1)])
 
699
 
 
700
 
 
701
# AM_MISSING_HAS_RUN
 
702
# ------------------
 
703
# Define MISSING if not defined so far and test if it supports --run.
 
704
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
705
AC_DEFUN([AM_MISSING_HAS_RUN],
 
706
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
707
AC_REQUIRE_AUX_FILE([missing])dnl
 
708
if test x"${MISSING+set}" != xset; then
 
709
  case $am_aux_dir in
 
710
  *\ * | *\     *)
 
711
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
712
  *)
 
713
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
714
  esac
 
715
fi
 
716
# Use eval to expand $SHELL
 
717
if eval "$MISSING --run true"; then
 
718
  am_missing_run="$MISSING --run "
 
719
else
 
720
  am_missing_run=
 
721
  AC_MSG_WARN([`missing' script is too old or missing])
 
722
fi
 
723
])
 
724
 
 
725
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
726
#
 
727
# This file is free software; the Free Software Foundation
 
728
# gives unlimited permission to copy and/or distribute it,
 
729
# with or without modifications, as long as this notice is preserved.
 
730
 
 
731
# AM_PROG_MKDIR_P
 
732
# ---------------
 
733
# Check for `mkdir -p'.
 
734
AC_DEFUN([AM_PROG_MKDIR_P],
 
735
[AC_PREREQ([2.60])dnl
 
736
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
737
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
738
dnl while keeping a definition of mkdir_p for backward compatibility.
 
739
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
740
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
741
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
742
dnl adjustment using top_builddir (which is defined more often than
 
743
dnl MKDIR_P).
 
744
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
745
case $mkdir_p in
 
746
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
747
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
748
esac
 
749
])
 
750
 
 
751
# Helper functions for option handling.                     -*- Autoconf -*-
 
752
 
 
753
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
754
#
 
755
# This file is free software; the Free Software Foundation
 
756
# gives unlimited permission to copy and/or distribute it,
 
757
# with or without modifications, as long as this notice is preserved.
 
758
 
 
759
# serial 4
 
760
 
 
761
# _AM_MANGLE_OPTION(NAME)
 
762
# -----------------------
 
763
AC_DEFUN([_AM_MANGLE_OPTION],
 
764
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
765
 
 
766
# _AM_SET_OPTION(NAME)
 
767
# ------------------------------
 
768
# Set option NAME.  Presently that only means defining a flag for this option.
 
769
AC_DEFUN([_AM_SET_OPTION],
 
770
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
771
 
 
772
# _AM_SET_OPTIONS(OPTIONS)
 
773
# ----------------------------------
 
774
# OPTIONS is a space-separated list of Automake options.
 
775
AC_DEFUN([_AM_SET_OPTIONS],
 
776
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
777
 
 
778
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
779
# -------------------------------------------
 
780
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
781
AC_DEFUN([_AM_IF_OPTION],
 
782
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
783
 
 
784
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
785
 
 
786
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
787
# Free Software Foundation, Inc.
 
788
#
 
789
# This file is free software; the Free Software Foundation
 
790
# gives unlimited permission to copy and/or distribute it,
 
791
# with or without modifications, as long as this notice is preserved.
 
792
 
 
793
# serial 5
 
794
 
 
795
# AM_SANITY_CHECK
 
796
# ---------------
 
797
AC_DEFUN([AM_SANITY_CHECK],
 
798
[AC_MSG_CHECKING([whether build environment is sane])
 
799
# Just in case
 
800
sleep 1
 
801
echo timestamp > conftest.file
 
802
# Reject unsafe characters in $srcdir or the absolute working directory
 
803
# name.  Accept space and tab only in the latter.
 
804
am_lf='
 
805
'
 
806
case `pwd` in
 
807
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
808
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
809
esac
 
810
case $srcdir in
 
811
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
812
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
813
esac
 
814
 
 
815
# Do `set' in a subshell so we don't clobber the current shell's
 
816
# arguments.  Must try -L first in case configure is actually a
 
817
# symlink; some systems play weird games with the mod time of symlinks
 
818
# (eg FreeBSD returns the mod time of the symlink's containing
 
819
# directory).
 
820
if (
 
821
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
822
   if test "$[*]" = "X"; then
 
823
      # -L didn't work.
 
824
      set X `ls -t "$srcdir/configure" conftest.file`
 
825
   fi
 
826
   rm -f conftest.file
 
827
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
828
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
829
 
 
830
      # If neither matched, then we have a broken ls.  This can happen
 
831
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
832
      # broken ls alias from the environment.  This has actually
 
833
      # happened.  Such a system could not be considered "sane".
 
834
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
835
alias in your environment])
 
836
   fi
 
837
 
 
838
   test "$[2]" = conftest.file
 
839
   )
 
840
then
 
841
   # Ok.
 
842
   :
 
843
else
 
844
   AC_MSG_ERROR([newly created file is older than distributed files!
 
845
Check your system clock])
 
846
fi
 
847
AC_MSG_RESULT(yes)])
 
848
 
 
849
# Copyright (C) 2009  Free Software Foundation, Inc.
 
850
#
 
851
# This file is free software; the Free Software Foundation
 
852
# gives unlimited permission to copy and/or distribute it,
 
853
# with or without modifications, as long as this notice is preserved.
 
854
 
 
855
# serial 1
 
856
 
 
857
# AM_SILENT_RULES([DEFAULT])
 
858
# --------------------------
 
859
# Enable less verbose build rules; with the default set to DEFAULT
 
860
# (`yes' being less verbose, `no' or empty being verbose).
 
861
AC_DEFUN([AM_SILENT_RULES],
 
862
[AC_ARG_ENABLE([silent-rules],
 
863
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
864
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
865
case $enable_silent_rules in
 
866
yes) AM_DEFAULT_VERBOSITY=0;;
 
867
no)  AM_DEFAULT_VERBOSITY=1;;
 
868
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
869
esac
 
870
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
871
AM_BACKSLASH='\'
 
872
AC_SUBST([AM_BACKSLASH])dnl
 
873
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
874
])
 
875
 
 
876
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
877
#
 
878
# This file is free software; the Free Software Foundation
 
879
# gives unlimited permission to copy and/or distribute it,
 
880
# with or without modifications, as long as this notice is preserved.
 
881
 
 
882
# AM_PROG_INSTALL_STRIP
 
883
# ---------------------
 
884
# One issue with vendor `install' (even GNU) is that you can't
 
885
# specify the program used to strip binaries.  This is especially
 
886
# annoying in cross-compiling environments, where the build's strip
 
887
# is unlikely to handle the host's binaries.
 
888
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
889
# always use install-sh in `make install-strip', and initialize
 
890
# STRIPPROG with the value of the STRIP variable (set by the user).
 
891
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
892
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
893
# Installed binaries are usually stripped using `strip' when the user
 
894
# run `make install-strip'.  However `strip' might not be the right
 
895
# tool to use in cross-compilation environments, therefore Automake
 
896
# will honor the `STRIP' environment variable to overrule this program.
 
897
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
898
if test "$cross_compiling" != no; then
 
899
  AC_CHECK_TOOL([STRIP], [strip], :)
 
900
fi
 
901
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
902
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
903
 
 
904
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
905
#
 
906
# This file is free software; the Free Software Foundation
 
907
# gives unlimited permission to copy and/or distribute it,
 
908
# with or without modifications, as long as this notice is preserved.
 
909
 
 
910
# serial 2
 
911
 
 
912
# _AM_SUBST_NOTMAKE(VARIABLE)
 
913
# ---------------------------
 
914
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
915
# This macro is traced by Automake.
 
916
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
917
 
 
918
# AM_SUBST_NOTMAKE(VARIABLE)
 
919
# ---------------------------
 
920
# Public sister of _AM_SUBST_NOTMAKE.
 
921
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
922
 
 
923
# Check how to create a tarball.                            -*- Autoconf -*-
 
924
 
 
925
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
926
#
 
927
# This file is free software; the Free Software Foundation
 
928
# gives unlimited permission to copy and/or distribute it,
 
929
# with or without modifications, as long as this notice is preserved.
 
930
 
 
931
# serial 2
 
932
 
 
933
# _AM_PROG_TAR(FORMAT)
 
934
# --------------------
 
935
# Check how to create a tarball in format FORMAT.
 
936
# FORMAT should be one of `v7', `ustar', or `pax'.
 
937
#
 
938
# Substitute a variable $(am__tar) that is a command
 
939
# writing to stdout a FORMAT-tarball containing the directory
 
940
# $tardir.
 
941
#     tardir=directory && $(am__tar) > result.tar
 
942
#
 
943
# Substitute a variable $(am__untar) that extract such
 
944
# a tarball read from stdin.
 
945
#     $(am__untar) < result.tar
 
946
AC_DEFUN([_AM_PROG_TAR],
 
947
[# Always define AMTAR for backward compatibility.
 
948
AM_MISSING_PROG([AMTAR], [tar])
 
949
m4_if([$1], [v7],
 
950
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
951
     [m4_case([$1], [ustar],, [pax],,
 
952
              [m4_fatal([Unknown tar format])])
 
953
AC_MSG_CHECKING([how to create a $1 tar archive])
 
954
# Loop over all known methods to create a tar archive until one works.
 
955
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
956
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
957
# Do not fold the above two line into one, because Tru64 sh and
 
958
# Solaris sh will not grok spaces in the rhs of `-'.
 
959
for _am_tool in $_am_tools
 
960
do
 
961
  case $_am_tool in
 
962
  gnutar)
 
963
    for _am_tar in tar gnutar gtar;
 
964
    do
 
965
      AM_RUN_LOG([$_am_tar --version]) && break
 
966
    done
 
967
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
968
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
969
    am__untar="$_am_tar -xf -"
 
970
    ;;
 
971
  plaintar)
 
972
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
973
    # ustar tarball either.
 
974
    (tar --version) >/dev/null 2>&1 && continue
 
975
    am__tar='tar chf - "$$tardir"'
 
976
    am__tar_='tar chf - "$tardir"'
 
977
    am__untar='tar xf -'
 
978
    ;;
 
979
  pax)
 
980
    am__tar='pax -L -x $1 -w "$$tardir"'
 
981
    am__tar_='pax -L -x $1 -w "$tardir"'
 
982
    am__untar='pax -r'
 
983
    ;;
 
984
  cpio)
 
985
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
986
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
987
    am__untar='cpio -i -H $1 -d'
 
988
    ;;
 
989
  none)
 
990
    am__tar=false
 
991
    am__tar_=false
 
992
    am__untar=false
 
993
    ;;
 
994
  esac
 
995
 
 
996
  # If the value was cached, stop now.  We just wanted to have am__tar
 
997
  # and am__untar set.
 
998
  test -n "${am_cv_prog_tar_$1}" && break
 
999
 
 
1000
  # tar/untar a dummy directory, and stop if the command works
 
1001
  rm -rf conftest.dir
 
1002
  mkdir conftest.dir
 
1003
  echo GrepMe > conftest.dir/file
 
1004
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1005
  rm -rf conftest.dir
 
1006
  if test -s conftest.tar; then
 
1007
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1008
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1009
  fi
 
1010
done
 
1011
rm -rf conftest.dir
 
1012
 
 
1013
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1014
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1015
AC_SUBST([am__tar])
 
1016
AC_SUBST([am__untar])
 
1017
]) # _AM_PROG_TAR
943
1018
 
944
1019
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
945
1020
#
1317
1392
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1318
1393
# ---------------------------------------------------
1319
1394
m4_define([lt_decl_varnames_tagged],
1320
 
[m4_assert([$# <= 2])dnl
1321
 
_$0(m4_quote(m4_default([$1], [[, ]])),
1322
 
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1323
 
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1324
 
m4_define([_lt_decl_varnames_tagged],
1325
 
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1395
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1396
     m4_quote(m4_if([$2], [],
 
1397
                     m4_quote(lt_decl_tag_varnames),
 
1398
                  m4_quote(m4_shift($@)))),
 
1399
     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
 
1400
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
1326
1401
 
1327
1402
 
1328
1403
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1882
1957
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1883
1958
    darwin1.*)
1884
1959
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1885
 
    darwin*) # darwin 5.x on
 
1960
    darwin*) # darwin 5.x on 
1886
1961
      # if running on 10.5 or later, the deployment target defaults
1887
1962
      # to the OS version, if on x86, and 10.4, the deployment
1888
 
      # target defaults to 10.4. Don't you love it?
 
1963
      # target defaults to 10.4. Don't you love it? 
1889
1964
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1890
1965
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1891
1966
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1927
2002
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1928
2003
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1929
2004
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1930
 
  case $cc_basename in
1931
 
     ifort*) _lt_dar_can_shared=yes ;;
1932
 
     *) _lt_dar_can_shared=$GCC ;;
1933
 
  esac
1934
 
  if test "$_lt_dar_can_shared" = "yes"; then
 
2005
  if test "$GCC" = "yes"; then
1935
2006
    output_verbose_link_cmd=echo
1936
2007
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1937
2008
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2453
2524
    lt_cv_sys_max_cmd_len=-1;
2454
2525
    ;;
2455
2526
 
2456
 
  cygwin* | mingw* | cegcc*)
 
2527
  cygwin* | mingw*)
2457
2528
    # On Win9x/ME, this test blows up -- it succeeds, but takes
2458
2529
    # about 5 minutes as the teststring grows exponentially.
2459
2530
    # Worse, since 9x/ME are not pre-emptively multitasking,
2621
2692
#  endif
2622
2693
#endif
2623
2694
 
 
2695
#ifdef __cplusplus
 
2696
extern "C" void exit (int);
 
2697
#endif
 
2698
 
2624
2699
void fnord() { int i=42;}
2625
2700
int main ()
2626
2701
{
2636
2711
  else
2637
2712
    puts (dlerror ());
2638
2713
 
2639
 
  return status;
 
2714
    exit (status);
2640
2715
}]
2641
2716
_LT_EOF
2642
2717
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2675
2750
    lt_cv_dlopen_self=yes
2676
2751
    ;;
2677
2752
 
2678
 
  mingw* | pw32* | cegcc*)
 
2753
  mingw* | pw32*)
2679
2754
    lt_cv_dlopen="LoadLibrary"
2680
2755
    lt_cv_dlopen_libs=
2681
2756
    ;;
2972
3047
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2973
3048
m4_require([_LT_DECL_EGREP])dnl
2974
3049
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2975
 
m4_require([_LT_DECL_OBJDUMP])dnl
2976
3050
m4_require([_LT_DECL_SED])dnl
2977
3051
AC_MSG_CHECKING([dynamic linker characteristics])
2978
3052
m4_if([$1],
3137
3211
  # libtool to hard-code these into programs
3138
3212
  ;;
3139
3213
 
3140
 
cygwin* | mingw* | pw32* | cegcc*)
 
3214
cygwin* | mingw* | pw32*)
3141
3215
  version_type=windows
3142
3216
  shrext_cmds=".dll"
3143
3217
  need_version=no
3144
3218
  need_lib_prefix=no
3145
3219
 
3146
3220
  case $GCC,$host_os in
3147
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
3221
  yes,cygwin* | yes,mingw* | yes,pw32*)
3148
3222
    library_names_spec='$libname.dll.a'
3149
3223
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3150
3224
    postinstall_cmds='base_file=`basename \${file}`~
3167
3241
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3168
3242
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3169
3243
      ;;
3170
 
    mingw* | cegcc*)
 
3244
    mingw*)
3171
3245
      # MinGW DLLs use traditional 'lib' prefix
3172
3246
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3173
3247
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3407
3481
  # before this can be enabled.
3408
3482
  hardcode_into_libs=yes
3409
3483
 
3410
 
  # Add ABI-specific directories to the system library path.
3411
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3412
 
 
3413
3484
  # Append ld.so.conf contents to the search path
3414
3485
  if test -f /etc/ld.so.conf; then
3415
3486
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3416
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
3487
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3417
3488
  fi
3418
3489
 
3419
3490
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3425
3496
  dynamic_linker='GNU/Linux ld.so'
3426
3497
  ;;
3427
3498
 
 
3499
netbsdelf*-gnu)
 
3500
  version_type=linux
 
3501
  need_lib_prefix=no
 
3502
  need_version=no
 
3503
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3504
  soname_spec='${libname}${release}${shared_ext}$major'
 
3505
  shlibpath_var=LD_LIBRARY_PATH
 
3506
  shlibpath_overrides_runpath=no
 
3507
  hardcode_into_libs=yes
 
3508
  dynamic_linker='NetBSD ld.elf_so'
 
3509
  ;;
 
3510
 
3428
3511
netbsd*)
3429
3512
  version_type=sunos
3430
3513
  need_lib_prefix=no
3596
3679
  version_type=linux
3597
3680
  need_lib_prefix=no
3598
3681
  need_version=no
3599
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3682
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3600
3683
  shlibpath_var=LD_LIBRARY_PATH
3601
3684
  shlibpath_overrides_runpath=no
3602
3685
  hardcode_into_libs=yes
3620
3703
if test "$GCC" = yes; then
3621
3704
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3622
3705
fi
3623
 
 
 
3706
 
3624
3707
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3625
3708
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3626
3709
fi
3897
3980
#  -- PORTME fill in with the dynamic library characteristics
3898
3981
m4_defun([_LT_CHECK_MAGIC_METHOD],
3899
3982
[m4_require([_LT_DECL_EGREP])
3900
 
m4_require([_LT_DECL_OBJDUMP])
3901
3983
AC_CACHE_CHECK([how to recognize dependent libraries],
3902
3984
lt_cv_deplibs_check_method,
3903
3985
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3948
4030
  fi
3949
4031
  ;;
3950
4032
 
3951
 
cegcc)
3952
 
  # use the weaker test based on 'objdump'. See mingw*.
3953
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3954
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3955
 
  ;;
3956
 
 
3957
4033
darwin* | rhapsody*)
3958
4034
  lt_cv_deplibs_check_method=pass_all
3959
4035
  ;;
4016
4092
  lt_cv_deplibs_check_method=pass_all
4017
4093
  ;;
4018
4094
 
4019
 
netbsd*)
 
4095
netbsd* | netbsdelf*-gnu)
4020
4096
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4021
4097
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4022
4098
  else
4265
4341
aix*)
4266
4342
  symcode='[[BCDT]]'
4267
4343
  ;;
4268
 
cygwin* | mingw* | pw32* | cegcc*)
 
4344
cygwin* | mingw* | pw32*)
4269
4345
  symcode='[[ABCDGISTW]]'
4270
4346
  ;;
4271
4347
hpux*)
4511
4587
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4512
4588
      # PIC is the default for these OSes.
4513
4589
      ;;
4514
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4590
    mingw* | cygwin* | os2* | pw32*)
4515
4591
      # This hack is so that the source file can tell whether it is being
4516
4592
      # built for inclusion in a dll (and should export symbols for example).
4517
4593
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4538
4614
      fi
4539
4615
      ;;
4540
4616
    hpux*)
4541
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4542
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4543
 
      # sets the default TLS model and affects inlining.
 
4617
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
4618
      # not for PA HP-UX.
4544
4619
      case $host_cpu in
4545
 
      hppa*64*)
 
4620
      hppa*64*|ia64*)
4546
4621
        ;;
4547
4622
      *)
4548
4623
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4640
4715
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4641
4716
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4642
4717
            ;;
4643
 
          ecpc* )
4644
 
            # old Intel C++ for x86_64 which still supported -KPIC.
 
4718
          icpc* | ecpc* )
 
4719
            # Intel C++
4645
4720
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4646
4721
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4647
4722
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4648
4723
            ;;
4649
 
          icpc* )
4650
 
            # Intel C++, used to be incompatible with GCC.
4651
 
            # ICC 10 doesn't accept -KPIC any more.
4652
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4653
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4654
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4655
 
            ;;
4656
4724
          pgCC* | pgcpp*)
4657
4725
            # Portland Group C++ compiler
4658
4726
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4697
4765
            ;;
4698
4766
        esac
4699
4767
        ;;
4700
 
      netbsd*)
 
4768
      netbsd* | netbsdelf*-gnu)
4701
4769
        ;;
4702
4770
      *qnx* | *nto*)
4703
4771
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4818
4886
      # PIC is the default for these OSes.
4819
4887
      ;;
4820
4888
 
4821
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
4889
    mingw* | cygwin* | pw32* | os2*)
4822
4890
      # This hack is so that the source file can tell whether it is being
4823
4891
      # built for inclusion in a dll (and should export symbols for example).
4824
4892
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4834
4902
      ;;
4835
4903
 
4836
4904
    hpux*)
4837
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4838
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4839
 
      # sets the default TLS model and affects inlining.
 
4905
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
4906
      # not for PA HP-UX.
4840
4907
      case $host_cpu in
4841
 
      hppa*64*)
 
4908
      hppa*64*|ia64*)
4842
4909
        # +Z the default
4843
4910
        ;;
4844
4911
      *)
4888
4955
      fi
4889
4956
      ;;
4890
4957
 
4891
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
4958
    mingw* | cygwin* | pw32* | os2*)
4892
4959
      # This hack is so that the source file can tell whether it is being
4893
4960
      # built for inclusion in a dll (and should export symbols for example).
4894
4961
      m4_if([$1], [GCJ], [],
4919
4986
 
4920
4987
    linux* | k*bsd*-gnu)
4921
4988
      case $cc_basename in
4922
 
      # old Intel for x86_64 which still supported -KPIC.
4923
 
      ecc*)
 
4989
      icc* | ecc* | ifort*)
4924
4990
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4925
4991
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4926
4992
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4927
4993
        ;;
4928
 
      # icc used to be incompatible with GCC.
4929
 
      # ICC 10 doesn't accept -KPIC any more.
4930
 
      icc* | ifort*)
4931
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4932
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4933
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4934
 
        ;;
4935
 
      # Lahey Fortran 8.1.
4936
 
      lf95*)
4937
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4938
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4939
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4940
 
        ;;
4941
4994
      pgcc* | pgf77* | pgf90* | pgf95*)
4942
4995
        # Portland Group compilers (*not* the Pentium gcc compiler,
4943
4996
        # which looks to be a dead project)
5119
5172
  pw32*)
5120
5173
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5121
5174
  ;;
5122
 
  cygwin* | mingw* | cegcc*)
 
5175
  cygwin* | mingw*)
5123
5176
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5124
5177
  ;;
 
5178
  linux* | k*bsd*-gnu)
 
5179
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
5180
  ;;
5125
5181
  *)
5126
5182
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5127
5183
  ;;
5171
5227
  extract_expsyms_cmds=
5172
5228
 
5173
5229
  case $host_os in
5174
 
  cygwin* | mingw* | pw32* | cegcc*)
 
5230
  cygwin* | mingw* | pw32*)
5175
5231
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5176
5232
    # When not using gcc, we currently assume that we are using
5177
5233
    # Microsoft Visual C++.
5258
5314
      fi
5259
5315
      ;;
5260
5316
 
5261
 
    cygwin* | mingw* | pw32* | cegcc*)
 
5317
    cygwin* | mingw* | pw32*)
5262
5318
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5263
5319
      # as there is no search path for DLLs.
5264
5320
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5324
5380
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5325
5381
        ifc* | ifort*)                  # Intel Fortran compiler
5326
5382
          tmp_addflag=' -nofor_main' ;;
5327
 
        lf95*)                          # Lahey Fortran 8.1
5328
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5329
 
          tmp_sharedflag='--shared' ;;
5330
5383
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
5331
5384
          tmp_sharedflag='-qmkshrobj'
5332
5385
          tmp_addflag= ;;
5368
5421
      fi
5369
5422
      ;;
5370
5423
 
5371
 
    netbsd*)
 
5424
    netbsd* | netbsdelf*-gnu)
5372
5425
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5373
5426
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5374
5427
        wlarc=
5543
5596
        if test "$aix_use_runtimelinking" = yes; then
5544
5597
          shared_flag="$shared_flag "'${wl}-G'
5545
5598
        fi
 
5599
        _LT_TAGVAR(link_all_deplibs, $1)=no
5546
5600
      else
5547
5601
        # not using gcc
5548
5602
        if test "$host_cpu" = ia64; then
5558
5612
        fi
5559
5613
      fi
5560
5614
 
5561
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5562
5615
      # It seems that -bexpall does not export symbols beginning with
5563
5616
      # underscore (_), so it is better to generate a list of symbols to export.
5564
5617
      _LT_TAGVAR(always_export_symbols, $1)=yes
5613
5666
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5614
5667
      ;;
5615
5668
 
5616
 
    cygwin* | mingw* | pw32* | cegcc*)
 
5669
    cygwin* | mingw* | pw32*)
5617
5670
      # When not using gcc, we currently assume that we are using
5618
5671
      # Microsoft Visual C++.
5619
5672
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5717
5770
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5718
5771
          ;;
5719
5772
        ia64*)
5720
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5773
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5721
5774
          ;;
5722
5775
        *)
5723
5776
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5781
5834
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5782
5835
      ;;
5783
5836
 
5784
 
    netbsd*)
 
5837
    netbsd* | netbsdelf*-gnu)
5785
5838
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5786
5839
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5787
5840
      else
6498
6551
          fi
6499
6552
        fi
6500
6553
 
6501
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6502
6554
        # It seems that -bexpall does not export symbols beginning with
6503
6555
        # underscore (_), so it is better to generate a list of symbols to
6504
6556
        # export.
6557
6609
        esac
6558
6610
        ;;
6559
6611
 
6560
 
      cygwin* | mingw* | pw32* | cegcc*)
 
6612
      cygwin* | mingw* | pw32*)
6561
6613
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6562
6614
        # as there is no search path for DLLs.
6563
6615
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7938
7990
])
7939
7991
 
7940
7992
 
7941
 
# _LT_DECL_OBJDUMP
7942
 
# --------------
7943
 
# If we don't have a new enough Autoconf to choose the best objdump
7944
 
# available, choose the one first in the user's PATH.
7945
 
m4_defun([_LT_DECL_OBJDUMP],
7946
 
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7947
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7948
 
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7949
 
AC_SUBST([OBJDUMP])
7950
 
])
7951
 
 
7952
 
 
7953
7993
# _LT_DECL_SED
7954
7994
# ------------
7955
7995
# Check for a fully-functional sed program, that truncates
8410
8450
[enable_win32_dll=yes
8411
8451
 
8412
8452
case $host in
8413
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8453
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8414
8454
  AC_CHECK_TOOL(AS, as, false)
8415
8455
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8416
8456
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8651
8691
 
8652
8692
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8653
8693
#
8654
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8655
 
# Written by Gary V. Vaughan, 2004
 
8694
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8695
#   Written by Gary V. Vaughan, 2004
8656
8696
#
8657
8697
# This file is free software; the Free Software Foundation gives
8658
8698
# unlimited permission to copy and/or distribute it, with or without
8659
8699
# modifications, as long as this notice is preserved.
8660
8700
 
8661
 
# serial 6 ltsugar.m4
 
8701
# serial 5 ltsugar.m4
8662
8702
 
8663
8703
# This is to help aclocal find these macros, as it can't see m4_define.
8664
8704
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8714
8754
# Produce a SEP delimited list of all paired combinations of elements of
8715
8755
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8716
8756
# has the form PREFIXmINFIXSUFFIXn.
8717
 
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8718
8757
m4_define([lt_combine],
8719
 
[m4_if(m4_eval([$# > 3]), [1],
8720
 
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8721
 
[[m4_foreach([_Lt_prefix], [$2],
8722
 
             [m4_foreach([_Lt_suffix],
8723
 
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8724
 
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
8758
[m4_if([$2], [], [],
 
8759
  [m4_if([$4], [], [],
 
8760
    [lt_join(m4_quote(m4_default([$1], [[, ]])),
 
8761
      lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
 
8762
                   [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
 
8763
                               [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
 
8764
])
8725
8765
 
8726
8766
 
8727
8767
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8784
8824
 
8785
8825
# Generated from ltversion.in.
8786
8826
 
8787
 
# serial 3017 ltversion.m4
 
8827
# serial 2976 ltversion.m4
8788
8828
# This file is part of GNU Libtool
8789
8829
 
8790
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8791
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
8830
m4_define([LT_PACKAGE_VERSION], [2.2.4])
 
8831
m4_define([LT_PACKAGE_REVISION], [1.2976])
8792
8832
 
8793
8833
AC_DEFUN([LTVERSION_VERSION],
8794
 
[macro_version='2.2.6b'
8795
 
macro_revision='1.3017'
 
8834
[macro_version='2.2.4'
 
8835
macro_revision='1.2976'
8796
8836
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8797
8837
_LT_DECL(, macro_revision, 0)
8798
8838
])
8990
9030
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8991
9031
# ---------------------------------------------
8992
9032
m4_define([_PKG_CONFIG],
8993
 
[if test -n "$$1"; then
8994
 
    pkg_cv_[]$1="$$1"
8995
 
 elif test -n "$PKG_CONFIG"; then
8996
 
    PKG_CHECK_EXISTS([$3],
8997
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8998
 
                     [pkg_failed=yes])
8999
 
 else
9000
 
    pkg_failed=untried
 
9033
[if test -n "$PKG_CONFIG"; then
 
9034
    if test -n "$$1"; then
 
9035
        pkg_cv_[]$1="$$1"
 
9036
    else
 
9037
        PKG_CHECK_EXISTS([$3],
 
9038
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9039
                         [pkg_failed=yes])
 
9040
    fi
 
9041
else
 
9042
        pkg_failed=untried
9001
9043
fi[]dnl
9002
9044
])# _PKG_CONFIG
9003
9045
 
9041
9083
if test $pkg_failed = yes; then
9042
9084
        _PKG_SHORT_ERRORS_SUPPORTED
9043
9085
        if test $_pkg_short_errors_supported = yes; then
9044
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
9086
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
9045
9087
        else 
9046
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9088
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
9047
9089
        fi
9048
9090
        # Put the nasty error message in config.log where it belongs
9049
9091
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9078
9120
fi[]dnl
9079
9121
])# PKG_CHECK_MODULES
9080
9122
 
9081
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
9082
 
#
9083
 
# This file is free software; the Free Software Foundation
9084
 
# gives unlimited permission to copy and/or distribute it,
9085
 
# with or without modifications, as long as this notice is preserved.
9086
 
 
9087
 
# AM_AUTOMAKE_VERSION(VERSION)
9088
 
# ----------------------------
9089
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9090
 
# generated from the m4 files accompanying Automake X.Y.
9091
 
# (This private macro should not be called outside this file.)
9092
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
9093
 
[am__api_version='1.11'
9094
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9095
 
dnl require some minimum version.  Point them to the right macro.
9096
 
m4_if([$1], [1.11.1], [],
9097
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9098
 
])
9099
 
 
9100
 
# _AM_AUTOCONF_VERSION(VERSION)
9101
 
# -----------------------------
9102
 
# aclocal traces this macro to find the Autoconf version.
9103
 
# This is a private macro too.  Using m4_define simplifies
9104
 
# the logic in aclocal, which can simply ignore this definition.
9105
 
m4_define([_AM_AUTOCONF_VERSION], [])
9106
 
 
9107
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
9123
dnl AM_GCONF_SOURCE_2
 
9124
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
 
9125
dnl  (i.e. pass to gconftool-2
 
9126
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
 
9127
dnl  you should install foo.schemas files
 
9128
dnl
 
9129
 
 
9130
AC_DEFUN([AM_GCONF_SOURCE_2],
 
9131
[
 
9132
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
 
9133
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
9134
  else
 
9135
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
 
9136
  fi
 
9137
 
 
9138
  AC_ARG_WITH([gconf-source],
 
9139
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
 
9140
                             [Config database for installing schema files.]),
 
9141
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
 
9142
 
 
9143
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
 
9144
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
 
9145
 
 
9146
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
9147
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
9148
  fi
 
9149
 
 
9150
  AC_ARG_WITH([gconf-schema-file-dir],
 
9151
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
 
9152
                             [Directory for installing schema files.]),
 
9153
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
 
9154
 
 
9155
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
 
9156
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
 
9157
 
 
9158
  AC_ARG_ENABLE(schemas-install,
 
9159
        AC_HELP_STRING([--disable-schemas-install],
 
9160
                       [Disable the schemas installation]),
 
9161
     [case ${enableval} in
 
9162
       yes|no) ;;
 
9163
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
 
9164
      esac])
 
9165
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
 
9166
])
 
9167
 
 
9168
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
9169
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
9170
#
 
9171
# This file is free software, distributed under the terms of the GNU
 
9172
# General Public License.  As a special exception to the GNU General
 
9173
# Public License, this file may be distributed as part of a program
 
9174
# that contains a configuration script generated by Autoconf, under
 
9175
# the same distribution terms as the rest of that program.
 
9176
#
 
9177
# This file can be copied and used freely without restrictions.  It can
 
9178
# be used in projects which are not available under the GNU Public License
 
9179
# but which still want to provide support for the GNU gettext functionality.
 
9180
#
 
9181
# Macro to add for using GNU gettext.
 
9182
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
9183
#
 
9184
# Modified to never use included libintl. 
 
9185
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
9186
#
 
9187
# Major rework to remove unused code
 
9188
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
9189
#
 
9190
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
9191
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
9192
#
 
9193
# Modified to require ngettext
 
9194
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
9195
#
 
9196
# We need this here as well, since someone might use autoconf-2.5x
 
9197
# to configure GLib then an older version to configure a package
 
9198
# using AM_GLIB_GNU_GETTEXT
 
9199
AC_PREREQ(2.53)
 
9200
 
 
9201
dnl
 
9202
dnl We go to great lengths to make sure that aclocal won't 
 
9203
dnl try to pull in the installed version of these macros
 
9204
dnl when running aclocal in the glib directory.
 
9205
dnl
 
9206
m4_copy([AC_DEFUN],[glib_DEFUN])
 
9207
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
9208
dnl
 
9209
dnl At the end, if we're not within glib, we'll define the public
 
9210
dnl definitions in terms of our private definitions.
 
9211
dnl
 
9212
 
 
9213
# GLIB_LC_MESSAGES
 
9214
#--------------------
 
9215
glib_DEFUN([GLIB_LC_MESSAGES],
 
9216
  [AC_CHECK_HEADERS([locale.h])
 
9217
    if test $ac_cv_header_locale_h = yes; then
 
9218
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
9219
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
9220
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
9221
    if test $am_cv_val_LC_MESSAGES = yes; then
 
9222
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
9223
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
9224
    fi
 
9225
  fi])
 
9226
 
 
9227
# GLIB_PATH_PROG_WITH_TEST
 
9228
#----------------------------
 
9229
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
9230
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
9231
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
9232
[# Extract the first word of "$2", so it can be a program name with args.
 
9233
set dummy $2; ac_word=[$]2
 
9234
AC_MSG_CHECKING([for $ac_word])
 
9235
AC_CACHE_VAL(ac_cv_path_$1,
 
9236
[case "[$]$1" in
 
9237
  /*)
 
9238
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
9239
  ;;
 
9240
  *)
 
9241
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
9242
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
9243
    test -z "$ac_dir" && ac_dir=.
 
9244
    if test -f $ac_dir/$ac_word; then
 
9245
      if [$3]; then
 
9246
        ac_cv_path_$1="$ac_dir/$ac_word"
 
9247
        break
 
9248
      fi
 
9249
    fi
 
9250
  done
 
9251
  IFS="$ac_save_ifs"
 
9252
dnl If no 4th arg is given, leave the cache variable unset,
 
9253
dnl so AC_PATH_PROGS will keep looking.
 
9254
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
9255
])dnl
 
9256
  ;;
 
9257
esac])dnl
 
9258
$1="$ac_cv_path_$1"
 
9259
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
9260
  AC_MSG_RESULT([$]$1)
 
9261
else
 
9262
  AC_MSG_RESULT(no)
 
9263
fi
 
9264
AC_SUBST($1)dnl
 
9265
])
 
9266
 
 
9267
# GLIB_WITH_NLS
 
9268
#-----------------
 
9269
glib_DEFUN([GLIB_WITH_NLS],
 
9270
  dnl NLS is obligatory
 
9271
  [USE_NLS=yes
 
9272
    AC_SUBST(USE_NLS)
 
9273
 
 
9274
    gt_cv_have_gettext=no
 
9275
 
 
9276
    CATOBJEXT=NONE
 
9277
    XGETTEXT=:
 
9278
    INTLLIBS=
 
9279
 
 
9280
    AC_CHECK_HEADER(libintl.h,
 
9281
     [gt_cv_func_dgettext_libintl="no"
 
9282
      libintl_extra_libs=""
 
9283
 
 
9284
      #
 
9285
      # First check in libc
 
9286
      #
 
9287
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
9288
        [AC_TRY_LINK([
 
9289
#include <libintl.h>
 
9290
],
 
9291
         [return !ngettext ("","", 1)],
 
9292
          gt_cv_func_ngettext_libc=yes,
 
9293
          gt_cv_func_ngettext_libc=no)
 
9294
        ])
 
9295
  
 
9296
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
9297
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
9298
                [AC_TRY_LINK([
 
9299
#include <libintl.h>
 
9300
],
 
9301
                  [return !dgettext ("","")],
 
9302
                  gt_cv_func_dgettext_libc=yes,
 
9303
                  gt_cv_func_dgettext_libc=no)
 
9304
                ])
 
9305
      fi
 
9306
  
 
9307
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
9308
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
9309
      fi
 
9310
 
 
9311
      #
 
9312
      # If we don't have everything we want, check in libintl
 
9313
      #
 
9314
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
9315
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
9316
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
9317
        
 
9318
        AC_CHECK_LIB(intl, bindtextdomain,
 
9319
            [AC_CHECK_LIB(intl, ngettext,
 
9320
                    [AC_CHECK_LIB(intl, dgettext,
 
9321
                                  gt_cv_func_dgettext_libintl=yes)])])
 
9322
 
 
9323
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
9324
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
9325
          AC_MSG_RESULT([])
 
9326
          AC_CHECK_LIB(intl, ngettext,
 
9327
                [AC_CHECK_LIB(intl, dcgettext,
 
9328
                       [gt_cv_func_dgettext_libintl=yes
 
9329
                        libintl_extra_libs=-liconv],
 
9330
                        :,-liconv)],
 
9331
                :,-liconv)
 
9332
        fi
 
9333
 
 
9334
        #
 
9335
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
9336
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
9337
        # and both have dgettext and ngettext
 
9338
        #
 
9339
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
9340
          glib_save_LIBS="$LIBS"
 
9341
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
9342
          unset ac_cv_func_bind_textdomain_codeset
 
9343
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
9344
          LIBS="$glib_save_LIBS"
 
9345
 
 
9346
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
9347
            gt_cv_func_dgettext_libc=no
 
9348
          else
 
9349
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
9350
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
9351
              gt_cv_func_dgettext_libintl=no
 
9352
            fi
 
9353
          fi
 
9354
        fi
 
9355
      fi
 
9356
 
 
9357
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
9358
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
9359
        gt_cv_have_gettext=yes
 
9360
      fi
 
9361
  
 
9362
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
9363
        INTLLIBS="-lintl $libintl_extra_libs"
 
9364
      fi
 
9365
  
 
9366
      if test "$gt_cv_have_gettext" = "yes"; then
 
9367
        AC_DEFINE(HAVE_GETTEXT,1,
 
9368
          [Define if the GNU gettext() function is already present or preinstalled.])
 
9369
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
9370
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
9371
        if test "$MSGFMT" != "no"; then
 
9372
          glib_save_LIBS="$LIBS"
 
9373
          LIBS="$LIBS $INTLLIBS"
 
9374
          AC_CHECK_FUNCS(dcgettext)
 
9375
          MSGFMT_OPTS=
 
9376
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
9377
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
9378
msgid ""
 
9379
msgstr ""
 
9380
"Content-Type: text/plain; charset=UTF-8\n"
 
9381
"Project-Id-Version: test 1.0\n"
 
9382
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
9383
"Last-Translator: test <foo@bar.xx>\n"
 
9384
"Language-Team: C <LL@li.org>\n"
 
9385
"MIME-Version: 1.0\n"
 
9386
"Content-Transfer-Encoding: 8bit\n"
 
9387
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
9388
          AC_SUBST(MSGFMT_OPTS)
 
9389
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
9390
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
9391
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
9392
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
9393
                         return _nl_msg_cat_cntr],
 
9394
            [CATOBJEXT=.gmo 
 
9395
             DATADIRNAME=share],
 
9396
            [case $host in
 
9397
            *-*-solaris*)
 
9398
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
9399
            dnl GNU format message catalog is always supported,
 
9400
            dnl since both are added to the libc all together.
 
9401
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
9402
            dnl and CATOBJEXT=.gmo in this case.
 
9403
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
9404
              [CATOBJEXT=.gmo 
 
9405
               DATADIRNAME=share],
 
9406
              [CATOBJEXT=.mo
 
9407
               DATADIRNAME=lib])
 
9408
            ;;
 
9409
            *)
 
9410
            CATOBJEXT=.mo
 
9411
            DATADIRNAME=lib
 
9412
            ;;
 
9413
            esac])
 
9414
          LIBS="$glib_save_LIBS"
 
9415
          INSTOBJEXT=.mo
 
9416
        else
 
9417
          gt_cv_have_gettext=no
 
9418
        fi
 
9419
      fi
 
9420
    ])
 
9421
 
 
9422
    if test "$gt_cv_have_gettext" = "yes" ; then
 
9423
      AC_DEFINE(ENABLE_NLS, 1,
 
9424
        [always defined to indicate that i18n is enabled])
 
9425
    fi
 
9426
 
 
9427
    dnl Test whether we really found GNU xgettext.
 
9428
    if test "$XGETTEXT" != ":"; then
 
9429
      dnl If it is not GNU xgettext we define it as : so that the
 
9430
      dnl Makefiles still can work.
 
9431
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
9432
        : ;
 
9433
      else
 
9434
        AC_MSG_RESULT(
 
9435
          [found xgettext program is not GNU xgettext; ignore it])
 
9436
        XGETTEXT=":"
 
9437
      fi
 
9438
    fi
 
9439
 
 
9440
    # We need to process the po/ directory.
 
9441
    POSUB=po
 
9442
 
 
9443
    AC_OUTPUT_COMMANDS(
 
9444
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
9445
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
9446
      esac])
 
9447
 
 
9448
    dnl These rules are solely for the distribution goal.  While doing this
 
9449
    dnl we only have to keep exactly one list of the available catalogs
 
9450
    dnl in configure.in.
 
9451
    for lang in $ALL_LINGUAS; do
 
9452
      GMOFILES="$GMOFILES $lang.gmo"
 
9453
      POFILES="$POFILES $lang.po"
 
9454
    done
 
9455
 
 
9456
    dnl Make all variables we use known to autoconf.
 
9457
    AC_SUBST(CATALOGS)
 
9458
    AC_SUBST(CATOBJEXT)
 
9459
    AC_SUBST(DATADIRNAME)
 
9460
    AC_SUBST(GMOFILES)
 
9461
    AC_SUBST(INSTOBJEXT)
 
9462
    AC_SUBST(INTLLIBS)
 
9463
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
9464
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
9465
    AC_SUBST(POFILES)
 
9466
    AC_SUBST(POSUB)
 
9467
  ])
 
9468
 
 
9469
# AM_GLIB_GNU_GETTEXT
 
9470
# -------------------
 
9471
# Do checks necessary for use of gettext. If a suitable implementation 
 
9472
# of gettext is found in either in libintl or in the C library,
 
9473
# it will set INTLLIBS to the libraries needed for use of gettext
 
9474
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
9475
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
9476
# on various variables needed by the Makefile.in.in installed by 
 
9477
# glib-gettextize.
 
9478
dnl
 
9479
glib_DEFUN([GLIB_GNU_GETTEXT],
 
9480
  [AC_REQUIRE([AC_PROG_CC])dnl
 
9481
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
9482
   
 
9483
   GLIB_LC_MESSAGES
 
9484
   GLIB_WITH_NLS
 
9485
 
 
9486
   if test "$gt_cv_have_gettext" = "yes"; then
 
9487
     if test "x$ALL_LINGUAS" = "x"; then
 
9488
       LINGUAS=
 
9489
     else
 
9490
       AC_MSG_CHECKING(for catalogs to be installed)
 
9491
       NEW_LINGUAS=
 
9492
       for presentlang in $ALL_LINGUAS; do
 
9493
         useit=no
 
9494
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
9495
           desiredlanguages="$LINGUAS"
 
9496
         else
 
9497
           desiredlanguages="$ALL_LINGUAS"
 
9498
         fi
 
9499
         for desiredlang in $desiredlanguages; do
 
9500
           # Use the presentlang catalog if desiredlang is
 
9501
           #   a. equal to presentlang, or
 
9502
           #   b. a variant of presentlang (because in this case,
 
9503
           #      presentlang can be used as a fallback for messages
 
9504
           #      which are not translated in the desiredlang catalog).
 
9505
           case "$desiredlang" in
 
9506
             "$presentlang"*) useit=yes;;
 
9507
           esac
 
9508
         done
 
9509
         if test $useit = yes; then
 
9510
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
9511
         fi
 
9512
       done
 
9513
       LINGUAS=$NEW_LINGUAS
 
9514
       AC_MSG_RESULT($LINGUAS)
 
9515
     fi
 
9516
 
 
9517
     dnl Construct list of names of catalog files to be constructed.
 
9518
     if test -n "$LINGUAS"; then
 
9519
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
9520
     fi
 
9521
   fi
 
9522
 
 
9523
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
9524
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
9525
   dnl Try to locate is.
 
9526
   MKINSTALLDIRS=
 
9527
   if test -n "$ac_aux_dir"; then
 
9528
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
9529
   fi
 
9530
   if test -z "$MKINSTALLDIRS"; then
 
9531
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
9532
   fi
 
9533
   AC_SUBST(MKINSTALLDIRS)
 
9534
 
 
9535
   dnl Generate list of files to be processed by xgettext which will
 
9536
   dnl be included in po/Makefile.
 
9537
   test -d po || mkdir po
 
9538
   if test "x$srcdir" != "x."; then
 
9539
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
9540
       posrcprefix="$srcdir/"
 
9541
     else
 
9542
       posrcprefix="../$srcdir/"
 
9543
     fi
 
9544
   else
 
9545
     posrcprefix="../"
 
9546
   fi
 
9547
   rm -f po/POTFILES
 
9548
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
9549
        < $srcdir/po/POTFILES.in > po/POTFILES
 
9550
  ])
 
9551
 
 
9552
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
9108
9553
# -------------------------------
9109
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9110
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9111
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9112
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9113
 
m4_ifndef([AC_AUTOCONF_VERSION],
9114
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9115
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9116
 
 
9117
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9118
 
 
9119
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9120
 
#
9121
 
# This file is free software; the Free Software Foundation
9122
 
# gives unlimited permission to copy and/or distribute it,
9123
 
# with or without modifications, as long as this notice is preserved.
9124
 
 
9125
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9126
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
9127
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9128
 
#
9129
 
# Of course, Automake must honor this variable whenever it calls a
9130
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
9131
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
9132
 
# depending on how configure is run.  This is pretty annoying, since
9133
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9134
 
# source directory, any form will work fine, but in subdirectories a
9135
 
# relative path needs to be adjusted first.
9136
 
#
9137
 
# $ac_aux_dir/missing
9138
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
9139
 
# $top_srcdir/$ac_aux_dir/missing
9140
 
#    fails if $ac_aux_dir is absolute,
9141
 
#    fails when called from a subdirectory in a VPATH build with
9142
 
#          a relative $ac_aux_dir
9143
 
#
9144
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9145
 
# are both prefixed by $srcdir.  In an in-source build this is usually
9146
 
# harmless because $srcdir is `.', but things will broke when you
9147
 
# start a VPATH build or use an absolute $srcdir.
9148
 
#
9149
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9150
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
9151
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9152
 
# and then we would define $MISSING as
9153
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
9154
 
# This will work as long as MISSING is not called from configure, because
9155
 
# unfortunately $(top_srcdir) has no meaning in configure.
9156
 
# However there are other variables, like CC, which are often used in
9157
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9158
 
#
9159
 
# Another solution, used here, is to always expand $ac_aux_dir to an
9160
 
# absolute PATH.  The drawback is that using absolute paths prevent a
9161
 
# configured tree to be moved without reconfiguration.
9162
 
 
9163
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
9164
 
[dnl Rely on autoconf to set up CDPATH properly.
 
9554
# Define VARIABLE to the location where catalog files will
 
9555
# be installed by po/Makefile.
 
9556
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
9557
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
9558
glib_save_prefix="$prefix"
 
9559
glib_save_exec_prefix="$exec_prefix"
 
9560
glib_save_datarootdir="$datarootdir"
 
9561
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
9562
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
9563
datarootdir=`eval echo "${datarootdir}"`
 
9564
if test "x$CATOBJEXT" = "x.mo" ; then
 
9565
  localedir=`eval echo "${libdir}/locale"`
 
9566
else
 
9567
  localedir=`eval echo "${datadir}/locale"`
 
9568
fi
 
9569
prefix="$glib_save_prefix"
 
9570
exec_prefix="$glib_save_exec_prefix"
 
9571
datarootdir="$glib_save_datarootdir"
 
9572
AC_DEFINE_UNQUOTED($1, "$localedir",
 
9573
  [Define the location where the catalogs will be installed])
 
9574
])
 
9575
 
 
9576
dnl
 
9577
dnl Now the definitions that aclocal will find
 
9578
dnl
 
9579
ifdef(glib_configure_in,[],[
 
9580
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
9581
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
9582
])dnl
 
9583
 
 
9584
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
9585
 
9586
# Create a temporary file with TEST-FILE as its contents and pass the
 
9587
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
9588
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
9589
AC_DEFUN([GLIB_RUN_PROG],
 
9590
[cat >conftest.foo <<_ACEOF
 
9591
$2
 
9592
_ACEOF
 
9593
if AC_RUN_LOG([$1 conftest.foo]); then
 
9594
  m4_ifval([$3], [$3], [:])
 
9595
m4_ifvaln([$4], [else $4])dnl
 
9596
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
9597
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
9598
fi])
 
9599
 
 
9600
 
 
9601
# gnome-common.m4
 
9602
#
 
9603
# serial 3
 
9604
 
9605
 
 
9606
dnl GNOME_COMMON_INIT
 
9607
 
 
9608
AU_DEFUN([GNOME_COMMON_INIT],
 
9609
[
 
9610
  dnl this macro should come after AC_CONFIG_MACRO_DIR
 
9611
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
 
9612
 
 
9613
  dnl ensure that when the Automake generated makefile calls aclocal,
 
9614
  dnl it honours the $ACLOCAL_FLAGS environment variable
 
9615
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
9616
  if test -n "$ac_macro_dir"; then
 
9617
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
 
9618
  fi
 
9619
 
 
9620
  AC_SUBST([ACLOCAL_AMFLAGS])
 
9621
],
 
9622
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
 
9623
in your top-level Makefile.am, instead, where "m4" is the macro directory set
 
9624
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
 
9625
 
 
9626
AC_DEFUN([GNOME_DEBUG_CHECK],
 
9627
[
 
9628
        AC_ARG_ENABLE([debug],
 
9629
                      AC_HELP_STRING([--enable-debug],
 
9630
                                     [turn on debugging]),,
 
9631
                      [enable_debug=no])
 
9632
 
 
9633
        if test x$enable_debug = xyes ; then
 
9634
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
 
9635
                [Enable additional debugging at the expense of performance and size])
 
9636
        fi
 
9637
])
 
9638
 
 
9639
dnl GNOME_MAINTAINER_MODE_DEFINES ()
 
9640
dnl define DISABLE_DEPRECATED
 
9641
dnl
 
9642
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
9643
[
 
9644
        AC_REQUIRE([AM_MAINTAINER_MODE])
 
9645
 
 
9646
        DISABLE_DEPRECATED=""
 
9647
        if test $USE_MAINTAINER_MODE = yes; then
 
9648
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
9649
                for DOMAIN in $DOMAINS; do
 
9650
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
 
9651
                done
 
9652
        fi
 
9653
 
 
9654
        AC_SUBST(DISABLE_DEPRECATED)
 
9655
])
 
9656
 
 
9657
dnl GNOME_COMPILE_WARNINGS
 
9658
dnl Turn on many useful compiler warnings
 
9659
dnl For now, only works on GCC
 
9660
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
9661
    dnl ******************************
 
9662
    dnl More compiler warnings
 
9663
    dnl ******************************
 
9664
 
 
9665
    AC_ARG_ENABLE(compile-warnings, 
 
9666
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
9667
                                 [Turn on compiler warnings]),,
 
9668
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
9669
 
 
9670
    warnCFLAGS=
 
9671
    if test "x$GCC" != xyes; then
 
9672
        enable_compile_warnings=no
 
9673
    fi
 
9674
 
 
9675
    warning_flags=
 
9676
    realsave_CFLAGS="$CFLAGS"
 
9677
 
 
9678
    case "$enable_compile_warnings" in
 
9679
    no)
 
9680
        warning_flags=
 
9681
        ;;
 
9682
    minimum)
 
9683
        warning_flags="-Wall"
 
9684
        ;;
 
9685
    yes)
 
9686
        warning_flags="-Wall -Wmissing-prototypes"
 
9687
        ;;
 
9688
    maximum|error)
 
9689
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
9690
        CFLAGS="$warning_flags $CFLAGS"
 
9691
        for option in -Wno-sign-compare; do
 
9692
                SAVE_CFLAGS="$CFLAGS"
 
9693
                CFLAGS="$CFLAGS $option"
 
9694
                AC_MSG_CHECKING([whether gcc understands $option])
 
9695
                AC_TRY_COMPILE([], [],
 
9696
                        has_option=yes,
 
9697
                        has_option=no,)
 
9698
                CFLAGS="$SAVE_CFLAGS"
 
9699
                AC_MSG_RESULT($has_option)
 
9700
                if test $has_option = yes; then
 
9701
                  warning_flags="$warning_flags $option"
 
9702
                fi
 
9703
                unset has_option
 
9704
                unset SAVE_CFLAGS
 
9705
        done
 
9706
        unset option
 
9707
        if test "$enable_compile_warnings" = "error" ; then
 
9708
            warning_flags="$warning_flags -Werror"
 
9709
        fi
 
9710
        ;;
 
9711
    *)
 
9712
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
9713
        ;;
 
9714
    esac
 
9715
    CFLAGS="$realsave_CFLAGS"
 
9716
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
9717
    AC_MSG_RESULT($warning_flags)
 
9718
 
 
9719
    AC_ARG_ENABLE(iso-c,
 
9720
                  AC_HELP_STRING([--enable-iso-c],
 
9721
                                 [Try to warn if code is not ISO C ]),,
 
9722
                  [enable_iso_c=no])
 
9723
 
 
9724
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
9725
    complCFLAGS=
 
9726
    if test "x$enable_iso_c" != "xno"; then
 
9727
        if test "x$GCC" = "xyes"; then
 
9728
        case " $CFLAGS " in
 
9729
            *[\ \       ]-ansi[\ \      ]*) ;;
 
9730
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
9731
        esac
 
9732
        case " $CFLAGS " in
 
9733
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
9734
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
9735
        esac
 
9736
        fi
 
9737
    fi
 
9738
    AC_MSG_RESULT($complCFLAGS)
 
9739
 
 
9740
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
9741
    AC_SUBST(WARN_CFLAGS)
 
9742
])
 
9743
 
 
9744
dnl For C++, do basically the same thing.
 
9745
 
 
9746
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
9747
  AC_ARG_ENABLE(cxx-warnings,
 
9748
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
9749
                               [Turn on compiler warnings.]),,
 
9750
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
9751
 
 
9752
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
9753
  warnCXXFLAGS=
 
9754
  if test "x$GXX" != xyes; then
 
9755
    enable_cxx_warnings=no
 
9756
  fi
 
9757
  if test "x$enable_cxx_warnings" != "xno"; then
 
9758
    if test "x$GXX" = "xyes"; then
 
9759
      case " $CXXFLAGS " in
 
9760
      *[\ \     ]-Wall[\ \      ]*) ;;
 
9761
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
9762
      esac
 
9763
 
 
9764
      ## -W is not all that useful.  And it cannot be controlled
 
9765
      ## with individual -Wno-xxx flags, unlike -Wall
 
9766
      if test "x$enable_cxx_warnings" = "xyes"; then
 
9767
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
 
9768
      fi
 
9769
    fi
 
9770
  fi
 
9771
  AC_MSG_RESULT($warnCXXFLAGS)
 
9772
 
 
9773
   AC_ARG_ENABLE(iso-cxx,
 
9774
                 AC_HELP_STRING([--enable-iso-cxx],
 
9775
                                [Try to warn if code is not ISO C++ ]),,
 
9776
                 [enable_iso_cxx=no])
 
9777
 
 
9778
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
9779
   complCXXFLAGS=
 
9780
   if test "x$enable_iso_cxx" != "xno"; then
 
9781
     if test "x$GXX" = "xyes"; then
 
9782
      case " $CXXFLAGS " in
 
9783
      *[\ \     ]-ansi[\ \      ]*) ;;
 
9784
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
9785
      esac
 
9786
 
 
9787
      case " $CXXFLAGS " in
 
9788
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
9789
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
9790
      esac
 
9791
     fi
 
9792
   fi
 
9793
  AC_MSG_RESULT($complCXXFLAGS)
 
9794
 
 
9795
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
9796
  AC_SUBST(WARN_CXXFLAGS)
 
9797
])
 
9798
 
 
9799
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
 
9800
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
 
9801
AC_DEFUN([GNOME_DOC_DEFINES],
 
9802
[
 
9803
AC_ARG_WITH([help-dir],
 
9804
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
 
9805
  [with_help_dir='${datadir}/gnome/help'])
 
9806
HELP_DIR="$with_help_dir"
 
9807
AC_SUBST(HELP_DIR)
 
9808
 
 
9809
AC_ARG_WITH([omf-dir],
 
9810
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
 
9811
  [with_omf_dir='${datadir}/omf'])
 
9812
OMF_DIR="$with_omf_dir"
 
9813
AC_SUBST(OMF_DIR)
 
9814
 
 
9815
AC_ARG_WITH([help-formats],
 
9816
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
 
9817
  [with_help_formats=''])
 
9818
DOC_USER_FORMATS="$with_help_formats"
 
9819
AC_SUBST(DOC_USER_FORMATS)
 
9820
 
 
9821
AC_ARG_ENABLE([scrollkeeper],
 
9822
        [AC_HELP_STRING([--disable-scrollkeeper],
 
9823
                        [do not make updates to the scrollkeeper database])],,
 
9824
        enable_scrollkeeper=yes)
 
9825
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
 
9826
 
 
9827
dnl disable scrollkeeper automatically for distcheck
 
9828
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
9829
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
 
9830
 
 
9831
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
 
9832
])
 
9833
 
 
9834
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
 
9835
#
 
9836
AC_DEFUN([GNOME_DOC_INIT],
 
9837
[AC_REQUIRE([AC_PROG_LN_S])dnl
 
9838
 
 
9839
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
 
9840
 
 
9841
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
 
9842
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
 
9843
 
 
9844
if test "$gdu_cv_have_gdu" = "yes"; then
 
9845
        ifelse([$2],,[:],[$2])
 
9846
else
 
9847
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
 
9848
fi
 
9849
 
 
9850
GNOME_DOC_DEFINES
 
9851
])
 
9852
 
 
9853
 
 
9854
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
9855
# serial 40 IT_PROG_INTLTOOL
 
9856
AC_DEFUN([IT_PROG_INTLTOOL], [
9165
9857
AC_PREREQ([2.50])dnl
9166
 
# expand $ac_aux_dir to an absolute path
9167
 
am_aux_dir=`cd $ac_aux_dir && pwd`
9168
 
])
9169
 
 
9170
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
9171
 
 
9172
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9173
 
# Free Software Foundation, Inc.
9174
 
#
9175
 
# This file is free software; the Free Software Foundation
9176
 
# gives unlimited permission to copy and/or distribute it,
9177
 
# with or without modifications, as long as this notice is preserved.
9178
 
 
9179
 
# serial 9
9180
 
 
9181
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9182
 
# -------------------------------------
9183
 
# Define a conditional.
9184
 
AC_DEFUN([AM_CONDITIONAL],
9185
 
[AC_PREREQ(2.52)dnl
9186
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9187
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9188
 
AC_SUBST([$1_TRUE])dnl
9189
 
AC_SUBST([$1_FALSE])dnl
9190
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9191
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9192
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9193
 
if $2; then
9194
 
  $1_TRUE=
9195
 
  $1_FALSE='#'
9196
 
else
9197
 
  $1_TRUE='#'
9198
 
  $1_FALSE=
9199
 
fi
9200
 
AC_CONFIG_COMMANDS_PRE(
9201
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9202
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
9203
 
Usually this means the macro was only invoked conditionally.]])
9204
 
fi])])
9205
 
 
9206
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9207
 
# Free Software Foundation, Inc.
9208
 
#
9209
 
# This file is free software; the Free Software Foundation
9210
 
# gives unlimited permission to copy and/or distribute it,
9211
 
# with or without modifications, as long as this notice is preserved.
9212
 
 
9213
 
# serial 10
9214
 
 
9215
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9216
 
# written in clear, in which case automake, when reading aclocal.m4,
9217
 
# will think it sees a *use*, and therefore will trigger all it's
9218
 
# C support machinery.  Also note that it means that autoscan, seeing
9219
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9220
 
 
9221
 
 
9222
 
# _AM_DEPENDENCIES(NAME)
9223
 
# ----------------------
9224
 
# See how the compiler implements dependency checking.
9225
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9226
 
# We try a few techniques and use that to set a single cache variable.
9227
 
#
9228
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9229
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9230
 
# dependency, and given that the user is not expected to run this macro,
9231
 
# just rely on AC_PROG_CC.
9232
 
AC_DEFUN([_AM_DEPENDENCIES],
9233
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9234
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9235
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9236
 
AC_REQUIRE([AM_DEP_TRACK])dnl
9237
 
 
9238
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
9239
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
9240
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9241
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
9242
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9243
 
                   [depcc="$$1"   am_compiler_list=])
9244
 
 
9245
 
AC_CACHE_CHECK([dependency style of $depcc],
9246
 
               [am_cv_$1_dependencies_compiler_type],
9247
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9248
 
  # We make a subdir and do the tests there.  Otherwise we can end up
9249
 
  # making bogus files that we don't know about and never remove.  For
9250
 
  # instance it was reported that on HP-UX the gcc test will end up
9251
 
  # making a dummy file named `D' -- because `-MD' means `put the output
9252
 
  # in D'.
9253
 
  mkdir conftest.dir
9254
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
9255
 
  # using a relative directory.
9256
 
  cp "$am_depcomp" conftest.dir
9257
 
  cd conftest.dir
9258
 
  # We will build objects and dependencies in a subdirectory because
9259
 
  # it helps to detect inapplicable dependency modes.  For instance
9260
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
9261
 
  # side effect of compilation, but ICC will put the dependencies in
9262
 
  # the current directory while Tru64 will put them in the object
9263
 
  # directory.
9264
 
  mkdir sub
9265
 
 
9266
 
  am_cv_$1_dependencies_compiler_type=none
9267
 
  if test "$am_compiler_list" = ""; then
9268
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9269
 
  fi
9270
 
  am__universal=false
9271
 
  m4_case([$1], [CC],
9272
 
    [case " $depcc " in #(
9273
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9274
 
     esac],
9275
 
    [CXX],
9276
 
    [case " $depcc " in #(
9277
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9278
 
     esac])
9279
 
 
9280
 
  for depmode in $am_compiler_list; do
9281
 
    # Setup a source with many dependencies, because some compilers
9282
 
    # like to wrap large dependency lists on column 80 (with \), and
9283
 
    # we should not choose a depcomp mode which is confused by this.
9284
 
    #
9285
 
    # We need to recreate these files for each test, as the compiler may
9286
 
    # overwrite some of them when testing with obscure command lines.
9287
 
    # This happens at least with the AIX C compiler.
9288
 
    : > sub/conftest.c
9289
 
    for i in 1 2 3 4 5 6; do
9290
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9291
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9292
 
      # Solaris 8's {/usr,}/bin/sh.
9293
 
      touch sub/conftst$i.h
9294
 
    done
9295
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9296
 
 
9297
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9298
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
9299
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
9300
 
    # versions had trouble with output in subdirs
9301
 
    am__obj=sub/conftest.${OBJEXT-o}
9302
 
    am__minus_obj="-o $am__obj"
9303
 
    case $depmode in
9304
 
    gcc)
9305
 
      # This depmode causes a compiler race in universal mode.
9306
 
      test "$am__universal" = false || continue
9307
 
      ;;
9308
 
    nosideeffect)
9309
 
      # after this tag, mechanisms are not by side-effect, so they'll
9310
 
      # only be used when explicitly requested
9311
 
      if test "x$enable_dependency_tracking" = xyes; then
9312
 
        continue
9313
 
      else
9314
 
        break
9315
 
      fi
9316
 
      ;;
9317
 
    msvisualcpp | msvcmsys)
9318
 
      # This compiler won't grok `-c -o', but also, the minuso test has
9319
 
      # not run yet.  These depmodes are late enough in the game, and
9320
 
      # so weak that their functioning should not be impacted.
9321
 
      am__obj=conftest.${OBJEXT-o}
9322
 
      am__minus_obj=
9323
 
      ;;
9324
 
    none) break ;;
9325
 
    esac
9326
 
    if depmode=$depmode \
9327
 
       source=sub/conftest.c object=$am__obj \
9328
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9329
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9330
 
         >/dev/null 2>conftest.err &&
9331
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9332
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9333
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9334
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9335
 
      # icc doesn't choke on unknown options, it will just issue warnings
9336
 
      # or remarks (even with -Werror).  So we grep stderr for any message
9337
 
      # that says an option was ignored or not supported.
9338
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
9339
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
9340
 
      # The diagnosis changed in icc 8.0:
9341
 
      #   icc: Command line remark: option '-MP' not supported
9342
 
      if (grep 'ignoring option' conftest.err ||
9343
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9344
 
        am_cv_$1_dependencies_compiler_type=$depmode
9345
 
        break
9346
 
      fi
9347
 
    fi
9348
 
  done
9349
 
 
9350
 
  cd ..
9351
 
  rm -rf conftest.dir
9352
 
else
9353
 
  am_cv_$1_dependencies_compiler_type=none
9354
 
fi
9355
 
])
9356
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9357
 
AM_CONDITIONAL([am__fastdep$1], [
9358
 
  test "x$enable_dependency_tracking" != xno \
9359
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9360
 
])
9361
 
 
9362
 
 
9363
 
# AM_SET_DEPDIR
9364
 
# -------------
9365
 
# Choose a directory name for dependency files.
9366
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9367
 
AC_DEFUN([AM_SET_DEPDIR],
9368
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9369
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9370
 
])
9371
 
 
9372
 
 
9373
 
# AM_DEP_TRACK
9374
 
# ------------
9375
 
AC_DEFUN([AM_DEP_TRACK],
9376
 
[AC_ARG_ENABLE(dependency-tracking,
9377
 
[  --disable-dependency-tracking  speeds up one-time build
9378
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
9379
 
if test "x$enable_dependency_tracking" != xno; then
9380
 
  am_depcomp="$ac_aux_dir/depcomp"
9381
 
  AMDEPBACKSLASH='\'
9382
 
fi
9383
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9384
 
AC_SUBST([AMDEPBACKSLASH])dnl
9385
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9386
 
])
9387
 
 
9388
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9389
 
 
9390
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9391
 
# Free Software Foundation, Inc.
9392
 
#
9393
 
# This file is free software; the Free Software Foundation
9394
 
# gives unlimited permission to copy and/or distribute it,
9395
 
# with or without modifications, as long as this notice is preserved.
9396
 
 
9397
 
#serial 5
9398
 
 
9399
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9400
 
# ------------------------------
9401
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9402
 
[{
9403
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9404
 
  # are listed without --file.  Let's play safe and only enable the eval
9405
 
  # if we detect the quoting.
9406
 
  case $CONFIG_FILES in
9407
 
  *\'*) eval set x "$CONFIG_FILES" ;;
9408
 
  *)   set x $CONFIG_FILES ;;
9409
 
  esac
9410
 
  shift
9411
 
  for mf
9412
 
  do
9413
 
    # Strip MF so we end up with the name of the file.
9414
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
9415
 
    # Check whether this is an Automake generated Makefile or not.
9416
 
    # We used to match only the files named `Makefile.in', but
9417
 
    # some people rename them; so instead we look at the file content.
9418
 
    # Grep'ing the first line is not enough: some people post-process
9419
 
    # each Makefile.in and add a new line on top of each file to say so.
9420
 
    # Grep'ing the whole file is not good either: AIX grep has a line
9421
 
    # limit of 2048, but all sed's we know have understand at least 4000.
9422
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9423
 
      dirpart=`AS_DIRNAME("$mf")`
9424
 
    else
9425
 
      continue
9426
 
    fi
9427
 
    # Extract the definition of DEPDIR, am__include, and am__quote
9428
 
    # from the Makefile without running `make'.
9429
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9430
 
    test -z "$DEPDIR" && continue
9431
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9432
 
    test -z "am__include" && continue
9433
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9434
 
    # When using ansi2knr, U may be empty or an underscore; expand it
9435
 
    U=`sed -n 's/^U = //p' < "$mf"`
9436
 
    # Find all dependency output files, they are included files with
9437
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9438
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
9439
 
    # expansion.
9440
 
    for file in `sed -n "
9441
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9442
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9443
 
      # Make sure the directory exists.
9444
 
      test -f "$dirpart/$file" && continue
9445
 
      fdir=`AS_DIRNAME(["$file"])`
9446
 
      AS_MKDIR_P([$dirpart/$fdir])
9447
 
      # echo "creating $dirpart/$file"
9448
 
      echo '# dummy' > "$dirpart/$file"
9449
 
    done
9450
 
  done
9451
 
}
9452
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9453
 
 
9454
 
 
9455
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
9456
 
# -----------------------------
9457
 
# This macro should only be invoked once -- use via AC_REQUIRE.
9458
 
#
9459
 
# This code is only required when automatic dependency tracking
9460
 
# is enabled.  FIXME.  This creates each `.P' file that we will
9461
 
# need in order to bootstrap the dependency handling code.
9462
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9463
 
[AC_CONFIG_COMMANDS([depfiles],
9464
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9465
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9466
 
])
9467
 
 
9468
 
# Do all the work for Automake.                             -*- Autoconf -*-
9469
 
 
9470
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9471
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9472
 
#
9473
 
# This file is free software; the Free Software Foundation
9474
 
# gives unlimited permission to copy and/or distribute it,
9475
 
# with or without modifications, as long as this notice is preserved.
9476
 
 
9477
 
# serial 16
9478
 
 
9479
 
# This macro actually does too much.  Some checks are only needed if
9480
 
# your package does certain things.  But this isn't really a big deal.
9481
 
 
9482
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9483
 
# AM_INIT_AUTOMAKE([OPTIONS])
9484
 
# -----------------------------------------------
9485
 
# The call with PACKAGE and VERSION arguments is the old style
9486
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9487
 
# and VERSION should now be passed to AC_INIT and removed from
9488
 
# the call to AM_INIT_AUTOMAKE.
9489
 
# We support both call styles for the transition.  After
9490
 
# the next Automake release, Autoconf can make the AC_INIT
9491
 
# arguments mandatory, and then we can depend on a new Autoconf
9492
 
# release and drop the old call support.
9493
 
AC_DEFUN([AM_INIT_AUTOMAKE],
9494
 
[AC_PREREQ([2.62])dnl
9495
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9496
 
dnl the ones we care about.
9497
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9498
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9499
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
9500
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9501
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9502
 
  # is not polluted with repeated "-I."
9503
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9504
 
  # test to see if srcdir already configured
9505
 
  if test -f $srcdir/config.status; then
9506
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9507
 
  fi
9508
 
fi
9509
 
 
9510
 
# test whether we have cygpath
9511
 
if test -z "$CYGPATH_W"; then
9512
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
9513
 
    CYGPATH_W='cygpath -w'
9514
 
  else
9515
 
    CYGPATH_W=echo
9516
 
  fi
9517
 
fi
9518
 
AC_SUBST([CYGPATH_W])
9519
 
 
9520
 
# Define the identity of the package.
9521
 
dnl Distinguish between old-style and new-style calls.
9522
 
m4_ifval([$2],
9523
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9524
 
 AC_SUBST([PACKAGE], [$1])dnl
9525
 
 AC_SUBST([VERSION], [$2])],
9526
 
[_AM_SET_OPTIONS([$1])dnl
9527
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9528
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9529
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9530
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9531
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9532
 
 
9533
 
_AM_IF_OPTION([no-define],,
9534
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9535
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9536
 
 
9537
 
# Some tools Automake needs.
9538
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
9539
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9540
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9541
 
AM_MISSING_PROG(AUTOCONF, autoconf)
9542
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9543
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
9544
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
9545
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9546
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9547
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9548
 
# We need awk for the "check" target.  The system "awk" is bad on
9549
 
# some platforms.
9550
 
AC_REQUIRE([AC_PROG_AWK])dnl
9551
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9552
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9553
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9554
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9555
 
                             [_AM_PROG_TAR([v7])])])
9556
 
_AM_IF_OPTION([no-dependencies],,
9557
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9558
 
                  [_AM_DEPENDENCIES(CC)],
9559
 
                  [define([AC_PROG_CC],
9560
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9561
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9562
 
                  [_AM_DEPENDENCIES(CXX)],
9563
 
                  [define([AC_PROG_CXX],
9564
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9565
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9566
 
                  [_AM_DEPENDENCIES(OBJC)],
9567
 
                  [define([AC_PROG_OBJC],
9568
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9569
 
])
9570
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9571
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9572
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9573
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9574
 
AC_CONFIG_COMMANDS_PRE(dnl
9575
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
9576
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9577
 
])
9578
 
 
9579
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9580
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9581
 
dnl mangled by Autoconf and run in a shell conditional statement.
9582
 
m4_define([_AC_COMPILER_EXEEXT],
9583
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9584
 
 
9585
 
 
9586
 
# When config.status generates a header, we must update the stamp-h file.
9587
 
# This file resides in the same directory as the config header
9588
 
# that is generated.  The stamp files are numbered to have different names.
9589
 
 
9590
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9591
 
# loop where config.status creates the headers, so we can generate
9592
 
# our stamp files there.
9593
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9594
 
[# Compute $1's index in $config_headers.
9595
 
_am_arg=$1
9596
 
_am_stamp_count=1
9597
 
for _am_header in $config_headers :; do
9598
 
  case $_am_header in
9599
 
    $_am_arg | $_am_arg:* )
9600
 
      break ;;
9601
 
    * )
9602
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9603
 
  esac
9604
 
done
9605
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9606
 
 
9607
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9608
 
#
9609
 
# This file is free software; the Free Software Foundation
9610
 
# gives unlimited permission to copy and/or distribute it,
9611
 
# with or without modifications, as long as this notice is preserved.
9612
 
 
9613
 
# AM_PROG_INSTALL_SH
9614
 
# ------------------
9615
 
# Define $install_sh.
9616
 
AC_DEFUN([AM_PROG_INSTALL_SH],
9617
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9618
 
if test x"${install_sh}" != xset; then
9619
 
  case $am_aux_dir in
9620
 
  *\ * | *\     *)
9621
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9622
 
  *)
9623
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9624
 
  esac
9625
 
fi
9626
 
AC_SUBST(install_sh)])
9627
 
 
9628
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9629
 
#
9630
 
# This file is free software; the Free Software Foundation
9631
 
# gives unlimited permission to copy and/or distribute it,
9632
 
# with or without modifications, as long as this notice is preserved.
9633
 
 
9634
 
# serial 2
9635
 
 
9636
 
# Check whether the underlying file-system supports filenames
9637
 
# with a leading dot.  For instance MS-DOS doesn't.
9638
 
AC_DEFUN([AM_SET_LEADING_DOT],
9639
 
[rm -rf .tst 2>/dev/null
9640
 
mkdir .tst 2>/dev/null
9641
 
if test -d .tst; then
9642
 
  am__leading_dot=.
9643
 
else
9644
 
  am__leading_dot=_
9645
 
fi
9646
 
rmdir .tst 2>/dev/null
9647
 
AC_SUBST([am__leading_dot])])
9648
 
 
9649
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9650
 
# From Jim Meyering
9651
 
 
9652
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9653
 
# Free Software Foundation, Inc.
9654
 
#
9655
 
# This file is free software; the Free Software Foundation
9656
 
# gives unlimited permission to copy and/or distribute it,
9657
 
# with or without modifications, as long as this notice is preserved.
9658
 
 
9659
 
# serial 5
9660
 
 
9661
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9662
 
# ----------------------------------
9663
 
# Control maintainer-specific portions of Makefiles.
9664
 
# Default is to disable them, unless `enable' is passed literally.
9665
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
9666
 
# can override the default with the --enable/--disable switch.
9667
 
AC_DEFUN([AM_MAINTAINER_MODE],
9668
 
[m4_case(m4_default([$1], [disable]),
9669
 
       [enable], [m4_define([am_maintainer_other], [disable])],
9670
 
       [disable], [m4_define([am_maintainer_other], [enable])],
9671
 
       [m4_define([am_maintainer_other], [enable])
9672
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9673
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9674
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9675
 
  AC_ARG_ENABLE([maintainer-mode],
9676
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9677
 
                          (and sometimes confusing) to the casual installer],
9678
 
      [USE_MAINTAINER_MODE=$enableval],
9679
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9680
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9681
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9682
 
  MAINT=$MAINTAINER_MODE_TRUE
9683
 
  AC_SUBST([MAINT])dnl
 
9858
AC_REQUIRE([AM_NLS])dnl
 
9859
 
 
9860
case "$am__api_version" in
 
9861
    1.[01234])
 
9862
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
9863
    ;;
 
9864
    *)
 
9865
    ;;
 
9866
esac
 
9867
 
 
9868
if test -n "$1"; then
 
9869
    AC_MSG_CHECKING([for intltool >= $1])
 
9870
 
 
9871
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
9872
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
9873
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
9874
    ]
 
9875
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
9876
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
9877
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
9878
fi
 
9879
 
 
9880
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
9881
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
9882
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
9883
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
9884
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
9885
fi
 
9886
 
 
9887
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9888
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9889
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9890
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9891
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
9892
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9893
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9894
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9895
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9896
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9897
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9898
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
9899
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9900
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9901
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9902
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9903
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
9904
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
9905
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
9906
 
 
9907
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
9908
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
9909
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
9910
_IT_SUBST(INTLTOOL_PROP_RULE)
 
9911
_IT_SUBST(INTLTOOL_OAF_RULE)
 
9912
_IT_SUBST(INTLTOOL_PONG_RULE)
 
9913
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
9914
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
9915
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
9916
_IT_SUBST(INTLTOOL_UI_RULE)
 
9917
_IT_SUBST(INTLTOOL_XAM_RULE)
 
9918
_IT_SUBST(INTLTOOL_KBD_RULE)
 
9919
_IT_SUBST(INTLTOOL_XML_RULE)
 
9920
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
9921
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
9922
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
9923
_IT_SUBST(INTLTOOL_THEME_RULE)
 
9924
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
9925
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
9926
 
 
9927
# Check the gettext tools to make sure they are GNU
 
9928
AC_PATH_PROG(XGETTEXT, xgettext)
 
9929
AC_PATH_PROG(MSGMERGE, msgmerge)
 
9930
AC_PATH_PROG(MSGFMT, msgfmt)
 
9931
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
9932
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
9933
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
9934
fi
 
9935
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
9936
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
9937
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
9938
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
9939
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
9940
fi
 
9941
 
 
9942
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
9943
if test -z "$INTLTOOL_PERL"; then
 
9944
   AC_MSG_ERROR([perl not found])
 
9945
fi
 
9946
AC_MSG_CHECKING([for perl >= 5.8.1])
 
9947
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
9948
if test $? -ne 0; then
 
9949
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
9950
else
 
9951
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
9952
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
9953
fi
 
9954
if test "x$2" != "xno-xml"; then
 
9955
   AC_MSG_CHECKING([for XML::Parser])
 
9956
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
9957
       AC_MSG_RESULT([ok])
 
9958
   else
 
9959
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
9960
   fi
 
9961
fi
 
9962
 
 
9963
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
9964
AC_SUBST(ALL_LINGUAS)
 
9965
 
 
9966
# Set DATADIRNAME correctly if it is not set yet
 
9967
# (copied from glib-gettext.m4)
 
9968
if test -z "$DATADIRNAME"; then
 
9969
  AC_LINK_IFELSE(
 
9970
    [AC_LANG_PROGRAM([[]],
 
9971
                     [[extern int _nl_msg_cat_cntr;
 
9972
                       return _nl_msg_cat_cntr]])],
 
9973
    [DATADIRNAME=share],
 
9974
    [case $host in
 
9975
    *-*-solaris*)
 
9976
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
9977
    dnl GNU format message catalog is always supported,
 
9978
    dnl since both are added to the libc all together.
 
9979
    dnl Hence, we'd like to go with DATADIRNAME=share
 
9980
    dnl in this case.
 
9981
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
9982
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
9983
    ;;
 
9984
    *)
 
9985
    [DATADIRNAME=lib]
 
9986
    ;;
 
9987
    esac])
 
9988
fi
 
9989
AC_SUBST(DATADIRNAME)
 
9990
 
 
9991
IT_PO_SUBDIR([po])
 
9992
 
 
9993
])
 
9994
 
 
9995
 
 
9996
# IT_PO_SUBDIR(DIRNAME)
 
9997
# ---------------------
 
9998
# All po subdirs have to be declared with this macro; the subdir "po" is
 
9999
# declared by IT_PROG_INTLTOOL.
 
10000
#
 
10001
AC_DEFUN([IT_PO_SUBDIR],
 
10002
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
10003
dnl
 
10004
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
10005
dnl of config.status.
 
10006
AC_CONFIG_COMMANDS_PRE([
 
10007
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
10008
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
10009
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
10010
    fi
 
10011
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
10012
    >"$1/stamp-it.tmp"
 
10013
    [sed '/^#/d
 
10014
         s/^[[].*] *//
 
10015
         /^[    ]*$/d
 
10016
        '"s|^|  $ac_top_srcdir/|" \
 
10017
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
10018
    ]
 
10019
    [sed '/^POTFILES =/,/[^\\]$/ {
 
10020
                /^POTFILES =/!d
 
10021
                r $1/POTFILES
 
10022
          }
 
10023
         ' "$1/Makefile.in" >"$1/Makefile"]
 
10024
    rm -f "$1/Makefile.tmp"
 
10025
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
10026
  ])
 
10027
])dnl
 
10028
])
 
10029
 
 
10030
# _IT_SUBST(VARIABLE)
 
10031
# -------------------
 
10032
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
10033
#
 
10034
AC_DEFUN([_IT_SUBST],
 
10035
[
 
10036
AC_SUBST([$1])
 
10037
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
9684
10038
]
9685
10039
)
9686
10040
 
9687
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9688
 
 
9689
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9690
 
 
9691
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
9692
 
#
9693
 
# This file is free software; the Free Software Foundation
9694
 
# gives unlimited permission to copy and/or distribute it,
9695
 
# with or without modifications, as long as this notice is preserved.
9696
 
 
9697
 
# serial 4
9698
 
 
9699
 
# AM_MAKE_INCLUDE()
9700
 
# -----------------
9701
 
# Check to see how make treats includes.
9702
 
AC_DEFUN([AM_MAKE_INCLUDE],
9703
 
[am_make=${MAKE-make}
9704
 
cat > confinc << 'END'
9705
 
am__doit:
9706
 
        @echo this is the am__doit target
9707
 
.PHONY: am__doit
9708
 
END
9709
 
# If we don't find an include directive, just comment out the code.
9710
 
AC_MSG_CHECKING([for style of include used by $am_make])
9711
 
am__include="#"
9712
 
am__quote=
9713
 
_am_result=none
9714
 
# First try GNU make style include.
9715
 
echo "include confinc" > confmf
9716
 
# Ignore all kinds of additional output from `make'.
9717
 
case `$am_make -s -f confmf 2> /dev/null` in #(
9718
 
*the\ am__doit\ target*)
9719
 
  am__include=include
9720
 
  am__quote=
9721
 
  _am_result=GNU
9722
 
  ;;
9723
 
esac
9724
 
# Now try BSD make style include.
9725
 
if test "$am__include" = "#"; then
9726
 
   echo '.include "confinc"' > confmf
9727
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
9728
 
   *the\ am__doit\ target*)
9729
 
     am__include=.include
9730
 
     am__quote="\""
9731
 
     _am_result=BSD
9732
 
     ;;
9733
 
   esac
9734
 
fi
9735
 
AC_SUBST([am__include])
9736
 
AC_SUBST([am__quote])
9737
 
AC_MSG_RESULT([$_am_result])
9738
 
rm -f confinc confmf
9739
 
])
9740
 
 
9741
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9742
 
 
9743
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9744
 
# Free Software Foundation, Inc.
9745
 
#
9746
 
# This file is free software; the Free Software Foundation
9747
 
# gives unlimited permission to copy and/or distribute it,
9748
 
# with or without modifications, as long as this notice is preserved.
9749
 
 
9750
 
# serial 6
9751
 
 
9752
 
# AM_MISSING_PROG(NAME, PROGRAM)
9753
 
# ------------------------------
9754
 
AC_DEFUN([AM_MISSING_PROG],
9755
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9756
 
$1=${$1-"${am_missing_run}$2"}
9757
 
AC_SUBST($1)])
9758
 
 
9759
 
 
9760
 
# AM_MISSING_HAS_RUN
9761
 
# ------------------
9762
 
# Define MISSING if not defined so far and test if it supports --run.
9763
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
9764
 
AC_DEFUN([AM_MISSING_HAS_RUN],
9765
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9766
 
AC_REQUIRE_AUX_FILE([missing])dnl
9767
 
if test x"${MISSING+set}" != xset; then
9768
 
  case $am_aux_dir in
9769
 
  *\ * | *\     *)
9770
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9771
 
  *)
9772
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9773
 
  esac
9774
 
fi
9775
 
# Use eval to expand $SHELL
9776
 
if eval "$MISSING --run true"; then
9777
 
  am_missing_run="$MISSING --run "
9778
 
else
9779
 
  am_missing_run=
9780
 
  AC_MSG_WARN([`missing' script is too old or missing])
9781
 
fi
9782
 
])
9783
 
 
9784
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
9785
 
#
9786
 
# This file is free software; the Free Software Foundation
9787
 
# gives unlimited permission to copy and/or distribute it,
9788
 
# with or without modifications, as long as this notice is preserved.
9789
 
 
9790
 
# AM_PROG_MKDIR_P
9791
 
# ---------------
9792
 
# Check for `mkdir -p'.
9793
 
AC_DEFUN([AM_PROG_MKDIR_P],
9794
 
[AC_PREREQ([2.60])dnl
9795
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9796
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9797
 
dnl while keeping a definition of mkdir_p for backward compatibility.
9798
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9799
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9800
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9801
 
dnl adjustment using top_builddir (which is defined more often than
9802
 
dnl MKDIR_P).
9803
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9804
 
case $mkdir_p in
9805
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
9806
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9807
 
esac
9808
 
])
9809
 
 
9810
 
# Helper functions for option handling.                     -*- Autoconf -*-
9811
 
 
9812
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
9813
 
#
9814
 
# This file is free software; the Free Software Foundation
9815
 
# gives unlimited permission to copy and/or distribute it,
9816
 
# with or without modifications, as long as this notice is preserved.
9817
 
 
9818
 
# serial 4
9819
 
 
9820
 
# _AM_MANGLE_OPTION(NAME)
9821
 
# -----------------------
9822
 
AC_DEFUN([_AM_MANGLE_OPTION],
9823
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9824
 
 
9825
 
# _AM_SET_OPTION(NAME)
9826
 
# ------------------------------
9827
 
# Set option NAME.  Presently that only means defining a flag for this option.
9828
 
AC_DEFUN([_AM_SET_OPTION],
9829
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9830
 
 
9831
 
# _AM_SET_OPTIONS(OPTIONS)
9832
 
# ----------------------------------
9833
 
# OPTIONS is a space-separated list of Automake options.
9834
 
AC_DEFUN([_AM_SET_OPTIONS],
9835
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9836
 
 
9837
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9838
 
# -------------------------------------------
9839
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9840
 
AC_DEFUN([_AM_IF_OPTION],
9841
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9842
 
 
9843
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9844
 
 
9845
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9846
 
# Free Software Foundation, Inc.
9847
 
#
9848
 
# This file is free software; the Free Software Foundation
9849
 
# gives unlimited permission to copy and/or distribute it,
9850
 
# with or without modifications, as long as this notice is preserved.
9851
 
 
9852
 
# serial 5
9853
 
 
9854
 
# AM_SANITY_CHECK
9855
 
# ---------------
9856
 
AC_DEFUN([AM_SANITY_CHECK],
9857
 
[AC_MSG_CHECKING([whether build environment is sane])
9858
 
# Just in case
9859
 
sleep 1
9860
 
echo timestamp > conftest.file
9861
 
# Reject unsafe characters in $srcdir or the absolute working directory
9862
 
# name.  Accept space and tab only in the latter.
9863
 
am_lf='
9864
 
'
9865
 
case `pwd` in
9866
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
9867
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
9868
 
esac
9869
 
case $srcdir in
9870
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
9871
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9872
 
esac
9873
 
 
9874
 
# Do `set' in a subshell so we don't clobber the current shell's
9875
 
# arguments.  Must try -L first in case configure is actually a
9876
 
# symlink; some systems play weird games with the mod time of symlinks
9877
 
# (eg FreeBSD returns the mod time of the symlink's containing
9878
 
# directory).
9879
 
if (
9880
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9881
 
   if test "$[*]" = "X"; then
9882
 
      # -L didn't work.
9883
 
      set X `ls -t "$srcdir/configure" conftest.file`
9884
 
   fi
9885
 
   rm -f conftest.file
9886
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
9887
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
9888
 
 
9889
 
      # If neither matched, then we have a broken ls.  This can happen
9890
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9891
 
      # broken ls alias from the environment.  This has actually
9892
 
      # happened.  Such a system could not be considered "sane".
9893
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9894
 
alias in your environment])
9895
 
   fi
9896
 
 
9897
 
   test "$[2]" = conftest.file
9898
 
   )
9899
 
then
9900
 
   # Ok.
9901
 
   :
9902
 
else
9903
 
   AC_MSG_ERROR([newly created file is older than distributed files!
9904
 
Check your system clock])
9905
 
fi
9906
 
AC_MSG_RESULT(yes)])
9907
 
 
9908
 
# Copyright (C) 2009  Free Software Foundation, Inc.
9909
 
#
9910
 
# This file is free software; the Free Software Foundation
9911
 
# gives unlimited permission to copy and/or distribute it,
9912
 
# with or without modifications, as long as this notice is preserved.
9913
 
 
9914
 
# serial 1
9915
 
 
9916
 
# AM_SILENT_RULES([DEFAULT])
9917
 
# --------------------------
9918
 
# Enable less verbose build rules; with the default set to DEFAULT
9919
 
# (`yes' being less verbose, `no' or empty being verbose).
9920
 
AC_DEFUN([AM_SILENT_RULES],
9921
 
[AC_ARG_ENABLE([silent-rules],
9922
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
9923
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
9924
 
case $enable_silent_rules in
9925
 
yes) AM_DEFAULT_VERBOSITY=0;;
9926
 
no)  AM_DEFAULT_VERBOSITY=1;;
9927
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9928
 
esac
9929
 
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9930
 
AM_BACKSLASH='\'
9931
 
AC_SUBST([AM_BACKSLASH])dnl
9932
 
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9933
 
])
9934
 
 
9935
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9936
 
#
9937
 
# This file is free software; the Free Software Foundation
9938
 
# gives unlimited permission to copy and/or distribute it,
9939
 
# with or without modifications, as long as this notice is preserved.
9940
 
 
9941
 
# AM_PROG_INSTALL_STRIP
9942
 
# ---------------------
9943
 
# One issue with vendor `install' (even GNU) is that you can't
9944
 
# specify the program used to strip binaries.  This is especially
9945
 
# annoying in cross-compiling environments, where the build's strip
9946
 
# is unlikely to handle the host's binaries.
9947
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
9948
 
# always use install-sh in `make install-strip', and initialize
9949
 
# STRIPPROG with the value of the STRIP variable (set by the user).
9950
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9951
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9952
 
# Installed binaries are usually stripped using `strip' when the user
9953
 
# run `make install-strip'.  However `strip' might not be the right
9954
 
# tool to use in cross-compilation environments, therefore Automake
9955
 
# will honor the `STRIP' environment variable to overrule this program.
9956
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9957
 
if test "$cross_compiling" != no; then
9958
 
  AC_CHECK_TOOL([STRIP], [strip], :)
9959
 
fi
9960
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9961
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9962
 
 
9963
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
9964
 
#
9965
 
# This file is free software; the Free Software Foundation
9966
 
# gives unlimited permission to copy and/or distribute it,
9967
 
# with or without modifications, as long as this notice is preserved.
9968
 
 
9969
 
# serial 2
9970
 
 
9971
 
# _AM_SUBST_NOTMAKE(VARIABLE)
9972
 
# ---------------------------
9973
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9974
 
# This macro is traced by Automake.
9975
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
9976
 
 
9977
 
# AM_SUBST_NOTMAKE(VARIABLE)
9978
 
# ---------------------------
9979
 
# Public sister of _AM_SUBST_NOTMAKE.
9980
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9981
 
 
9982
 
# Check how to create a tarball.                            -*- Autoconf -*-
9983
 
 
9984
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
9985
 
#
9986
 
# This file is free software; the Free Software Foundation
9987
 
# gives unlimited permission to copy and/or distribute it,
9988
 
# with or without modifications, as long as this notice is preserved.
9989
 
 
9990
 
# serial 2
9991
 
 
9992
 
# _AM_PROG_TAR(FORMAT)
9993
 
# --------------------
9994
 
# Check how to create a tarball in format FORMAT.
9995
 
# FORMAT should be one of `v7', `ustar', or `pax'.
9996
 
#
9997
 
# Substitute a variable $(am__tar) that is a command
9998
 
# writing to stdout a FORMAT-tarball containing the directory
9999
 
# $tardir.
10000
 
#     tardir=directory && $(am__tar) > result.tar
10001
 
#
10002
 
# Substitute a variable $(am__untar) that extract such
10003
 
# a tarball read from stdin.
10004
 
#     $(am__untar) < result.tar
10005
 
AC_DEFUN([_AM_PROG_TAR],
10006
 
[# Always define AMTAR for backward compatibility.
10007
 
AM_MISSING_PROG([AMTAR], [tar])
10008
 
m4_if([$1], [v7],
10009
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10010
 
     [m4_case([$1], [ustar],, [pax],,
10011
 
              [m4_fatal([Unknown tar format])])
10012
 
AC_MSG_CHECKING([how to create a $1 tar archive])
10013
 
# Loop over all known methods to create a tar archive until one works.
10014
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10015
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10016
 
# Do not fold the above two line into one, because Tru64 sh and
10017
 
# Solaris sh will not grok spaces in the rhs of `-'.
10018
 
for _am_tool in $_am_tools
10019
 
do
10020
 
  case $_am_tool in
10021
 
  gnutar)
10022
 
    for _am_tar in tar gnutar gtar;
10023
 
    do
10024
 
      AM_RUN_LOG([$_am_tar --version]) && break
10025
 
    done
10026
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10027
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10028
 
    am__untar="$_am_tar -xf -"
10029
 
    ;;
10030
 
  plaintar)
10031
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
10032
 
    # ustar tarball either.
10033
 
    (tar --version) >/dev/null 2>&1 && continue
10034
 
    am__tar='tar chf - "$$tardir"'
10035
 
    am__tar_='tar chf - "$tardir"'
10036
 
    am__untar='tar xf -'
10037
 
    ;;
10038
 
  pax)
10039
 
    am__tar='pax -L -x $1 -w "$$tardir"'
10040
 
    am__tar_='pax -L -x $1 -w "$tardir"'
10041
 
    am__untar='pax -r'
10042
 
    ;;
10043
 
  cpio)
10044
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10045
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10046
 
    am__untar='cpio -i -H $1 -d'
10047
 
    ;;
10048
 
  none)
10049
 
    am__tar=false
10050
 
    am__tar_=false
10051
 
    am__untar=false
10052
 
    ;;
10053
 
  esac
10054
 
 
10055
 
  # If the value was cached, stop now.  We just wanted to have am__tar
10056
 
  # and am__untar set.
10057
 
  test -n "${am_cv_prog_tar_$1}" && break
10058
 
 
10059
 
  # tar/untar a dummy directory, and stop if the command works
10060
 
  rm -rf conftest.dir
10061
 
  mkdir conftest.dir
10062
 
  echo GrepMe > conftest.dir/file
10063
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10064
 
  rm -rf conftest.dir
10065
 
  if test -s conftest.tar; then
10066
 
    AM_RUN_LOG([$am__untar <conftest.tar])
10067
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10068
 
  fi
10069
 
done
10070
 
rm -rf conftest.dir
10071
 
 
10072
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10073
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10074
 
AC_SUBST([am__tar])
10075
 
AC_SUBST([am__untar])
10076
 
]) # _AM_PROG_TAR
 
10041
# deprecated macros
 
10042
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
10043
# A hint is needed for aclocal from Automake <= 1.9.4:
 
10044
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
10045
 
10077
10046