~ubuntu-branches/ubuntu/hoary/courier/hoary

« back to all changes in this revision

Viewing changes to courier/module.local/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-11-29 12:09:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041129120934-kkn0xj11j0n1n6lo
Tags: 0.47-3ubuntu1
* Nathaniel McCallum
 - debian/*.init: pretty initscripts
 - debian/control: version depends on lsb-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.8 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.8.3 -*- 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
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
15
 
 
16
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
17
 
 
18
 
# This program is free software; you can redistribute it and/or modify
19
 
# it under the terms of the GNU General Public License as published by
20
 
# the Free Software Foundation; either version 2, or (at your option)
21
 
# any later version.
22
 
 
23
 
# This program is distributed in the hope that it will be useful,
24
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
 
# GNU General Public License for more details.
27
 
 
28
 
# You should have received a copy of the GNU General Public License
29
 
# along with this program; if not, write to the Free Software
30
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
31
 
# 02111-1307, USA.
32
 
 
33
 
AC_PREREQ([2.52])
34
 
 
35
 
# serial 6
36
 
 
37
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
38
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
39
 
 
40
 
# Do all the work for Automake.                            -*- Autoconf -*-
41
 
 
42
 
# This macro actually does too much some checks are only needed if
43
 
# your package does certain things.  But this isn't really a big deal.
44
 
 
45
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
46
 
# Free Software Foundation, Inc.
47
 
 
48
 
# This program is free software; you can redistribute it and/or modify
49
 
# it under the terms of the GNU General Public License as published by
50
 
# the Free Software Foundation; either version 2, or (at your option)
51
 
# any later version.
52
 
 
53
 
# This program is distributed in the hope that it will be useful,
54
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
55
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
56
 
# GNU General Public License for more details.
57
 
 
58
 
# You should have received a copy of the GNU General Public License
59
 
# along with this program; if not, write to the Free Software
60
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
61
 
# 02111-1307, USA.
62
 
 
63
 
# serial 10
64
 
 
65
 
AC_PREREQ([2.54])
66
 
 
67
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
68
 
# the ones we care about.
69
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
70
 
 
71
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
72
 
# AM_INIT_AUTOMAKE([OPTIONS])
73
 
# -----------------------------------------------
74
 
# The call with PACKAGE and VERSION arguments is the old style
75
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
76
 
# and VERSION should now be passed to AC_INIT and removed from
77
 
# the call to AM_INIT_AUTOMAKE.
78
 
# We support both call styles for the transition.  After
79
 
# the next Automake release, Autoconf can make the AC_INIT
80
 
# arguments mandatory, and then we can depend on a new Autoconf
81
 
# release and drop the old call support.
82
 
AC_DEFUN([AM_INIT_AUTOMAKE],
83
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
84
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
85
 
# test to see if srcdir already configured
86
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
87
 
   test -f $srcdir/config.status; then
88
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
89
 
fi
90
 
 
91
 
# test whether we have cygpath
92
 
if test -z "$CYGPATH_W"; then
93
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
94
 
    CYGPATH_W='cygpath -w'
95
 
  else
96
 
    CYGPATH_W=echo
97
 
  fi
98
 
fi
99
 
AC_SUBST([CYGPATH_W])
100
 
 
101
 
# Define the identity of the package.
102
 
dnl Distinguish between old-style and new-style calls.
103
 
m4_ifval([$2],
104
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
105
 
 AC_SUBST([PACKAGE], [$1])dnl
106
 
 AC_SUBST([VERSION], [$2])],
107
 
[_AM_SET_OPTIONS([$1])dnl
108
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
109
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
110
 
 
111
 
_AM_IF_OPTION([no-define],,
112
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
113
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
114
 
 
115
 
# Some tools Automake needs.
116
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
117
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
118
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
119
 
AM_MISSING_PROG(AUTOCONF, autoconf)
120
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
121
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
122
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
123
 
AM_MISSING_PROG(AMTAR, tar)
124
 
AM_PROG_INSTALL_SH
125
 
AM_PROG_INSTALL_STRIP
126
 
# We need awk for the "check" target.  The system "awk" is bad on
127
 
# some platforms.
128
 
AC_REQUIRE([AC_PROG_AWK])dnl
129
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
130
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
131
 
 
132
 
_AM_IF_OPTION([no-dependencies],,
133
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
134
 
                  [_AM_DEPENDENCIES(CC)],
135
 
                  [define([AC_PROG_CC],
136
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
137
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
138
 
                  [_AM_DEPENDENCIES(CXX)],
139
 
                  [define([AC_PROG_CXX],
140
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
141
 
])
142
 
])
143
 
 
144
 
 
145
 
# When config.status generates a header, we must update the stamp-h file.
146
 
# This file resides in the same directory as the config header
147
 
# that is generated.  The stamp files are numbered to have different names.
148
 
 
149
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
150
 
# loop where config.status creates the headers, so we can generate
151
 
# our stamp files there.
152
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
153
 
[# Compute $1's index in $config_headers.
154
 
_am_stamp_count=1
155
 
for _am_header in $config_headers :; do
156
 
  case $_am_header in
157
 
    $1 | $1:* )
158
 
      break ;;
159
 
    * )
160
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
161
 
  esac
162
 
done
163
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
164
 
 
165
 
# Copyright 2002  Free Software Foundation, Inc.
166
 
 
167
 
# This program is free software; you can redistribute it and/or modify
168
 
# it under the terms of the GNU General Public License as published by
169
 
# the Free Software Foundation; either version 2, or (at your option)
170
 
# any later version.
171
 
 
172
 
# This program is distributed in the hope that it will be useful,
173
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
174
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
175
 
# GNU General Public License for more details.
176
 
 
177
 
# You should have received a copy of the GNU General Public License
178
 
# along with this program; if not, write to the Free Software
179
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
180
 
 
181
 
# AM_AUTOMAKE_VERSION(VERSION)
182
 
# ----------------------------
183
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
184
 
# generated from the m4 files accompanying Automake X.Y.
185
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
186
 
 
187
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
188
 
# -------------------------------
189
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
190
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
191
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
192
 
         [AM_AUTOMAKE_VERSION([1.7.8])])
193
 
 
194
 
# Helper functions for option handling.                    -*- Autoconf -*-
195
 
 
196
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
197
 
 
198
 
# This program is free software; you can redistribute it and/or modify
199
 
# it under the terms of the GNU General Public License as published by
200
 
# the Free Software Foundation; either version 2, or (at your option)
201
 
# any later version.
202
 
 
203
 
# This program is distributed in the hope that it will be useful,
204
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
205
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
206
 
# GNU General Public License for more details.
207
 
 
208
 
# You should have received a copy of the GNU General Public License
209
 
# along with this program; if not, write to the Free Software
210
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
211
 
# 02111-1307, USA.
212
 
 
213
 
# serial 2
214
 
 
215
 
# _AM_MANGLE_OPTION(NAME)
216
 
# -----------------------
217
 
AC_DEFUN([_AM_MANGLE_OPTION],
218
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
219
 
 
220
 
# _AM_SET_OPTION(NAME)
221
 
# ------------------------------
222
 
# Set option NAME.  Presently that only means defining a flag for this option.
223
 
AC_DEFUN([_AM_SET_OPTION],
224
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
225
 
 
226
 
# _AM_SET_OPTIONS(OPTIONS)
227
 
# ----------------------------------
228
 
# OPTIONS is a space-separated list of Automake options.
229
 
AC_DEFUN([_AM_SET_OPTIONS],
230
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
231
 
 
232
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
233
 
# -------------------------------------------
234
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
235
 
AC_DEFUN([_AM_IF_OPTION],
236
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
237
 
 
238
 
#
239
 
# Check to make sure that the build environment is sane.
240
 
#
241
 
 
242
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
243
 
 
244
 
# This program is free software; you can redistribute it and/or modify
245
 
# it under the terms of the GNU General Public License as published by
246
 
# the Free Software Foundation; either version 2, or (at your option)
247
 
# any later version.
248
 
 
249
 
# This program is distributed in the hope that it will be useful,
250
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
251
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
252
 
# GNU General Public License for more details.
253
 
 
254
 
# You should have received a copy of the GNU General Public License
255
 
# along with this program; if not, write to the Free Software
256
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
257
 
# 02111-1307, USA.
258
 
 
259
 
# serial 3
260
 
 
261
 
# AM_SANITY_CHECK
262
 
# ---------------
263
 
AC_DEFUN([AM_SANITY_CHECK],
264
 
[AC_MSG_CHECKING([whether build environment is sane])
265
 
# Just in case
266
 
sleep 1
267
 
echo timestamp > conftest.file
268
 
# Do `set' in a subshell so we don't clobber the current shell's
269
 
# arguments.  Must try -L first in case configure is actually a
270
 
# symlink; some systems play weird games with the mod time of symlinks
271
 
# (eg FreeBSD returns the mod time of the symlink's containing
272
 
# directory).
273
 
if (
274
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
275
 
   if test "$[*]" = "X"; then
276
 
      # -L didn't work.
277
 
      set X `ls -t $srcdir/configure conftest.file`
278
 
   fi
279
 
   rm -f conftest.file
280
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
281
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
282
 
 
283
 
      # If neither matched, then we have a broken ls.  This can happen
284
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
285
 
      # broken ls alias from the environment.  This has actually
286
 
      # happened.  Such a system could not be considered "sane".
287
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
288
 
alias in your environment])
289
 
   fi
290
 
 
291
 
   test "$[2]" = conftest.file
292
 
   )
293
 
then
294
 
   # Ok.
295
 
   :
296
 
else
297
 
   AC_MSG_ERROR([newly created file is older than distributed files!
298
 
Check your system clock])
299
 
fi
300
 
AC_MSG_RESULT(yes)])
301
 
 
302
 
#  -*- Autoconf -*-
303
 
 
304
 
 
305
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
306
 
 
307
 
# This program is free software; you can redistribute it and/or modify
308
 
# it under the terms of the GNU General Public License as published by
309
 
# the Free Software Foundation; either version 2, or (at your option)
310
 
# any later version.
311
 
 
312
 
# This program is distributed in the hope that it will be useful,
313
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
314
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
315
 
# GNU General Public License for more details.
316
 
 
317
 
# You should have received a copy of the GNU General Public License
318
 
# along with this program; if not, write to the Free Software
319
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
320
 
# 02111-1307, USA.
321
 
 
322
 
# serial 3
323
 
 
324
 
# AM_MISSING_PROG(NAME, PROGRAM)
325
 
# ------------------------------
326
 
AC_DEFUN([AM_MISSING_PROG],
327
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
328
 
$1=${$1-"${am_missing_run}$2"}
329
 
AC_SUBST($1)])
330
 
 
331
 
 
332
 
# AM_MISSING_HAS_RUN
333
 
# ------------------
334
 
# Define MISSING if not defined so far and test if it supports --run.
335
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
336
 
AC_DEFUN([AM_MISSING_HAS_RUN],
337
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
338
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
339
 
# Use eval to expand $SHELL
340
 
if eval "$MISSING --run true"; then
341
 
  am_missing_run="$MISSING --run "
342
 
else
343
 
  am_missing_run=
344
 
  AC_MSG_WARN([`missing' script is too old or missing])
345
 
fi
346
 
])
347
 
 
348
 
# AM_AUX_DIR_EXPAND
349
 
 
350
 
# Copyright 2001 Free Software Foundation, Inc.
351
 
 
352
 
# This program is free software; you can redistribute it and/or modify
353
 
# it under the terms of the GNU General Public License as published by
354
 
# the Free Software Foundation; either version 2, or (at your option)
355
 
# any later version.
356
 
 
357
 
# This program is distributed in the hope that it will be useful,
358
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
359
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
360
 
# GNU General Public License for more details.
361
 
 
362
 
# You should have received a copy of the GNU General Public License
363
 
# along with this program; if not, write to the Free Software
364
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
365
 
# 02111-1307, USA.
366
 
 
367
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
368
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
369
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
370
 
#
371
 
# Of course, Automake must honor this variable whenever it calls a
372
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
373
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
374
 
# depending on how configure is run.  This is pretty annoying, since
375
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
376
 
# source directory, any form will work fine, but in subdirectories a
377
 
# relative path needs to be adjusted first.
378
 
#
379
 
# $ac_aux_dir/missing
380
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
381
 
# $top_srcdir/$ac_aux_dir/missing
382
 
#    fails if $ac_aux_dir is absolute,
383
 
#    fails when called from a subdirectory in a VPATH build with
384
 
#          a relative $ac_aux_dir
385
 
#
386
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
387
 
# are both prefixed by $srcdir.  In an in-source build this is usually
388
 
# harmless because $srcdir is `.', but things will broke when you
389
 
# start a VPATH build or use an absolute $srcdir.
390
 
#
391
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
392
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
393
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
394
 
# and then we would define $MISSING as
395
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
396
 
# This will work as long as MISSING is not called from configure, because
397
 
# unfortunately $(top_srcdir) has no meaning in configure.
398
 
# However there are other variables, like CC, which are often used in
399
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
400
 
#
401
 
# Another solution, used here, is to always expand $ac_aux_dir to an
402
 
# absolute PATH.  The drawback is that using absolute paths prevent a
403
 
# configured tree to be moved without reconfiguration.
404
 
 
405
 
# Rely on autoconf to set up CDPATH properly.
406
 
AC_PREREQ([2.50])
407
 
 
408
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
409
 
# expand $ac_aux_dir to an absolute path
410
 
am_aux_dir=`cd $ac_aux_dir && pwd`
411
 
])
412
 
 
413
 
# AM_PROG_INSTALL_SH
414
 
# ------------------
415
 
# Define $install_sh.
416
 
 
417
 
# Copyright 2001 Free Software Foundation, Inc.
418
 
 
419
 
# This program is free software; you can redistribute it and/or modify
420
 
# it under the terms of the GNU General Public License as published by
421
 
# the Free Software Foundation; either version 2, or (at your option)
422
 
# any later version.
423
 
 
424
 
# This program is distributed in the hope that it will be useful,
425
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
426
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
427
 
# GNU General Public License for more details.
428
 
 
429
 
# You should have received a copy of the GNU General Public License
430
 
# along with this program; if not, write to the Free Software
431
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
432
 
# 02111-1307, USA.
433
 
 
434
 
AC_DEFUN([AM_PROG_INSTALL_SH],
435
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
436
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
437
 
AC_SUBST(install_sh)])
438
 
 
439
 
# AM_PROG_INSTALL_STRIP
440
 
 
441
 
# Copyright 2001 Free Software Foundation, Inc.
442
 
 
443
 
# This program is free software; you can redistribute it and/or modify
444
 
# it under the terms of the GNU General Public License as published by
445
 
# the Free Software Foundation; either version 2, or (at your option)
446
 
# any later version.
447
 
 
448
 
# This program is distributed in the hope that it will be useful,
449
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
450
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
451
 
# GNU General Public License for more details.
452
 
 
453
 
# You should have received a copy of the GNU General Public License
454
 
# along with this program; if not, write to the Free Software
455
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
456
 
# 02111-1307, USA.
457
 
 
458
 
# One issue with vendor `install' (even GNU) is that you can't
459
 
# specify the program used to strip binaries.  This is especially
460
 
# annoying in cross-compiling environments, where the build's strip
461
 
# is unlikely to handle the host's binaries.
462
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
463
 
# always use install-sh in `make install-strip', and initialize
464
 
# STRIPPROG with the value of the STRIP variable (set by the user).
465
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
466
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
467
 
# Installed binaries are usually stripped using `strip' when the user
468
 
# run `make install-strip'.  However `strip' might not be the right
469
 
# tool to use in cross-compilation environments, therefore Automake
470
 
# will honor the `STRIP' environment variable to overrule this program.
471
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
472
 
if test "$cross_compiling" != no; then
473
 
  AC_CHECK_TOOL([STRIP], [strip], :)
474
 
fi
475
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
476
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
477
 
 
478
 
#                                                          -*- Autoconf -*-
479
 
# Copyright (C) 2003  Free Software Foundation, Inc.
480
 
 
481
 
# This program is free software; you can redistribute it and/or modify
482
 
# it under the terms of the GNU General Public License as published by
483
 
# the Free Software Foundation; either version 2, or (at your option)
484
 
# any later version.
485
 
 
486
 
# This program is distributed in the hope that it will be useful,
487
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
488
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
489
 
# GNU General Public License for more details.
490
 
 
491
 
# You should have received a copy of the GNU General Public License
492
 
# along with this program; if not, write to the Free Software
493
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
494
 
# 02111-1307, USA.
495
 
 
496
 
# serial 1
497
 
 
498
 
# Check whether the underlying file-system supports filenames
499
 
# with a leading dot.  For instance MS-DOS doesn't.
500
 
AC_DEFUN([AM_SET_LEADING_DOT],
501
 
[rm -rf .tst 2>/dev/null
502
 
mkdir .tst 2>/dev/null
503
 
if test -d .tst; then
504
 
  am__leading_dot=.
505
 
else
506
 
  am__leading_dot=_
507
 
fi
508
 
rmdir .tst 2>/dev/null
509
 
AC_SUBST([am__leading_dot])])
510
 
 
511
 
# serial 5                                              -*- Autoconf -*-
512
 
 
513
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
514
 
 
515
 
# This program is free software; you can redistribute it and/or modify
516
 
# it under the terms of the GNU General Public License as published by
517
 
# the Free Software Foundation; either version 2, or (at your option)
518
 
# any later version.
519
 
 
520
 
# This program is distributed in the hope that it will be useful,
521
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
522
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
523
 
# GNU General Public License for more details.
524
 
 
525
 
# You should have received a copy of the GNU General Public License
526
 
# along with this program; if not, write to the Free Software
527
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
528
 
# 02111-1307, USA.
529
 
 
530
 
 
531
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
532
 
# written in clear, in which case automake, when reading aclocal.m4,
533
 
# will think it sees a *use*, and therefore will trigger all it's
534
 
# C support machinery.  Also note that it means that autoscan, seeing
535
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
536
 
 
537
 
 
538
 
 
539
 
# _AM_DEPENDENCIES(NAME)
540
 
# ----------------------
541
 
# See how the compiler implements dependency checking.
542
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
543
 
# We try a few techniques and use that to set a single cache variable.
544
 
#
545
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
546
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
547
 
# dependency, and given that the user is not expected to run this macro,
548
 
# just rely on AC_PROG_CC.
549
 
AC_DEFUN([_AM_DEPENDENCIES],
550
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
551
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
552
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
553
 
AC_REQUIRE([AM_DEP_TRACK])dnl
554
 
 
555
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
556
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
557
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
558
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
559
 
                   [depcc="$$1"   am_compiler_list=])
560
 
 
561
 
AC_CACHE_CHECK([dependency style of $depcc],
562
 
               [am_cv_$1_dependencies_compiler_type],
563
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
564
 
  # We make a subdir and do the tests there.  Otherwise we can end up
565
 
  # making bogus files that we don't know about and never remove.  For
566
 
  # instance it was reported that on HP-UX the gcc test will end up
567
 
  # making a dummy file named `D' -- because `-MD' means `put the output
568
 
  # in D'.
569
 
  mkdir conftest.dir
570
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
571
 
  # using a relative directory.
572
 
  cp "$am_depcomp" conftest.dir
573
 
  cd conftest.dir
574
 
  # We will build objects and dependencies in a subdirectory because
575
 
  # it helps to detect inapplicable dependency modes.  For instance
576
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
577
 
  # side effect of compilation, but ICC will put the dependencies in
578
 
  # the current directory while Tru64 will put them in the object
579
 
  # directory.
580
 
  mkdir sub
581
 
 
582
 
  am_cv_$1_dependencies_compiler_type=none
583
 
  if test "$am_compiler_list" = ""; then
584
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
585
 
  fi
586
 
  for depmode in $am_compiler_list; do
587
 
    # Setup a source with many dependencies, because some compilers
588
 
    # like to wrap large dependency lists on column 80 (with \), and
589
 
    # we should not choose a depcomp mode which is confused by this.
590
 
    #
591
 
    # We need to recreate these files for each test, as the compiler may
592
 
    # overwrite some of them when testing with obscure command lines.
593
 
    # This happens at least with the AIX C compiler.
594
 
    : > sub/conftest.c
595
 
    for i in 1 2 3 4 5 6; do
596
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
597
 
      : > sub/conftst$i.h
598
 
    done
599
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
600
 
 
601
 
    case $depmode in
602
 
    nosideeffect)
603
 
      # after this tag, mechanisms are not by side-effect, so they'll
604
 
      # only be used when explicitly requested
605
 
      if test "x$enable_dependency_tracking" = xyes; then
606
 
        continue
607
 
      else
608
 
        break
609
 
      fi
610
 
      ;;
611
 
    none) break ;;
612
 
    esac
613
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
614
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
615
 
    # handle `-M -o', and we need to detect this.
616
 
    if depmode=$depmode \
617
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
618
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
619
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
620
 
         >/dev/null 2>conftest.err &&
621
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
622
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
623
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
624
 
      # icc doesn't choke on unknown options, it will just issue warnings
625
 
      # (even with -Werror).  So we grep stderr for any message
626
 
      # that says an option was ignored.
627
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
628
 
        am_cv_$1_dependencies_compiler_type=$depmode
629
 
        break
630
 
      fi
631
 
    fi
632
 
  done
633
 
 
634
 
  cd ..
635
 
  rm -rf conftest.dir
636
 
else
637
 
  am_cv_$1_dependencies_compiler_type=none
638
 
fi
639
 
])
640
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
641
 
AM_CONDITIONAL([am__fastdep$1], [
642
 
  test "x$enable_dependency_tracking" != xno \
643
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
644
 
])
645
 
 
646
 
 
647
 
# AM_SET_DEPDIR
648
 
# -------------
649
 
# Choose a directory name for dependency files.
650
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
651
 
AC_DEFUN([AM_SET_DEPDIR],
652
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
653
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
654
 
])
655
 
 
656
 
 
657
 
# AM_DEP_TRACK
658
 
# ------------
659
 
AC_DEFUN([AM_DEP_TRACK],
660
 
[AC_ARG_ENABLE(dependency-tracking,
661
 
[  --disable-dependency-tracking Speeds up one-time builds
662
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
663
 
if test "x$enable_dependency_tracking" != xno; then
664
 
  am_depcomp="$ac_aux_dir/depcomp"
665
 
  AMDEPBACKSLASH='\'
666
 
fi
667
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
668
 
AC_SUBST([AMDEPBACKSLASH])
669
 
])
670
 
 
671
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
672
 
 
673
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
674
 
 
675
 
# This program is free software; you can redistribute it and/or modify
676
 
# it under the terms of the GNU General Public License as published by
677
 
# the Free Software Foundation; either version 2, or (at your option)
678
 
# any later version.
679
 
 
680
 
# This program is distributed in the hope that it will be useful,
681
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
682
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
683
 
# GNU General Public License for more details.
684
 
 
685
 
# You should have received a copy of the GNU General Public License
686
 
# along with this program; if not, write to the Free Software
687
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
688
 
# 02111-1307, USA.
689
 
 
690
 
#serial 2
691
 
 
692
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
693
 
# ------------------------------
694
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
695
 
[for mf in $CONFIG_FILES; do
696
 
  # Strip MF so we end up with the name of the file.
697
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
698
 
  # Check whether this is an Automake generated Makefile or not.
699
 
  # We used to match only the files named `Makefile.in', but
700
 
  # some people rename them; so instead we look at the file content.
701
 
  # Grep'ing the first line is not enough: some people post-process
702
 
  # each Makefile.in and add a new line on top of each file to say so.
703
 
  # So let's grep whole file.
704
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
705
 
    dirpart=`AS_DIRNAME("$mf")`
706
 
  else
707
 
    continue
708
 
  fi
709
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
710
 
  # Extract the definition of DEP_FILES from the Makefile without
711
 
  # running `make'.
712
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
713
 
  test -z "$DEPDIR" && continue
714
 
  # When using ansi2knr, U may be empty or an underscore; expand it
715
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
716
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
717
 
  # We invoke sed twice because it is the simplest approach to
718
 
  # changing $(DEPDIR) to its actual value in the expansion.
719
 
  for file in `sed -n -e '
720
 
    /^DEP_FILES = .*\\\\$/ {
721
 
      s/^DEP_FILES = //
722
 
      :loop
723
 
        s/\\\\$//
724
 
        p
725
 
        n
726
 
        /\\\\$/ b loop
727
 
      p
728
 
    }
729
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
730
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
731
 
    # Make sure the directory exists.
732
 
    test -f "$dirpart/$file" && continue
733
 
    fdir=`AS_DIRNAME(["$file"])`
734
 
    AS_MKDIR_P([$dirpart/$fdir])
735
 
    # echo "creating $dirpart/$file"
736
 
    echo '# dummy' > "$dirpart/$file"
737
 
  done
738
 
done
739
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
740
 
 
741
 
 
742
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
743
 
# -----------------------------
744
 
# This macro should only be invoked once -- use via AC_REQUIRE.
745
 
#
746
 
# This code is only required when automatic dependency tracking
747
 
# is enabled.  FIXME.  This creates each `.P' file that we will
748
 
# need in order to bootstrap the dependency handling code.
749
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
750
 
[AC_CONFIG_COMMANDS([depfiles],
751
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
752
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
753
 
])
754
 
 
755
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
756
 
 
757
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
758
 
 
759
 
# This program is free software; you can redistribute it and/or modify
760
 
# it under the terms of the GNU General Public License as published by
761
 
# the Free Software Foundation; either version 2, or (at your option)
762
 
# any later version.
763
 
 
764
 
# This program is distributed in the hope that it will be useful,
765
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
766
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
767
 
# GNU General Public License for more details.
768
 
 
769
 
# You should have received a copy of the GNU General Public License
770
 
# along with this program; if not, write to the Free Software
771
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
772
 
# 02111-1307, USA.
773
 
 
774
 
# serial 2
775
 
 
776
 
# AM_MAKE_INCLUDE()
777
 
# -----------------
778
 
# Check to see how make treats includes.
779
 
AC_DEFUN([AM_MAKE_INCLUDE],
780
 
[am_make=${MAKE-make}
781
 
cat > confinc << 'END'
782
 
am__doit:
783
 
        @echo done
784
 
.PHONY: am__doit
785
 
END
786
 
# If we don't find an include directive, just comment out the code.
787
 
AC_MSG_CHECKING([for style of include used by $am_make])
788
 
am__include="#"
789
 
am__quote=
790
 
_am_result=none
791
 
# First try GNU make style include.
792
 
echo "include confinc" > confmf
793
 
# We grep out `Entering directory' and `Leaving directory'
794
 
# messages which can occur if `w' ends up in MAKEFLAGS.
795
 
# In particular we don't look at `^make:' because GNU make might
796
 
# be invoked under some other name (usually "gmake"), in which
797
 
# case it prints its new name instead of `make'.
798
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
799
 
   am__include=include
800
 
   am__quote=
801
 
   _am_result=GNU
802
 
fi
803
 
# Now try BSD make style include.
804
 
if test "$am__include" = "#"; then
805
 
   echo '.include "confinc"' > confmf
806
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
807
 
      am__include=.include
808
 
      am__quote="\""
809
 
      _am_result=BSD
810
 
   fi
811
 
fi
812
 
AC_SUBST([am__include])
813
 
AC_SUBST([am__quote])
814
 
AC_MSG_RESULT([$_am_result])
815
 
rm -f confinc confmf
816
 
])
817
 
 
818
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
819
 
 
820
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
821
 
 
822
 
# This program is free software; you can redistribute it and/or modify
823
 
# it under the terms of the GNU General Public License as published by
824
 
# the Free Software Foundation; either version 2, or (at your option)
825
 
# any later version.
826
 
 
827
 
# This program is distributed in the hope that it will be useful,
828
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
829
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
830
 
# GNU General Public License for more details.
831
 
 
832
 
# You should have received a copy of the GNU General Public License
833
 
# along with this program; if not, write to the Free Software
834
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
835
 
# 02111-1307, USA.
836
 
 
837
 
# serial 5
838
 
 
839
 
AC_PREREQ(2.52)
840
 
 
841
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
842
 
# -------------------------------------
843
 
# Define a conditional.
844
 
AC_DEFUN([AM_CONDITIONAL],
845
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
846
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
847
 
AC_SUBST([$1_TRUE])
848
 
AC_SUBST([$1_FALSE])
849
 
if $2; then
850
 
  $1_TRUE=
851
 
  $1_FALSE='#'
852
 
else
853
 
  $1_TRUE='#'
854
 
  $1_FALSE=
855
 
fi
856
 
AC_CONFIG_COMMANDS_PRE(
857
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
858
 
  AC_MSG_ERROR([conditional "$1" was never defined.
859
 
Usually this means the macro was only invoked conditionally.])
860
 
fi])])
861
 
 
862
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
863
15
 
864
16
# serial 47 AC_PROG_LIBTOOL
1339
491
        x86_64-*linux*)
1340
492
          LD="${LD-ld} -m elf_i386"
1341
493
          ;;
1342
 
        ppc64-*linux*)
 
494
        ppc64-*linux*|powerpc64-*linux*)
1343
495
          LD="${LD-ld} -m elf32ppclinux"
1344
496
          ;;
1345
497
        s390x-*linux*)
1403
555
# ----------------------------------------------------------------
1404
556
# Check whether the given compiler option works
1405
557
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1406
 
[AC_CACHE_CHECK([$1], [$2],
 
558
[AC_REQUIRE([LT_AC_PROG_SED])
 
559
AC_CACHE_CHECK([$1], [$2],
1407
560
  [$2=no
1408
561
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1409
562
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1479
632
AC_MSG_CHECKING([the maximum length of command line arguments])
1480
633
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1481
634
  i=0
1482
 
  testring="ABCD"
 
635
  teststring="ABCD"
1483
636
 
1484
637
  case $build_os in
1485
638
  msdosdjgpp*)
1508
661
    lt_cv_sys_max_cmd_len=8192;
1509
662
    ;;
1510
663
 
 
664
  amigaos*)
 
665
    # On AmigaOS with pdksh, this test takes hours, literally.
 
666
    # So we just punt and use a minimum line length of 8192.
 
667
    lt_cv_sys_max_cmd_len=8192;
 
668
    ;;
 
669
 
1511
670
 *)
1512
671
    # If test is not a shell built-in, we'll probably end up computing a
1513
672
    # maximum length that is only half of the actual maximum length, but
1514
673
    # we can't tell.
1515
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
1516
 
               = "XX$testring") >/dev/null 2>&1 &&
1517
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
674
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
675
               = "XX$teststring") >/dev/null 2>&1 &&
 
676
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1518
677
            lt_cv_sys_max_cmd_len=$new_result &&
1519
678
            test $i != 17 # 1/2 MB should be enough
1520
679
    do
1521
680
      i=`expr $i + 1`
1522
 
      testring=$testring$testring
 
681
      teststring=$teststring$teststring
1523
682
    done
1524
 
    testring=
 
683
    teststring=
1525
684
    # Add a significant safety factor because C++ compilers can tack on massive
1526
685
    # amounts of additional arguments before passing them to the linker.
1527
686
    # It appears as though 1/2 is a usable value.
1671
830
    lt_cv_dlopen_self=yes
1672
831
    ])
1673
832
   ;;
1674
 
    
 
833
 
1675
834
  *)
1676
835
    AC_CHECK_FUNC([shl_load],
1677
836
          [lt_cv_dlopen="shl_load"],
1760
919
   mkdir out
1761
920
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1762
921
 
1763
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1764
 
   # that will create temporary files in the current directory regardless of
1765
 
   # the output directory.  Thus, making CWD read-only will cause this test
1766
 
   # to fail, enabling locking or at least warning the user not to do parallel
1767
 
   # builds.
1768
 
   chmod -w .
1769
 
 
1770
922
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1771
923
   # Insert the option either (1) after the last *FLAGS variable, or
1772
924
   # (2) before a word containing "conftest.", or (3) at the end.
1790
942
     fi
1791
943
   fi
1792
944
   chmod u+w .
1793
 
   $rm conftest* out/*
1794
 
   rmdir out
 
945
   $rm conftest*
 
946
   # SGI C++ compiler will create directory out/ii_files/ for
 
947
   # template instantiation
 
948
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
949
   $rm out/* && rmdir out
1795
950
   cd ..
1796
951
   rmdir conftest
1797
952
   $rm conftest*
1908
1063
   *)
1909
1064
  AC_MSG_RESULT([no])
1910
1065
    ;;
1911
 
  esac  
 
1066
  esac
1912
1067
fi
1913
1068
])# AC_LIBTOOL_SYS_LIB_STRIP
1914
1069
 
1921
1076
library_names_spec=
1922
1077
libname_spec='lib$name'
1923
1078
soname_spec=
1924
 
shrext=".so"
 
1079
shrext_cmds=".so"
1925
1080
postinstall_cmds=
1926
1081
postuninstall_cmds=
1927
1082
finish_cmds=
2009
1164
amigaos*)
2010
1165
  library_names_spec='$libname.ixlibrary $libname.a'
2011
1166
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2012
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
1167
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2013
1168
  ;;
2014
1169
 
2015
1170
beos*)
2034
1189
 
2035
1190
cygwin* | mingw* | pw32*)
2036
1191
  version_type=windows
2037
 
  shrext=".dll"
 
1192
  shrext_cmds=".dll"
2038
1193
  need_version=no
2039
1194
  need_lib_prefix=no
2040
1195
 
2056
1211
    cygwin*)
2057
1212
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2058
1213
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2059
 
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
 
1214
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2060
1215
      ;;
2061
1216
    mingw*)
2062
1217
      # MinGW DLLs use traditional 'lib' prefix
2095
1250
  version_type=darwin
2096
1251
  need_lib_prefix=no
2097
1252
  need_version=no
2098
 
  # FIXME: Relying on posixy $() will cause problems for
2099
 
  #        cross-compilation, but unfortunately the echo tests do not
2100
 
  #        yet detect zsh echo's removal of \ escapes.
2101
1253
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2102
1254
  soname_spec='${libname}${release}${major}$shared_ext'
2103
1255
  shlibpath_overrides_runpath=yes
2104
1256
  shlibpath_var=DYLD_LIBRARY_PATH
2105
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
1257
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2106
1258
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2107
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
2108
 
  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"`
 
1259
  if test "$GCC" = yes; then
 
1260
    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"`
 
1261
  else
 
1262
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2109
1263
  fi
2110
1264
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2111
1265
  ;;
2123
1277
  dynamic_linker=no
2124
1278
  ;;
2125
1279
 
 
1280
kfreebsd*-gnu)
 
1281
  version_type=linux
 
1282
  need_lib_prefix=no
 
1283
  need_version=no
 
1284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1285
  soname_spec='${libname}${release}${shared_ext}$major'
 
1286
  shlibpath_var=LD_LIBRARY_PATH
 
1287
  shlibpath_overrides_runpath=no
 
1288
  hardcode_into_libs=yes
 
1289
  dynamic_linker='GNU ld.so'
 
1290
  ;;
 
1291
 
2126
1292
freebsd*)
2127
1293
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2128
1294
  version_type=freebsd-$objformat
2171
1337
  need_version=no
2172
1338
  case "$host_cpu" in
2173
1339
  ia64*)
2174
 
    shrext='.so'
 
1340
    shrext_cmds='.so'
2175
1341
    hardcode_into_libs=yes
2176
1342
    dynamic_linker="$host_os dld.so"
2177
1343
    shlibpath_var=LD_LIBRARY_PATH
2186
1352
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2187
1353
    ;;
2188
1354
   hppa*64*)
2189
 
     shrext='.sl'
 
1355
     shrext_cmds='.sl'
2190
1356
     hardcode_into_libs=yes
2191
1357
     dynamic_linker="$host_os dld.sl"
2192
1358
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2197
1363
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2198
1364
     ;;
2199
1365
   *)
2200
 
    shrext='.sl'
 
1366
    shrext_cmds='.sl'
2201
1367
    dynamic_linker="$host_os dld.sl"
2202
1368
    shlibpath_var=SHLIB_PATH
2203
1369
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2266
1432
  # before this can be enabled.
2267
1433
  hardcode_into_libs=yes
2268
1434
 
2269
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2270
 
  # powerpc, because MkLinux only supported shared libraries with the
2271
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
2272
 
  # most powerpc-linux boxes support dynamic linking these days and
2273
 
  # people can always --disable-shared, the test was removed, and we
2274
 
  # assume the GNU/Linux dynamic linker is in use.
2275
 
  dynamic_linker='GNU/Linux ld.so'
2276
 
 
2277
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
1435
  # find out which ABI we are using
2278
1436
  libsuff=
2279
1437
  case "$host_cpu" in
2280
1438
  x86_64*|s390x*|powerpc64*)
2283
1441
      case `/usr/bin/file conftest.$ac_objext` in
2284
1442
      *64-bit*)
2285
1443
        libsuff=64
 
1444
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
2286
1445
        ;;
2287
1446
      esac
2288
1447
    fi
2289
1448
    rm -rf conftest*
2290
1449
    ;;
2291
 
  *)
2292
 
    ;;
2293
1450
  esac
2294
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
2295
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
1451
 
 
1452
  # Append ld.so.conf contents to the search path
 
1453
  if test -f /etc/ld.so.conf; then
 
1454
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
1455
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
1456
  fi
 
1457
 
 
1458
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
1459
  # powerpc, because MkLinux only supported shared libraries with the
 
1460
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
1461
  # most powerpc-linux boxes support dynamic linking these days and
 
1462
  # people can always --disable-shared, the test was removed, and we
 
1463
  # assume the GNU/Linux dynamic linker is in use.
 
1464
  dynamic_linker='GNU/Linux ld.so'
 
1465
  ;;
 
1466
 
 
1467
knetbsd*-gnu)
 
1468
  version_type=linux
 
1469
  need_lib_prefix=no
 
1470
  need_version=no
 
1471
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1472
  soname_spec='${libname}${release}${shared_ext}$major'
 
1473
  shlibpath_var=LD_LIBRARY_PATH
 
1474
  shlibpath_overrides_runpath=no
 
1475
  hardcode_into_libs=yes
 
1476
  dynamic_linker='GNU ld.so'
2296
1477
  ;;
2297
1478
 
2298
1479
netbsd*)
2304
1485
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2305
1486
    dynamic_linker='NetBSD (a.out) ld.so'
2306
1487
  else
2307
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
1488
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2308
1489
    soname_spec='${libname}${release}${shared_ext}$major'
2309
1490
    dynamic_linker='NetBSD ld.elf_so'
2310
1491
  fi
2320
1501
  shlibpath_overrides_runpath=yes
2321
1502
  ;;
2322
1503
 
2323
 
nto-qnx)
 
1504
nto-qnx*)
2324
1505
  version_type=linux
2325
1506
  need_lib_prefix=no
2326
1507
  need_version=no
2333
1514
openbsd*)
2334
1515
  version_type=sunos
2335
1516
  need_lib_prefix=no
2336
 
  need_version=no
 
1517
  need_version=yes
2337
1518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2338
1519
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2339
1520
  shlibpath_var=LD_LIBRARY_PATH
2353
1534
 
2354
1535
os2*)
2355
1536
  libname_spec='$name'
2356
 
  shrext=".dll"
 
1537
  shrext_cmds=".dll"
2357
1538
  need_lib_prefix=no
2358
1539
  library_names_spec='$libname${shared_ext} $libname.a'
2359
1540
  dynamic_linker='OS/2 ld.exe'
2789
1970
 
2790
1971
# AC_PROG_LD
2791
1972
# ----------
2792
 
# find the path to the GNU or non-GNU linker
 
1973
# find the pathname to the GNU or non-GNU linker
2793
1974
AC_DEFUN([AC_PROG_LD],
2794
1975
[AC_ARG_WITH([gnu-ld],
2795
1976
    [AC_HELP_STRING([--with-gnu-ld],
2815
1996
    # Accept absolute paths.
2816
1997
    [[\\/]]* | ?:[[\\/]]*)
2817
1998
      re_direlt='/[[^/]][[^/]]*/\.\./'
2818
 
      # Canonicalize the path of ld
 
1999
      # Canonicalize the pathname of ld
2819
2000
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2820
2001
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2821
2002
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2943
2124
  lt_cv_file_magic_test_file=/shlib/libc.so
2944
2125
  ;;
2945
2126
 
2946
 
cygwin* | mingw* | pw32*)
2947
 
  # win32_libid is a shell function defined in ltmain.sh
 
2127
cygwin*)
 
2128
  # func_win32_libid is a shell function defined in ltmain.sh
2948
2129
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2949
 
  lt_cv_file_magic_cmd='win32_libid'
 
2130
  lt_cv_file_magic_cmd='func_win32_libid'
 
2131
  ;;
 
2132
 
 
2133
mingw* | pw32*)
 
2134
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
2135
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2136
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2137
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2950
2138
  ;;
2951
2139
 
2952
2140
darwin* | rhapsody*)
2953
 
  # this will be overwritten by pass_all, but leave it in just in case
2954
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2955
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2956
 
  case "$host_os" in
2957
 
  rhapsody* | darwin1.[[012]])
2958
 
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2959
 
    ;;
2960
 
  *) # Darwin 1.3 on
2961
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2962
 
    ;;
2963
 
  esac
2964
2141
  lt_cv_deplibs_check_method=pass_all
2965
2142
  ;;
2966
2143
 
2967
 
freebsd*)
 
2144
freebsd* | kfreebsd*-gnu)
2968
2145
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2969
2146
    case $host_cpu in
2970
2147
    i*86 )
3003
2180
  ;;
3004
2181
 
3005
2182
irix5* | irix6* | nonstopux*)
3006
 
  case $host_os in
3007
 
  irix5* | nonstopux*)
3008
 
    # this will be overridden with pass_all, but let us keep it just in case
3009
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3010
 
    ;;
3011
 
  *)
3012
 
    case $LD in
3013
 
    *-32|*"-32 ") libmagic=32-bit;;
3014
 
    *-n32|*"-n32 ") libmagic=N32;;
3015
 
    *-64|*"-64 ") libmagic=64-bit;;
3016
 
    *) libmagic=never-match;;
3017
 
    esac
3018
 
    # this will be overridden with pass_all, but let us keep it just in case
3019
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
3020
 
    ;;
 
2183
  case $LD in
 
2184
  *-32|*"-32 ") libmagic=32-bit;;
 
2185
  *-n32|*"-n32 ") libmagic=N32;;
 
2186
  *-64|*"-64 ") libmagic=64-bit;;
 
2187
  *) libmagic=never-match;;
3021
2188
  esac
3022
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3023
2189
  lt_cv_deplibs_check_method=pass_all
3024
2190
  ;;
3025
2191
 
3026
2192
# This must be Linux ELF.
3027
2193
linux*)
3028
2194
  case $host_cpu in
3029
 
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*)
 
2195
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3030
2196
    lt_cv_deplibs_check_method=pass_all ;;
3031
2197
  *)
3032
2198
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
2199
    # this will be overridden with pass_all, but let us keep it just in case
3033
2200
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3034
2201
  esac
3035
2202
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
2203
  lt_cv_deplibs_check_method=pass_all
3036
2204
  ;;
3037
2205
 
3038
2206
netbsd*)
3049
2217
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3050
2218
  ;;
3051
2219
 
3052
 
nto-qnx)
 
2220
nto-qnx*)
3053
2221
  lt_cv_deplibs_check_method=unknown
3054
2222
  ;;
3055
2223
 
3064
2232
  ;;
3065
2233
 
3066
2234
osf3* | osf4* | osf5*)
3067
 
  # this will be overridden with pass_all, but let us keep it just in case
3068
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3069
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3070
2235
  lt_cv_deplibs_check_method=pass_all
3071
2236
  ;;
3072
2237
 
3076
2241
 
3077
2242
solaris*)
3078
2243
  lt_cv_deplibs_check_method=pass_all
3079
 
  lt_cv_file_magic_test_file=/lib/libc.so
3080
2244
  ;;
3081
2245
 
3082
2246
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3116
2280
 
3117
2281
# AC_PROG_NM
3118
2282
# ----------
3119
 
# find the path to a BSD-compatible name lister
 
2283
# find the pathname to a BSD-compatible name lister
3120
2284
AC_DEFUN([AC_PROG_NM],
3121
2285
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3122
2286
[if test -n "$NM"; then
3254
2418
AC_DEFUN([_LT_AC_LANG_CXX],
3255
2419
[AC_REQUIRE([AC_PROG_CXX])
3256
2420
AC_REQUIRE([AC_PROG_CXXCPP])
3257
 
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])
 
2421
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3258
2422
])# _LT_AC_LANG_CXX
3259
2423
 
3260
2424
 
3270
2434
# ---------------
3271
2435
AC_DEFUN([_LT_AC_LANG_F77],
3272
2436
[AC_REQUIRE([AC_PROG_F77])
3273
 
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])
 
2437
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3274
2438
])# _LT_AC_LANG_F77
3275
2439
 
3276
2440
 
3291
2455
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3292
2456
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3293
2457
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3294
 
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])
 
2458
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3295
2459
])# _LT_AC_LANG_GCJ
3296
2460
 
3297
2461
 
3300
2464
# enable support for Windows resource files
3301
2465
AC_DEFUN([AC_LIBTOOL_RC],
3302
2466
[AC_REQUIRE([LT_AC_PROG_RC])
3303
 
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
 
2467
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3304
2468
])# AC_LIBTOOL_RC
3305
2469
 
3306
2470
 
3342
2506
fi
3343
2507
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3344
2508
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3345
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[      ]]" >/dev/null; then :
 
2509
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
3346
2510
  else
3347
2511
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3348
2512
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3365
2529
AC_LIBTOOL_PROG_CC_C_O($1)
3366
2530
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3367
2531
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
2532
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3368
2533
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3369
2534
AC_LIBTOOL_SYS_LIB_STRIP
3370
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3371
2535
AC_LIBTOOL_DLOPEN_SELF($1)
3372
2536
 
3373
2537
# Report which librarie types wil actually be built
3388
2552
  fi
3389
2553
  ;;
3390
2554
 
3391
 
aix4*)
 
2555
aix4* | aix5*)
3392
2556
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3393
2557
    test "$enable_shared" = yes && enable_static=no
3394
2558
  fi
3395
2559
  ;;
3396
2560
  darwin* | rhapsody*)
3397
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
2561
  if test "$GCC" = yes; then
3398
2562
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3399
2563
    case "$host_os" in
3400
2564
    rhapsody* | darwin1.[[012]])
3401
2565
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3402
2566
      ;;
3403
2567
    *) # Darwin 1.3 on
3404
 
      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2568
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
2569
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2570
      else
 
2571
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
2572
          10.[[012]])
 
2573
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2574
            ;;
 
2575
          10.*)
 
2576
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
2577
            ;;
 
2578
        esac
 
2579
      fi
3405
2580
      ;;
3406
2581
    esac
3407
 
    # FIXME: Relying on posixy $() will cause problems for
3408
 
    #        cross-compilation, but unfortunately the echo tests do not
3409
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
3410
 
    #          `"' quotes if we put them in here... so don't!
3411
 
                output_verbose_link_cmd='echo'
 
2582
    output_verbose_link_cmd='echo'
3412
2583
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3413
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
2584
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3414
2585
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3415
 
                  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3416
 
                  _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2586
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2587
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3417
2588
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3418
2589
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3419
2590
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3420
2591
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3421
2592
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3422
 
    fi
3423
 
    ;;  
 
2593
  else
 
2594
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2595
  fi
 
2596
    ;;
3424
2597
esac
3425
2598
AC_MSG_RESULT([$enable_shared])
3426
2599
 
3722
2895
  ;;
3723
2896
 
3724
2897
  darwin* | rhapsody*)
3725
 
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
2898
  if test "$GXX" = yes; then
3726
2899
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3727
2900
    case "$host_os" in
3728
2901
    rhapsody* | darwin1.[[012]])
3729
2902
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3730
2903
      ;;
3731
2904
    *) # Darwin 1.3 on
3732
 
      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2905
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
2906
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2907
      else
 
2908
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
2909
          10.[[012]])
 
2910
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
2911
            ;;
 
2912
          10.*)
 
2913
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
2914
            ;;
 
2915
        esac
 
2916
      fi
3733
2917
      ;;
3734
2918
    esac
3735
 
        lt_int_apple_cc_single_mod=no
3736
 
        output_verbose_link_cmd='echo'
3737
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3738
 
          lt_int_apple_cc_single_mod=yes
3739
 
        fi
3740
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3741
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3742
 
        else
3743
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3744
 
      fi
3745
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
2919
    lt_int_apple_cc_single_mod=no
 
2920
    output_verbose_link_cmd='echo'
 
2921
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
2922
      lt_int_apple_cc_single_mod=yes
 
2923
    fi
 
2924
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
2925
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
2926
    else
 
2927
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
2928
    fi
 
2929
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3746
2930
 
3747
2931
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3748
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3749
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3750
 
      else
3751
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3752
 
      fi
3753
 
        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2932
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
2933
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2934
    else
 
2935
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2936
    fi
 
2937
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3754
2938
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3755
2939
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3756
2940
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3757
2941
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3758
2942
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3759
 
   fi 
 
2943
  else
 
2944
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2945
  fi
3760
2946
    ;;
3761
2947
 
3762
2948
  dgux*)
3783
2969
  freebsd-elf*)
3784
2970
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3785
2971
    ;;
3786
 
  freebsd*)
 
2972
  freebsd* | kfreebsd*-gnu)
3787
2973
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3788
2974
    # conventions
3789
2975
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3814
3000
      # explicitly linking system object files so we need to strip them
3815
3001
      # from the output so that they don't get included in the library
3816
3002
      # dependencies.
3817
 
      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'
 
3003
      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'
3818
3004
      ;;
3819
3005
    *)
3820
3006
      if test "$GXX" = yes; then
4293
3479
AC_LIBTOOL_PROG_CC_C_O($1)
4294
3480
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4295
3481
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3482
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4296
3483
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4297
3484
AC_LIBTOOL_SYS_LIB_STRIP
4298
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4299
3485
AC_LIBTOOL_DLOPEN_SELF($1)
4300
3486
 
4301
3487
AC_LIBTOOL_CONFIG($1)
4517
3703
    postinstall_cmds='$RANLIB $lib'
4518
3704
  fi
4519
3705
  ;;
4520
 
aix4*)
 
3706
aix4* | aix5*)
4521
3707
  test "$enable_shared" = yes && enable_static=no
4522
3708
  ;;
4523
3709
esac
4537
3723
AC_LIBTOOL_PROG_CC_C_O($1)
4538
3724
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4539
3725
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3726
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4540
3727
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4541
3728
AC_LIBTOOL_SYS_LIB_STRIP
4542
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3729
 
4543
3730
 
4544
3731
AC_LIBTOOL_CONFIG($1)
4545
3732
 
4587
3774
AC_LIBTOOL_PROG_CC_C_O($1)
4588
3775
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4589
3776
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3777
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4590
3778
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4591
3779
AC_LIBTOOL_SYS_LIB_STRIP
4592
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4593
3780
AC_LIBTOOL_DLOPEN_SELF($1)
4594
3781
 
4595
3782
AC_LIBTOOL_CONFIG($1)
4654
3841
  # without removal of \ escapes.
4655
3842
  if test -n "${ZSH_VERSION+set}" ; then
4656
3843
    setopt NO_GLOB_SUBST
4657
 
  fi  
 
3844
  fi
4658
3845
  # Now quote all the things that may contain metacharacters while being
4659
3846
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4660
3847
  # variables and quote the copies for generation of the libtool script.
4661
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
3848
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
3849
    SED SHELL STRIP \
4662
3850
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4663
3851
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4664
3852
    deplibs_check_method reload_flag reload_cmds need_locks \
4708
3896
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4709
3897
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4710
3898
    _LT_AC_TAGVAR(module_cmds, $1) | \
4711
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \   
 
3899
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4712
3900
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4713
3901
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4714
3902
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4839
4027
NM=$lt_NM
4840
4028
 
4841
4029
# A symbol stripping program
4842
 
STRIP=$STRIP
 
4030
STRIP=$lt_STRIP
4843
4031
 
4844
4032
# Used to examine libraries when file_magic_cmd begins "file"
4845
4033
MAGIC_CMD=$MAGIC_CMD
4870
4058
libext="$libext"
4871
4059
 
4872
4060
# Shared library suffix (normally ".so").
4873
 
shrext='$shrext'
 
4061
shrext_cmds='$shrext_cmds'
4874
4062
 
4875
4063
# Executable file suffix (normally "").
4876
4064
exeext="$exeext"
5114
4302
  # If there is no Makefile yet, we rely on a make rule to execute
5115
4303
  # `config.status --recheck' to rerun these tests and create the
5116
4304
  # libtool script then.
5117
 
  test -f Makefile && make "$ltmain"
 
4305
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
4306
  if test -f "$ltmain_in"; then
 
4307
    test -f Makefile && make "$ltmain"
 
4308
  fi
5118
4309
fi
5119
4310
])# AC_LIBTOOL_CONFIG
5120
4311
 
5420
4611
            ;;
5421
4612
        esac
5422
4613
        ;;
5423
 
      freebsd*)
 
4614
      freebsd* | kfreebsd*-gnu)
5424
4615
        # FreeBSD uses GNU C++
5425
4616
        ;;
5426
4617
      hpux9* | hpux10* | hpux11*)
5471
4662
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5472
4663
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5473
4664
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5474
 
            ;; 
 
4665
            ;;
5475
4666
          cxx)
5476
4667
            # Compaq C++
5477
4668
            # Make sure the PIC flag is empty.  It appears that all Alpha
5696
4887
 
5697
4888
    linux*)
5698
4889
      case $CC in
5699
 
      icc|ecc)
 
4890
      icc* | ecc*)
5700
4891
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5701
4892
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5702
4893
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5703
4894
        ;;
5704
 
      ccc)
 
4895
      ccc*)
5705
4896
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5706
4897
        # All Alpha code is PIC.
5707
4898
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5831
5022
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5832
5023
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5833
5024
  _LT_AC_TAGVAR(module_cmds, $1)=
5834
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=  
 
5025
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5835
5026
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
5836
5027
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5837
5028
  # include_expsyms should be a list of space-separated symbols to be *always*
5975
5166
      ;;
5976
5167
 
5977
5168
  linux*)
5978
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5169
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5979
5170
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5980
5171
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5981
5172
      supports_anon_versioning=no
6175
5366
      # Tell ltmain to make .lib files, not .a files.
6176
5367
      libext=lib
6177
5368
      # Tell ltmain to make .dll files, not .so files.
6178
 
      shrext=".dll"
 
5369
      shrext_cmds=".dll"
6179
5370
      # FIXME: Setting linknames here is a bad hack.
6180
5371
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6181
5372
      # The linker will automatically build a .lib file if we build a DLL.
6187
5378
      ;;
6188
5379
 
6189
5380
    darwin* | rhapsody*)
6190
 
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
5381
    if test "$GXX" = yes ; then
6191
5382
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6192
5383
      case "$host_os" in
6193
5384
      rhapsody* | darwin1.[[012]])
6194
5385
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6195
5386
        ;;
6196
5387
      *) # Darwin 1.3 on
6197
 
        test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
5388
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5389
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
5390
      else
 
5391
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
5392
          10.[[012]])
 
5393
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
5394
            ;;
 
5395
          10.*)
 
5396
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
5397
            ;;
 
5398
        esac
 
5399
      fi
6198
5400
        ;;
6199
5401
      esac
6200
 
      # FIXME: Relying on posixy $() will cause problems for
6201
 
      #        cross-compilation, but unfortunately the echo tests do not
6202
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6203
 
      #        `"' quotes if we put them in here... so don't!
6204
5402
        lt_int_apple_cc_single_mod=no
6205
5403
        output_verbose_link_cmd='echo'
6206
5404
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6211
5409
        else
6212
5410
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6213
5411
      fi
6214
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
5412
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6215
5413
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6216
5414
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6217
5415
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6218
5416
        else
6219
5417
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6220
5418
        fi
6221
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
5419
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6222
5420
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6223
5421
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6224
5422
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6225
5423
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6226
5424
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6227
 
    fi  
 
5425
    else
 
5426
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5427
    fi
6228
5428
      ;;
6229
5429
 
6230
5430
    dgux*)
6257
5457
      ;;
6258
5458
 
6259
5459
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6260
 
    freebsd*)
 
5460
    freebsd* | kfreebsd*-gnu)
6261
5461
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6262
5462
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6263
5463
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6574
5774
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6575
5775
      $rm conftest*
6576
5776
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6577
 
  
 
5777
 
6578
5778
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6579
5779
        soname=conftest
6580
5780
        lib=conftest
6736
5936
AC_MSG_RESULT([$SED])
6737
5937
])
6738
5938
 
 
5939
#                                                        -*- Autoconf -*-
 
5940
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
 
5941
# Generated from amversion.in; do not edit by hand.
 
5942
 
 
5943
# This program is free software; you can redistribute it and/or modify
 
5944
# it under the terms of the GNU General Public License as published by
 
5945
# the Free Software Foundation; either version 2, or (at your option)
 
5946
# any later version.
 
5947
 
 
5948
# This program is distributed in the hope that it will be useful,
 
5949
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
5950
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
5951
# GNU General Public License for more details.
 
5952
 
 
5953
# You should have received a copy of the GNU General Public License
 
5954
# along with this program; if not, write to the Free Software
 
5955
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
5956
 
 
5957
# AM_AUTOMAKE_VERSION(VERSION)
 
5958
# ----------------------------
 
5959
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
5960
# generated from the m4 files accompanying Automake X.Y.
 
5961
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
 
5962
 
 
5963
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
5964
# -------------------------------
 
5965
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
5966
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
5967
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
5968
         [AM_AUTOMAKE_VERSION([1.8.3])])
 
5969
 
 
5970
# AM_AUX_DIR_EXPAND
 
5971
 
 
5972
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
5973
 
 
5974
# This program is free software; you can redistribute it and/or modify
 
5975
# it under the terms of the GNU General Public License as published by
 
5976
# the Free Software Foundation; either version 2, or (at your option)
 
5977
# any later version.
 
5978
 
 
5979
# This program is distributed in the hope that it will be useful,
 
5980
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
5981
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
5982
# GNU General Public License for more details.
 
5983
 
 
5984
# You should have received a copy of the GNU General Public License
 
5985
# along with this program; if not, write to the Free Software
 
5986
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
5987
# 02111-1307, USA.
 
5988
 
 
5989
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
5990
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
5991
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
5992
#
 
5993
# Of course, Automake must honor this variable whenever it calls a
 
5994
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
5995
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
5996
# depending on how configure is run.  This is pretty annoying, since
 
5997
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
5998
# source directory, any form will work fine, but in subdirectories a
 
5999
# relative path needs to be adjusted first.
 
6000
#
 
6001
# $ac_aux_dir/missing
 
6002
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
6003
# $top_srcdir/$ac_aux_dir/missing
 
6004
#    fails if $ac_aux_dir is absolute,
 
6005
#    fails when called from a subdirectory in a VPATH build with
 
6006
#          a relative $ac_aux_dir
 
6007
#
 
6008
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
6009
# are both prefixed by $srcdir.  In an in-source build this is usually
 
6010
# harmless because $srcdir is `.', but things will broke when you
 
6011
# start a VPATH build or use an absolute $srcdir.
 
6012
#
 
6013
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
6014
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
6015
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
6016
# and then we would define $MISSING as
 
6017
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
6018
# This will work as long as MISSING is not called from configure, because
 
6019
# unfortunately $(top_srcdir) has no meaning in configure.
 
6020
# However there are other variables, like CC, which are often used in
 
6021
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
6022
#
 
6023
# Another solution, used here, is to always expand $ac_aux_dir to an
 
6024
# absolute PATH.  The drawback is that using absolute paths prevent a
 
6025
# configured tree to be moved without reconfiguration.
 
6026
 
 
6027
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
6028
[dnl Rely on autoconf to set up CDPATH properly.
 
6029
AC_PREREQ([2.50])dnl
 
6030
# expand $ac_aux_dir to an absolute path
 
6031
am_aux_dir=`cd $ac_aux_dir && pwd`
 
6032
])
 
6033
 
 
6034
# AM_CONDITIONAL                                              -*- Autoconf -*-
 
6035
 
 
6036
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
6037
 
 
6038
# This program is free software; you can redistribute it and/or modify
 
6039
# it under the terms of the GNU General Public License as published by
 
6040
# the Free Software Foundation; either version 2, or (at your option)
 
6041
# any later version.
 
6042
 
 
6043
# This program is distributed in the hope that it will be useful,
 
6044
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6045
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6046
# GNU General Public License for more details.
 
6047
 
 
6048
# You should have received a copy of the GNU General Public License
 
6049
# along with this program; if not, write to the Free Software
 
6050
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6051
# 02111-1307, USA.
 
6052
 
 
6053
# serial 6
 
6054
 
 
6055
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
6056
# -------------------------------------
 
6057
# Define a conditional.
 
6058
AC_DEFUN([AM_CONDITIONAL],
 
6059
[AC_PREREQ(2.52)dnl
 
6060
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
6061
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
6062
AC_SUBST([$1_TRUE])
 
6063
AC_SUBST([$1_FALSE])
 
6064
if $2; then
 
6065
  $1_TRUE=
 
6066
  $1_FALSE='#'
 
6067
else
 
6068
  $1_TRUE='#'
 
6069
  $1_FALSE=
 
6070
fi
 
6071
AC_CONFIG_COMMANDS_PRE(
 
6072
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
6073
  AC_MSG_ERROR([conditional "$1" was never defined.
 
6074
Usually this means the macro was only invoked conditionally.])
 
6075
fi])])
 
6076
 
 
6077
# serial 7                                              -*- Autoconf -*-
 
6078
 
 
6079
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
 
6080
# Free Software Foundation, Inc.
 
6081
 
 
6082
# This program is free software; you can redistribute it and/or modify
 
6083
# it under the terms of the GNU General Public License as published by
 
6084
# the Free Software Foundation; either version 2, or (at your option)
 
6085
# any later version.
 
6086
 
 
6087
# This program is distributed in the hope that it will be useful,
 
6088
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6089
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6090
# GNU General Public License for more details.
 
6091
 
 
6092
# You should have received a copy of the GNU General Public License
 
6093
# along with this program; if not, write to the Free Software
 
6094
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6095
# 02111-1307, USA.
 
6096
 
 
6097
 
 
6098
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
6099
# written in clear, in which case automake, when reading aclocal.m4,
 
6100
# will think it sees a *use*, and therefore will trigger all it's
 
6101
# C support machinery.  Also note that it means that autoscan, seeing
 
6102
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
6103
 
 
6104
 
 
6105
 
 
6106
# _AM_DEPENDENCIES(NAME)
 
6107
# ----------------------
 
6108
# See how the compiler implements dependency checking.
 
6109
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
6110
# We try a few techniques and use that to set a single cache variable.
 
6111
#
 
6112
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
6113
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
6114
# dependency, and given that the user is not expected to run this macro,
 
6115
# just rely on AC_PROG_CC.
 
6116
AC_DEFUN([_AM_DEPENDENCIES],
 
6117
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
6118
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
6119
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
6120
AC_REQUIRE([AM_DEP_TRACK])dnl
 
6121
 
 
6122
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
6123
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
6124
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6125
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
6126
                   [depcc="$$1"   am_compiler_list=])
 
6127
 
 
6128
AC_CACHE_CHECK([dependency style of $depcc],
 
6129
               [am_cv_$1_dependencies_compiler_type],
 
6130
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6131
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6132
  # making bogus files that we don't know about and never remove.  For
 
6133
  # instance it was reported that on HP-UX the gcc test will end up
 
6134
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6135
  # in D'.
 
6136
  mkdir conftest.dir
 
6137
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6138
  # using a relative directory.
 
6139
  cp "$am_depcomp" conftest.dir
 
6140
  cd conftest.dir
 
6141
  # We will build objects and dependencies in a subdirectory because
 
6142
  # it helps to detect inapplicable dependency modes.  For instance
 
6143
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6144
  # side effect of compilation, but ICC will put the dependencies in
 
6145
  # the current directory while Tru64 will put them in the object
 
6146
  # directory.
 
6147
  mkdir sub
 
6148
 
 
6149
  am_cv_$1_dependencies_compiler_type=none
 
6150
  if test "$am_compiler_list" = ""; then
 
6151
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
6152
  fi
 
6153
  for depmode in $am_compiler_list; do
 
6154
    # Setup a source with many dependencies, because some compilers
 
6155
    # like to wrap large dependency lists on column 80 (with \), and
 
6156
    # we should not choose a depcomp mode which is confused by this.
 
6157
    #
 
6158
    # We need to recreate these files for each test, as the compiler may
 
6159
    # overwrite some of them when testing with obscure command lines.
 
6160
    # This happens at least with the AIX C compiler.
 
6161
    : > sub/conftest.c
 
6162
    for i in 1 2 3 4 5 6; do
 
6163
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6164
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6165
      # Solaris 8's {/usr,}/bin/sh.
 
6166
      touch sub/conftst$i.h
 
6167
    done
 
6168
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6169
 
 
6170
    case $depmode in
 
6171
    nosideeffect)
 
6172
      # after this tag, mechanisms are not by side-effect, so they'll
 
6173
      # only be used when explicitly requested
 
6174
      if test "x$enable_dependency_tracking" = xyes; then
 
6175
        continue
 
6176
      else
 
6177
        break
 
6178
      fi
 
6179
      ;;
 
6180
    none) break ;;
 
6181
    esac
 
6182
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6183
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6184
    # handle `-M -o', and we need to detect this.
 
6185
    if depmode=$depmode \
 
6186
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6187
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6188
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6189
         >/dev/null 2>conftest.err &&
 
6190
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6191
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6192
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6193
      # icc doesn't choke on unknown options, it will just issue warnings
 
6194
      # (even with -Werror).  So we grep stderr for any message
 
6195
      # that says an option was ignored.
 
6196
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
6197
        am_cv_$1_dependencies_compiler_type=$depmode
 
6198
        break
 
6199
      fi
 
6200
    fi
 
6201
  done
 
6202
 
 
6203
  cd ..
 
6204
  rm -rf conftest.dir
 
6205
else
 
6206
  am_cv_$1_dependencies_compiler_type=none
 
6207
fi
 
6208
])
 
6209
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
6210
AM_CONDITIONAL([am__fastdep$1], [
 
6211
  test "x$enable_dependency_tracking" != xno \
 
6212
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
6213
])
 
6214
 
 
6215
 
 
6216
# AM_SET_DEPDIR
 
6217
# -------------
 
6218
# Choose a directory name for dependency files.
 
6219
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
6220
AC_DEFUN([AM_SET_DEPDIR],
 
6221
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6222
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
6223
])
 
6224
 
 
6225
 
 
6226
# AM_DEP_TRACK
 
6227
# ------------
 
6228
AC_DEFUN([AM_DEP_TRACK],
 
6229
[AC_ARG_ENABLE(dependency-tracking,
 
6230
[  --disable-dependency-tracking  speeds up one-time build
 
6231
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
6232
if test "x$enable_dependency_tracking" != xno; then
 
6233
  am_depcomp="$ac_aux_dir/depcomp"
 
6234
  AMDEPBACKSLASH='\'
 
6235
fi
 
6236
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
6237
AC_SUBST([AMDEPBACKSLASH])
 
6238
])
 
6239
 
 
6240
# Generate code to set up dependency tracking.   -*- Autoconf -*-
 
6241
 
 
6242
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
6243
 
 
6244
# This program is free software; you can redistribute it and/or modify
 
6245
# it under the terms of the GNU General Public License as published by
 
6246
# the Free Software Foundation; either version 2, or (at your option)
 
6247
# any later version.
 
6248
 
 
6249
# This program is distributed in the hope that it will be useful,
 
6250
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6251
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6252
# GNU General Public License for more details.
 
6253
 
 
6254
# You should have received a copy of the GNU General Public License
 
6255
# along with this program; if not, write to the Free Software
 
6256
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6257
# 02111-1307, USA.
 
6258
 
 
6259
#serial 2
 
6260
 
 
6261
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6262
# ------------------------------
 
6263
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6264
[for mf in $CONFIG_FILES; do
 
6265
  # Strip MF so we end up with the name of the file.
 
6266
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
6267
  # Check whether this is an Automake generated Makefile or not.
 
6268
  # We used to match only the files named `Makefile.in', but
 
6269
  # some people rename them; so instead we look at the file content.
 
6270
  # Grep'ing the first line is not enough: some people post-process
 
6271
  # each Makefile.in and add a new line on top of each file to say so.
 
6272
  # So let's grep whole file.
 
6273
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6274
    dirpart=`AS_DIRNAME("$mf")`
 
6275
  else
 
6276
    continue
 
6277
  fi
 
6278
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
 
6279
  # Extract the definition of DEP_FILES from the Makefile without
 
6280
  # running `make'.
 
6281
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
6282
  test -z "$DEPDIR" && continue
 
6283
  # When using ansi2knr, U may be empty or an underscore; expand it
 
6284
  U=`sed -n 's/^U = //p' < "$mf"`
 
6285
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
6286
  # We invoke sed twice because it is the simplest approach to
 
6287
  # changing $(DEPDIR) to its actual value in the expansion.
 
6288
  for file in `sed -n '
 
6289
    /^DEP_FILES = .*\\\\$/ {
 
6290
      s/^DEP_FILES = //
 
6291
      :loop
 
6292
        s/\\\\$//
 
6293
        p
 
6294
        n
 
6295
        /\\\\$/ b loop
 
6296
      p
 
6297
    }
 
6298
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
6299
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
6300
    # Make sure the directory exists.
 
6301
    test -f "$dirpart/$file" && continue
 
6302
    fdir=`AS_DIRNAME(["$file"])`
 
6303
    AS_MKDIR_P([$dirpart/$fdir])
 
6304
    # echo "creating $dirpart/$file"
 
6305
    echo '# dummy' > "$dirpart/$file"
 
6306
  done
 
6307
done
 
6308
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6309
 
 
6310
 
 
6311
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
6312
# -----------------------------
 
6313
# This macro should only be invoked once -- use via AC_REQUIRE.
 
6314
#
 
6315
# This code is only required when automatic dependency tracking
 
6316
# is enabled.  FIXME.  This creates each `.P' file that we will
 
6317
# need in order to bootstrap the dependency handling code.
 
6318
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6319
[AC_CONFIG_COMMANDS([depfiles],
 
6320
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6321
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
6322
])
 
6323
 
 
6324
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
 
6325
 
 
6326
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
6327
 
 
6328
# This program is free software; you can redistribute it and/or modify
 
6329
# it under the terms of the GNU General Public License as published by
 
6330
# the Free Software Foundation; either version 2, or (at your option)
 
6331
# any later version.
 
6332
 
 
6333
# This program is distributed in the hope that it will be useful,
 
6334
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6335
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6336
# GNU General Public License for more details.
 
6337
 
 
6338
# You should have received a copy of the GNU General Public License
 
6339
# along with this program; if not, write to the Free Software
 
6340
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6341
# 02111-1307, USA.
 
6342
 
 
6343
# serial 7
 
6344
 
 
6345
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
6346
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
6347
 
 
6348
# Do all the work for Automake.                            -*- Autoconf -*-
 
6349
 
 
6350
# This macro actually does too much some checks are only needed if
 
6351
# your package does certain things.  But this isn't really a big deal.
 
6352
 
 
6353
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 
6354
# Free Software Foundation, Inc.
 
6355
 
 
6356
# This program is free software; you can redistribute it and/or modify
 
6357
# it under the terms of the GNU General Public License as published by
 
6358
# the Free Software Foundation; either version 2, or (at your option)
 
6359
# any later version.
 
6360
 
 
6361
# This program is distributed in the hope that it will be useful,
 
6362
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6363
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6364
# GNU General Public License for more details.
 
6365
 
 
6366
# You should have received a copy of the GNU General Public License
 
6367
# along with this program; if not, write to the Free Software
 
6368
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6369
# 02111-1307, USA.
 
6370
 
 
6371
# serial 11
 
6372
 
 
6373
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
6374
# AM_INIT_AUTOMAKE([OPTIONS])
 
6375
# -----------------------------------------------
 
6376
# The call with PACKAGE and VERSION arguments is the old style
 
6377
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
6378
# and VERSION should now be passed to AC_INIT and removed from
 
6379
# the call to AM_INIT_AUTOMAKE.
 
6380
# We support both call styles for the transition.  After
 
6381
# the next Automake release, Autoconf can make the AC_INIT
 
6382
# arguments mandatory, and then we can depend on a new Autoconf
 
6383
# release and drop the old call support.
 
6384
AC_DEFUN([AM_INIT_AUTOMAKE],
 
6385
[AC_PREREQ([2.58])dnl
 
6386
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
6387
dnl the ones we care about.
 
6388
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
6389
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
6390
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
6391
# test to see if srcdir already configured
 
6392
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
6393
   test -f $srcdir/config.status; then
 
6394
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6395
fi
 
6396
 
 
6397
# test whether we have cygpath
 
6398
if test -z "$CYGPATH_W"; then
 
6399
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
6400
    CYGPATH_W='cygpath -w'
 
6401
  else
 
6402
    CYGPATH_W=echo
 
6403
  fi
 
6404
fi
 
6405
AC_SUBST([CYGPATH_W])
 
6406
 
 
6407
# Define the identity of the package.
 
6408
dnl Distinguish between old-style and new-style calls.
 
6409
m4_ifval([$2],
 
6410
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
6411
 AC_SUBST([PACKAGE], [$1])dnl
 
6412
 AC_SUBST([VERSION], [$2])],
 
6413
[_AM_SET_OPTIONS([$1])dnl
 
6414
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
6415
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
6416
 
 
6417
_AM_IF_OPTION([no-define],,
 
6418
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
6419
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
6420
 
 
6421
# Some tools Automake needs.
 
6422
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
6423
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
6424
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
6425
AM_MISSING_PROG(AUTOCONF, autoconf)
 
6426
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
6427
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
6428
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
6429
AM_MISSING_PROG(AMTAR, tar)
 
6430
AM_PROG_INSTALL_SH
 
6431
AM_PROG_INSTALL_STRIP
 
6432
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
6433
# We need awk for the "check" target.  The system "awk" is bad on
 
6434
# some platforms.
 
6435
AC_REQUIRE([AC_PROG_AWK])dnl
 
6436
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
6437
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6438
 
 
6439
_AM_IF_OPTION([no-dependencies],,
 
6440
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
6441
                  [_AM_DEPENDENCIES(CC)],
 
6442
                  [define([AC_PROG_CC],
 
6443
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
6444
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
6445
                  [_AM_DEPENDENCIES(CXX)],
 
6446
                  [define([AC_PROG_CXX],
 
6447
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
6448
])
 
6449
])
 
6450
 
 
6451
 
 
6452
# When config.status generates a header, we must update the stamp-h file.
 
6453
# This file resides in the same directory as the config header
 
6454
# that is generated.  The stamp files are numbered to have different names.
 
6455
 
 
6456
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
6457
# loop where config.status creates the headers, so we can generate
 
6458
# our stamp files there.
 
6459
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
6460
[# Compute $1's index in $config_headers.
 
6461
_am_stamp_count=1
 
6462
for _am_header in $config_headers :; do
 
6463
  case $_am_header in
 
6464
    $1 | $1:* )
 
6465
      break ;;
 
6466
    * )
 
6467
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
6468
  esac
 
6469
done
 
6470
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
6471
 
 
6472
# AM_PROG_INSTALL_SH
 
6473
# ------------------
 
6474
# Define $install_sh.
 
6475
 
 
6476
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
6477
 
 
6478
# This program is free software; you can redistribute it and/or modify
 
6479
# it under the terms of the GNU General Public License as published by
 
6480
# the Free Software Foundation; either version 2, or (at your option)
 
6481
# any later version.
 
6482
 
 
6483
# This program is distributed in the hope that it will be useful,
 
6484
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6485
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6486
# GNU General Public License for more details.
 
6487
 
 
6488
# You should have received a copy of the GNU General Public License
 
6489
# along with this program; if not, write to the Free Software
 
6490
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6491
# 02111-1307, USA.
 
6492
 
 
6493
AC_DEFUN([AM_PROG_INSTALL_SH],
 
6494
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6495
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
6496
AC_SUBST(install_sh)])
 
6497
 
 
6498
#                                                          -*- Autoconf -*-
 
6499
# Copyright (C) 2003  Free Software Foundation, Inc.
 
6500
 
 
6501
# This program is free software; you can redistribute it and/or modify
 
6502
# it under the terms of the GNU General Public License as published by
 
6503
# the Free Software Foundation; either version 2, or (at your option)
 
6504
# any later version.
 
6505
 
 
6506
# This program is distributed in the hope that it will be useful,
 
6507
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6508
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6509
# GNU General Public License for more details.
 
6510
 
 
6511
# You should have received a copy of the GNU General Public License
 
6512
# along with this program; if not, write to the Free Software
 
6513
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6514
# 02111-1307, USA.
 
6515
 
 
6516
# serial 1
 
6517
 
 
6518
# Check whether the underlying file-system supports filenames
 
6519
# with a leading dot.  For instance MS-DOS doesn't.
 
6520
AC_DEFUN([AM_SET_LEADING_DOT],
 
6521
[rm -rf .tst 2>/dev/null
 
6522
mkdir .tst 2>/dev/null
 
6523
if test -d .tst; then
 
6524
  am__leading_dot=.
 
6525
else
 
6526
  am__leading_dot=_
 
6527
fi
 
6528
rmdir .tst 2>/dev/null
 
6529
AC_SUBST([am__leading_dot])])
 
6530
 
 
6531
# Check to see how 'make' treats includes.      -*- Autoconf -*-
 
6532
 
 
6533
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 
6534
 
 
6535
# This program is free software; you can redistribute it and/or modify
 
6536
# it under the terms of the GNU General Public License as published by
 
6537
# the Free Software Foundation; either version 2, or (at your option)
 
6538
# any later version.
 
6539
 
 
6540
# This program is distributed in the hope that it will be useful,
 
6541
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6542
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6543
# GNU General Public License for more details.
 
6544
 
 
6545
# You should have received a copy of the GNU General Public License
 
6546
# along with this program; if not, write to the Free Software
 
6547
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6548
# 02111-1307, USA.
 
6549
 
 
6550
# serial 2
 
6551
 
 
6552
# AM_MAKE_INCLUDE()
 
6553
# -----------------
 
6554
# Check to see how make treats includes.
 
6555
AC_DEFUN([AM_MAKE_INCLUDE],
 
6556
[am_make=${MAKE-make}
 
6557
cat > confinc << 'END'
 
6558
am__doit:
 
6559
        @echo done
 
6560
.PHONY: am__doit
 
6561
END
 
6562
# If we don't find an include directive, just comment out the code.
 
6563
AC_MSG_CHECKING([for style of include used by $am_make])
 
6564
am__include="#"
 
6565
am__quote=
 
6566
_am_result=none
 
6567
# First try GNU make style include.
 
6568
echo "include confinc" > confmf
 
6569
# We grep out `Entering directory' and `Leaving directory'
 
6570
# messages which can occur if `w' ends up in MAKEFLAGS.
 
6571
# In particular we don't look at `^make:' because GNU make might
 
6572
# be invoked under some other name (usually "gmake"), in which
 
6573
# case it prints its new name instead of `make'.
 
6574
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
6575
   am__include=include
 
6576
   am__quote=
 
6577
   _am_result=GNU
 
6578
fi
 
6579
# Now try BSD make style include.
 
6580
if test "$am__include" = "#"; then
 
6581
   echo '.include "confinc"' > confmf
 
6582
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
6583
      am__include=.include
 
6584
      am__quote="\""
 
6585
      _am_result=BSD
 
6586
   fi
 
6587
fi
 
6588
AC_SUBST([am__include])
 
6589
AC_SUBST([am__quote])
 
6590
AC_MSG_RESULT([$_am_result])
 
6591
rm -f confinc confmf
 
6592
])
 
6593
 
 
6594
#  -*- Autoconf -*-
 
6595
 
 
6596
 
 
6597
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
 
6598
 
 
6599
# This program is free software; you can redistribute it and/or modify
 
6600
# it under the terms of the GNU General Public License as published by
 
6601
# the Free Software Foundation; either version 2, or (at your option)
 
6602
# any later version.
 
6603
 
 
6604
# This program is distributed in the hope that it will be useful,
 
6605
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6606
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6607
# GNU General Public License for more details.
 
6608
 
 
6609
# You should have received a copy of the GNU General Public License
 
6610
# along with this program; if not, write to the Free Software
 
6611
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6612
# 02111-1307, USA.
 
6613
 
 
6614
# serial 3
 
6615
 
 
6616
# AM_MISSING_PROG(NAME, PROGRAM)
 
6617
# ------------------------------
 
6618
AC_DEFUN([AM_MISSING_PROG],
 
6619
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
6620
$1=${$1-"${am_missing_run}$2"}
 
6621
AC_SUBST($1)])
 
6622
 
 
6623
 
 
6624
# AM_MISSING_HAS_RUN
 
6625
# ------------------
 
6626
# Define MISSING if not defined so far and test if it supports --run.
 
6627
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
6628
AC_DEFUN([AM_MISSING_HAS_RUN],
 
6629
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6630
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
6631
# Use eval to expand $SHELL
 
6632
if eval "$MISSING --run true"; then
 
6633
  am_missing_run="$MISSING --run "
 
6634
else
 
6635
  am_missing_run=
 
6636
  AC_MSG_WARN([`missing' script is too old or missing])
 
6637
fi
 
6638
])
 
6639
 
 
6640
# AM_PROG_MKDIR_P
 
6641
# ---------------
 
6642
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
6643
 
 
6644
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
 
6645
 
 
6646
# This program is free software; you can redistribute it and/or modify
 
6647
# it under the terms of the GNU General Public License as published by
 
6648
# the Free Software Foundation; either version 2, or (at your option)
 
6649
# any later version.
 
6650
 
 
6651
# This program is distributed in the hope that it will be useful,
 
6652
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6653
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6654
# GNU General Public License for more details.
 
6655
 
 
6656
# You should have received a copy of the GNU General Public License
 
6657
# along with this program; if not, write to the Free Software
 
6658
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6659
# 02111-1307, USA.
 
6660
 
 
6661
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
6662
# created by `make install' are always world readable, even if the
 
6663
# installer happens to have an overly restrictive umask (e.g. 077).
 
6664
# This was a mistake.  There are at least two reasons why we must not
 
6665
# use `-m 0755':
 
6666
#   - it causes special bits like SGID to be ignored,
 
6667
#   - it may be too restrictive (some setups expect 775 directories).
 
6668
#
 
6669
# Do not use -m 0755 and let people choose whatever they expect by
 
6670
# setting umask.
 
6671
#
 
6672
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
6673
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
6674
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
6675
# concurrently, both version can detect that a/ is missing, but only
 
6676
# one can create it and the other will error out.  Consequently we
 
6677
# restrict ourselves to GNU make (using the --version option ensures
 
6678
# this.)
 
6679
AC_DEFUN([AM_PROG_MKDIR_P],
 
6680
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
6681
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
6682
  # argument.  Indeed, we sometimes output rules like
 
6683
  #   $(mkdir_p) $(somedir)
 
6684
  # where $(somedir) is conditionally defined.
 
6685
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
6686
  # expensive solution, as it forces Make to start a sub-shell.)
 
6687
  mkdir_p='mkdir -p -- .'
 
6688
else
 
6689
  # On NextStep and OpenStep, the `mkdir' command does not
 
6690
  # recognize any option.  It will interpret all options as
 
6691
  # directories to create, and then abort because `.' already
 
6692
  # exists.
 
6693
  for d in ./-p ./--version;
 
6694
  do
 
6695
    test -d $d && rmdir $d
 
6696
  done
 
6697
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
6698
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
6699
    mkdir_p='$(mkinstalldirs)'
 
6700
  else
 
6701
    mkdir_p='$(install_sh) -d'
 
6702
  fi
 
6703
fi
 
6704
AC_SUBST([mkdir_p])])
 
6705
 
 
6706
# Helper functions for option handling.                    -*- Autoconf -*-
 
6707
 
 
6708
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
 
6709
 
 
6710
# This program is free software; you can redistribute it and/or modify
 
6711
# it under the terms of the GNU General Public License as published by
 
6712
# the Free Software Foundation; either version 2, or (at your option)
 
6713
# any later version.
 
6714
 
 
6715
# This program is distributed in the hope that it will be useful,
 
6716
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6717
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6718
# GNU General Public License for more details.
 
6719
 
 
6720
# You should have received a copy of the GNU General Public License
 
6721
# along with this program; if not, write to the Free Software
 
6722
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6723
# 02111-1307, USA.
 
6724
 
 
6725
# serial 2
 
6726
 
 
6727
# _AM_MANGLE_OPTION(NAME)
 
6728
# -----------------------
 
6729
AC_DEFUN([_AM_MANGLE_OPTION],
 
6730
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
6731
 
 
6732
# _AM_SET_OPTION(NAME)
 
6733
# ------------------------------
 
6734
# Set option NAME.  Presently that only means defining a flag for this option.
 
6735
AC_DEFUN([_AM_SET_OPTION],
 
6736
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
6737
 
 
6738
# _AM_SET_OPTIONS(OPTIONS)
 
6739
# ----------------------------------
 
6740
# OPTIONS is a space-separated list of Automake options.
 
6741
AC_DEFUN([_AM_SET_OPTIONS],
 
6742
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
6743
 
 
6744
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
6745
# -------------------------------------------
 
6746
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
6747
AC_DEFUN([_AM_IF_OPTION],
 
6748
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
6749
 
 
6750
#
 
6751
# Check to make sure that the build environment is sane.
 
6752
#
 
6753
 
 
6754
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
 
6755
 
 
6756
# This program is free software; you can redistribute it and/or modify
 
6757
# it under the terms of the GNU General Public License as published by
 
6758
# the Free Software Foundation; either version 2, or (at your option)
 
6759
# any later version.
 
6760
 
 
6761
# This program is distributed in the hope that it will be useful,
 
6762
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6763
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6764
# GNU General Public License for more details.
 
6765
 
 
6766
# You should have received a copy of the GNU General Public License
 
6767
# along with this program; if not, write to the Free Software
 
6768
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6769
# 02111-1307, USA.
 
6770
 
 
6771
# serial 3
 
6772
 
 
6773
# AM_SANITY_CHECK
 
6774
# ---------------
 
6775
AC_DEFUN([AM_SANITY_CHECK],
 
6776
[AC_MSG_CHECKING([whether build environment is sane])
 
6777
# Just in case
 
6778
sleep 1
 
6779
echo timestamp > conftest.file
 
6780
# Do `set' in a subshell so we don't clobber the current shell's
 
6781
# arguments.  Must try -L first in case configure is actually a
 
6782
# symlink; some systems play weird games with the mod time of symlinks
 
6783
# (eg FreeBSD returns the mod time of the symlink's containing
 
6784
# directory).
 
6785
if (
 
6786
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
6787
   if test "$[*]" = "X"; then
 
6788
      # -L didn't work.
 
6789
      set X `ls -t $srcdir/configure conftest.file`
 
6790
   fi
 
6791
   rm -f conftest.file
 
6792
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
6793
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
6794
 
 
6795
      # If neither matched, then we have a broken ls.  This can happen
 
6796
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
6797
      # broken ls alias from the environment.  This has actually
 
6798
      # happened.  Such a system could not be considered "sane".
 
6799
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
6800
alias in your environment])
 
6801
   fi
 
6802
 
 
6803
   test "$[2]" = conftest.file
 
6804
   )
 
6805
then
 
6806
   # Ok.
 
6807
   :
 
6808
else
 
6809
   AC_MSG_ERROR([newly created file is older than distributed files!
 
6810
Check your system clock])
 
6811
fi
 
6812
AC_MSG_RESULT(yes)])
 
6813
 
 
6814
# AM_PROG_INSTALL_STRIP
 
6815
 
 
6816
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
 
6817
 
 
6818
# This program is free software; you can redistribute it and/or modify
 
6819
# it under the terms of the GNU General Public License as published by
 
6820
# the Free Software Foundation; either version 2, or (at your option)
 
6821
# any later version.
 
6822
 
 
6823
# This program is distributed in the hope that it will be useful,
 
6824
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
6825
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
6826
# GNU General Public License for more details.
 
6827
 
 
6828
# You should have received a copy of the GNU General Public License
 
6829
# along with this program; if not, write to the Free Software
 
6830
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
6831
# 02111-1307, USA.
 
6832
 
 
6833
# One issue with vendor `install' (even GNU) is that you can't
 
6834
# specify the program used to strip binaries.  This is especially
 
6835
# annoying in cross-compiling environments, where the build's strip
 
6836
# is unlikely to handle the host's binaries.
 
6837
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
6838
# always use install-sh in `make install-strip', and initialize
 
6839
# STRIPPROG with the value of the STRIP variable (set by the user).
 
6840
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
6841
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
6842
# Installed binaries are usually stripped using `strip' when the user
 
6843
# run `make install-strip'.  However `strip' might not be the right
 
6844
# tool to use in cross-compilation environments, therefore Automake
 
6845
# will honor the `STRIP' environment variable to overrule this program.
 
6846
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
6847
if test "$cross_compiling" != no; then
 
6848
  AC_CHECK_TOOL([STRIP], [strip], :)
 
6849
fi
 
6850
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
6851
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
6852