~kelemeng/gnome-menus/bug943387

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-03-10 21:29:31 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20080310212931-6687vtclvg45jxat
Tags: 2.22.0-0ubuntu1
* New upstream release (LP: #200764)
 - Updated translations
* debian/patch/70_reautogen.patch: updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- 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, 2006, 2007, 2008  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_ifndef([AC_AUTOCONF_VERSION],
15
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
18
 
You have another version of autoconf.  It may work, but is not guaranteed to.
19
 
If you have problems, you may need to regenerate the build system entirely.
20
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
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
21
1084
 
22
1085
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23
1086
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
808
1871
 
809
1872
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
810
1873
 
811
 
# serial 51 AC_PROG_LIBTOOL
 
1874
# serial 48 AC_PROG_LIBTOOL
812
1875
 
813
1876
 
814
1877
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
971
2034
test -z "$ac_objext" && ac_objext=o
972
2035
 
973
2036
# Determine commands to create old-style static archives.
974
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2037
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
975
2038
old_postinstall_cmds='chmod 644 $oldlib'
976
2039
old_postuninstall_cmds=
977
2040
 
1058
2121
# Check for compiler boilerplate output or warnings with
1059
2122
# the simple compiler test code.
1060
2123
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1061
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1062
 
ac_outfile=conftest.$ac_objext
1063
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
2124
[ac_outfile=conftest.$ac_objext
 
2125
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1064
2126
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1065
2127
_lt_compiler_boilerplate=`cat conftest.err`
1066
2128
$rm conftest*
1072
2134
# Check for linker boilerplate output or warnings with
1073
2135
# the simple link test code.
1074
2136
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1075
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1076
 
ac_outfile=conftest.$ac_objext
1077
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
2137
[ac_outfile=conftest.$ac_objext
 
2138
printf "$lt_simple_link_test_code" >conftest.$ac_ext
1078
2139
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1079
2140
_lt_linker_boilerplate=`cat conftest.err`
1080
2141
$rm conftest*
1090
2151
# If we don't find anything, use the default library path according
1091
2152
# to the aix ld manual.
1092
2153
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1093
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1094
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1095
 
lt_aix_libpath_sed='
1096
 
    /Import File Strings/,/^$/ {
1097
 
        /^0/ {
1098
 
            s/^0  *\(.*\)$/\1/
1099
 
            p
1100
 
        }
1101
 
    }'
1102
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2154
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
2155
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
2156
}'`
1103
2157
# Check for a 64-bit object if we didn't find anything.
1104
 
if test -z "$aix_libpath"; then
1105
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1106
 
fi],[])
 
2158
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; }
 
2159
}'`; fi],[])
1107
2160
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1108
2161
])# _LT_AC_SYS_LIBPATH_AIX
1109
2162
 
1334
2387
  rm -rf conftest*
1335
2388
  ;;
1336
2389
 
1337
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1338
 
s390*-*linux*|sparc*-*linux*)
 
2390
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1339
2391
  # Find out which ABI we are using.
1340
2392
  echo 'int i;' > conftest.$ac_ext
1341
2393
  if AC_TRY_EVAL(ac_compile); then
1342
2394
    case `/usr/bin/file conftest.o` in
1343
2395
    *32-bit*)
1344
2396
      case $host in
1345
 
        x86_64-*kfreebsd*-gnu)
1346
 
          LD="${LD-ld} -m elf_i386_fbsd"
1347
 
          ;;
1348
2397
        x86_64-*linux*)
1349
2398
          LD="${LD-ld} -m elf_i386"
1350
2399
          ;;
1361
2410
      ;;
1362
2411
    *64-bit*)
1363
2412
      case $host in
1364
 
        x86_64-*kfreebsd*-gnu)
1365
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
1366
 
          ;;
1367
2413
        x86_64-*linux*)
1368
2414
          LD="${LD-ld} -m elf_x86_64"
1369
2415
          ;;
1435
2481
AC_CACHE_CHECK([$1], [$2],
1436
2482
  [$2=no
1437
2483
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1438
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2484
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1439
2485
   lt_compiler_flag="$3"
1440
2486
   # Insert the option either (1) after the last *FLAGS variable, or
1441
2487
   # (2) before a word containing "conftest.", or (3) at the end.
1476
2522
# ------------------------------------------------------------
1477
2523
# Check whether the given compiler option works
1478
2524
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1479
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1480
 
AC_CACHE_CHECK([$1], [$2],
 
2525
[AC_CACHE_CHECK([$1], [$2],
1481
2526
  [$2=no
1482
2527
   save_LDFLAGS="$LDFLAGS"
1483
2528
   LDFLAGS="$LDFLAGS $3"
1484
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
2529
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1485
2530
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1486
2531
     # The linker can only warn and ignore the option if not recognized
1487
2532
     # So say no if there are warnings
1595
2640
    fi
1596
2641
    ;;
1597
2642
  *)
1598
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1599
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
1600
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1601
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1602
 
    else
1603
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1604
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
2643
    # If test is not a shell built-in, we'll probably end up computing a
 
2644
    # maximum length that is only half of the actual maximum length, but
 
2645
    # we can't tell.
 
2646
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
2647
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1605
2648
               = "XX$teststring") >/dev/null 2>&1 &&
1606
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1607
 
              lt_cv_sys_max_cmd_len=$new_result &&
1608
 
              test $i != 17 # 1/2 MB should be enough
1609
 
      do
1610
 
        i=`expr $i + 1`
1611
 
        teststring=$teststring$teststring
1612
 
      done
1613
 
      teststring=
1614
 
      # Add a significant safety factor because C++ compilers can tack on massive
1615
 
      # amounts of additional arguments before passing them to the linker.
1616
 
      # It appears as though 1/2 is a usable value.
1617
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1618
 
    fi
 
2649
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
2650
            lt_cv_sys_max_cmd_len=$new_result &&
 
2651
            test $i != 17 # 1/2 MB should be enough
 
2652
    do
 
2653
      i=`expr $i + 1`
 
2654
      teststring=$teststring$teststring
 
2655
    done
 
2656
    teststring=
 
2657
    # Add a significant safety factor because C++ compilers can tack on massive
 
2658
    # amounts of additional arguments before passing them to the linker.
 
2659
    # It appears as though 1/2 is a usable value.
 
2660
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1619
2661
    ;;
1620
2662
  esac
1621
2663
])
1842
2884
# ---------------------------------
1843
2885
# Check to see if options -c and -o are simultaneously supported by compiler
1844
2886
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1845
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1846
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2887
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1847
2888
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1848
2889
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1849
2890
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1851
2892
   mkdir conftest
1852
2893
   cd conftest
1853
2894
   mkdir out
1854
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2895
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1855
2896
 
1856
2897
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1857
2898
   # Insert the option either (1) after the last *FLAGS variable, or
1991
3032
   darwin*)
1992
3033
       if test -n "$STRIP" ; then
1993
3034
         striplib="$STRIP -x"
1994
 
         old_striplib="$STRIP -S"
1995
3035
         AC_MSG_RESULT([yes])
1996
3036
       else
1997
3037
  AC_MSG_RESULT([no])
2009
3049
# -----------------------------
2010
3050
# PORTME Fill in your ld.so characteristics
2011
3051
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2012
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2013
 
AC_MSG_CHECKING([dynamic linker characteristics])
 
3052
[AC_MSG_CHECKING([dynamic linker characteristics])
2014
3053
library_names_spec=
2015
3054
libname_spec='lib$name'
2016
3055
soname_spec=
2024
3063
version_type=none
2025
3064
dynamic_linker="$host_os ld.so"
2026
3065
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2027
 
m4_if($1,[],[
2028
3066
if test "$GCC" = yes; then
2029
 
  case $host_os in
2030
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2031
 
    *) lt_awk_arg="/^libraries:/" ;;
2032
 
  esac
2033
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2034
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
3067
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3068
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2035
3069
    # if the path contains ";" then we assume it to be the separator
2036
3070
    # otherwise default to the standard path separator (i.e. ":") - it is
2037
3071
    # assumed that no part of a normal pathname contains ";" but that should
2038
3072
    # okay in the real world where ";" in dirpaths is itself problematic.
2039
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3073
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2040
3074
  else
2041
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3075
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2042
3076
  fi
2043
 
  # Ok, now we have the path, separated by spaces, we can step through it
2044
 
  # and add multilib dir if necessary.
2045
 
  lt_tmp_lt_search_path_spec=
2046
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2047
 
  for lt_sys_path in $lt_search_path_spec; do
2048
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2049
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2050
 
    else
2051
 
      test -d "$lt_sys_path" && \
2052
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2053
 
    fi
2054
 
  done
2055
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2056
 
BEGIN {RS=" "; FS="/|\n";} {
2057
 
  lt_foo="";
2058
 
  lt_count=0;
2059
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
2060
 
    if ($lt_i != "" && $lt_i != ".") {
2061
 
      if ($lt_i == "..") {
2062
 
        lt_count++;
2063
 
      } else {
2064
 
        if (lt_count == 0) {
2065
 
          lt_foo="/" $lt_i lt_foo;
2066
 
        } else {
2067
 
          lt_count--;
2068
 
        }
2069
 
      }
2070
 
    }
2071
 
  }
2072
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2073
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2074
 
}'`
2075
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2076
3077
else
2077
3078
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2078
 
fi])
 
3079
fi
2079
3080
need_lib_prefix=unknown
2080
3081
hardcode_into_libs=no
2081
3082
 
2232
3233
  shlibpath_overrides_runpath=yes
2233
3234
  shlibpath_var=DYLD_LIBRARY_PATH
2234
3235
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2235
 
  m4_if([$1], [],[
2236
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
3236
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
3237
  if test "$GCC" = yes; then
 
3238
    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"`
 
3239
  else
 
3240
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
3241
  fi
2237
3242
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2238
3243
  ;;
2239
3244
 
2250
3255
  dynamic_linker=no
2251
3256
  ;;
2252
3257
 
 
3258
kfreebsd*-gnu)
 
3259
  version_type=linux
 
3260
  need_lib_prefix=no
 
3261
  need_version=no
 
3262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3263
  soname_spec='${libname}${release}${shared_ext}$major'
 
3264
  shlibpath_var=LD_LIBRARY_PATH
 
3265
  shlibpath_overrides_runpath=no
 
3266
  hardcode_into_libs=yes
 
3267
  dynamic_linker='GNU ld.so'
 
3268
  ;;
 
3269
 
2253
3270
freebsd* | dragonfly*)
2254
3271
  # DragonFly does not have aout.  When/if they implement a new
2255
3272
  # versioning mechanism, adjust this.
2287
3304
    shlibpath_overrides_runpath=no
2288
3305
    hardcode_into_libs=yes
2289
3306
    ;;
2290
 
  *) # from 4.6 on, and DragonFly
 
3307
  freebsd*) # from 4.6 on
2291
3308
    shlibpath_overrides_runpath=yes
2292
3309
    hardcode_into_libs=yes
2293
3310
    ;;
2350
3367
  postinstall_cmds='chmod 555 $lib'
2351
3368
  ;;
2352
3369
 
2353
 
interix[[3-9]]*)
 
3370
interix3*)
2354
3371
  version_type=linux
2355
3372
  need_lib_prefix=no
2356
3373
  need_version=no
2405
3422
  ;;
2406
3423
 
2407
3424
# This must be Linux ELF.
2408
 
linux* | k*bsd*-gnu)
 
3425
linux*)
2409
3426
  version_type=linux
2410
3427
  need_lib_prefix=no
2411
3428
  need_version=no
2438
3455
 
2439
3456
  # Append ld.so.conf contents to the search path
2440
3457
  if test -f /etc/ld.so.conf; then
2441
 
    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' ' '`
 
3458
    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' ' '`
2442
3459
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
2443
3460
  fi
2444
3461
 
2451
3468
  dynamic_linker='GNU/Linux ld.so'
2452
3469
  ;;
2453
3470
 
 
3471
knetbsd*-gnu)
 
3472
  version_type=linux
 
3473
  need_lib_prefix=no
 
3474
  need_version=no
 
3475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3476
  soname_spec='${libname}${release}${shared_ext}$major'
 
3477
  shlibpath_var=LD_LIBRARY_PATH
 
3478
  shlibpath_overrides_runpath=no
 
3479
  hardcode_into_libs=yes
 
3480
  dynamic_linker='GNU ld.so'
 
3481
  ;;
 
3482
 
2454
3483
netbsd*)
2455
3484
  version_type=sunos
2456
3485
  need_lib_prefix=no
2532
3561
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2533
3562
  ;;
2534
3563
 
2535
 
rdos*)
2536
 
  dynamic_linker=no
2537
 
  ;;
2538
 
 
2539
3564
solaris*)
2540
3565
  version_type=linux
2541
3566
  need_lib_prefix=no
2641
3666
# _LT_AC_TAGCONFIG
2642
3667
# ----------------
2643
3668
AC_DEFUN([_LT_AC_TAGCONFIG],
2644
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2645
 
AC_ARG_WITH([tags],
 
3669
[AC_ARG_WITH([tags],
2646
3670
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2647
3671
        [include additional configurations @<:@automatic@:>@])],
2648
3672
    [tagnames="$withval"])
2903
3927
 
2904
3928
# AC_PATH_TOOL_PREFIX
2905
3929
# -------------------
2906
 
# find a file program which can recognize shared library
 
3930
# find a file program which can recognise shared library
2907
3931
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2908
3932
[AC_REQUIRE([AC_PROG_EGREP])dnl
2909
3933
AC_MSG_CHECKING([for $1])
2966
3990
 
2967
3991
# AC_PATH_MAGIC
2968
3992
# -------------
2969
 
# find a file program which can recognize a shared library
 
3993
# find a file program which can recognise a shared library
2970
3994
AC_DEFUN([AC_PATH_MAGIC],
2971
3995
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2972
3996
if test -z "$lt_cv_path_MAGIC_CMD"; then
3113
4137
# how to check for library dependencies
3114
4138
#  -- PORTME fill in with the dynamic library characteristics
3115
4139
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3116
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
4140
[AC_CACHE_CHECK([how to recognise dependent libraries],
3117
4141
lt_cv_deplibs_check_method,
3118
4142
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3119
4143
lt_cv_file_magic_test_file=
3152
4176
 
3153
4177
mingw* | pw32*)
3154
4178
  # Base MSYS/MinGW do not provide the 'file' command needed by
3155
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3156
 
  # unless we find 'file', for example because we are cross-compiling.
3157
 
  if ( file / ) >/dev/null 2>&1; then
3158
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3159
 
    lt_cv_file_magic_cmd='func_win32_libid'
3160
 
  else
3161
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3162
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3163
 
  fi
 
4179
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4180
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4181
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3164
4182
  ;;
3165
4183
 
3166
4184
darwin* | rhapsody*)
3167
4185
  lt_cv_deplibs_check_method=pass_all
3168
4186
  ;;
3169
4187
 
3170
 
freebsd* | dragonfly*)
 
4188
freebsd* | kfreebsd*-gnu | dragonfly*)
3171
4189
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3172
4190
    case $host_cpu in
3173
4191
    i*86 )
3205
4223
  esac
3206
4224
  ;;
3207
4225
 
3208
 
interix[[3-9]]*)
 
4226
interix3*)
3209
4227
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3210
4228
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3211
4229
  ;;
3221
4239
  ;;
3222
4240
 
3223
4241
# This must be Linux ELF.
3224
 
linux* | k*bsd*-gnu)
 
4242
linux*)
3225
4243
  lt_cv_deplibs_check_method=pass_all
3226
4244
  ;;
3227
4245
 
3255
4273
  lt_cv_deplibs_check_method=pass_all
3256
4274
  ;;
3257
4275
 
3258
 
rdos*)
3259
 
  lt_cv_deplibs_check_method=pass_all
3260
 
  ;;
3261
 
 
3262
4276
solaris*)
3263
4277
  lt_cv_deplibs_check_method=pass_all
3264
4278
  ;;
3311
4325
  lt_cv_path_NM="$NM"
3312
4326
else
3313
4327
  lt_nm_to_check="${ac_tool_prefix}nm"
3314
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4328
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
3315
4329
    lt_nm_to_check="$lt_nm_to_check nm"
3316
4330
  fi
3317
4331
  for lt_tmp_nm in $lt_nm_to_check; do
3527
4541
_LT_AC_TAGVAR(objext, $1)=$objext
3528
4542
 
3529
4543
# Code to be used in simple compile tests
3530
 
lt_simple_compile_test_code="int some_variable = 0;"
 
4544
lt_simple_compile_test_code="int some_variable = 0;\n"
3531
4545
 
3532
4546
# Code to be used in simple link tests
3533
 
lt_simple_link_test_code='int main(){return(0);}'
 
4547
lt_simple_link_test_code='int main(){return(0);}\n'
3534
4548
 
3535
4549
_LT_AC_SYS_COMPILER
3536
4550
 
3632
4646
_LT_AC_TAGVAR(objext, $1)=$objext
3633
4647
 
3634
4648
# Code to be used in simple compile tests
3635
 
lt_simple_compile_test_code="int some_variable = 0;"
 
4649
lt_simple_compile_test_code="int some_variable = 0;\n"
3636
4650
 
3637
4651
# Code to be used in simple link tests
3638
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
4652
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3639
4653
 
3640
4654
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3641
4655
_LT_AC_SYS_COMPILER
3781
4795
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3782
4796
        then
3783
4797
          # We have reworked collect2
3784
 
          :
 
4798
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3785
4799
        else
3786
4800
          # We have old collect2
3787
4801
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3940
4954
      case $cc_basename in
3941
4955
        xlc*)
3942
4956
         output_verbose_link_cmd='echo'
3943
 
          _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'
 
4957
          _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'
3944
4958
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3945
4959
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3946
 
          _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}'
 
4960
          _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}'
3947
4961
          _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}'
3948
4962
          ;;
3949
4963
       *)
3977
4991
  freebsd-elf*)
3978
4992
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3979
4993
    ;;
3980
 
  freebsd* | dragonfly*)
 
4994
  freebsd* | kfreebsd*-gnu | dragonfly*)
3981
4995
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3982
4996
    # conventions
3983
4997
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4026
5040
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4027
5041
 
4028
5042
      case $host_cpu in
4029
 
      hppa*64*|ia64*) ;;
 
5043
      hppa*64*|ia64*)
 
5044
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5045
        ;;
4030
5046
      *)
4031
5047
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4032
5048
        ;;
4094
5110
        ;;
4095
5111
    esac
4096
5112
    ;;
4097
 
  interix[[3-9]]*)
 
5113
  interix3*)
4098
5114
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4099
5115
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4100
5116
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4134
5150
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4135
5151
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4136
5152
    ;;
4137
 
  linux* | k*bsd*-gnu)
 
5153
  linux*)
4138
5154
    case $cc_basename in
4139
5155
      KCC*)
4140
5156
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4214
5230
        # dependencies.
4215
5231
        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'
4216
5232
        ;;
4217
 
      *)
4218
 
        case `$CC -V 2>&1 | sed 5q` in
4219
 
        *Sun\ C*)
4220
 
          # Sun C++ 5.9
4221
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4222
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4223
 
          _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'
4224
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4225
 
          _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'
4226
 
 
4227
 
          # Not sure whether something based on
4228
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4229
 
          # would be better.
4230
 
          output_verbose_link_cmd='echo'
4231
 
 
4232
 
          # Archives containing C++ object files must be created using
4233
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4234
 
          # necessary to make sure instantiated templates are included
4235
 
          # in the archive.
4236
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4237
 
          ;;
4238
 
        esac
4239
 
        ;;
4240
5233
    esac
4241
5234
    ;;
4242
5235
  lynxos*)
4275
5268
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4276
5269
    ;;
4277
5270
  openbsd*)
4278
 
    if test -f /usr/libexec/ld.so; then
4279
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4280
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4281
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4282
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4283
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4284
 
        _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'
4285
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4286
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4287
 
      fi
4288
 
      output_verbose_link_cmd='echo'
4289
 
    else
4290
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5271
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5272
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5273
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
5274
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5275
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5276
      _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'
 
5277
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5278
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4291
5279
    fi
 
5280
    output_verbose_link_cmd='echo'
4292
5281
    ;;
4293
5282
  osf3*)
4294
5283
    case $cc_basename in
4450
5439
        case $host_os in
4451
5440
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4452
5441
          *)
4453
 
            # The compiler driver will combine and reorder linker options,
4454
 
            # but understands `-z linker_flag'.
 
5442
            # The C++ compiler is used as linker so we must use $wl
 
5443
            # flag to pass the commands to the underlying system
 
5444
            # linker. We must also pass each convience library through
 
5445
            # to the system linker between allextract/defaultextract.
 
5446
            # The C++ compiler will combine linker options so we
 
5447
            # cannot just pass the convience library names through
 
5448
            # without $wl.
4455
5449
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4456
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5450
            _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'
4457
5451
            ;;
4458
5452
        esac
4459
5453
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4500
5494
          fi
4501
5495
 
4502
5496
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4503
 
          case $host_os in
4504
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4505
 
          *)
4506
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4507
 
            ;;
4508
 
          esac
4509
5497
        fi
4510
5498
        ;;
4511
5499
    esac
4749
5737
# PORTME: override above test on systems where it is broken
4750
5738
ifelse([$1],[CXX],
4751
5739
[case $host_os in
4752
 
interix[[3-9]]*)
 
5740
interix3*)
4753
5741
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4754
5742
  # hack all around it, let's just trust "g++" to DTRT.
4755
5743
  _LT_AC_TAGVAR(predep_objects,$1)=
4757
5745
  _LT_AC_TAGVAR(postdeps,$1)=
4758
5746
  ;;
4759
5747
 
4760
 
linux*)
4761
 
  case `$CC -V 2>&1 | sed 5q` in
4762
 
  *Sun\ C*)
4763
 
    # Sun C++ 5.9
4764
 
    #
4765
 
    # The more standards-conforming stlport4 library is
4766
 
    # incompatible with the Cstd library. Avoid specifying
4767
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4768
 
    # -library=stlport4 depends on it.
4769
 
    case " $CXX $CXXFLAGS " in
4770
 
    *" -library=stlport4 "*)
4771
 
      solaris_use_stlport4=yes
4772
 
      ;;
4773
 
    esac
4774
 
    if test "$solaris_use_stlport4" != yes; then
4775
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4776
 
    fi
4777
 
    ;;
4778
 
  esac
4779
 
  ;;
4780
 
 
4781
5748
solaris*)
4782
5749
  case $cc_basename in
4783
5750
  CC*)
4784
 
    # The more standards-conforming stlport4 library is
4785
 
    # incompatible with the Cstd library. Avoid specifying
4786
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4787
 
    # -library=stlport4 depends on it.
4788
 
    case " $CXX $CXXFLAGS " in
4789
 
    *" -library=stlport4 "*)
4790
 
      solaris_use_stlport4=yes
4791
 
      ;;
4792
 
    esac
4793
 
 
4794
5751
    # Adding this requires a known-good setup of shared libraries for
4795
5752
    # Sun compiler versions before 5.6, else PIC objects from an old
4796
5753
    # archive will be linked into the output, leading to subtle bugs.
4797
 
    if test "$solaris_use_stlport4" != yes; then
4798
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4799
 
    fi
 
5754
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4800
5755
    ;;
4801
5756
  esac
4802
5757
  ;;
4845
5800
_LT_AC_TAGVAR(objext, $1)=$objext
4846
5801
 
4847
5802
# Code to be used in simple compile tests
4848
 
lt_simple_compile_test_code="\
4849
 
      subroutine t
4850
 
      return
4851
 
      end
4852
 
"
 
5803
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
4853
5804
 
4854
5805
# Code to be used in simple link tests
4855
 
lt_simple_link_test_code="\
4856
 
      program t
4857
 
      end
4858
 
"
 
5806
lt_simple_link_test_code="      program t\n      end\n"
4859
5807
 
4860
5808
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4861
5809
_LT_AC_SYS_COMPILER
4934
5882
_LT_AC_TAGVAR(objext, $1)=$objext
4935
5883
 
4936
5884
# Code to be used in simple compile tests
4937
 
lt_simple_compile_test_code="class foo {}"
 
5885
lt_simple_compile_test_code="class foo {}\n"
4938
5886
 
4939
5887
# Code to be used in simple link tests
4940
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
5888
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4941
5889
 
4942
5890
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4943
5891
_LT_AC_SYS_COMPILER
4952
5900
compiler=$CC
4953
5901
_LT_AC_TAGVAR(compiler, $1)=$CC
4954
5902
_LT_CC_BASENAME([$compiler])
4955
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4956
5903
 
4957
5904
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4958
5905
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4991
5938
_LT_AC_TAGVAR(objext, $1)=$objext
4992
5939
 
4993
5940
# Code to be used in simple compile tests
4994
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
5941
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4995
5942
 
4996
5943
# Code to be used in simple link tests
4997
5944
lt_simple_link_test_code="$lt_simple_compile_test_code"
5080
6027
    _LT_AC_TAGVAR(module_cmds, $1) \
5081
6028
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5082
6029
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5083
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
5084
6030
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5085
6031
    _LT_AC_TAGVAR(include_expsyms, $1); do
5086
6032
 
5127
6073
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5128
6074
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5129
6075
#
5130
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
6076
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5131
6077
# Free Software Foundation, Inc.
5132
6078
#
5133
6079
# This file is part of GNU Libtool:
5217
6163
# Is the compiler the GNU C compiler?
5218
6164
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5219
6165
 
5220
 
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
5221
 
gcc_ver=\`gcc -dumpversion\`
5222
 
 
5223
6166
# An ERE matcher.
5224
6167
EGREP=$lt_EGREP
5225
6168
 
5353
6296
 
5354
6297
# Dependencies to place before the objects being linked to create a
5355
6298
# shared library.
5356
 
predep_objects=\`echo $lt_[]_LT_AC_TAGVAR(predep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
6299
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5357
6300
 
5358
6301
# Dependencies to place after the objects being linked to create a
5359
6302
# shared library.
5360
 
postdep_objects=\`echo $lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
6303
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5361
6304
 
5362
6305
# Dependencies to place before the objects being linked to create a
5363
6306
# shared library.
5369
6312
 
5370
6313
# The library search path used internally by the compiler when linking
5371
6314
# a shared library.
5372
 
compiler_lib_search_path=\`echo $lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
6315
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5373
6316
 
5374
6317
# Method to check whether dependent libraries are shared objects.
5375
6318
deplibs_check_method=$lt_deplibs_check_method
5449
6392
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5450
6393
 
5451
6394
# Compile-time system search path for libraries
5452
 
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
6395
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5453
6396
 
5454
6397
# Run-time system search path for libraries
5455
6398
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5456
6399
 
5457
6400
# Fix the shell variable \$srcfile for the compiler.
5458
 
fix_srcfile_path=$lt_fix_srcfile_path
 
6401
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5459
6402
 
5460
6403
# Set to yes if exported symbols are required.
5461
6404
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5538
6481
# ---------------------------------
5539
6482
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5540
6483
[AC_REQUIRE([AC_CANONICAL_HOST])
5541
 
AC_REQUIRE([LT_AC_PROG_SED])
5542
6484
AC_REQUIRE([AC_PROG_NM])
5543
6485
AC_REQUIRE([AC_OBJEXT])
5544
6486
# Check for command to grab the raw symbol name followed by C symbol from nm.
5575
6517
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5576
6518
  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'"
5577
6519
  ;;
5578
 
linux* | k*bsd*-gnu)
 
6520
linux*)
5579
6521
  if test "$host_cpu" = ia64; then
5580
6522
    symcode='[[ABCDGIRSTW]]'
5581
6523
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5765
6707
      # like `-m68040'.
5766
6708
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5767
6709
      ;;
5768
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6710
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5769
6711
      # PIC is the default for these OSes.
5770
6712
      ;;
5771
 
    mingw* | cygwin* | os2* | pw32*)
 
6713
    mingw* | os2* | pw32*)
5772
6714
      # This hack is so that the source file can tell whether it is being
5773
6715
      # built for inclusion in a dll (and should export symbols for example).
5774
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5775
 
      # (--disable-auto-import) libraries
5776
6716
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5777
6717
      ;;
5778
6718
    darwin* | rhapsody*)
5784
6724
      # DJGPP does not support shared libraries at all
5785
6725
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5786
6726
      ;;
5787
 
    interix[[3-9]]*)
 
6727
    interix3*)
5788
6728
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5789
6729
      # Instead, we relocate shared libraries at runtime.
5790
6730
      ;;
5850
6790
            ;;
5851
6791
        esac
5852
6792
        ;;
5853
 
      freebsd* | dragonfly*)
 
6793
      freebsd* | kfreebsd*-gnu | dragonfly*)
5854
6794
        # FreeBSD uses GNU C++
5855
6795
        ;;
5856
6796
      hpux9* | hpux10* | hpux11*)
5893
6833
            ;;
5894
6834
        esac
5895
6835
        ;;
5896
 
      linux* | k*bsd*-gnu)
 
6836
      linux*)
5897
6837
        case $cc_basename in
5898
6838
          KCC*)
5899
6839
            # KAI C++ Compiler
5920
6860
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5921
6861
            ;;
5922
6862
          *)
5923
 
            case `$CC -V 2>&1 | sed 5q` in
5924
 
            *Sun\ C*)
5925
 
              # Sun C++ 5.9
5926
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5927
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5928
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5929
 
              ;;
5930
 
            esac
5931
6863
            ;;
5932
6864
        esac
5933
6865
        ;;
6048
6980
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6049
6981
      ;;
6050
6982
 
6051
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6983
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6052
6984
      # PIC is the default for these OSes.
6053
6985
      ;;
6054
6986
 
6055
 
    mingw* | cygwin* | pw32* | os2*)
 
6987
    mingw* | pw32* | os2*)
6056
6988
      # This hack is so that the source file can tell whether it is being
6057
6989
      # built for inclusion in a dll (and should export symbols for example).
6058
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6059
 
      # (--disable-auto-import) libraries
6060
6990
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6061
6991
      ;;
6062
6992
 
6066
6996
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6067
6997
      ;;
6068
6998
 
6069
 
    interix[[3-9]]*)
 
6999
    interix3*)
6070
7000
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6071
7001
      # Instead, we relocate shared libraries at runtime.
6072
7002
      ;;
6124
7054
       esac
6125
7055
       ;;
6126
7056
 
6127
 
    mingw* | cygwin* | pw32* | os2*)
 
7057
    mingw* | pw32* | os2*)
6128
7058
      # This hack is so that the source file can tell whether it is being
6129
7059
      # built for inclusion in a dll (and should export symbols for example).
6130
7060
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6157
7087
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6158
7088
      ;;
6159
7089
 
6160
 
    linux* | k*bsd*-gnu)
 
7090
    linux*)
6161
7091
      case $cc_basename in
6162
7092
      icc* | ecc*)
6163
7093
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6176
7106
        # All Alpha code is PIC.
6177
7107
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6178
7108
        ;;
6179
 
      *)
6180
 
        case `$CC -V 2>&1 | sed 5q` in
6181
 
        *Sun\ C*)
6182
 
          # Sun C 5.9
6183
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6184
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6185
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6186
 
          ;;
6187
 
        *Sun\ F*)
6188
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6189
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6190
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6191
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6192
 
          ;;
6193
 
        esac
6194
 
        ;;
6195
7109
      esac
6196
7110
      ;;
6197
7111
 
6201
7115
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6202
7116
      ;;
6203
7117
 
6204
 
    rdos*)
6205
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6206
 
      ;;
6207
 
 
6208
7118
    solaris*)
6209
7119
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6210
7120
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6299
7209
# ------------------------------------
6300
7210
# See if the linker supports building shared libraries.
6301
7211
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6302
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6303
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
7212
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6304
7213
ifelse([$1],[CXX],[
6305
7214
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6306
7215
  case $host_os in
6317
7226
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6318
7227
  ;;
6319
7228
  cygwin* | mingw*)
6320
 
    _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'
 
7229
    _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'
6321
7230
  ;;
6322
7231
  *)
6323
7232
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6456
7365
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6457
7366
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6458
7367
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6459
 
      _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'
 
7368
      _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'
6460
7369
 
6461
7370
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6462
7371
        _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'
6474
7383
      fi
6475
7384
      ;;
6476
7385
 
6477
 
    interix[[3-9]]*)
 
7386
    interix3*)
6478
7387
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6479
7388
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6480
7389
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6489
7398
      _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'
6490
7399
      ;;
6491
7400
 
6492
 
    gnu* | linux* | k*bsd*-gnu)
 
7401
    linux*)
6493
7402
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6494
7403
        tmp_addflag=
6495
7404
        case $cc_basename,$host_cpu in
6507
7416
        ifc* | ifort*)                  # Intel Fortran compiler
6508
7417
          tmp_addflag=' -nofor_main' ;;
6509
7418
        esac
6510
 
        case `$CC -V 2>&1 | sed 5q` in
6511
 
        *Sun\ C*)                       # Sun C 5.9
6512
 
          _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'
6513
 
          tmp_sharedflag='-G' ;;
6514
 
        *Sun\ F*)                       # Sun Fortran 8.3
6515
 
          tmp_sharedflag='-G' ;;
6516
 
        *)
6517
 
          tmp_sharedflag='-shared' ;;
6518
 
        esac
6519
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7419
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6520
7420
 
6521
7421
        if test $supports_anon_versioning = yes; then
6522
7422
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6523
7423
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6524
7424
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6525
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7425
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6526
7426
        fi
6527
7427
      else
6528
7428
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6562
7462
 
6563
7463
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6564
7464
      case `$LD -v 2>&1` in
6565
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
7465
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
6566
7466
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6567
7467
        cat <<_LT_EOF 1>&2
6568
7468
 
6681
7581
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6682
7582
          then
6683
7583
          # We have reworked collect2
6684
 
          :
 
7584
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6685
7585
          else
6686
7586
          # We have old collect2
6687
7587
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6774
7674
      # The linker will automatically build a .lib file if we build a DLL.
6775
7675
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6776
7676
      # FIXME: Should let the user specify the lib program.
6777
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
7677
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6778
7678
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6779
7679
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6780
7680
      ;;
6816
7716
      case $cc_basename in
6817
7717
        xlc*)
6818
7718
         output_verbose_link_cmd='echo'
6819
 
         _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'
 
7719
         _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'
6820
7720
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6821
7721
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6822
 
         _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}'
 
7722
         _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}'
6823
7723
          _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}'
6824
7724
          ;;
6825
7725
       *)
6859
7759
      ;;
6860
7760
 
6861
7761
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6862
 
    freebsd* | dragonfly*)
 
7762
    freebsd* | kfreebsd*-gnu | dragonfly*)
6863
7763
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6864
7764
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6865
7765
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6981
7881
      ;;
6982
7882
 
6983
7883
    openbsd*)
6984
 
      if test -f /usr/libexec/ld.so; then
6985
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6986
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6987
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6988
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6989
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6990
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6991
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6992
 
        else
6993
 
          case $host_os in
6994
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6995
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6996
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6997
 
             ;;
6998
 
           *)
6999
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7000
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7001
 
             ;;
7002
 
          esac
7003
 
        fi
 
7884
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7885
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7886
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7887
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7888
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7889
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7890
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7004
7891
      else
7005
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7892
       case $host_os in
 
7893
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
7894
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7895
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7896
           ;;
 
7897
         *)
 
7898
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7899
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7900
           ;;
 
7901
       esac
7006
7902
      fi
7007
7903
      ;;
7008
7904
 
7061
7957
      case $host_os in
7062
7958
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7063
7959
      *)
7064
 
        # The compiler driver will combine and reorder linker options,
7065
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
7066
 
        # but is careful enough not to reorder.
 
7960
        # The compiler driver will combine linker options so we
 
7961
        # cannot just pass the convience library names through
 
7962
        # without $wl, iff we do not link with $LD.
 
7963
        # Luckily, gcc supports the same syntax we need for Sun Studio.
7067
7964
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7068
 
        if test "$GCC" = yes; then
7069
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7070
 
        else
7071
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7072
 
        fi
7073
 
        ;;
 
7965
        case $wlarc in
 
7966
        '')
 
7967
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
7968
        *)
 
7969
          _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' ;;
 
7970
        esac ;;
7074
7971
      esac
7075
7972
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7076
7973
      ;;
7127
8024
      fi
7128
8025
      ;;
7129
8026
 
7130
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
8027
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7131
8028
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7132
8029
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7133
8030
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7202
8099
      # to ld, don't add -lc before -lgcc.
7203
8100
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7204
8101
      $rm conftest*
7205
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8102
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7206
8103
 
7207
8104
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7208
8105
        soname=conftest
7305
8202
[AC_CHECK_TOOL(RC, windres, no)
7306
8203
])
7307
8204
 
7308
 
 
7309
 
# Cheap backport of AS_EXECUTABLE_P and required macros
7310
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
7311
 
 
7312
 
# _AS_TEST_PREPARE
7313
 
# ----------------
7314
 
m4_ifndef([_AS_TEST_PREPARE],
7315
 
[m4_defun([_AS_TEST_PREPARE],
7316
 
[if test -x / >/dev/null 2>&1; then
7317
 
  as_executable_p='test -x'
7318
 
else
7319
 
  as_executable_p='test -f'
7320
 
fi
7321
 
])])# _AS_TEST_PREPARE
7322
 
 
7323
 
# AS_EXECUTABLE_P
7324
 
# ---------------
7325
 
# Check whether a file is executable.
7326
 
m4_ifndef([AS_EXECUTABLE_P],
7327
 
[m4_defun([AS_EXECUTABLE_P],
7328
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7329
 
$as_executable_p $1[]dnl
7330
 
])])# AS_EXECUTABLE_P
7331
 
 
7332
8205
# NOTE: This macro has been submitted for inclusion into   #
7333
8206
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7334
8207
#  a released version of Autoconf we should remove this    #
7349
8222
  test -z "$as_dir" && as_dir=.
7350
8223
  for lt_ac_prog in sed gsed; do
7351
8224
    for ac_exec_ext in '' $ac_executable_extensions; do
7352
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
8225
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7353
8226
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7354
8227
      fi
7355
8228
    done
7356
8229
  done
7357
8230
done
7358
 
IFS=$as_save_IFS
7359
8231
lt_ac_max=0
7360
8232
lt_ac_count=0
7361
8233
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7388
8260
done
7389
8261
])
7390
8262
SED=$lt_cv_path_SED
7391
 
AC_SUBST([SED])
7392
8263
AC_MSG_RESULT([$SED])
7393
8264
])
7394
8265
 
7460
8331
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7461
8332
# ---------------------------------------------
7462
8333
m4_define([_PKG_CONFIG],
7463
 
[if test -n "$$1"; then
7464
 
    pkg_cv_[]$1="$$1"
7465
 
 elif test -n "$PKG_CONFIG"; then
7466
 
    PKG_CHECK_EXISTS([$3],
7467
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7468
 
                     [pkg_failed=yes])
7469
 
 else
7470
 
    pkg_failed=untried
 
8334
[if test -n "$PKG_CONFIG"; then
 
8335
    if test -n "$$1"; then
 
8336
        pkg_cv_[]$1="$$1"
 
8337
    else
 
8338
        PKG_CHECK_EXISTS([$3],
 
8339
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
8340
                         [pkg_failed=yes])
 
8341
    fi
 
8342
else
 
8343
        pkg_failed=untried
7471
8344
fi[]dnl
7472
8345
])# _PKG_CONFIG
7473
8346
 
7511
8384
if test $pkg_failed = yes; then
7512
8385
        _PKG_SHORT_ERRORS_SUPPORTED
7513
8386
        if test $_pkg_short_errors_supported = yes; then
7514
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
8387
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
7515
8388
        else 
7516
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
8389
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7517
8390
        fi
7518
8391
        # Put the nasty error message in config.log where it belongs
7519
8392
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7538
8411
 
7539
8412
_PKG_TEXT
7540
8413
 
7541
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
8414
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
7542
8415
                [$4])
7543
8416
else
7544
8417
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7548
8421
fi[]dnl
7549
8422
])# PKG_CHECK_MODULES
7550
8423
 
7551
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
7552
 
#
7553
 
# This file is free software; the Free Software Foundation
7554
 
# gives unlimited permission to copy and/or distribute it,
7555
 
# with or without modifications, as long as this notice is preserved.
7556
 
 
7557
 
# AM_AUTOMAKE_VERSION(VERSION)
7558
 
# ----------------------------
7559
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7560
 
# generated from the m4 files accompanying Automake X.Y.
7561
 
# (This private macro should not be called outside this file.)
7562
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
7563
 
[am__api_version='1.10'
7564
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7565
 
dnl require some minimum version.  Point them to the right macro.
7566
 
m4_if([$1], [1.10.1], [],
7567
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7568
 
])
7569
 
 
7570
 
# _AM_AUTOCONF_VERSION(VERSION)
7571
 
# -----------------------------
7572
 
# aclocal traces this macro to find the Autoconf version.
7573
 
# This is a private macro too.  Using m4_define simplifies
7574
 
# the logic in aclocal, which can simply ignore this definition.
7575
 
m4_define([_AM_AUTOCONF_VERSION], [])
7576
 
 
7577
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
7578
 
# -------------------------------
7579
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7580
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7581
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7582
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
7583
 
m4_ifndef([AC_AUTOCONF_VERSION],
7584
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7585
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
7586
 
 
7587
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7588
 
 
7589
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7590
 
#
7591
 
# This file is free software; the Free Software Foundation
7592
 
# gives unlimited permission to copy and/or distribute it,
7593
 
# with or without modifications, as long as this notice is preserved.
7594
 
 
7595
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7596
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
7597
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
7598
 
#
7599
 
# Of course, Automake must honor this variable whenever it calls a
7600
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
7601
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
7602
 
# depending on how configure is run.  This is pretty annoying, since
7603
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
7604
 
# source directory, any form will work fine, but in subdirectories a
7605
 
# relative path needs to be adjusted first.
7606
 
#
7607
 
# $ac_aux_dir/missing
7608
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
7609
 
# $top_srcdir/$ac_aux_dir/missing
7610
 
#    fails if $ac_aux_dir is absolute,
7611
 
#    fails when called from a subdirectory in a VPATH build with
7612
 
#          a relative $ac_aux_dir
7613
 
#
7614
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
7615
 
# are both prefixed by $srcdir.  In an in-source build this is usually
7616
 
# harmless because $srcdir is `.', but things will broke when you
7617
 
# start a VPATH build or use an absolute $srcdir.
7618
 
#
7619
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
7620
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
7621
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
7622
 
# and then we would define $MISSING as
7623
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
7624
 
# This will work as long as MISSING is not called from configure, because
7625
 
# unfortunately $(top_srcdir) has no meaning in configure.
7626
 
# However there are other variables, like CC, which are often used in
7627
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
7628
 
#
7629
 
# Another solution, used here, is to always expand $ac_aux_dir to an
7630
 
# absolute PATH.  The drawback is that using absolute paths prevent a
7631
 
# configured tree to be moved without reconfiguration.
7632
 
 
7633
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
7634
 
[dnl Rely on autoconf to set up CDPATH properly.
7635
 
AC_PREREQ([2.50])dnl
7636
 
# expand $ac_aux_dir to an absolute path
7637
 
am_aux_dir=`cd $ac_aux_dir && pwd`
7638
 
])
7639
 
 
7640
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
7641
 
 
7642
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7643
 
# Free Software Foundation, Inc.
7644
 
#
7645
 
# This file is free software; the Free Software Foundation
7646
 
# gives unlimited permission to copy and/or distribute it,
7647
 
# with or without modifications, as long as this notice is preserved.
7648
 
 
7649
 
# serial 8
7650
 
 
7651
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7652
 
# -------------------------------------
7653
 
# Define a conditional.
7654
 
AC_DEFUN([AM_CONDITIONAL],
7655
 
[AC_PREREQ(2.52)dnl
7656
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
7657
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7658
 
AC_SUBST([$1_TRUE])dnl
7659
 
AC_SUBST([$1_FALSE])dnl
7660
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
7661
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
7662
 
if $2; then
7663
 
  $1_TRUE=
7664
 
  $1_FALSE='#'
7665
 
else
7666
 
  $1_TRUE='#'
7667
 
  $1_FALSE=
7668
 
fi
7669
 
AC_CONFIG_COMMANDS_PRE(
7670
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
7671
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
7672
 
Usually this means the macro was only invoked conditionally.]])
7673
 
fi])])
7674
 
 
7675
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7676
 
# Free Software Foundation, Inc.
7677
 
#
7678
 
# This file is free software; the Free Software Foundation
7679
 
# gives unlimited permission to copy and/or distribute it,
7680
 
# with or without modifications, as long as this notice is preserved.
7681
 
 
7682
 
# serial 9
7683
 
 
7684
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7685
 
# written in clear, in which case automake, when reading aclocal.m4,
7686
 
# will think it sees a *use*, and therefore will trigger all it's
7687
 
# C support machinery.  Also note that it means that autoscan, seeing
7688
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7689
 
 
7690
 
 
7691
 
# _AM_DEPENDENCIES(NAME)
7692
 
# ----------------------
7693
 
# See how the compiler implements dependency checking.
7694
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
7695
 
# We try a few techniques and use that to set a single cache variable.
7696
 
#
7697
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
7698
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
7699
 
# dependency, and given that the user is not expected to run this macro,
7700
 
# just rely on AC_PROG_CC.
7701
 
AC_DEFUN([_AM_DEPENDENCIES],
7702
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
7703
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
7704
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
7705
 
AC_REQUIRE([AM_DEP_TRACK])dnl
7706
 
 
7707
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
7708
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
7709
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7710
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
7711
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
7712
 
                   [depcc="$$1"   am_compiler_list=])
7713
 
 
7714
 
AC_CACHE_CHECK([dependency style of $depcc],
7715
 
               [am_cv_$1_dependencies_compiler_type],
7716
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7717
 
  # We make a subdir and do the tests there.  Otherwise we can end up
7718
 
  # making bogus files that we don't know about and never remove.  For
7719
 
  # instance it was reported that on HP-UX the gcc test will end up
7720
 
  # making a dummy file named `D' -- because `-MD' means `put the output
7721
 
  # in D'.
7722
 
  mkdir conftest.dir
7723
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
7724
 
  # using a relative directory.
7725
 
  cp "$am_depcomp" conftest.dir
7726
 
  cd conftest.dir
7727
 
  # We will build objects and dependencies in a subdirectory because
7728
 
  # it helps to detect inapplicable dependency modes.  For instance
7729
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
7730
 
  # side effect of compilation, but ICC will put the dependencies in
7731
 
  # the current directory while Tru64 will put them in the object
7732
 
  # directory.
7733
 
  mkdir sub
7734
 
 
7735
 
  am_cv_$1_dependencies_compiler_type=none
7736
 
  if test "$am_compiler_list" = ""; then
7737
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7738
 
  fi
7739
 
  for depmode in $am_compiler_list; do
7740
 
    # Setup a source with many dependencies, because some compilers
7741
 
    # like to wrap large dependency lists on column 80 (with \), and
7742
 
    # we should not choose a depcomp mode which is confused by this.
7743
 
    #
7744
 
    # We need to recreate these files for each test, as the compiler may
7745
 
    # overwrite some of them when testing with obscure command lines.
7746
 
    # This happens at least with the AIX C compiler.
7747
 
    : > sub/conftest.c
7748
 
    for i in 1 2 3 4 5 6; do
7749
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7750
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7751
 
      # Solaris 8's {/usr,}/bin/sh.
7752
 
      touch sub/conftst$i.h
7753
 
    done
7754
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7755
 
 
7756
 
    case $depmode in
7757
 
    nosideeffect)
7758
 
      # after this tag, mechanisms are not by side-effect, so they'll
7759
 
      # only be used when explicitly requested
7760
 
      if test "x$enable_dependency_tracking" = xyes; then
7761
 
        continue
7762
 
      else
7763
 
        break
7764
 
      fi
7765
 
      ;;
7766
 
    none) break ;;
7767
 
    esac
7768
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7769
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
7770
 
    # handle `-M -o', and we need to detect this.
7771
 
    if depmode=$depmode \
7772
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7773
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7774
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7775
 
         >/dev/null 2>conftest.err &&
7776
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7777
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7778
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7779
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7780
 
      # icc doesn't choke on unknown options, it will just issue warnings
7781
 
      # or remarks (even with -Werror).  So we grep stderr for any message
7782
 
      # that says an option was ignored or not supported.
7783
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
7784
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
7785
 
      # The diagnosis changed in icc 8.0:
7786
 
      #   icc: Command line remark: option '-MP' not supported
7787
 
      if (grep 'ignoring option' conftest.err ||
7788
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7789
 
        am_cv_$1_dependencies_compiler_type=$depmode
7790
 
        break
7791
 
      fi
7792
 
    fi
7793
 
  done
7794
 
 
7795
 
  cd ..
7796
 
  rm -rf conftest.dir
7797
 
else
7798
 
  am_cv_$1_dependencies_compiler_type=none
7799
 
fi
7800
 
])
7801
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
7802
 
AM_CONDITIONAL([am__fastdep$1], [
7803
 
  test "x$enable_dependency_tracking" != xno \
7804
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
7805
 
])
7806
 
 
7807
 
 
7808
 
# AM_SET_DEPDIR
7809
 
# -------------
7810
 
# Choose a directory name for dependency files.
7811
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
7812
 
AC_DEFUN([AM_SET_DEPDIR],
7813
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7814
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
7815
 
])
7816
 
 
7817
 
 
7818
 
# AM_DEP_TRACK
7819
 
# ------------
7820
 
AC_DEFUN([AM_DEP_TRACK],
7821
 
[AC_ARG_ENABLE(dependency-tracking,
7822
 
[  --disable-dependency-tracking  speeds up one-time build
7823
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
7824
 
if test "x$enable_dependency_tracking" != xno; then
7825
 
  am_depcomp="$ac_aux_dir/depcomp"
7826
 
  AMDEPBACKSLASH='\'
7827
 
fi
7828
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7829
 
AC_SUBST([AMDEPBACKSLASH])dnl
7830
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7831
 
])
7832
 
 
7833
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7834
 
 
7835
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7836
 
# Free Software Foundation, Inc.
7837
 
#
7838
 
# This file is free software; the Free Software Foundation
7839
 
# gives unlimited permission to copy and/or distribute it,
7840
 
# with or without modifications, as long as this notice is preserved.
7841
 
 
7842
 
#serial 3
7843
 
 
7844
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7845
 
# ------------------------------
7846
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7847
 
[for mf in $CONFIG_FILES; do
7848
 
  # Strip MF so we end up with the name of the file.
7849
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
7850
 
  # Check whether this is an Automake generated Makefile or not.
7851
 
  # We used to match only the files named `Makefile.in', but
7852
 
  # some people rename them; so instead we look at the file content.
7853
 
  # Grep'ing the first line is not enough: some people post-process
7854
 
  # each Makefile.in and add a new line on top of each file to say so.
7855
 
  # Grep'ing the whole file is not good either: AIX grep has a line
7856
 
  # limit of 2048, but all sed's we know have understand at least 4000.
7857
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7858
 
    dirpart=`AS_DIRNAME("$mf")`
7859
 
  else
7860
 
    continue
7861
 
  fi
7862
 
  # Extract the definition of DEPDIR, am__include, and am__quote
7863
 
  # from the Makefile without running `make'.
7864
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7865
 
  test -z "$DEPDIR" && continue
7866
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
7867
 
  test -z "am__include" && continue
7868
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7869
 
  # When using ansi2knr, U may be empty or an underscore; expand it
7870
 
  U=`sed -n 's/^U = //p' < "$mf"`
7871
 
  # Find all dependency output files, they are included files with
7872
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
7873
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
7874
 
  # expansion.
7875
 
  for file in `sed -n "
7876
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7877
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7878
 
    # Make sure the directory exists.
7879
 
    test -f "$dirpart/$file" && continue
7880
 
    fdir=`AS_DIRNAME(["$file"])`
7881
 
    AS_MKDIR_P([$dirpart/$fdir])
7882
 
    # echo "creating $dirpart/$file"
7883
 
    echo '# dummy' > "$dirpart/$file"
7884
 
  done
7885
 
done
7886
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7887
 
 
7888
 
 
7889
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
7890
 
# -----------------------------
7891
 
# This macro should only be invoked once -- use via AC_REQUIRE.
7892
 
#
7893
 
# This code is only required when automatic dependency tracking
7894
 
# is enabled.  FIXME.  This creates each `.P' file that we will
7895
 
# need in order to bootstrap the dependency handling code.
7896
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7897
 
[AC_CONFIG_COMMANDS([depfiles],
7898
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7899
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7900
 
])
7901
 
 
7902
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7903
 
# Free Software Foundation, Inc.
7904
 
#
7905
 
# This file is free software; the Free Software Foundation
7906
 
# gives unlimited permission to copy and/or distribute it,
7907
 
# with or without modifications, as long as this notice is preserved.
7908
 
 
7909
 
# serial 8
7910
 
 
7911
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
7912
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7913
 
 
7914
 
# Do all the work for Automake.                             -*- Autoconf -*-
7915
 
 
7916
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7917
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
7918
 
#
7919
 
# This file is free software; the Free Software Foundation
7920
 
# gives unlimited permission to copy and/or distribute it,
7921
 
# with or without modifications, as long as this notice is preserved.
7922
 
 
7923
 
# serial 13
7924
 
 
7925
 
# This macro actually does too much.  Some checks are only needed if
7926
 
# your package does certain things.  But this isn't really a big deal.
7927
 
 
7928
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7929
 
# AM_INIT_AUTOMAKE([OPTIONS])
7930
 
# -----------------------------------------------
7931
 
# The call with PACKAGE and VERSION arguments is the old style
7932
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
7933
 
# and VERSION should now be passed to AC_INIT and removed from
7934
 
# the call to AM_INIT_AUTOMAKE.
7935
 
# We support both call styles for the transition.  After
7936
 
# the next Automake release, Autoconf can make the AC_INIT
7937
 
# arguments mandatory, and then we can depend on a new Autoconf
7938
 
# release and drop the old call support.
7939
 
AC_DEFUN([AM_INIT_AUTOMAKE],
7940
 
[AC_PREREQ([2.60])dnl
7941
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7942
 
dnl the ones we care about.
7943
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7944
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7945
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
7946
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7947
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7948
 
  # is not polluted with repeated "-I."
7949
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7950
 
  # test to see if srcdir already configured
7951
 
  if test -f $srcdir/config.status; then
7952
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7953
 
  fi
7954
 
fi
7955
 
 
7956
 
# test whether we have cygpath
7957
 
if test -z "$CYGPATH_W"; then
7958
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
7959
 
    CYGPATH_W='cygpath -w'
7960
 
  else
7961
 
    CYGPATH_W=echo
7962
 
  fi
7963
 
fi
7964
 
AC_SUBST([CYGPATH_W])
7965
 
 
7966
 
# Define the identity of the package.
7967
 
dnl Distinguish between old-style and new-style calls.
7968
 
m4_ifval([$2],
7969
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7970
 
 AC_SUBST([PACKAGE], [$1])dnl
7971
 
 AC_SUBST([VERSION], [$2])],
7972
 
[_AM_SET_OPTIONS([$1])dnl
7973
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7974
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7975
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7976
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7977
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7978
 
 
7979
 
_AM_IF_OPTION([no-define],,
7980
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7981
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7982
 
 
7983
 
# Some tools Automake needs.
7984
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
7985
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7986
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7987
 
AM_MISSING_PROG(AUTOCONF, autoconf)
7988
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7989
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
7990
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
7991
 
AM_PROG_INSTALL_SH
7992
 
AM_PROG_INSTALL_STRIP
7993
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7994
 
# We need awk for the "check" target.  The system "awk" is bad on
7995
 
# some platforms.
7996
 
AC_REQUIRE([AC_PROG_AWK])dnl
7997
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7998
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7999
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
8000
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
8001
 
                             [_AM_PROG_TAR([v7])])])
8002
 
_AM_IF_OPTION([no-dependencies],,
8003
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
8004
 
                  [_AM_DEPENDENCIES(CC)],
8005
 
                  [define([AC_PROG_CC],
8006
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
8007
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
8008
 
                  [_AM_DEPENDENCIES(CXX)],
8009
 
                  [define([AC_PROG_CXX],
8010
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8011
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8012
 
                  [_AM_DEPENDENCIES(OBJC)],
8013
 
                  [define([AC_PROG_OBJC],
8014
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
8015
 
])
8016
 
])
8017
 
 
8018
 
 
8019
 
# When config.status generates a header, we must update the stamp-h file.
8020
 
# This file resides in the same directory as the config header
8021
 
# that is generated.  The stamp files are numbered to have different names.
8022
 
 
8023
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
8024
 
# loop where config.status creates the headers, so we can generate
8025
 
# our stamp files there.
8026
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
8027
 
[# Compute $1's index in $config_headers.
8028
 
_am_arg=$1
8029
 
_am_stamp_count=1
8030
 
for _am_header in $config_headers :; do
8031
 
  case $_am_header in
8032
 
    $_am_arg | $_am_arg:* )
8033
 
      break ;;
8034
 
    * )
8035
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8036
 
  esac
8037
 
done
8038
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8039
 
 
8040
 
# Copyright (C) 2001, 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
 
# AM_PROG_INSTALL_SH
8047
 
# ------------------
8048
 
# Define $install_sh.
8049
 
AC_DEFUN([AM_PROG_INSTALL_SH],
8050
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8051
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
8052
 
AC_SUBST(install_sh)])
8053
 
 
8054
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
8055
 
#
8056
 
# This file is free software; the Free Software Foundation
8057
 
# gives unlimited permission to copy and/or distribute it,
8058
 
# with or without modifications, as long as this notice is preserved.
8059
 
 
8060
 
# serial 2
8061
 
 
8062
 
# Check whether the underlying file-system supports filenames
8063
 
# with a leading dot.  For instance MS-DOS doesn't.
8064
 
AC_DEFUN([AM_SET_LEADING_DOT],
8065
 
[rm -rf .tst 2>/dev/null
8066
 
mkdir .tst 2>/dev/null
8067
 
if test -d .tst; then
8068
 
  am__leading_dot=.
8069
 
else
8070
 
  am__leading_dot=_
8071
 
fi
8072
 
rmdir .tst 2>/dev/null
8073
 
AC_SUBST([am__leading_dot])])
8074
 
 
8075
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
8076
 
# From Jim Meyering
8077
 
 
8078
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
8079
 
# Free Software Foundation, Inc.
8080
 
#
8081
 
# This file is free software; the Free Software Foundation
8082
 
# gives unlimited permission to copy and/or distribute it,
8083
 
# with or without modifications, as long as this notice is preserved.
8084
 
 
8085
 
# serial 4
8086
 
 
8087
 
AC_DEFUN([AM_MAINTAINER_MODE],
8088
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8089
 
  dnl maintainer-mode is disabled by default
8090
 
  AC_ARG_ENABLE(maintainer-mode,
8091
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
8092
 
                          (and sometimes confusing) to the casual installer],
8093
 
      USE_MAINTAINER_MODE=$enableval,
8094
 
      USE_MAINTAINER_MODE=no)
8095
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8096
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
8097
 
  MAINT=$MAINTAINER_MODE_TRUE
8098
 
  AC_SUBST(MAINT)dnl
8099
 
]
8100
 
)
8101
 
 
8102
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8103
 
 
8104
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
8105
 
 
8106
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
8107
 
#
8108
 
# This file is free software; the Free Software Foundation
8109
 
# gives unlimited permission to copy and/or distribute it,
8110
 
# with or without modifications, as long as this notice is preserved.
8111
 
 
8112
 
# serial 3
8113
 
 
8114
 
# AM_MAKE_INCLUDE()
8115
 
# -----------------
8116
 
# Check to see how make treats includes.
8117
 
AC_DEFUN([AM_MAKE_INCLUDE],
8118
 
[am_make=${MAKE-make}
8119
 
cat > confinc << 'END'
8120
 
am__doit:
8121
 
        @echo done
8122
 
.PHONY: am__doit
8123
 
END
8124
 
# If we don't find an include directive, just comment out the code.
8125
 
AC_MSG_CHECKING([for style of include used by $am_make])
8126
 
am__include="#"
8127
 
am__quote=
8128
 
_am_result=none
8129
 
# First try GNU make style include.
8130
 
echo "include confinc" > confmf
8131
 
# We grep out `Entering directory' and `Leaving directory'
8132
 
# messages which can occur if `w' ends up in MAKEFLAGS.
8133
 
# In particular we don't look at `^make:' because GNU make might
8134
 
# be invoked under some other name (usually "gmake"), in which
8135
 
# case it prints its new name instead of `make'.
8136
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8137
 
   am__include=include
8138
 
   am__quote=
8139
 
   _am_result=GNU
8140
 
fi
8141
 
# Now try BSD make style include.
8142
 
if test "$am__include" = "#"; then
8143
 
   echo '.include "confinc"' > confmf
8144
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8145
 
      am__include=.include
8146
 
      am__quote="\""
8147
 
      _am_result=BSD
8148
 
   fi
8149
 
fi
8150
 
AC_SUBST([am__include])
8151
 
AC_SUBST([am__quote])
8152
 
AC_MSG_RESULT([$_am_result])
8153
 
rm -f confinc confmf
8154
 
])
8155
 
 
8156
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
8157
 
 
8158
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
8159
 
# Free Software Foundation, Inc.
8160
 
#
8161
 
# This file is free software; the Free Software Foundation
8162
 
# gives unlimited permission to copy and/or distribute it,
8163
 
# with or without modifications, as long as this notice is preserved.
8164
 
 
8165
 
# serial 5
8166
 
 
8167
 
# AM_MISSING_PROG(NAME, PROGRAM)
8168
 
# ------------------------------
8169
 
AC_DEFUN([AM_MISSING_PROG],
8170
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
8171
 
$1=${$1-"${am_missing_run}$2"}
8172
 
AC_SUBST($1)])
8173
 
 
8174
 
 
8175
 
# AM_MISSING_HAS_RUN
8176
 
# ------------------
8177
 
# Define MISSING if not defined so far and test if it supports --run.
8178
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
8179
 
AC_DEFUN([AM_MISSING_HAS_RUN],
8180
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8181
 
AC_REQUIRE_AUX_FILE([missing])dnl
8182
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8183
 
# Use eval to expand $SHELL
8184
 
if eval "$MISSING --run true"; then
8185
 
  am_missing_run="$MISSING --run "
8186
 
else
8187
 
  am_missing_run=
8188
 
  AC_MSG_WARN([`missing' script is too old or missing])
8189
 
fi
8190
 
])
8191
 
 
8192
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
8193
 
#
8194
 
# This file is free software; the Free Software Foundation
8195
 
# gives unlimited permission to copy and/or distribute it,
8196
 
# with or without modifications, as long as this notice is preserved.
8197
 
 
8198
 
# AM_PROG_MKDIR_P
8199
 
# ---------------
8200
 
# Check for `mkdir -p'.
8201
 
AC_DEFUN([AM_PROG_MKDIR_P],
8202
 
[AC_PREREQ([2.60])dnl
8203
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8204
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
8205
 
dnl while keeping a definition of mkdir_p for backward compatibility.
8206
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8207
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8208
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
8209
 
dnl adjustment using top_builddir (which is defined more often than
8210
 
dnl MKDIR_P).
8211
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8212
 
case $mkdir_p in
8213
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
8214
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8215
 
esac
8216
 
])
8217
 
 
8218
 
# Helper functions for option handling.                     -*- Autoconf -*-
8219
 
 
8220
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
8221
 
#
8222
 
# This file is free software; the Free Software Foundation
8223
 
# gives unlimited permission to copy and/or distribute it,
8224
 
# with or without modifications, as long as this notice is preserved.
8225
 
 
8226
 
# serial 3
8227
 
 
8228
 
# _AM_MANGLE_OPTION(NAME)
8229
 
# -----------------------
8230
 
AC_DEFUN([_AM_MANGLE_OPTION],
8231
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8232
 
 
8233
 
# _AM_SET_OPTION(NAME)
8234
 
# ------------------------------
8235
 
# Set option NAME.  Presently that only means defining a flag for this option.
8236
 
AC_DEFUN([_AM_SET_OPTION],
8237
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8238
 
 
8239
 
# _AM_SET_OPTIONS(OPTIONS)
8240
 
# ----------------------------------
8241
 
# OPTIONS is a space-separated list of Automake options.
8242
 
AC_DEFUN([_AM_SET_OPTIONS],
8243
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8244
 
 
8245
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8246
 
# -------------------------------------------
8247
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8248
 
AC_DEFUN([_AM_IF_OPTION],
8249
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8250
 
 
8251
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8252
 
# Free Software Foundation, Inc.
8253
 
#
8254
 
# This file is free software; the Free Software Foundation
8255
 
# gives unlimited permission to copy and/or distribute it,
8256
 
# with or without modifications, as long as this notice is preserved.
8257
 
 
8258
 
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8259
 
# ---------------------------------------------------------------------------
8260
 
# Adds support for distributing Python modules and packages.  To
8261
 
# install modules, copy them to $(pythondir), using the python_PYTHON
8262
 
# automake variable.  To install a package with the same name as the
8263
 
# automake package, install to $(pkgpythondir), or use the
8264
 
# pkgpython_PYTHON automake variable.
8265
 
#
8266
 
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
8267
 
# locations to install python extension modules (shared libraries).
8268
 
# Another macro is required to find the appropriate flags to compile
8269
 
# extension modules.
8270
 
#
8271
 
# If your package is configured with a different prefix to python,
8272
 
# users will have to add the install directory to the PYTHONPATH
8273
 
# environment variable, or create a .pth file (see the python
8274
 
# documentation for details).
8275
 
#
8276
 
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
8277
 
# cause an error if the version of python installed on the system
8278
 
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
8279
 
# numbers and dots only.
8280
 
AC_DEFUN([AM_PATH_PYTHON],
8281
 
 [
8282
 
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
8283
 
  dnl supported because the default installation locations changed from
8284
 
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
8285
 
  dnl in 1.5.
8286
 
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
8287
 
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
8288
 
python2.1 python2.0 python1.6 python1.5])
8289
 
 
8290
 
  m4_if([$1],[],[
8291
 
    dnl No version check is needed.
8292
 
    # Find any Python interpreter.
8293
 
    if test -z "$PYTHON"; then
8294
 
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
8295
 
    fi
8296
 
    am_display_PYTHON=python
8297
 
  ], [
8298
 
    dnl A version check is needed.
8299
 
    if test -n "$PYTHON"; then
8300
 
      # If the user set $PYTHON, use it and don't search something else.
8301
 
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
8302
 
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
8303
 
                              [AC_MSG_RESULT(yes)],
8304
 
                              [AC_MSG_ERROR(too old)])
8305
 
      am_display_PYTHON=$PYTHON
8306
 
    else
8307
 
      # Otherwise, try each interpreter until we find one that satisfies
8308
 
      # VERSION.
8309
 
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
8310
 
        [am_cv_pathless_PYTHON],[
8311
 
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
8312
 
          test "$am_cv_pathless_PYTHON" = none && break
8313
 
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
8314
 
        done])
8315
 
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8316
 
      if test "$am_cv_pathless_PYTHON" = none; then
8317
 
        PYTHON=:
8318
 
      else
8319
 
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
8320
 
      fi
8321
 
      am_display_PYTHON=$am_cv_pathless_PYTHON
8322
 
    fi
8323
 
  ])
8324
 
 
8325
 
  if test "$PYTHON" = :; then
8326
 
  dnl Run any user-specified action, or abort.
8327
 
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
8328
 
  else
8329
 
 
8330
 
  dnl Query Python for its version number.  Getting [:3] seems to be
8331
 
  dnl the best way to do this; it's what "site.py" does in the standard
8332
 
  dnl library.
8333
 
 
8334
 
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
8335
 
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
8336
 
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
8337
 
 
8338
 
  dnl Use the values of $prefix and $exec_prefix for the corresponding
8339
 
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
8340
 
  dnl distinct variables so they can be overridden if need be.  However,
8341
 
  dnl general consensus is that you shouldn't need this ability.
8342
 
 
8343
 
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
8344
 
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
8345
 
 
8346
 
  dnl At times (like when building shared libraries) you may want
8347
 
  dnl to know which OS platform Python thinks this is.
8348
 
 
8349
 
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
8350
 
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
8351
 
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
8352
 
 
8353
 
 
8354
 
  dnl Set up 4 directories:
8355
 
 
8356
 
  dnl pythondir -- where to install python scripts.  This is the
8357
 
  dnl   site-packages directory, not the python standard library
8358
 
  dnl   directory like in previous automake betas.  This behavior
8359
 
  dnl   is more consistent with lispdir.m4 for example.
8360
 
  dnl Query distutils for this directory.  distutils does not exist in
8361
 
  dnl Python 1.5, so we fall back to the hardcoded directory if it
8362
 
  dnl doesn't work.
8363
 
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
8364
 
    [am_cv_python_pythondir],
8365
 
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
8366
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
8367
 
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
8368
 
 
8369
 
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
8370
 
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
8371
 
  dnl   more consistent with the rest of automake.
8372
 
 
8373
 
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
8374
 
 
8375
 
  dnl pyexecdir -- directory for installing python extension modules
8376
 
  dnl   (shared libraries)
8377
 
  dnl Query distutils for this directory.  distutils does not exist in
8378
 
  dnl Python 1.5, so we fall back to the hardcoded directory if it
8379
 
  dnl doesn't work.
8380
 
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
8381
 
    [am_cv_python_pyexecdir],
8382
 
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
8383
 
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
8384
 
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
8385
 
 
8386
 
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
8387
 
 
8388
 
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
8389
 
 
8390
 
  dnl Run any user-specified action.
8391
 
  $2
8392
 
  fi
8393
 
 
8394
 
])
8395
 
 
8396
 
 
8397
 
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
8398
 
# ---------------------------------------------------------------------------
8399
 
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
8400
 
# Run ACTION-IF-FALSE otherwise.
8401
 
# This test uses sys.hexversion instead of the string equivalent (first
8402
 
# word of sys.version), in order to cope with versions such as 2.2c1.
8403
 
# hexversion has been introduced in Python 1.5.2; it's probably not
8404
 
# worth to support older versions (1.5.1 was released on October 31, 1998).
8405
 
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
8406
 
 [prog="import sys, string
8407
 
# split strings by '.' and convert to numeric.  Append some zeros
8408
 
# because we need at least 4 digits for the hex conversion.
8409
 
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
8410
 
minverhex = 0
8411
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
8412
 
sys.exit(sys.hexversion < minverhex)"
8413
 
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
8414
 
 
8415
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
8416
 
#
8417
 
# This file is free software; the Free Software Foundation
8418
 
# gives unlimited permission to copy and/or distribute it,
8419
 
# with or without modifications, as long as this notice is preserved.
8420
 
 
8421
 
# AM_RUN_LOG(COMMAND)
8422
 
# -------------------
8423
 
# Run COMMAND, save the exit status in ac_status, and log it.
8424
 
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
8425
 
AC_DEFUN([AM_RUN_LOG],
8426
 
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
8427
 
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
8428
 
   ac_status=$?
8429
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
8430
 
   (exit $ac_status); }])
8431
 
 
8432
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
8433
 
 
8434
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8435
 
# Free Software Foundation, Inc.
8436
 
#
8437
 
# This file is free software; the Free Software Foundation
8438
 
# gives unlimited permission to copy and/or distribute it,
8439
 
# with or without modifications, as long as this notice is preserved.
8440
 
 
8441
 
# serial 4
8442
 
 
8443
 
# AM_SANITY_CHECK
8444
 
# ---------------
8445
 
AC_DEFUN([AM_SANITY_CHECK],
8446
 
[AC_MSG_CHECKING([whether build environment is sane])
8447
 
# Just in case
8448
 
sleep 1
8449
 
echo timestamp > conftest.file
8450
 
# Do `set' in a subshell so we don't clobber the current shell's
8451
 
# arguments.  Must try -L first in case configure is actually a
8452
 
# symlink; some systems play weird games with the mod time of symlinks
8453
 
# (eg FreeBSD returns the mod time of the symlink's containing
8454
 
# directory).
8455
 
if (
8456
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8457
 
   if test "$[*]" = "X"; then
8458
 
      # -L didn't work.
8459
 
      set X `ls -t $srcdir/configure conftest.file`
8460
 
   fi
8461
 
   rm -f conftest.file
8462
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
8463
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
8464
 
 
8465
 
      # If neither matched, then we have a broken ls.  This can happen
8466
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
8467
 
      # broken ls alias from the environment.  This has actually
8468
 
      # happened.  Such a system could not be considered "sane".
8469
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
8470
 
alias in your environment])
8471
 
   fi
8472
 
 
8473
 
   test "$[2]" = conftest.file
8474
 
   )
8475
 
then
8476
 
   # Ok.
8477
 
   :
8478
 
else
8479
 
   AC_MSG_ERROR([newly created file is older than distributed files!
8480
 
Check your system clock])
8481
 
fi
8482
 
AC_MSG_RESULT(yes)])
8483
 
 
8484
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
8485
 
#
8486
 
# This file is free software; the Free Software Foundation
8487
 
# gives unlimited permission to copy and/or distribute it,
8488
 
# with or without modifications, as long as this notice is preserved.
8489
 
 
8490
 
# AM_PROG_INSTALL_STRIP
8491
 
# ---------------------
8492
 
# One issue with vendor `install' (even GNU) is that you can't
8493
 
# specify the program used to strip binaries.  This is especially
8494
 
# annoying in cross-compiling environments, where the build's strip
8495
 
# is unlikely to handle the host's binaries.
8496
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
8497
 
# always use install-sh in `make install-strip', and initialize
8498
 
# STRIPPROG with the value of the STRIP variable (set by the user).
8499
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
8500
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8501
 
# Installed binaries are usually stripped using `strip' when the user
8502
 
# run `make install-strip'.  However `strip' might not be the right
8503
 
# tool to use in cross-compilation environments, therefore Automake
8504
 
# will honor the `STRIP' environment variable to overrule this program.
8505
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8506
 
if test "$cross_compiling" != no; then
8507
 
  AC_CHECK_TOOL([STRIP], [strip], :)
8508
 
fi
8509
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8510
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8511
 
 
8512
 
# Copyright (C) 2006  Free Software Foundation, Inc.
8513
 
#
8514
 
# This file is free software; the Free Software Foundation
8515
 
# gives unlimited permission to copy and/or distribute it,
8516
 
# with or without modifications, as long as this notice is preserved.
8517
 
 
8518
 
# _AM_SUBST_NOTMAKE(VARIABLE)
8519
 
# ---------------------------
8520
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8521
 
# This macro is traced by Automake.
8522
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
8523
 
 
8524
 
# Check how to create a tarball.                            -*- Autoconf -*-
8525
 
 
8526
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
8527
 
#
8528
 
# This file is free software; the Free Software Foundation
8529
 
# gives unlimited permission to copy and/or distribute it,
8530
 
# with or without modifications, as long as this notice is preserved.
8531
 
 
8532
 
# serial 2
8533
 
 
8534
 
# _AM_PROG_TAR(FORMAT)
8535
 
# --------------------
8536
 
# Check how to create a tarball in format FORMAT.
8537
 
# FORMAT should be one of `v7', `ustar', or `pax'.
8538
 
#
8539
 
# Substitute a variable $(am__tar) that is a command
8540
 
# writing to stdout a FORMAT-tarball containing the directory
8541
 
# $tardir.
8542
 
#     tardir=directory && $(am__tar) > result.tar
8543
 
#
8544
 
# Substitute a variable $(am__untar) that extract such
8545
 
# a tarball read from stdin.
8546
 
#     $(am__untar) < result.tar
8547
 
AC_DEFUN([_AM_PROG_TAR],
8548
 
[# Always define AMTAR for backward compatibility.
8549
 
AM_MISSING_PROG([AMTAR], [tar])
8550
 
m4_if([$1], [v7],
8551
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8552
 
     [m4_case([$1], [ustar],, [pax],,
8553
 
              [m4_fatal([Unknown tar format])])
8554
 
AC_MSG_CHECKING([how to create a $1 tar archive])
8555
 
# Loop over all known methods to create a tar archive until one works.
8556
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8557
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
8558
 
# Do not fold the above two line into one, because Tru64 sh and
8559
 
# Solaris sh will not grok spaces in the rhs of `-'.
8560
 
for _am_tool in $_am_tools
8561
 
do
8562
 
  case $_am_tool in
8563
 
  gnutar)
8564
 
    for _am_tar in tar gnutar gtar;
8565
 
    do
8566
 
      AM_RUN_LOG([$_am_tar --version]) && break
8567
 
    done
8568
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8569
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8570
 
    am__untar="$_am_tar -xf -"
8571
 
    ;;
8572
 
  plaintar)
8573
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
8574
 
    # ustar tarball either.
8575
 
    (tar --version) >/dev/null 2>&1 && continue
8576
 
    am__tar='tar chf - "$$tardir"'
8577
 
    am__tar_='tar chf - "$tardir"'
8578
 
    am__untar='tar xf -'
8579
 
    ;;
8580
 
  pax)
8581
 
    am__tar='pax -L -x $1 -w "$$tardir"'
8582
 
    am__tar_='pax -L -x $1 -w "$tardir"'
8583
 
    am__untar='pax -r'
8584
 
    ;;
8585
 
  cpio)
8586
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8587
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8588
 
    am__untar='cpio -i -H $1 -d'
8589
 
    ;;
8590
 
  none)
8591
 
    am__tar=false
8592
 
    am__tar_=false
8593
 
    am__untar=false
8594
 
    ;;
8595
 
  esac
8596
 
 
8597
 
  # If the value was cached, stop now.  We just wanted to have am__tar
8598
 
  # and am__untar set.
8599
 
  test -n "${am_cv_prog_tar_$1}" && break
8600
 
 
8601
 
  # tar/untar a dummy directory, and stop if the command works
8602
 
  rm -rf conftest.dir
8603
 
  mkdir conftest.dir
8604
 
  echo GrepMe > conftest.dir/file
8605
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8606
 
  rm -rf conftest.dir
8607
 
  if test -s conftest.tar; then
8608
 
    AM_RUN_LOG([$am__untar <conftest.tar])
8609
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8610
 
  fi
8611
 
done
8612
 
rm -rf conftest.dir
8613
 
 
8614
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8615
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8616
 
AC_SUBST([am__tar])
8617
 
AC_SUBST([am__untar])
8618
 
]) # _AM_PROG_TAR
8619
 
 
8620
8424
m4_include([acinclude.m4])