~darkxst/ubuntu/quantal/gnome-shell/lp1128804

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2012-10-09 20:42:33 UTC
  • mfrom: (57.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121009204233-chcl8989muuzfpws
Tags: 3.6.0-0ubuntu3
* debian/patches/ubuntu-lightdm-user-switching.patch
  - Fix user switching when running lightdm.  LP: #1064269
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.5 -*- Autoconf -*-
2
 
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
 
# Inc.
 
1
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
4
 
6
5
# This file is free software; the Free Software Foundation
7
6
# gives unlimited permission to copy and/or distribute it,
8
7
# with or without modifications, as long as this notice is preserved.
18
17
[m4_warning([this file was generated for autoconf 2.69.
19
18
You have another version of autoconf.  It may work, but is not guaranteed to.
20
19
If you have problems, you may need to regenerate the build system entirely.
21
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
20
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
21
 
23
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
24
 
# Foundation, Inc.
 
22
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
25
23
#
26
24
# This file is free software; the Free Software Foundation
27
25
# gives unlimited permission to copy and/or distribute it,
28
26
# with or without modifications, as long as this notice is preserved.
29
27
 
30
 
# serial 1
 
28
# serial 8
31
29
 
32
30
# AM_AUTOMAKE_VERSION(VERSION)
33
31
# ----------------------------
35
33
# generated from the m4 files accompanying Automake X.Y.
36
34
# (This private macro should not be called outside this file.)
37
35
AC_DEFUN([AM_AUTOMAKE_VERSION],
38
 
[am__api_version='1.11'
 
36
[am__api_version='1.12'
39
37
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
40
38
dnl require some minimum version.  Point them to the right macro.
41
 
m4_if([$1], [1.11.5], [],
 
39
m4_if([$1], [1.12.2], [],
42
40
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
43
41
])
44
42
 
54
52
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
55
53
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
56
54
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
57
 
[AM_AUTOMAKE_VERSION([1.11.5])dnl
 
55
[AM_AUTOMAKE_VERSION([1.12.2])dnl
58
56
m4_ifndef([AC_AUTOCONF_VERSION],
59
57
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
60
58
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
61
59
 
62
60
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
63
61
 
64
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
62
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
65
63
#
66
64
# This file is free software; the Free Software Foundation
67
65
# gives unlimited permission to copy and/or distribute it,
68
66
# with or without modifications, as long as this notice is preserved.
69
67
 
70
 
# serial 1
 
68
# serial 2
71
69
 
72
70
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
73
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
74
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
71
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
72
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
75
73
#
76
74
# Of course, Automake must honor this variable whenever it calls a
77
75
# tool from the auxiliary directory.  The problem is that $srcdir (and
90
88
#
91
89
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
92
90
# are both prefixed by $srcdir.  In an in-source build this is usually
93
 
# harmless because $srcdir is `.', but things will broke when you
 
91
# harmless because $srcdir is '.', but things will broke when you
94
92
# start a VPATH build or use an absolute $srcdir.
95
93
#
96
94
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
116
114
 
117
115
# AM_CONDITIONAL                                            -*- Autoconf -*-
118
116
 
119
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
120
 
# Free Software Foundation, Inc.
 
117
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
121
118
#
122
119
# This file is free software; the Free Software Foundation
123
120
# gives unlimited permission to copy and/or distribute it,
124
121
# with or without modifications, as long as this notice is preserved.
125
122
 
126
 
# serial 9
 
123
# serial 10
127
124
 
128
125
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
129
126
# -------------------------------------
130
127
# Define a conditional.
131
128
AC_DEFUN([AM_CONDITIONAL],
132
 
[AC_PREREQ(2.52)dnl
133
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
134
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
129
[AC_PREREQ([2.52])dnl
 
130
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
131
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
135
132
AC_SUBST([$1_TRUE])dnl
136
133
AC_SUBST([$1_FALSE])dnl
137
134
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
150
147
Usually this means the macro was only invoked conditionally.]])
151
148
fi])])
152
149
 
153
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
154
 
# 2010, 2011 Free Software Foundation, Inc.
 
150
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
155
151
#
156
152
# This file is free software; the Free Software Foundation
157
153
# gives unlimited permission to copy and/or distribute it,
158
154
# with or without modifications, as long as this notice is preserved.
159
155
 
160
 
# serial 12
 
156
# serial 17
161
157
 
162
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
158
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
163
159
# written in clear, in which case automake, when reading aclocal.m4,
164
160
# will think it sees a *use*, and therefore will trigger all it's
165
161
# C support machinery.  Also note that it means that autoscan, seeing
169
165
# _AM_DEPENDENCIES(NAME)
170
166
# ----------------------
171
167
# See how the compiler implements dependency checking.
172
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
168
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
173
169
# We try a few techniques and use that to set a single cache variable.
174
170
#
175
171
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
182
178
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
183
179
AC_REQUIRE([AM_DEP_TRACK])dnl
184
180
 
185
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
186
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
187
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
188
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
189
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
190
 
                   [depcc="$$1"   am_compiler_list=])
 
181
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
182
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
183
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
184
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
185
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
186
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
187
                    [depcc="$$1"   am_compiler_list=])
191
188
 
192
189
AC_CACHE_CHECK([dependency style of $depcc],
193
190
               [am_cv_$1_dependencies_compiler_type],
195
192
  # We make a subdir and do the tests there.  Otherwise we can end up
196
193
  # making bogus files that we don't know about and never remove.  For
197
194
  # instance it was reported that on HP-UX the gcc test will end up
198
 
  # making a dummy file named `D' -- because `-MD' means `put the output
199
 
  # in D'.
 
195
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
196
  # in D".
200
197
  rm -rf conftest.dir
201
198
  mkdir conftest.dir
202
199
  # Copy depcomp to subdir because otherwise we won't find it if we're
236
233
    : > sub/conftest.c
237
234
    for i in 1 2 3 4 5 6; do
238
235
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
239
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
240
 
      # Solaris 8's {/usr,}/bin/sh.
241
 
      touch sub/conftst$i.h
 
236
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
237
      # Solaris 10 /bin/sh.
 
238
      echo '/* dummy */' > sub/conftst$i.h
242
239
    done
243
240
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
244
241
 
245
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
242
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
246
243
    # mode.  It turns out that the SunPro C++ compiler does not properly
247
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
248
 
    # versions had trouble with output in subdirs
 
244
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
245
    # versions had trouble with output in subdirs.
249
246
    am__obj=sub/conftest.${OBJEXT-o}
250
247
    am__minus_obj="-o $am__obj"
251
248
    case $depmode in
254
251
      test "$am__universal" = false || continue
255
252
      ;;
256
253
    nosideeffect)
257
 
      # after this tag, mechanisms are not by side-effect, so they'll
258
 
      # only be used when explicitly requested
 
254
      # After this tag, mechanisms are not by side-effect, so they'll
 
255
      # only be used when explicitly requested.
259
256
      if test "x$enable_dependency_tracking" = xyes; then
260
257
        continue
261
258
      else
263
260
      fi
264
261
      ;;
265
262
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
266
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
263
      # This compiler won't grok '-c -o', but also, the minuso test has
267
264
      # not run yet.  These depmodes are late enough in the game, and
268
265
      # so weak that their functioning should not be impacted.
269
266
      am__obj=conftest.${OBJEXT-o}
311
308
# AM_SET_DEPDIR
312
309
# -------------
313
310
# Choose a directory name for dependency files.
314
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
311
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
315
312
AC_DEFUN([AM_SET_DEPDIR],
316
313
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
317
314
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
321
318
# AM_DEP_TRACK
322
319
# ------------
323
320
AC_DEFUN([AM_DEP_TRACK],
324
 
[AC_ARG_ENABLE(dependency-tracking,
325
 
[  --disable-dependency-tracking  speeds up one-time build
326
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
321
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
322
AS_HELP_STRING(
 
323
  [--enable-dependency-tracking],
 
324
  [do not reject slow dependency extractors])
 
325
AS_HELP_STRING(
 
326
  [--disable-dependency-tracking],
 
327
  [speeds up one-time build])])
327
328
if test "x$enable_dependency_tracking" != xno; then
328
329
  am_depcomp="$ac_aux_dir/depcomp"
329
330
  AMDEPBACKSLASH='\'
338
339
 
339
340
# Generate code to set up dependency tracking.              -*- Autoconf -*-
340
341
 
341
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
342
 
# Free Software Foundation, Inc.
 
342
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
343
343
#
344
344
# This file is free software; the Free Software Foundation
345
345
# gives unlimited permission to copy and/or distribute it,
346
346
# with or without modifications, as long as this notice is preserved.
347
347
 
348
 
#serial 5
 
348
# serial 6
349
349
 
350
350
# _AM_OUTPUT_DEPENDENCY_COMMANDS
351
351
# ------------------------------
364
364
    # Strip MF so we end up with the name of the file.
365
365
    mf=`echo "$mf" | sed -e 's/:.*$//'`
366
366
    # Check whether this is an Automake generated Makefile or not.
367
 
    # We used to match only the files named `Makefile.in', but
 
367
    # We used to match only the files named 'Makefile.in', but
368
368
    # some people rename them; so instead we look at the file content.
369
369
    # Grep'ing the first line is not enough: some people post-process
370
370
    # each Makefile.in and add a new line on top of each file to say so.
376
376
      continue
377
377
    fi
378
378
    # Extract the definition of DEPDIR, am__include, and am__quote
379
 
    # from the Makefile without running `make'.
 
379
    # from the Makefile without running 'make'.
380
380
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
381
381
    test -z "$DEPDIR" && continue
382
382
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
383
383
    test -z "am__include" && continue
384
384
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
385
 
    # When using ansi2knr, U may be empty or an underscore; expand it
386
 
    U=`sed -n 's/^U = //p' < "$mf"`
387
385
    # Find all dependency output files, they are included files with
388
386
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
389
387
    # simplest approach to changing $(DEPDIR) to its actual value in the
390
388
    # expansion.
391
389
    for file in `sed -n "
392
390
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
393
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
391
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
394
392
      # Make sure the directory exists.
395
393
      test -f "$dirpart/$file" && continue
396
394
      fdir=`AS_DIRNAME(["$file"])`
408
406
# This macro should only be invoked once -- use via AC_REQUIRE.
409
407
#
410
408
# This code is only required when automatic dependency tracking
411
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
409
# is enabled.  FIXME.  This creates each '.P' file that we will
412
410
# need in order to bootstrap the dependency handling code.
413
411
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
414
412
[AC_CONFIG_COMMANDS([depfiles],
418
416
 
419
417
# Do all the work for Automake.                             -*- Autoconf -*-
420
418
 
421
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
422
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
419
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
423
420
#
424
421
# This file is free software; the Free Software Foundation
425
422
# gives unlimited permission to copy and/or distribute it,
426
423
# with or without modifications, as long as this notice is preserved.
427
424
 
428
 
# serial 16
 
425
# serial 19
429
426
 
430
427
# This macro actually does too much.  Some checks are only needed if
431
428
# your package does certain things.  But this isn't really a big deal.
471
468
# Define the identity of the package.
472
469
dnl Distinguish between old-style and new-style calls.
473
470
m4_ifval([$2],
474
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
471
[AC_DIAGNOSE([obsolete],
 
472
[$0: two- and three-arguments forms are deprecated.  For more info, see:
 
473
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
474
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
475
475
 AC_SUBST([PACKAGE], [$1])dnl
476
476
 AC_SUBST([VERSION], [$2])],
477
477
[_AM_SET_OPTIONS([$1])dnl
478
478
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
479
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
479
m4_if(
 
480
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
481
  [ok:ok],,
480
482
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
481
483
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
482
484
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
483
485
 
484
486
_AM_IF_OPTION([no-define],,
485
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
486
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
487
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
488
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
487
489
 
488
490
# Some tools Automake needs.
489
491
AC_REQUIRE([AM_SANITY_CHECK])dnl
490
492
AC_REQUIRE([AC_ARG_PROGRAM])dnl
491
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
492
 
AM_MISSING_PROG(AUTOCONF, autoconf)
493
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
494
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
495
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
493
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
494
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
495
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
496
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
497
AM_MISSING_PROG([MAKEINFO], [makeinfo])
496
498
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
497
499
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
498
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
500
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
501
# For better backward compatibility.  To be removed once Automake 1.9.x
 
502
# dies out for good.  For more background, see:
 
503
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
504
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
505
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
499
506
# We need awk for the "check" target.  The system "awk" is bad on
500
507
# some platforms.
501
508
AC_REQUIRE([AC_PROG_AWK])dnl
506
513
                             [_AM_PROG_TAR([v7])])])
507
514
_AM_IF_OPTION([no-dependencies],,
508
515
[AC_PROVIDE_IFELSE([AC_PROG_CC],
509
 
                  [_AM_DEPENDENCIES(CC)],
510
 
                  [define([AC_PROG_CC],
511
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
516
                  [_AM_DEPENDENCIES([CC])],
 
517
                  [m4_define([AC_PROG_CC],
 
518
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
512
519
AC_PROVIDE_IFELSE([AC_PROG_CXX],
513
 
                  [_AM_DEPENDENCIES(CXX)],
514
 
                  [define([AC_PROG_CXX],
515
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
520
                  [_AM_DEPENDENCIES([CXX])],
 
521
                  [m4_define([AC_PROG_CXX],
 
522
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
516
523
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
517
 
                  [_AM_DEPENDENCIES(OBJC)],
518
 
                  [define([AC_PROG_OBJC],
519
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
524
                  [_AM_DEPENDENCIES([OBJC])],
 
525
                  [m4_define([AC_PROG_OBJC],
 
526
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
527
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
 
528
dnl but we still cater to Autoconf 2.62.
 
529
m4_ifdef([AC_PROG_OBJCXX],
 
530
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
531
                  [_AM_DEPENDENCIES([OBJCXX])],
 
532
                  [m4_define([AC_PROG_OBJCXX],
 
533
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
520
534
])
521
535
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
522
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
523
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
536
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
 
537
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
524
538
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
525
539
AC_CONFIG_COMMANDS_PRE(dnl
526
540
[m4_provide_if([_AM_COMPILER_EXEEXT],
527
541
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
528
542
])
529
543
 
530
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
544
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
531
545
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
532
546
dnl mangled by Autoconf and run in a shell conditional statement.
533
547
m4_define([_AC_COMPILER_EXEEXT],
555
569
done
556
570
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
557
571
 
558
 
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
559
 
# Inc.
 
572
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
560
573
#
561
574
# This file is free software; the Free Software Foundation
562
575
# gives unlimited permission to copy and/or distribute it,
563
576
# with or without modifications, as long as this notice is preserved.
564
577
 
565
 
# serial 1
 
578
# serial 8
566
579
 
567
580
# AM_PROG_INSTALL_SH
568
581
# ------------------
577
590
    install_sh="\${SHELL} $am_aux_dir/install-sh"
578
591
  esac
579
592
fi
580
 
AC_SUBST(install_sh)])
 
593
AC_SUBST([install_sh])])
581
594
 
582
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
595
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
583
596
#
584
597
# This file is free software; the Free Software Foundation
585
598
# gives unlimited permission to copy and/or distribute it,
603
616
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
604
617
# From Jim Meyering
605
618
 
606
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
607
 
# 2011 Free Software Foundation, Inc.
 
619
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
608
620
#
609
621
# This file is free software; the Free Software Foundation
610
622
# gives unlimited permission to copy and/or distribute it,
611
623
# with or without modifications, as long as this notice is preserved.
612
624
 
613
 
# serial 5
 
625
# serial 7
614
626
 
615
627
# AM_MAINTAINER_MODE([DEFAULT-MODE])
616
628
# ----------------------------------
617
629
# Control maintainer-specific portions of Makefiles.
618
 
# Default is to disable them, unless `enable' is passed literally.
619
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
630
# Default is to disable them, unless 'enable' is passed literally.
 
631
# For symmetry, 'disable' may be passed as well.  Anyway, the user
620
632
# can override the default with the --enable/--disable switch.
621
633
AC_DEFUN([AM_MAINTAINER_MODE],
622
634
[m4_case(m4_default([$1], [disable]),
627
639
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
628
640
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
629
641
  AC_ARG_ENABLE([maintainer-mode],
630
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
631
 
                          (and sometimes confusing) to the casual installer],
632
 
      [USE_MAINTAINER_MODE=$enableval],
633
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
642
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
 
643
      am_maintainer_other[ make rules and dependencies not useful
 
644
      (and sometimes confusing) to the casual installer])],
 
645
    [USE_MAINTAINER_MODE=$enableval],
 
646
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
634
647
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
635
648
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
636
649
  MAINT=$MAINTAINER_MODE_TRUE
642
655
 
643
656
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
644
657
 
645
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
658
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
646
659
#
647
660
# This file is free software; the Free Software Foundation
648
661
# gives unlimited permission to copy and/or distribute it,
649
662
# with or without modifications, as long as this notice is preserved.
650
663
 
651
 
# serial 4
 
664
# serial 5
652
665
 
653
666
# AM_MAKE_INCLUDE()
654
667
# -----------------
667
680
_am_result=none
668
681
# First try GNU make style include.
669
682
echo "include confinc" > confmf
670
 
# Ignore all kinds of additional output from `make'.
 
683
# Ignore all kinds of additional output from 'make'.
671
684
case `$am_make -s -f confmf 2> /dev/null` in #(
672
685
*the\ am__doit\ target*)
673
686
  am__include=include
692
705
rm -f confinc confmf
693
706
])
694
707
 
695
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
696
 
# Free Software Foundation, Inc.
 
708
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
697
709
#
698
710
# This file is free software; the Free Software Foundation
699
711
# gives unlimited permission to copy and/or distribute it,
729
741
 
730
742
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
731
743
 
732
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
733
 
# Free Software Foundation, Inc.
 
744
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
734
745
#
735
746
# This file is free software; the Free Software Foundation
736
747
# gives unlimited permission to copy and/or distribute it,
737
748
# with or without modifications, as long as this notice is preserved.
738
749
 
739
 
# serial 6
 
750
# serial 7
740
751
 
741
752
# AM_MISSING_PROG(NAME, PROGRAM)
742
753
# ------------------------------
766
777
  am_missing_run="$MISSING --run "
767
778
else
768
779
  am_missing_run=
769
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
780
  AC_MSG_WARN(['missing' script is too old or missing])
770
781
fi
771
782
])
772
783
 
773
 
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
774
 
# Inc.
 
784
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
775
785
#
776
786
# This file is free software; the Free Software Foundation
777
787
# gives unlimited permission to copy and/or distribute it,
778
788
# with or without modifications, as long as this notice is preserved.
779
789
 
780
 
# serial 1
 
790
# serial 3
781
791
 
782
792
# AM_PROG_MKDIR_P
783
793
# ---------------
784
 
# Check for `mkdir -p'.
 
794
# Check for 'mkdir -p'.
785
795
AC_DEFUN([AM_PROG_MKDIR_P],
786
796
[AC_PREREQ([2.60])dnl
787
797
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
798
dnl FIXME to be removed in Automake 1.13.
 
799
AC_DIAGNOSE([obsolete],
 
800
[$0: this macro is deprecated, and will soon be removed.
 
801
You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
 
802
and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.])
788
803
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
789
804
dnl while keeping a definition of mkdir_p for backward compatibility.
790
805
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
801
816
 
802
817
# Helper functions for option handling.                     -*- Autoconf -*-
803
818
 
804
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
805
 
# Foundation, Inc.
 
819
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
806
820
#
807
821
# This file is free software; the Free Software Foundation
808
822
# gives unlimited permission to copy and/or distribute it,
809
823
# with or without modifications, as long as this notice is preserved.
810
824
 
811
 
# serial 5
 
825
# serial 6
812
826
 
813
827
# _AM_MANGLE_OPTION(NAME)
814
828
# -----------------------
819
833
# --------------------
820
834
# Set option NAME.  Presently that only means defining a flag for this option.
821
835
AC_DEFUN([_AM_SET_OPTION],
822
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
836
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
823
837
 
824
838
# _AM_SET_OPTIONS(OPTIONS)
825
839
# ------------------------
833
847
AC_DEFUN([_AM_IF_OPTION],
834
848
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
835
849
 
836
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
837
 
# 2011 Free Software Foundation, Inc.
 
850
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
838
851
#
839
852
# This file is free software; the Free Software Foundation
840
853
# gives unlimited permission to copy and/or distribute it,
841
854
# with or without modifications, as long as this notice is preserved.
842
855
 
843
 
# serial 2
 
856
# serial 9
844
857
 
845
858
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
846
859
# ---------------------------------------------------------------------------
885
898
    dnl A version check is needed.
886
899
    if test -n "$PYTHON"; then
887
900
      # If the user set $PYTHON, use it and don't search something else.
888
 
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
 
901
      AC_MSG_CHECKING([whether $PYTHON version is >= $1])
889
902
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
890
 
                              [AC_MSG_RESULT(yes)],
891
 
                              [AC_MSG_ERROR(too old)])
 
903
                              [AC_MSG_RESULT([yes])],
 
904
                              [AC_MSG_RESULT([no])
 
905
                               AC_MSG_ERROR([Python interpreter is too old])])
892
906
      am_display_PYTHON=$PYTHON
893
907
    else
894
908
      # Otherwise, try each interpreter until we find one that satisfies
1036
1050
sys.exit(sys.hexversion < minverhex)"
1037
1051
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1038
1052
 
1039
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1053
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
1040
1054
#
1041
1055
# This file is free software; the Free Software Foundation
1042
1056
# gives unlimited permission to copy and/or distribute it,
1057
1071
 
1058
1072
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1059
1073
 
1060
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1061
 
# Free Software Foundation, Inc.
 
1074
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
1062
1075
#
1063
1076
# This file is free software; the Free Software Foundation
1064
1077
# gives unlimited permission to copy and/or distribute it,
1065
1078
# with or without modifications, as long as this notice is preserved.
1066
1079
 
1067
 
# serial 5
 
1080
# serial 9
1068
1081
 
1069
1082
# AM_SANITY_CHECK
1070
1083
# ---------------
1071
1084
AC_DEFUN([AM_SANITY_CHECK],
1072
1085
[AC_MSG_CHECKING([whether build environment is sane])
1073
 
# Just in case
1074
 
sleep 1
1075
 
echo timestamp > conftest.file
1076
1086
# Reject unsafe characters in $srcdir or the absolute working directory
1077
1087
# name.  Accept space and tab only in the latter.
1078
1088
am_lf='
1083
1093
esac
1084
1094
case $srcdir in
1085
1095
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1086
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1096
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1087
1097
esac
1088
1098
 
1089
 
# Do `set' in a subshell so we don't clobber the current shell's
 
1099
# Do 'set' in a subshell so we don't clobber the current shell's
1090
1100
# arguments.  Must try -L first in case configure is actually a
1091
1101
# symlink; some systems play weird games with the mod time of symlinks
1092
1102
# (eg FreeBSD returns the mod time of the symlink's containing
1093
1103
# directory).
1094
1104
if (
1095
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1096
 
   if test "$[*]" = "X"; then
1097
 
      # -L didn't work.
1098
 
      set X `ls -t "$srcdir/configure" conftest.file`
1099
 
   fi
1100
 
   rm -f conftest.file
1101
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1102
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
1103
 
 
1104
 
      # If neither matched, then we have a broken ls.  This can happen
1105
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1106
 
      # broken ls alias from the environment.  This has actually
1107
 
      # happened.  Such a system could not be considered "sane".
1108
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1109
 
alias in your environment])
1110
 
   fi
1111
 
 
 
1105
   am_has_slept=no
 
1106
   for am_try in 1 2; do
 
1107
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
1108
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1109
     if test "$[*]" = "X"; then
 
1110
        # -L didn't work.
 
1111
        set X `ls -t "$srcdir/configure" conftest.file`
 
1112
     fi
 
1113
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1114
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1115
 
 
1116
        # If neither matched, then we have a broken ls.  This can happen
 
1117
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1118
        # broken ls alias from the environment.  This has actually
 
1119
        # happened.  Such a system could not be considered "sane".
 
1120
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1121
  alias in your environment])
 
1122
     fi
 
1123
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
1124
       break
 
1125
     fi
 
1126
     # Just in case.
 
1127
     sleep 1
 
1128
     am_has_slept=yes
 
1129
   done
1112
1130
   test "$[2]" = conftest.file
1113
1131
   )
1114
1132
then
1118
1136
   AC_MSG_ERROR([newly created file is older than distributed files!
1119
1137
Check your system clock])
1120
1138
fi
1121
 
AC_MSG_RESULT(yes)])
 
1139
AC_MSG_RESULT([yes])
 
1140
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
1141
# generated files are strictly newer.
 
1142
am_sleep_pid=
 
1143
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
1144
  ( sleep 1 ) &
 
1145
  am_sleep_pid=$!
 
1146
fi
 
1147
AC_CONFIG_COMMANDS_PRE(
 
1148
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
1149
   if test -n "$am_sleep_pid"; then
 
1150
     # Hide warnings about reused PIDs.
 
1151
     wait $am_sleep_pid 2>/dev/null
 
1152
   fi
 
1153
   AC_MSG_RESULT([done])])
 
1154
rm -f conftest.file
 
1155
])
1122
1156
 
1123
 
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
1157
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
1124
1158
#
1125
1159
# This file is free software; the Free Software Foundation
1126
1160
# gives unlimited permission to copy and/or distribute it,
1127
1161
# with or without modifications, as long as this notice is preserved.
1128
1162
 
1129
 
# serial 2
 
1163
# serial 3
1130
1164
 
1131
1165
# AM_SILENT_RULES([DEFAULT])
1132
1166
# --------------------------
1133
1167
# Enable less verbose build rules; with the default set to DEFAULT
1134
 
# (`yes' being less verbose, `no' or empty being verbose).
 
1168
# ("yes" being less verbose, "no" or empty being verbose).
1135
1169
AC_DEFUN([AM_SILENT_RULES],
1136
 
[AC_ARG_ENABLE([silent-rules],
1137
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
1138
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
1139
 
case $enable_silent_rules in
1140
 
yes) AM_DEFAULT_VERBOSITY=0;;
1141
 
no)  AM_DEFAULT_VERBOSITY=1;;
1142
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1170
[AC_ARG_ENABLE([silent-rules], [dnl
 
1171
AS_HELP_STRING(
 
1172
  [--enable-silent-rules],
 
1173
  [less verbose build output (undo: "make V=1")])
 
1174
AS_HELP_STRING(
 
1175
  [--disable-silent-rules],
 
1176
  [verbose build output (undo: "make V=0")])dnl
 
1177
])
 
1178
case $enable_silent_rules in @%:@ (((
 
1179
  yes) AM_DEFAULT_VERBOSITY=0;;
 
1180
   no) AM_DEFAULT_VERBOSITY=1;;
 
1181
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1143
1182
esac
1144
1183
dnl
1145
 
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
1184
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1146
1185
dnl do not support nested variable expansions.
1147
1186
dnl See automake bug#9928 and bug#10237.
1148
1187
am_make=${MAKE-make}
1160
1199
  am_cv_make_support_nested_variables=no
1161
1200
fi])
1162
1201
if test $am_cv_make_support_nested_variables = yes; then
1163
 
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
1202
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1164
1203
  AM_V='$(V)'
1165
1204
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1166
1205
else
1177
1216
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1178
1217
])
1179
1218
 
1180
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1219
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
1181
1220
#
1182
1221
# This file is free software; the Free Software Foundation
1183
1222
# gives unlimited permission to copy and/or distribute it,
1184
1223
# with or without modifications, as long as this notice is preserved.
1185
1224
 
1186
 
# serial 1
 
1225
# serial 2
1187
1226
 
1188
1227
# AM_PROG_INSTALL_STRIP
1189
1228
# ---------------------
1190
 
# One issue with vendor `install' (even GNU) is that you can't
 
1229
# One issue with vendor 'install' (even GNU) is that you can't
1191
1230
# specify the program used to strip binaries.  This is especially
1192
1231
# annoying in cross-compiling environments, where the build's strip
1193
1232
# is unlikely to handle the host's binaries.
1194
1233
# Fortunately install-sh will honor a STRIPPROG variable, so we
1195
 
# always use install-sh in `make install-strip', and initialize
 
1234
# always use install-sh in "make install-strip", and initialize
1196
1235
# STRIPPROG with the value of the STRIP variable (set by the user).
1197
1236
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1198
1237
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1199
 
# Installed binaries are usually stripped using `strip' when the user
1200
 
# run `make install-strip'.  However `strip' might not be the right
 
1238
# Installed binaries are usually stripped using 'strip' when the user
 
1239
# run "make install-strip".  However 'strip' might not be the right
1201
1240
# tool to use in cross-compilation environments, therefore Automake
1202
 
# will honor the `STRIP' environment variable to overrule this program.
1203
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1241
# will honor the 'STRIP' environment variable to overrule this program.
 
1242
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1204
1243
if test "$cross_compiling" != no; then
1205
1244
  AC_CHECK_TOOL([STRIP], [strip], :)
1206
1245
fi
1207
1246
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1208
1247
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1209
1248
 
1210
 
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
1249
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
1211
1250
#
1212
1251
# This file is free software; the Free Software Foundation
1213
1252
# gives unlimited permission to copy and/or distribute it,
1228
1267
 
1229
1268
# Check how to create a tarball.                            -*- Autoconf -*-
1230
1269
 
1231
 
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
1270
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
1232
1271
#
1233
1272
# This file is free software; the Free Software Foundation
1234
1273
# gives unlimited permission to copy and/or distribute it,
1235
1274
# with or without modifications, as long as this notice is preserved.
1236
1275
 
1237
 
# serial 2
 
1276
# serial 3
1238
1277
 
1239
1278
# _AM_PROG_TAR(FORMAT)
1240
1279
# --------------------
1241
1280
# Check how to create a tarball in format FORMAT.
1242
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1281
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1243
1282
#
1244
1283
# Substitute a variable $(am__tar) that is a command
1245
1284
# writing to stdout a FORMAT-tarball containing the directory
1262
1301
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1263
1302
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1264
1303
# Do not fold the above two line into one, because Tru64 sh and
1265
 
# Solaris sh will not grok spaces in the rhs of `-'.
 
1304
# Solaris sh will not grok spaces in the rhs of '-'.
1266
1305
for _am_tool in $_am_tools
1267
1306
do
1268
1307
  case $_am_tool in
1483
1522
fi[]dnl
1484
1523
])# PKG_CHECK_MODULES
1485
1524
 
 
1525
 
 
1526
# PKG_INSTALLDIR(DIRECTORY)
 
1527
# -------------------------
 
1528
# Substitutes the variable pkgconfigdir as the location where a module
 
1529
# should install pkg-config .pc files. By default the directory is
 
1530
# $libdir/pkgconfig, but the default can be changed by passing
 
1531
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
1532
# parameter.
 
1533
AC_DEFUN([PKG_INSTALLDIR],
 
1534
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
1535
m4_pushdef([pkg_description],
 
1536
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
1537
AC_ARG_WITH([pkgconfigdir],
 
1538
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
1539
    [with_pkgconfigdir=]pkg_default)
 
1540
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
1541
m4_popdef([pkg_default])
 
1542
m4_popdef([pkg_description])
 
1543
]) dnl PKG_INSTALLDIR
 
1544
 
 
1545
 
 
1546
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
1547
# -------------------------
 
1548
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
1549
# module should install arch-independent pkg-config .pc files. By
 
1550
# default the directory is $datadir/pkgconfig, but the default can be
 
1551
# changed by passing DIRECTORY. The user can override through the
 
1552
# --with-noarch-pkgconfigdir parameter.
 
1553
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
1554
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
1555
m4_pushdef([pkg_description],
 
1556
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
1557
AC_ARG_WITH([noarch-pkgconfigdir],
 
1558
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
1559
    [with_noarch_pkgconfigdir=]pkg_default)
 
1560
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
1561
m4_popdef([pkg_default])
 
1562
m4_popdef([pkg_description])
 
1563
]) dnl PKG_NOARCH_INSTALLDIR
 
1564
 
1486
1565
# Configure paths for GLIB
1487
1566
# Owen Taylor     1997-2001
1488
1567