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

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-05-28 22:47:18 UTC
  • mfrom: (1.1.29 upstream)
  • Revision ID: james.westby@ubuntu.com-20080528224718-b5t5ncp301baiure
Tags: 2.22.2-0ubuntu1
* New upstream version:
  - Fix the launching of the gnome-keyboard-properties dialog from the 
    access applet. (lp: #191168)
* debian/patches/98_autoreconf.patch:
  - new version update
* debian/patches/99_ltmain_as-needed.patch:
  - new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
m4_if(m4_PACKAGE_VERSION, [2.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
 
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'.])])
1084
21
 
1085
22
dnl AM_GCONF_SOURCE_2
1086
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
1699
636
 
1700
637
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1701
638
 
1702
 
# serial 48 AC_PROG_LIBTOOL
 
639
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
1703
640
 
1704
641
 
1705
642
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1787
724
AC_REQUIRE([AC_OBJEXT])dnl
1788
725
AC_REQUIRE([AC_EXEEXT])dnl
1789
726
dnl
1790
 
 
1791
727
AC_LIBTOOL_SYS_MAX_CMD_LEN
1792
728
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1793
729
AC_LIBTOOL_OBJDIR
1862
798
test -z "$ac_objext" && ac_objext=o
1863
799
 
1864
800
# Determine commands to create old-style static archives.
1865
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
801
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1866
802
old_postinstall_cmds='chmod 644 $oldlib'
1867
803
old_postuninstall_cmds=
1868
804
 
1889
825
  ;;
1890
826
esac
1891
827
 
 
828
_LT_REQUIRED_DARWIN_CHECKS
 
829
 
1892
830
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1893
831
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1894
832
enable_win32_dll=yes, enable_win32_dll=no)
1949
887
# Check for compiler boilerplate output or warnings with
1950
888
# the simple compiler test code.
1951
889
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1952
 
[ac_outfile=conftest.$ac_objext
1953
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
890
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
891
ac_outfile=conftest.$ac_objext
 
892
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1954
893
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1955
894
_lt_compiler_boilerplate=`cat conftest.err`
1956
895
$rm conftest*
1962
901
# Check for linker boilerplate output or warnings with
1963
902
# the simple link test code.
1964
903
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1965
 
[ac_outfile=conftest.$ac_objext
1966
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
904
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
905
ac_outfile=conftest.$ac_objext
 
906
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1967
907
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1968
908
_lt_linker_boilerplate=`cat conftest.err`
1969
 
$rm conftest*
 
909
$rm -r conftest*
1970
910
])# _LT_LINKER_BOILERPLATE
1971
911
 
 
912
# _LT_REQUIRED_DARWIN_CHECKS
 
913
# --------------------------
 
914
# Check for some things on darwin
 
915
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
916
  case $host_os in
 
917
    rhapsody* | darwin*)
 
918
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
919
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
920
 
 
921
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
922
      [lt_cv_apple_cc_single_mod=no
 
923
      if test -z "${LT_MULTI_MODULE}"; then
 
924
   # By default we will add the -single_module flag. You can override
 
925
   # by either setting the environment variable LT_MULTI_MODULE
 
926
   # non-empty at configure time, or by adding -multi_module to the
 
927
   # link flags.
 
928
   echo "int foo(void){return 1;}" > conftest.c
 
929
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
930
     -dynamiclib ${wl}-single_module conftest.c
 
931
   if test -f libconftest.dylib; then
 
932
     lt_cv_apple_cc_single_mod=yes
 
933
     rm -rf libconftest.dylib*
 
934
   fi
 
935
   rm conftest.c
 
936
      fi])
 
937
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
938
      [lt_cv_ld_exported_symbols_list],
 
939
      [lt_cv_ld_exported_symbols_list=no
 
940
      save_LDFLAGS=$LDFLAGS
 
941
      echo "_main" > conftest.sym
 
942
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
943
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
944
   [lt_cv_ld_exported_symbols_list=yes],
 
945
   [lt_cv_ld_exported_symbols_list=no])
 
946
   LDFLAGS="$save_LDFLAGS"
 
947
    ])
 
948
    case $host_os in
 
949
    rhapsody* | darwin1.[[0123]])
 
950
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
951
    darwin1.*)
 
952
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
953
    darwin*)
 
954
      # if running on 10.5 or later, the deployment target defaults
 
955
      # to the OS version, if on x86, and 10.4, the deployment
 
956
      # target defaults to 10.4. Don't you love it?
 
957
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
958
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
959
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
960
   10.[[012]]*)
 
961
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
962
   10.*)
 
963
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
964
      esac
 
965
    ;;
 
966
  esac
 
967
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
968
      _lt_dar_single_mod='$single_module'
 
969
    fi
 
970
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
971
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
972
    else
 
973
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
974
    fi
 
975
    if test "$DSYMUTIL" != ":"; then
 
976
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
977
    else
 
978
      _lt_dsymutil=
 
979
    fi
 
980
    ;;
 
981
  esac
 
982
])
1972
983
 
1973
984
# _LT_AC_SYS_LIBPATH_AIX
1974
985
# ----------------------
1979
990
# If we don't find anything, use the default library path according
1980
991
# to the aix ld manual.
1981
992
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1982
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1983
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1984
 
}'`
 
993
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
994
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
995
lt_aix_libpath_sed='
 
996
    /Import File Strings/,/^$/ {
 
997
        /^0/ {
 
998
            s/^0  *\(.*\)$/\1/
 
999
            p
 
1000
        }
 
1001
    }'
 
1002
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1985
1003
# Check for a 64-bit object if we didn't find anything.
1986
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1987
 
}'`; fi],[])
 
1004
if test -z "$aix_libpath"; then
 
1005
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1006
fi],[])
1988
1007
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1989
1008
])# _LT_AC_SYS_LIBPATH_AIX
1990
1009
 
2215
1234
  rm -rf conftest*
2216
1235
  ;;
2217
1236
 
2218
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
1237
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1238
s390*-*linux*|sparc*-*linux*)
2219
1239
  # Find out which ABI we are using.
2220
1240
  echo 'int i;' > conftest.$ac_ext
2221
1241
  if AC_TRY_EVAL(ac_compile); then
2222
1242
    case `/usr/bin/file conftest.o` in
2223
1243
    *32-bit*)
2224
1244
      case $host in
 
1245
        x86_64-*kfreebsd*-gnu)
 
1246
          LD="${LD-ld} -m elf_i386_fbsd"
 
1247
          ;;
2225
1248
        x86_64-*linux*)
2226
1249
          LD="${LD-ld} -m elf_i386"
2227
1250
          ;;
2238
1261
      ;;
2239
1262
    *64-bit*)
2240
1263
      case $host in
 
1264
        x86_64-*kfreebsd*-gnu)
 
1265
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
1266
          ;;
2241
1267
        x86_64-*linux*)
2242
1268
          LD="${LD-ld} -m elf_x86_64"
2243
1269
          ;;
2278
1304
    *64-bit*)
2279
1305
      case $lt_cv_prog_gnu_ld in
2280
1306
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
2281
 
      *)    LD="${LD-ld} -64" ;;
 
1307
      *)
 
1308
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1309
          LD="${LD-ld} -64"
 
1310
        fi
 
1311
        ;;
2282
1312
      esac
2283
1313
      ;;
2284
1314
    esac
2309
1339
AC_CACHE_CHECK([$1], [$2],
2310
1340
  [$2=no
2311
1341
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2312
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1342
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2313
1343
   lt_compiler_flag="$3"
2314
1344
   # Insert the option either (1) after the last *FLAGS variable, or
2315
1345
   # (2) before a word containing "conftest.", or (3) at the end.
2350
1380
# ------------------------------------------------------------
2351
1381
# Check whether the given compiler option works
2352
1382
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2353
 
[AC_CACHE_CHECK([$1], [$2],
 
1383
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1384
AC_CACHE_CHECK([$1], [$2],
2354
1385
  [$2=no
2355
1386
   save_LDFLAGS="$LDFLAGS"
2356
1387
   LDFLAGS="$LDFLAGS $3"
2357
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
1388
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
2358
1389
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2359
1390
     # The linker can only warn and ignore the option if not recognized
2360
1391
     # So say no if there are warnings
2370
1401
       $2=yes
2371
1402
     fi
2372
1403
   fi
2373
 
   $rm conftest*
 
1404
   $rm -r conftest*
2374
1405
   LDFLAGS="$save_LDFLAGS"
2375
1406
])
2376
1407
 
2468
1499
    fi
2469
1500
    ;;
2470
1501
  *)
2471
 
    # If test is not a shell built-in, we'll probably end up computing a
2472
 
    # maximum length that is only half of the actual maximum length, but
2473
 
    # we can't tell.
2474
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2475
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1502
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
1503
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1504
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1505
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1506
    else
 
1507
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1508
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2476
1509
               = "XX$teststring") >/dev/null 2>&1 &&
2477
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
2478
 
            lt_cv_sys_max_cmd_len=$new_result &&
2479
 
            test $i != 17 # 1/2 MB should be enough
2480
 
    do
2481
 
      i=`expr $i + 1`
2482
 
      teststring=$teststring$teststring
2483
 
    done
2484
 
    teststring=
2485
 
    # Add a significant safety factor because C++ compilers can tack on massive
2486
 
    # amounts of additional arguments before passing them to the linker.
2487
 
    # It appears as though 1/2 is a usable value.
2488
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1510
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1511
              lt_cv_sys_max_cmd_len=$new_result &&
 
1512
              test $i != 17 # 1/2 MB should be enough
 
1513
      do
 
1514
        i=`expr $i + 1`
 
1515
        teststring=$teststring$teststring
 
1516
      done
 
1517
      teststring=
 
1518
      # Add a significant safety factor because C++ compilers can tack on massive
 
1519
      # amounts of additional arguments before passing them to the linker.
 
1520
      # It appears as though 1/2 is a usable value.
 
1521
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1522
    fi
2489
1523
    ;;
2490
1524
  esac
2491
1525
])
2638
1672
    AC_CHECK_FUNC([shl_load],
2639
1673
          [lt_cv_dlopen="shl_load"],
2640
1674
      [AC_CHECK_LIB([dld], [shl_load],
2641
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1675
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2642
1676
        [AC_CHECK_FUNC([dlopen],
2643
1677
              [lt_cv_dlopen="dlopen"],
2644
1678
          [AC_CHECK_LIB([dl], [dlopen],
2646
1680
            [AC_CHECK_LIB([svld], [dlopen],
2647
1681
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2648
1682
              [AC_CHECK_LIB([dld], [dld_link],
2649
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1683
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2650
1684
              ])
2651
1685
            ])
2652
1686
          ])
2712
1746
# ---------------------------------
2713
1747
# Check to see if options -c and -o are simultaneously supported by compiler
2714
1748
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2715
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1749
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1750
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2716
1751
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2717
1752
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2718
1753
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2720
1755
   mkdir conftest
2721
1756
   cd conftest
2722
1757
   mkdir out
2723
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1758
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2724
1759
 
2725
1760
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2726
1761
   # Insert the option either (1) after the last *FLAGS variable, or
2860
1895
   darwin*)
2861
1896
       if test -n "$STRIP" ; then
2862
1897
         striplib="$STRIP -x"
 
1898
         old_striplib="$STRIP -S"
2863
1899
         AC_MSG_RESULT([yes])
2864
1900
       else
2865
1901
  AC_MSG_RESULT([no])
2877
1913
# -----------------------------
2878
1914
# PORTME Fill in your ld.so characteristics
2879
1915
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2880
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1916
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1917
AC_MSG_CHECKING([dynamic linker characteristics])
2881
1918
library_names_spec=
2882
1919
libname_spec='lib$name'
2883
1920
soname_spec=
2891
1928
version_type=none
2892
1929
dynamic_linker="$host_os ld.so"
2893
1930
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1931
m4_if($1,[],[
2894
1932
if test "$GCC" = yes; then
2895
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2896
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1933
  case $host_os in
 
1934
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1935
    *) lt_awk_arg="/^libraries:/" ;;
 
1936
  esac
 
1937
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1938
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2897
1939
    # if the path contains ";" then we assume it to be the separator
2898
1940
    # otherwise default to the standard path separator (i.e. ":") - it is
2899
1941
    # assumed that no part of a normal pathname contains ";" but that should
2900
1942
    # okay in the real world where ";" in dirpaths is itself problematic.
2901
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1943
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2902
1944
  else
2903
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1945
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2904
1946
  fi
 
1947
  # Ok, now we have the path, separated by spaces, we can step through it
 
1948
  # and add multilib dir if necessary.
 
1949
  lt_tmp_lt_search_path_spec=
 
1950
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1951
  for lt_sys_path in $lt_search_path_spec; do
 
1952
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1953
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1954
    else
 
1955
      test -d "$lt_sys_path" && \
 
1956
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1957
    fi
 
1958
  done
 
1959
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1960
BEGIN {RS=" "; FS="/|\n";} {
 
1961
  lt_foo="";
 
1962
  lt_count=0;
 
1963
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1964
    if ($lt_i != "" && $lt_i != ".") {
 
1965
      if ($lt_i == "..") {
 
1966
        lt_count++;
 
1967
      } else {
 
1968
        if (lt_count == 0) {
 
1969
          lt_foo="/" $lt_i lt_foo;
 
1970
        } else {
 
1971
          lt_count--;
 
1972
        }
 
1973
      }
 
1974
    }
 
1975
  }
 
1976
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1977
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1978
}'`
 
1979
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2905
1980
else
2906
1981
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2907
 
fi
 
1982
fi])
2908
1983
need_lib_prefix=unknown
2909
1984
hardcode_into_libs=no
2910
1985
 
2922
1997
  soname_spec='${libname}${release}${shared_ext}$major'
2923
1998
  ;;
2924
1999
 
2925
 
aix4* | aix5*)
 
2000
aix[[4-9]]*)
2926
2001
  version_type=linux
2927
2002
  need_lib_prefix=no
2928
2003
  need_version=no
3061
2136
  shlibpath_overrides_runpath=yes
3062
2137
  shlibpath_var=DYLD_LIBRARY_PATH
3063
2138
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3064
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
3065
 
  if test "$GCC" = yes; then
3066
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
3067
 
  else
3068
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
3069
 
  fi
 
2139
  m4_if([$1], [],[
 
2140
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
3070
2141
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3071
2142
  ;;
3072
2143
 
3083
2154
  dynamic_linker=no
3084
2155
  ;;
3085
2156
 
3086
 
kfreebsd*-gnu)
3087
 
  version_type=linux
3088
 
  need_lib_prefix=no
3089
 
  need_version=no
3090
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3091
 
  soname_spec='${libname}${release}${shared_ext}$major'
3092
 
  shlibpath_var=LD_LIBRARY_PATH
3093
 
  shlibpath_overrides_runpath=no
3094
 
  hardcode_into_libs=yes
3095
 
  dynamic_linker='GNU ld.so'
3096
 
  ;;
3097
 
 
3098
2157
freebsd* | dragonfly*)
3099
2158
  # DragonFly does not have aout.  When/if they implement a new
3100
2159
  # versioning mechanism, adjust this.
3132
2191
    shlibpath_overrides_runpath=no
3133
2192
    hardcode_into_libs=yes
3134
2193
    ;;
3135
 
  freebsd*) # from 4.6 on
 
2194
  *) # from 4.6 on, and DragonFly
3136
2195
    shlibpath_overrides_runpath=yes
3137
2196
    hardcode_into_libs=yes
3138
2197
    ;;
3195
2254
  postinstall_cmds='chmod 555 $lib'
3196
2255
  ;;
3197
2256
 
3198
 
interix3*)
 
2257
interix[[3-9]]*)
3199
2258
  version_type=linux
3200
2259
  need_lib_prefix=no
3201
2260
  need_version=no
3250
2309
  ;;
3251
2310
 
3252
2311
# This must be Linux ELF.
3253
 
linux*)
 
2312
linux* | k*bsd*-gnu)
3254
2313
  version_type=linux
3255
2314
  need_lib_prefix=no
3256
2315
  need_version=no
3264
2323
  # before this can be enabled.
3265
2324
  hardcode_into_libs=yes
3266
2325
 
3267
 
  # find out which ABI we are using
3268
 
  libsuff=
3269
 
  case "$host_cpu" in
3270
 
  x86_64*|s390x*|powerpc64*)
3271
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3272
 
    if AC_TRY_EVAL(ac_compile); then
3273
 
      case `/usr/bin/file conftest.$ac_objext` in
3274
 
      *64-bit*)
3275
 
        libsuff=64
3276
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
3277
 
        ;;
3278
 
      esac
3279
 
    fi
3280
 
    rm -rf conftest*
3281
 
    ;;
3282
 
  esac
3283
 
 
3284
2326
  # Append ld.so.conf contents to the search path
3285
2327
  if test -f /etc/ld.so.conf; then
3286
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3287
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
2328
    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' ' '`
 
2329
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3288
2330
  fi
3289
2331
 
3290
2332
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3296
2338
  dynamic_linker='GNU/Linux ld.so'
3297
2339
  ;;
3298
2340
 
3299
 
knetbsd*-gnu)
 
2341
netbsdelf*-gnu)
3300
2342
  version_type=linux
3301
2343
  need_lib_prefix=no
3302
2344
  need_version=no
3305
2347
  shlibpath_var=LD_LIBRARY_PATH
3306
2348
  shlibpath_overrides_runpath=no
3307
2349
  hardcode_into_libs=yes
3308
 
  dynamic_linker='GNU ld.so'
 
2350
  dynamic_linker='NetBSD ld.elf_so'
3309
2351
  ;;
3310
2352
 
3311
2353
netbsd*)
3389
2431
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3390
2432
  ;;
3391
2433
 
 
2434
rdos*)
 
2435
  dynamic_linker=no
 
2436
  ;;
 
2437
 
3392
2438
solaris*)
3393
2439
  version_type=linux
3394
2440
  need_lib_prefix=no
3484
2530
AC_MSG_RESULT([$dynamic_linker])
3485
2531
test "$dynamic_linker" = no && can_build_shared=no
3486
2532
 
 
2533
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
2534
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
2535
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2536
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
2537
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
2538
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2539
 
3487
2540
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3488
2541
if test "$GCC" = yes; then
3489
2542
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3494
2547
# _LT_AC_TAGCONFIG
3495
2548
# ----------------
3496
2549
AC_DEFUN([_LT_AC_TAGCONFIG],
3497
 
[AC_ARG_WITH([tags],
 
2550
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2551
AC_ARG_WITH([tags],
3498
2552
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3499
2553
        [include additional configurations @<:@automatic@:>@])],
3500
2554
    [tagnames="$withval"])
3755
2809
 
3756
2810
# AC_PATH_TOOL_PREFIX
3757
2811
# -------------------
3758
 
# find a file program which can recognise shared library
 
2812
# find a file program which can recognize shared library
3759
2813
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3760
2814
[AC_REQUIRE([AC_PROG_EGREP])dnl
3761
2815
AC_MSG_CHECKING([for $1])
3818
2872
 
3819
2873
# AC_PATH_MAGIC
3820
2874
# -------------
3821
 
# find a file program which can recognise a shared library
 
2875
# find a file program which can recognize a shared library
3822
2876
AC_DEFUN([AC_PATH_MAGIC],
3823
2877
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3824
2878
if test -z "$lt_cv_path_MAGIC_CMD"; then
3965
3019
# how to check for library dependencies
3966
3020
#  -- PORTME fill in with the dynamic library characteristics
3967
3021
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3968
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
3022
[AC_CACHE_CHECK([how to recognize dependent libraries],
3969
3023
lt_cv_deplibs_check_method,
3970
3024
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3971
3025
lt_cv_file_magic_test_file=
3982
3036
# whether `pass_all' will *always* work, you probably want this one.
3983
3037
 
3984
3038
case $host_os in
3985
 
aix4* | aix5*)
 
3039
aix[[4-9]]*)
3986
3040
  lt_cv_deplibs_check_method=pass_all
3987
3041
  ;;
3988
3042
 
4004
3058
 
4005
3059
mingw* | pw32*)
4006
3060
  # Base MSYS/MinGW do not provide the 'file' command needed by
4007
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4008
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3061
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
3062
  # unless we find 'file', for example because we are cross-compiling.
 
3063
  if ( file / ) >/dev/null 2>&1; then
 
3064
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3065
    lt_cv_file_magic_cmd='func_win32_libid'
 
3066
  else
 
3067
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3068
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3069
  fi
4010
3070
  ;;
4011
3071
 
4012
3072
darwin* | rhapsody*)
4013
3073
  lt_cv_deplibs_check_method=pass_all
4014
3074
  ;;
4015
3075
 
4016
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3076
freebsd* | dragonfly*)
4017
3077
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4018
3078
    case $host_cpu in
4019
3079
    i*86 )
4051
3111
  esac
4052
3112
  ;;
4053
3113
 
4054
 
interix3*)
 
3114
interix[[3-9]]*)
4055
3115
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4056
3116
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4057
3117
  ;;
4067
3127
  ;;
4068
3128
 
4069
3129
# This must be Linux ELF.
4070
 
linux*)
 
3130
linux* | k*bsd*-gnu)
4071
3131
  lt_cv_deplibs_check_method=pass_all
4072
3132
  ;;
4073
3133
 
4074
 
netbsd*)
 
3134
netbsd* | netbsdelf*-gnu)
4075
3135
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4076
3136
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4077
3137
  else
4101
3161
  lt_cv_deplibs_check_method=pass_all
4102
3162
  ;;
4103
3163
 
 
3164
rdos*)
 
3165
  lt_cv_deplibs_check_method=pass_all
 
3166
  ;;
 
3167
 
4104
3168
solaris*)
4105
3169
  lt_cv_deplibs_check_method=pass_all
4106
3170
  ;;
4153
3217
  lt_cv_path_NM="$NM"
4154
3218
else
4155
3219
  lt_nm_to_check="${ac_tool_prefix}nm"
4156
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
3220
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4157
3221
    lt_nm_to_check="$lt_nm_to_check nm"
4158
3222
  fi
4159
3223
  for lt_tmp_nm in $lt_nm_to_check; do
4369
3433
_LT_AC_TAGVAR(objext, $1)=$objext
4370
3434
 
4371
3435
# Code to be used in simple compile tests
4372
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3436
lt_simple_compile_test_code="int some_variable = 0;"
4373
3437
 
4374
3438
# Code to be used in simple link tests
4375
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
3439
lt_simple_link_test_code='int main(){return(0);}'
4376
3440
 
4377
3441
_LT_AC_SYS_COMPILER
4378
3442
 
4408
3472
  fi
4409
3473
  ;;
4410
3474
 
4411
 
aix4* | aix5*)
 
3475
aix[[4-9]]*)
4412
3476
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4413
3477
    test "$enable_shared" = yes && enable_static=no
4414
3478
  fi
4465
3529
_LT_AC_TAGVAR(predeps, $1)=
4466
3530
_LT_AC_TAGVAR(postdeps, $1)=
4467
3531
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3532
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4468
3533
 
4469
3534
# Source file extension for C++ test sources.
4470
3535
ac_ext=cpp
4474
3539
_LT_AC_TAGVAR(objext, $1)=$objext
4475
3540
 
4476
3541
# Code to be used in simple compile tests
4477
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3542
lt_simple_compile_test_code="int some_variable = 0;"
4478
3543
 
4479
3544
# Code to be used in simple link tests
4480
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
3545
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
4481
3546
 
4482
3547
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4483
3548
_LT_AC_SYS_COMPILER
4574
3639
    # FIXME: insert proper C++ library support
4575
3640
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4576
3641
    ;;
4577
 
  aix4* | aix5*)
 
3642
  aix[[4-9]]*)
4578
3643
    if test "$host_cpu" = ia64; then
4579
3644
      # On IA64, the linker does run time linking by default, so we don't
4580
3645
      # have to do anything special.
4587
3652
      # Test if we are trying to use run time linking or normal
4588
3653
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4589
3654
      # need to do runtime linking.
4590
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3655
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4591
3656
        for ld_flag in $LDFLAGS; do
4592
3657
          case $ld_flag in
4593
3658
          *-brtl*)
4623
3688
           strings "$collect2name" | grep resolve_lib_name >/dev/null
4624
3689
        then
4625
3690
          # We have reworked collect2
4626
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3691
          :
4627
3692
        else
4628
3693
          # We have old collect2
4629
3694
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4733
3798
    fi
4734
3799
  ;;
4735
3800
      darwin* | rhapsody*)
4736
 
        case $host_os in
4737
 
        rhapsody* | darwin1.[[012]])
4738
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4739
 
         ;;
4740
 
       *) # Darwin 1.3 on
4741
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4742
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4743
 
         else
4744
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
4745
 
             10.[[012]])
4746
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4747
 
               ;;
4748
 
             10.*)
4749
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4750
 
               ;;
4751
 
           esac
4752
 
         fi
4753
 
         ;;
4754
 
        esac
4755
3801
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4756
3802
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4757
3803
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4758
3804
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4759
3805
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4760
3806
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4761
 
 
4762
 
    if test "$GXX" = yes ; then
4763
 
      lt_int_apple_cc_single_mod=no
 
3807
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3808
      if test "$GXX" = yes ; then
4764
3809
      output_verbose_link_cmd='echo'
4765
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4766
 
       lt_int_apple_cc_single_mod=yes
 
3810
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3811
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3812
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3813
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3814
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3815
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
3816
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
4767
3817
      fi
4768
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4769
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4770
 
      else
4771
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4772
 
        fi
4773
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4774
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4775
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4776
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4777
 
          else
4778
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4779
 
          fi
4780
 
            _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}'
4781
3818
      else
4782
3819
      case $cc_basename in
4783
3820
        xlc*)
4784
3821
         output_verbose_link_cmd='echo'
4785
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3822
          _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'
4786
3823
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4787
3824
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4788
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3825
          _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}'
4789
3826
          _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}'
4790
3827
          ;;
4791
3828
       *)
4819
3856
  freebsd-elf*)
4820
3857
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4821
3858
    ;;
4822
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3859
  freebsd* | dragonfly*)
4823
3860
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4824
3861
    # conventions
4825
3862
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4868
3905
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4869
3906
 
4870
3907
      case $host_cpu in
4871
 
      hppa*64*|ia64*)
4872
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4873
 
        ;;
 
3908
      hppa*64*|ia64*) ;;
4874
3909
      *)
4875
3910
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4876
3911
        ;;
4938
3973
        ;;
4939
3974
    esac
4940
3975
    ;;
4941
 
  interix3*)
 
3976
  interix[[3-9]]*)
4942
3977
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4943
3978
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4944
3979
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4978
4013
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4979
4014
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4980
4015
    ;;
4981
 
  linux*)
 
4016
  linux* | k*bsd*-gnu)
4982
4017
    case $cc_basename in
4983
4018
      KCC*)
4984
4019
        # Kuck and Associates, Inc. (KAI) C++ Compiler
5030
4065
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5031
4066
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5032
4067
        ;;
5033
 
      pgCC*)
 
4068
      pgCC* | pgcpp*)
5034
4069
        # Portland Group C++ compiler
5035
4070
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5036
4071
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5058
4093
        # dependencies.
5059
4094
        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'
5060
4095
        ;;
 
4096
      *)
 
4097
        case `$CC -V 2>&1 | sed 5q` in
 
4098
        *Sun\ C*)
 
4099
          # Sun C++ 5.9
 
4100
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4101
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4102
          _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'
 
4103
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4104
          _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'
 
4105
 
 
4106
          # Not sure whether something based on
 
4107
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
4108
          # would be better.
 
4109
          output_verbose_link_cmd='echo'
 
4110
 
 
4111
          # Archives containing C++ object files must be created using
 
4112
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4113
          # necessary to make sure instantiated templates are included
 
4114
          # in the archive.
 
4115
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4116
          ;;
 
4117
        esac
 
4118
        ;;
5061
4119
    esac
5062
4120
    ;;
5063
4121
  lynxos*)
5080
4138
        ;;
5081
4139
    esac
5082
4140
    ;;
5083
 
  netbsd*)
 
4141
  netbsd* | netbsdelf*-gnu)
5084
4142
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5085
4143
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5086
4144
      wlarc=
5096
4154
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5097
4155
    ;;
5098
4156
  openbsd*)
5099
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5100
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5101
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5102
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5103
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5104
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
5105
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5106
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4157
    if test -f /usr/libexec/ld.so; then
 
4158
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4159
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4160
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4161
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4162
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4163
        _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'
 
4164
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4165
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4166
      fi
 
4167
      output_verbose_link_cmd='echo'
 
4168
    else
 
4169
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5107
4170
    fi
5108
 
    output_verbose_link_cmd='echo'
5109
4171
    ;;
5110
4172
  osf3*)
5111
4173
    case $cc_basename in
5267
4329
        case $host_os in
5268
4330
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5269
4331
          *)
5270
 
            # The C++ compiler is used as linker so we must use $wl
5271
 
            # flag to pass the commands to the underlying system
5272
 
            # linker. We must also pass each convience library through
5273
 
            # to the system linker between allextract/defaultextract.
5274
 
            # The C++ compiler will combine linker options so we
5275
 
            # cannot just pass the convience library names through
5276
 
            # without $wl.
 
4332
            # The compiler driver will combine and reorder linker options,
 
4333
            # but understands `-z linker_flag'.
5277
4334
            # Supported since Solaris 2.6 (maybe 2.5.1?)
5278
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
4335
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5279
4336
            ;;
5280
4337
        esac
5281
4338
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5322
4379
          fi
5323
4380
 
5324
4381
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4382
          case $host_os in
 
4383
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4384
          *)
 
4385
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4386
            ;;
 
4387
          esac
5325
4388
        fi
5326
4389
        ;;
5327
4390
    esac
5437
4500
# compiler output when linking a shared library.
5438
4501
# Parse the compiler output and extract the necessary
5439
4502
# objects, libraries and library flags.
5440
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4503
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
4504
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5441
4505
dnl we can't use the lt_simple_compile_test_code here,
5442
4506
dnl because it contains code intended for an executable,
5443
4507
dnl not a library.  It's possible we should let each
5562
4626
 
5563
4627
$rm -f confest.$objext
5564
4628
 
 
4629
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4630
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4631
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4632
fi
 
4633
 
5565
4634
# PORTME: override above test on systems where it is broken
5566
4635
ifelse([$1],[CXX],
5567
4636
[case $host_os in
5568
 
interix3*)
 
4637
interix[[3-9]]*)
5569
4638
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
5570
4639
  # hack all around it, let's just trust "g++" to DTRT.
5571
4640
  _LT_AC_TAGVAR(predep_objects,$1)=
5573
4642
  _LT_AC_TAGVAR(postdeps,$1)=
5574
4643
  ;;
5575
4644
 
 
4645
linux*)
 
4646
  case `$CC -V 2>&1 | sed 5q` in
 
4647
  *Sun\ C*)
 
4648
    # Sun C++ 5.9
 
4649
    #
 
4650
    # The more standards-conforming stlport4 library is
 
4651
    # incompatible with the Cstd library. Avoid specifying
 
4652
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4653
    # -library=stlport4 depends on it.
 
4654
    case " $CXX $CXXFLAGS " in
 
4655
    *" -library=stlport4 "*)
 
4656
      solaris_use_stlport4=yes
 
4657
      ;;
 
4658
    esac
 
4659
    if test "$solaris_use_stlport4" != yes; then
 
4660
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4661
    fi
 
4662
    ;;
 
4663
  esac
 
4664
  ;;
 
4665
 
5576
4666
solaris*)
5577
4667
  case $cc_basename in
5578
4668
  CC*)
 
4669
    # The more standards-conforming stlport4 library is
 
4670
    # incompatible with the Cstd library. Avoid specifying
 
4671
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4672
    # -library=stlport4 depends on it.
 
4673
    case " $CXX $CXXFLAGS " in
 
4674
    *" -library=stlport4 "*)
 
4675
      solaris_use_stlport4=yes
 
4676
      ;;
 
4677
    esac
 
4678
 
5579
4679
    # Adding this requires a known-good setup of shared libraries for
5580
4680
    # Sun compiler versions before 5.6, else PIC objects from an old
5581
4681
    # archive will be linked into the output, leading to subtle bugs.
5582
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4682
    if test "$solaris_use_stlport4" != yes; then
 
4683
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4684
    fi
5583
4685
    ;;
5584
4686
  esac
5585
4687
  ;;
5586
4688
esac
5587
4689
])
5588
 
 
5589
4690
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5590
4691
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5591
4692
esac
5628
4729
_LT_AC_TAGVAR(objext, $1)=$objext
5629
4730
 
5630
4731
# Code to be used in simple compile tests
5631
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4732
lt_simple_compile_test_code="\
 
4733
      subroutine t
 
4734
      return
 
4735
      end
 
4736
"
5632
4737
 
5633
4738
# Code to be used in simple link tests
5634
 
lt_simple_link_test_code="      program t\n      end\n"
 
4739
lt_simple_link_test_code="\
 
4740
      program t
 
4741
      end
 
4742
"
5635
4743
 
5636
4744
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5637
4745
_LT_AC_SYS_COMPILER
5663
4771
    postinstall_cmds='$RANLIB $lib'
5664
4772
  fi
5665
4773
  ;;
5666
 
aix4* | aix5*)
 
4774
aix[[4-9]]*)
5667
4775
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5668
4776
    test "$enable_shared" = yes && enable_static=no
5669
4777
  fi
5710
4818
_LT_AC_TAGVAR(objext, $1)=$objext
5711
4819
 
5712
4820
# Code to be used in simple compile tests
5713
 
lt_simple_compile_test_code="class foo {}\n"
 
4821
lt_simple_compile_test_code="class foo {}"
5714
4822
 
5715
4823
# Code to be used in simple link tests
5716
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4824
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5717
4825
 
5718
4826
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5719
4827
_LT_AC_SYS_COMPILER
5766
4874
_LT_AC_TAGVAR(objext, $1)=$objext
5767
4875
 
5768
4876
# Code to be used in simple compile tests
5769
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4877
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5770
4878
 
5771
4879
# Code to be used in simple link tests
5772
4880
lt_simple_link_test_code="$lt_simple_compile_test_code"
5840
4948
    _LT_AC_TAGVAR(predeps, $1) \
5841
4949
    _LT_AC_TAGVAR(postdeps, $1) \
5842
4950
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4951
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5843
4952
    _LT_AC_TAGVAR(archive_cmds, $1) \
5844
4953
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5845
4954
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
5855
4964
    _LT_AC_TAGVAR(module_cmds, $1) \
5856
4965
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5857
4966
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4967
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
5858
4968
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5859
4969
    _LT_AC_TAGVAR(include_expsyms, $1); do
5860
4970
 
5901
5011
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5902
5012
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5903
5013
#
5904
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
5014
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5905
5015
# Free Software Foundation, Inc.
5906
5016
#
5907
5017
# This file is part of GNU Libtool:
6138
5248
# shared library.
6139
5249
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6140
5250
 
 
5251
# The directories searched by this compiler when creating a shared
 
5252
# library
 
5253
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
5254
 
6141
5255
# The library search path used internally by the compiler when linking
6142
5256
# a shared library.
6143
5257
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6226
5340
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6227
5341
 
6228
5342
# Fix the shell variable \$srcfile for the compiler.
6229
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
5343
fix_srcfile_path=$lt_fix_srcfile_path
6230
5344
 
6231
5345
# Set to yes if exported symbols are required.
6232
5346
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6309
5423
# ---------------------------------
6310
5424
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6311
5425
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5426
AC_REQUIRE([LT_AC_PROG_SED])
6312
5427
AC_REQUIRE([AC_PROG_NM])
6313
5428
AC_REQUIRE([AC_OBJEXT])
6314
5429
# Check for command to grab the raw symbol name followed by C symbol from nm.
6345
5460
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6346
5461
  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'"
6347
5462
  ;;
6348
 
linux*)
 
5463
linux* | k*bsd*-gnu)
6349
5464
  if test "$host_cpu" = ia64; then
6350
5465
    symcode='[[ABCDGIRSTW]]'
6351
5466
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6486
5601
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6487
5602
    cat conftest.$ac_ext >&5
6488
5603
  fi
6489
 
  rm -f conftest* conftst*
 
5604
  rm -rf conftest* conftst*
6490
5605
 
6491
5606
  # Do not use the global_symbol_pipe unless it works.
6492
5607
  if test "$pipe_works" = yes; then
6535
5650
      # like `-m68040'.
6536
5651
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6537
5652
      ;;
6538
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5653
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6539
5654
      # PIC is the default for these OSes.
6540
5655
      ;;
6541
 
    mingw* | os2* | pw32*)
 
5656
    mingw* | cygwin* | os2* | pw32*)
6542
5657
      # This hack is so that the source file can tell whether it is being
6543
5658
      # built for inclusion in a dll (and should export symbols for example).
6544
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5659
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5660
      # (--disable-auto-import) libraries
 
5661
      m4_if([$1], [GCJ], [],
 
5662
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6545
5663
      ;;
6546
5664
    darwin* | rhapsody*)
6547
5665
      # PIC is the default on this platform
6552
5670
      # DJGPP does not support shared libraries at all
6553
5671
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6554
5672
      ;;
6555
 
    interix3*)
 
5673
    interix[[3-9]]*)
6556
5674
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6557
5675
      # Instead, we relocate shared libraries at runtime.
6558
5676
      ;;
6578
5696
    esac
6579
5697
  else
6580
5698
    case $host_os in
6581
 
      aix4* | aix5*)
 
5699
      aix[[4-9]]*)
6582
5700
        # All AIX code is PIC.
6583
5701
        if test "$host_cpu" = ia64; then
6584
5702
          # AIX 5 now supports IA64 processor
6618
5736
            ;;
6619
5737
        esac
6620
5738
        ;;
6621
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5739
      freebsd* | dragonfly*)
6622
5740
        # FreeBSD uses GNU C++
6623
5741
        ;;
6624
5742
      hpux9* | hpux10* | hpux11*)
6661
5779
            ;;
6662
5780
        esac
6663
5781
        ;;
6664
 
      linux*)
 
5782
      linux* | k*bsd*-gnu)
6665
5783
        case $cc_basename in
6666
5784
          KCC*)
6667
5785
            # KAI C++ Compiler
6674
5792
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6675
5793
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6676
5794
            ;;
6677
 
          pgCC*)
 
5795
          pgCC* | pgcpp*)
6678
5796
            # Portland Group C++ compiler.
6679
5797
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6680
5798
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6688
5806
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6689
5807
            ;;
6690
5808
          *)
 
5809
            case `$CC -V 2>&1 | sed 5q` in
 
5810
            *Sun\ C*)
 
5811
              # Sun C++ 5.9
 
5812
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5813
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5814
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5815
              ;;
 
5816
            esac
6691
5817
            ;;
6692
5818
        esac
6693
5819
        ;;
6704
5830
            ;;
6705
5831
        esac
6706
5832
        ;;
6707
 
      netbsd*)
 
5833
      netbsd* | netbsdelf*-gnu)
6708
5834
        ;;
6709
5835
      osf3* | osf4* | osf5*)
6710
5836
        case $cc_basename in
6808
5934
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6809
5935
      ;;
6810
5936
 
6811
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5937
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6812
5938
      # PIC is the default for these OSes.
6813
5939
      ;;
6814
5940
 
6815
 
    mingw* | pw32* | os2*)
 
5941
    mingw* | cygwin* | pw32* | os2*)
6816
5942
      # This hack is so that the source file can tell whether it is being
6817
5943
      # built for inclusion in a dll (and should export symbols for example).
6818
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5944
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5945
      # (--disable-auto-import) libraries
 
5946
      m4_if([$1], [GCJ], [],
 
5947
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6819
5948
      ;;
6820
5949
 
6821
5950
    darwin* | rhapsody*)
6824
5953
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6825
5954
      ;;
6826
5955
 
6827
 
    interix3*)
 
5956
    interix[[3-9]]*)
6828
5957
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6829
5958
      # Instead, we relocate shared libraries at runtime.
6830
5959
      ;;
6882
6011
       esac
6883
6012
       ;;
6884
6013
 
6885
 
    mingw* | pw32* | os2*)
 
6014
    mingw* | cygwin* | pw32* | os2*)
6886
6015
      # This hack is so that the source file can tell whether it is being
6887
6016
      # built for inclusion in a dll (and should export symbols for example).
6888
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6017
      m4_if([$1], [GCJ], [],
 
6018
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6889
6019
      ;;
6890
6020
 
6891
6021
    hpux9* | hpux10* | hpux11*)
6915
6045
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6916
6046
      ;;
6917
6047
 
6918
 
    linux*)
 
6048
    linux* | k*bsd*-gnu)
6919
6049
      case $cc_basename in
6920
6050
      icc* | ecc*)
6921
6051
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6934
6064
        # All Alpha code is PIC.
6935
6065
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6936
6066
        ;;
 
6067
      *)
 
6068
        case `$CC -V 2>&1 | sed 5q` in
 
6069
        *Sun\ C*)
 
6070
          # Sun C 5.9
 
6071
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6072
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6073
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6074
          ;;
 
6075
        *Sun\ F*)
 
6076
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6077
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6078
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6079
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6080
          ;;
 
6081
        esac
 
6082
        ;;
6937
6083
      esac
6938
6084
      ;;
6939
6085
 
6943
6089
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6944
6090
      ;;
6945
6091
 
 
6092
    rdos*)
 
6093
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6094
      ;;
 
6095
 
6946
6096
    solaris*)
6947
6097
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6948
6098
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7002
6152
#
7003
6153
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7004
6154
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7005
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
6155
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
7006
6156
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7007
6157
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
7008
6158
     "" | " "*) ;;
7026
6176
#
7027
6177
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
7028
6178
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7029
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
6179
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
7030
6180
  $lt_tmp_static_flag,
7031
6181
  [],
7032
6182
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7037
6187
# ------------------------------------
7038
6188
# See if the linker supports building shared libraries.
7039
6189
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7040
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6190
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6191
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7041
6192
ifelse([$1],[CXX],[
7042
6193
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7043
6194
  case $host_os in
7044
 
  aix4* | aix5*)
 
6195
  aix[[4-9]]*)
7045
6196
    # If we're using GNU nm, then we don't want the "-C" option.
7046
6197
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
7047
6198
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7054
6205
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7055
6206
  ;;
7056
6207
  cygwin* | mingw*)
7057
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6208
    _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'
 
6209
  ;;
 
6210
  linux* | k*bsd*-gnu)
 
6211
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7058
6212
  ;;
7059
6213
  *)
7060
6214
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7061
6215
  ;;
7062
6216
  esac
 
6217
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7063
6218
],[
7064
6219
  runpath_var=
7065
6220
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7090
6245
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7091
6246
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7092
6247
  # as well as any symbol that contains `d'.
7093
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
6248
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7094
6249
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7095
6250
  # platforms (ab)use it in PIC code, but their linkers get confused if
7096
6251
  # the symbol is explicitly referenced.  Since portable code cannot
7097
6252
  # rely on this symbol name, it's probably fine to never include it in
7098
6253
  # preloaded symbol tables.
 
6254
  # Exclude shared library initialization/finalization symbols.
 
6255
dnl Note also adjust exclude_expsyms for C++ above.
7099
6256
  extract_expsyms_cmds=
7100
6257
  # Just being paranoid about ensuring that cc_basename is set.
7101
6258
  _LT_CC_BASENAME([$compiler])
7145
6302
 
7146
6303
    # See if GNU ld supports shared libraries.
7147
6304
    case $host_os in
7148
 
    aix3* | aix4* | aix5*)
 
6305
    aix[[3-9]]*)
7149
6306
      # On AIX/PPC, the GNU linker is very broken
7150
6307
      if test "$host_cpu" != ia64; then
7151
6308
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7193
6350
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7194
6351
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
7195
6352
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7196
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6353
      _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'
7197
6354
 
7198
6355
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7199
6356
        _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'
7211
6368
      fi
7212
6369
      ;;
7213
6370
 
7214
 
    interix3*)
 
6371
    interix[[3-9]]*)
7215
6372
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
7216
6373
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7217
6374
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7226
6383
      _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'
7227
6384
      ;;
7228
6385
 
7229
 
    linux*)
 
6386
    gnu* | linux* | k*bsd*-gnu)
7230
6387
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7231
6388
        tmp_addflag=
7232
6389
        case $cc_basename,$host_cpu in
7244
6401
        ifc* | ifort*)                  # Intel Fortran compiler
7245
6402
          tmp_addflag=' -nofor_main' ;;
7246
6403
        esac
7247
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6404
        case `$CC -V 2>&1 | sed 5q` in
 
6405
        *Sun\ C*)                       # Sun C 5.9
 
6406
          _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'
 
6407
          tmp_sharedflag='-G' ;;
 
6408
        *Sun\ F*)                       # Sun Fortran 8.3
 
6409
          tmp_sharedflag='-G' ;;
 
6410
        *)
 
6411
          tmp_sharedflag='-shared' ;;
 
6412
        esac
 
6413
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7248
6414
 
7249
6415
        if test $supports_anon_versioning = yes; then
7250
6416
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7251
6417
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7252
6418
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7253
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6419
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7254
6420
        fi
 
6421
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7255
6422
      else
7256
6423
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7257
6424
      fi
7258
6425
      ;;
7259
6426
 
7260
 
    netbsd*)
 
6427
    netbsd* | netbsdelf*-gnu)
7261
6428
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7262
6429
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7263
6430
        wlarc=
7290
6457
 
7291
6458
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7292
6459
      case `$LD -v 2>&1` in
7293
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
6460
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7294
6461
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7295
6462
        cat <<_LT_EOF 1>&2
7296
6463
 
7355
6522
      fi
7356
6523
      ;;
7357
6524
 
7358
 
    aix4* | aix5*)
 
6525
    aix[[4-9]]*)
7359
6526
      if test "$host_cpu" = ia64; then
7360
6527
        # On IA64, the linker does run time linking by default, so we don't
7361
6528
        # have to do anything special.
7375
6542
        # Test if we are trying to use run time linking or normal
7376
6543
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7377
6544
        # need to do runtime linking.
7378
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6545
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7379
6546
          for ld_flag in $LDFLAGS; do
7380
6547
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7381
6548
            aix_use_runtimelinking=yes
7409
6576
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7410
6577
          then
7411
6578
          # We have reworked collect2
7412
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6579
          :
7413
6580
          else
7414
6581
          # We have old collect2
7415
6582
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7502
6669
      # The linker will automatically build a .lib file if we build a DLL.
7503
6670
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7504
6671
      # FIXME: Should let the user specify the lib program.
7505
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6672
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
7506
6673
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7507
6674
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7508
6675
      ;;
7535
6702
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7536
6703
    if test "$GCC" = yes ; then
7537
6704
        output_verbose_link_cmd='echo'
7538
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7539
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7540
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7541
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7542
 
      _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}'
 
6705
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6706
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6707
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6708
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7543
6709
    else
7544
6710
      case $cc_basename in
7545
6711
        xlc*)
7546
6712
         output_verbose_link_cmd='echo'
7547
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6713
         _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'
7548
6714
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7549
6715
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7550
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6716
         _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}'
7551
6717
          _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}'
7552
6718
          ;;
7553
6719
       *)
7587
6753
      ;;
7588
6754
 
7589
6755
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7590
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6756
    freebsd* | dragonfly*)
7591
6757
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7592
6758
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7593
6759
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7689
6855
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7690
6856
      ;;
7691
6857
 
7692
 
    netbsd*)
 
6858
    netbsd* | netbsdelf*-gnu)
7693
6859
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7694
6860
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7695
6861
      else
7709
6875
      ;;
7710
6876
 
7711
6877
    openbsd*)
7712
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7713
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7714
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7715
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7716
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7717
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7718
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6878
      if test -f /usr/libexec/ld.so; then
 
6879
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6880
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6881
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6882
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6883
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6884
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6885
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6886
        else
 
6887
          case $host_os in
 
6888
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6889
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6890
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6891
             ;;
 
6892
           *)
 
6893
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6894
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6895
             ;;
 
6896
          esac
 
6897
        fi
7719
6898
      else
7720
 
       case $host_os in
7721
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7722
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7723
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7724
 
           ;;
7725
 
         *)
7726
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7727
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7728
 
           ;;
7729
 
       esac
 
6899
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7730
6900
      fi
7731
6901
      ;;
7732
6902
 
7785
6955
      case $host_os in
7786
6956
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7787
6957
      *)
7788
 
        # The compiler driver will combine linker options so we
7789
 
        # cannot just pass the convience library names through
7790
 
        # without $wl, iff we do not link with $LD.
7791
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6958
        # The compiler driver will combine and reorder linker options,
 
6959
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6960
        # but is careful enough not to reorder.
7792
6961
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7793
 
        case $wlarc in
7794
 
        '')
7795
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7796
 
        *)
7797
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7798
 
        esac ;;
 
6962
        if test "$GCC" = yes; then
 
6963
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6964
        else
 
6965
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6966
        fi
 
6967
        ;;
7799
6968
      esac
7800
6969
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7801
6970
      ;;
7852
7021
      fi
7853
7022
      ;;
7854
7023
 
7855
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
7024
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7856
7025
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7857
7026
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7858
7027
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7927
7096
      # to ld, don't add -lc before -lgcc.
7928
7097
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7929
7098
      $rm conftest*
7930
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7099
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7931
7100
 
7932
7101
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7933
7102
        soname=conftest
8030
7199
[AC_CHECK_TOOL(RC, windres, no)
8031
7200
])
8032
7201
 
 
7202
 
 
7203
# Cheap backport of AS_EXECUTABLE_P and required macros
 
7204
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
7205
 
 
7206
# _AS_TEST_PREPARE
 
7207
# ----------------
 
7208
m4_ifndef([_AS_TEST_PREPARE],
 
7209
[m4_defun([_AS_TEST_PREPARE],
 
7210
[if test -x / >/dev/null 2>&1; then
 
7211
  as_executable_p='test -x'
 
7212
else
 
7213
  as_executable_p='test -f'
 
7214
fi
 
7215
])])# _AS_TEST_PREPARE
 
7216
 
 
7217
# AS_EXECUTABLE_P
 
7218
# ---------------
 
7219
# Check whether a file is executable.
 
7220
m4_ifndef([AS_EXECUTABLE_P],
 
7221
[m4_defun([AS_EXECUTABLE_P],
 
7222
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
7223
$as_executable_p $1[]dnl
 
7224
])])# AS_EXECUTABLE_P
 
7225
 
8033
7226
# NOTE: This macro has been submitted for inclusion into   #
8034
7227
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
8035
7228
#  a released version of Autoconf we should remove this    #
8050
7243
  test -z "$as_dir" && as_dir=.
8051
7244
  for lt_ac_prog in sed gsed; do
8052
7245
    for ac_exec_ext in '' $ac_executable_extensions; do
8053
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7246
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
8054
7247
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8055
7248
      fi
8056
7249
    done
8057
7250
  done
8058
7251
done
 
7252
IFS=$as_save_IFS
8059
7253
lt_ac_max=0
8060
7254
lt_ac_count=0
8061
7255
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8088
7282
done
8089
7283
])
8090
7284
SED=$lt_cv_path_SED
 
7285
AC_SUBST([SED])
8091
7286
AC_MSG_RESULT([$SED])
8092
7287
])
8093
7288
 
8239
7434
 
8240
7435
_PKG_TEXT
8241
7436
 
8242
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
7437
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
8243
7438
                [$4])
8244
7439
else
8245
7440
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8249
7444
fi[]dnl
8250
7445
])# PKG_CHECK_MODULES
8251
7446
 
 
7447
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
7448
#
 
7449
# This file is free software; the Free Software Foundation
 
7450
# gives unlimited permission to copy and/or distribute it,
 
7451
# with or without modifications, as long as this notice is preserved.
 
7452
 
 
7453
# AM_AUTOMAKE_VERSION(VERSION)
 
7454
# ----------------------------
 
7455
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
7456
# generated from the m4 files accompanying Automake X.Y.
 
7457
# (This private macro should not be called outside this file.)
 
7458
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
7459
[am__api_version='1.10'
 
7460
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
7461
dnl require some minimum version.  Point them to the right macro.
 
7462
m4_if([$1], [1.10.1], [],
 
7463
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
7464
])
 
7465
 
 
7466
# _AM_AUTOCONF_VERSION(VERSION)
 
7467
# -----------------------------
 
7468
# aclocal traces this macro to find the Autoconf version.
 
7469
# This is a private macro too.  Using m4_define simplifies
 
7470
# the logic in aclocal, which can simply ignore this definition.
 
7471
m4_define([_AM_AUTOCONF_VERSION], [])
 
7472
 
 
7473
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
7474
# -------------------------------
 
7475
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
7476
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
7477
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
7478
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
7479
m4_ifndef([AC_AUTOCONF_VERSION],
 
7480
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
7481
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
7482
 
 
7483
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
7484
 
 
7485
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7486
#
 
7487
# This file is free software; the Free Software Foundation
 
7488
# gives unlimited permission to copy and/or distribute it,
 
7489
# with or without modifications, as long as this notice is preserved.
 
7490
 
 
7491
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
7492
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
7493
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
7494
#
 
7495
# Of course, Automake must honor this variable whenever it calls a
 
7496
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
7497
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
7498
# depending on how configure is run.  This is pretty annoying, since
 
7499
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
7500
# source directory, any form will work fine, but in subdirectories a
 
7501
# relative path needs to be adjusted first.
 
7502
#
 
7503
# $ac_aux_dir/missing
 
7504
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
7505
# $top_srcdir/$ac_aux_dir/missing
 
7506
#    fails if $ac_aux_dir is absolute,
 
7507
#    fails when called from a subdirectory in a VPATH build with
 
7508
#          a relative $ac_aux_dir
 
7509
#
 
7510
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
7511
# are both prefixed by $srcdir.  In an in-source build this is usually
 
7512
# harmless because $srcdir is `.', but things will broke when you
 
7513
# start a VPATH build or use an absolute $srcdir.
 
7514
#
 
7515
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
7516
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
7517
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
7518
# and then we would define $MISSING as
 
7519
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
7520
# This will work as long as MISSING is not called from configure, because
 
7521
# unfortunately $(top_srcdir) has no meaning in configure.
 
7522
# However there are other variables, like CC, which are often used in
 
7523
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
7524
#
 
7525
# Another solution, used here, is to always expand $ac_aux_dir to an
 
7526
# absolute PATH.  The drawback is that using absolute paths prevent a
 
7527
# configured tree to be moved without reconfiguration.
 
7528
 
 
7529
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
7530
[dnl Rely on autoconf to set up CDPATH properly.
 
7531
AC_PREREQ([2.50])dnl
 
7532
# expand $ac_aux_dir to an absolute path
 
7533
am_aux_dir=`cd $ac_aux_dir && pwd`
 
7534
])
 
7535
 
 
7536
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
7537
 
 
7538
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
7539
# Free Software Foundation, Inc.
 
7540
#
 
7541
# This file is free software; the Free Software Foundation
 
7542
# gives unlimited permission to copy and/or distribute it,
 
7543
# with or without modifications, as long as this notice is preserved.
 
7544
 
 
7545
# serial 8
 
7546
 
 
7547
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
7548
# -------------------------------------
 
7549
# Define a conditional.
 
7550
AC_DEFUN([AM_CONDITIONAL],
 
7551
[AC_PREREQ(2.52)dnl
 
7552
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
7553
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
7554
AC_SUBST([$1_TRUE])dnl
 
7555
AC_SUBST([$1_FALSE])dnl
 
7556
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
7557
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
7558
if $2; then
 
7559
  $1_TRUE=
 
7560
  $1_FALSE='#'
 
7561
else
 
7562
  $1_TRUE='#'
 
7563
  $1_FALSE=
 
7564
fi
 
7565
AC_CONFIG_COMMANDS_PRE(
 
7566
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
7567
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
7568
Usually this means the macro was only invoked conditionally.]])
 
7569
fi])])
 
7570
 
 
7571
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
7572
# Free Software Foundation, Inc.
 
7573
#
 
7574
# This file is free software; the Free Software Foundation
 
7575
# gives unlimited permission to copy and/or distribute it,
 
7576
# with or without modifications, as long as this notice is preserved.
 
7577
 
 
7578
# serial 9
 
7579
 
 
7580
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
7581
# written in clear, in which case automake, when reading aclocal.m4,
 
7582
# will think it sees a *use*, and therefore will trigger all it's
 
7583
# C support machinery.  Also note that it means that autoscan, seeing
 
7584
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
7585
 
 
7586
 
 
7587
# _AM_DEPENDENCIES(NAME)
 
7588
# ----------------------
 
7589
# See how the compiler implements dependency checking.
 
7590
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
7591
# We try a few techniques and use that to set a single cache variable.
 
7592
#
 
7593
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
7594
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
7595
# dependency, and given that the user is not expected to run this macro,
 
7596
# just rely on AC_PROG_CC.
 
7597
AC_DEFUN([_AM_DEPENDENCIES],
 
7598
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
7599
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
7600
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
7601
AC_REQUIRE([AM_DEP_TRACK])dnl
 
7602
 
 
7603
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
7604
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
7605
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
7606
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
7607
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
7608
                   [depcc="$$1"   am_compiler_list=])
 
7609
 
 
7610
AC_CACHE_CHECK([dependency style of $depcc],
 
7611
               [am_cv_$1_dependencies_compiler_type],
 
7612
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7613
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7614
  # making bogus files that we don't know about and never remove.  For
 
7615
  # instance it was reported that on HP-UX the gcc test will end up
 
7616
  # making a dummy file named `D' -- because `-MD' means `put the output
 
7617
  # in D'.
 
7618
  mkdir conftest.dir
 
7619
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7620
  # using a relative directory.
 
7621
  cp "$am_depcomp" conftest.dir
 
7622
  cd conftest.dir
 
7623
  # We will build objects and dependencies in a subdirectory because
 
7624
  # it helps to detect inapplicable dependency modes.  For instance
 
7625
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7626
  # side effect of compilation, but ICC will put the dependencies in
 
7627
  # the current directory while Tru64 will put them in the object
 
7628
  # directory.
 
7629
  mkdir sub
 
7630
 
 
7631
  am_cv_$1_dependencies_compiler_type=none
 
7632
  if test "$am_compiler_list" = ""; then
 
7633
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
7634
  fi
 
7635
  for depmode in $am_compiler_list; do
 
7636
    # Setup a source with many dependencies, because some compilers
 
7637
    # like to wrap large dependency lists on column 80 (with \), and
 
7638
    # we should not choose a depcomp mode which is confused by this.
 
7639
    #
 
7640
    # We need to recreate these files for each test, as the compiler may
 
7641
    # overwrite some of them when testing with obscure command lines.
 
7642
    # This happens at least with the AIX C compiler.
 
7643
    : > sub/conftest.c
 
7644
    for i in 1 2 3 4 5 6; do
 
7645
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7646
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7647
      # Solaris 8's {/usr,}/bin/sh.
 
7648
      touch sub/conftst$i.h
 
7649
    done
 
7650
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7651
 
 
7652
    case $depmode in
 
7653
    nosideeffect)
 
7654
      # after this tag, mechanisms are not by side-effect, so they'll
 
7655
      # only be used when explicitly requested
 
7656
      if test "x$enable_dependency_tracking" = xyes; then
 
7657
        continue
 
7658
      else
 
7659
        break
 
7660
      fi
 
7661
      ;;
 
7662
    none) break ;;
 
7663
    esac
 
7664
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7665
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7666
    # handle `-M -o', and we need to detect this.
 
7667
    if depmode=$depmode \
 
7668
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
7669
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7670
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
7671
         >/dev/null 2>conftest.err &&
 
7672
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7673
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7674
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
7675
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7676
      # icc doesn't choke on unknown options, it will just issue warnings
 
7677
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7678
      # that says an option was ignored or not supported.
 
7679
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7680
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7681
      # The diagnosis changed in icc 8.0:
 
7682
      #   icc: Command line remark: option '-MP' not supported
 
7683
      if (grep 'ignoring option' conftest.err ||
 
7684
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7685
        am_cv_$1_dependencies_compiler_type=$depmode
 
7686
        break
 
7687
      fi
 
7688
    fi
 
7689
  done
 
7690
 
 
7691
  cd ..
 
7692
  rm -rf conftest.dir
 
7693
else
 
7694
  am_cv_$1_dependencies_compiler_type=none
 
7695
fi
 
7696
])
 
7697
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
7698
AM_CONDITIONAL([am__fastdep$1], [
 
7699
  test "x$enable_dependency_tracking" != xno \
 
7700
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
7701
])
 
7702
 
 
7703
 
 
7704
# AM_SET_DEPDIR
 
7705
# -------------
 
7706
# Choose a directory name for dependency files.
 
7707
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
7708
AC_DEFUN([AM_SET_DEPDIR],
 
7709
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
7710
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
7711
])
 
7712
 
 
7713
 
 
7714
# AM_DEP_TRACK
 
7715
# ------------
 
7716
AC_DEFUN([AM_DEP_TRACK],
 
7717
[AC_ARG_ENABLE(dependency-tracking,
 
7718
[  --disable-dependency-tracking  speeds up one-time build
 
7719
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
7720
if test "x$enable_dependency_tracking" != xno; then
 
7721
  am_depcomp="$ac_aux_dir/depcomp"
 
7722
  AMDEPBACKSLASH='\'
 
7723
fi
 
7724
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
7725
AC_SUBST([AMDEPBACKSLASH])dnl
 
7726
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
7727
])
 
7728
 
 
7729
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
7730
 
 
7731
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7732
# Free Software Foundation, Inc.
 
7733
#
 
7734
# This file is free software; the Free Software Foundation
 
7735
# gives unlimited permission to copy and/or distribute it,
 
7736
# with or without modifications, as long as this notice is preserved.
 
7737
 
 
7738
#serial 3
 
7739
 
 
7740
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
7741
# ------------------------------
 
7742
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
7743
[for mf in $CONFIG_FILES; do
 
7744
  # Strip MF so we end up with the name of the file.
 
7745
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
7746
  # Check whether this is an Automake generated Makefile or not.
 
7747
  # We used to match only the files named `Makefile.in', but
 
7748
  # some people rename them; so instead we look at the file content.
 
7749
  # Grep'ing the first line is not enough: some people post-process
 
7750
  # each Makefile.in and add a new line on top of each file to say so.
 
7751
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7752
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7753
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
7754
    dirpart=`AS_DIRNAME("$mf")`
 
7755
  else
 
7756
    continue
 
7757
  fi
 
7758
  # Extract the definition of DEPDIR, am__include, and am__quote
 
7759
  # from the Makefile without running `make'.
 
7760
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
7761
  test -z "$DEPDIR" && continue
 
7762
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
7763
  test -z "am__include" && continue
 
7764
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
7765
  # When using ansi2knr, U may be empty or an underscore; expand it
 
7766
  U=`sed -n 's/^U = //p' < "$mf"`
 
7767
  # Find all dependency output files, they are included files with
 
7768
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
7769
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
7770
  # expansion.
 
7771
  for file in `sed -n "
 
7772
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
7773
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
7774
    # Make sure the directory exists.
 
7775
    test -f "$dirpart/$file" && continue
 
7776
    fdir=`AS_DIRNAME(["$file"])`
 
7777
    AS_MKDIR_P([$dirpart/$fdir])
 
7778
    # echo "creating $dirpart/$file"
 
7779
    echo '# dummy' > "$dirpart/$file"
 
7780
  done
 
7781
done
 
7782
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
7783
 
 
7784
 
 
7785
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
7786
# -----------------------------
 
7787
# This macro should only be invoked once -- use via AC_REQUIRE.
 
7788
#
 
7789
# This code is only required when automatic dependency tracking
 
7790
# is enabled.  FIXME.  This creates each `.P' file that we will
 
7791
# need in order to bootstrap the dependency handling code.
 
7792
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
7793
[AC_CONFIG_COMMANDS([depfiles],
 
7794
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
7795
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
7796
])
 
7797
 
 
7798
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7799
# Free Software Foundation, Inc.
 
7800
#
 
7801
# This file is free software; the Free Software Foundation
 
7802
# gives unlimited permission to copy and/or distribute it,
 
7803
# with or without modifications, as long as this notice is preserved.
 
7804
 
 
7805
# serial 8
 
7806
 
 
7807
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
7808
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
7809
 
 
7810
# Do all the work for Automake.                             -*- Autoconf -*-
 
7811
 
 
7812
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7813
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
7814
#
 
7815
# This file is free software; the Free Software Foundation
 
7816
# gives unlimited permission to copy and/or distribute it,
 
7817
# with or without modifications, as long as this notice is preserved.
 
7818
 
 
7819
# serial 13
 
7820
 
 
7821
# This macro actually does too much.  Some checks are only needed if
 
7822
# your package does certain things.  But this isn't really a big deal.
 
7823
 
 
7824
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
7825
# AM_INIT_AUTOMAKE([OPTIONS])
 
7826
# -----------------------------------------------
 
7827
# The call with PACKAGE and VERSION arguments is the old style
 
7828
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
7829
# and VERSION should now be passed to AC_INIT and removed from
 
7830
# the call to AM_INIT_AUTOMAKE.
 
7831
# We support both call styles for the transition.  After
 
7832
# the next Automake release, Autoconf can make the AC_INIT
 
7833
# arguments mandatory, and then we can depend on a new Autoconf
 
7834
# release and drop the old call support.
 
7835
AC_DEFUN([AM_INIT_AUTOMAKE],
 
7836
[AC_PREREQ([2.60])dnl
 
7837
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
7838
dnl the ones we care about.
 
7839
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
7840
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
7841
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
7842
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7843
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7844
  # is not polluted with repeated "-I."
 
7845
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7846
  # test to see if srcdir already configured
 
7847
  if test -f $srcdir/config.status; then
 
7848
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7849
  fi
 
7850
fi
 
7851
 
 
7852
# test whether we have cygpath
 
7853
if test -z "$CYGPATH_W"; then
 
7854
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
7855
    CYGPATH_W='cygpath -w'
 
7856
  else
 
7857
    CYGPATH_W=echo
 
7858
  fi
 
7859
fi
 
7860
AC_SUBST([CYGPATH_W])
 
7861
 
 
7862
# Define the identity of the package.
 
7863
dnl Distinguish between old-style and new-style calls.
 
7864
m4_ifval([$2],
 
7865
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
7866
 AC_SUBST([PACKAGE], [$1])dnl
 
7867
 AC_SUBST([VERSION], [$2])],
 
7868
[_AM_SET_OPTIONS([$1])dnl
 
7869
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7870
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7871
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
7872
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
7873
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
7874
 
 
7875
_AM_IF_OPTION([no-define],,
 
7876
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
7877
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
7878
 
 
7879
# Some tools Automake needs.
 
7880
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
7881
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
7882
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
7883
AM_MISSING_PROG(AUTOCONF, autoconf)
 
7884
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
7885
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
7886
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
7887
AM_PROG_INSTALL_SH
 
7888
AM_PROG_INSTALL_STRIP
 
7889
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
7890
# We need awk for the "check" target.  The system "awk" is bad on
 
7891
# some platforms.
 
7892
AC_REQUIRE([AC_PROG_AWK])dnl
 
7893
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
7894
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
7895
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
7896
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
7897
                             [_AM_PROG_TAR([v7])])])
 
7898
_AM_IF_OPTION([no-dependencies],,
 
7899
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
7900
                  [_AM_DEPENDENCIES(CC)],
 
7901
                  [define([AC_PROG_CC],
 
7902
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
7903
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
7904
                  [_AM_DEPENDENCIES(CXX)],
 
7905
                  [define([AC_PROG_CXX],
 
7906
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7907
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7908
                  [_AM_DEPENDENCIES(OBJC)],
 
7909
                  [define([AC_PROG_OBJC],
 
7910
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
7911
])
 
7912
])
 
7913
 
 
7914
 
 
7915
# When config.status generates a header, we must update the stamp-h file.
 
7916
# This file resides in the same directory as the config header
 
7917
# that is generated.  The stamp files are numbered to have different names.
 
7918
 
 
7919
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
7920
# loop where config.status creates the headers, so we can generate
 
7921
# our stamp files there.
 
7922
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
7923
[# Compute $1's index in $config_headers.
 
7924
_am_arg=$1
 
7925
_am_stamp_count=1
 
7926
for _am_header in $config_headers :; do
 
7927
  case $_am_header in
 
7928
    $_am_arg | $_am_arg:* )
 
7929
      break ;;
 
7930
    * )
 
7931
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
7932
  esac
 
7933
done
 
7934
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
7935
 
 
7936
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7937
#
 
7938
# This file is free software; the Free Software Foundation
 
7939
# gives unlimited permission to copy and/or distribute it,
 
7940
# with or without modifications, as long as this notice is preserved.
 
7941
 
 
7942
# AM_PROG_INSTALL_SH
 
7943
# ------------------
 
7944
# Define $install_sh.
 
7945
AC_DEFUN([AM_PROG_INSTALL_SH],
 
7946
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7947
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
7948
AC_SUBST(install_sh)])
 
7949
 
 
7950
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
7951
#
 
7952
# This file is free software; the Free Software Foundation
 
7953
# gives unlimited permission to copy and/or distribute it,
 
7954
# with or without modifications, as long as this notice is preserved.
 
7955
 
 
7956
# serial 2
 
7957
 
 
7958
# Check whether the underlying file-system supports filenames
 
7959
# with a leading dot.  For instance MS-DOS doesn't.
 
7960
AC_DEFUN([AM_SET_LEADING_DOT],
 
7961
[rm -rf .tst 2>/dev/null
 
7962
mkdir .tst 2>/dev/null
 
7963
if test -d .tst; then
 
7964
  am__leading_dot=.
 
7965
else
 
7966
  am__leading_dot=_
 
7967
fi
 
7968
rmdir .tst 2>/dev/null
 
7969
AC_SUBST([am__leading_dot])])
 
7970
 
 
7971
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
7972
# From Jim Meyering
 
7973
 
 
7974
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
7975
# Free Software Foundation, Inc.
 
7976
#
 
7977
# This file is free software; the Free Software Foundation
 
7978
# gives unlimited permission to copy and/or distribute it,
 
7979
# with or without modifications, as long as this notice is preserved.
 
7980
 
 
7981
# serial 4
 
7982
 
 
7983
AC_DEFUN([AM_MAINTAINER_MODE],
 
7984
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
7985
  dnl maintainer-mode is disabled by default
 
7986
  AC_ARG_ENABLE(maintainer-mode,
 
7987
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
7988
                          (and sometimes confusing) to the casual installer],
 
7989
      USE_MAINTAINER_MODE=$enableval,
 
7990
      USE_MAINTAINER_MODE=no)
 
7991
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
7992
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
7993
  MAINT=$MAINTAINER_MODE_TRUE
 
7994
  AC_SUBST(MAINT)dnl
 
7995
]
 
7996
)
 
7997
 
 
7998
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
7999
 
 
8000
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
8001
 
 
8002
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
8003
#
 
8004
# This file is free software; the Free Software Foundation
 
8005
# gives unlimited permission to copy and/or distribute it,
 
8006
# with or without modifications, as long as this notice is preserved.
 
8007
 
 
8008
# serial 3
 
8009
 
 
8010
# AM_MAKE_INCLUDE()
 
8011
# -----------------
 
8012
# Check to see how make treats includes.
 
8013
AC_DEFUN([AM_MAKE_INCLUDE],
 
8014
[am_make=${MAKE-make}
 
8015
cat > confinc << 'END'
 
8016
am__doit:
 
8017
        @echo done
 
8018
.PHONY: am__doit
 
8019
END
 
8020
# If we don't find an include directive, just comment out the code.
 
8021
AC_MSG_CHECKING([for style of include used by $am_make])
 
8022
am__include="#"
 
8023
am__quote=
 
8024
_am_result=none
 
8025
# First try GNU make style include.
 
8026
echo "include confinc" > confmf
 
8027
# We grep out `Entering directory' and `Leaving directory'
 
8028
# messages which can occur if `w' ends up in MAKEFLAGS.
 
8029
# In particular we don't look at `^make:' because GNU make might
 
8030
# be invoked under some other name (usually "gmake"), in which
 
8031
# case it prints its new name instead of `make'.
 
8032
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
8033
   am__include=include
 
8034
   am__quote=
 
8035
   _am_result=GNU
 
8036
fi
 
8037
# Now try BSD make style include.
 
8038
if test "$am__include" = "#"; then
 
8039
   echo '.include "confinc"' > confmf
 
8040
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
8041
      am__include=.include
 
8042
      am__quote="\""
 
8043
      _am_result=BSD
 
8044
   fi
 
8045
fi
 
8046
AC_SUBST([am__include])
 
8047
AC_SUBST([am__quote])
 
8048
AC_MSG_RESULT([$_am_result])
 
8049
rm -f confinc confmf
 
8050
])
 
8051
 
 
8052
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
8053
 
 
8054
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
8055
# Free Software Foundation, Inc.
 
8056
#
 
8057
# This file is free software; the Free Software Foundation
 
8058
# gives unlimited permission to copy and/or distribute it,
 
8059
# with or without modifications, as long as this notice is preserved.
 
8060
 
 
8061
# serial 5
 
8062
 
 
8063
# AM_MISSING_PROG(NAME, PROGRAM)
 
8064
# ------------------------------
 
8065
AC_DEFUN([AM_MISSING_PROG],
 
8066
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
8067
$1=${$1-"${am_missing_run}$2"}
 
8068
AC_SUBST($1)])
 
8069
 
 
8070
 
 
8071
# AM_MISSING_HAS_RUN
 
8072
# ------------------
 
8073
# Define MISSING if not defined so far and test if it supports --run.
 
8074
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
8075
AC_DEFUN([AM_MISSING_HAS_RUN],
 
8076
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
8077
AC_REQUIRE_AUX_FILE([missing])dnl
 
8078
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
8079
# Use eval to expand $SHELL
 
8080
if eval "$MISSING --run true"; then
 
8081
  am_missing_run="$MISSING --run "
 
8082
else
 
8083
  am_missing_run=
 
8084
  AC_MSG_WARN([`missing' script is too old or missing])
 
8085
fi
 
8086
])
 
8087
 
 
8088
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
8089
#
 
8090
# This file is free software; the Free Software Foundation
 
8091
# gives unlimited permission to copy and/or distribute it,
 
8092
# with or without modifications, as long as this notice is preserved.
 
8093
 
 
8094
# AM_PROG_MKDIR_P
 
8095
# ---------------
 
8096
# Check for `mkdir -p'.
 
8097
AC_DEFUN([AM_PROG_MKDIR_P],
 
8098
[AC_PREREQ([2.60])dnl
 
8099
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
8100
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
8101
dnl while keeping a definition of mkdir_p for backward compatibility.
 
8102
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
8103
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
8104
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
8105
dnl adjustment using top_builddir (which is defined more often than
 
8106
dnl MKDIR_P).
 
8107
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
8108
case $mkdir_p in
 
8109
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
8110
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
8111
esac
 
8112
])
 
8113
 
 
8114
# Helper functions for option handling.                     -*- Autoconf -*-
 
8115
 
 
8116
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
8117
#
 
8118
# This file is free software; the Free Software Foundation
 
8119
# gives unlimited permission to copy and/or distribute it,
 
8120
# with or without modifications, as long as this notice is preserved.
 
8121
 
 
8122
# serial 3
 
8123
 
 
8124
# _AM_MANGLE_OPTION(NAME)
 
8125
# -----------------------
 
8126
AC_DEFUN([_AM_MANGLE_OPTION],
 
8127
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
8128
 
 
8129
# _AM_SET_OPTION(NAME)
 
8130
# ------------------------------
 
8131
# Set option NAME.  Presently that only means defining a flag for this option.
 
8132
AC_DEFUN([_AM_SET_OPTION],
 
8133
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
8134
 
 
8135
# _AM_SET_OPTIONS(OPTIONS)
 
8136
# ----------------------------------
 
8137
# OPTIONS is a space-separated list of Automake options.
 
8138
AC_DEFUN([_AM_SET_OPTIONS],
 
8139
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
8140
 
 
8141
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
8142
# -------------------------------------------
 
8143
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8144
AC_DEFUN([_AM_IF_OPTION],
 
8145
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
8146
 
 
8147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
8148
# Free Software Foundation, Inc.
 
8149
#
 
8150
# This file is free software; the Free Software Foundation
 
8151
# gives unlimited permission to copy and/or distribute it,
 
8152
# with or without modifications, as long as this notice is preserved.
 
8153
 
 
8154
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
8155
# ---------------------------------------------------------------------------
 
8156
# Adds support for distributing Python modules and packages.  To
 
8157
# install modules, copy them to $(pythondir), using the python_PYTHON
 
8158
# automake variable.  To install a package with the same name as the
 
8159
# automake package, install to $(pkgpythondir), or use the
 
8160
# pkgpython_PYTHON automake variable.
 
8161
#
 
8162
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
 
8163
# locations to install python extension modules (shared libraries).
 
8164
# Another macro is required to find the appropriate flags to compile
 
8165
# extension modules.
 
8166
#
 
8167
# If your package is configured with a different prefix to python,
 
8168
# users will have to add the install directory to the PYTHONPATH
 
8169
# environment variable, or create a .pth file (see the python
 
8170
# documentation for details).
 
8171
#
 
8172
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
 
8173
# cause an error if the version of python installed on the system
 
8174
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
 
8175
# numbers and dots only.
 
8176
AC_DEFUN([AM_PATH_PYTHON],
 
8177
 [
 
8178
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
 
8179
  dnl supported because the default installation locations changed from
 
8180
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
 
8181
  dnl in 1.5.
 
8182
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
 
8183
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
 
8184
python2.1 python2.0 python1.6 python1.5])
 
8185
 
 
8186
  m4_if([$1],[],[
 
8187
    dnl No version check is needed.
 
8188
    # Find any Python interpreter.
 
8189
    if test -z "$PYTHON"; then
 
8190
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
 
8191
    fi
 
8192
    am_display_PYTHON=python
 
8193
  ], [
 
8194
    dnl A version check is needed.
 
8195
    if test -n "$PYTHON"; then
 
8196
      # If the user set $PYTHON, use it and don't search something else.
 
8197
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
 
8198
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
 
8199
                              [AC_MSG_RESULT(yes)],
 
8200
                              [AC_MSG_ERROR(too old)])
 
8201
      am_display_PYTHON=$PYTHON
 
8202
    else
 
8203
      # Otherwise, try each interpreter until we find one that satisfies
 
8204
      # VERSION.
 
8205
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
 
8206
        [am_cv_pathless_PYTHON],[
 
8207
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
 
8208
          test "$am_cv_pathless_PYTHON" = none && break
 
8209
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
 
8210
        done])
 
8211
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
8212
      if test "$am_cv_pathless_PYTHON" = none; then
 
8213
        PYTHON=:
 
8214
      else
 
8215
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 
8216
      fi
 
8217
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
8218
    fi
 
8219
  ])
 
8220
 
 
8221
  if test "$PYTHON" = :; then
 
8222
  dnl Run any user-specified action, or abort.
 
8223
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
 
8224
  else
 
8225
 
 
8226
  dnl Query Python for its version number.  Getting [:3] seems to be
 
8227
  dnl the best way to do this; it's what "site.py" does in the standard
 
8228
  dnl library.
 
8229
 
 
8230
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
 
8231
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
 
8232
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
 
8233
 
 
8234
  dnl Use the values of $prefix and $exec_prefix for the corresponding
 
8235
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
 
8236
  dnl distinct variables so they can be overridden if need be.  However,
 
8237
  dnl general consensus is that you shouldn't need this ability.
 
8238
 
 
8239
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
 
8240
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
 
8241
 
 
8242
  dnl At times (like when building shared libraries) you may want
 
8243
  dnl to know which OS platform Python thinks this is.
 
8244
 
 
8245
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
 
8246
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
 
8247
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
 
8248
 
 
8249
 
 
8250
  dnl Set up 4 directories:
 
8251
 
 
8252
  dnl pythondir -- where to install python scripts.  This is the
 
8253
  dnl   site-packages directory, not the python standard library
 
8254
  dnl   directory like in previous automake betas.  This behavior
 
8255
  dnl   is more consistent with lispdir.m4 for example.
 
8256
  dnl Query distutils for this directory.  distutils does not exist in
 
8257
  dnl Python 1.5, so we fall back to the hardcoded directory if it
 
8258
  dnl doesn't work.
 
8259
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
 
8260
    [am_cv_python_pythondir],
 
8261
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
 
8262
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
 
8263
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
 
8264
 
 
8265
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
 
8266
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
 
8267
  dnl   more consistent with the rest of automake.
 
8268
 
 
8269
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
 
8270
 
 
8271
  dnl pyexecdir -- directory for installing python extension modules
 
8272
  dnl   (shared libraries)
 
8273
  dnl Query distutils for this directory.  distutils does not exist in
 
8274
  dnl Python 1.5, so we fall back to the hardcoded directory if it
 
8275
  dnl doesn't work.
 
8276
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
 
8277
    [am_cv_python_pyexecdir],
 
8278
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
 
8279
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
 
8280
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
 
8281
 
 
8282
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
 
8283
 
 
8284
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
 
8285
 
 
8286
  dnl Run any user-specified action.
 
8287
  $2
 
8288
  fi
 
8289
 
 
8290
])
 
8291
 
 
8292
 
 
8293
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 
8294
# ---------------------------------------------------------------------------
 
8295
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
 
8296
# Run ACTION-IF-FALSE otherwise.
 
8297
# This test uses sys.hexversion instead of the string equivalent (first
 
8298
# word of sys.version), in order to cope with versions such as 2.2c1.
 
8299
# hexversion has been introduced in Python 1.5.2; it's probably not
 
8300
# worth to support older versions (1.5.1 was released on October 31, 1998).
 
8301
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
 
8302
 [prog="import sys, string
 
8303
# split strings by '.' and convert to numeric.  Append some zeros
 
8304
# because we need at least 4 digits for the hex conversion.
 
8305
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
 
8306
minverhex = 0
 
8307
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
 
8308
sys.exit(sys.hexversion < minverhex)"
 
8309
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
 
8310
 
 
8311
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8312
#
 
8313
# This file is free software; the Free Software Foundation
 
8314
# gives unlimited permission to copy and/or distribute it,
 
8315
# with or without modifications, as long as this notice is preserved.
 
8316
 
 
8317
# AM_RUN_LOG(COMMAND)
 
8318
# -------------------
 
8319
# Run COMMAND, save the exit status in ac_status, and log it.
 
8320
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
8321
AC_DEFUN([AM_RUN_LOG],
 
8322
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
8323
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
8324
   ac_status=$?
 
8325
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
8326
   (exit $ac_status); }])
 
8327
 
 
8328
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
8329
 
 
8330
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
8331
# Free Software Foundation, Inc.
 
8332
#
 
8333
# This file is free software; the Free Software Foundation
 
8334
# gives unlimited permission to copy and/or distribute it,
 
8335
# with or without modifications, as long as this notice is preserved.
 
8336
 
 
8337
# serial 4
 
8338
 
 
8339
# AM_SANITY_CHECK
 
8340
# ---------------
 
8341
AC_DEFUN([AM_SANITY_CHECK],
 
8342
[AC_MSG_CHECKING([whether build environment is sane])
 
8343
# Just in case
 
8344
sleep 1
 
8345
echo timestamp > conftest.file
 
8346
# Do `set' in a subshell so we don't clobber the current shell's
 
8347
# arguments.  Must try -L first in case configure is actually a
 
8348
# symlink; some systems play weird games with the mod time of symlinks
 
8349
# (eg FreeBSD returns the mod time of the symlink's containing
 
8350
# directory).
 
8351
if (
 
8352
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
8353
   if test "$[*]" = "X"; then
 
8354
      # -L didn't work.
 
8355
      set X `ls -t $srcdir/configure conftest.file`
 
8356
   fi
 
8357
   rm -f conftest.file
 
8358
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
8359
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
8360
 
 
8361
      # If neither matched, then we have a broken ls.  This can happen
 
8362
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
8363
      # broken ls alias from the environment.  This has actually
 
8364
      # happened.  Such a system could not be considered "sane".
 
8365
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
8366
alias in your environment])
 
8367
   fi
 
8368
 
 
8369
   test "$[2]" = conftest.file
 
8370
   )
 
8371
then
 
8372
   # Ok.
 
8373
   :
 
8374
else
 
8375
   AC_MSG_ERROR([newly created file is older than distributed files!
 
8376
Check your system clock])
 
8377
fi
 
8378
AC_MSG_RESULT(yes)])
 
8379
 
 
8380
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8381
#
 
8382
# This file is free software; the Free Software Foundation
 
8383
# gives unlimited permission to copy and/or distribute it,
 
8384
# with or without modifications, as long as this notice is preserved.
 
8385
 
 
8386
# AM_PROG_INSTALL_STRIP
 
8387
# ---------------------
 
8388
# One issue with vendor `install' (even GNU) is that you can't
 
8389
# specify the program used to strip binaries.  This is especially
 
8390
# annoying in cross-compiling environments, where the build's strip
 
8391
# is unlikely to handle the host's binaries.
 
8392
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
8393
# always use install-sh in `make install-strip', and initialize
 
8394
# STRIPPROG with the value of the STRIP variable (set by the user).
 
8395
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
8396
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
8397
# Installed binaries are usually stripped using `strip' when the user
 
8398
# run `make install-strip'.  However `strip' might not be the right
 
8399
# tool to use in cross-compilation environments, therefore Automake
 
8400
# will honor the `STRIP' environment variable to overrule this program.
 
8401
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
8402
if test "$cross_compiling" != no; then
 
8403
  AC_CHECK_TOOL([STRIP], [strip], :)
 
8404
fi
 
8405
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
8406
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
8407
 
 
8408
# Copyright (C) 2006  Free Software Foundation, Inc.
 
8409
#
 
8410
# This file is free software; the Free Software Foundation
 
8411
# gives unlimited permission to copy and/or distribute it,
 
8412
# with or without modifications, as long as this notice is preserved.
 
8413
 
 
8414
# _AM_SUBST_NOTMAKE(VARIABLE)
 
8415
# ---------------------------
 
8416
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
8417
# This macro is traced by Automake.
 
8418
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
8419
 
 
8420
# Check how to create a tarball.                            -*- Autoconf -*-
 
8421
 
 
8422
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
8423
#
 
8424
# This file is free software; the Free Software Foundation
 
8425
# gives unlimited permission to copy and/or distribute it,
 
8426
# with or without modifications, as long as this notice is preserved.
 
8427
 
 
8428
# serial 2
 
8429
 
 
8430
# _AM_PROG_TAR(FORMAT)
 
8431
# --------------------
 
8432
# Check how to create a tarball in format FORMAT.
 
8433
# FORMAT should be one of `v7', `ustar', or `pax'.
 
8434
#
 
8435
# Substitute a variable $(am__tar) that is a command
 
8436
# writing to stdout a FORMAT-tarball containing the directory
 
8437
# $tardir.
 
8438
#     tardir=directory && $(am__tar) > result.tar
 
8439
#
 
8440
# Substitute a variable $(am__untar) that extract such
 
8441
# a tarball read from stdin.
 
8442
#     $(am__untar) < result.tar
 
8443
AC_DEFUN([_AM_PROG_TAR],
 
8444
[# Always define AMTAR for backward compatibility.
 
8445
AM_MISSING_PROG([AMTAR], [tar])
 
8446
m4_if([$1], [v7],
 
8447
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
8448
     [m4_case([$1], [ustar],, [pax],,
 
8449
              [m4_fatal([Unknown tar format])])
 
8450
AC_MSG_CHECKING([how to create a $1 tar archive])
 
8451
# Loop over all known methods to create a tar archive until one works.
 
8452
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
8453
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
8454
# Do not fold the above two line into one, because Tru64 sh and
 
8455
# Solaris sh will not grok spaces in the rhs of `-'.
 
8456
for _am_tool in $_am_tools
 
8457
do
 
8458
  case $_am_tool in
 
8459
  gnutar)
 
8460
    for _am_tar in tar gnutar gtar;
 
8461
    do
 
8462
      AM_RUN_LOG([$_am_tar --version]) && break
 
8463
    done
 
8464
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
8465
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
8466
    am__untar="$_am_tar -xf -"
 
8467
    ;;
 
8468
  plaintar)
 
8469
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
8470
    # ustar tarball either.
 
8471
    (tar --version) >/dev/null 2>&1 && continue
 
8472
    am__tar='tar chf - "$$tardir"'
 
8473
    am__tar_='tar chf - "$tardir"'
 
8474
    am__untar='tar xf -'
 
8475
    ;;
 
8476
  pax)
 
8477
    am__tar='pax -L -x $1 -w "$$tardir"'
 
8478
    am__tar_='pax -L -x $1 -w "$tardir"'
 
8479
    am__untar='pax -r'
 
8480
    ;;
 
8481
  cpio)
 
8482
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
8483
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
8484
    am__untar='cpio -i -H $1 -d'
 
8485
    ;;
 
8486
  none)
 
8487
    am__tar=false
 
8488
    am__tar_=false
 
8489
    am__untar=false
 
8490
    ;;
 
8491
  esac
 
8492
 
 
8493
  # If the value was cached, stop now.  We just wanted to have am__tar
 
8494
  # and am__untar set.
 
8495
  test -n "${am_cv_prog_tar_$1}" && break
 
8496
 
 
8497
  # tar/untar a dummy directory, and stop if the command works
 
8498
  rm -rf conftest.dir
 
8499
  mkdir conftest.dir
 
8500
  echo GrepMe > conftest.dir/file
 
8501
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
8502
  rm -rf conftest.dir
 
8503
  if test -s conftest.tar; then
 
8504
    AM_RUN_LOG([$am__untar <conftest.tar])
 
8505
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
8506
  fi
 
8507
done
 
8508
rm -rf conftest.dir
 
8509
 
 
8510
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
8511
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
8512
AC_SUBST([am__tar])
 
8513
AC_SUBST([am__untar])
 
8514
]) # _AM_PROG_TAR
 
8515
 
8252
8516
m4_include([m4/ac-define-dir.m4])
8253
8517
m4_include([m4/acinclude.m4])
8254
8518
m4_include([m4/gnome-doc-utils.m4])