~ubuntu-branches/ubuntu/intrepid/comedilib/intrepid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): David Schleef
  • Date: 2004-11-04 11:43:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041104114351-a50kaei5yamka8r6
Tags: 0.7.22-2
It helps if the shared library is actually in the package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.2 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4
4
# 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,
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
dnl version.m4 0.0.5
15
 
dnl autostars m4 macro for versioning
16
 
dnl thomas@apestaart.org
17
 
dnl
18
 
dnl AS_VERSION(PACKAGE, PREFIX, MAJOR, MINOR, MICRO, NANO, ACTION_IF_NO_NANO, ACTION_IF_NANO)
19
 
dnl example
20
 
dnl AS_VERSION(gstreamer, GST_VERSION, 0, 3, 2,)
21
 
dnl for a 0.3.2 release version
22
 
dnl
23
 
dnl this macro
24
 
dnl - defines [$PREFIX]_MAJOR, MINOR and MICRO
25
 
dnl - if NANO is empty, then we're in release mode, else in cvs/dev mode
26
 
dnl - defines [$PREFIX], VERSION, and [$PREFIX]_RELEASE
27
 
dnl - executes the relevant action
28
 
dnl - AC_SUBST's PACKAGE, VERSION, [$PREFIX] and [$PREFIX]_RELEASE
29
 
dnl   as well as the little ones
30
 
dnl - doesn't call AM_INIT_AUTOMAKE anymore because it prevents
31
 
dnl   maintainer mode from running ok
32
 
dnl
33
 
dnl don't forget to put #undef [$2] and [$2]_RELEASE in acconfig.h
34
 
 
35
 
AC_DEFUN(AS_VERSION,
36
 
[
37
 
  PACKAGE=[$1]
38
 
  [$2]_MAJOR=[$3]
39
 
  [$2]_MINOR=[$4]
40
 
  [$2]_MICRO=[$5]
41
 
  NANO=[$6]
42
 
  if test "x$NANO" = "x" || test "x$NANO" = "x0";
43
 
  then
44
 
      AC_MSG_NOTICE(configuring [$1] for release)
45
 
      VERSION=[$3].[$4].[$5]
46
 
      [$2]_RELEASE=1
47
 
      dnl execute action
48
 
      ifelse([$7], , :, [$7])
49
 
  else
50
 
      AC_MSG_NOTICE(configuring [$1] for development with nano $NANO)
51
 
      VERSION=[$3].[$4].[$5].$NANO
52
 
      [$2]_RELEASE=`date +%Y%m%d_%H%M%S`
53
 
      dnl execute action
54
 
      ifelse([$8], , :, [$8])
55
 
  fi
56
 
 
57
 
  [$2]=$VERSION
58
 
  AC_DEFINE_UNQUOTED([$2], "$[$2]", [Define the version])
59
 
  AC_SUBST([$2])
60
 
  AC_DEFINE_UNQUOTED([$2]_RELEASE, "$[$2]_RELEASE", [Define the release version])
61
 
  AC_SUBST([$2]_RELEASE)
62
 
 
63
 
  AC_SUBST([$2]_MAJOR)
64
 
  AC_SUBST([$2]_MINOR)
65
 
  AC_SUBST([$2]_MICRO)
66
 
  AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Define the package name])
67
 
  AC_SUBST(PACKAGE)
68
 
  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Define the version])
69
 
  AC_SUBST(VERSION)
70
 
])
71
 
 
72
 
# Do all the work for Automake.                            -*- Autoconf -*-
73
 
 
74
 
# This macro actually does too much some checks are only needed if
75
 
# your package does certain things.  But this isn't really a big deal.
76
 
 
77
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
78
 
# Free Software Foundation, Inc.
79
 
 
80
 
# This program is free software; you can redistribute it and/or modify
81
 
# it under the terms of the GNU General Public License as published by
82
 
# the Free Software Foundation; either version 2, or (at your option)
83
 
# any later version.
84
 
 
85
 
# This program is distributed in the hope that it will be useful,
86
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
87
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
88
 
# GNU General Public License for more details.
89
 
 
90
 
# You should have received a copy of the GNU General Public License
91
 
# along with this program; if not, write to the Free Software
92
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
93
 
# 02111-1307, USA.
94
 
 
95
 
# serial 10
96
 
 
97
 
AC_PREREQ([2.54])
98
 
 
99
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
100
 
# the ones we care about.
101
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
102
 
 
103
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
104
 
# AM_INIT_AUTOMAKE([OPTIONS])
105
 
# -----------------------------------------------
106
 
# The call with PACKAGE and VERSION arguments is the old style
107
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
108
 
# and VERSION should now be passed to AC_INIT and removed from
109
 
# the call to AM_INIT_AUTOMAKE.
110
 
# We support both call styles for the transition.  After
111
 
# the next Automake release, Autoconf can make the AC_INIT
112
 
# arguments mandatory, and then we can depend on a new Autoconf
113
 
# release and drop the old call support.
114
 
AC_DEFUN([AM_INIT_AUTOMAKE],
115
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
116
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
117
 
# test to see if srcdir already configured
118
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
119
 
   test -f $srcdir/config.status; then
120
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
121
 
fi
122
 
 
123
 
# test whether we have cygpath
124
 
if test -z "$CYGPATH_W"; then
125
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
126
 
    CYGPATH_W='cygpath -w'
127
 
  else
128
 
    CYGPATH_W=echo
129
 
  fi
130
 
fi
131
 
AC_SUBST([CYGPATH_W])
132
 
 
133
 
# Define the identity of the package.
134
 
dnl Distinguish between old-style and new-style calls.
135
 
m4_ifval([$2],
136
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
137
 
 AC_SUBST([PACKAGE], [$1])dnl
138
 
 AC_SUBST([VERSION], [$2])],
139
 
[_AM_SET_OPTIONS([$1])dnl
140
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
141
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
142
 
 
143
 
_AM_IF_OPTION([no-define],,
144
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
145
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
146
 
 
147
 
# Some tools Automake needs.
148
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
149
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
150
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
151
 
AM_MISSING_PROG(AUTOCONF, autoconf)
152
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
153
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
154
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
155
 
AM_MISSING_PROG(AMTAR, tar)
156
 
AM_PROG_INSTALL_SH
157
 
AM_PROG_INSTALL_STRIP
158
 
# We need awk for the "check" target.  The system "awk" is bad on
159
 
# some platforms.
160
 
AC_REQUIRE([AC_PROG_AWK])dnl
161
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
162
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
163
 
 
164
 
_AM_IF_OPTION([no-dependencies],,
165
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
166
 
                  [_AM_DEPENDENCIES(CC)],
167
 
                  [define([AC_PROG_CC],
168
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
169
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
170
 
                  [_AM_DEPENDENCIES(CXX)],
171
 
                  [define([AC_PROG_CXX],
172
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
173
 
])
174
 
])
175
 
 
176
 
 
177
 
# When config.status generates a header, we must update the stamp-h file.
178
 
# This file resides in the same directory as the config header
179
 
# that is generated.  The stamp files are numbered to have different names.
180
 
 
181
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
182
 
# loop where config.status creates the headers, so we can generate
183
 
# our stamp files there.
184
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
185
 
[# Compute $1's index in $config_headers.
186
 
_am_stamp_count=1
187
 
for _am_header in $config_headers :; do
188
 
  case $_am_header in
189
 
    $1 | $1:* )
190
 
      break ;;
191
 
    * )
192
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
193
 
  esac
194
 
done
195
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
196
 
 
197
 
# Copyright 2002  Free Software Foundation, Inc.
198
 
 
199
 
# This program is free software; you can redistribute it and/or modify
200
 
# it under the terms of the GNU General Public License as published by
201
 
# the Free Software Foundation; either version 2, or (at your option)
202
 
# any later version.
203
 
 
204
 
# This program is distributed in the hope that it will be useful,
205
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
206
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
207
 
# GNU General Public License for more details.
208
 
 
209
 
# You should have received a copy of the GNU General Public License
210
 
# along with this program; if not, write to the Free Software
211
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
212
 
 
213
 
# AM_AUTOMAKE_VERSION(VERSION)
214
 
# ----------------------------
215
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
216
 
# generated from the m4 files accompanying Automake X.Y.
217
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
218
 
 
219
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
220
 
# -------------------------------
221
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
222
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
223
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
224
 
         [AM_AUTOMAKE_VERSION([1.7.6])])
225
 
 
226
 
# Helper functions for option handling.                    -*- Autoconf -*-
227
 
 
228
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
229
 
 
230
 
# This program is free software; you can redistribute it and/or modify
231
 
# it under the terms of the GNU General Public License as published by
232
 
# the Free Software Foundation; either version 2, or (at your option)
233
 
# any later version.
234
 
 
235
 
# This program is distributed in the hope that it will be useful,
236
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
237
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
238
 
# GNU General Public License for more details.
239
 
 
240
 
# You should have received a copy of the GNU General Public License
241
 
# along with this program; if not, write to the Free Software
242
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
243
 
# 02111-1307, USA.
244
 
 
245
 
# serial 2
246
 
 
247
 
# _AM_MANGLE_OPTION(NAME)
248
 
# -----------------------
249
 
AC_DEFUN([_AM_MANGLE_OPTION],
250
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
251
 
 
252
 
# _AM_SET_OPTION(NAME)
253
 
# ------------------------------
254
 
# Set option NAME.  Presently that only means defining a flag for this option.
255
 
AC_DEFUN([_AM_SET_OPTION],
256
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
257
 
 
258
 
# _AM_SET_OPTIONS(OPTIONS)
259
 
# ----------------------------------
260
 
# OPTIONS is a space-separated list of Automake options.
261
 
AC_DEFUN([_AM_SET_OPTIONS],
262
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
263
 
 
264
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
265
 
# -------------------------------------------
266
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
267
 
AC_DEFUN([_AM_IF_OPTION],
268
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
269
 
 
270
 
#
271
 
# Check to make sure that the build environment is sane.
272
 
#
273
 
 
274
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
275
 
 
276
 
# This program is free software; you can redistribute it and/or modify
277
 
# it under the terms of the GNU General Public License as published by
278
 
# the Free Software Foundation; either version 2, or (at your option)
279
 
# any later version.
280
 
 
281
 
# This program is distributed in the hope that it will be useful,
282
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
283
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
284
 
# GNU General Public License for more details.
285
 
 
286
 
# You should have received a copy of the GNU General Public License
287
 
# along with this program; if not, write to the Free Software
288
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
289
 
# 02111-1307, USA.
290
 
 
291
 
# serial 3
292
 
 
293
 
# AM_SANITY_CHECK
294
 
# ---------------
295
 
AC_DEFUN([AM_SANITY_CHECK],
296
 
[AC_MSG_CHECKING([whether build environment is sane])
297
 
# Just in case
298
 
sleep 1
299
 
echo timestamp > conftest.file
300
 
# Do `set' in a subshell so we don't clobber the current shell's
301
 
# arguments.  Must try -L first in case configure is actually a
302
 
# symlink; some systems play weird games with the mod time of symlinks
303
 
# (eg FreeBSD returns the mod time of the symlink's containing
304
 
# directory).
305
 
if (
306
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
307
 
   if test "$[*]" = "X"; then
308
 
      # -L didn't work.
309
 
      set X `ls -t $srcdir/configure conftest.file`
310
 
   fi
311
 
   rm -f conftest.file
312
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
313
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
314
 
 
315
 
      # If neither matched, then we have a broken ls.  This can happen
316
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
317
 
      # broken ls alias from the environment.  This has actually
318
 
      # happened.  Such a system could not be considered "sane".
319
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
320
 
alias in your environment])
321
 
   fi
322
 
 
323
 
   test "$[2]" = conftest.file
324
 
   )
325
 
then
326
 
   # Ok.
327
 
   :
328
 
else
329
 
   AC_MSG_ERROR([newly created file is older than distributed files!
330
 
Check your system clock])
331
 
fi
332
 
AC_MSG_RESULT(yes)])
333
 
 
334
 
#  -*- Autoconf -*-
335
 
 
336
 
 
337
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
338
 
 
339
 
# This program is free software; you can redistribute it and/or modify
340
 
# it under the terms of the GNU General Public License as published by
341
 
# the Free Software Foundation; either version 2, or (at your option)
342
 
# any later version.
343
 
 
344
 
# This program is distributed in the hope that it will be useful,
345
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
346
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
347
 
# GNU General Public License for more details.
348
 
 
349
 
# You should have received a copy of the GNU General Public License
350
 
# along with this program; if not, write to the Free Software
351
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
352
 
# 02111-1307, USA.
353
 
 
354
 
# serial 3
355
 
 
356
 
# AM_MISSING_PROG(NAME, PROGRAM)
357
 
# ------------------------------
358
 
AC_DEFUN([AM_MISSING_PROG],
359
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
360
 
$1=${$1-"${am_missing_run}$2"}
361
 
AC_SUBST($1)])
362
 
 
363
 
 
364
 
# AM_MISSING_HAS_RUN
365
 
# ------------------
366
 
# Define MISSING if not defined so far and test if it supports --run.
367
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
368
 
AC_DEFUN([AM_MISSING_HAS_RUN],
369
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
370
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
371
 
# Use eval to expand $SHELL
372
 
if eval "$MISSING --run true"; then
373
 
  am_missing_run="$MISSING --run "
374
 
else
375
 
  am_missing_run=
376
 
  AC_MSG_WARN([`missing' script is too old or missing])
377
 
fi
378
 
])
379
 
 
380
 
# AM_AUX_DIR_EXPAND
381
 
 
382
 
# Copyright 2001 Free Software Foundation, Inc.
383
 
 
384
 
# This program is free software; you can redistribute it and/or modify
385
 
# it under the terms of the GNU General Public License as published by
386
 
# the Free Software Foundation; either version 2, or (at your option)
387
 
# any later version.
388
 
 
389
 
# This program is distributed in the hope that it will be useful,
390
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
391
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
392
 
# GNU General Public License for more details.
393
 
 
394
 
# You should have received a copy of the GNU General Public License
395
 
# along with this program; if not, write to the Free Software
396
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
397
 
# 02111-1307, USA.
398
 
 
399
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
400
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
401
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
402
 
#
403
 
# Of course, Automake must honor this variable whenever it calls a
404
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
405
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
406
 
# depending on how configure is run.  This is pretty annoying, since
407
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
408
 
# source directory, any form will work fine, but in subdirectories a
409
 
# relative path needs to be adjusted first.
410
 
#
411
 
# $ac_aux_dir/missing
412
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
413
 
# $top_srcdir/$ac_aux_dir/missing
414
 
#    fails if $ac_aux_dir is absolute,
415
 
#    fails when called from a subdirectory in a VPATH build with
416
 
#          a relative $ac_aux_dir
417
 
#
418
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
419
 
# are both prefixed by $srcdir.  In an in-source build this is usually
420
 
# harmless because $srcdir is `.', but things will broke when you
421
 
# start a VPATH build or use an absolute $srcdir.
422
 
#
423
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
424
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
425
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
426
 
# and then we would define $MISSING as
427
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
428
 
# This will work as long as MISSING is not called from configure, because
429
 
# unfortunately $(top_srcdir) has no meaning in configure.
430
 
# However there are other variables, like CC, which are often used in
431
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
432
 
#
433
 
# Another solution, used here, is to always expand $ac_aux_dir to an
434
 
# absolute PATH.  The drawback is that using absolute paths prevent a
435
 
# configured tree to be moved without reconfiguration.
436
 
 
437
 
# Rely on autoconf to set up CDPATH properly.
438
 
AC_PREREQ([2.50])
439
 
 
440
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
441
 
# expand $ac_aux_dir to an absolute path
442
 
am_aux_dir=`cd $ac_aux_dir && pwd`
443
 
])
444
 
 
445
 
# AM_PROG_INSTALL_SH
446
 
# ------------------
447
 
# Define $install_sh.
448
 
 
449
 
# Copyright 2001 Free Software Foundation, Inc.
450
 
 
451
 
# This program is free software; you can redistribute it and/or modify
452
 
# it under the terms of the GNU General Public License as published by
453
 
# the Free Software Foundation; either version 2, or (at your option)
454
 
# any later version.
455
 
 
456
 
# This program is distributed in the hope that it will be useful,
457
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
458
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
459
 
# GNU General Public License for more details.
460
 
 
461
 
# You should have received a copy of the GNU General Public License
462
 
# along with this program; if not, write to the Free Software
463
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
464
 
# 02111-1307, USA.
465
 
 
466
 
AC_DEFUN([AM_PROG_INSTALL_SH],
467
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
468
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
469
 
AC_SUBST(install_sh)])
470
 
 
471
 
# AM_PROG_INSTALL_STRIP
472
 
 
473
 
# Copyright 2001 Free Software Foundation, Inc.
474
 
 
475
 
# This program is free software; you can redistribute it and/or modify
476
 
# it under the terms of the GNU General Public License as published by
477
 
# the Free Software Foundation; either version 2, or (at your option)
478
 
# any later version.
479
 
 
480
 
# This program is distributed in the hope that it will be useful,
481
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
482
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
483
 
# GNU General Public License for more details.
484
 
 
485
 
# You should have received a copy of the GNU General Public License
486
 
# along with this program; if not, write to the Free Software
487
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
488
 
# 02111-1307, USA.
489
 
 
490
 
# One issue with vendor `install' (even GNU) is that you can't
491
 
# specify the program used to strip binaries.  This is especially
492
 
# annoying in cross-compiling environments, where the build's strip
493
 
# is unlikely to handle the host's binaries.
494
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
495
 
# always use install-sh in `make install-strip', and initialize
496
 
# STRIPPROG with the value of the STRIP variable (set by the user).
497
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
498
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
499
 
# Installed binaries are usually stripped using `strip' when the user
500
 
# run `make install-strip'.  However `strip' might not be the right
501
 
# tool to use in cross-compilation environments, therefore Automake
502
 
# will honor the `STRIP' environment variable to overrule this program.
503
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
504
 
if test "$cross_compiling" != no; then
505
 
  AC_CHECK_TOOL([STRIP], [strip], :)
506
 
fi
507
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
508
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
509
 
 
510
 
#                                                          -*- Autoconf -*-
511
 
# Copyright (C) 2003  Free Software Foundation, Inc.
512
 
 
513
 
# This program is free software; you can redistribute it and/or modify
514
 
# it under the terms of the GNU General Public License as published by
515
 
# the Free Software Foundation; either version 2, or (at your option)
516
 
# any later version.
517
 
 
518
 
# This program is distributed in the hope that it will be useful,
519
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
520
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
521
 
# GNU General Public License for more details.
522
 
 
523
 
# You should have received a copy of the GNU General Public License
524
 
# along with this program; if not, write to the Free Software
525
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
526
 
# 02111-1307, USA.
527
 
 
528
 
# serial 1
529
 
 
530
 
# Check whether the underlying file-system supports filenames
531
 
# with a leading dot.  For instance MS-DOS doesn't.
532
 
AC_DEFUN([AM_SET_LEADING_DOT],
533
 
[rm -rf .tst 2>/dev/null
534
 
mkdir .tst 2>/dev/null
535
 
if test -d .tst; then
536
 
  am__leading_dot=.
537
 
else
538
 
  am__leading_dot=_
539
 
fi
540
 
rmdir .tst 2>/dev/null
541
 
AC_SUBST([am__leading_dot])])
542
 
 
543
 
# serial 5                                              -*- Autoconf -*-
544
 
 
545
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
546
 
 
547
 
# This program is free software; you can redistribute it and/or modify
548
 
# it under the terms of the GNU General Public License as published by
549
 
# the Free Software Foundation; either version 2, or (at your option)
550
 
# any later version.
551
 
 
552
 
# This program is distributed in the hope that it will be useful,
553
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
554
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
555
 
# GNU General Public License for more details.
556
 
 
557
 
# You should have received a copy of the GNU General Public License
558
 
# along with this program; if not, write to the Free Software
559
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
560
 
# 02111-1307, USA.
561
 
 
562
 
 
563
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
564
 
# written in clear, in which case automake, when reading aclocal.m4,
565
 
# will think it sees a *use*, and therefore will trigger all it's
566
 
# C support machinery.  Also note that it means that autoscan, seeing
567
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
568
 
 
569
 
 
570
 
 
571
 
# _AM_DEPENDENCIES(NAME)
572
 
# ----------------------
573
 
# See how the compiler implements dependency checking.
574
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
575
 
# We try a few techniques and use that to set a single cache variable.
576
 
#
577
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
578
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
579
 
# dependency, and given that the user is not expected to run this macro,
580
 
# just rely on AC_PROG_CC.
581
 
AC_DEFUN([_AM_DEPENDENCIES],
582
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
583
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
584
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
585
 
AC_REQUIRE([AM_DEP_TRACK])dnl
586
 
 
587
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
588
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
589
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
590
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
591
 
                   [depcc="$$1"   am_compiler_list=])
592
 
 
593
 
AC_CACHE_CHECK([dependency style of $depcc],
594
 
               [am_cv_$1_dependencies_compiler_type],
595
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
596
 
  # We make a subdir and do the tests there.  Otherwise we can end up
597
 
  # making bogus files that we don't know about and never remove.  For
598
 
  # instance it was reported that on HP-UX the gcc test will end up
599
 
  # making a dummy file named `D' -- because `-MD' means `put the output
600
 
  # in D'.
601
 
  mkdir conftest.dir
602
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
603
 
  # using a relative directory.
604
 
  cp "$am_depcomp" conftest.dir
605
 
  cd conftest.dir
606
 
  # We will build objects and dependencies in a subdirectory because
607
 
  # it helps to detect inapplicable dependency modes.  For instance
608
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
609
 
  # side effect of compilation, but ICC will put the dependencies in
610
 
  # the current directory while Tru64 will put them in the object
611
 
  # directory.
612
 
  mkdir sub
613
 
 
614
 
  am_cv_$1_dependencies_compiler_type=none
615
 
  if test "$am_compiler_list" = ""; then
616
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
617
 
  fi
618
 
  for depmode in $am_compiler_list; do
619
 
    # Setup a source with many dependencies, because some compilers
620
 
    # like to wrap large dependency lists on column 80 (with \), and
621
 
    # we should not choose a depcomp mode which is confused by this.
622
 
    #
623
 
    # We need to recreate these files for each test, as the compiler may
624
 
    # overwrite some of them when testing with obscure command lines.
625
 
    # This happens at least with the AIX C compiler.
626
 
    : > sub/conftest.c
627
 
    for i in 1 2 3 4 5 6; do
628
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
629
 
      : > sub/conftst$i.h
630
 
    done
631
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
632
 
 
633
 
    case $depmode in
634
 
    nosideeffect)
635
 
      # after this tag, mechanisms are not by side-effect, so they'll
636
 
      # only be used when explicitly requested
637
 
      if test "x$enable_dependency_tracking" = xyes; then
638
 
        continue
639
 
      else
640
 
        break
641
 
      fi
642
 
      ;;
643
 
    none) break ;;
644
 
    esac
645
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
646
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
647
 
    # handle `-M -o', and we need to detect this.
648
 
    if depmode=$depmode \
649
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
650
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
651
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
652
 
         >/dev/null 2>conftest.err &&
653
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
654
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
655
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
656
 
      # icc doesn't choke on unknown options, it will just issue warnings
657
 
      # (even with -Werror).  So we grep stderr for any message
658
 
      # that says an option was ignored.
659
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
660
 
        am_cv_$1_dependencies_compiler_type=$depmode
661
 
        break
662
 
      fi
663
 
    fi
664
 
  done
665
 
 
666
 
  cd ..
667
 
  rm -rf conftest.dir
668
 
else
669
 
  am_cv_$1_dependencies_compiler_type=none
670
 
fi
671
 
])
672
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
673
 
AM_CONDITIONAL([am__fastdep$1], [
674
 
  test "x$enable_dependency_tracking" != xno \
675
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
676
 
])
677
 
 
678
 
 
679
 
# AM_SET_DEPDIR
680
 
# -------------
681
 
# Choose a directory name for dependency files.
682
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
683
 
AC_DEFUN([AM_SET_DEPDIR],
684
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
685
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
686
 
])
687
 
 
688
 
 
689
 
# AM_DEP_TRACK
690
 
# ------------
691
 
AC_DEFUN([AM_DEP_TRACK],
692
 
[AC_ARG_ENABLE(dependency-tracking,
693
 
[  --disable-dependency-tracking Speeds up one-time builds
694
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
695
 
if test "x$enable_dependency_tracking" != xno; then
696
 
  am_depcomp="$ac_aux_dir/depcomp"
697
 
  AMDEPBACKSLASH='\'
698
 
fi
699
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
700
 
AC_SUBST([AMDEPBACKSLASH])
701
 
])
702
 
 
703
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
704
 
 
705
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
706
 
 
707
 
# This program is free software; you can redistribute it and/or modify
708
 
# it under the terms of the GNU General Public License as published by
709
 
# the Free Software Foundation; either version 2, or (at your option)
710
 
# any later version.
711
 
 
712
 
# This program is distributed in the hope that it will be useful,
713
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
714
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
715
 
# GNU General Public License for more details.
716
 
 
717
 
# You should have received a copy of the GNU General Public License
718
 
# along with this program; if not, write to the Free Software
719
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
720
 
# 02111-1307, USA.
721
 
 
722
 
#serial 2
723
 
 
724
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
725
 
# ------------------------------
726
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
727
 
[for mf in $CONFIG_FILES; do
728
 
  # Strip MF so we end up with the name of the file.
729
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
730
 
  # Check whether this is an Automake generated Makefile or not.
731
 
  # We used to match only the files named `Makefile.in', but
732
 
  # some people rename them; so instead we look at the file content.
733
 
  # Grep'ing the first line is not enough: some people post-process
734
 
  # each Makefile.in and add a new line on top of each file to say so.
735
 
  # So let's grep whole file.
736
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
737
 
    dirpart=`AS_DIRNAME("$mf")`
738
 
  else
739
 
    continue
740
 
  fi
741
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
742
 
  # Extract the definition of DEP_FILES from the Makefile without
743
 
  # running `make'.
744
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
745
 
  test -z "$DEPDIR" && continue
746
 
  # When using ansi2knr, U may be empty or an underscore; expand it
747
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
748
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
749
 
  # We invoke sed twice because it is the simplest approach to
750
 
  # changing $(DEPDIR) to its actual value in the expansion.
751
 
  for file in `sed -n -e '
752
 
    /^DEP_FILES = .*\\\\$/ {
753
 
      s/^DEP_FILES = //
754
 
      :loop
755
 
        s/\\\\$//
756
 
        p
757
 
        n
758
 
        /\\\\$/ b loop
759
 
      p
760
 
    }
761
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
762
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
763
 
    # Make sure the directory exists.
764
 
    test -f "$dirpart/$file" && continue
765
 
    fdir=`AS_DIRNAME(["$file"])`
766
 
    AS_MKDIR_P([$dirpart/$fdir])
767
 
    # echo "creating $dirpart/$file"
768
 
    echo '# dummy' > "$dirpart/$file"
769
 
  done
770
 
done
771
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
772
 
 
773
 
 
774
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
775
 
# -----------------------------
776
 
# This macro should only be invoked once -- use via AC_REQUIRE.
777
 
#
778
 
# This code is only required when automatic dependency tracking
779
 
# is enabled.  FIXME.  This creates each `.P' file that we will
780
 
# need in order to bootstrap the dependency handling code.
781
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
782
 
[AC_CONFIG_COMMANDS([depfiles],
783
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
784
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
785
 
])
786
 
 
787
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
788
 
 
789
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
790
 
 
791
 
# This program is free software; you can redistribute it and/or modify
792
 
# it under the terms of the GNU General Public License as published by
793
 
# the Free Software Foundation; either version 2, or (at your option)
794
 
# any later version.
795
 
 
796
 
# This program is distributed in the hope that it will be useful,
797
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
798
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
799
 
# GNU General Public License for more details.
800
 
 
801
 
# You should have received a copy of the GNU General Public License
802
 
# along with this program; if not, write to the Free Software
803
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
804
 
# 02111-1307, USA.
805
 
 
806
 
# serial 2
807
 
 
808
 
# AM_MAKE_INCLUDE()
809
 
# -----------------
810
 
# Check to see how make treats includes.
811
 
AC_DEFUN([AM_MAKE_INCLUDE],
812
 
[am_make=${MAKE-make}
813
 
cat > confinc << 'END'
814
 
am__doit:
815
 
        @echo done
816
 
.PHONY: am__doit
817
 
END
818
 
# If we don't find an include directive, just comment out the code.
819
 
AC_MSG_CHECKING([for style of include used by $am_make])
820
 
am__include="#"
821
 
am__quote=
822
 
_am_result=none
823
 
# First try GNU make style include.
824
 
echo "include confinc" > confmf
825
 
# We grep out `Entering directory' and `Leaving directory'
826
 
# messages which can occur if `w' ends up in MAKEFLAGS.
827
 
# In particular we don't look at `^make:' because GNU make might
828
 
# be invoked under some other name (usually "gmake"), in which
829
 
# case it prints its new name instead of `make'.
830
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
831
 
   am__include=include
832
 
   am__quote=
833
 
   _am_result=GNU
834
 
fi
835
 
# Now try BSD make style include.
836
 
if test "$am__include" = "#"; then
837
 
   echo '.include "confinc"' > confmf
838
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
839
 
      am__include=.include
840
 
      am__quote="\""
841
 
      _am_result=BSD
842
 
   fi
843
 
fi
844
 
AC_SUBST([am__include])
845
 
AC_SUBST([am__quote])
846
 
AC_MSG_RESULT([$_am_result])
847
 
rm -f confinc confmf
848
 
])
849
 
 
850
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
851
 
 
852
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
853
 
 
854
 
# This program is free software; you can redistribute it and/or modify
855
 
# it under the terms of the GNU General Public License as published by
856
 
# the Free Software Foundation; either version 2, or (at your option)
857
 
# any later version.
858
 
 
859
 
# This program is distributed in the hope that it will be useful,
860
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
861
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
862
 
# GNU General Public License for more details.
863
 
 
864
 
# You should have received a copy of the GNU General Public License
865
 
# along with this program; if not, write to the Free Software
866
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
867
 
# 02111-1307, USA.
868
 
 
869
 
# serial 5
870
 
 
871
 
AC_PREREQ(2.52)
872
 
 
873
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
874
 
# -------------------------------------
875
 
# Define a conditional.
876
 
AC_DEFUN([AM_CONDITIONAL],
877
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
878
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
879
 
AC_SUBST([$1_TRUE])
880
 
AC_SUBST([$1_FALSE])
881
 
if $2; then
882
 
  $1_TRUE=
883
 
  $1_FALSE='#'
884
 
else
885
 
  $1_TRUE='#'
886
 
  $1_FALSE=
887
 
fi
888
 
AC_CONFIG_COMMANDS_PRE(
889
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
890
 
  AC_MSG_ERROR([conditional "$1" was never defined.
891
 
Usually this means the macro was only invoked conditionally.])
892
 
fi])])
893
 
 
894
 
dnl as-libtool.m4 0.0.2
895
 
dnl autostars m4 macro for libtool versioning
896
 
dnl thomas@apestaart.org
897
 
dnl
898
 
dnl AS_LIBTOOL(PREFIX, CURRENT, REVISION, AGE, USE_RELEASE)
899
 
dnl example
900
 
dnl AS_VERSION(GST, 2, 0, 0)
901
 
dnl
902
 
dnl this macro
903
 
dnl - defines [$PREFIX]_CURRENT, REVISION AND AGE
904
 
dnl - defines [$PREFIX]_LIBVERSION
905
 
dnl - defines [$PREFIX]_LT_LDFLAGS to set versioning
906
 
dnl - AC_SUBST's them all
907
 
dnl
908
 
dnl if USE_RELEASE = yes, then add a -release option to the LDFLAGS
909
 
dnl with the (pre-defined) [$PREFIX]_VERSION 
910
 
dnl then use [$PREFIX]_LT_LDFLAGS in the relevant Makefile.am's
911
 
 
912
 
AC_DEFUN(AS_LIBTOOL,
913
 
[
914
 
  [$1]_CURRENT=[$2]
915
 
  [$1]_REVISION=[$3]
916
 
  [$1]_AGE=[$4]
917
 
  [$1]_LIBVERSION=[$2]:[$3]:[$4]
918
 
  AC_SUBST([$1]_CURRENT)
919
 
  AC_SUBST([$1]_REVISION)
920
 
  AC_SUBST([$1]_AGE)
921
 
  AC_SUBST([$1]_LIBVERSION)
922
 
 
923
 
dnl  [$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -version-info $[$1]_LIBVERSION"
924
 
  if test ! -z "[$5]"
925
 
  then
926
 
    [$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -release $[$1]_VERSION"
927
 
  fi
928
 
  AC_SUBST([$1]_LT_LDFLAGS)
929
 
 
930
 
  AC_LIBTOOL_DLOPEN
931
 
  AC_PROG_LIBTOOL
932
 
])
933
 
 
934
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
935
15
 
936
16
# serial 47 AC_PROG_LIBTOOL
937
 
# Debian $Rev: 47 $
 
17
# Debian $Rev: 214 $
938
18
 
939
19
 
940
20
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1553
633
AC_MSG_CHECKING([the maximum length of command line arguments])
1554
634
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1555
635
  i=0
1556
 
  testring="ABCD"
 
636
  teststring="ABCD"
1557
637
 
1558
638
  case $build_os in
1559
639
  msdosdjgpp*)
1592
672
    # If test is not a shell built-in, we'll probably end up computing a
1593
673
    # maximum length that is only half of the actual maximum length, but
1594
674
    # we can't tell.
1595
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
1596
 
               = "XX$testring") >/dev/null 2>&1 &&
1597
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
675
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
676
               = "XX$teststring") >/dev/null 2>&1 &&
 
677
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1598
678
            lt_cv_sys_max_cmd_len=$new_result &&
1599
679
            test $i != 17 # 1/2 MB should be enough
1600
680
    do
1601
681
      i=`expr $i + 1`
1602
 
      testring=$testring$testring
 
682
      teststring=$teststring$teststring
1603
683
    done
1604
 
    testring=
 
684
    teststring=
1605
685
    # Add a significant safety factor because C++ compilers can tack on massive
1606
686
    # amounts of additional arguments before passing them to the linker.
1607
687
    # It appears as though 1/2 is a usable value.
1751
831
    lt_cv_dlopen_self=yes
1752
832
    ])
1753
833
   ;;
1754
 
    
 
834
 
1755
835
  *)
1756
836
    AC_CHECK_FUNC([shl_load],
1757
837
          [lt_cv_dlopen="shl_load"],
1840
920
   mkdir out
1841
921
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1842
922
 
1843
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1844
 
   # that will create temporary files in the current directory regardless of
1845
 
   # the output directory.  Thus, making CWD read-only will cause this test
1846
 
   # to fail, enabling locking or at least warning the user not to do parallel
1847
 
   # builds.
1848
 
   chmod -w .
1849
 
 
1850
923
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1851
924
   # Insert the option either (1) after the last *FLAGS variable, or
1852
925
   # (2) before a word containing "conftest.", or (3) at the end.
1991
1064
   *)
1992
1065
  AC_MSG_RESULT([no])
1993
1066
    ;;
1994
 
  esac  
 
1067
  esac
1995
1068
fi
1996
1069
])# AC_LIBTOOL_SYS_LIB_STRIP
1997
1070
 
2004
1077
library_names_spec=
2005
1078
libname_spec='lib$name'
2006
1079
soname_spec=
2007
 
shrext=".so"
 
1080
shrext_cmds=".so"
2008
1081
postinstall_cmds=
2009
1082
postuninstall_cmds=
2010
1083
finish_cmds=
2117
1190
 
2118
1191
cygwin* | mingw* | pw32*)
2119
1192
  version_type=windows
2120
 
  shrext=".dll"
 
1193
  shrext_cmds=".dll"
2121
1194
  need_version=no
2122
1195
  need_lib_prefix=no
2123
1196
 
2182
1255
  soname_spec='${libname}${release}${major}$shared_ext'
2183
1256
  shlibpath_overrides_runpath=yes
2184
1257
  shlibpath_var=DYLD_LIBRARY_PATH
2185
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
1258
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2186
1259
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2187
1260
  if test "$GCC" = yes; then
2188
1261
    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"`
2265
1338
  need_version=no
2266
1339
  case "$host_cpu" in
2267
1340
  ia64*)
2268
 
    shrext='.so'
 
1341
    shrext_cmds='.so'
2269
1342
    hardcode_into_libs=yes
2270
1343
    dynamic_linker="$host_os dld.so"
2271
1344
    shlibpath_var=LD_LIBRARY_PATH
2280
1353
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2281
1354
    ;;
2282
1355
   hppa*64*)
2283
 
     shrext='.sl'
 
1356
     shrext_cmds='.sl'
2284
1357
     hardcode_into_libs=yes
2285
1358
     dynamic_linker="$host_os dld.sl"
2286
1359
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2291
1364
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2292
1365
     ;;
2293
1366
   *)
2294
 
    shrext='.sl'
 
1367
    shrext_cmds='.sl'
2295
1368
    dynamic_linker="$host_os dld.sl"
2296
1369
    shlibpath_var=SHLIB_PATH
2297
1370
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2360
1433
  # before this can be enabled.
2361
1434
  hardcode_into_libs=yes
2362
1435
 
 
1436
  # Append ld.so.conf contents to the search path
 
1437
  if test -f /etc/ld.so.conf; then
 
1438
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
1439
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
1440
  fi
 
1441
 
2363
1442
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2364
1443
  # powerpc, because MkLinux only supported shared libraries with the
2365
1444
  # GNU dynamic linker.  Since this was broken with cross compilers,
2369
1448
  dynamic_linker='GNU/Linux ld.so'
2370
1449
  ;;
2371
1450
 
 
1451
netbsdelf*-gnu)
 
1452
  version_type=linux
 
1453
  need_lib_prefix=no
 
1454
  need_version=no
 
1455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1456
  soname_spec='${libname}${release}${shared_ext}$major'
 
1457
  shlibpath_var=LD_LIBRARY_PATH
 
1458
  shlibpath_overrides_runpath=no
 
1459
  hardcode_into_libs=yes
 
1460
  dynamic_linker='NetBSD ld.elf_so'
 
1461
  ;;
 
1462
 
 
1463
knetbsd*-gnu)
 
1464
  version_type=linux
 
1465
  need_lib_prefix=no
 
1466
  need_version=no
 
1467
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1468
  soname_spec='${libname}${release}${shared_ext}$major'
 
1469
  shlibpath_var=LD_LIBRARY_PATH
 
1470
  shlibpath_overrides_runpath=no
 
1471
  hardcode_into_libs=yes
 
1472
  dynamic_linker='GNU ld.so'
 
1473
  ;;
 
1474
 
2372
1475
netbsd*)
2373
1476
  version_type=sunos
2374
1477
  need_lib_prefix=no
2378
1481
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2379
1482
    dynamic_linker='NetBSD (a.out) ld.so'
2380
1483
  else
2381
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
1484
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2382
1485
    soname_spec='${libname}${release}${shared_ext}$major'
2383
1486
    dynamic_linker='NetBSD ld.elf_so'
2384
1487
  fi
2407
1510
openbsd*)
2408
1511
  version_type=sunos
2409
1512
  need_lib_prefix=no
2410
 
  need_version=no
 
1513
  need_version=yes
2411
1514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2412
1515
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2413
1516
  shlibpath_var=LD_LIBRARY_PATH
2427
1530
 
2428
1531
os2*)
2429
1532
  libname_spec='$name'
2430
 
  shrext=".dll"
 
1533
  shrext_cmds=".dll"
2431
1534
  need_lib_prefix=no
2432
1535
  library_names_spec='$libname${shared_ext} $libname.a'
2433
1536
  dynamic_linker='OS/2 ld.exe'
3017
2120
  lt_cv_file_magic_test_file=/shlib/libc.so
3018
2121
  ;;
3019
2122
 
3020
 
cygwin* | mingw* | pw32*)
3021
 
  # win32_libid is a shell function defined in ltmain.sh
 
2123
cygwin*)
 
2124
  # func_win32_libid is a shell function defined in ltmain.sh
3022
2125
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3023
 
  lt_cv_file_magic_cmd='win32_libid'
 
2126
  lt_cv_file_magic_cmd='func_win32_libid'
 
2127
  ;;
 
2128
 
 
2129
mingw* | pw32*)
 
2130
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
2131
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2132
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2133
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3024
2134
  ;;
3025
2135
 
3026
2136
darwin* | rhapsody*)
3027
 
  # this will be overwritten by pass_all, but leave it in just in case
3028
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3029
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3030
 
  case "$host_os" in
3031
 
  rhapsody* | darwin1.[[012]])
3032
 
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3033
 
    ;;
3034
 
  *) # Darwin 1.3 on
3035
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3036
 
    ;;
3037
 
  esac
3038
2137
  lt_cv_deplibs_check_method=pass_all
3039
2138
  ;;
3040
2139
 
3077
2176
  ;;
3078
2177
 
3079
2178
irix5* | irix6* | nonstopux*)
3080
 
  case $host_os in
3081
 
  irix5* | nonstopux*)
3082
 
    # this will be overridden with pass_all, but let us keep it just in case
3083
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3084
 
    ;;
3085
 
  *)
3086
 
    case $LD in
3087
 
    *-32|*"-32 ") libmagic=32-bit;;
3088
 
    *-n32|*"-n32 ") libmagic=N32;;
3089
 
    *-64|*"-64 ") libmagic=64-bit;;
3090
 
    *) libmagic=never-match;;
3091
 
    esac
3092
 
    # this will be overridden with pass_all, but let us keep it just in case
3093
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
3094
 
    ;;
 
2179
  case $LD in
 
2180
  *-32|*"-32 ") libmagic=32-bit;;
 
2181
  *-n32|*"-n32 ") libmagic=N32;;
 
2182
  *-64|*"-64 ") libmagic=64-bit;;
 
2183
  *) libmagic=never-match;;
3095
2184
  esac
3096
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3097
2185
  lt_cv_deplibs_check_method=pass_all
3098
2186
  ;;
3099
2187
 
3100
2188
# This must be Linux ELF.
3101
2189
linux*)
3102
 
  case $host_cpu in
3103
 
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
3104
 
    lt_cv_deplibs_check_method=pass_all ;;
3105
 
  *)
3106
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3107
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3108
 
  esac
3109
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
2190
  lt_cv_deplibs_check_method=pass_all
3110
2191
  ;;
3111
2192
 
3112
 
netbsd*)
 
2193
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3113
2194
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3114
2195
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3115
2196
  else
3138
2219
  ;;
3139
2220
 
3140
2221
osf3* | osf4* | osf5*)
3141
 
  # this will be overridden with pass_all, but let us keep it just in case
3142
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3143
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3144
2222
  lt_cv_deplibs_check_method=pass_all
3145
2223
  ;;
3146
2224
 
3150
2228
 
3151
2229
solaris*)
3152
2230
  lt_cv_deplibs_check_method=pass_all
3153
 
  lt_cv_file_magic_test_file=/lib/libc.so
3154
2231
  ;;
3155
2232
 
3156
2233
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3416
2493
fi
3417
2494
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3418
2495
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3419
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[      ]]" >/dev/null; then :
 
2496
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
3420
2497
  else
3421
2498
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3422
2499
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3462
2539
  fi
3463
2540
  ;;
3464
2541
 
3465
 
aix4*)
 
2542
aix4* | aix5*)
3466
2543
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3467
2544
    test "$enable_shared" = yes && enable_static=no
3468
2545
  fi
3484
2561
            ;;
3485
2562
          10.*)
3486
2563
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3487
 
            ;;            
 
2564
            ;;
3488
2565
        esac
3489
2566
      fi
3490
2567
      ;;
3502
2579
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3503
2580
  else
3504
2581
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3505
 
  fi  
3506
 
    ;;  
 
2582
  fi
 
2583
    ;;
3507
2584
esac
3508
2585
AC_MSG_RESULT([$enable_shared])
3509
2586
 
3821
2898
            ;;
3822
2899
          10.*)
3823
2900
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3824
 
            ;;            
 
2901
            ;;
3825
2902
        esac
3826
2903
      fi
3827
2904
      ;;
3910
2987
      # explicitly linking system object files so we need to strip them
3911
2988
      # from the output so that they don't get included in the library
3912
2989
      # dependencies.
3913
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
2990
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3914
2991
      ;;
3915
2992
    *)
3916
2993
      if test "$GXX" = yes; then
4107
3184
        ;;
4108
3185
    esac
4109
3186
    ;;
4110
 
  netbsd*)
 
3187
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4111
3188
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4112
3189
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4113
3190
      wlarc=
4613
3690
    postinstall_cmds='$RANLIB $lib'
4614
3691
  fi
4615
3692
  ;;
4616
 
aix4*)
 
3693
aix4* | aix5*)
4617
3694
  test "$enable_shared" = yes && enable_static=no
4618
3695
  ;;
4619
3696
esac
4751
3828
  # without removal of \ escapes.
4752
3829
  if test -n "${ZSH_VERSION+set}" ; then
4753
3830
    setopt NO_GLOB_SUBST
4754
 
  fi  
 
3831
  fi
4755
3832
  # Now quote all the things that may contain metacharacters while being
4756
3833
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4757
3834
  # variables and quote the copies for generation of the libtool script.
4758
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
3835
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
3836
    SED SHELL STRIP \
4759
3837
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4760
3838
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4761
3839
    deplibs_check_method reload_flag reload_cmds need_locks \
4805
3883
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4806
3884
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4807
3885
    _LT_AC_TAGVAR(module_cmds, $1) | \
4808
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \   
 
3886
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4809
3887
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4810
3888
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4811
3889
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4936
4014
NM=$lt_NM
4937
4015
 
4938
4016
# A symbol stripping program
4939
 
STRIP="$STRIP"
 
4017
STRIP=$lt_STRIP
4940
4018
 
4941
4019
# Used to examine libraries when file_magic_cmd begins "file"
4942
4020
MAGIC_CMD=$MAGIC_CMD
4967
4045
libext="$libext"
4968
4046
 
4969
4047
# Shared library suffix (normally ".so").
4970
 
shrext='$shrext'
 
4048
shrext_cmds='$shrext_cmds'
4971
4049
 
4972
4050
# Executable file suffix (normally "").
4973
4051
exeext="$exeext"
5211
4289
  # If there is no Makefile yet, we rely on a make rule to execute
5212
4290
  # `config.status --recheck' to rerun these tests and create the
5213
4291
  # libtool script then.
5214
 
  test -f Makefile && make "$ltmain"
 
4292
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
4293
  if test -f "$ltmain_in"; then
 
4294
    test -f Makefile && make "$ltmain"
 
4295
  fi
5215
4296
fi
5216
4297
])# AC_LIBTOOL_CONFIG
5217
4298
 
5568
4649
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5569
4650
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5570
4651
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5571
 
            ;; 
 
4652
            ;;
5572
4653
          cxx)
5573
4654
            # Compaq C++
5574
4655
            # Make sure the PIC flag is empty.  It appears that all Alpha
5593
4674
            ;;
5594
4675
        esac
5595
4676
        ;;
5596
 
      netbsd*)
 
4677
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5597
4678
        ;;
5598
4679
      osf3* | osf4* | osf5*)
5599
4680
        case $cc_basename in
5904
4985
  cygwin* | mingw*)
5905
4986
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5906
4987
  ;;
 
4988
  linux*)
 
4989
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
4990
  ;;
5907
4991
  *)
5908
4992
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5909
4993
  ;;
5928
5012
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5929
5013
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5930
5014
  _LT_AC_TAGVAR(module_cmds, $1)=
5931
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=  
 
5015
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5932
5016
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
5933
5017
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5934
5018
  # include_expsyms should be a list of space-separated symbols to be *always*
6033
5117
      fi
6034
5118
      ;;
6035
5119
 
6036
 
    netbsd*)
 
5120
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6037
5121
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6038
5122
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6039
5123
        wlarc=
6072
5156
      ;;
6073
5157
 
6074
5158
  linux*)
6075
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5159
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6076
5160
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6077
5161
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6078
5162
      supports_anon_versioning=no
6091
5175
      else
6092
5176
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6093
5177
      fi
 
5178
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6094
5179
    else
6095
5180
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6096
5181
    fi
6272
5357
      # Tell ltmain to make .lib files, not .a files.
6273
5358
      libext=lib
6274
5359
      # Tell ltmain to make .dll files, not .so files.
6275
 
      shrext=".dll"
 
5360
      shrext_cmds=".dll"
6276
5361
      # FIXME: Setting linknames here is a bad hack.
6277
5362
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6278
5363
      # The linker will automatically build a .lib file if we build a DLL.
6300
5385
            ;;
6301
5386
          10.*)
6302
5387
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6303
 
            ;;            
 
5388
            ;;
6304
5389
        esac
6305
5390
      fi
6306
5391
        ;;
6328
5413
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6329
5414
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6330
5415
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6331
 
    else  
 
5416
    else
6332
5417
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6333
 
    fi  
 
5418
    fi
6334
5419
      ;;
6335
5420
 
6336
5421
    dgux*)
6450
5535
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6451
5536
      ;;
6452
5537
 
6453
 
    netbsd*)
 
5538
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6454
5539
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6455
5540
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6456
5541
      else
6680
5765
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6681
5766
      $rm conftest*
6682
5767
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6683
 
  
 
5768
 
6684
5769
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6685
5770
        soname=conftest
6686
5771
        lib=conftest
6842
5927
AC_MSG_RESULT([$SED])
6843
5928
])
6844
5929
 
 
5930
#                                                        -*- Autoconf -*-
 
5931
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
 
5932
# Generated from amversion.in; do not edit by hand.
 
5933
 
 
5934
# This program is free software; you can redistribute it and/or modify
 
5935
# it under the terms of the GNU General Public License as published by
 
5936
# the Free Software Foundation; either version 2, or (at your option)
 
5937
# any later version.
 
5938
 
 
5939
# This program is distributed in the hope that it will be useful,
 
5940
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
5941
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
5942
# GNU General Public License for more details.
 
5943
 
 
5944
# You should have received a copy of the GNU General Public License
 
5945
# along with this program; if not, write to the Free Software
 
5946
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
5947
 
 
5948
# AM_AUTOMAKE_VERSION(VERSION)
 
5949
# ----------------------------
 
5950
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
5951
# generated from the m4 files accompanying Automake X.Y.
 
5952
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
5953
 
 
5954
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
5955
# -------------------------------
 
5956
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
5957
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
5958
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
5959
         [AM_AUTOMAKE_VERSION([1.9.2])])
 
5960
 
 
5961
# AM_AUX_DIR_EXPAND
 
5962
 
 
5963
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
5964
 
 
5965
# This program is free software; you can redistribute it and/or modify
 
5966
# it under the terms of the GNU General Public License as published by
 
5967
# the Free Software Foundation; either version 2, or (at your option)
 
5968
# any later version.
 
5969
 
 
5970
# This program is distributed in the hope that it will be useful,
 
5971
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
5972
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
5973
# GNU General Public License for more details.
 
5974
 
 
5975
# You should have received a copy of the GNU General Public License
 
5976
# along with this program; if not, write to the Free Software
 
5977
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
5978
# 02111-1307, USA.
 
5979
 
 
5980
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
5981
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
5982
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
5983
#
 
5984
# Of course, Automake must honor this variable whenever it calls a
 
5985
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
5986
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
5987
# depending on how configure is run.  This is pretty annoying, since
 
5988
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
5989
# source directory, any form will work fine, but in subdirectories a
 
5990
# relative path needs to be adjusted first.
 
5991
#
 
5992
# $ac_aux_dir/missing
 
5993
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
5994
# $top_srcdir/$ac_aux_dir/missing
 
5995
#    fails if $ac_aux_dir is absolute,
 
5996
#    fails when called from a subdirectory in a VPATH build with
 
5997
#          a relative $ac_aux_dir
 
5998
#
 
5999
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
6000
# are both prefixed by $srcdir.  In an in-source build this is usually
 
6001
# harmless because $srcdir is `.', but things will broke when you
 
6002
# start a VPATH build or use an absolute $srcdir.
 
6003
#
 
6004
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
6005
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
6006
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
6007
# and then we would define $MISSING as
 
6008
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
6009
# This will work as long as MISSING is not called from configure, because
 
6010
# unfortunately $(top_srcdir) has no meaning in configure.
 
6011
# However there are other variables, like CC, which are often used in
 
6012
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
6013
#
 
6014
# Another solution, used here, is to always expand $ac_aux_dir to an
 
6015
# absolute PATH.  The drawback is that using absolute paths prevent a
 
6016
# configured tree to be moved without reconfiguration.
 
6017
 
 
6018
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
6019
[dnl Rely on autoconf to set up CDPATH properly.
 
6020
AC_PREREQ([2.50])dnl
 
6021
# expand $ac_aux_dir to an absolute path
 
6022
am_aux_dir=`cd $ac_aux_dir && pwd`
 
6023
])
 
6024
 
 
6025
 
 
6026
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003
 
6027
# Free Software Foundation, Inc.
 
6028
 
 
6029
# This program is free software; you can redistribute it and/or modify
 
6030
# it under the terms of the GNU General Public License as published by
 
6031
# the Free Software Foundation; either version 2, or (at your option)
 
6032
# any later version.
 
6033
 
 
6034
# This program is distributed in the hope that it will be useful,
 
6035
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6036
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6037
# GNU General Public License for more details.
 
6038
 
 
6039
# You should have received a copy of the GNU General Public License
 
6040
# along with this program; if not, write to the Free Software
 
6041
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6042
# 02111-1307, USA.
 
6043
 
 
6044
# serial 3
 
6045
 
 
6046
# This was merged into AC_PROG_CC in Autoconf.
 
6047
 
 
6048
AU_DEFUN([AM_PROG_CC_STDC],
 
6049
[AC_PROG_CC
 
6050
AC_DIAGNOSE([obsolete], [$0:
 
6051
        your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
 
6052
        `ac_cv_prog_cc_stdc'.  Remove this warning and the assignment when
 
6053
        you adjust the code.  You can also remove the above call to
 
6054
        AC_PROG_CC if you already called it elsewhere.])
 
6055
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
6056
])
 
6057
AU_DEFUN([fp_PROG_CC_STDC])
 
6058
 
 
6059
# AM_CONDITIONAL                                              -*- Autoconf -*-
 
6060
 
 
6061
# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
 
6062
 
 
6063
# This program is free software; you can redistribute it and/or modify
 
6064
# it under the terms of the GNU General Public License as published by
 
6065
# the Free Software Foundation; either version 2, or (at your option)
 
6066
# any later version.
 
6067
 
 
6068
# This program is distributed in the hope that it will be useful,
 
6069
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6070
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6071
# GNU General Public License for more details.
 
6072
 
 
6073
# You should have received a copy of the GNU General Public License
 
6074
# along with this program; if not, write to the Free Software
 
6075
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6076
# 02111-1307, USA.
 
6077
 
 
6078
# serial 6
 
6079
 
 
6080
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
6081
# -------------------------------------
 
6082
# Define a conditional.
 
6083
AC_DEFUN([AM_CONDITIONAL],
 
6084
[AC_PREREQ(2.52)dnl
 
6085
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
6086
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
6087
AC_SUBST([$1_TRUE])
 
6088
AC_SUBST([$1_FALSE])
 
6089
if $2; then
 
6090
  $1_TRUE=
 
6091
  $1_FALSE='#'
 
6092
else
 
6093
  $1_TRUE='#'
 
6094
  $1_FALSE=
 
6095
fi
 
6096
AC_CONFIG_COMMANDS_PRE(
 
6097
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
6098
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
6099
Usually this means the macro was only invoked conditionally.]])
 
6100
fi])])
 
6101
 
 
6102
# serial 7                                              -*- Autoconf -*-
 
6103
 
 
6104
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
6105
# Free Software Foundation, Inc.
 
6106
 
 
6107
# This program is free software; you can redistribute it and/or modify
 
6108
# it under the terms of the GNU General Public License as published by
 
6109
# the Free Software Foundation; either version 2, or (at your option)
 
6110
# any later version.
 
6111
 
 
6112
# This program is distributed in the hope that it will be useful,
 
6113
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6114
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6115
# GNU General Public License for more details.
 
6116
 
 
6117
# You should have received a copy of the GNU General Public License
 
6118
# along with this program; if not, write to the Free Software
 
6119
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6120
# 02111-1307, USA.
 
6121
 
 
6122
 
 
6123
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
6124
# written in clear, in which case automake, when reading aclocal.m4,
 
6125
# will think it sees a *use*, and therefore will trigger all it's
 
6126
# C support machinery.  Also note that it means that autoscan, seeing
 
6127
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
6128
 
 
6129
 
 
6130
 
 
6131
# _AM_DEPENDENCIES(NAME)
 
6132
# ----------------------
 
6133
# See how the compiler implements dependency checking.
 
6134
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
6135
# We try a few techniques and use that to set a single cache variable.
 
6136
#
 
6137
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
6138
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
6139
# dependency, and given that the user is not expected to run this macro,
 
6140
# just rely on AC_PROG_CC.
 
6141
AC_DEFUN([_AM_DEPENDENCIES],
 
6142
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
6143
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
6144
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
6145
AC_REQUIRE([AM_DEP_TRACK])dnl
 
6146
 
 
6147
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
6148
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
6149
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6150
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
6151
                   [depcc="$$1"   am_compiler_list=])
 
6152
 
 
6153
AC_CACHE_CHECK([dependency style of $depcc],
 
6154
               [am_cv_$1_dependencies_compiler_type],
 
6155
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6156
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6157
  # making bogus files that we don't know about and never remove.  For
 
6158
  # instance it was reported that on HP-UX the gcc test will end up
 
6159
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6160
  # in D'.
 
6161
  mkdir conftest.dir
 
6162
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6163
  # using a relative directory.
 
6164
  cp "$am_depcomp" conftest.dir
 
6165
  cd conftest.dir
 
6166
  # We will build objects and dependencies in a subdirectory because
 
6167
  # it helps to detect inapplicable dependency modes.  For instance
 
6168
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6169
  # side effect of compilation, but ICC will put the dependencies in
 
6170
  # the current directory while Tru64 will put them in the object
 
6171
  # directory.
 
6172
  mkdir sub
 
6173
 
 
6174
  am_cv_$1_dependencies_compiler_type=none
 
6175
  if test "$am_compiler_list" = ""; then
 
6176
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
6177
  fi
 
6178
  for depmode in $am_compiler_list; do
 
6179
    # Setup a source with many dependencies, because some compilers
 
6180
    # like to wrap large dependency lists on column 80 (with \), and
 
6181
    # we should not choose a depcomp mode which is confused by this.
 
6182
    #
 
6183
    # We need to recreate these files for each test, as the compiler may
 
6184
    # overwrite some of them when testing with obscure command lines.
 
6185
    # This happens at least with the AIX C compiler.
 
6186
    : > sub/conftest.c
 
6187
    for i in 1 2 3 4 5 6; do
 
6188
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6189
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6190
      # Solaris 8's {/usr,}/bin/sh.
 
6191
      touch sub/conftst$i.h
 
6192
    done
 
6193
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6194
 
 
6195
    case $depmode in
 
6196
    nosideeffect)
 
6197
      # after this tag, mechanisms are not by side-effect, so they'll
 
6198
      # only be used when explicitly requested
 
6199
      if test "x$enable_dependency_tracking" = xyes; then
 
6200
        continue
 
6201
      else
 
6202
        break
 
6203
      fi
 
6204
      ;;
 
6205
    none) break ;;
 
6206
    esac
 
6207
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6208
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6209
    # handle `-M -o', and we need to detect this.
 
6210
    if depmode=$depmode \
 
6211
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6212
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6213
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6214
         >/dev/null 2>conftest.err &&
 
6215
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6216
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6217
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6218
      # icc doesn't choke on unknown options, it will just issue warnings
 
6219
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6220
      # that says an option was ignored or not supported.
 
6221
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6222
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6223
      # The diagnosis changed in icc 8.0:
 
6224
      #   icc: Command line remark: option '-MP' not supported
 
6225
      if (grep 'ignoring option' conftest.err ||
 
6226
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6227
        am_cv_$1_dependencies_compiler_type=$depmode
 
6228
        break
 
6229
      fi
 
6230
    fi
 
6231
  done
 
6232
 
 
6233
  cd ..
 
6234
  rm -rf conftest.dir
 
6235
else
 
6236
  am_cv_$1_dependencies_compiler_type=none
 
6237
fi
 
6238
])
 
6239
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
6240
AM_CONDITIONAL([am__fastdep$1], [
 
6241
  test "x$enable_dependency_tracking" != xno \
 
6242
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
6243
])
 
6244
 
 
6245
 
 
6246
# AM_SET_DEPDIR
 
6247
# -------------
 
6248
# Choose a directory name for dependency files.
 
6249
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
6250
AC_DEFUN([AM_SET_DEPDIR],
 
6251
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6252
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
6253
])
 
6254
 
 
6255
 
 
6256
# AM_DEP_TRACK
 
6257
# ------------
 
6258
AC_DEFUN([AM_DEP_TRACK],
 
6259
[AC_ARG_ENABLE(dependency-tracking,
 
6260
[  --disable-dependency-tracking  speeds up one-time build
 
6261
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
6262
if test "x$enable_dependency_tracking" != xno; then
 
6263
  am_depcomp="$ac_aux_dir/depcomp"
 
6264
  AMDEPBACKSLASH='\'
 
6265
fi
 
6266
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
6267
AC_SUBST([AMDEPBACKSLASH])
 
6268
])
 
6269
 
 
6270
# Generate code to set up dependency tracking.   -*- Autoconf -*-
 
6271
 
 
6272
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
6273
#   Free Software Foundation, Inc.
 
6274
 
 
6275
# This program is free software; you can redistribute it and/or modify
 
6276
# it under the terms of the GNU General Public License as published by
 
6277
# the Free Software Foundation; either version 2, or (at your option)
 
6278
# any later version.
 
6279
 
 
6280
# This program is distributed in the hope that it will be useful,
 
6281
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6282
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6283
# GNU General Public License for more details.
 
6284
 
 
6285
# You should have received a copy of the GNU General Public License
 
6286
# along with this program; if not, write to the Free Software
 
6287
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6288
# 02111-1307, USA.
 
6289
 
 
6290
#serial 2
 
6291
 
 
6292
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6293
# ------------------------------
 
6294
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6295
[for mf in $CONFIG_FILES; do
 
6296
  # Strip MF so we end up with the name of the file.
 
6297
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
6298
  # Check whether this is an Automake generated Makefile or not.
 
6299
  # We used to match only the files named `Makefile.in', but
 
6300
  # some people rename them; so instead we look at the file content.
 
6301
  # Grep'ing the first line is not enough: some people post-process
 
6302
  # each Makefile.in and add a new line on top of each file to say so.
 
6303
  # So let's grep whole file.
 
6304
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6305
    dirpart=`AS_DIRNAME("$mf")`
 
6306
  else
 
6307
    continue
 
6308
  fi
 
6309
  # Extract the definition of DEPDIR, am__include, and am__quote
 
6310
  # from the Makefile without running `make'.
 
6311
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
6312
  test -z "$DEPDIR" && continue
 
6313
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6314
  test -z "am__include" && continue
 
6315
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
6316
  # When using ansi2knr, U may be empty or an underscore; expand it
 
6317
  U=`sed -n 's/^U = //p' < "$mf"`
 
6318
  # Find all dependency output files, they are included files with
 
6319
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6320
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
6321
  # expansion.
 
6322
  for file in `sed -n "
 
6323
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
6324
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
6325
    # Make sure the directory exists.
 
6326
    test -f "$dirpart/$file" && continue
 
6327
    fdir=`AS_DIRNAME(["$file"])`
 
6328
    AS_MKDIR_P([$dirpart/$fdir])
 
6329
    # echo "creating $dirpart/$file"
 
6330
    echo '# dummy' > "$dirpart/$file"
 
6331
  done
 
6332
done
 
6333
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6334
 
 
6335
 
 
6336
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
6337
# -----------------------------
 
6338
# This macro should only be invoked once -- use via AC_REQUIRE.
 
6339
#
 
6340
# This code is only required when automatic dependency tracking
 
6341
# is enabled.  FIXME.  This creates each `.P' file that we will
 
6342
# need in order to bootstrap the dependency handling code.
 
6343
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6344
[AC_CONFIG_COMMANDS([depfiles],
 
6345
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6346
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
6347
])
 
6348
 
6845
6349
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
6846
6350
 
6847
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
 
6351
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6848
6352
 
6849
6353
# This program is free software; you can redistribute it and/or modify
6850
6354
# it under the terms of the GNU General Public License as published by
6861
6365
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6862
6366
# 02111-1307, USA.
6863
6367
 
6864
 
AC_PREREQ([2.52])
6865
 
 
6866
 
# serial 6
 
6368
# serial 7
6867
6369
 
6868
6370
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
6869
6371
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6870
6372
 
 
6373
# Do all the work for Automake.                            -*- Autoconf -*-
 
6374
 
 
6375
# This macro actually does too much some checks are only needed if
 
6376
# your package does certain things.  But this isn't really a big deal.
 
6377
 
 
6378
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 
6379
# Free Software Foundation, Inc.
 
6380
 
 
6381
# This program is free software; you can redistribute it and/or modify
 
6382
# it under the terms of the GNU General Public License as published by
 
6383
# the Free Software Foundation; either version 2, or (at your option)
 
6384
# any later version.
 
6385
 
 
6386
# This program is distributed in the hope that it will be useful,
 
6387
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6388
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6389
# GNU General Public License for more details.
 
6390
 
 
6391
# You should have received a copy of the GNU General Public License
 
6392
# along with this program; if not, write to the Free Software
 
6393
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6394
# 02111-1307, USA.
 
6395
 
 
6396
# serial 11
 
6397
 
 
6398
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
6399
# AM_INIT_AUTOMAKE([OPTIONS])
 
6400
# -----------------------------------------------
 
6401
# The call with PACKAGE and VERSION arguments is the old style
 
6402
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
6403
# and VERSION should now be passed to AC_INIT and removed from
 
6404
# the call to AM_INIT_AUTOMAKE.
 
6405
# We support both call styles for the transition.  After
 
6406
# the next Automake release, Autoconf can make the AC_INIT
 
6407
# arguments mandatory, and then we can depend on a new Autoconf
 
6408
# release and drop the old call support.
 
6409
AC_DEFUN([AM_INIT_AUTOMAKE],
 
6410
[AC_PREREQ([2.58])dnl
 
6411
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
6412
dnl the ones we care about.
 
6413
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
6414
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
6415
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
6416
# test to see if srcdir already configured
 
6417
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
6418
   test -f $srcdir/config.status; then
 
6419
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6420
fi
 
6421
 
 
6422
# test whether we have cygpath
 
6423
if test -z "$CYGPATH_W"; then
 
6424
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
6425
    CYGPATH_W='cygpath -w'
 
6426
  else
 
6427
    CYGPATH_W=echo
 
6428
  fi
 
6429
fi
 
6430
AC_SUBST([CYGPATH_W])
 
6431
 
 
6432
# Define the identity of the package.
 
6433
dnl Distinguish between old-style and new-style calls.
 
6434
m4_ifval([$2],
 
6435
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
6436
 AC_SUBST([PACKAGE], [$1])dnl
 
6437
 AC_SUBST([VERSION], [$2])],
 
6438
[_AM_SET_OPTIONS([$1])dnl
 
6439
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
6440
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
6441
 
 
6442
_AM_IF_OPTION([no-define],,
 
6443
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
6444
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
6445
 
 
6446
# Some tools Automake needs.
 
6447
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
6448
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
6449
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
6450
AM_MISSING_PROG(AUTOCONF, autoconf)
 
6451
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
6452
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
6453
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
6454
AM_PROG_INSTALL_SH
 
6455
AM_PROG_INSTALL_STRIP
 
6456
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
6457
# We need awk for the "check" target.  The system "awk" is bad on
 
6458
# some platforms.
 
6459
AC_REQUIRE([AC_PROG_AWK])dnl
 
6460
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
6461
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6462
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
6463
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
6464
                             [_AM_PROG_TAR([v7])])])
 
6465
_AM_IF_OPTION([no-dependencies],,
 
6466
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
6467
                  [_AM_DEPENDENCIES(CC)],
 
6468
                  [define([AC_PROG_CC],
 
6469
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
6470
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
6471
                  [_AM_DEPENDENCIES(CXX)],
 
6472
                  [define([AC_PROG_CXX],
 
6473
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
6474
])
 
6475
])
 
6476
 
 
6477
 
 
6478
# When config.status generates a header, we must update the stamp-h file.
 
6479
# This file resides in the same directory as the config header
 
6480
# that is generated.  The stamp files are numbered to have different names.
 
6481
 
 
6482
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
6483
# loop where config.status creates the headers, so we can generate
 
6484
# our stamp files there.
 
6485
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
6486
[# Compute $1's index in $config_headers.
 
6487
_am_stamp_count=1
 
6488
for _am_header in $config_headers :; do
 
6489
  case $_am_header in
 
6490
    $1 | $1:* )
 
6491
      break ;;
 
6492
    * )
 
6493
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
6494
  esac
 
6495
done
 
6496
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
6497
 
 
6498
# AM_PROG_INSTALL_SH
 
6499
# ------------------
 
6500
# Define $install_sh.
 
6501
 
 
6502
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
6503
 
 
6504
# This program is free software; you can redistribute it and/or modify
 
6505
# it under the terms of the GNU General Public License as published by
 
6506
# the Free Software Foundation; either version 2, or (at your option)
 
6507
# any later version.
 
6508
 
 
6509
# This program is distributed in the hope that it will be useful,
 
6510
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6511
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6512
# GNU General Public License for more details.
 
6513
 
 
6514
# You should have received a copy of the GNU General Public License
 
6515
# along with this program; if not, write to the Free Software
 
6516
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6517
# 02111-1307, USA.
 
6518
 
 
6519
AC_DEFUN([AM_PROG_INSTALL_SH],
 
6520
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6521
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
6522
AC_SUBST(install_sh)])
 
6523
 
 
6524
#                                                          -*- Autoconf -*-
 
6525
# Copyright (C) 2003  Free Software Foundation, Inc.
 
6526
 
 
6527
# This program is free software; you can redistribute it and/or modify
 
6528
# it under the terms of the GNU General Public License as published by
 
6529
# the Free Software Foundation; either version 2, or (at your option)
 
6530
# any later version.
 
6531
 
 
6532
# This program is distributed in the hope that it will be useful,
 
6533
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6534
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6535
# GNU General Public License for more details.
 
6536
 
 
6537
# You should have received a copy of the GNU General Public License
 
6538
# along with this program; if not, write to the Free Software
 
6539
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6540
# 02111-1307, USA.
 
6541
 
 
6542
# serial 1
 
6543
 
 
6544
# Check whether the underlying file-system supports filenames
 
6545
# with a leading dot.  For instance MS-DOS doesn't.
 
6546
AC_DEFUN([AM_SET_LEADING_DOT],
 
6547
[rm -rf .tst 2>/dev/null
 
6548
mkdir .tst 2>/dev/null
 
6549
if test -d .tst; then
 
6550
  am__leading_dot=.
 
6551
else
 
6552
  am__leading_dot=_
 
6553
fi
 
6554
rmdir .tst 2>/dev/null
 
6555
AC_SUBST([am__leading_dot])])
 
6556
 
 
6557
 
 
6558
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
 
6559
# Free Software Foundation, Inc.
 
6560
 
 
6561
# This program is free software; you can redistribute it and/or modify
 
6562
# it under the terms of the GNU General Public License as published by
 
6563
# the Free Software Foundation; either version 2, or (at your option)
 
6564
# any later version.
 
6565
 
 
6566
# This program is distributed in the hope that it will be useful,
 
6567
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6568
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6569
# GNU General Public License for more details.
 
6570
 
 
6571
# You should have received a copy of the GNU General Public License
 
6572
# along with this program; if not, write to the Free Software
 
6573
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6574
# 02111-1307, USA.
 
6575
 
 
6576
# serial 4
 
6577
 
 
6578
# AM_PROG_LEX
 
6579
# -----------
 
6580
# Autoconf leaves LEX=: if lex or flex can't be found.  Change that to a
 
6581
# "missing" invocation, for better error output.
 
6582
AC_DEFUN([AM_PROG_LEX],
 
6583
[AC_PREREQ(2.50)dnl
 
6584
AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
 
6585
AC_REQUIRE([AC_PROG_LEX])dnl
 
6586
if test "$LEX" = :; then
 
6587
  LEX=${am_missing_run}flex
 
6588
fi])
 
6589
 
6871
6590
# Add --enable-maintainer-mode option to configure.
6872
6591
# From Jim Meyering
6873
6592
 
6874
 
# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
 
6593
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
 
6594
# Free Software Foundation, Inc.
6875
6595
 
6876
6596
# This program is free software; you can redistribute it and/or modify
6877
6597
# it under the terms of the GNU General Public License as published by
6888
6608
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6889
6609
# 02111-1307, USA.
6890
6610
 
6891
 
# serial 2
 
6611
# serial 3
6892
6612
 
6893
6613
AC_DEFUN([AM_MAINTAINER_MODE],
6894
6614
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
6895
6615
  dnl maintainer-mode is disabled by default
6896
6616
  AC_ARG_ENABLE(maintainer-mode,
6897
 
[  --enable-maintainer-mode enable make rules and dependencies not useful
6898
 
                          (and sometimes confusing) to the casual installer],
 
6617
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
6618
                          (and sometimes confusing) to the casual installer],
6899
6619
      USE_MAINTAINER_MODE=$enableval,
6900
6620
      USE_MAINTAINER_MODE=no)
6901
6621
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
6907
6627
 
6908
6628
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
6909
6629
 
 
6630
# Check to see how 'make' treats includes.      -*- Autoconf -*-
6910
6631
 
6911
 
# Copyright 1996, 1997, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
 
6632
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6912
6633
 
6913
6634
# This program is free software; you can redistribute it and/or modify
6914
6635
# it under the terms of the GNU General Public License as published by
6927
6648
 
6928
6649
# serial 2
6929
6650
 
6930
 
# @defmac AC_PROG_CC_STDC
6931
 
# @maindex PROG_CC_STDC
6932
 
# @ovindex CC
6933
 
# If the C compiler in not in ANSI C mode by default, try to add an option
6934
 
# to output variable @code{CC} to make it so.  This macro tries various
6935
 
# options that select ANSI C on some system or another.  It considers the
6936
 
# compiler to be in ANSI C mode if it handles function prototypes correctly.
6937
 
#
6938
 
# If you use this macro, you should check after calling it whether the C
6939
 
# compiler has been set to accept ANSI C; if not, the shell variable
6940
 
# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
6941
 
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
6942
 
# program @code{ansi2knr}, which comes with Ghostscript.
6943
 
# @end defmac
6944
 
 
6945
 
AC_DEFUN([AM_PROG_CC_STDC],
6946
 
[AC_REQUIRE([AC_PROG_CC])
6947
 
AC_BEFORE([$0], [AC_C_INLINE])
6948
 
AC_BEFORE([$0], [AC_C_CONST])
6949
 
dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
6950
 
dnl a magic option to avoid problems with ANSI preprocessor commands
6951
 
dnl like #elif.
6952
 
dnl FIXME: can't do this because then AC_AIX won't work due to a
6953
 
dnl circular dependency.
6954
 
dnl AC_BEFORE([$0], [AC_PROG_CPP])
6955
 
AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
6956
 
AC_CACHE_VAL(am_cv_prog_cc_stdc,
6957
 
[am_cv_prog_cc_stdc=no
6958
 
ac_save_CC="$CC"
6959
 
# Don't try gcc -ansi; that turns off useful extensions and
6960
 
# breaks some systems' header files.
6961
 
# AIX                   -qlanglvl=ansi
6962
 
# Ultrix and OSF/1      -std1
6963
 
# HP-UX 10.20 and later -Ae
6964
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
6965
 
# SVR4                  -Xc -D__EXTENSIONS__
6966
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6967
 
do
6968
 
  CC="$ac_save_CC $ac_arg"
6969
 
  AC_TRY_COMPILE(
6970
 
[#include <stdarg.h>
6971
 
#include <stdio.h>
6972
 
#include <sys/types.h>
6973
 
#include <sys/stat.h>
6974
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6975
 
struct buf { int x; };
6976
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
6977
 
static char *e (p, i)
6978
 
     char **p;
6979
 
     int i;
6980
 
{
6981
 
  return p[i];
6982
 
}
6983
 
static char *f (char * (*g) (char **, int), char **p, ...)
6984
 
{
6985
 
  char *s;
6986
 
  va_list v;
6987
 
  va_start (v,p);
6988
 
  s = g (p, va_arg (v,int));
6989
 
  va_end (v);
6990
 
  return s;
6991
 
}
6992
 
int test (int i, double x);
6993
 
struct s1 {int (*f) (int a);};
6994
 
struct s2 {int (*f) (double a);};
6995
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6996
 
int argc;
6997
 
char **argv;
6998
 
], [
6999
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7000
 
],
7001
 
[am_cv_prog_cc_stdc="$ac_arg"; break])
7002
 
done
7003
 
CC="$ac_save_CC"
7004
 
])
7005
 
if test -z "$am_cv_prog_cc_stdc"; then
7006
 
  AC_MSG_RESULT([none needed])
7007
 
else
7008
 
  AC_MSG_RESULT([$am_cv_prog_cc_stdc])
7009
 
fi
7010
 
case "x$am_cv_prog_cc_stdc" in
7011
 
  x|xno) ;;
7012
 
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
7013
 
esac
7014
 
])
7015
 
 
7016
 
AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
7017
 
 
7018
 
# isc-posix.m4 serial 2 (gettext-0.11.2)
7019
 
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
7020
 
dnl This file is free software, distributed under the terms of the GNU
7021
 
dnl General Public License.  As a special exception to the GNU General
7022
 
dnl Public License, this file may be distributed as part of a program
7023
 
dnl that contains a configuration script generated by Autoconf, under
7024
 
dnl the same distribution terms as the rest of that program.
7025
 
 
7026
 
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
7027
 
 
7028
 
# This test replaces the one in autoconf.
7029
 
# Currently this macro should have the same name as the autoconf macro
7030
 
# because gettext's gettext.m4 (distributed in the automake package)
7031
 
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
7032
 
# give these diagnostics:
7033
 
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
7034
 
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
7035
 
 
7036
 
undefine([AC_ISC_POSIX])
7037
 
 
7038
 
AC_DEFUN([AC_ISC_POSIX],
7039
 
  [
7040
 
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
7041
 
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
7042
 
  ]
7043
 
)
7044
 
 
7045
 
 
7046
 
# Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
6651
# AM_MAKE_INCLUDE()
 
6652
# -----------------
 
6653
# Check to see how make treats includes.
 
6654
AC_DEFUN([AM_MAKE_INCLUDE],
 
6655
[am_make=${MAKE-make}
 
6656
cat > confinc << 'END'
 
6657
am__doit:
 
6658
        @echo done
 
6659
.PHONY: am__doit
 
6660
END
 
6661
# If we don't find an include directive, just comment out the code.
 
6662
AC_MSG_CHECKING([for style of include used by $am_make])
 
6663
am__include="#"
 
6664
am__quote=
 
6665
_am_result=none
 
6666
# First try GNU make style include.
 
6667
echo "include confinc" > confmf
 
6668
# We grep out `Entering directory' and `Leaving directory'
 
6669
# messages which can occur if `w' ends up in MAKEFLAGS.
 
6670
# In particular we don't look at `^make:' because GNU make might
 
6671
# be invoked under some other name (usually "gmake"), in which
 
6672
# case it prints its new name instead of `make'.
 
6673
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
6674
   am__include=include
 
6675
   am__quote=
 
6676
   _am_result=GNU
 
6677
fi
 
6678
# Now try BSD make style include.
 
6679
if test "$am__include" = "#"; then
 
6680
   echo '.include "confinc"' > confmf
 
6681
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
6682
      am__include=.include
 
6683
      am__quote="\""
 
6684
      _am_result=BSD
 
6685
   fi
 
6686
fi
 
6687
AC_SUBST([am__include])
 
6688
AC_SUBST([am__quote])
 
6689
AC_MSG_RESULT([$_am_result])
 
6690
rm -f confinc confmf
 
6691
])
 
6692
 
 
6693
#  -*- Autoconf -*-
 
6694
 
 
6695
 
 
6696
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
7047
6697
 
7048
6698
# This program is free software; you can redistribute it and/or modify
7049
6699
# it under the terms of the GNU General Public License as published by
7062
6712
 
7063
6713
# serial 3
7064
6714
 
7065
 
AC_PREREQ(2.50)
7066
 
 
7067
 
# AM_PROG_LEX
7068
 
# -----------
7069
 
# Autoconf leaves LEX=: if lex or flex can't be found.  Change that to a
7070
 
# "missing" invocation, for better error output.
7071
 
AC_DEFUN([AM_PROG_LEX],
7072
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
7073
 
AC_REQUIRE([AC_PROG_LEX])dnl
7074
 
if test "$LEX" = :; then
7075
 
  LEX=${am_missing_run}flex
7076
 
fi])
7077
 
 
7078
 
 
7079
 
# Copyright 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
7080
 
 
7081
 
# This program is free software; you can redistribute it and/or modify
7082
 
# it under the terms of the GNU General Public License as published by
7083
 
# the Free Software Foundation; either version 2, or (at your option)
7084
 
# any later version.
7085
 
 
7086
 
# This program is distributed in the hope that it will be useful,
7087
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7088
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7089
 
# GNU General Public License for more details.
7090
 
 
7091
 
# You should have received a copy of the GNU General Public License
7092
 
# along with this program; if not, write to the Free Software
7093
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7094
 
# 02111-1307, USA.
7095
 
 
7096
 
# AM_PATH_PYTHON([MINIMUM-VERSION])
 
6715
# AM_MISSING_PROG(NAME, PROGRAM)
 
6716
# ------------------------------
 
6717
AC_DEFUN([AM_MISSING_PROG],
 
6718
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
6719
$1=${$1-"${am_missing_run}$2"}
 
6720
AC_SUBST($1)])
 
6721
 
 
6722
 
 
6723
# AM_MISSING_HAS_RUN
 
6724
# ------------------
 
6725
# Define MISSING if not defined so far and test if it supports --run.
 
6726
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
6727
AC_DEFUN([AM_MISSING_HAS_RUN],
 
6728
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6729
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
6730
# Use eval to expand $SHELL
 
6731
if eval "$MISSING --run true"; then
 
6732
  am_missing_run="$MISSING --run "
 
6733
else
 
6734
  am_missing_run=
 
6735
  AC_MSG_WARN([`missing' script is too old or missing])
 
6736
fi
 
6737
])
 
6738
 
 
6739
# AM_PROG_MKDIR_P
 
6740
# ---------------
 
6741
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
6742
 
 
6743
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 
6744
 
 
6745
# This program is free software; you can redistribute it and/or modify
 
6746
# it under the terms of the GNU General Public License as published by
 
6747
# the Free Software Foundation; either version 2, or (at your option)
 
6748
# any later version.
 
6749
 
 
6750
# This program is distributed in the hope that it will be useful,
 
6751
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6752
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6753
# GNU General Public License for more details.
 
6754
 
 
6755
# You should have received a copy of the GNU General Public License
 
6756
# along with this program; if not, write to the Free Software
 
6757
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6758
# 02111-1307, USA.
 
6759
 
 
6760
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
6761
# created by `make install' are always world readable, even if the
 
6762
# installer happens to have an overly restrictive umask (e.g. 077).
 
6763
# This was a mistake.  There are at least two reasons why we must not
 
6764
# use `-m 0755':
 
6765
#   - it causes special bits like SGID to be ignored,
 
6766
#   - it may be too restrictive (some setups expect 775 directories).
 
6767
#
 
6768
# Do not use -m 0755 and let people choose whatever they expect by
 
6769
# setting umask.
 
6770
#
 
6771
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
6772
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
6773
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
6774
# concurrently, both version can detect that a/ is missing, but only
 
6775
# one can create it and the other will error out.  Consequently we
 
6776
# restrict ourselves to GNU make (using the --version option ensures
 
6777
# this.)
 
6778
AC_DEFUN([AM_PROG_MKDIR_P],
 
6779
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
6780
  # We used to keeping the `.' as first argument, in order to
 
6781
  # allow $(mkdir_p) to be used without argument.  As in
 
6782
  #   $(mkdir_p) $(somedir)
 
6783
  # where $(somedir) is conditionally defined.  However this is wrong
 
6784
  # for two reasons:
 
6785
  #  1. if the package is installed by a user who cannot write `.'
 
6786
  #     make install will fail,
 
6787
  #  2. the above comment should most certainly read
 
6788
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
6789
  #     so it does not work when $(somedir) is undefined and
 
6790
  #     $(DESTDIR) is not.
 
6791
  #  To support the latter case, we have to write
 
6792
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
6793
  #  so the `.' trick is pointless.
 
6794
  mkdir_p='mkdir -p --'
 
6795
else
 
6796
  # On NextStep and OpenStep, the `mkdir' command does not
 
6797
  # recognize any option.  It will interpret all options as
 
6798
  # directories to create, and then abort because `.' already
 
6799
  # exists.
 
6800
  for d in ./-p ./--version;
 
6801
  do
 
6802
    test -d $d && rmdir $d
 
6803
  done
 
6804
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
6805
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
6806
    mkdir_p='$(mkinstalldirs)'
 
6807
  else
 
6808
    mkdir_p='$(install_sh) -d'
 
6809
  fi
 
6810
fi
 
6811
AC_SUBST([mkdir_p])])
 
6812
 
 
6813
# Helper functions for option handling.                    -*- Autoconf -*-
 
6814
 
 
6815
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
 
6816
 
 
6817
# This program is free software; you can redistribute it and/or modify
 
6818
# it under the terms of the GNU General Public License as published by
 
6819
# the Free Software Foundation; either version 2, or (at your option)
 
6820
# any later version.
 
6821
 
 
6822
# This program is distributed in the hope that it will be useful,
 
6823
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6824
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6825
# GNU General Public License for more details.
 
6826
 
 
6827
# You should have received a copy of the GNU General Public License
 
6828
# along with this program; if not, write to the Free Software
 
6829
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6830
# 02111-1307, USA.
 
6831
 
 
6832
# serial 2
 
6833
 
 
6834
# _AM_MANGLE_OPTION(NAME)
 
6835
# -----------------------
 
6836
AC_DEFUN([_AM_MANGLE_OPTION],
 
6837
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
6838
 
 
6839
# _AM_SET_OPTION(NAME)
 
6840
# ------------------------------
 
6841
# Set option NAME.  Presently that only means defining a flag for this option.
 
6842
AC_DEFUN([_AM_SET_OPTION],
 
6843
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
6844
 
 
6845
# _AM_SET_OPTIONS(OPTIONS)
 
6846
# ----------------------------------
 
6847
# OPTIONS is a space-separated list of Automake options.
 
6848
AC_DEFUN([_AM_SET_OPTIONS],
 
6849
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
6850
 
 
6851
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
6852
# -------------------------------------------
 
6853
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
6854
AC_DEFUN([_AM_IF_OPTION],
 
6855
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
6856
 
 
6857
 
 
6858
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
6859
# Free Software Foundation, Inc.
 
6860
 
 
6861
# This program is free software; you can redistribute it and/or modify
 
6862
# it under the terms of the GNU General Public License as published by
 
6863
# the Free Software Foundation; either version 2, or (at your option)
 
6864
# any later version.
 
6865
 
 
6866
# This program is distributed in the hope that it will be useful,
 
6867
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6868
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6869
# GNU General Public License for more details.
 
6870
 
 
6871
# You should have received a copy of the GNU General Public License
 
6872
# along with this program; if not, write to the Free Software
 
6873
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6874
# 02111-1307, USA.
 
6875
 
 
6876
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7097
6877
 
7098
6878
# Adds support for distributing Python modules and packages.  To
7099
6879
# install modules, copy them to $(pythondir), using the python_PYTHON
7111
6891
# environment variable, or create a .pth file (see the python
7112
6892
# documentation for details).
7113
6893
 
7114
 
# If the MINIUMUM-VERSION argument is passed, AM_PATH_PYTHON will
 
6894
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
7115
6895
# cause an error if the version of python installed on the system
7116
6896
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
7117
6897
# numbers and dots only.
7123
6903
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
7124
6904
  dnl in 1.5.
7125
6905
  m4_define([_AM_PYTHON_INTERPRETER_LIST],
7126
 
            [python python2 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5])
 
6906
            [python python2 python2.4 python2.3 python2.2 dnl
 
6907
python2.1 python2.0 python1.6 python1.5])
7127
6908
 
7128
6909
  m4_if([$1],[],[
7129
6910
    dnl No version check is needed.
7130
6911
    # Find any Python interpreter.
7131
 
    AC_PATH_PROG([PYTHON], _AM_PYTHON_INTERPRETER_LIST)
 
6912
    if test -z "$PYTHON"; then
 
6913
      PYTHON=:
 
6914
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST)
 
6915
    fi
7132
6916
    am_display_PYTHON=python
7133
6917
  ], [
7134
6918
    dnl A version check is needed.
7138
6922
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
7139
6923
                              [AC_MSG_RESULT(yes)],
7140
6924
                              [AC_MSG_ERROR(too old)])
 
6925
      am_display_PYTHON=$PYTHON
7141
6926
    else
7142
6927
      # Otherwise, try each interpreter until we find one that satisfies
7143
6928
      # VERSION.
7144
6929
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
7145
6930
        [am_cv_pathless_PYTHON],[
7146
 
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST : ; do
7147
 
          if test "$am_cv_pathless_PYTHON" = : ; then
7148
 
            AC_MSG_ERROR([no suitable Python interpreter found])
7149
 
          fi
7150
 
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
7151
 
        done])
 
6931
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
 
6932
          test "$am_cv_pathless_PYTHON" = none && break
 
6933
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
 
6934
        done])
7152
6935
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7153
 
      AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 
6936
      if test "$am_cv_pathless_PYTHON" = none; then
 
6937
        PYTHON=:
 
6938
      else
 
6939
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 
6940
      fi
7154
6941
      am_display_PYTHON=$am_cv_pathless_PYTHON
7155
6942
    fi
7156
6943
  ])
7157
6944
 
 
6945
  if test "$PYTHON" = :; then
 
6946
  dnl Run any user-specified action, or abort.
 
6947
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
 
6948
  else
 
6949
 
7158
6950
  dnl Query Python for its version number.  Getting [:3] seems to be
7159
6951
  dnl the best way to do this; it's what "site.py" does in the standard
7160
6952
  dnl library.
7183
6975
 
7184
6976
  dnl pythondir -- where to install python scripts.  This is the
7185
6977
  dnl   site-packages directory, not the python standard library
7186
 
  dnl   directory like in previous automake betas.  This behaviour
 
6978
  dnl   directory like in previous automake betas.  This behavior
7187
6979
  dnl   is more consistent with lispdir.m4 for example.
7188
6980
  dnl Query distutils for this directory.  distutils does not exist in
7189
6981
  dnl Python 1.5, so we fall back to the hardcoded directory if it
7214
7006
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
7215
7007
 
7216
7008
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
 
7009
 
 
7010
  dnl Run any user-specified action.
 
7011
  $2
 
7012
  fi
 
7013
 
7217
7014
])
7218
7015
 
7219
7016
 
7221
7018
# ---------------------------------------------------------------------------
7222
7019
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
7223
7020
# Run ACTION-IF-FALSE otherwise.
7224
 
# This test uses sys.hexversion instead of the string equivalant (first
 
7021
# This test uses sys.hexversion instead of the string equivalent (first
7225
7022
# word of sys.version), in order to cope with versions such as 2.2c1.
7226
7023
# hexversion has been introduced in Python 1.5.2; it's probably not
7227
7024
# worth to support older versions (1.5.1 was released on October 31, 1998).
7235
7032
sys.exit(sys.hexversion < minverhex)"
7236
7033
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
7237
7034
 
7238
 
# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
7239
 
 
7240
 
# This program is free software; you can redistribute it and/or modify
7241
 
# it under the terms of the GNU General Public License as published by
7242
 
# the Free Software Foundation; either version 2, or (at your option)
7243
 
# any later version.
7244
 
 
7245
 
# This program is distributed in the hope that it will be useful,
7246
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7247
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7248
 
# GNU General Public License for more details.
7249
 
 
7250
 
# You should have received a copy of the GNU General Public License
7251
 
# along with this program; if not, write to the Free Software
7252
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7253
 
# 02111-1307, USA.
7254
 
 
7255
 
# AM_RUN_LOG(COMMAND)
7256
 
# -------------------
7257
 
# Run COMMAND, save the exit status in ac_status, and log it.
7258
 
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
7259
 
AC_DEFUN([AM_RUN_LOG],
7260
 
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
7261
 
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
7262
 
   ac_status=$?
7263
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
7264
 
   (exit $ac_status); }])
7265
 
 
7266
 
dnl a macro to check for ability to create python extensions
7267
 
dnl  AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
7268
 
dnl function also defines PYTHON_INCLUDES
7269
 
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
7270
 
[AC_REQUIRE([AM_PATH_PYTHON])
7271
 
AC_MSG_CHECKING(for headers required to compile python extensions)
7272
 
dnl deduce PYTHON_INCLUDES
7273
 
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
7274
 
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
7275
 
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
7276
 
if test "$py_prefix" != "$py_exec_prefix"; then
7277
 
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
7278
 
fi
7279
 
AC_SUBST(PYTHON_INCLUDES)
7280
 
dnl check if the headers exist:
7281
 
save_CPPFLAGS="$CPPFLAGS"
7282
 
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
7283
 
AC_TRY_CPP([#include <Python.h>],dnl
7284
 
[AC_MSG_RESULT(found)
7285
 
$1],dnl
7286
 
[AC_MSG_RESULT(not found)
7287
 
$2])
7288
 
CPPFLAGS="$save_CPPFLAGS"
7289
 
])
7290
 
 
7291
 
dnl as-compiler-flag.m4 0.0.1
7292
 
dnl autostars m4 macro for detection of compiler flags
7293
 
dnl
7294
 
dnl ds@schleef.org
7295
 
 
7296
 
AC_DEFUN(AS_COMPILER_FLAG,
7297
 
[
7298
 
  AC_MSG_CHECKING(to see if compiler understands $1)
7299
 
 
7300
 
  save_CFLAGS="$CFLAGS"
7301
 
  CFLAGS="$CFLAGS $1"
7302
 
 
7303
 
  AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
7304
 
  CFLAGS="$save_CFLAGS"
7305
 
 
7306
 
  if test "X$flag_ok" = Xyes; then
7307
 
    $2
7308
 
  else
7309
 
    $3
 
7035
#
 
7036
# Check to make sure that the build environment is sane.
 
7037
#
 
7038
 
 
7039
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
7040
 
 
7041
# This program is free software; you can redistribute it and/or modify
 
7042
# it under the terms of the GNU General Public License as published by
 
7043
# the Free Software Foundation; either version 2, or (at your option)
 
7044
# any later version.
 
7045
 
 
7046
# This program is distributed in the hope that it will be useful,
 
7047
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7048
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7049
# GNU General Public License for more details.
 
7050
 
 
7051
# You should have received a copy of the GNU General Public License
 
7052
# along with this program; if not, write to the Free Software
 
7053
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7054
# 02111-1307, USA.
 
7055
 
 
7056
# serial 3
 
7057
 
 
7058
# AM_SANITY_CHECK
 
7059
# ---------------
 
7060
AC_DEFUN([AM_SANITY_CHECK],
 
7061
[AC_MSG_CHECKING([whether build environment is sane])
 
7062
# Just in case
 
7063
sleep 1
 
7064
echo timestamp > conftest.file
 
7065
# Do `set' in a subshell so we don't clobber the current shell's
 
7066
# arguments.  Must try -L first in case configure is actually a
 
7067
# symlink; some systems play weird games with the mod time of symlinks
 
7068
# (eg FreeBSD returns the mod time of the symlink's containing
 
7069
# directory).
 
7070
if (
 
7071
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
7072
   if test "$[*]" = "X"; then
 
7073
      # -L didn't work.
 
7074
      set X `ls -t $srcdir/configure conftest.file`
 
7075
   fi
 
7076
   rm -f conftest.file
 
7077
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
7078
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
7079
 
 
7080
      # If neither matched, then we have a broken ls.  This can happen
 
7081
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
7082
      # broken ls alias from the environment.  This has actually
 
7083
      # happened.  Such a system could not be considered "sane".
 
7084
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
7085
alias in your environment])
 
7086
   fi
 
7087
 
 
7088
   test "$[2]" = conftest.file
 
7089
   )
 
7090
then
 
7091
   # Ok.
 
7092
   :
 
7093
else
 
7094
   AC_MSG_ERROR([newly created file is older than distributed files!
 
7095
Check your system clock])
 
7096
fi
 
7097
AC_MSG_RESULT(yes)])
 
7098
 
 
7099
# AM_PROG_INSTALL_STRIP
 
7100
 
 
7101
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
7102
 
 
7103
# This program is free software; you can redistribute it and/or modify
 
7104
# it under the terms of the GNU General Public License as published by
 
7105
# the Free Software Foundation; either version 2, or (at your option)
 
7106
# any later version.
 
7107
 
 
7108
# This program is distributed in the hope that it will be useful,
 
7109
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7110
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7111
# GNU General Public License for more details.
 
7112
 
 
7113
# You should have received a copy of the GNU General Public License
 
7114
# along with this program; if not, write to the Free Software
 
7115
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7116
# 02111-1307, USA.
 
7117
 
 
7118
# One issue with vendor `install' (even GNU) is that you can't
 
7119
# specify the program used to strip binaries.  This is especially
 
7120
# annoying in cross-compiling environments, where the build's strip
 
7121
# is unlikely to handle the host's binaries.
 
7122
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
7123
# always use install-sh in `make install-strip', and initialize
 
7124
# STRIPPROG with the value of the STRIP variable (set by the user).
 
7125
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
7126
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
7127
# Installed binaries are usually stripped using `strip' when the user
 
7128
# run `make install-strip'.  However `strip' might not be the right
 
7129
# tool to use in cross-compilation environments, therefore Automake
 
7130
# will honor the `STRIP' environment variable to overrule this program.
 
7131
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
7132
if test "$cross_compiling" != no; then
 
7133
  AC_CHECK_TOOL([STRIP], [strip], :)
 
7134
fi
 
7135
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7136
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
7137
 
 
7138
# Check how to create a tarball.                            -*- Autoconf -*-
 
7139
 
 
7140
# Copyright (C) 2004  Free Software Foundation, Inc.
 
7141
 
 
7142
# This program is free software; you can redistribute it and/or modify
 
7143
# it under the terms of the GNU General Public License as published by
 
7144
# the Free Software Foundation; either version 2, or (at your option)
 
7145
# any later version.
 
7146
 
 
7147
# This program is distributed in the hope that it will be useful,
 
7148
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
7149
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
7150
# GNU General Public License for more details.
 
7151
 
 
7152
# You should have received a copy of the GNU General Public License
 
7153
# along with this program; if not, write to the Free Software
 
7154
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7155
# 02111-1307, USA.
 
7156
 
 
7157
# serial 1
 
7158
 
 
7159
 
 
7160
# _AM_PROG_TAR(FORMAT)
 
7161
# --------------------
 
7162
# Check how to create a tarball in format FORMAT.
 
7163
# FORMAT should be one of `v7', `ustar', or `pax'.
 
7164
#
 
7165
# Substitute a variable $(am__tar) that is a command
 
7166
# writing to stdout a FORMAT-tarball containing the directory
 
7167
# $tardir.
 
7168
#     tardir=directory && $(am__tar) > result.tar
 
7169
#
 
7170
# Substitute a variable $(am__untar) that extract such
 
7171
# a tarball read from stdin.
 
7172
#     $(am__untar) < result.tar
 
7173
AC_DEFUN([_AM_PROG_TAR],
 
7174
[# Always define AMTAR for backward compatibility.
 
7175
AM_MISSING_PROG([AMTAR], [tar])
 
7176
m4_if([$1], [v7],
 
7177
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7178
     [m4_case([$1], [ustar],, [pax],,
 
7179
              [m4_fatal([Unknown tar format])])
 
7180
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7181
# Loop over all known methods to create a tar archive until one works.
 
7182
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7183
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7184
# Do not fold the above two line into one, because Tru64 sh and
 
7185
# Solaris sh will not grok spaces in the rhs of `-'.
 
7186
for _am_tool in $_am_tools
 
7187
do
 
7188
  case $_am_tool in
 
7189
  gnutar)
 
7190
    for _am_tar in tar gnutar gtar;
 
7191
    do
 
7192
      AM_RUN_LOG([$_am_tar --version]) && break
 
7193
    done
 
7194
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7195
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7196
    am__untar="$_am_tar -xf -"
 
7197
    ;;
 
7198
  plaintar)
 
7199
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7200
    # ustar tarball either.
 
7201
    (tar --version) >/dev/null 2>&1 && continue
 
7202
    am__tar='tar chf - "$$tardir"'
 
7203
    am__tar_='tar chf - "$tardir"'
 
7204
    am__untar='tar xf -'
 
7205
    ;;
 
7206
  pax)
 
7207
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7208
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7209
    am__untar='pax -r'
 
7210
    ;;
 
7211
  cpio)
 
7212
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7213
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7214
    am__untar='cpio -i -H $1 -d'
 
7215
    ;;
 
7216
  none)
 
7217
    am__tar=false
 
7218
    am__tar_=false
 
7219
    am__untar=false
 
7220
    ;;
 
7221
  esac
 
7222
 
 
7223
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7224
  # and am__untar set.
 
7225
  test -n "${am_cv_prog_tar_$1}" && break
 
7226
 
 
7227
  # tar/untar a dummy directory, and stop if the command works
 
7228
  rm -rf conftest.dir
 
7229
  mkdir conftest.dir
 
7230
  echo GrepMe > conftest.dir/file
 
7231
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7232
  rm -rf conftest.dir
 
7233
  if test -s conftest.tar; then
 
7234
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7235
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7310
7236
  fi
7311
 
  AC_MSG_RESULT([$flag_ok])
7312
 
])
7313
 
 
7314
 
 
 
7237
done
 
7238
rm -rf conftest.dir
 
7239
 
 
7240
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7241
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7242
AC_SUBST([am__tar])
 
7243
AC_SUBST([am__untar])
 
7244
]) # _AM_PROG_TAR
 
7245
 
 
7246
m4_include([m4/am-check-python-headers.m4])
 
7247
m4_include([m4/as-compiler-flag.m4])
 
7248
m4_include([m4/as-libtool.m4])
 
7249
m4_include([m4/as-version.m4])