~ubuntu-branches/ubuntu/hardy/gnome-applets/hardy-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-03-10 10:20:15 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20080310102015-d46428z4vws97he8
Tags: 2.22.0-0ubuntu1
* New upstream version
* debian/control.in:
  - updated gnome-settings-daemon build depends
* debian/patches/16_correct_keyboard_accessibility.patch:
  - dropped, fixed in the new version
* debian/patches/98_autoreconf.patch:
  - new version update
* debian/patches/99_ltmain_as-needed.patch:
  - new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_if(m4_PACKAGE_VERSION, [2.60],,
 
15
[m4_fatal([this file was generated for autoconf 2.60.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
 
19
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
20
#
 
21
# This file is free software; the Free Software Foundation
 
22
# gives unlimited permission to copy and/or distribute it,
 
23
# with or without modifications, as long as this notice is preserved.
 
24
 
 
25
# AM_AUTOMAKE_VERSION(VERSION)
 
26
# ----------------------------
 
27
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
28
# generated from the m4 files accompanying Automake X.Y.
 
29
# (This private macro should not be called outside this file.)
 
30
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
31
[am__api_version='1.10'
 
32
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
33
dnl require some minimum version.  Point them to the right macro.
 
34
m4_if([$1], [1.10], [],
 
35
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
36
])
 
37
 
 
38
# _AM_AUTOCONF_VERSION(VERSION)
 
39
# -----------------------------
 
40
# aclocal traces this macro to find the Autoconf version.
 
41
# This is a private macro too.  Using m4_define simplifies
 
42
# the logic in aclocal, which can simply ignore this definition.
 
43
m4_define([_AM_AUTOCONF_VERSION], [])
 
44
 
 
45
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
46
# -------------------------------
 
47
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
48
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
49
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
50
[AM_AUTOMAKE_VERSION([1.10])dnl
 
51
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
52
 
 
53
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
54
 
 
55
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
56
#
 
57
# This file is free software; the Free Software Foundation
 
58
# gives unlimited permission to copy and/or distribute it,
 
59
# with or without modifications, as long as this notice is preserved.
 
60
 
 
61
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
62
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
63
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
64
#
 
65
# Of course, Automake must honor this variable whenever it calls a
 
66
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
67
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
68
# depending on how configure is run.  This is pretty annoying, since
 
69
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
70
# source directory, any form will work fine, but in subdirectories a
 
71
# relative path needs to be adjusted first.
 
72
#
 
73
# $ac_aux_dir/missing
 
74
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
75
# $top_srcdir/$ac_aux_dir/missing
 
76
#    fails if $ac_aux_dir is absolute,
 
77
#    fails when called from a subdirectory in a VPATH build with
 
78
#          a relative $ac_aux_dir
 
79
#
 
80
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
81
# are both prefixed by $srcdir.  In an in-source build this is usually
 
82
# harmless because $srcdir is `.', but things will broke when you
 
83
# start a VPATH build or use an absolute $srcdir.
 
84
#
 
85
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
86
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
87
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
88
# and then we would define $MISSING as
 
89
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
90
# This will work as long as MISSING is not called from configure, because
 
91
# unfortunately $(top_srcdir) has no meaning in configure.
 
92
# However there are other variables, like CC, which are often used in
 
93
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
94
#
 
95
# Another solution, used here, is to always expand $ac_aux_dir to an
 
96
# absolute PATH.  The drawback is that using absolute paths prevent a
 
97
# configured tree to be moved without reconfiguration.
 
98
 
 
99
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
100
[dnl Rely on autoconf to set up CDPATH properly.
 
101
AC_PREREQ([2.50])dnl
 
102
# expand $ac_aux_dir to an absolute path
 
103
am_aux_dir=`cd $ac_aux_dir && pwd`
 
104
])
 
105
 
 
106
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
107
 
 
108
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
109
# Free Software Foundation, Inc.
 
110
#
 
111
# This file is free software; the Free Software Foundation
 
112
# gives unlimited permission to copy and/or distribute it,
 
113
# with or without modifications, as long as this notice is preserved.
 
114
 
 
115
# serial 8
 
116
 
 
117
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
118
# -------------------------------------
 
119
# Define a conditional.
 
120
AC_DEFUN([AM_CONDITIONAL],
 
121
[AC_PREREQ(2.52)dnl
 
122
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
123
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
124
AC_SUBST([$1_TRUE])dnl
 
125
AC_SUBST([$1_FALSE])dnl
 
126
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
127
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
128
if $2; then
 
129
  $1_TRUE=
 
130
  $1_FALSE='#'
 
131
else
 
132
  $1_TRUE='#'
 
133
  $1_FALSE=
 
134
fi
 
135
AC_CONFIG_COMMANDS_PRE(
 
136
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
137
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
138
Usually this means the macro was only invoked conditionally.]])
 
139
fi])])
 
140
 
 
141
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
142
# Free Software Foundation, Inc.
 
143
#
 
144
# This file is free software; the Free Software Foundation
 
145
# gives unlimited permission to copy and/or distribute it,
 
146
# with or without modifications, as long as this notice is preserved.
 
147
 
 
148
# serial 9
 
149
 
 
150
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
151
# written in clear, in which case automake, when reading aclocal.m4,
 
152
# will think it sees a *use*, and therefore will trigger all it's
 
153
# C support machinery.  Also note that it means that autoscan, seeing
 
154
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
155
 
 
156
 
 
157
# _AM_DEPENDENCIES(NAME)
 
158
# ----------------------
 
159
# See how the compiler implements dependency checking.
 
160
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
161
# We try a few techniques and use that to set a single cache variable.
 
162
#
 
163
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
164
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
165
# dependency, and given that the user is not expected to run this macro,
 
166
# just rely on AC_PROG_CC.
 
167
AC_DEFUN([_AM_DEPENDENCIES],
 
168
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
169
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
170
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
171
AC_REQUIRE([AM_DEP_TRACK])dnl
 
172
 
 
173
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
174
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
175
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
176
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
177
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
178
                   [depcc="$$1"   am_compiler_list=])
 
179
 
 
180
AC_CACHE_CHECK([dependency style of $depcc],
 
181
               [am_cv_$1_dependencies_compiler_type],
 
182
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
183
  # We make a subdir and do the tests there.  Otherwise we can end up
 
184
  # making bogus files that we don't know about and never remove.  For
 
185
  # instance it was reported that on HP-UX the gcc test will end up
 
186
  # making a dummy file named `D' -- because `-MD' means `put the output
 
187
  # in D'.
 
188
  mkdir conftest.dir
 
189
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
190
  # using a relative directory.
 
191
  cp "$am_depcomp" conftest.dir
 
192
  cd conftest.dir
 
193
  # We will build objects and dependencies in a subdirectory because
 
194
  # it helps to detect inapplicable dependency modes.  For instance
 
195
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
196
  # side effect of compilation, but ICC will put the dependencies in
 
197
  # the current directory while Tru64 will put them in the object
 
198
  # directory.
 
199
  mkdir sub
 
200
 
 
201
  am_cv_$1_dependencies_compiler_type=none
 
202
  if test "$am_compiler_list" = ""; then
 
203
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
204
  fi
 
205
  for depmode in $am_compiler_list; do
 
206
    # Setup a source with many dependencies, because some compilers
 
207
    # like to wrap large dependency lists on column 80 (with \), and
 
208
    # we should not choose a depcomp mode which is confused by this.
 
209
    #
 
210
    # We need to recreate these files for each test, as the compiler may
 
211
    # overwrite some of them when testing with obscure command lines.
 
212
    # This happens at least with the AIX C compiler.
 
213
    : > sub/conftest.c
 
214
    for i in 1 2 3 4 5 6; do
 
215
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
216
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
217
      # Solaris 8's {/usr,}/bin/sh.
 
218
      touch sub/conftst$i.h
 
219
    done
 
220
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
221
 
 
222
    case $depmode in
 
223
    nosideeffect)
 
224
      # after this tag, mechanisms are not by side-effect, so they'll
 
225
      # only be used when explicitly requested
 
226
      if test "x$enable_dependency_tracking" = xyes; then
 
227
        continue
 
228
      else
 
229
        break
 
230
      fi
 
231
      ;;
 
232
    none) break ;;
 
233
    esac
 
234
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
235
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
236
    # handle `-M -o', and we need to detect this.
 
237
    if depmode=$depmode \
 
238
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
239
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
240
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
241
         >/dev/null 2>conftest.err &&
 
242
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
243
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
244
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
245
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
246
      # icc doesn't choke on unknown options, it will just issue warnings
 
247
      # or remarks (even with -Werror).  So we grep stderr for any message
 
248
      # that says an option was ignored or not supported.
 
249
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
250
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
251
      # The diagnosis changed in icc 8.0:
 
252
      #   icc: Command line remark: option '-MP' not supported
 
253
      if (grep 'ignoring option' conftest.err ||
 
254
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
255
        am_cv_$1_dependencies_compiler_type=$depmode
 
256
        break
 
257
      fi
 
258
    fi
 
259
  done
 
260
 
 
261
  cd ..
 
262
  rm -rf conftest.dir
 
263
else
 
264
  am_cv_$1_dependencies_compiler_type=none
 
265
fi
 
266
])
 
267
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
268
AM_CONDITIONAL([am__fastdep$1], [
 
269
  test "x$enable_dependency_tracking" != xno \
 
270
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
271
])
 
272
 
 
273
 
 
274
# AM_SET_DEPDIR
 
275
# -------------
 
276
# Choose a directory name for dependency files.
 
277
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
278
AC_DEFUN([AM_SET_DEPDIR],
 
279
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
280
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
281
])
 
282
 
 
283
 
 
284
# AM_DEP_TRACK
 
285
# ------------
 
286
AC_DEFUN([AM_DEP_TRACK],
 
287
[AC_ARG_ENABLE(dependency-tracking,
 
288
[  --disable-dependency-tracking  speeds up one-time build
 
289
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
290
if test "x$enable_dependency_tracking" != xno; then
 
291
  am_depcomp="$ac_aux_dir/depcomp"
 
292
  AMDEPBACKSLASH='\'
 
293
fi
 
294
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
295
AC_SUBST([AMDEPBACKSLASH])dnl
 
296
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
297
])
 
298
 
 
299
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
300
 
 
301
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
302
# Free Software Foundation, Inc.
 
303
#
 
304
# This file is free software; the Free Software Foundation
 
305
# gives unlimited permission to copy and/or distribute it,
 
306
# with or without modifications, as long as this notice is preserved.
 
307
 
 
308
#serial 3
 
309
 
 
310
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
311
# ------------------------------
 
312
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
313
[for mf in $CONFIG_FILES; do
 
314
  # Strip MF so we end up with the name of the file.
 
315
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
316
  # Check whether this is an Automake generated Makefile or not.
 
317
  # We used to match only the files named `Makefile.in', but
 
318
  # some people rename them; so instead we look at the file content.
 
319
  # Grep'ing the first line is not enough: some people post-process
 
320
  # each Makefile.in and add a new line on top of each file to say so.
 
321
  # Grep'ing the whole file is not good either: AIX grep has a line
 
322
  # limit of 2048, but all sed's we know have understand at least 4000.
 
323
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
324
    dirpart=`AS_DIRNAME("$mf")`
 
325
  else
 
326
    continue
 
327
  fi
 
328
  # Extract the definition of DEPDIR, am__include, and am__quote
 
329
  # from the Makefile without running `make'.
 
330
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
331
  test -z "$DEPDIR" && continue
 
332
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
333
  test -z "am__include" && continue
 
334
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
335
  # When using ansi2knr, U may be empty or an underscore; expand it
 
336
  U=`sed -n 's/^U = //p' < "$mf"`
 
337
  # Find all dependency output files, they are included files with
 
338
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
339
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
340
  # expansion.
 
341
  for file in `sed -n "
 
342
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
343
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
344
    # Make sure the directory exists.
 
345
    test -f "$dirpart/$file" && continue
 
346
    fdir=`AS_DIRNAME(["$file"])`
 
347
    AS_MKDIR_P([$dirpart/$fdir])
 
348
    # echo "creating $dirpart/$file"
 
349
    echo '# dummy' > "$dirpart/$file"
 
350
  done
 
351
done
 
352
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
353
 
 
354
 
 
355
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
356
# -----------------------------
 
357
# This macro should only be invoked once -- use via AC_REQUIRE.
 
358
#
 
359
# This code is only required when automatic dependency tracking
 
360
# is enabled.  FIXME.  This creates each `.P' file that we will
 
361
# need in order to bootstrap the dependency handling code.
 
362
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
363
[AC_CONFIG_COMMANDS([depfiles],
 
364
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
365
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
366
])
 
367
 
 
368
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
369
# Free Software Foundation, Inc.
 
370
#
 
371
# This file is free software; the Free Software Foundation
 
372
# gives unlimited permission to copy and/or distribute it,
 
373
# with or without modifications, as long as this notice is preserved.
 
374
 
 
375
# serial 8
 
376
 
 
377
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
378
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
379
 
 
380
# Do all the work for Automake.                             -*- Autoconf -*-
 
381
 
 
382
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
383
# 2005, 2006 Free Software Foundation, Inc.
 
384
#
 
385
# This file is free software; the Free Software Foundation
 
386
# gives unlimited permission to copy and/or distribute it,
 
387
# with or without modifications, as long as this notice is preserved.
 
388
 
 
389
# serial 12
 
390
 
 
391
# This macro actually does too much.  Some checks are only needed if
 
392
# your package does certain things.  But this isn't really a big deal.
 
393
 
 
394
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
395
# AM_INIT_AUTOMAKE([OPTIONS])
 
396
# -----------------------------------------------
 
397
# The call with PACKAGE and VERSION arguments is the old style
 
398
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
399
# and VERSION should now be passed to AC_INIT and removed from
 
400
# the call to AM_INIT_AUTOMAKE.
 
401
# We support both call styles for the transition.  After
 
402
# the next Automake release, Autoconf can make the AC_INIT
 
403
# arguments mandatory, and then we can depend on a new Autoconf
 
404
# release and drop the old call support.
 
405
AC_DEFUN([AM_INIT_AUTOMAKE],
 
406
[AC_PREREQ([2.60])dnl
 
407
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
408
dnl the ones we care about.
 
409
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
410
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
411
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
412
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
413
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
414
  # is not polluted with repeated "-I."
 
415
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
416
  # test to see if srcdir already configured
 
417
  if test -f $srcdir/config.status; then
 
418
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
419
  fi
 
420
fi
 
421
 
 
422
# test whether we have cygpath
 
423
if test -z "$CYGPATH_W"; then
 
424
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
425
    CYGPATH_W='cygpath -w'
 
426
  else
 
427
    CYGPATH_W=echo
 
428
  fi
 
429
fi
 
430
AC_SUBST([CYGPATH_W])
 
431
 
 
432
# Define the identity of the package.
 
433
dnl Distinguish between old-style and new-style calls.
 
434
m4_ifval([$2],
 
435
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
436
 AC_SUBST([PACKAGE], [$1])dnl
 
437
 AC_SUBST([VERSION], [$2])],
 
438
[_AM_SET_OPTIONS([$1])dnl
 
439
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
440
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
441
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
442
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
443
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
444
 
 
445
_AM_IF_OPTION([no-define],,
 
446
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
447
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
448
 
 
449
# Some tools Automake needs.
 
450
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
451
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
452
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
453
AM_MISSING_PROG(AUTOCONF, autoconf)
 
454
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
455
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
456
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
457
AM_PROG_INSTALL_SH
 
458
AM_PROG_INSTALL_STRIP
 
459
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
460
# We need awk for the "check" target.  The system "awk" is bad on
 
461
# some platforms.
 
462
AC_REQUIRE([AC_PROG_AWK])dnl
 
463
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
464
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
465
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
466
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
467
                             [_AM_PROG_TAR([v7])])])
 
468
_AM_IF_OPTION([no-dependencies],,
 
469
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
470
                  [_AM_DEPENDENCIES(CC)],
 
471
                  [define([AC_PROG_CC],
 
472
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
473
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
474
                  [_AM_DEPENDENCIES(CXX)],
 
475
                  [define([AC_PROG_CXX],
 
476
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
477
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
478
                  [_AM_DEPENDENCIES(OBJC)],
 
479
                  [define([AC_PROG_OBJC],
 
480
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
481
])
 
482
])
 
483
 
 
484
 
 
485
# When config.status generates a header, we must update the stamp-h file.
 
486
# This file resides in the same directory as the config header
 
487
# that is generated.  The stamp files are numbered to have different names.
 
488
 
 
489
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
490
# loop where config.status creates the headers, so we can generate
 
491
# our stamp files there.
 
492
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
493
[# Compute $1's index in $config_headers.
 
494
_am_stamp_count=1
 
495
for _am_header in $config_headers :; do
 
496
  case $_am_header in
 
497
    $1 | $1:* )
 
498
      break ;;
 
499
    * )
 
500
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
501
  esac
 
502
done
 
503
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
504
 
 
505
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
506
#
 
507
# This file is free software; the Free Software Foundation
 
508
# gives unlimited permission to copy and/or distribute it,
 
509
# with or without modifications, as long as this notice is preserved.
 
510
 
 
511
# AM_PROG_INSTALL_SH
 
512
# ------------------
 
513
# Define $install_sh.
 
514
AC_DEFUN([AM_PROG_INSTALL_SH],
 
515
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
516
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
517
AC_SUBST(install_sh)])
 
518
 
 
519
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
520
#
 
521
# This file is free software; the Free Software Foundation
 
522
# gives unlimited permission to copy and/or distribute it,
 
523
# with or without modifications, as long as this notice is preserved.
 
524
 
 
525
# serial 2
 
526
 
 
527
# Check whether the underlying file-system supports filenames
 
528
# with a leading dot.  For instance MS-DOS doesn't.
 
529
AC_DEFUN([AM_SET_LEADING_DOT],
 
530
[rm -rf .tst 2>/dev/null
 
531
mkdir .tst 2>/dev/null
 
532
if test -d .tst; then
 
533
  am__leading_dot=.
 
534
else
 
535
  am__leading_dot=_
 
536
fi
 
537
rmdir .tst 2>/dev/null
 
538
AC_SUBST([am__leading_dot])])
 
539
 
 
540
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
541
# From Jim Meyering
 
542
 
 
543
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
544
# Free Software Foundation, Inc.
 
545
#
 
546
# This file is free software; the Free Software Foundation
 
547
# gives unlimited permission to copy and/or distribute it,
 
548
# with or without modifications, as long as this notice is preserved.
 
549
 
 
550
# serial 4
 
551
 
 
552
AC_DEFUN([AM_MAINTAINER_MODE],
 
553
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
554
  dnl maintainer-mode is disabled by default
 
555
  AC_ARG_ENABLE(maintainer-mode,
 
556
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
557
                          (and sometimes confusing) to the casual installer],
 
558
      USE_MAINTAINER_MODE=$enableval,
 
559
      USE_MAINTAINER_MODE=no)
 
560
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
561
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
562
  MAINT=$MAINTAINER_MODE_TRUE
 
563
  AC_SUBST(MAINT)dnl
 
564
]
 
565
)
 
566
 
 
567
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
568
 
 
569
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
570
 
 
571
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
572
#
 
573
# This file is free software; the Free Software Foundation
 
574
# gives unlimited permission to copy and/or distribute it,
 
575
# with or without modifications, as long as this notice is preserved.
 
576
 
 
577
# serial 3
 
578
 
 
579
# AM_MAKE_INCLUDE()
 
580
# -----------------
 
581
# Check to see how make treats includes.
 
582
AC_DEFUN([AM_MAKE_INCLUDE],
 
583
[am_make=${MAKE-make}
 
584
cat > confinc << 'END'
 
585
am__doit:
 
586
        @echo done
 
587
.PHONY: am__doit
 
588
END
 
589
# If we don't find an include directive, just comment out the code.
 
590
AC_MSG_CHECKING([for style of include used by $am_make])
 
591
am__include="#"
 
592
am__quote=
 
593
_am_result=none
 
594
# First try GNU make style include.
 
595
echo "include confinc" > confmf
 
596
# We grep out `Entering directory' and `Leaving directory'
 
597
# messages which can occur if `w' ends up in MAKEFLAGS.
 
598
# In particular we don't look at `^make:' because GNU make might
 
599
# be invoked under some other name (usually "gmake"), in which
 
600
# case it prints its new name instead of `make'.
 
601
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
602
   am__include=include
 
603
   am__quote=
 
604
   _am_result=GNU
 
605
fi
 
606
# Now try BSD make style include.
 
607
if test "$am__include" = "#"; then
 
608
   echo '.include "confinc"' > confmf
 
609
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
610
      am__include=.include
 
611
      am__quote="\""
 
612
      _am_result=BSD
 
613
   fi
 
614
fi
 
615
AC_SUBST([am__include])
 
616
AC_SUBST([am__quote])
 
617
AC_MSG_RESULT([$_am_result])
 
618
rm -f confinc confmf
 
619
])
 
620
 
 
621
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
622
 
 
623
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
624
# Free Software Foundation, Inc.
 
625
#
 
626
# This file is free software; the Free Software Foundation
 
627
# gives unlimited permission to copy and/or distribute it,
 
628
# with or without modifications, as long as this notice is preserved.
 
629
 
 
630
# serial 5
 
631
 
 
632
# AM_MISSING_PROG(NAME, PROGRAM)
 
633
# ------------------------------
 
634
AC_DEFUN([AM_MISSING_PROG],
 
635
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
636
$1=${$1-"${am_missing_run}$2"}
 
637
AC_SUBST($1)])
 
638
 
 
639
 
 
640
# AM_MISSING_HAS_RUN
 
641
# ------------------
 
642
# Define MISSING if not defined so far and test if it supports --run.
 
643
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
644
AC_DEFUN([AM_MISSING_HAS_RUN],
 
645
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
646
AC_REQUIRE_AUX_FILE([missing])dnl
 
647
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
648
# Use eval to expand $SHELL
 
649
if eval "$MISSING --run true"; then
 
650
  am_missing_run="$MISSING --run "
 
651
else
 
652
  am_missing_run=
 
653
  AC_MSG_WARN([`missing' script is too old or missing])
 
654
fi
 
655
])
 
656
 
 
657
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
658
#
 
659
# This file is free software; the Free Software Foundation
 
660
# gives unlimited permission to copy and/or distribute it,
 
661
# with or without modifications, as long as this notice is preserved.
 
662
 
 
663
# AM_PROG_MKDIR_P
 
664
# ---------------
 
665
# Check for `mkdir -p'.
 
666
AC_DEFUN([AM_PROG_MKDIR_P],
 
667
[AC_PREREQ([2.60])dnl
 
668
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
669
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
670
dnl while keeping a definition of mkdir_p for backward compatibility.
 
671
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
672
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
673
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
674
dnl adjustment using top_builddir (which is defined more often than
 
675
dnl MKDIR_P).
 
676
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
677
case $mkdir_p in
 
678
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
679
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
680
esac
 
681
])
 
682
 
 
683
# Helper functions for option handling.                     -*- Autoconf -*-
 
684
 
 
685
# Copyright (C) 2001, 2002, 2003, 2005  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 3
 
692
 
 
693
# _AM_MANGLE_OPTION(NAME)
 
694
# -----------------------
 
695
AC_DEFUN([_AM_MANGLE_OPTION],
 
696
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
697
 
 
698
# _AM_SET_OPTION(NAME)
 
699
# ------------------------------
 
700
# Set option NAME.  Presently that only means defining a flag for this option.
 
701
AC_DEFUN([_AM_SET_OPTION],
 
702
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
703
 
 
704
# _AM_SET_OPTIONS(OPTIONS)
 
705
# ----------------------------------
 
706
# OPTIONS is a space-separated list of Automake options.
 
707
AC_DEFUN([_AM_SET_OPTIONS],
 
708
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
709
 
 
710
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
711
# -------------------------------------------
 
712
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
713
AC_DEFUN([_AM_IF_OPTION],
 
714
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
715
 
 
716
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
717
# Free Software Foundation, Inc.
 
718
#
 
719
# This file is free software; the Free Software Foundation
 
720
# gives unlimited permission to copy and/or distribute it,
 
721
# with or without modifications, as long as this notice is preserved.
 
722
 
 
723
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
724
# ---------------------------------------------------------------------------
 
725
# Adds support for distributing Python modules and packages.  To
 
726
# install modules, copy them to $(pythondir), using the python_PYTHON
 
727
# automake variable.  To install a package with the same name as the
 
728
# automake package, install to $(pkgpythondir), or use the
 
729
# pkgpython_PYTHON automake variable.
 
730
#
 
731
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
 
732
# locations to install python extension modules (shared libraries).
 
733
# Another macro is required to find the appropriate flags to compile
 
734
# extension modules.
 
735
#
 
736
# If your package is configured with a different prefix to python,
 
737
# users will have to add the install directory to the PYTHONPATH
 
738
# environment variable, or create a .pth file (see the python
 
739
# documentation for details).
 
740
#
 
741
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
 
742
# cause an error if the version of python installed on the system
 
743
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
 
744
# numbers and dots only.
 
745
AC_DEFUN([AM_PATH_PYTHON],
 
746
 [
 
747
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
 
748
  dnl supported because the default installation locations changed from
 
749
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
 
750
  dnl in 1.5.
 
751
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
 
752
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
 
753
python2.1 python2.0 python1.6 python1.5])
 
754
 
 
755
  m4_if([$1],[],[
 
756
    dnl No version check is needed.
 
757
    # Find any Python interpreter.
 
758
    if test -z "$PYTHON"; then
 
759
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
 
760
    fi
 
761
    am_display_PYTHON=python
 
762
  ], [
 
763
    dnl A version check is needed.
 
764
    if test -n "$PYTHON"; then
 
765
      # If the user set $PYTHON, use it and don't search something else.
 
766
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
 
767
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
 
768
                              [AC_MSG_RESULT(yes)],
 
769
                              [AC_MSG_ERROR(too old)])
 
770
      am_display_PYTHON=$PYTHON
 
771
    else
 
772
      # Otherwise, try each interpreter until we find one that satisfies
 
773
      # VERSION.
 
774
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
 
775
        [am_cv_pathless_PYTHON],[
 
776
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
 
777
          test "$am_cv_pathless_PYTHON" = none && break
 
778
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
 
779
        done])
 
780
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
781
      if test "$am_cv_pathless_PYTHON" = none; then
 
782
        PYTHON=:
 
783
      else
 
784
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 
785
      fi
 
786
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
787
    fi
 
788
  ])
 
789
 
 
790
  if test "$PYTHON" = :; then
 
791
  dnl Run any user-specified action, or abort.
 
792
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
 
793
  else
 
794
 
 
795
  dnl Query Python for its version number.  Getting [:3] seems to be
 
796
  dnl the best way to do this; it's what "site.py" does in the standard
 
797
  dnl library.
 
798
 
 
799
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
 
800
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
 
801
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
 
802
 
 
803
  dnl Use the values of $prefix and $exec_prefix for the corresponding
 
804
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
 
805
  dnl distinct variables so they can be overridden if need be.  However,
 
806
  dnl general consensus is that you shouldn't need this ability.
 
807
 
 
808
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
 
809
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
 
810
 
 
811
  dnl At times (like when building shared libraries) you may want
 
812
  dnl to know which OS platform Python thinks this is.
 
813
 
 
814
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
 
815
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
 
816
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
 
817
 
 
818
 
 
819
  dnl Set up 4 directories:
 
820
 
 
821
  dnl pythondir -- where to install python scripts.  This is the
 
822
  dnl   site-packages directory, not the python standard library
 
823
  dnl   directory like in previous automake betas.  This behavior
 
824
  dnl   is more consistent with lispdir.m4 for example.
 
825
  dnl Query distutils for this directory.  distutils does not exist in
 
826
  dnl Python 1.5, so we fall back to the hardcoded directory if it
 
827
  dnl doesn't work.
 
828
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
 
829
    [am_cv_python_pythondir],
 
830
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
 
831
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
 
832
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
 
833
 
 
834
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
 
835
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
 
836
  dnl   more consistent with the rest of automake.
 
837
 
 
838
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
 
839
 
 
840
  dnl pyexecdir -- directory for installing python extension modules
 
841
  dnl   (shared libraries)
 
842
  dnl Query distutils for this directory.  distutils does not exist in
 
843
  dnl Python 1.5, so we fall back to the hardcoded directory if it
 
844
  dnl doesn't work.
 
845
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
 
846
    [am_cv_python_pyexecdir],
 
847
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
 
848
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
 
849
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
 
850
 
 
851
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
 
852
 
 
853
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
 
854
 
 
855
  dnl Run any user-specified action.
 
856
  $2
 
857
  fi
 
858
 
 
859
])
 
860
 
 
861
 
 
862
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 
863
# ---------------------------------------------------------------------------
 
864
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
 
865
# Run ACTION-IF-FALSE otherwise.
 
866
# This test uses sys.hexversion instead of the string equivalent (first
 
867
# word of sys.version), in order to cope with versions such as 2.2c1.
 
868
# hexversion has been introduced in Python 1.5.2; it's probably not
 
869
# worth to support older versions (1.5.1 was released on October 31, 1998).
 
870
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
 
871
 [prog="import sys, string
 
872
# split strings by '.' and convert to numeric.  Append some zeros
 
873
# because we need at least 4 digits for the hex conversion.
 
874
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
 
875
minverhex = 0
 
876
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
 
877
sys.exit(sys.hexversion < minverhex)"
 
878
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
 
879
 
 
880
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
881
#
 
882
# This file is free software; the Free Software Foundation
 
883
# gives unlimited permission to copy and/or distribute it,
 
884
# with or without modifications, as long as this notice is preserved.
 
885
 
 
886
# AM_RUN_LOG(COMMAND)
 
887
# -------------------
 
888
# Run COMMAND, save the exit status in ac_status, and log it.
 
889
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
890
AC_DEFUN([AM_RUN_LOG],
 
891
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
892
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
893
   ac_status=$?
 
894
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
895
   (exit $ac_status); }])
 
896
 
 
897
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
898
 
 
899
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
900
# Free Software Foundation, Inc.
 
901
#
 
902
# This file is free software; the Free Software Foundation
 
903
# gives unlimited permission to copy and/or distribute it,
 
904
# with or without modifications, as long as this notice is preserved.
 
905
 
 
906
# serial 4
 
907
 
 
908
# AM_SANITY_CHECK
 
909
# ---------------
 
910
AC_DEFUN([AM_SANITY_CHECK],
 
911
[AC_MSG_CHECKING([whether build environment is sane])
 
912
# Just in case
 
913
sleep 1
 
914
echo timestamp > conftest.file
 
915
# Do `set' in a subshell so we don't clobber the current shell's
 
916
# arguments.  Must try -L first in case configure is actually a
 
917
# symlink; some systems play weird games with the mod time of symlinks
 
918
# (eg FreeBSD returns the mod time of the symlink's containing
 
919
# directory).
 
920
if (
 
921
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
922
   if test "$[*]" = "X"; then
 
923
      # -L didn't work.
 
924
      set X `ls -t $srcdir/configure conftest.file`
 
925
   fi
 
926
   rm -f conftest.file
 
927
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
928
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
929
 
 
930
      # If neither matched, then we have a broken ls.  This can happen
 
931
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
932
      # broken ls alias from the environment.  This has actually
 
933
      # happened.  Such a system could not be considered "sane".
 
934
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
935
alias in your environment])
 
936
   fi
 
937
 
 
938
   test "$[2]" = conftest.file
 
939
   )
 
940
then
 
941
   # Ok.
 
942
   :
 
943
else
 
944
   AC_MSG_ERROR([newly created file is older than distributed files!
 
945
Check your system clock])
 
946
fi
 
947
AC_MSG_RESULT(yes)])
 
948
 
 
949
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
950
#
 
951
# This file is free software; the Free Software Foundation
 
952
# gives unlimited permission to copy and/or distribute it,
 
953
# with or without modifications, as long as this notice is preserved.
 
954
 
 
955
# AM_PROG_INSTALL_STRIP
 
956
# ---------------------
 
957
# One issue with vendor `install' (even GNU) is that you can't
 
958
# specify the program used to strip binaries.  This is especially
 
959
# annoying in cross-compiling environments, where the build's strip
 
960
# is unlikely to handle the host's binaries.
 
961
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
962
# always use install-sh in `make install-strip', and initialize
 
963
# STRIPPROG with the value of the STRIP variable (set by the user).
 
964
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
965
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
966
# Installed binaries are usually stripped using `strip' when the user
 
967
# run `make install-strip'.  However `strip' might not be the right
 
968
# tool to use in cross-compilation environments, therefore Automake
 
969
# will honor the `STRIP' environment variable to overrule this program.
 
970
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
971
if test "$cross_compiling" != no; then
 
972
  AC_CHECK_TOOL([STRIP], [strip], :)
 
973
fi
 
974
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
975
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
976
 
 
977
# Copyright (C) 2006  Free Software Foundation, Inc.
 
978
#
 
979
# This file is free software; the Free Software Foundation
 
980
# gives unlimited permission to copy and/or distribute it,
 
981
# with or without modifications, as long as this notice is preserved.
 
982
 
 
983
# _AM_SUBST_NOTMAKE(VARIABLE)
 
984
# ---------------------------
 
985
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
986
# This macro is traced by Automake.
 
987
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
988
 
 
989
# Check how to create a tarball.                            -*- Autoconf -*-
 
990
 
 
991
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
992
#
 
993
# This file is free software; the Free Software Foundation
 
994
# gives unlimited permission to copy and/or distribute it,
 
995
# with or without modifications, as long as this notice is preserved.
 
996
 
 
997
# serial 2
 
998
 
 
999
# _AM_PROG_TAR(FORMAT)
 
1000
# --------------------
 
1001
# Check how to create a tarball in format FORMAT.
 
1002
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1003
#
 
1004
# Substitute a variable $(am__tar) that is a command
 
1005
# writing to stdout a FORMAT-tarball containing the directory
 
1006
# $tardir.
 
1007
#     tardir=directory && $(am__tar) > result.tar
 
1008
#
 
1009
# Substitute a variable $(am__untar) that extract such
 
1010
# a tarball read from stdin.
 
1011
#     $(am__untar) < result.tar
 
1012
AC_DEFUN([_AM_PROG_TAR],
 
1013
[# Always define AMTAR for backward compatibility.
 
1014
AM_MISSING_PROG([AMTAR], [tar])
 
1015
m4_if([$1], [v7],
 
1016
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
1017
     [m4_case([$1], [ustar],, [pax],,
 
1018
              [m4_fatal([Unknown tar format])])
 
1019
AC_MSG_CHECKING([how to create a $1 tar archive])
 
1020
# Loop over all known methods to create a tar archive until one works.
 
1021
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1022
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1023
# Do not fold the above two line into one, because Tru64 sh and
 
1024
# Solaris sh will not grok spaces in the rhs of `-'.
 
1025
for _am_tool in $_am_tools
 
1026
do
 
1027
  case $_am_tool in
 
1028
  gnutar)
 
1029
    for _am_tar in tar gnutar gtar;
 
1030
    do
 
1031
      AM_RUN_LOG([$_am_tar --version]) && break
 
1032
    done
 
1033
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1034
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1035
    am__untar="$_am_tar -xf -"
 
1036
    ;;
 
1037
  plaintar)
 
1038
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
1039
    # ustar tarball either.
 
1040
    (tar --version) >/dev/null 2>&1 && continue
 
1041
    am__tar='tar chf - "$$tardir"'
 
1042
    am__tar_='tar chf - "$tardir"'
 
1043
    am__untar='tar xf -'
 
1044
    ;;
 
1045
  pax)
 
1046
    am__tar='pax -L -x $1 -w "$$tardir"'
 
1047
    am__tar_='pax -L -x $1 -w "$tardir"'
 
1048
    am__untar='pax -r'
 
1049
    ;;
 
1050
  cpio)
 
1051
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1052
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1053
    am__untar='cpio -i -H $1 -d'
 
1054
    ;;
 
1055
  none)
 
1056
    am__tar=false
 
1057
    am__tar_=false
 
1058
    am__untar=false
 
1059
    ;;
 
1060
  esac
 
1061
 
 
1062
  # If the value was cached, stop now.  We just wanted to have am__tar
 
1063
  # and am__untar set.
 
1064
  test -n "${am_cv_prog_tar_$1}" && break
 
1065
 
 
1066
  # tar/untar a dummy directory, and stop if the command works
 
1067
  rm -rf conftest.dir
 
1068
  mkdir conftest.dir
 
1069
  echo GrepMe > conftest.dir/file
 
1070
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1071
  rm -rf conftest.dir
 
1072
  if test -s conftest.tar; then
 
1073
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1074
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1075
  fi
 
1076
done
 
1077
rm -rf conftest.dir
 
1078
 
 
1079
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1080
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1081
AC_SUBST([am__tar])
 
1082
AC_SUBST([am__untar])
 
1083
]) # _AM_PROG_TAR
 
1084
 
14
1085
dnl AM_GCONF_SOURCE_2
15
1086
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
16
1087
dnl  (i.e. pass to gconftool-2
154
1225
#-----------------
155
1226
glib_DEFUN([GLIB_WITH_NLS],
156
1227
  dnl NLS is obligatory
157
 
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
158
 
    USE_NLS=yes
 
1228
  [USE_NLS=yes
159
1229
    AC_SUBST(USE_NLS)
160
1230
 
161
1231
    gt_cv_have_gettext=no
629
1699
 
630
1700
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
631
1701
 
632
 
# serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL
 
1702
# serial 48 AC_PROG_LIBTOOL
633
1703
 
634
1704
 
635
1705
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
792
1862
test -z "$ac_objext" && ac_objext=o
793
1863
 
794
1864
# Determine commands to create old-style static archives.
795
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
1865
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
796
1866
old_postinstall_cmds='chmod 644 $oldlib'
797
1867
old_postuninstall_cmds=
798
1868
 
879
1949
# Check for compiler boilerplate output or warnings with
880
1950
# the simple compiler test code.
881
1951
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
882
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
883
 
ac_outfile=conftest.$ac_objext
884
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1952
[ac_outfile=conftest.$ac_objext
 
1953
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
885
1954
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
886
1955
_lt_compiler_boilerplate=`cat conftest.err`
887
1956
$rm conftest*
893
1962
# Check for linker boilerplate output or warnings with
894
1963
# the simple link test code.
895
1964
AC_DEFUN([_LT_LINKER_BOILERPLATE],
896
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
897
 
ac_outfile=conftest.$ac_objext
898
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
1965
[ac_outfile=conftest.$ac_objext
 
1966
printf "$lt_simple_link_test_code" >conftest.$ac_ext
899
1967
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
900
1968
_lt_linker_boilerplate=`cat conftest.err`
901
1969
$rm conftest*
911
1979
# If we don't find anything, use the default library path according
912
1980
# to the aix ld manual.
913
1981
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
914
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
915
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
916
 
lt_aix_libpath_sed='
917
 
    /Import File Strings/,/^$/ {
918
 
        /^0/ {
919
 
            s/^0  *\(.*\)$/\1/
920
 
            p
921
 
        }
922
 
    }'
923
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1982
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
1983
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1984
}'`
924
1985
# Check for a 64-bit object if we didn't find anything.
925
 
if test -z "$aix_libpath"; then
926
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
927
 
fi],[])
 
1986
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1987
}'`; fi],[])
928
1988
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
929
1989
])# _LT_AC_SYS_LIBPATH_AIX
930
1990
 
1155
2215
  rm -rf conftest*
1156
2216
  ;;
1157
2217
 
1158
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1159
 
s390*-*linux*|sparc*-*linux*)
 
2218
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1160
2219
  # Find out which ABI we are using.
1161
2220
  echo 'int i;' > conftest.$ac_ext
1162
2221
  if AC_TRY_EVAL(ac_compile); then
1163
2222
    case `/usr/bin/file conftest.o` in
1164
2223
    *32-bit*)
1165
2224
      case $host in
1166
 
        x86_64-*kfreebsd*-gnu)
1167
 
          LD="${LD-ld} -m elf_i386_fbsd"
1168
 
          ;;
1169
2225
        x86_64-*linux*)
1170
2226
          LD="${LD-ld} -m elf_i386"
1171
2227
          ;;
1182
2238
      ;;
1183
2239
    *64-bit*)
1184
2240
      case $host in
1185
 
        x86_64-*kfreebsd*-gnu)
1186
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
1187
 
          ;;
1188
2241
        x86_64-*linux*)
1189
2242
          LD="${LD-ld} -m elf_x86_64"
1190
2243
          ;;
1256
2309
AC_CACHE_CHECK([$1], [$2],
1257
2310
  [$2=no
1258
2311
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1259
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2312
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1260
2313
   lt_compiler_flag="$3"
1261
2314
   # Insert the option either (1) after the last *FLAGS variable, or
1262
2315
   # (2) before a word containing "conftest.", or (3) at the end.
1297
2350
# ------------------------------------------------------------
1298
2351
# Check whether the given compiler option works
1299
2352
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1300
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1301
 
AC_CACHE_CHECK([$1], [$2],
 
2353
[AC_CACHE_CHECK([$1], [$2],
1302
2354
  [$2=no
1303
2355
   save_LDFLAGS="$LDFLAGS"
1304
2356
   LDFLAGS="$LDFLAGS $3"
1305
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
2357
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1306
2358
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1307
2359
     # The linker can only warn and ignore the option if not recognized
1308
2360
     # So say no if there are warnings
1416
2468
    fi
1417
2469
    ;;
1418
2470
  *)
1419
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1420
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
1421
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1422
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1423
 
    else
1424
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1425
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
2471
    # If test is not a shell built-in, we'll probably end up computing a
 
2472
    # maximum length that is only half of the actual maximum length, but
 
2473
    # we can't tell.
 
2474
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
2475
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1426
2476
               = "XX$teststring") >/dev/null 2>&1 &&
1427
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1428
 
              lt_cv_sys_max_cmd_len=$new_result &&
1429
 
              test $i != 17 # 1/2 MB should be enough
1430
 
      do
1431
 
        i=`expr $i + 1`
1432
 
        teststring=$teststring$teststring
1433
 
      done
1434
 
      teststring=
1435
 
      # Add a significant safety factor because C++ compilers can tack on massive
1436
 
      # amounts of additional arguments before passing them to the linker.
1437
 
      # It appears as though 1/2 is a usable value.
1438
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1439
 
    fi
 
2477
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
2478
            lt_cv_sys_max_cmd_len=$new_result &&
 
2479
            test $i != 17 # 1/2 MB should be enough
 
2480
    do
 
2481
      i=`expr $i + 1`
 
2482
      teststring=$teststring$teststring
 
2483
    done
 
2484
    teststring=
 
2485
    # Add a significant safety factor because C++ compilers can tack on massive
 
2486
    # amounts of additional arguments before passing them to the linker.
 
2487
    # It appears as though 1/2 is a usable value.
 
2488
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1440
2489
    ;;
1441
2490
  esac
1442
2491
])
1663
2712
# ---------------------------------
1664
2713
# Check to see if options -c and -o are simultaneously supported by compiler
1665
2714
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1666
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1667
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2715
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1668
2716
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1669
2717
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1670
2718
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1672
2720
   mkdir conftest
1673
2721
   cd conftest
1674
2722
   mkdir out
1675
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2723
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1676
2724
 
1677
2725
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1678
2726
   # Insert the option either (1) after the last *FLAGS variable, or
1812
2860
   darwin*)
1813
2861
       if test -n "$STRIP" ; then
1814
2862
         striplib="$STRIP -x"
1815
 
         old_striplib="$STRIP -S"
1816
2863
         AC_MSG_RESULT([yes])
1817
2864
       else
1818
2865
  AC_MSG_RESULT([no])
1830
2877
# -----------------------------
1831
2878
# PORTME Fill in your ld.so characteristics
1832
2879
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1833
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1834
 
AC_MSG_CHECKING([dynamic linker characteristics])
 
2880
[AC_MSG_CHECKING([dynamic linker characteristics])
1835
2881
library_names_spec=
1836
2882
libname_spec='lib$name'
1837
2883
soname_spec=
1845
2891
version_type=none
1846
2892
dynamic_linker="$host_os ld.so"
1847
2893
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1848
 
m4_if($1,[],[
1849
2894
if test "$GCC" = yes; then
1850
 
  case $host_os in
1851
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1852
 
    *) lt_awk_arg="/^libraries:/" ;;
1853
 
  esac
1854
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1855
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
2895
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2896
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1856
2897
    # if the path contains ";" then we assume it to be the separator
1857
2898
    # otherwise default to the standard path separator (i.e. ":") - it is
1858
2899
    # assumed that no part of a normal pathname contains ";" but that should
1859
2900
    # okay in the real world where ";" in dirpaths is itself problematic.
1860
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
2901
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1861
2902
  else
1862
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2903
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1863
2904
  fi
1864
 
  # Ok, now we have the path, separated by spaces, we can step through it
1865
 
  # and add multilib dir if necessary.
1866
 
  lt_tmp_lt_search_path_spec=
1867
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1868
 
  for lt_sys_path in $lt_search_path_spec; do
1869
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1870
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1871
 
    else
1872
 
      test -d "$lt_sys_path" && \
1873
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1874
 
    fi
1875
 
  done
1876
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1877
 
BEGIN {RS=" "; FS="/|\n";} {
1878
 
  lt_foo="";
1879
 
  lt_count=0;
1880
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
1881
 
    if ($lt_i != "" && $lt_i != ".") {
1882
 
      if ($lt_i == "..") {
1883
 
        lt_count++;
1884
 
      } else {
1885
 
        if (lt_count == 0) {
1886
 
          lt_foo="/" $lt_i lt_foo;
1887
 
        } else {
1888
 
          lt_count--;
1889
 
        }
1890
 
      }
1891
 
    }
1892
 
  }
1893
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1894
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1895
 
}'`
1896
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1897
2905
else
1898
2906
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1899
 
fi])
 
2907
fi
1900
2908
need_lib_prefix=unknown
1901
2909
hardcode_into_libs=no
1902
2910
 
2053
3061
  shlibpath_overrides_runpath=yes
2054
3062
  shlibpath_var=DYLD_LIBRARY_PATH
2055
3063
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2056
 
  m4_if([$1], [],[
2057
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
3064
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
3065
  if test "$GCC" = yes; then
 
3066
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
3067
  else
 
3068
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
3069
  fi
2058
3070
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2059
3071
  ;;
2060
3072
 
2071
3083
  dynamic_linker=no
2072
3084
  ;;
2073
3085
 
 
3086
kfreebsd*-gnu)
 
3087
  version_type=linux
 
3088
  need_lib_prefix=no
 
3089
  need_version=no
 
3090
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3091
  soname_spec='${libname}${release}${shared_ext}$major'
 
3092
  shlibpath_var=LD_LIBRARY_PATH
 
3093
  shlibpath_overrides_runpath=no
 
3094
  hardcode_into_libs=yes
 
3095
  dynamic_linker='GNU ld.so'
 
3096
  ;;
 
3097
 
2074
3098
freebsd* | dragonfly*)
2075
3099
  # DragonFly does not have aout.  When/if they implement a new
2076
3100
  # versioning mechanism, adjust this.
2108
3132
    shlibpath_overrides_runpath=no
2109
3133
    hardcode_into_libs=yes
2110
3134
    ;;
2111
 
  *) # from 4.6 on, and DragonFly
 
3135
  freebsd*) # from 4.6 on
2112
3136
    shlibpath_overrides_runpath=yes
2113
3137
    hardcode_into_libs=yes
2114
3138
    ;;
2171
3195
  postinstall_cmds='chmod 555 $lib'
2172
3196
  ;;
2173
3197
 
2174
 
interix[[3-9]]*)
 
3198
interix3*)
2175
3199
  version_type=linux
2176
3200
  need_lib_prefix=no
2177
3201
  need_version=no
2226
3250
  ;;
2227
3251
 
2228
3252
# This must be Linux ELF.
2229
 
linux* | k*bsd*-gnu)
 
3253
linux*)
2230
3254
  version_type=linux
2231
3255
  need_lib_prefix=no
2232
3256
  need_version=no
2240
3264
  # before this can be enabled.
2241
3265
  hardcode_into_libs=yes
2242
3266
 
 
3267
  # find out which ABI we are using
 
3268
  libsuff=
 
3269
  case "$host_cpu" in
 
3270
  x86_64*|s390x*|powerpc64*)
 
3271
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
3272
    if AC_TRY_EVAL(ac_compile); then
 
3273
      case `/usr/bin/file conftest.$ac_objext` in
 
3274
      *64-bit*)
 
3275
        libsuff=64
 
3276
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
3277
        ;;
 
3278
      esac
 
3279
    fi
 
3280
    rm -rf conftest*
 
3281
    ;;
 
3282
  esac
 
3283
 
2243
3284
  # Append ld.so.conf contents to the search path
2244
3285
  if test -f /etc/ld.so.conf; then
2245
 
    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' ' '`
2246
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
3286
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
3287
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
2247
3288
  fi
2248
3289
 
2249
3290
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2255
3296
  dynamic_linker='GNU/Linux ld.so'
2256
3297
  ;;
2257
3298
 
2258
 
netbsdelf*-gnu)
 
3299
knetbsd*-gnu)
2259
3300
  version_type=linux
2260
3301
  need_lib_prefix=no
2261
3302
  need_version=no
2264
3305
  shlibpath_var=LD_LIBRARY_PATH
2265
3306
  shlibpath_overrides_runpath=no
2266
3307
  hardcode_into_libs=yes
2267
 
  dynamic_linker='NetBSD ld.elf_so'
 
3308
  dynamic_linker='GNU ld.so'
2268
3309
  ;;
2269
3310
 
2270
3311
netbsd*)
2348
3389
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2349
3390
  ;;
2350
3391
 
2351
 
rdos*)
2352
 
  dynamic_linker=no
2353
 
  ;;
2354
 
 
2355
3392
solaris*)
2356
3393
  version_type=linux
2357
3394
  need_lib_prefix=no
2457
3494
# _LT_AC_TAGCONFIG
2458
3495
# ----------------
2459
3496
AC_DEFUN([_LT_AC_TAGCONFIG],
2460
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2461
 
AC_ARG_WITH([tags],
 
3497
[AC_ARG_WITH([tags],
2462
3498
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2463
3499
        [include additional configurations @<:@automatic@:>@])],
2464
3500
    [tagnames="$withval"])
2719
3755
 
2720
3756
# AC_PATH_TOOL_PREFIX
2721
3757
# -------------------
2722
 
# find a file program which can recognize shared library
 
3758
# find a file program which can recognise shared library
2723
3759
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2724
3760
[AC_REQUIRE([AC_PROG_EGREP])dnl
2725
3761
AC_MSG_CHECKING([for $1])
2782
3818
 
2783
3819
# AC_PATH_MAGIC
2784
3820
# -------------
2785
 
# find a file program which can recognize a shared library
 
3821
# find a file program which can recognise a shared library
2786
3822
AC_DEFUN([AC_PATH_MAGIC],
2787
3823
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2788
3824
if test -z "$lt_cv_path_MAGIC_CMD"; then
2929
3965
# how to check for library dependencies
2930
3966
#  -- PORTME fill in with the dynamic library characteristics
2931
3967
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2932
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
3968
[AC_CACHE_CHECK([how to recognise dependent libraries],
2933
3969
lt_cv_deplibs_check_method,
2934
3970
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2935
3971
lt_cv_file_magic_test_file=
2968
4004
 
2969
4005
mingw* | pw32*)
2970
4006
  # Base MSYS/MinGW do not provide the 'file' command needed by
2971
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
2972
 
  # unless we find 'file', for example because we are cross-compiling.
2973
 
  if ( file / ) >/dev/null 2>&1; then
2974
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2975
 
    lt_cv_file_magic_cmd='func_win32_libid'
2976
 
  else
2977
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2978
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
2979
 
  fi
 
4007
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4008
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4009
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2980
4010
  ;;
2981
4011
 
2982
4012
darwin* | rhapsody*)
2983
4013
  lt_cv_deplibs_check_method=pass_all
2984
4014
  ;;
2985
4015
 
2986
 
freebsd* | dragonfly*)
 
4016
freebsd* | kfreebsd*-gnu | dragonfly*)
2987
4017
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2988
4018
    case $host_cpu in
2989
4019
    i*86 )
3021
4051
  esac
3022
4052
  ;;
3023
4053
 
3024
 
interix[[3-9]]*)
 
4054
interix3*)
3025
4055
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3026
4056
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3027
4057
  ;;
3037
4067
  ;;
3038
4068
 
3039
4069
# This must be Linux ELF.
3040
 
linux* | k*bsd*-gnu)
 
4070
linux*)
3041
4071
  lt_cv_deplibs_check_method=pass_all
3042
4072
  ;;
3043
4073
 
3044
 
netbsd* | netbsdelf*-gnu)
 
4074
netbsd*)
3045
4075
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3046
4076
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3047
4077
  else
3071
4101
  lt_cv_deplibs_check_method=pass_all
3072
4102
  ;;
3073
4103
 
3074
 
rdos*)
3075
 
  lt_cv_deplibs_check_method=pass_all
3076
 
  ;;
3077
 
 
3078
4104
solaris*)
3079
4105
  lt_cv_deplibs_check_method=pass_all
3080
4106
  ;;
3127
4153
  lt_cv_path_NM="$NM"
3128
4154
else
3129
4155
  lt_nm_to_check="${ac_tool_prefix}nm"
3130
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4156
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
3131
4157
    lt_nm_to_check="$lt_nm_to_check nm"
3132
4158
  fi
3133
4159
  for lt_tmp_nm in $lt_nm_to_check; do
3343
4369
_LT_AC_TAGVAR(objext, $1)=$objext
3344
4370
 
3345
4371
# Code to be used in simple compile tests
3346
 
lt_simple_compile_test_code="int some_variable = 0;"
 
4372
lt_simple_compile_test_code="int some_variable = 0;\n"
3347
4373
 
3348
4374
# Code to be used in simple link tests
3349
 
lt_simple_link_test_code='int main(){return(0);}'
 
4375
lt_simple_link_test_code='int main(){return(0);}\n'
3350
4376
 
3351
4377
_LT_AC_SYS_COMPILER
3352
4378
 
3448
4474
_LT_AC_TAGVAR(objext, $1)=$objext
3449
4475
 
3450
4476
# Code to be used in simple compile tests
3451
 
lt_simple_compile_test_code="int some_variable = 0;"
 
4477
lt_simple_compile_test_code="int some_variable = 0;\n"
3452
4478
 
3453
4479
# Code to be used in simple link tests
3454
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
4480
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3455
4481
 
3456
4482
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3457
4483
_LT_AC_SYS_COMPILER
3597
4623
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3598
4624
        then
3599
4625
          # We have reworked collect2
3600
 
          :
 
4626
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3601
4627
        else
3602
4628
          # We have old collect2
3603
4629
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3756
4782
      case $cc_basename in
3757
4783
        xlc*)
3758
4784
         output_verbose_link_cmd='echo'
3759
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
4785
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3760
4786
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3761
4787
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3762
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4788
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3763
4789
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3764
4790
          ;;
3765
4791
       *)
3793
4819
  freebsd-elf*)
3794
4820
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3795
4821
    ;;
3796
 
  freebsd* | dragonfly*)
 
4822
  freebsd* | kfreebsd*-gnu | dragonfly*)
3797
4823
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3798
4824
    # conventions
3799
4825
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3842
4868
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3843
4869
 
3844
4870
      case $host_cpu in
3845
 
      hppa*64*|ia64*) ;;
 
4871
      hppa*64*|ia64*)
 
4872
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
4873
        ;;
3846
4874
      *)
3847
4875
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3848
4876
        ;;
3910
4938
        ;;
3911
4939
    esac
3912
4940
    ;;
3913
 
  interix[[3-9]]*)
 
4941
  interix3*)
3914
4942
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3915
4943
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3916
4944
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3950
4978
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3951
4979
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3952
4980
    ;;
3953
 
  linux* | k*bsd*-gnu)
 
4981
  linux*)
3954
4982
    case $cc_basename in
3955
4983
      KCC*)
3956
4984
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4030
5058
        # dependencies.
4031
5059
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4032
5060
        ;;
4033
 
      *)
4034
 
        case `$CC -V 2>&1 | sed 5q` in
4035
 
        *Sun\ C*)
4036
 
          # Sun C++ 5.9
4037
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4038
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4039
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4040
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4041
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4042
 
 
4043
 
          # Not sure whether something based on
4044
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4045
 
          # would be better.
4046
 
          output_verbose_link_cmd='echo'
4047
 
 
4048
 
          # Archives containing C++ object files must be created using
4049
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4050
 
          # necessary to make sure instantiated templates are included
4051
 
          # in the archive.
4052
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4053
 
          ;;
4054
 
        esac
4055
 
        ;;
4056
5061
    esac
4057
5062
    ;;
4058
5063
  lynxos*)
4075
5080
        ;;
4076
5081
    esac
4077
5082
    ;;
4078
 
  netbsd* | netbsdelf*-gnu)
 
5083
  netbsd*)
4079
5084
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4080
5085
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4081
5086
      wlarc=
4091
5096
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4092
5097
    ;;
4093
5098
  openbsd*)
4094
 
    if test -f /usr/libexec/ld.so; then
4095
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4096
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4097
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4098
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4099
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4100
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4101
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4102
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4103
 
      fi
4104
 
      output_verbose_link_cmd='echo'
4105
 
    else
4106
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5099
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5100
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5101
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
5102
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5103
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5104
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
5105
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5106
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4107
5107
    fi
 
5108
    output_verbose_link_cmd='echo'
4108
5109
    ;;
4109
5110
  osf3*)
4110
5111
    case $cc_basename in
4266
5267
        case $host_os in
4267
5268
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4268
5269
          *)
4269
 
            # The compiler driver will combine and reorder linker options,
4270
 
            # but understands `-z linker_flag'.
 
5270
            # The C++ compiler is used as linker so we must use $wl
 
5271
            # flag to pass the commands to the underlying system
 
5272
            # linker. We must also pass each convience library through
 
5273
            # to the system linker between allextract/defaultextract.
 
5274
            # The C++ compiler will combine linker options so we
 
5275
            # cannot just pass the convience library names through
 
5276
            # without $wl.
4271
5277
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4272
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5278
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4273
5279
            ;;
4274
5280
        esac
4275
5281
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4316
5322
          fi
4317
5323
 
4318
5324
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4319
 
          case $host_os in
4320
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4321
 
          *)
4322
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4323
 
            ;;
4324
 
          esac
4325
5325
        fi
4326
5326
        ;;
4327
5327
    esac
4565
5565
# PORTME: override above test on systems where it is broken
4566
5566
ifelse([$1],[CXX],
4567
5567
[case $host_os in
4568
 
interix[[3-9]]*)
 
5568
interix3*)
4569
5569
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4570
5570
  # hack all around it, let's just trust "g++" to DTRT.
4571
5571
  _LT_AC_TAGVAR(predep_objects,$1)=
4573
5573
  _LT_AC_TAGVAR(postdeps,$1)=
4574
5574
  ;;
4575
5575
 
4576
 
linux*)
4577
 
  case `$CC -V 2>&1 | sed 5q` in
4578
 
  *Sun\ C*)
4579
 
    # Sun C++ 5.9
4580
 
    #
4581
 
    # The more standards-conforming stlport4 library is
4582
 
    # incompatible with the Cstd library. Avoid specifying
4583
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4584
 
    # -library=stlport4 depends on it.
4585
 
    case " $CXX $CXXFLAGS " in
4586
 
    *" -library=stlport4 "*)
4587
 
      solaris_use_stlport4=yes
4588
 
      ;;
4589
 
    esac
4590
 
    if test "$solaris_use_stlport4" != yes; then
4591
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4592
 
    fi
4593
 
    ;;
4594
 
  esac
4595
 
  ;;
4596
 
 
4597
5576
solaris*)
4598
5577
  case $cc_basename in
4599
5578
  CC*)
4600
 
    # The more standards-conforming stlport4 library is
4601
 
    # incompatible with the Cstd library. Avoid specifying
4602
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4603
 
    # -library=stlport4 depends on it.
4604
 
    case " $CXX $CXXFLAGS " in
4605
 
    *" -library=stlport4 "*)
4606
 
      solaris_use_stlport4=yes
4607
 
      ;;
4608
 
    esac
4609
 
 
4610
5579
    # Adding this requires a known-good setup of shared libraries for
4611
5580
    # Sun compiler versions before 5.6, else PIC objects from an old
4612
5581
    # archive will be linked into the output, leading to subtle bugs.
4613
 
    if test "$solaris_use_stlport4" != yes; then
4614
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4615
 
    fi
 
5582
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4616
5583
    ;;
4617
5584
  esac
4618
5585
  ;;
4661
5628
_LT_AC_TAGVAR(objext, $1)=$objext
4662
5629
 
4663
5630
# Code to be used in simple compile tests
4664
 
lt_simple_compile_test_code="\
4665
 
      subroutine t
4666
 
      return
4667
 
      end
4668
 
"
 
5631
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
4669
5632
 
4670
5633
# Code to be used in simple link tests
4671
 
lt_simple_link_test_code="\
4672
 
      program t
4673
 
      end
4674
 
"
 
5634
lt_simple_link_test_code="      program t\n      end\n"
4675
5635
 
4676
5636
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4677
5637
_LT_AC_SYS_COMPILER
4750
5710
_LT_AC_TAGVAR(objext, $1)=$objext
4751
5711
 
4752
5712
# Code to be used in simple compile tests
4753
 
lt_simple_compile_test_code="class foo {}"
 
5713
lt_simple_compile_test_code="class foo {}\n"
4754
5714
 
4755
5715
# Code to be used in simple link tests
4756
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
5716
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4757
5717
 
4758
5718
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4759
5719
_LT_AC_SYS_COMPILER
4806
5766
_LT_AC_TAGVAR(objext, $1)=$objext
4807
5767
 
4808
5768
# Code to be used in simple compile tests
4809
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
5769
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4810
5770
 
4811
5771
# Code to be used in simple link tests
4812
5772
lt_simple_link_test_code="$lt_simple_compile_test_code"
4895
5855
    _LT_AC_TAGVAR(module_cmds, $1) \
4896
5856
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4897
5857
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4898
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4899
5858
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4900
5859
    _LT_AC_TAGVAR(include_expsyms, $1); do
4901
5860
 
4942
5901
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4943
5902
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4944
5903
#
4945
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
5904
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4946
5905
# Free Software Foundation, Inc.
4947
5906
#
4948
5907
# This file is part of GNU Libtool:
5267
6226
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5268
6227
 
5269
6228
# Fix the shell variable \$srcfile for the compiler.
5270
 
fix_srcfile_path=$lt_fix_srcfile_path
 
6229
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5271
6230
 
5272
6231
# Set to yes if exported symbols are required.
5273
6232
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5350
6309
# ---------------------------------
5351
6310
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5352
6311
[AC_REQUIRE([AC_CANONICAL_HOST])
5353
 
AC_REQUIRE([LT_AC_PROG_SED])
5354
6312
AC_REQUIRE([AC_PROG_NM])
5355
6313
AC_REQUIRE([AC_OBJEXT])
5356
6314
# Check for command to grab the raw symbol name followed by C symbol from nm.
5387
6345
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5388
6346
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5389
6347
  ;;
5390
 
linux* | k*bsd*-gnu)
 
6348
linux*)
5391
6349
  if test "$host_cpu" = ia64; then
5392
6350
    symcode='[[ABCDGIRSTW]]'
5393
6351
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5577
6535
      # like `-m68040'.
5578
6536
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5579
6537
      ;;
5580
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6538
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5581
6539
      # PIC is the default for these OSes.
5582
6540
      ;;
5583
 
    mingw* | cygwin* | os2* | pw32*)
 
6541
    mingw* | os2* | pw32*)
5584
6542
      # This hack is so that the source file can tell whether it is being
5585
6543
      # built for inclusion in a dll (and should export symbols for example).
5586
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5587
 
      # (--disable-auto-import) libraries
5588
6544
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5589
6545
      ;;
5590
6546
    darwin* | rhapsody*)
5596
6552
      # DJGPP does not support shared libraries at all
5597
6553
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5598
6554
      ;;
5599
 
    interix[[3-9]]*)
 
6555
    interix3*)
5600
6556
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5601
6557
      # Instead, we relocate shared libraries at runtime.
5602
6558
      ;;
5662
6618
            ;;
5663
6619
        esac
5664
6620
        ;;
5665
 
      freebsd* | dragonfly*)
 
6621
      freebsd* | kfreebsd*-gnu | dragonfly*)
5666
6622
        # FreeBSD uses GNU C++
5667
6623
        ;;
5668
6624
      hpux9* | hpux10* | hpux11*)
5705
6661
            ;;
5706
6662
        esac
5707
6663
        ;;
5708
 
      linux* | k*bsd*-gnu)
 
6664
      linux*)
5709
6665
        case $cc_basename in
5710
6666
          KCC*)
5711
6667
            # KAI C++ Compiler
5732
6688
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5733
6689
            ;;
5734
6690
          *)
5735
 
            case `$CC -V 2>&1 | sed 5q` in
5736
 
            *Sun\ C*)
5737
 
              # Sun C++ 5.9
5738
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5739
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5740
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5741
 
              ;;
5742
 
            esac
5743
6691
            ;;
5744
6692
        esac
5745
6693
        ;;
5756
6704
            ;;
5757
6705
        esac
5758
6706
        ;;
5759
 
      netbsd* | netbsdelf*-gnu)
 
6707
      netbsd*)
5760
6708
        ;;
5761
6709
      osf3* | osf4* | osf5*)
5762
6710
        case $cc_basename in
5860
6808
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5861
6809
      ;;
5862
6810
 
5863
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6811
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5864
6812
      # PIC is the default for these OSes.
5865
6813
      ;;
5866
6814
 
5867
 
    mingw* | cygwin* | pw32* | os2*)
 
6815
    mingw* | pw32* | os2*)
5868
6816
      # This hack is so that the source file can tell whether it is being
5869
6817
      # built for inclusion in a dll (and should export symbols for example).
5870
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5871
 
      # (--disable-auto-import) libraries
5872
6818
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5873
6819
      ;;
5874
6820
 
5878
6824
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5879
6825
      ;;
5880
6826
 
5881
 
    interix[[3-9]]*)
 
6827
    interix3*)
5882
6828
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5883
6829
      # Instead, we relocate shared libraries at runtime.
5884
6830
      ;;
5936
6882
       esac
5937
6883
       ;;
5938
6884
 
5939
 
    mingw* | cygwin* | pw32* | os2*)
 
6885
    mingw* | pw32* | os2*)
5940
6886
      # This hack is so that the source file can tell whether it is being
5941
6887
      # built for inclusion in a dll (and should export symbols for example).
5942
6888
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5969
6915
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5970
6916
      ;;
5971
6917
 
5972
 
    linux* | k*bsd*-gnu)
 
6918
    linux*)
5973
6919
      case $cc_basename in
5974
6920
      icc* | ecc*)
5975
6921
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5988
6934
        # All Alpha code is PIC.
5989
6935
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5990
6936
        ;;
5991
 
      *)
5992
 
        case `$CC -V 2>&1 | sed 5q` in
5993
 
        *Sun\ C*)
5994
 
          # Sun C 5.9
5995
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5996
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5997
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5998
 
          ;;
5999
 
        *Sun\ F*)
6000
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6001
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6002
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6003
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6004
 
          ;;
6005
 
        esac
6006
 
        ;;
6007
6937
      esac
6008
6938
      ;;
6009
6939
 
6013
6943
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6014
6944
      ;;
6015
6945
 
6016
 
    rdos*)
6017
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6018
 
      ;;
6019
 
 
6020
6946
    solaris*)
6021
6947
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6022
6948
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6111
7037
# ------------------------------------
6112
7038
# See if the linker supports building shared libraries.
6113
7039
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6114
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6115
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
7040
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6116
7041
ifelse([$1],[CXX],[
6117
7042
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6118
7043
  case $host_os in
6129
7054
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6130
7055
  ;;
6131
7056
  cygwin* | mingw*)
6132
 
    _LT_AC_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'
6133
 
  ;;
6134
 
  linux* | k*bsd*-gnu)
6135
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
7057
    _LT_AC_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'
6136
7058
  ;;
6137
7059
  *)
6138
7060
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6271
7193
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6272
7194
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6273
7195
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6274
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
7196
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6275
7197
 
6276
7198
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6277
7199
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6289
7211
      fi
6290
7212
      ;;
6291
7213
 
6292
 
    interix[[3-9]]*)
 
7214
    interix3*)
6293
7215
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6294
7216
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6295
7217
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6304
7226
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6305
7227
      ;;
6306
7228
 
6307
 
    gnu* | linux* | k*bsd*-gnu)
 
7229
    linux*)
6308
7230
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6309
7231
        tmp_addflag=
6310
7232
        case $cc_basename,$host_cpu in
6322
7244
        ifc* | ifort*)                  # Intel Fortran compiler
6323
7245
          tmp_addflag=' -nofor_main' ;;
6324
7246
        esac
6325
 
        case `$CC -V 2>&1 | sed 5q` in
6326
 
        *Sun\ C*)                       # Sun C 5.9
6327
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6328
 
          tmp_sharedflag='-G' ;;
6329
 
        *Sun\ F*)                       # Sun Fortran 8.3
6330
 
          tmp_sharedflag='-G' ;;
6331
 
        *)
6332
 
          tmp_sharedflag='-shared' ;;
6333
 
        esac
6334
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7247
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6335
7248
 
6336
7249
        if test $supports_anon_versioning = yes; then
6337
7250
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6338
7251
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6339
7252
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6340
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7253
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6341
7254
        fi
6342
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6343
7255
      else
6344
7256
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6345
7257
      fi
6346
7258
      ;;
6347
7259
 
6348
 
    netbsd* | netbsdelf*-gnu)
 
7260
    netbsd*)
6349
7261
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6350
7262
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6351
7263
        wlarc=
6378
7290
 
6379
7291
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6380
7292
      case `$LD -v 2>&1` in
6381
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
7293
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
6382
7294
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6383
7295
        cat <<_LT_EOF 1>&2
6384
7296
 
6497
7409
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6498
7410
          then
6499
7411
          # We have reworked collect2
6500
 
          :
 
7412
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6501
7413
          else
6502
7414
          # We have old collect2
6503
7415
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6590
7502
      # The linker will automatically build a .lib file if we build a DLL.
6591
7503
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6592
7504
      # FIXME: Should let the user specify the lib program.
6593
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
7505
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6594
7506
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6595
7507
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6596
7508
      ;;
6632
7544
      case $cc_basename in
6633
7545
        xlc*)
6634
7546
         output_verbose_link_cmd='echo'
6635
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
7547
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6636
7548
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6637
7549
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6638
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7550
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6639
7551
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6640
7552
          ;;
6641
7553
       *)
6675
7587
      ;;
6676
7588
 
6677
7589
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6678
 
    freebsd* | dragonfly*)
 
7590
    freebsd* | kfreebsd*-gnu | dragonfly*)
6679
7591
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6680
7592
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6681
7593
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6777
7689
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6778
7690
      ;;
6779
7691
 
6780
 
    netbsd* | netbsdelf*-gnu)
 
7692
    netbsd*)
6781
7693
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6782
7694
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6783
7695
      else
6797
7709
      ;;
6798
7710
 
6799
7711
    openbsd*)
6800
 
      if test -f /usr/libexec/ld.so; then
6801
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6802
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6803
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6804
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6805
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6806
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6807
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6808
 
        else
6809
 
          case $host_os in
6810
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6811
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6812
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6813
 
             ;;
6814
 
           *)
6815
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6816
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6817
 
             ;;
6818
 
          esac
6819
 
        fi
 
7712
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7713
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7714
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7715
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7716
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7717
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7718
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6820
7719
      else
6821
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7720
       case $host_os in
 
7721
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
7722
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7723
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7724
           ;;
 
7725
         *)
 
7726
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7727
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7728
           ;;
 
7729
       esac
6822
7730
      fi
6823
7731
      ;;
6824
7732
 
6877
7785
      case $host_os in
6878
7786
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6879
7787
      *)
6880
 
        # The compiler driver will combine and reorder linker options,
6881
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6882
 
        # but is careful enough not to reorder.
 
7788
        # The compiler driver will combine linker options so we
 
7789
        # cannot just pass the convience library names through
 
7790
        # without $wl, iff we do not link with $LD.
 
7791
        # Luckily, gcc supports the same syntax we need for Sun Studio.
6883
7792
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6884
 
        if test "$GCC" = yes; then
6885
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6886
 
        else
6887
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6888
 
        fi
6889
 
        ;;
 
7793
        case $wlarc in
 
7794
        '')
 
7795
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
7796
        *)
 
7797
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7798
        esac ;;
6890
7799
      esac
6891
7800
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6892
7801
      ;;
6943
7852
      fi
6944
7853
      ;;
6945
7854
 
6946
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7855
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6947
7856
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6948
7857
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6949
7858
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7018
7927
      # to ld, don't add -lc before -lgcc.
7019
7928
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7020
7929
      $rm conftest*
7021
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7930
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7022
7931
 
7023
7932
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7024
7933
        soname=conftest
7121
8030
[AC_CHECK_TOOL(RC, windres, no)
7122
8031
])
7123
8032
 
7124
 
 
7125
 
# Cheap backport of AS_EXECUTABLE_P and required macros
7126
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
7127
 
 
7128
 
# _AS_TEST_PREPARE
7129
 
# ----------------
7130
 
m4_ifndef([_AS_TEST_PREPARE],
7131
 
[m4_defun([_AS_TEST_PREPARE],
7132
 
[if test -x / >/dev/null 2>&1; then
7133
 
  as_executable_p='test -x'
7134
 
else
7135
 
  as_executable_p='test -f'
7136
 
fi
7137
 
])])# _AS_TEST_PREPARE
7138
 
 
7139
 
# AS_EXECUTABLE_P
7140
 
# ---------------
7141
 
# Check whether a file is executable.
7142
 
m4_ifndef([AS_EXECUTABLE_P],
7143
 
[m4_defun([AS_EXECUTABLE_P],
7144
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7145
 
$as_executable_p $1[]dnl
7146
 
])])# AS_EXECUTABLE_P
7147
 
 
7148
8033
# NOTE: This macro has been submitted for inclusion into   #
7149
8034
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7150
8035
#  a released version of Autoconf we should remove this    #
7165
8050
  test -z "$as_dir" && as_dir=.
7166
8051
  for lt_ac_prog in sed gsed; do
7167
8052
    for ac_exec_ext in '' $ac_executable_extensions; do
7168
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
8053
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7169
8054
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7170
8055
      fi
7171
8056
    done
7172
8057
  done
7173
8058
done
7174
 
IFS=$as_save_IFS
7175
8059
lt_ac_max=0
7176
8060
lt_ac_count=0
7177
8061
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7204
8088
done
7205
8089
])
7206
8090
SED=$lt_cv_path_SED
7207
 
AC_SUBST([SED])
7208
8091
AC_MSG_RESULT([$SED])
7209
8092
])
7210
8093
 
7346
8229
 
7347
8230
_PKG_TEXT
7348
8231
])],
7349
 
                [AC_MSG_RESULT([no])
7350
 
                $4])
 
8232
                [$4])
7351
8233
elif test $pkg_failed = untried; then
7352
8234
        ifelse([$4], , [AC_MSG_FAILURE(dnl
7353
8235
[The pkg-config script could not be found or is too old.  Make sure it
7356
8238
 
7357
8239
_PKG_TEXT
7358
8240
 
7359
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
8241
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
7360
8242
                [$4])
7361
8243
else
7362
8244
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7366
8248
fi[]dnl
7367
8249
])# PKG_CHECK_MODULES
7368
8250
 
7369
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
7370
 
#
7371
 
# This file is free software; the Free Software Foundation
7372
 
# gives unlimited permission to copy and/or distribute it,
7373
 
# with or without modifications, as long as this notice is preserved.
7374
 
 
7375
 
# AM_AUTOMAKE_VERSION(VERSION)
7376
 
# ----------------------------
7377
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7378
 
# generated from the m4 files accompanying Automake X.Y.
7379
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7380
 
 
7381
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
7382
 
# -------------------------------
7383
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
7384
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7385
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7386
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
7387
 
 
7388
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7389
 
 
7390
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7391
 
#
7392
 
# This file is free software; the Free Software Foundation
7393
 
# gives unlimited permission to copy and/or distribute it,
7394
 
# with or without modifications, as long as this notice is preserved.
7395
 
 
7396
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7397
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
7398
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
7399
 
#
7400
 
# Of course, Automake must honor this variable whenever it calls a
7401
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
7402
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
7403
 
# depending on how configure is run.  This is pretty annoying, since
7404
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
7405
 
# source directory, any form will work fine, but in subdirectories a
7406
 
# relative path needs to be adjusted first.
7407
 
#
7408
 
# $ac_aux_dir/missing
7409
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
7410
 
# $top_srcdir/$ac_aux_dir/missing
7411
 
#    fails if $ac_aux_dir is absolute,
7412
 
#    fails when called from a subdirectory in a VPATH build with
7413
 
#          a relative $ac_aux_dir
7414
 
#
7415
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
7416
 
# are both prefixed by $srcdir.  In an in-source build this is usually
7417
 
# harmless because $srcdir is `.', but things will broke when you
7418
 
# start a VPATH build or use an absolute $srcdir.
7419
 
#
7420
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
7421
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
7422
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
7423
 
# and then we would define $MISSING as
7424
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
7425
 
# This will work as long as MISSING is not called from configure, because
7426
 
# unfortunately $(top_srcdir) has no meaning in configure.
7427
 
# However there are other variables, like CC, which are often used in
7428
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
7429
 
#
7430
 
# Another solution, used here, is to always expand $ac_aux_dir to an
7431
 
# absolute PATH.  The drawback is that using absolute paths prevent a
7432
 
# configured tree to be moved without reconfiguration.
7433
 
 
7434
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
7435
 
[dnl Rely on autoconf to set up CDPATH properly.
7436
 
AC_PREREQ([2.50])dnl
7437
 
# expand $ac_aux_dir to an absolute path
7438
 
am_aux_dir=`cd $ac_aux_dir && pwd`
7439
 
])
7440
 
 
7441
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
7442
 
 
7443
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
7444
 
# Free Software Foundation, Inc.
7445
 
#
7446
 
# This file is free software; the Free Software Foundation
7447
 
# gives unlimited permission to copy and/or distribute it,
7448
 
# with or without modifications, as long as this notice is preserved.
7449
 
 
7450
 
# serial 7
7451
 
 
7452
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7453
 
# -------------------------------------
7454
 
# Define a conditional.
7455
 
AC_DEFUN([AM_CONDITIONAL],
7456
 
[AC_PREREQ(2.52)dnl
7457
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
7458
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7459
 
AC_SUBST([$1_TRUE])
7460
 
AC_SUBST([$1_FALSE])
7461
 
if $2; then
7462
 
  $1_TRUE=
7463
 
  $1_FALSE='#'
7464
 
else
7465
 
  $1_TRUE='#'
7466
 
  $1_FALSE=
7467
 
fi
7468
 
AC_CONFIG_COMMANDS_PRE(
7469
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
7470
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
7471
 
Usually this means the macro was only invoked conditionally.]])
7472
 
fi])])
7473
 
 
7474
 
 
7475
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7476
 
# Free Software Foundation, Inc.
7477
 
#
7478
 
# This file is free software; the Free Software Foundation
7479
 
# gives unlimited permission to copy and/or distribute it,
7480
 
# with or without modifications, as long as this notice is preserved.
7481
 
 
7482
 
# serial 8
7483
 
 
7484
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7485
 
# written in clear, in which case automake, when reading aclocal.m4,
7486
 
# will think it sees a *use*, and therefore will trigger all it's
7487
 
# C support machinery.  Also note that it means that autoscan, seeing
7488
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7489
 
 
7490
 
 
7491
 
# _AM_DEPENDENCIES(NAME)
7492
 
# ----------------------
7493
 
# See how the compiler implements dependency checking.
7494
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
7495
 
# We try a few techniques and use that to set a single cache variable.
7496
 
#
7497
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
7498
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
7499
 
# dependency, and given that the user is not expected to run this macro,
7500
 
# just rely on AC_PROG_CC.
7501
 
AC_DEFUN([_AM_DEPENDENCIES],
7502
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
7503
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
7504
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
7505
 
AC_REQUIRE([AM_DEP_TRACK])dnl
7506
 
 
7507
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
7508
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
7509
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7510
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
7511
 
                   [depcc="$$1"   am_compiler_list=])
7512
 
 
7513
 
AC_CACHE_CHECK([dependency style of $depcc],
7514
 
               [am_cv_$1_dependencies_compiler_type],
7515
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7516
 
  # We make a subdir and do the tests there.  Otherwise we can end up
7517
 
  # making bogus files that we don't know about and never remove.  For
7518
 
  # instance it was reported that on HP-UX the gcc test will end up
7519
 
  # making a dummy file named `D' -- because `-MD' means `put the output
7520
 
  # in D'.
7521
 
  mkdir conftest.dir
7522
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
7523
 
  # using a relative directory.
7524
 
  cp "$am_depcomp" conftest.dir
7525
 
  cd conftest.dir
7526
 
  # We will build objects and dependencies in a subdirectory because
7527
 
  # it helps to detect inapplicable dependency modes.  For instance
7528
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
7529
 
  # side effect of compilation, but ICC will put the dependencies in
7530
 
  # the current directory while Tru64 will put them in the object
7531
 
  # directory.
7532
 
  mkdir sub
7533
 
 
7534
 
  am_cv_$1_dependencies_compiler_type=none
7535
 
  if test "$am_compiler_list" = ""; then
7536
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7537
 
  fi
7538
 
  for depmode in $am_compiler_list; do
7539
 
    # Setup a source with many dependencies, because some compilers
7540
 
    # like to wrap large dependency lists on column 80 (with \), and
7541
 
    # we should not choose a depcomp mode which is confused by this.
7542
 
    #
7543
 
    # We need to recreate these files for each test, as the compiler may
7544
 
    # overwrite some of them when testing with obscure command lines.
7545
 
    # This happens at least with the AIX C compiler.
7546
 
    : > sub/conftest.c
7547
 
    for i in 1 2 3 4 5 6; do
7548
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7549
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7550
 
      # Solaris 8's {/usr,}/bin/sh.
7551
 
      touch sub/conftst$i.h
7552
 
    done
7553
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7554
 
 
7555
 
    case $depmode in
7556
 
    nosideeffect)
7557
 
      # after this tag, mechanisms are not by side-effect, so they'll
7558
 
      # only be used when explicitly requested
7559
 
      if test "x$enable_dependency_tracking" = xyes; then
7560
 
        continue
7561
 
      else
7562
 
        break
7563
 
      fi
7564
 
      ;;
7565
 
    none) break ;;
7566
 
    esac
7567
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7568
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
7569
 
    # handle `-M -o', and we need to detect this.
7570
 
    if depmode=$depmode \
7571
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7572
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7573
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7574
 
         >/dev/null 2>conftest.err &&
7575
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7576
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7577
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7578
 
      # icc doesn't choke on unknown options, it will just issue warnings
7579
 
      # or remarks (even with -Werror).  So we grep stderr for any message
7580
 
      # that says an option was ignored or not supported.
7581
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
7582
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
7583
 
      # The diagnosis changed in icc 8.0:
7584
 
      #   icc: Command line remark: option '-MP' not supported
7585
 
      if (grep 'ignoring option' conftest.err ||
7586
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7587
 
        am_cv_$1_dependencies_compiler_type=$depmode
7588
 
        break
7589
 
      fi
7590
 
    fi
7591
 
  done
7592
 
 
7593
 
  cd ..
7594
 
  rm -rf conftest.dir
7595
 
else
7596
 
  am_cv_$1_dependencies_compiler_type=none
7597
 
fi
7598
 
])
7599
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
7600
 
AM_CONDITIONAL([am__fastdep$1], [
7601
 
  test "x$enable_dependency_tracking" != xno \
7602
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
7603
 
])
7604
 
 
7605
 
 
7606
 
# AM_SET_DEPDIR
7607
 
# -------------
7608
 
# Choose a directory name for dependency files.
7609
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
7610
 
AC_DEFUN([AM_SET_DEPDIR],
7611
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7612
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
7613
 
])
7614
 
 
7615
 
 
7616
 
# AM_DEP_TRACK
7617
 
# ------------
7618
 
AC_DEFUN([AM_DEP_TRACK],
7619
 
[AC_ARG_ENABLE(dependency-tracking,
7620
 
[  --disable-dependency-tracking  speeds up one-time build
7621
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
7622
 
if test "x$enable_dependency_tracking" != xno; then
7623
 
  am_depcomp="$ac_aux_dir/depcomp"
7624
 
  AMDEPBACKSLASH='\'
7625
 
fi
7626
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7627
 
AC_SUBST([AMDEPBACKSLASH])
7628
 
])
7629
 
 
7630
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7631
 
 
7632
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7633
 
# Free Software Foundation, Inc.
7634
 
#
7635
 
# This file is free software; the Free Software Foundation
7636
 
# gives unlimited permission to copy and/or distribute it,
7637
 
# with or without modifications, as long as this notice is preserved.
7638
 
 
7639
 
#serial 3
7640
 
 
7641
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7642
 
# ------------------------------
7643
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7644
 
[for mf in $CONFIG_FILES; do
7645
 
  # Strip MF so we end up with the name of the file.
7646
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
7647
 
  # Check whether this is an Automake generated Makefile or not.
7648
 
  # We used to match only the files named `Makefile.in', but
7649
 
  # some people rename them; so instead we look at the file content.
7650
 
  # Grep'ing the first line is not enough: some people post-process
7651
 
  # each Makefile.in and add a new line on top of each file to say so.
7652
 
  # So let's grep whole file.
7653
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7654
 
    dirpart=`AS_DIRNAME("$mf")`
7655
 
  else
7656
 
    continue
7657
 
  fi
7658
 
  # Extract the definition of DEPDIR, am__include, and am__quote
7659
 
  # from the Makefile without running `make'.
7660
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7661
 
  test -z "$DEPDIR" && continue
7662
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
7663
 
  test -z "am__include" && continue
7664
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7665
 
  # When using ansi2knr, U may be empty or an underscore; expand it
7666
 
  U=`sed -n 's/^U = //p' < "$mf"`
7667
 
  # Find all dependency output files, they are included files with
7668
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
7669
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
7670
 
  # expansion.
7671
 
  for file in `sed -n "
7672
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7673
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7674
 
    # Make sure the directory exists.
7675
 
    test -f "$dirpart/$file" && continue
7676
 
    fdir=`AS_DIRNAME(["$file"])`
7677
 
    AS_MKDIR_P([$dirpart/$fdir])
7678
 
    # echo "creating $dirpart/$file"
7679
 
    echo '# dummy' > "$dirpart/$file"
7680
 
  done
7681
 
done
7682
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7683
 
 
7684
 
 
7685
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
7686
 
# -----------------------------
7687
 
# This macro should only be invoked once -- use via AC_REQUIRE.
7688
 
#
7689
 
# This code is only required when automatic dependency tracking
7690
 
# is enabled.  FIXME.  This creates each `.P' file that we will
7691
 
# need in order to bootstrap the dependency handling code.
7692
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7693
 
[AC_CONFIG_COMMANDS([depfiles],
7694
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7695
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7696
 
])
7697
 
 
7698
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7699
 
# Free Software Foundation, Inc.
7700
 
#
7701
 
# This file is free software; the Free Software Foundation
7702
 
# gives unlimited permission to copy and/or distribute it,
7703
 
# with or without modifications, as long as this notice is preserved.
7704
 
 
7705
 
# serial 8
7706
 
 
7707
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
7708
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7709
 
 
7710
 
# Do all the work for Automake.                             -*- Autoconf -*-
7711
 
 
7712
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7713
 
# Free Software Foundation, Inc.
7714
 
#
7715
 
# This file is free software; the Free Software Foundation
7716
 
# gives unlimited permission to copy and/or distribute it,
7717
 
# with or without modifications, as long as this notice is preserved.
7718
 
 
7719
 
# serial 12
7720
 
 
7721
 
# This macro actually does too much.  Some checks are only needed if
7722
 
# your package does certain things.  But this isn't really a big deal.
7723
 
 
7724
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7725
 
# AM_INIT_AUTOMAKE([OPTIONS])
7726
 
# -----------------------------------------------
7727
 
# The call with PACKAGE and VERSION arguments is the old style
7728
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
7729
 
# and VERSION should now be passed to AC_INIT and removed from
7730
 
# the call to AM_INIT_AUTOMAKE.
7731
 
# We support both call styles for the transition.  After
7732
 
# the next Automake release, Autoconf can make the AC_INIT
7733
 
# arguments mandatory, and then we can depend on a new Autoconf
7734
 
# release and drop the old call support.
7735
 
AC_DEFUN([AM_INIT_AUTOMAKE],
7736
 
[AC_PREREQ([2.58])dnl
7737
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7738
 
dnl the ones we care about.
7739
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7740
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7741
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
7742
 
# test to see if srcdir already configured
7743
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7744
 
   test -f $srcdir/config.status; then
7745
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7746
 
fi
7747
 
 
7748
 
# test whether we have cygpath
7749
 
if test -z "$CYGPATH_W"; then
7750
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
7751
 
    CYGPATH_W='cygpath -w'
7752
 
  else
7753
 
    CYGPATH_W=echo
7754
 
  fi
7755
 
fi
7756
 
AC_SUBST([CYGPATH_W])
7757
 
 
7758
 
# Define the identity of the package.
7759
 
dnl Distinguish between old-style and new-style calls.
7760
 
m4_ifval([$2],
7761
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7762
 
 AC_SUBST([PACKAGE], [$1])dnl
7763
 
 AC_SUBST([VERSION], [$2])],
7764
 
[_AM_SET_OPTIONS([$1])dnl
7765
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7766
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7767
 
 
7768
 
_AM_IF_OPTION([no-define],,
7769
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7770
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7771
 
 
7772
 
# Some tools Automake needs.
7773
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
7774
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7775
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7776
 
AM_MISSING_PROG(AUTOCONF, autoconf)
7777
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7778
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
7779
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
7780
 
AM_PROG_INSTALL_SH
7781
 
AM_PROG_INSTALL_STRIP
7782
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7783
 
# We need awk for the "check" target.  The system "awk" is bad on
7784
 
# some platforms.
7785
 
AC_REQUIRE([AC_PROG_AWK])dnl
7786
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7787
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7788
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7789
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7790
 
                             [_AM_PROG_TAR([v7])])])
7791
 
_AM_IF_OPTION([no-dependencies],,
7792
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7793
 
                  [_AM_DEPENDENCIES(CC)],
7794
 
                  [define([AC_PROG_CC],
7795
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7796
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7797
 
                  [_AM_DEPENDENCIES(CXX)],
7798
 
                  [define([AC_PROG_CXX],
7799
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7800
 
])
7801
 
])
7802
 
 
7803
 
 
7804
 
# When config.status generates a header, we must update the stamp-h file.
7805
 
# This file resides in the same directory as the config header
7806
 
# that is generated.  The stamp files are numbered to have different names.
7807
 
 
7808
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7809
 
# loop where config.status creates the headers, so we can generate
7810
 
# our stamp files there.
7811
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7812
 
[# Compute $1's index in $config_headers.
7813
 
_am_stamp_count=1
7814
 
for _am_header in $config_headers :; do
7815
 
  case $_am_header in
7816
 
    $1 | $1:* )
7817
 
      break ;;
7818
 
    * )
7819
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7820
 
  esac
7821
 
done
7822
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7823
 
 
7824
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7825
 
#
7826
 
# This file is free software; the Free Software Foundation
7827
 
# gives unlimited permission to copy and/or distribute it,
7828
 
# with or without modifications, as long as this notice is preserved.
7829
 
 
7830
 
# AM_PROG_INSTALL_SH
7831
 
# ------------------
7832
 
# Define $install_sh.
7833
 
AC_DEFUN([AM_PROG_INSTALL_SH],
7834
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7835
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7836
 
AC_SUBST(install_sh)])
7837
 
 
7838
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7839
 
#
7840
 
# This file is free software; the Free Software Foundation
7841
 
# gives unlimited permission to copy and/or distribute it,
7842
 
# with or without modifications, as long as this notice is preserved.
7843
 
 
7844
 
# serial 2
7845
 
 
7846
 
# Check whether the underlying file-system supports filenames
7847
 
# with a leading dot.  For instance MS-DOS doesn't.
7848
 
AC_DEFUN([AM_SET_LEADING_DOT],
7849
 
[rm -rf .tst 2>/dev/null
7850
 
mkdir .tst 2>/dev/null
7851
 
if test -d .tst; then
7852
 
  am__leading_dot=.
7853
 
else
7854
 
  am__leading_dot=_
7855
 
fi
7856
 
rmdir .tst 2>/dev/null
7857
 
AC_SUBST([am__leading_dot])])
7858
 
 
7859
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
7860
 
# From Jim Meyering
7861
 
 
7862
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7863
 
# Free Software Foundation, Inc.
7864
 
#
7865
 
# This file is free software; the Free Software Foundation
7866
 
# gives unlimited permission to copy and/or distribute it,
7867
 
# with or without modifications, as long as this notice is preserved.
7868
 
 
7869
 
# serial 4
7870
 
 
7871
 
AC_DEFUN([AM_MAINTAINER_MODE],
7872
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7873
 
  dnl maintainer-mode is disabled by default
7874
 
  AC_ARG_ENABLE(maintainer-mode,
7875
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
7876
 
                          (and sometimes confusing) to the casual installer],
7877
 
      USE_MAINTAINER_MODE=$enableval,
7878
 
      USE_MAINTAINER_MODE=no)
7879
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7880
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7881
 
  MAINT=$MAINTAINER_MODE_TRUE
7882
 
  AC_SUBST(MAINT)dnl
7883
 
]
7884
 
)
7885
 
 
7886
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7887
 
 
7888
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
7889
 
 
7890
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
7891
 
#
7892
 
# This file is free software; the Free Software Foundation
7893
 
# gives unlimited permission to copy and/or distribute it,
7894
 
# with or without modifications, as long as this notice is preserved.
7895
 
 
7896
 
# serial 3
7897
 
 
7898
 
# AM_MAKE_INCLUDE()
7899
 
# -----------------
7900
 
# Check to see how make treats includes.
7901
 
AC_DEFUN([AM_MAKE_INCLUDE],
7902
 
[am_make=${MAKE-make}
7903
 
cat > confinc << 'END'
7904
 
am__doit:
7905
 
        @echo done
7906
 
.PHONY: am__doit
7907
 
END
7908
 
# If we don't find an include directive, just comment out the code.
7909
 
AC_MSG_CHECKING([for style of include used by $am_make])
7910
 
am__include="#"
7911
 
am__quote=
7912
 
_am_result=none
7913
 
# First try GNU make style include.
7914
 
echo "include confinc" > confmf
7915
 
# We grep out `Entering directory' and `Leaving directory'
7916
 
# messages which can occur if `w' ends up in MAKEFLAGS.
7917
 
# In particular we don't look at `^make:' because GNU make might
7918
 
# be invoked under some other name (usually "gmake"), in which
7919
 
# case it prints its new name instead of `make'.
7920
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7921
 
   am__include=include
7922
 
   am__quote=
7923
 
   _am_result=GNU
7924
 
fi
7925
 
# Now try BSD make style include.
7926
 
if test "$am__include" = "#"; then
7927
 
   echo '.include "confinc"' > confmf
7928
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7929
 
      am__include=.include
7930
 
      am__quote="\""
7931
 
      _am_result=BSD
7932
 
   fi
7933
 
fi
7934
 
AC_SUBST([am__include])
7935
 
AC_SUBST([am__quote])
7936
 
AC_MSG_RESULT([$_am_result])
7937
 
rm -f confinc confmf
7938
 
])
7939
 
 
7940
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7941
 
 
7942
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7943
 
# Free Software Foundation, Inc.
7944
 
#
7945
 
# This file is free software; the Free Software Foundation
7946
 
# gives unlimited permission to copy and/or distribute it,
7947
 
# with or without modifications, as long as this notice is preserved.
7948
 
 
7949
 
# serial 4
7950
 
 
7951
 
# AM_MISSING_PROG(NAME, PROGRAM)
7952
 
# ------------------------------
7953
 
AC_DEFUN([AM_MISSING_PROG],
7954
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
7955
 
$1=${$1-"${am_missing_run}$2"}
7956
 
AC_SUBST($1)])
7957
 
 
7958
 
 
7959
 
# AM_MISSING_HAS_RUN
7960
 
# ------------------
7961
 
# Define MISSING if not defined so far and test if it supports --run.
7962
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
7963
 
AC_DEFUN([AM_MISSING_HAS_RUN],
7964
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7965
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7966
 
# Use eval to expand $SHELL
7967
 
if eval "$MISSING --run true"; then
7968
 
  am_missing_run="$MISSING --run "
7969
 
else
7970
 
  am_missing_run=
7971
 
  AC_MSG_WARN([`missing' script is too old or missing])
7972
 
fi
7973
 
])
7974
 
 
7975
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
7976
 
#
7977
 
# This file is free software; the Free Software Foundation
7978
 
# gives unlimited permission to copy and/or distribute it,
7979
 
# with or without modifications, as long as this notice is preserved.
7980
 
 
7981
 
# AM_PROG_MKDIR_P
7982
 
# ---------------
7983
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7984
 
#
7985
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7986
 
# created by `make install' are always world readable, even if the
7987
 
# installer happens to have an overly restrictive umask (e.g. 077).
7988
 
# This was a mistake.  There are at least two reasons why we must not
7989
 
# use `-m 0755':
7990
 
#   - it causes special bits like SGID to be ignored,
7991
 
#   - it may be too restrictive (some setups expect 775 directories).
7992
 
#
7993
 
# Do not use -m 0755 and let people choose whatever they expect by
7994
 
# setting umask.
7995
 
#
7996
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7997
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7998
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7999
 
# concurrently, both version can detect that a/ is missing, but only
8000
 
# one can create it and the other will error out.  Consequently we
8001
 
# restrict ourselves to GNU make (using the --version option ensures
8002
 
# this.)
8003
 
AC_DEFUN([AM_PROG_MKDIR_P],
8004
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8005
 
  # We used to keeping the `.' as first argument, in order to
8006
 
  # allow $(mkdir_p) to be used without argument.  As in
8007
 
  #   $(mkdir_p) $(somedir)
8008
 
  # where $(somedir) is conditionally defined.  However this is wrong
8009
 
  # for two reasons:
8010
 
  #  1. if the package is installed by a user who cannot write `.'
8011
 
  #     make install will fail,
8012
 
  #  2. the above comment should most certainly read
8013
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
8014
 
  #     so it does not work when $(somedir) is undefined and
8015
 
  #     $(DESTDIR) is not.
8016
 
  #  To support the latter case, we have to write
8017
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8018
 
  #  so the `.' trick is pointless.
8019
 
  mkdir_p='mkdir -p --'
8020
 
else
8021
 
  # On NextStep and OpenStep, the `mkdir' command does not
8022
 
  # recognize any option.  It will interpret all options as
8023
 
  # directories to create, and then abort because `.' already
8024
 
  # exists.
8025
 
  for d in ./-p ./--version;
8026
 
  do
8027
 
    test -d $d && rmdir $d
8028
 
  done
8029
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8030
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
8031
 
    mkdir_p='$(mkinstalldirs)'
8032
 
  else
8033
 
    mkdir_p='$(install_sh) -d'
8034
 
  fi
8035
 
fi
8036
 
AC_SUBST([mkdir_p])])
8037
 
 
8038
 
# Helper functions for option handling.                     -*- Autoconf -*-
8039
 
 
8040
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
8041
 
#
8042
 
# This file is free software; the Free Software Foundation
8043
 
# gives unlimited permission to copy and/or distribute it,
8044
 
# with or without modifications, as long as this notice is preserved.
8045
 
 
8046
 
# serial 3
8047
 
 
8048
 
# _AM_MANGLE_OPTION(NAME)
8049
 
# -----------------------
8050
 
AC_DEFUN([_AM_MANGLE_OPTION],
8051
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8052
 
 
8053
 
# _AM_SET_OPTION(NAME)
8054
 
# ------------------------------
8055
 
# Set option NAME.  Presently that only means defining a flag for this option.
8056
 
AC_DEFUN([_AM_SET_OPTION],
8057
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8058
 
 
8059
 
# _AM_SET_OPTIONS(OPTIONS)
8060
 
# ----------------------------------
8061
 
# OPTIONS is a space-separated list of Automake options.
8062
 
AC_DEFUN([_AM_SET_OPTIONS],
8063
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8064
 
 
8065
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8066
 
# -------------------------------------------
8067
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8068
 
AC_DEFUN([_AM_IF_OPTION],
8069
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8070
 
 
8071
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8072
 
# Free Software Foundation, Inc.
8073
 
#
8074
 
# This file is free software; the Free Software Foundation
8075
 
# gives unlimited permission to copy and/or distribute it,
8076
 
# with or without modifications, as long as this notice is preserved.
8077
 
 
8078
 
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8079
 
# ---------------------------------------------------------------------------
8080
 
# Adds support for distributing Python modules and packages.  To
8081
 
# install modules, copy them to $(pythondir), using the python_PYTHON
8082
 
# automake variable.  To install a package with the same name as the
8083
 
# automake package, install to $(pkgpythondir), or use the
8084
 
# pkgpython_PYTHON automake variable.
8085
 
#
8086
 
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
8087
 
# locations to install python extension modules (shared libraries).
8088
 
# Another macro is required to find the appropriate flags to compile
8089
 
# extension modules.
8090
 
#
8091
 
# If your package is configured with a different prefix to python,
8092
 
# users will have to add the install directory to the PYTHONPATH
8093
 
# environment variable, or create a .pth file (see the python
8094
 
# documentation for details).
8095
 
#
8096
 
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
8097
 
# cause an error if the version of python installed on the system
8098
 
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
8099
 
# numbers and dots only.
8100
 
AC_DEFUN([AM_PATH_PYTHON],
8101
 
 [
8102
 
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
8103
 
  dnl supported because the default installation locations changed from
8104
 
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
8105
 
  dnl in 1.5.
8106
 
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
8107
 
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
8108
 
python2.1 python2.0 python1.6 python1.5])
8109
 
 
8110
 
  m4_if([$1],[],[
8111
 
    dnl No version check is needed.
8112
 
    # Find any Python interpreter.
8113
 
    if test -z "$PYTHON"; then
8114
 
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
8115
 
    fi
8116
 
    am_display_PYTHON=python
8117
 
  ], [
8118
 
    dnl A version check is needed.
8119
 
    if test -n "$PYTHON"; then
8120
 
      # If the user set $PYTHON, use it and don't search something else.
8121
 
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
8122
 
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
8123
 
                              [AC_MSG_RESULT(yes)],
8124
 
                              [AC_MSG_ERROR(too old)])
8125
 
      am_display_PYTHON=$PYTHON
8126
 
    else
8127
 
      # Otherwise, try each interpreter until we find one that satisfies
8128
 
      # VERSION.
8129
 
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
8130
 
        [am_cv_pathless_PYTHON],[
8131
 
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
8132
 
          test "$am_cv_pathless_PYTHON" = none && break
8133
 
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
8134
 
        done])
8135
 
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8136
 
      if test "$am_cv_pathless_PYTHON" = none; then
8137
 
        PYTHON=:
8138
 
      else
8139
 
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
8140
 
      fi
8141
 
      am_display_PYTHON=$am_cv_pathless_PYTHON
8142
 
    fi
8143
 
  ])
8144
 
 
8145
 
  if test "$PYTHON" = :; then
8146
 
  dnl Run any user-specified action, or abort.
8147
 
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
8148
 
  else
8149
 
 
8150
 
  dnl Query Python for its version number.  Getting [:3] seems to be
8151
 
  dnl the best way to do this; it's what "site.py" does in the standard
8152
 
  dnl library.
8153
 
 
8154
 
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
8155
 
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
8156
 
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
8157
 
 
8158
 
  dnl Use the values of $prefix and $exec_prefix for the corresponding
8159
 
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
8160
 
  dnl distinct variables so they can be overridden if need be.  However,
8161
 
  dnl general consensus is that you shouldn't need this ability.
8162
 
 
8163
 
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
8164
 
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
8165
 
 
8166
 
  dnl At times (like when building shared libraries) you may want
8167
 
  dnl to know which OS platform Python thinks this is.
8168
 
 
8169
 
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
8170
 
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
8171
 
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
8172
 
 
8173
 
 
8174
 
  dnl Set up 4 directories:
8175
 
 
8176
 
  dnl pythondir -- where to install python scripts.  This is the
8177
 
  dnl   site-packages directory, not the python standard library
8178
 
  dnl   directory like in previous automake betas.  This behavior
8179
 
  dnl   is more consistent with lispdir.m4 for example.
8180
 
  dnl Query distutils for this directory.  distutils does not exist in
8181
 
  dnl Python 1.5, so we fall back to the hardcoded directory if it
8182
 
  dnl doesn't work.
8183
 
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
8184
 
    [am_cv_python_pythondir],
8185
 
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
8186
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
8187
 
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
8188
 
 
8189
 
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
8190
 
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
8191
 
  dnl   more consistent with the rest of automake.
8192
 
 
8193
 
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
8194
 
 
8195
 
  dnl pyexecdir -- directory for installing python extension modules
8196
 
  dnl   (shared libraries)
8197
 
  dnl Query distutils for this directory.  distutils does not exist in
8198
 
  dnl Python 1.5, so we fall back to the hardcoded directory if it
8199
 
  dnl doesn't work.
8200
 
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
8201
 
    [am_cv_python_pyexecdir],
8202
 
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
8203
 
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
8204
 
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
8205
 
 
8206
 
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
8207
 
 
8208
 
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
8209
 
 
8210
 
  dnl Run any user-specified action.
8211
 
  $2
8212
 
  fi
8213
 
 
8214
 
])
8215
 
 
8216
 
 
8217
 
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
8218
 
# ---------------------------------------------------------------------------
8219
 
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
8220
 
# Run ACTION-IF-FALSE otherwise.
8221
 
# This test uses sys.hexversion instead of the string equivalent (first
8222
 
# word of sys.version), in order to cope with versions such as 2.2c1.
8223
 
# hexversion has been introduced in Python 1.5.2; it's probably not
8224
 
# worth to support older versions (1.5.1 was released on October 31, 1998).
8225
 
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
8226
 
 [prog="import sys, string
8227
 
# split strings by '.' and convert to numeric.  Append some zeros
8228
 
# because we need at least 4 digits for the hex conversion.
8229
 
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
8230
 
minverhex = 0
8231
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
8232
 
sys.exit(sys.hexversion < minverhex)"
8233
 
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
8234
 
 
8235
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
8236
 
#
8237
 
# This file is free software; the Free Software Foundation
8238
 
# gives unlimited permission to copy and/or distribute it,
8239
 
# with or without modifications, as long as this notice is preserved.
8240
 
 
8241
 
# AM_RUN_LOG(COMMAND)
8242
 
# -------------------
8243
 
# Run COMMAND, save the exit status in ac_status, and log it.
8244
 
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
8245
 
AC_DEFUN([AM_RUN_LOG],
8246
 
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
8247
 
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
8248
 
   ac_status=$?
8249
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
8250
 
   (exit $ac_status); }])
8251
 
 
8252
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
8253
 
 
8254
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8255
 
# Free Software Foundation, Inc.
8256
 
#
8257
 
# This file is free software; the Free Software Foundation
8258
 
# gives unlimited permission to copy and/or distribute it,
8259
 
# with or without modifications, as long as this notice is preserved.
8260
 
 
8261
 
# serial 4
8262
 
 
8263
 
# AM_SANITY_CHECK
8264
 
# ---------------
8265
 
AC_DEFUN([AM_SANITY_CHECK],
8266
 
[AC_MSG_CHECKING([whether build environment is sane])
8267
 
# Just in case
8268
 
sleep 1
8269
 
echo timestamp > conftest.file
8270
 
# Do `set' in a subshell so we don't clobber the current shell's
8271
 
# arguments.  Must try -L first in case configure is actually a
8272
 
# symlink; some systems play weird games with the mod time of symlinks
8273
 
# (eg FreeBSD returns the mod time of the symlink's containing
8274
 
# directory).
8275
 
if (
8276
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8277
 
   if test "$[*]" = "X"; then
8278
 
      # -L didn't work.
8279
 
      set X `ls -t $srcdir/configure conftest.file`
8280
 
   fi
8281
 
   rm -f conftest.file
8282
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
8283
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
8284
 
 
8285
 
      # If neither matched, then we have a broken ls.  This can happen
8286
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
8287
 
      # broken ls alias from the environment.  This has actually
8288
 
      # happened.  Such a system could not be considered "sane".
8289
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
8290
 
alias in your environment])
8291
 
   fi
8292
 
 
8293
 
   test "$[2]" = conftest.file
8294
 
   )
8295
 
then
8296
 
   # Ok.
8297
 
   :
8298
 
else
8299
 
   AC_MSG_ERROR([newly created file is older than distributed files!
8300
 
Check your system clock])
8301
 
fi
8302
 
AC_MSG_RESULT(yes)])
8303
 
 
8304
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
8305
 
#
8306
 
# This file is free software; the Free Software Foundation
8307
 
# gives unlimited permission to copy and/or distribute it,
8308
 
# with or without modifications, as long as this notice is preserved.
8309
 
 
8310
 
# AM_PROG_INSTALL_STRIP
8311
 
# ---------------------
8312
 
# One issue with vendor `install' (even GNU) is that you can't
8313
 
# specify the program used to strip binaries.  This is especially
8314
 
# annoying in cross-compiling environments, where the build's strip
8315
 
# is unlikely to handle the host's binaries.
8316
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
8317
 
# always use install-sh in `make install-strip', and initialize
8318
 
# STRIPPROG with the value of the STRIP variable (set by the user).
8319
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
8320
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8321
 
# Installed binaries are usually stripped using `strip' when the user
8322
 
# run `make install-strip'.  However `strip' might not be the right
8323
 
# tool to use in cross-compilation environments, therefore Automake
8324
 
# will honor the `STRIP' environment variable to overrule this program.
8325
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8326
 
if test "$cross_compiling" != no; then
8327
 
  AC_CHECK_TOOL([STRIP], [strip], :)
8328
 
fi
8329
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8330
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8331
 
 
8332
 
# Check how to create a tarball.                            -*- Autoconf -*-
8333
 
 
8334
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
8335
 
#
8336
 
# This file is free software; the Free Software Foundation
8337
 
# gives unlimited permission to copy and/or distribute it,
8338
 
# with or without modifications, as long as this notice is preserved.
8339
 
 
8340
 
# serial 2
8341
 
 
8342
 
# _AM_PROG_TAR(FORMAT)
8343
 
# --------------------
8344
 
# Check how to create a tarball in format FORMAT.
8345
 
# FORMAT should be one of `v7', `ustar', or `pax'.
8346
 
#
8347
 
# Substitute a variable $(am__tar) that is a command
8348
 
# writing to stdout a FORMAT-tarball containing the directory
8349
 
# $tardir.
8350
 
#     tardir=directory && $(am__tar) > result.tar
8351
 
#
8352
 
# Substitute a variable $(am__untar) that extract such
8353
 
# a tarball read from stdin.
8354
 
#     $(am__untar) < result.tar
8355
 
AC_DEFUN([_AM_PROG_TAR],
8356
 
[# Always define AMTAR for backward compatibility.
8357
 
AM_MISSING_PROG([AMTAR], [tar])
8358
 
m4_if([$1], [v7],
8359
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8360
 
     [m4_case([$1], [ustar],, [pax],,
8361
 
              [m4_fatal([Unknown tar format])])
8362
 
AC_MSG_CHECKING([how to create a $1 tar archive])
8363
 
# Loop over all known methods to create a tar archive until one works.
8364
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8365
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
8366
 
# Do not fold the above two line into one, because Tru64 sh and
8367
 
# Solaris sh will not grok spaces in the rhs of `-'.
8368
 
for _am_tool in $_am_tools
8369
 
do
8370
 
  case $_am_tool in
8371
 
  gnutar)
8372
 
    for _am_tar in tar gnutar gtar;
8373
 
    do
8374
 
      AM_RUN_LOG([$_am_tar --version]) && break
8375
 
    done
8376
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8377
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8378
 
    am__untar="$_am_tar -xf -"
8379
 
    ;;
8380
 
  plaintar)
8381
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
8382
 
    # ustar tarball either.
8383
 
    (tar --version) >/dev/null 2>&1 && continue
8384
 
    am__tar='tar chf - "$$tardir"'
8385
 
    am__tar_='tar chf - "$tardir"'
8386
 
    am__untar='tar xf -'
8387
 
    ;;
8388
 
  pax)
8389
 
    am__tar='pax -L -x $1 -w "$$tardir"'
8390
 
    am__tar_='pax -L -x $1 -w "$tardir"'
8391
 
    am__untar='pax -r'
8392
 
    ;;
8393
 
  cpio)
8394
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8395
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8396
 
    am__untar='cpio -i -H $1 -d'
8397
 
    ;;
8398
 
  none)
8399
 
    am__tar=false
8400
 
    am__tar_=false
8401
 
    am__untar=false
8402
 
    ;;
8403
 
  esac
8404
 
 
8405
 
  # If the value was cached, stop now.  We just wanted to have am__tar
8406
 
  # and am__untar set.
8407
 
  test -n "${am_cv_prog_tar_$1}" && break
8408
 
 
8409
 
  # tar/untar a dummy directory, and stop if the command works
8410
 
  rm -rf conftest.dir
8411
 
  mkdir conftest.dir
8412
 
  echo GrepMe > conftest.dir/file
8413
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8414
 
  rm -rf conftest.dir
8415
 
  if test -s conftest.tar; then
8416
 
    AM_RUN_LOG([$am__untar <conftest.tar])
8417
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8418
 
  fi
8419
 
done
8420
 
rm -rf conftest.dir
8421
 
 
8422
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8423
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8424
 
AC_SUBST([am__tar])
8425
 
AC_SUBST([am__untar])
8426
 
]) # _AM_PROG_TAR
8427
 
 
8428
8251
m4_include([m4/ac-define-dir.m4])
8429
8252
m4_include([m4/acinclude.m4])
8430
8253
m4_include([m4/gnome-doc-utils.m4])