~ubuntu-branches/ubuntu/karmic/xfce4-session/karmic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2005-11-06 22:01:12 UTC
  • mto: (4.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051106220112-5rusox237ymjghsp
Tags: upstream-4.2.3
ImportĀ upstreamĀ versionĀ 4.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
# 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.6])])
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
 
# Add --enable-maintainer-mode option to configure.
863
 
# From Jim Meyering
864
 
 
865
 
# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
866
 
 
867
 
# This program is free software; you can redistribute it and/or modify
868
 
# it under the terms of the GNU General Public License as published by
869
 
# the Free Software Foundation; either version 2, or (at your option)
870
 
# any later version.
871
 
 
872
 
# This program is distributed in the hope that it will be useful,
873
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
874
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
875
 
# GNU General Public License for more details.
876
 
 
877
 
# You should have received a copy of the GNU General Public License
878
 
# along with this program; if not, write to the Free Software
879
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
880
 
# 02111-1307, USA.
881
 
 
882
 
# serial 2
883
 
 
884
 
AC_DEFUN([AM_MAINTAINER_MODE],
885
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
886
 
  dnl maintainer-mode is disabled by default
887
 
  AC_ARG_ENABLE(maintainer-mode,
888
 
[  --enable-maintainer-mode enable make rules and dependencies not useful
889
 
                          (and sometimes confusing) to the casual installer],
890
 
      USE_MAINTAINER_MODE=$enableval,
891
 
      USE_MAINTAINER_MODE=no)
892
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
893
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
894
 
  MAINT=$MAINTAINER_MODE_TRUE
895
 
  AC_SUBST(MAINT)dnl
896
 
]
897
 
)
898
 
 
899
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
900
 
 
901
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
902
15
 
903
16
# serial 47 AC_PROG_LIBTOOL
1010
123
 
1011
124
# Sed substitution that helps us do robust quoting.  It backslashifies
1012
125
# metacharacters that are still active within double-quoted strings.
1013
 
Xsed='sed -e s/^X//'
 
126
Xsed='sed -e 1s/^X//'
1014
127
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1015
128
 
1016
129
# Same as above, but do not quote variable references.
1030
143
default_ofile=libtool
1031
144
can_build_shared=yes
1032
145
 
1033
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
146
# All known linkers require a `.a' archive for static linking (except MSVC,
1034
147
# which needs '.lib').
1035
148
libext=a
1036
149
ltmain="$ac_aux_dir/ltmain.sh"
1078
191
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1079
192
fi
1080
193
 
 
194
_LT_CC_BASENAME([$compiler])
 
195
 
1081
196
# Only perform the check for file, if the check method requires it
1082
197
case $deplibs_check_method in
1083
198
file_magic*)
1123
238
])# _LT_AC_SYS_COMPILER
1124
239
 
1125
240
 
 
241
# _LT_CC_BASENAME(CC)
 
242
# -------------------
 
243
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
244
AC_DEFUN([_LT_CC_BASENAME],
 
245
[for cc_temp in $1""; do
 
246
  case $cc_temp in
 
247
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
248
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
249
    \-*) ;;
 
250
    *) break;;
 
251
  esac
 
252
done
 
253
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
254
])
 
255
 
 
256
 
 
257
# _LT_COMPILER_BOILERPLATE
 
258
# ------------------------
 
259
# Check for compiler boilerplate output or warnings with
 
260
# the simple compiler test code.
 
261
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
262
[ac_outfile=conftest.$ac_objext
 
263
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
264
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
265
_lt_compiler_boilerplate=`cat conftest.err`
 
266
$rm conftest*
 
267
])# _LT_COMPILER_BOILERPLATE
 
268
 
 
269
 
 
270
# _LT_LINKER_BOILERPLATE
 
271
# ----------------------
 
272
# Check for linker boilerplate output or warnings with
 
273
# the simple link test code.
 
274
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
275
[ac_outfile=conftest.$ac_objext
 
276
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
277
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
278
_lt_linker_boilerplate=`cat conftest.err`
 
279
$rm conftest*
 
280
])# _LT_LINKER_BOILERPLATE
 
281
 
 
282
 
1126
283
# _LT_AC_SYS_LIBPATH_AIX
1127
284
# ----------------------
1128
285
# Links a minimal program and checks the executable
1195
352
 
1196
353
# The HP-UX ksh and POSIX shell print the target directory to stdout
1197
354
# if CDPATH is set.
1198
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
355
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1199
356
 
1200
357
if test -z "$ECHO"; then
1201
358
if test "X${echo_test_string+set}" != Xset; then
1202
359
# find a string as large as possible, as long as the shell can cope with it
1203
360
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1204
361
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1205
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1206
 
       echo_test_string="`eval $cmd`" &&
 
362
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
363
       echo_test_string=`eval $cmd` &&
1207
364
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1208
365
    then
1209
366
      break
1372
529
  # Find out which ABI we are using.
1373
530
  echo 'int i;' > conftest.$ac_ext
1374
531
  if AC_TRY_EVAL(ac_compile); then
1375
 
    case "`/usr/bin/file conftest.o`" in
 
532
    case `/usr/bin/file conftest.o` in
1376
533
    *32-bit*)
1377
534
      case $host in
1378
535
        x86_64-*linux*)
1454
611
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1455
612
   # The option is referenced via a variable to avoid confusing sed.
1456
613
   lt_compile=`echo "$ac_compile" | $SED \
1457
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
614
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1458
615
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1459
616
   -e 's:$: $lt_compiler_flag:'`
1460
617
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1464
621
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1465
622
   if (exit $ac_status) && test -s "$ac_outfile"; then
1466
623
     # The compiler can only warn and ignore the option if not recognized
1467
 
     # So say no if there are warnings
1468
 
     if test ! -s conftest.err; then
 
624
     # So say no if there are warnings other than the usual output.
 
625
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
626
     $SED '/^$/d' conftest.err >conftest.er2
 
627
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1469
628
       $2=yes
1470
629
     fi
1471
630
   fi
1491
650
   LDFLAGS="$LDFLAGS $3"
1492
651
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1493
652
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1494
 
     # The compiler can only warn and ignore the option if not recognized
 
653
     # The linker can only warn and ignore the option if not recognized
1495
654
     # So say no if there are warnings
1496
655
     if test -s conftest.err; then
1497
656
       # Append any errors to the config.log.
1498
657
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
658
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
659
       $SED '/^$/d' conftest.err >conftest.er2
 
660
       if diff conftest.exp conftest.er2 >/dev/null; then
 
661
         $2=yes
 
662
       fi
1499
663
     else
1500
664
       $2=yes
1501
665
     fi
1519
683
AC_MSG_CHECKING([the maximum length of command line arguments])
1520
684
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1521
685
  i=0
1522
 
  testring="ABCD"
 
686
  teststring="ABCD"
1523
687
 
1524
688
  case $build_os in
1525
689
  msdosdjgpp*)
1554
718
    lt_cv_sys_max_cmd_len=8192;
1555
719
    ;;
1556
720
 
1557
 
 *)
 
721
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
722
    # This has been around since 386BSD, at least.  Likely further.
 
723
    if test -x /sbin/sysctl; then
 
724
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
725
    elif test -x /usr/sbin/sysctl; then
 
726
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
727
    else
 
728
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
729
    fi
 
730
    # And add a safety zone
 
731
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
732
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
733
    ;;
 
734
  osf*)
 
735
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
736
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
737
    # nice to cause kernel panics so lets avoid the loop below.
 
738
    # First set a reasonable default.
 
739
    lt_cv_sys_max_cmd_len=16384
 
740
    #
 
741
    if test -x /sbin/sysconfig; then
 
742
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
743
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
744
      esac
 
745
    fi
 
746
    ;;
 
747
  *)
1558
748
    # If test is not a shell built-in, we'll probably end up computing a
1559
749
    # maximum length that is only half of the actual maximum length, but
1560
750
    # we can't tell.
1561
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
1562
 
               = "XX$testring") >/dev/null 2>&1 &&
1563
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
751
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
752
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
753
               = "XX$teststring") >/dev/null 2>&1 &&
 
754
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1564
755
            lt_cv_sys_max_cmd_len=$new_result &&
1565
756
            test $i != 17 # 1/2 MB should be enough
1566
757
    do
1567
758
      i=`expr $i + 1`
1568
 
      testring=$testring$testring
 
759
      teststring=$teststring$teststring
1569
760
    done
1570
 
    testring=
 
761
    teststring=
1571
762
    # Add a significant safety factor because C++ compilers can tack on massive
1572
763
    # amounts of additional arguments before passing them to the linker.
1573
764
    # It appears as though 1/2 is a usable value.
1663
854
}]
1664
855
EOF
1665
856
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1666
 
    (./conftest; exit; ) 2>/dev/null
 
857
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1667
858
    lt_status=$?
1668
859
    case x$lt_status in
1669
860
      x$lt_dlno_uscore) $1 ;;
1806
997
   mkdir out
1807
998
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1808
999
 
1809
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1810
 
   # that will create temporary files in the current directory regardless of
1811
 
   # the output directory.  Thus, making CWD read-only will cause this test
1812
 
   # to fail, enabling locking or at least warning the user not to do parallel
1813
 
   # builds.
1814
 
   chmod -w .
1815
 
 
1816
1000
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1817
1001
   # Insert the option either (1) after the last *FLAGS variable, or
1818
1002
   # (2) before a word containing "conftest.", or (3) at the end.
1819
1003
   # Note that $ac_compile itself does not contain backslashes and begins
1820
1004
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1821
1005
   lt_compile=`echo "$ac_compile" | $SED \
1822
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1006
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1823
1007
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1824
1008
   -e 's:$: $lt_compiler_flag:'`
1825
1009
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1831
1015
   then
1832
1016
     # The compiler can only warn and ignore the option if not recognized
1833
1017
     # So say no if there are warnings
1834
 
     if test ! -s out/conftest.err; then
 
1018
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
1019
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
1020
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1835
1021
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1836
1022
     fi
1837
1023
   fi
1838
 
   chmod u+w .
 
1024
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1839
1025
   $rm conftest*
1840
1026
   # SGI C++ compiler will create directory out/ii_files/ for
1841
1027
   # template instantiation
1899
1085
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1900
1086
_LT_AC_TAGVAR(hardcode_action, $1)=
1901
1087
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1902
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1903
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
1088
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1089
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1904
1090
 
1905
1091
  # We can hardcode non-existant directories.
1906
1092
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1970
1156
library_names_spec=
1971
1157
libname_spec='lib$name'
1972
1158
soname_spec=
1973
 
shrext=".so"
 
1159
shrext_cmds=".so"
1974
1160
postinstall_cmds=
1975
1161
postuninstall_cmds=
1976
1162
finish_cmds=
2067
1253
  shlibpath_var=LIBRARY_PATH
2068
1254
  ;;
2069
1255
 
2070
 
bsdi4*)
 
1256
bsdi[[45]]*)
2071
1257
  version_type=linux
2072
1258
  need_version=no
2073
1259
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2083
1269
 
2084
1270
cygwin* | mingw* | pw32*)
2085
1271
  version_type=windows
2086
 
  shrext=".dll"
 
1272
  shrext_cmds=".dll"
2087
1273
  need_version=no
2088
1274
  need_lib_prefix=no
2089
1275
 
2095
1281
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2096
1282
      dldir=$destdir/`dirname \$dlpath`~
2097
1283
      test -d \$dldir || mkdir -p \$dldir~
2098
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1284
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1285
      chmod a+x \$dldir/$dlname'
2099
1286
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2100
1287
      dlpath=$dir/\$dldll~
2101
1288
       $rm \$dlpath'
2125
1312
      ;;
2126
1313
    pw32*)
2127
1314
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2128
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
1315
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2129
1316
      ;;
2130
1317
    esac
2131
1318
    ;;
2148
1335
  soname_spec='${libname}${release}${major}$shared_ext'
2149
1336
  shlibpath_overrides_runpath=yes
2150
1337
  shlibpath_var=DYLD_LIBRARY_PATH
2151
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
1338
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2152
1339
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2153
1340
  if test "$GCC" = yes; then
2154
1341
    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"`
2183
1370
  dynamic_linker='GNU ld.so'
2184
1371
  ;;
2185
1372
 
2186
 
freebsd*)
2187
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1373
freebsd* | dragonfly*)
 
1374
  # DragonFly does not have aout.  When/if they implement a new
 
1375
  # versioning mechanism, adjust this.
 
1376
  if test -x /usr/bin/objformat; then
 
1377
    objformat=`/usr/bin/objformat`
 
1378
  else
 
1379
    case $host_os in
 
1380
    freebsd[[123]]*) objformat=aout ;;
 
1381
    *) objformat=elf ;;
 
1382
    esac
 
1383
  fi
2188
1384
  version_type=freebsd-$objformat
2189
1385
  case $version_type in
2190
1386
    freebsd-elf*)
2202
1398
  freebsd2*)
2203
1399
    shlibpath_overrides_runpath=yes
2204
1400
    ;;
2205
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
1401
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2206
1402
    shlibpath_overrides_runpath=yes
2207
1403
    hardcode_into_libs=yes
2208
1404
    ;;
2229
1425
  version_type=sunos
2230
1426
  need_lib_prefix=no
2231
1427
  need_version=no
2232
 
  case "$host_cpu" in
 
1428
  case $host_cpu in
2233
1429
  ia64*)
2234
 
    shrext='.so'
 
1430
    shrext_cmds='.so'
2235
1431
    hardcode_into_libs=yes
2236
1432
    dynamic_linker="$host_os dld.so"
2237
1433
    shlibpath_var=LD_LIBRARY_PATH
2246
1442
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2247
1443
    ;;
2248
1444
   hppa*64*)
2249
 
     shrext='.sl'
 
1445
     shrext_cmds='.sl'
2250
1446
     hardcode_into_libs=yes
2251
1447
     dynamic_linker="$host_os dld.sl"
2252
1448
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2257
1453
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2258
1454
     ;;
2259
1455
   *)
2260
 
    shrext='.sl'
 
1456
    shrext_cmds='.sl'
2261
1457
    dynamic_linker="$host_os dld.sl"
2262
1458
    shlibpath_var=SHLIB_PATH
2263
1459
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2326
1522
  # before this can be enabled.
2327
1523
  hardcode_into_libs=yes
2328
1524
 
 
1525
  # find out which ABI we are using
 
1526
  libsuff=
 
1527
  case "$host_cpu" in
 
1528
  x86_64*|s390x*|powerpc64*)
 
1529
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1530
    if AC_TRY_EVAL(ac_compile); then
 
1531
      case `/usr/bin/file conftest.$ac_objext` in
 
1532
      *64-bit*)
 
1533
        libsuff=64
 
1534
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
1535
        ;;
 
1536
      esac
 
1537
    fi
 
1538
    rm -rf conftest*
 
1539
    ;;
 
1540
  esac
 
1541
 
 
1542
  # Append ld.so.conf contents to the search path
 
1543
  if test -f /etc/ld.so.conf; then
 
1544
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1545
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
1546
  fi
 
1547
 
2329
1548
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2330
1549
  # powerpc, because MkLinux only supported shared libraries with the
2331
1550
  # GNU dynamic linker.  Since this was broken with cross compilers,
2356
1575
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2357
1576
    dynamic_linker='NetBSD (a.out) ld.so'
2358
1577
  else
2359
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
1578
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2360
1579
    soname_spec='${libname}${release}${shared_ext}$major'
2361
1580
    dynamic_linker='NetBSD ld.elf_so'
2362
1581
  fi
2385
1604
openbsd*)
2386
1605
  version_type=sunos
2387
1606
  need_lib_prefix=no
2388
 
  need_version=yes
 
1607
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1608
  case $host_os in
 
1609
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1610
    *)                         need_version=no  ;;
 
1611
  esac
2389
1612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2390
1613
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2391
1614
  shlibpath_var=LD_LIBRARY_PATH
2405
1628
 
2406
1629
os2*)
2407
1630
  libname_spec='$name'
2408
 
  shrext=".dll"
 
1631
  shrext_cmds=".dll"
2409
1632
  need_lib_prefix=no
2410
1633
  library_names_spec='$libname${shared_ext} $libname.a'
2411
1634
  dynamic_linker='OS/2 ld.exe'
2551
1774
 
2552
1775
      case $tagname in
2553
1776
      CXX)
2554
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
1777
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1778
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1779
            (test "X$CXX" != "Xg++"))) ; then
2555
1780
          AC_LIBTOOL_LANG_CXX_CONFIG
2556
1781
        else
2557
1782
          tagname=""
2613
1838
 
2614
1839
# AC_LIBTOOL_WIN32_DLL
2615
1840
# --------------------
2616
 
# declare package support for building win32 dll's
 
1841
# declare package support for building win32 DLLs
2617
1842
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2618
1843
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2619
1844
])# AC_LIBTOOL_WIN32_DLL
2787
2012
      if test -n "$file_magic_test_file"; then
2788
2013
        case $deplibs_check_method in
2789
2014
        "file_magic "*)
2790
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2015
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2791
2016
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2792
2017
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2793
2018
            $EGREP "$file_magic_regex" > /dev/null; then
2897
2122
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2898
2123
      lt_cv_path_LD="$ac_dir/$ac_prog"
2899
2124
      # Check to see if the program is GNU ld.  I'd rather use --version,
2900
 
      # but apparently some GNU ld's only accept -v.
 
2125
      # but apparently some variants of GNU ld only accept -v.
2901
2126
      # Break only if it was the GNU/non-GNU ld that we prefer.
2902
2127
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2903
2128
      *GNU* | *'with BFD'*)
2929
2154
AC_DEFUN([AC_PROG_LD_GNU],
2930
2155
[AC_REQUIRE([AC_PROG_EGREP])dnl
2931
2156
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2932
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2157
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2933
2158
case `$LD -v 2>&1 </dev/null` in
2934
2159
*GNU* | *'with BFD'*)
2935
2160
  lt_cv_prog_gnu_ld=yes
2956
2181
*) reload_flag=" $reload_flag" ;;
2957
2182
esac
2958
2183
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2184
case $host_os in
 
2185
  darwin*)
 
2186
    if test "$GCC" = yes; then
 
2187
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2188
    else
 
2189
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2190
    fi
 
2191
    ;;
 
2192
esac
2959
2193
])# AC_PROG_LD_RELOAD_FLAG
2960
2194
 
2961
2195
 
2989
2223
  lt_cv_deplibs_check_method=pass_all
2990
2224
  ;;
2991
2225
 
2992
 
bsdi4*)
 
2226
bsdi[[45]]*)
2993
2227
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2994
2228
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2995
2229
  lt_cv_file_magic_test_file=/shlib/libc.so
2996
2230
  ;;
2997
2231
 
2998
2232
cygwin*)
2999
 
  # win32_libid is a shell function defined in ltmain.sh
 
2233
  # func_win32_libid is a shell function defined in ltmain.sh
3000
2234
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3001
 
  lt_cv_file_magic_cmd='win32_libid'
 
2235
  lt_cv_file_magic_cmd='func_win32_libid'
3002
2236
  ;;
3003
2237
 
3004
2238
mingw* | pw32*)
3005
2239
  # Base MSYS/MinGW do not provide the 'file' command needed by
3006
 
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
2240
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3007
2241
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3008
2242
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3009
2243
  ;;
3010
2244
 
3011
2245
darwin* | rhapsody*)
3012
 
  # this will be overwritten by pass_all, but leave it in just in case
3013
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3014
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3015
 
  case "$host_os" in
3016
 
  rhapsody* | darwin1.[[012]])
3017
 
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3018
 
    ;;
3019
 
  *) # Darwin 1.3 on
3020
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3021
 
    ;;
3022
 
  esac
3023
2246
  lt_cv_deplibs_check_method=pass_all
3024
2247
  ;;
3025
2248
 
3026
 
freebsd* | kfreebsd*-gnu)
 
2249
freebsd* | kfreebsd*-gnu | dragonfly*)
3027
2250
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3028
2251
    case $host_cpu in
3029
2252
    i*86 )
3030
2253
      # Not sure whether the presence of OpenBSD here was a mistake.
3031
2254
      # Let's accept both of them until this is cleared up.
3032
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
2255
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3033
2256
      lt_cv_file_magic_cmd=/usr/bin/file
3034
2257
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3035
2258
      ;;
3045
2268
 
3046
2269
hpux10.20* | hpux11*)
3047
2270
  lt_cv_file_magic_cmd=/usr/bin/file
3048
 
  case "$host_cpu" in
 
2271
  case $host_cpu in
3049
2272
  ia64*)
3050
2273
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3051
2274
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3062
2285
  ;;
3063
2286
 
3064
2287
irix5* | irix6* | nonstopux*)
3065
 
  case $host_os in
3066
 
  irix5* | nonstopux*)
3067
 
    # this will be overridden with pass_all, but let us keep it just in case
3068
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3069
 
    ;;
3070
 
  *)
3071
 
    case $LD in
3072
 
    *-32|*"-32 ") libmagic=32-bit;;
3073
 
    *-n32|*"-n32 ") libmagic=N32;;
3074
 
    *-64|*"-64 ") libmagic=64-bit;;
3075
 
    *) libmagic=never-match;;
3076
 
    esac
3077
 
    # this will be overridden with pass_all, but let us keep it just in case
3078
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
3079
 
    ;;
 
2288
  case $LD in
 
2289
  *-32|*"-32 ") libmagic=32-bit;;
 
2290
  *-n32|*"-n32 ") libmagic=N32;;
 
2291
  *-64|*"-64 ") libmagic=64-bit;;
 
2292
  *) libmagic=never-match;;
3080
2293
  esac
3081
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3082
2294
  lt_cv_deplibs_check_method=pass_all
3083
2295
  ;;
3084
2296
 
3085
2297
# This must be Linux ELF.
3086
2298
linux*)
3087
 
  case $host_cpu in
3088
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3089
 
    lt_cv_deplibs_check_method=pass_all ;;
3090
 
  *)
3091
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3092
 
    # this will be overridden with pass_all, but let us keep it just in case
3093
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3094
 
  esac
3095
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3096
2299
  lt_cv_deplibs_check_method=pass_all
3097
2300
  ;;
3098
2301
 
3115
2318
  ;;
3116
2319
 
3117
2320
openbsd*)
3118
 
  lt_cv_file_magic_cmd=/usr/bin/file
3119
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3120
2321
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3121
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
2322
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3122
2323
  else
3123
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2324
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3124
2325
  fi
3125
2326
  ;;
3126
2327
 
3127
2328
osf3* | osf4* | osf5*)
3128
 
  # this will be overridden with pass_all, but let us keep it just in case
3129
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3130
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3131
2329
  lt_cv_deplibs_check_method=pass_all
3132
2330
  ;;
3133
2331
 
3137
2335
 
3138
2336
solaris*)
3139
2337
  lt_cv_deplibs_check_method=pass_all
3140
 
  lt_cv_file_magic_test_file=/lib/libc.so
3141
2338
  ;;
3142
2339
 
3143
2340
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3245
2442
# -----------------------------------
3246
2443
# sets LIBLTDL to the link flags for the libltdl convenience library and
3247
2444
# LTDLINCL to the include flags for the libltdl header and adds
3248
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3249
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3250
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3251
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3252
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3253
 
# flat and you're not using automake, define top_builddir and
3254
 
# top_srcdir appropriately in the Makefiles.
 
2445
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2446
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2447
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2448
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2449
# (note the single quotes!).  If your package is not flat and you're not
 
2450
# using automake, define top_builddir and top_srcdir appropriately in
 
2451
# the Makefiles.
3255
2452
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3256
2453
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3257
2454
  case $enable_ltdl_convenience in
3270
2467
# -----------------------------------
3271
2468
# sets LIBLTDL to the link flags for the libltdl installable library and
3272
2469
# LTDLINCL to the include flags for the libltdl header and adds
3273
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3274
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3275
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
3276
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3277
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3278
 
# quotes!).  If your package is not flat and you're not using automake,
3279
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2470
# --enable-ltdl-install to the configure arguments.  Note that
 
2471
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2472
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2473
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2474
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2475
# flat and you're not using automake, define top_builddir and top_srcdir
 
2476
# appropriately in the Makefiles.
3280
2477
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3281
2478
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3282
2479
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3314
2511
# ---------------
3315
2512
AC_DEFUN([_LT_AC_LANG_CXX],
3316
2513
[AC_REQUIRE([AC_PROG_CXX])
3317
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2514
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3318
2515
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3319
2516
])# _LT_AC_LANG_CXX
3320
2517
 
 
2518
# _LT_AC_PROG_CXXCPP
 
2519
# ---------------
 
2520
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2521
[
 
2522
AC_REQUIRE([AC_PROG_CXX])
 
2523
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2524
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2525
    (test "X$CXX" != "Xg++"))) ; then
 
2526
  AC_PROG_CXXCPP
 
2527
fi
 
2528
])# _LT_AC_PROG_CXXCPP
3321
2529
 
3322
2530
# AC_LIBTOOL_F77
3323
2531
# --------------
3390
2598
 
3391
2599
_LT_AC_SYS_COMPILER
3392
2600
 
 
2601
# save warnings/boilerplate of simple test code
 
2602
_LT_COMPILER_BOILERPLATE
 
2603
_LT_LINKER_BOILERPLATE
 
2604
 
3393
2605
#
3394
2606
# Check for any special shared library compilation flags.
3395
2607
#
3440
2652
 
3441
2653
# On AIX, shared libraries and static libraries use the same namespace, and
3442
2654
# are all built from PIC.
3443
 
case "$host_os" in
 
2655
case $host_os in
3444
2656
aix3*)
3445
2657
  test "$enable_shared" = yes && enable_static=no
3446
2658
  if test -n "$RANLIB"; then
3449
2661
  fi
3450
2662
  ;;
3451
2663
 
3452
 
aix4*)
 
2664
aix4* | aix5*)
3453
2665
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3454
2666
    test "$enable_shared" = yes && enable_static=no
3455
2667
  fi
3456
 
  ;;
3457
 
  darwin* | rhapsody*)
3458
 
  if test "$GCC" = yes; then
3459
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3460
 
    case "$host_os" in
3461
 
    rhapsody* | darwin1.[[012]])
3462
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3463
 
      ;;
3464
 
    *) # Darwin 1.3 on
3465
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3466
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3467
 
      else
3468
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3469
 
          10.[[012]])
3470
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3471
 
            ;;
3472
 
          10.*)
3473
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3474
 
            ;;
3475
 
        esac
3476
 
      fi
3477
 
      ;;
3478
 
    esac
3479
 
    output_verbose_link_cmd='echo'
3480
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3481
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3482
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3483
 
    _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}'
3484
 
    _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}'
3485
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3486
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3487
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3488
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3489
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3490
 
  else
3491
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3492
 
  fi
3493
2668
    ;;
3494
2669
esac
3495
2670
AC_MSG_RESULT([$enable_shared])
3515
2690
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3516
2691
[AC_LANG_PUSH(C++)
3517
2692
AC_REQUIRE([AC_PROG_CXX])
3518
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2693
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3519
2694
 
3520
2695
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3521
2696
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3544
2719
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3545
2720
 
3546
2721
# Source file extension for C++ test sources.
3547
 
ac_ext=cc
 
2722
ac_ext=cpp
3548
2723
 
3549
2724
# Object file extension for compiled C++ test sources.
3550
2725
objext=o
3559
2734
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3560
2735
_LT_AC_SYS_COMPILER
3561
2736
 
 
2737
# save warnings/boilerplate of simple test code
 
2738
_LT_COMPILER_BOILERPLATE
 
2739
_LT_LINKER_BOILERPLATE
 
2740
 
3562
2741
# Allow CC to be a program name with arguments.
3563
2742
lt_save_CC=$CC
3564
2743
lt_save_LD=$LD
3580
2759
CC=${CXX-"c++"}
3581
2760
compiler=$CC
3582
2761
_LT_AC_TAGVAR(compiler, $1)=$CC
3583
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
2762
_LT_CC_BASENAME([$compiler])
3584
2763
 
3585
2764
# We don't want -fno-exception wen compiling C++ code, so set the
3586
2765
# no_builtin_flag separately
3687
2866
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3688
2867
 
3689
2868
    if test "$GXX" = yes; then
3690
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
2869
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3691
2870
      # We only want to do this on AIX 4.2 and lower, the check
3692
2871
      # below for broken collect2 doesn't work under 4.3+
3693
2872
        collect2name=`${CC} -print-prog-name=collect2`
3708
2887
        fi
3709
2888
      esac
3710
2889
      shared_flag='-shared'
 
2890
      if test "$aix_use_runtimelinking" = yes; then
 
2891
        shared_flag="$shared_flag "'${wl}-G'
 
2892
      fi
3711
2893
    else
3712
2894
      # not using gcc
3713
2895
      if test "$host_cpu" = ia64; then
3753
2935
        # Exported symbols can be pulled into shared objects from archives
3754
2936
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3755
2937
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3756
 
        # This is similar to how AIX traditionally builds it's shared libraries.
 
2938
        # This is similar to how AIX traditionally builds its shared libraries.
3757
2939
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3758
2940
      fi
3759
2941
    fi
3767
2949
    esac
3768
2950
    ;;
3769
2951
 
 
2952
 
3770
2953
  cygwin* | mingw* | pw32*)
3771
2954
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3772
2955
    # as there is no search path for DLLs.
3790
2973
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3791
2974
    fi
3792
2975
  ;;
3793
 
 
3794
 
  darwin* | rhapsody*)
3795
 
  if test "$GXX" = yes; then
3796
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3797
 
    case "$host_os" in
3798
 
    rhapsody* | darwin1.[[012]])
3799
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3800
 
      ;;
3801
 
    *) # Darwin 1.3 on
3802
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3803
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3804
 
      else
3805
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3806
 
          10.[[012]])
3807
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3808
 
            ;;
3809
 
          10.*)
3810
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3811
 
            ;;
 
2976
      darwin* | rhapsody*)
 
2977
        case $host_os in
 
2978
        rhapsody* | darwin1.[[012]])
 
2979
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
2980
         ;;
 
2981
       *) # Darwin 1.3 on
 
2982
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
2983
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
2984
         else
 
2985
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
2986
             10.[[012]])
 
2987
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
2988
               ;;
 
2989
             10.*)
 
2990
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
2991
               ;;
 
2992
           esac
 
2993
         fi
 
2994
         ;;
3812
2995
        esac
3813
 
      fi
3814
 
      ;;
3815
 
    esac
3816
 
    lt_int_apple_cc_single_mod=no
3817
 
    output_verbose_link_cmd='echo'
3818
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3819
 
      lt_int_apple_cc_single_mod=yes
3820
 
    fi
3821
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3822
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3823
 
    else
3824
 
      _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'
3825
 
    fi
3826
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
2996
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
2997
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
2998
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
2999
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3000
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3001
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3827
3002
 
3828
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3829
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3830
 
      _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}'
3831
 
    else
3832
 
      _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}'
3833
 
    fi
3834
 
    _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}'
3835
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3836
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3837
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3838
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3839
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3840
 
  else
3841
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3842
 
  fi
3843
 
    ;;
 
3003
    if test "$GXX" = yes ; then
 
3004
      lt_int_apple_cc_single_mod=no
 
3005
      output_verbose_link_cmd='echo'
 
3006
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3007
       lt_int_apple_cc_single_mod=yes
 
3008
      fi
 
3009
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3010
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3011
      else
 
3012
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3013
        fi
 
3014
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3015
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3016
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3017
            _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}'
 
3018
          else
 
3019
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3020
          fi
 
3021
            _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}'
 
3022
      else
 
3023
      case $cc_basename in
 
3024
        xlc*)
 
3025
         output_verbose_link_cmd='echo'
 
3026
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3027
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3028
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3029
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3030
          _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}'
 
3031
          ;;
 
3032
       *)
 
3033
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3034
          ;;
 
3035
      esac
 
3036
      fi
 
3037
        ;;
3844
3038
 
3845
3039
  dgux*)
3846
3040
    case $cc_basename in
3847
 
      ec++)
 
3041
      ec++*)
3848
3042
        # FIXME: insert proper C++ library support
3849
3043
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3850
3044
        ;;
3851
 
      ghcx)
 
3045
      ghcx*)
3852
3046
        # Green Hills C++ Compiler
3853
3047
        # FIXME: insert proper C++ library support
3854
3048
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3859
3053
        ;;
3860
3054
    esac
3861
3055
    ;;
3862
 
  freebsd[12]*)
 
3056
  freebsd[[12]]*)
3863
3057
    # C++ shared libraries reported to be fairly broken before switch to ELF
3864
3058
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3865
3059
    ;;
3866
3060
  freebsd-elf*)
3867
3061
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3868
3062
    ;;
3869
 
  freebsd* | kfreebsd*-gnu)
 
3063
  freebsd* | kfreebsd*-gnu | dragonfly*)
3870
3064
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3871
3065
    # conventions
3872
3066
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3883
3077
                                # location of the library.
3884
3078
 
3885
3079
    case $cc_basename in
3886
 
    CC)
 
3080
    CC*)
3887
3081
      # FIXME: insert proper C++ library support
3888
3082
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3889
3083
      ;;
3890
 
    aCC)
 
3084
    aCC*)
3891
3085
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3892
3086
      # Commands to make compiler produce verbose output that lists
3893
3087
      # what "hidden" libraries, object files and flags are used when
3897
3091
      # explicitly linking system object files so we need to strip them
3898
3092
      # from the output so that they don't get included in the library
3899
3093
      # dependencies.
3900
 
      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'
 
3094
      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'
3901
3095
      ;;
3902
3096
    *)
3903
3097
      if test "$GXX" = yes; then
3911
3105
    ;;
3912
3106
  hpux10*|hpux11*)
3913
3107
    if test $with_gnu_ld = no; then
3914
 
      case "$host_cpu" in
 
3108
      case $host_cpu in
3915
3109
      hppa*64*)
3916
3110
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3917
3111
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3927
3121
        ;;
3928
3122
      esac
3929
3123
    fi
3930
 
    case "$host_cpu" in
 
3124
    case $host_cpu in
3931
3125
    hppa*64*)
3932
3126
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3933
3127
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3948
3142
    esac
3949
3143
 
3950
3144
    case $cc_basename in
3951
 
      CC)
 
3145
      CC*)
3952
3146
        # FIXME: insert proper C++ library support
3953
3147
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3954
3148
        ;;
3955
 
      aCC)
3956
 
        case "$host_cpu" in
 
3149
      aCC*)
 
3150
        case $host_cpu in
3957
3151
        hppa*64*|ia64*)
3958
3152
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3959
3153
          ;;
3974
3168
      *)
3975
3169
        if test "$GXX" = yes; then
3976
3170
          if test $with_gnu_ld = no; then
3977
 
            case "$host_cpu" in
 
3171
            case $host_cpu in
3978
3172
            ia64*|hppa*64*)
3979
3173
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3980
3174
              ;;
3992
3186
    ;;
3993
3187
  irix5* | irix6*)
3994
3188
    case $cc_basename in
3995
 
      CC)
 
3189
      CC*)
3996
3190
        # SGI C++
3997
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3191
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3998
3192
 
3999
3193
        # Archives containing C++ object files must be created using
4000
3194
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4005
3199
      *)
4006
3200
        if test "$GXX" = yes; then
4007
3201
          if test "$with_gnu_ld" = no; then
4008
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3202
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4009
3203
          else
4010
3204
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4011
3205
          fi
4018
3212
    ;;
4019
3213
  linux*)
4020
3214
    case $cc_basename in
4021
 
      KCC)
 
3215
      KCC*)
4022
3216
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4023
3217
 
4024
3218
        # KCC will only create a shared library if the output file
4043
3237
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4044
3238
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4045
3239
        ;;
4046
 
      icpc)
 
3240
      icpc*)
4047
3241
        # Intel C++
4048
3242
        with_gnu_ld=yes
 
3243
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3244
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3245
        # earlier do not add the objects themselves.
 
3246
        case `$CC -V 2>&1` in
 
3247
        *"Version 7."*)
 
3248
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3249
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3250
          ;;
 
3251
        *)  # Version 8.0 or newer
 
3252
          tmp_idyn=
 
3253
          case $host_cpu in
 
3254
            ia64*) tmp_idyn=' -i_dynamic';;
 
3255
          esac
 
3256
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3257
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3258
          ;;
 
3259
        esac
4049
3260
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4050
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4051
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4052
3261
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4053
3262
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4054
3263
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4055
3264
        ;;
4056
 
      cxx)
 
3265
      pgCC*)
 
3266
        # Portland Group C++ compiler
 
3267
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3268
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3269
 
 
3270
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3271
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3272
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3273
        ;;
 
3274
      cxx*)
4057
3275
        # Compaq C++
4058
3276
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4059
3277
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4084
3302
    ;;
4085
3303
  mvs*)
4086
3304
    case $cc_basename in
4087
 
      cxx)
 
3305
      cxx*)
4088
3306
        # FIXME: insert proper C++ library support
4089
3307
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4090
3308
        ;;
4105
3323
    # Workaround some broken pre-1.5 toolchains
4106
3324
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4107
3325
    ;;
 
3326
  openbsd2*)
 
3327
    # C++ shared libraries are fairly broken
 
3328
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3329
    ;;
 
3330
  openbsd*)
 
3331
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3332
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3333
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3334
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3335
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3336
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3337
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3338
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3339
    fi
 
3340
    output_verbose_link_cmd='echo'
 
3341
    ;;
4108
3342
  osf3*)
4109
3343
    case $cc_basename in
4110
 
      KCC)
 
3344
      KCC*)
4111
3345
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4112
3346
 
4113
3347
        # KCC will only create a shared library if the output file
4123
3357
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4124
3358
 
4125
3359
        ;;
4126
 
      RCC)
 
3360
      RCC*)
4127
3361
        # Rational C++ 2.4.1
4128
3362
        # FIXME: insert proper C++ library support
4129
3363
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4130
3364
        ;;
4131
 
      cxx)
 
3365
      cxx*)
4132
3366
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4133
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3367
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4134
3368
 
4135
3369
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4136
3370
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4148
3382
      *)
4149
3383
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4150
3384
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4151
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3385
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4152
3386
 
4153
3387
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4154
3388
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4167
3401
    ;;
4168
3402
  osf4* | osf5*)
4169
3403
    case $cc_basename in
4170
 
      KCC)
 
3404
      KCC*)
4171
3405
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4172
3406
 
4173
3407
        # KCC will only create a shared library if the output file
4182
3416
        # the KAI C++ compiler.
4183
3417
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4184
3418
        ;;
4185
 
      RCC)
 
3419
      RCC*)
4186
3420
        # Rational C++ 2.4.1
4187
3421
        # FIXME: insert proper C++ library support
4188
3422
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4189
3423
        ;;
4190
 
      cxx)
 
3424
      cxx*)
4191
3425
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4192
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3426
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4193
3427
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4194
3428
          echo "-hidden">> $lib.exp~
4195
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
3429
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4196
3430
          $rm $lib.exp'
4197
3431
 
4198
3432
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4211
3445
      *)
4212
3446
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4213
3447
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4214
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3448
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4215
3449
 
4216
3450
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4217
3451
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4235
3469
  sco*)
4236
3470
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4237
3471
    case $cc_basename in
4238
 
      CC)
 
3472
      CC*)
4239
3473
        # FIXME: insert proper C++ library support
4240
3474
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4241
3475
        ;;
4247
3481
    ;;
4248
3482
  sunos4*)
4249
3483
    case $cc_basename in
4250
 
      CC)
 
3484
      CC*)
4251
3485
        # Sun C++ 4.x
4252
3486
        # FIXME: insert proper C++ library support
4253
3487
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4254
3488
        ;;
4255
 
      lcc)
 
3489
      lcc*)
4256
3490
        # Lucid
4257
3491
        # FIXME: insert proper C++ library support
4258
3492
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4265
3499
    ;;
4266
3500
  solaris*)
4267
3501
    case $cc_basename in
4268
 
      CC)
 
3502
      CC*)
4269
3503
        # Sun C++ 4.2, 5.x and Centerline C++
 
3504
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4270
3505
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4271
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3506
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4272
3507
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4273
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3508
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4274
3509
 
4275
3510
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4276
3511
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4277
3512
        case $host_os in
4278
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3513
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4279
3514
          *)
4280
3515
            # The C++ compiler is used as linker so we must use $wl
4281
3516
            # flag to pass the commands to the underlying system
4282
 
            # linker.
 
3517
            # linker. We must also pass each convience library through
 
3518
            # to the system linker between allextract/defaultextract.
 
3519
            # The C++ compiler will combine linker options so we
 
3520
            # cannot just pass the convience library names through
 
3521
            # without $wl.
4283
3522
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4284
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3523
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4285
3524
            ;;
4286
3525
        esac
4287
3526
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4288
3527
 
4289
 
        # Commands to make compiler produce verbose output that lists
4290
 
        # what "hidden" libraries, object files and flags are used when
4291
 
        # linking a shared library.
4292
 
        #
4293
 
        # There doesn't appear to be a way to prevent this compiler from
4294
 
        # explicitly linking system object files so we need to strip them
4295
 
        # from the output so that they don't get included in the library
4296
 
        # dependencies.
4297
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3528
        output_verbose_link_cmd='echo'
4298
3529
 
4299
3530
        # Archives containing C++ object files must be created using
4300
3531
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4302
3533
        # in the archive.
4303
3534
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4304
3535
        ;;
4305
 
      gcx)
 
3536
      gcx*)
4306
3537
        # Green Hills C++ Compiler
4307
3538
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4308
3539
 
4345
3576
    ;;
4346
3577
  tandem*)
4347
3578
    case $cc_basename in
4348
 
      NCC)
 
3579
      NCC*)
4349
3580
        # NonStop-UX NCC 3.20
4350
3581
        # FIXME: insert proper C++ library support
4351
3582
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4451
3682
  # The `*' in the case matches for architectures that use `case' in
4452
3683
  # $output_verbose_cmd can trigger glob expansion during the loop
4453
3684
  # eval without this substitution.
4454
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3685
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4455
3686
 
4456
3687
  for p in `eval $output_verbose_link_cmd`; do
4457
3688
    case $p in
4527
3758
 
4528
3759
$rm -f confest.$objext
4529
3760
 
 
3761
# PORTME: override above test on systems where it is broken
 
3762
ifelse([$1],[CXX],
 
3763
[case $host_os in
 
3764
solaris*)
 
3765
  case $cc_basename in
 
3766
  CC*)
 
3767
    # Adding this requires a known-good setup of shared libraries for
 
3768
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3769
    # archive will be linked into the output, leading to subtle bugs.
 
3770
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3771
    ;;
 
3772
  esac
 
3773
esac
 
3774
])
 
3775
 
4530
3776
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4531
3777
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4532
3778
esac
4577
3823
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4578
3824
_LT_AC_SYS_COMPILER
4579
3825
 
 
3826
# save warnings/boilerplate of simple test code
 
3827
_LT_COMPILER_BOILERPLATE
 
3828
_LT_LINKER_BOILERPLATE
 
3829
 
4580
3830
# Allow CC to be a program name with arguments.
4581
3831
lt_save_CC="$CC"
4582
3832
CC=${F77-"f77"}
4583
3833
compiler=$CC
4584
3834
_LT_AC_TAGVAR(compiler, $1)=$CC
4585
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3835
_LT_CC_BASENAME([$compiler])
4586
3836
 
4587
3837
AC_MSG_CHECKING([if libtool supports shared libraries])
4588
3838
AC_MSG_RESULT([$can_build_shared])
4592
3842
 
4593
3843
# On AIX, shared libraries and static libraries use the same namespace, and
4594
3844
# are all built from PIC.
4595
 
case "$host_os" in
 
3845
case $host_os in
4596
3846
aix3*)
4597
3847
  test "$enable_shared" = yes && enable_static=no
4598
3848
  if test -n "$RANLIB"; then
4600
3850
    postinstall_cmds='$RANLIB $lib'
4601
3851
  fi
4602
3852
  ;;
4603
 
aix4*)
4604
 
  test "$enable_shared" = yes && enable_static=no
 
3853
aix4* | aix5*)
 
3854
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3855
    test "$enable_shared" = yes && enable_static=no
 
3856
  fi
4605
3857
  ;;
4606
3858
esac
4607
3859
AC_MSG_RESULT([$enable_shared])
4652
3904
lt_simple_compile_test_code="class foo {}\n"
4653
3905
 
4654
3906
# Code to be used in simple link tests
4655
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
3907
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4656
3908
 
4657
3909
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4658
3910
_LT_AC_SYS_COMPILER
4659
3911
 
 
3912
# save warnings/boilerplate of simple test code
 
3913
_LT_COMPILER_BOILERPLATE
 
3914
_LT_LINKER_BOILERPLATE
 
3915
 
4660
3916
# Allow CC to be a program name with arguments.
4661
3917
lt_save_CC="$CC"
4662
3918
CC=${GCJ-"gcj"}
4663
3919
compiler=$CC
4664
3920
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3921
_LT_CC_BASENAME([$compiler])
4665
3922
 
4666
3923
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4667
3924
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4668
3925
 
 
3926
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3927
 
4669
3928
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4670
3929
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4671
3930
AC_LIBTOOL_PROG_CC_C_O($1)
4708
3967
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4709
3968
_LT_AC_SYS_COMPILER
4710
3969
 
 
3970
# save warnings/boilerplate of simple test code
 
3971
_LT_COMPILER_BOILERPLATE
 
3972
_LT_LINKER_BOILERPLATE
 
3973
 
4711
3974
# Allow CC to be a program name with arguments.
4712
3975
lt_save_CC="$CC"
4713
3976
CC=${RC-"windres"}
4714
3977
compiler=$CC
4715
3978
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3979
_LT_CC_BASENAME([$compiler])
4716
3980
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4717
3981
 
4718
3982
AC_LIBTOOL_CONFIG($1)
4742
4006
  # Now quote all the things that may contain metacharacters while being
4743
4007
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4744
4008
  # variables and quote the copies for generation of the libtool script.
4745
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
4009
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4010
    SED SHELL STRIP \
4746
4011
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4747
4012
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4748
4013
    deplibs_check_method reload_flag reload_cmds need_locks \
4847
4112
#
4848
4113
# You should have received a copy of the GNU General Public License
4849
4114
# along with this program; if not, write to the Free Software
4850
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4115
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4851
4116
#
4852
4117
# As a special exception to the GNU General Public License, if you
4853
4118
# distribute this file as part of a program that contains a
4858
4123
SED=$lt_SED
4859
4124
 
4860
4125
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4861
 
Xsed="$SED -e s/^X//"
 
4126
Xsed="$SED -e 1s/^X//"
4862
4127
 
4863
4128
# The HP-UX ksh and POSIX shell print the target directory to stdout
4864
4129
# if CDPATH is set.
4865
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4130
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4866
4131
 
4867
4132
# The names of the tagged configurations supported by this script.
4868
4133
available_tags=
4893
4158
# The host system.
4894
4159
host_alias=$host_alias
4895
4160
host=$host
 
4161
host_os=$host_os
 
4162
 
 
4163
# The build system.
 
4164
build_alias=$build_alias
 
4165
build=$build
 
4166
build_os=$build_os
4896
4167
 
4897
4168
# An echo program that does not interpret backslashes.
4898
4169
echo=$lt_echo
4923
4194
NM=$lt_NM
4924
4195
 
4925
4196
# A symbol stripping program
4926
 
STRIP=$STRIP
 
4197
STRIP=$lt_STRIP
4927
4198
 
4928
4199
# Used to examine libraries when file_magic_cmd begins "file"
4929
4200
MAGIC_CMD=$MAGIC_CMD
4954
4225
libext="$libext"
4955
4226
 
4956
4227
# Shared library suffix (normally ".so").
4957
 
shrext='$shrext'
 
4228
shrext_cmds='$shrext_cmds'
4958
4229
 
4959
4230
# Executable file suffix (normally "").
4960
4231
exeext="$exeext"
4969
4240
# Does compiler simultaneously support -c and -o options?
4970
4241
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4971
4242
 
4972
 
# Must we lock files when doing compilation ?
 
4243
# Must we lock files when doing compilation?
4973
4244
need_locks=$lt_need_locks
4974
4245
 
4975
4246
# Do we need the lib prefix for modules?
5198
4469
  # If there is no Makefile yet, we rely on a make rule to execute
5199
4470
  # `config.status --recheck' to rerun these tests and create the
5200
4471
  # libtool script then.
5201
 
  test -f Makefile && make "$ltmain"
 
4472
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
4473
  if test -f "$ltmain_in"; then
 
4474
    test -f Makefile && make "$ltmain"
 
4475
  fi
5202
4476
fi
5203
4477
])# AC_LIBTOOL_CONFIG
5204
4478
 
5240
4514
# Regexp to match symbols that can be accessed directly from C.
5241
4515
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5242
4516
 
5243
 
# Transform the above into a raw symbol and a C symbol.
5244
 
symxfrm='\1 \2\3 \3'
5245
 
 
5246
4517
# Transform an extracted symbol line into a proper C declaration
5247
4518
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5248
4519
 
5264
4535
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5265
4536
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5266
4537
  ;;
 
4538
linux*)
 
4539
  if test "$host_cpu" = ia64; then
 
4540
    symcode='[[ABCDGIRSTW]]'
 
4541
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4542
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4543
  fi
 
4544
  ;;
5267
4545
irix* | nonstopux*)
5268
4546
  symcode='[[BCDEGRST]]'
5269
4547
  ;;
5271
4549
  symcode='[[BCDEGQRST]]'
5272
4550
  ;;
5273
4551
solaris* | sysv5*)
5274
 
  symcode='[[BDT]]'
 
4552
  symcode='[[BDRT]]'
5275
4553
  ;;
5276
4554
sysv4)
5277
4555
  symcode='[[DFNSTU]]'
5289
4567
# If we're using GNU nm, then use its standard symbol codes.
5290
4568
case `$NM -V 2>&1` in
5291
4569
*GNU* | *'with BFD'*)
5292
 
  symcode='[[ABCDGISTW]]' ;;
 
4570
  symcode='[[ABCDGIRSTW]]' ;;
5293
4571
esac
5294
4572
 
5295
4573
# Try without a prefix undercore, then with it.
5296
4574
for ac_symprfx in "" "_"; do
5297
4575
 
 
4576
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4577
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4578
 
5298
4579
  # Write the raw and C identifiers.
5299
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4580
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5300
4581
 
5301
4582
  # Check to see that the pipe works correctly.
5302
4583
  pipe_works=no
5460
4741
    hpux*)
5461
4742
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5462
4743
      # not for PA HP-UX.
5463
 
      case "$host_cpu" in
 
4744
      case $host_cpu in
5464
4745
      hppa*64*|ia64*)
5465
4746
        ;;
5466
4747
      *)
5485
4766
        ;;
5486
4767
      chorus*)
5487
4768
        case $cc_basename in
5488
 
        cxch68)
 
4769
        cxch68*)
5489
4770
          # Green Hills C++ Compiler
5490
4771
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5491
4772
          ;;
5492
4773
        esac
5493
4774
        ;;
 
4775
       darwin*)
 
4776
         # PIC is the default on this platform
 
4777
         # Common symbols not allowed in MH_DYLIB files
 
4778
         case $cc_basename in
 
4779
           xlc*)
 
4780
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
4781
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4782
           ;;
 
4783
         esac
 
4784
       ;;
5494
4785
      dgux*)
5495
4786
        case $cc_basename in
5496
 
          ec++)
 
4787
          ec++*)
5497
4788
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5498
4789
            ;;
5499
 
          ghcx)
 
4790
          ghcx*)
5500
4791
            # Green Hills C++ Compiler
5501
4792
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5502
4793
            ;;
5504
4795
            ;;
5505
4796
        esac
5506
4797
        ;;
5507
 
      freebsd* | kfreebsd*-gnu)
 
4798
      freebsd* | kfreebsd*-gnu | dragonfly*)
5508
4799
        # FreeBSD uses GNU C++
5509
4800
        ;;
5510
4801
      hpux9* | hpux10* | hpux11*)
5511
4802
        case $cc_basename in
5512
 
          CC)
 
4803
          CC*)
5513
4804
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5514
4805
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5515
4806
            if test "$host_cpu" != ia64; then
5516
4807
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5517
4808
            fi
5518
4809
            ;;
5519
 
          aCC)
 
4810
          aCC*)
5520
4811
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5521
4812
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5522
 
            case "$host_cpu" in
 
4813
            case $host_cpu in
5523
4814
            hppa*64*|ia64*)
5524
4815
              # +Z the default
5525
4816
              ;;
5534
4825
        ;;
5535
4826
      irix5* | irix6* | nonstopux*)
5536
4827
        case $cc_basename in
5537
 
          CC)
 
4828
          CC*)
5538
4829
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5539
4830
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5540
4831
            # CC pic flag -KPIC is the default.
5545
4836
        ;;
5546
4837
      linux*)
5547
4838
        case $cc_basename in
5548
 
          KCC)
 
4839
          KCC*)
5549
4840
            # KAI C++ Compiler
5550
4841
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5551
4842
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5552
4843
            ;;
5553
 
          icpc)
 
4844
          icpc* | ecpc*)
5554
4845
            # Intel C++
5555
4846
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5556
4847
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5557
4848
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5558
4849
            ;;
5559
 
          cxx)
 
4850
          pgCC*)
 
4851
            # Portland Group C++ compiler.
 
4852
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4853
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4854
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4855
            ;;
 
4856
          cxx*)
5560
4857
            # Compaq C++
5561
4858
            # Make sure the PIC flag is empty.  It appears that all Alpha
5562
4859
            # Linux and Compaq Tru64 Unix objects are PIC.
5573
4870
        ;;
5574
4871
      mvs*)
5575
4872
        case $cc_basename in
5576
 
          cxx)
 
4873
          cxx*)
5577
4874
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5578
4875
            ;;
5579
4876
          *)
5584
4881
        ;;
5585
4882
      osf3* | osf4* | osf5*)
5586
4883
        case $cc_basename in
5587
 
          KCC)
 
4884
          KCC*)
5588
4885
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5589
4886
            ;;
5590
 
          RCC)
 
4887
          RCC*)
5591
4888
            # Rational C++ 2.4.1
5592
4889
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5593
4890
            ;;
5594
 
          cxx)
 
4891
          cxx*)
5595
4892
            # Digital/Compaq C++
5596
4893
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5597
4894
            # Make sure the PIC flag is empty.  It appears that all Alpha
5607
4904
        ;;
5608
4905
      sco*)
5609
4906
        case $cc_basename in
5610
 
          CC)
 
4907
          CC*)
5611
4908
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5612
4909
            ;;
5613
4910
          *)
5616
4913
        ;;
5617
4914
      solaris*)
5618
4915
        case $cc_basename in
5619
 
          CC)
 
4916
          CC*)
5620
4917
            # Sun C++ 4.2, 5.x and Centerline C++
5621
4918
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5622
4919
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5623
4920
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5624
4921
            ;;
5625
 
          gcx)
 
4922
          gcx*)
5626
4923
            # Green Hills C++ Compiler
5627
4924
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5628
4925
            ;;
5632
4929
        ;;
5633
4930
      sunos4*)
5634
4931
        case $cc_basename in
5635
 
          CC)
 
4932
          CC*)
5636
4933
            # Sun C++ 4.x
5637
4934
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5638
4935
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5639
4936
            ;;
5640
 
          lcc)
 
4937
          lcc*)
5641
4938
            # Lucid
5642
4939
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5643
4940
            ;;
5647
4944
        ;;
5648
4945
      tandem*)
5649
4946
        case $cc_basename in
5650
 
          NCC)
 
4947
          NCC*)
5651
4948
            # NonStop-UX NCC 3.20
5652
4949
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5653
4950
            ;;
5718
5015
    hpux*)
5719
5016
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5720
5017
      # not for PA HP-UX.
5721
 
      case "$host_cpu" in
 
5018
      case $host_cpu in
5722
5019
      hppa*64*|ia64*)
5723
5020
        # +Z the default
5724
5021
        ;;
5744
5041
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5745
5042
      fi
5746
5043
      ;;
 
5044
      darwin*)
 
5045
        # PIC is the default on this platform
 
5046
        # Common symbols not allowed in MH_DYLIB files
 
5047
       case $cc_basename in
 
5048
         xlc*)
 
5049
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5050
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5051
         ;;
 
5052
       esac
 
5053
       ;;
5747
5054
 
5748
5055
    mingw* | pw32* | os2*)
5749
5056
      # This hack is so that the source file can tell whether it is being
5755
5062
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5756
5063
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5757
5064
      # not for PA HP-UX.
5758
 
      case "$host_cpu" in
 
5065
      case $host_cpu in
5759
5066
      hppa*64*|ia64*)
5760
5067
        # +Z the default
5761
5068
        ;;
5779
5086
      ;;
5780
5087
 
5781
5088
    linux*)
5782
 
      case $CC in
 
5089
      case $cc_basename in
5783
5090
      icc* | ecc*)
5784
5091
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5785
5092
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5786
5093
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5787
5094
        ;;
 
5095
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5096
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5097
        # which looks to be a dead project)
 
5098
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5099
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5100
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5101
        ;;
5788
5102
      ccc*)
5789
5103
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5790
5104
        # All Alpha code is PIC.
5805
5119
      ;;
5806
5120
 
5807
5121
    solaris*)
5808
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5809
5122
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5810
5123
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5124
      case $cc_basename in
 
5125
      f77* | f90* | f95*)
 
5126
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5127
      *)
 
5128
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5129
      esac
5811
5130
      ;;
5812
5131
 
5813
5132
    sunos4*)
5829
5148
      fi
5830
5149
      ;;
5831
5150
 
 
5151
    unicos*)
 
5152
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5153
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5154
      ;;
 
5155
 
5832
5156
    uts4*)
5833
5157
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5834
5158
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5856
5180
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5857
5181
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5858
5182
fi
5859
 
case "$host_os" in
 
5183
case $host_os in
5860
5184
  # For platforms which do not support PIC, -DPIC is meaningless:
5861
5185
  *djgpp*)
5862
5186
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5889
5213
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5890
5214
  ;;
5891
5215
  cygwin* | mingw*)
5892
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5216
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5893
5217
  ;;
5894
5218
  *)
5895
5219
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5932
5256
  # rely on this symbol name, it's probably fine to never include it in
5933
5257
  # preloaded symbol tables.
5934
5258
  extract_expsyms_cmds=
5935
 
 
 
5259
  # Just being paranoid about ensuring that cc_basename is set.
 
5260
  _LT_CC_BASENAME([$compiler])
5936
5261
  case $host_os in
5937
5262
  cygwin* | mingw* | pw32*)
5938
5263
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5952
5277
    # If archive_cmds runs LD, not CC, wlarc should be empty
5953
5278
    wlarc='${wl}'
5954
5279
 
 
5280
    # Set some defaults for GNU ld with shared library support. These
 
5281
    # are reset later if shared libraries are not supported. Putting them
 
5282
    # here allows them to be overridden if necessary.
 
5283
    runpath_var=LD_RUN_PATH
 
5284
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5285
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5286
    # ancient GNU ld didn't support --whole-archive et. al.
 
5287
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5288
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5289
      else
 
5290
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5291
    fi
 
5292
    supports_anon_versioning=no
 
5293
    case `$LD -v 2>/dev/null` in
 
5294
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5295
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5296
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5297
      *\ 2.11.*) ;; # other 2.11 versions
 
5298
      *) supports_anon_versioning=yes ;;
 
5299
    esac
 
5300
 
5955
5301
    # See if GNU ld supports shared libraries.
5956
5302
    case $host_os in
5957
5303
    aix3* | aix4* | aix5*)
6002
5348
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6003
5349
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6004
5350
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6005
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5351
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6006
5352
 
6007
5353
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6008
5354
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6016
5362
        fi~
6017
5363
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6018
5364
      else
6019
 
        ld_shlibs=no
 
5365
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5366
      fi
 
5367
      ;;
 
5368
 
 
5369
    linux*)
 
5370
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5371
        tmp_addflag=
 
5372
        case $cc_basename,$host_cpu in
 
5373
        pgcc*)                          # Portland Group C compiler
 
5374
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5375
          tmp_addflag=' $pic_flag'
 
5376
          ;;
 
5377
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5378
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5379
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5380
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5381
          tmp_addflag=' -i_dynamic' ;;
 
5382
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5383
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5384
        ifc* | ifort*)                  # Intel Fortran compiler
 
5385
          tmp_addflag=' -nofor_main' ;;
 
5386
        esac
 
5387
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5388
 
 
5389
        if test $supports_anon_versioning = yes; then
 
5390
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5391
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5392
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5393
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5394
        fi
 
5395
      else
 
5396
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6020
5397
      fi
6021
5398
      ;;
6022
5399
 
6068
5445
      ;;
6069
5446
    esac
6070
5447
 
6071
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6072
 
      runpath_var=LD_RUN_PATH
6073
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6074
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6075
 
      # ancient GNU ld didn't support --whole-archive et. al.
6076
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6077
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6078
 
      else
6079
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6080
 
      fi
 
5448
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5449
      runpath_var=
 
5450
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5451
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5452
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6081
5453
    fi
6082
5454
  else
6083
5455
    # PORTME fill in a description of your system's linker (not GNU ld)
6141
5513
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6142
5514
 
6143
5515
      if test "$GCC" = yes; then
6144
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
5516
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6145
5517
        # We only want to do this on AIX 4.2 and lower, the check
6146
5518
        # below for broken collect2 doesn't work under 4.3+
6147
5519
          collect2name=`${CC} -print-prog-name=collect2`
6162
5534
          fi
6163
5535
        esac
6164
5536
        shared_flag='-shared'
 
5537
        if test "$aix_use_runtimelinking" = yes; then
 
5538
          shared_flag="$shared_flag "'${wl}-G'
 
5539
        fi
6165
5540
      else
6166
5541
        # not using gcc
6167
5542
        if test "$host_cpu" = ia64; then
6206
5581
          # Exported symbols can be pulled into shared objects from archives
6207
5582
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6208
5583
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6209
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
5584
          # This is similar to how AIX traditionally builds its shared libraries.
6210
5585
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6211
5586
        fi
6212
5587
      fi
6220
5595
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6221
5596
      ;;
6222
5597
 
6223
 
    bsdi4*)
 
5598
    bsdi[[45]]*)
6224
5599
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6225
5600
      ;;
6226
5601
 
6234
5609
      # Tell ltmain to make .lib files, not .a files.
6235
5610
      libext=lib
6236
5611
      # Tell ltmain to make .dll files, not .so files.
6237
 
      shrext=".dll"
 
5612
      shrext_cmds=".dll"
6238
5613
      # FIXME: Setting linknames here is a bad hack.
6239
5614
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6240
5615
      # The linker will automatically build a .lib file if we build a DLL.
6241
5616
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6242
5617
      # FIXME: Should let the user specify the lib program.
6243
5618
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6244
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5619
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6245
5620
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6246
5621
      ;;
6247
5622
 
6248
5623
    darwin* | rhapsody*)
6249
 
    if test "$GXX" = yes ; then
 
5624
      case $host_os in
 
5625
        rhapsody* | darwin1.[[012]])
 
5626
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
5627
         ;;
 
5628
       *) # Darwin 1.3 on
 
5629
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5630
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5631
         else
 
5632
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
5633
             10.[[012]])
 
5634
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5635
               ;;
 
5636
             10.*)
 
5637
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
5638
               ;;
 
5639
           esac
 
5640
         fi
 
5641
         ;;
 
5642
      esac
6250
5643
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6251
 
      case "$host_os" in
6252
 
      rhapsody* | darwin1.[[012]])
6253
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6254
 
        ;;
6255
 
      *) # Darwin 1.3 on
6256
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6257
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6258
 
      else
6259
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
6260
 
          10.[[012]])
6261
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6262
 
            ;;
6263
 
          10.*)
6264
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6265
 
            ;;
6266
 
        esac
6267
 
      fi
6268
 
        ;;
6269
 
      esac
6270
 
        lt_int_apple_cc_single_mod=no
 
5644
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5645
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5646
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5647
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
5648
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5649
    if test "$GCC" = yes ; then
6271
5650
        output_verbose_link_cmd='echo'
6272
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6273
 
          lt_int_apple_cc_single_mod=yes
6274
 
        fi
6275
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6276
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6277
 
        else
6278
 
        _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'
6279
 
      fi
6280
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6281
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6282
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6283
 
          _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}'
6284
 
        else
6285
 
          _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}'
6286
 
        fi
 
5651
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5652
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5653
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5654
      _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}'
 
5655
      _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}'
 
5656
    else
 
5657
      case $cc_basename in
 
5658
        xlc*)
 
5659
         output_verbose_link_cmd='echo'
 
5660
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
5661
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5662
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5663
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6287
5664
          _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}'
6288
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6289
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6290
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6291
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6292
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6293
 
    else
6294
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5665
          ;;
 
5666
       *)
 
5667
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5668
          ;;
 
5669
      esac
6295
5670
    fi
6296
5671
      ;;
6297
5672
 
6325
5700
      ;;
6326
5701
 
6327
5702
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6328
 
    freebsd* | kfreebsd*-gnu)
 
5703
    freebsd* | kfreebsd*-gnu | dragonfly*)
6329
5704
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6330
5705
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6331
5706
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6350
5725
 
6351
5726
    hpux10* | hpux11*)
6352
5727
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6353
 
        case "$host_cpu" in
 
5728
        case $host_cpu in
6354
5729
        hppa*64*|ia64*)
6355
5730
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6356
5731
          ;;
6359
5734
          ;;
6360
5735
        esac
6361
5736
      else
6362
 
        case "$host_cpu" in
 
5737
        case $host_cpu in
6363
5738
        hppa*64*|ia64*)
6364
5739
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6365
5740
          ;;
6369
5744
        esac
6370
5745
      fi
6371
5746
      if test "$with_gnu_ld" = no; then
6372
 
        case "$host_cpu" in
 
5747
        case $host_cpu in
6373
5748
        hppa*64*)
6374
5749
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6375
5750
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6436
5811
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6437
5812
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6438
5813
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5814
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6439
5815
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6440
5816
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6441
5817
      else
6481
5857
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6482
5858
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6483
5859
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6484
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
5860
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6485
5861
 
6486
5862
        # Both c and cxx compiler support -rpath directly
6487
5863
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6500
5876
    solaris*)
6501
5877
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6502
5878
      if test "$GCC" = yes; then
 
5879
        wlarc='${wl}'
6503
5880
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6504
5881
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6505
5882
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6506
5883
      else
 
5884
        wlarc=''
6507
5885
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6508
5886
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6509
5887
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6512
5890
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6513
5891
      case $host_os in
6514
5892
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6515
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6516
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
5893
      *)
 
5894
        # The compiler driver will combine linker options so we
 
5895
        # cannot just pass the convience library names through
 
5896
        # without $wl, iff we do not link with $LD.
 
5897
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
5898
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5899
        case $wlarc in
 
5900
        '')
 
5901
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
5902
        *)
 
5903
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
5904
        esac ;;
6517
5905
      esac
6518
5906
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6519
5907
      ;;
6774
6162
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6775
6163
# along with /bin/sed that truncates output.
6776
6164
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6777
 
  test ! -f $lt_ac_sed && break
 
6165
  test ! -f $lt_ac_sed && continue
6778
6166
  cat /dev/null > conftest.in
6779
6167
  lt_ac_count=0
6780
6168
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6799
6187
    fi
6800
6188
  done
6801
6189
done
 
6190
])
6802
6191
SED=$lt_cv_path_SED
6803
 
])
6804
6192
AC_MSG_RESULT([$SED])
6805
6193
])
6806
6194
 
6807
 
dnl From Benedikt Meurer (benedikt.meurer@unix-ag.uni-siegen.de)
6808
 
dnl Check for X11
6809
 
 
6810
 
AC_DEFUN([BM_LIBX11],
6811
 
[
6812
 
  AC_REQUIRE([AC_PATH_XTRA])
6813
 
  LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS=
6814
 
  if test "$no_x" != "yes"; then
6815
 
    AC_CHECK_LIB(X11, main,
6816
 
    [
6817
 
      AC_DEFINE(HAVE_LIBX11, 1, Define if libX11 is available)
6818
 
      LIBX11_CFLAGS="$X_CFLAGS"
6819
 
      for option in $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS; do
6820
 
        case "$option" in
6821
 
        -L*)
6822
 
          path=`echo $option | sed 's/^-L//'`
6823
 
          if test x"$path" != x""; then
6824
 
            LIBX11_LDFLAGS="$LIBX11_LDFLAGS -L$path"
6825
 
          fi
6826
 
          ;;
6827
 
        *)
6828
 
          LIBX11_LIBS="$LIBX11_LIBS $option"
6829
 
          ;;
6830
 
        esac
6831
 
      done
6832
 
      if ! echo $LIBX11_LIBS | grep -- '-lX11' > /dev/null; then
6833
 
        LIBX11_LIBS="$LIBX11_LIBS -lX11"
6834
 
      fi
6835
 
    ], [], [$X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS])
6836
 
  fi
6837
 
  AC_SUBST(LIBX11_CFLAGS)
6838
 
  AC_SUBST(LIBX11_LDFLAGS)
6839
 
  AC_SUBST(LIBX11_LIBS)
6840
 
])
6841
 
 
6842
 
AC_DEFUN([BM_LIBX11_REQUIRE],
6843
 
[
6844
 
  AC_REQUIRE([BM_LIBX11])
6845
 
  if test "$no_x" = "yes"; then
6846
 
    AC_MSG_ERROR([X Window system libraries and header files are required])
6847
 
  fi
6848
 
])
6849
 
 
6850
 
AC_DEFUN([BM_LIBSM],
6851
 
[
6852
 
  AC_REQUIRE([BM_LIBX11])
6853
 
  LIBSM_CFLAGS= LIBSM_LDFLAGS= LIBSM_LIBS=
6854
 
  if test "$no_x" != "yes"; then
6855
 
    AC_CHECK_LIB(SM, SmcSaveYourselfDone,
6856
 
    [
6857
 
      AC_DEFINE(HAVE_LIBSM, 1, Define if libSM is available)
6858
 
      LIBSM_CFLAGS="$LIBX11_CFLAGS"
6859
 
      LIBSM_LDFLAGS="$LIBX11_LDFLAGS"
6860
 
      LIBSM_LIBS="$LIBX11_LIBS"
6861
 
      if ! echo $LIBSM_LIBS | grep -- '-lSM' > /dev/null; then
6862
 
        LIBSM_LIBS="$LIBSM_LIBS -lSM -lICE"
6863
 
      fi
6864
 
    ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lICE])
6865
 
  fi
6866
 
  AC_SUBST(LIBSM_CFLAGS)
6867
 
  AC_SUBST(LIBSM_LDFLAGS)
6868
 
  AC_SUBST(LIBSM_LIBS)
6869
 
])
6870
 
 
6871
 
AC_DEFUN([BM_LIBXPM],
6872
 
[
6873
 
  AC_REQUIRE([BM_LIBX11])
6874
 
  LIBXPM_CFLAGS= LIBXPM_LDFLAGS= LIBXPM_LIBS=
6875
 
  if test "$no_x" != "yes"; then
6876
 
    AC_CHECK_LIB(Xpm, main,
6877
 
    [
6878
 
      AC_DEFINE([HAVE_LIBXPM], [1], [Define if libXpm is available])
6879
 
      LIBXPM_CFLAGS="$LIBX11_CFLAGS"
6880
 
      LIBXPM_LDFLAGS="$LIBX11_LDFLAGS"
6881
 
      LIBXPM_LIBS="$LIBX11_LIBS"
6882
 
      if ! echo $LIBXPM_LIBS | grep -- '-lXpm' > /dev/null; then
6883
 
        LIBXPM_LIBS="$LIBXPM_LIBS -lXpm"
6884
 
      fi
6885
 
    ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXpm])
6886
 
  fi
6887
 
  AC_SUBST([LIBXPM_CFLAGS])
6888
 
  AC_SUBST([LIBXPM_LDFLAGS])
6889
 
  AC_SUBST([LIBXPM_LIBS])
6890
 
])
6891
 
 
6892
 
AC_DEFUN([BM_LIBXPM_REQUIRE],
6893
 
[
6894
 
  AC_REQUIRE([BM_LIBX11_REQUIRE])
6895
 
  AC_REQUIRE([BM_LIBXPM])
6896
 
  if test -z "$LIBXPM_LIBS"; then
6897
 
    AC_MSG_ERROR([The Xpm library was not found on you system])
6898
 
  fi
6899
 
])
6900
 
 
6901
 
AC_DEFUN([BM_LIBXINERAMA],
6902
 
[
6903
 
  AC_ARG_ENABLE(xinerama,
6904
 
AC_HELP_STRING([--enable-xinerama], [enable xinerama extension])
6905
 
AC_HELP_STRING([--disable-xinerama], [disable xinerama extension [default]]),
6906
 
      [], [enable_xinerama=no])
6907
 
  LIBXINERAMA_CFLAGS= LIBXINERAMA_LDFLAGS= LIBXINERAMA_LIBS=
6908
 
  if test "x$enable_xinerama" = "xyes"; then
6909
 
    AC_REQUIRE([BM_LIBX11_REQUIRE])
6910
 
    AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
6911
 
    [
6912
 
      AC_DEFINE(HAVE_LIBXINERAMA, 1, Define if XFree86 Xinerama is available)
6913
 
      LIBXINERAMA_CFLAGS="$LIBX11_CFLAGS"
6914
 
      LIBXINERAMA_LDFLAGS="$LIBX11_LDFLAGS"
6915
 
      LIBXINERAMA_LIBS="$LIBX11_LIBS"
6916
 
      if ! echo $LIBXINERAMA_LIBS | grep -- '-lXinerama' > /dev/null; then
6917
 
        LIBXINERAMA_LIBS="$LIBXINERAMA_LIBS -lXinerama"
6918
 
      fi
6919
 
      if ! echo $LIBXINERAMA_LIBS | grep -- '-lXext' > /dev/null; then
6920
 
        LIBXINERAMA_LIBS="$LIBXINERAMA_LIBS -lXext"
6921
 
      fi
6922
 
    ],[], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXext])
6923
 
  fi
6924
 
  AC_SUBST(LIBXINERAMA_CFLAGS)
6925
 
  AC_SUBST(LIBXINERAMA_LDFLAGS)
6926
 
  AC_SUBST(LIBXINERAMA_LIBS)
6927
 
])
6928
 
 
6929
 
 
6930
 
dnl I18n support
6931
 
dnl
6932
 
dnl Copyright (c) 2003  Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
6933
 
dnl
6934
 
 
6935
 
dnl BM_I18N(pkgname, languages)
6936
 
AC_DEFUN([BM_I18N],
6937
 
[
6938
 
  GETTEXT_PACKAGE=$1
6939
 
  AC_SUBST([GETTEXT_PACKAGE])
6940
 
  AC_DEFINE([GETTEXT_PACKAGE], ["$1"], [Name of default gettext domain])
6941
 
 
6942
 
  ALL_LINGUAS="$2"
6943
 
 
6944
 
  AM_GLIB_GNU_GETTEXT
6945
 
 
6946
 
  dnl This is required on some linux systems
6947
 
  AC_CHECK_FUNC([bind_textdomain_codeset])
6948
 
 
6949
 
  AC_MSG_CHECKING([for locales directory])
6950
 
  AC_ARG_WITH([locales-dir],
6951
 
    AC_HELP_STRING([--with-locales-dir=DIR], [Install locales into DIR]),
6952
 
    [localedir=$withval],
6953
 
    [localedir=$datadir/locale])
6954
 
  AC_MSG_RESULT([$localedir])
6955
 
  AC_SUBST([localedir])
6956
 
])
 
6195
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6196
#
 
6197
# This file is free software; the Free Software Foundation
 
6198
# gives unlimited permission to copy and/or distribute it,
 
6199
# with or without modifications, as long as this notice is preserved.
 
6200
 
 
6201
# AM_AUTOMAKE_VERSION(VERSION)
 
6202
# ----------------------------
 
6203
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
6204
# generated from the m4 files accompanying Automake X.Y.
 
6205
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6206
 
 
6207
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
6208
# -------------------------------
 
6209
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6210
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
6211
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
6212
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6213
 
 
6214
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
6215
 
 
6216
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6217
#
 
6218
# This file is free software; the Free Software Foundation
 
6219
# gives unlimited permission to copy and/or distribute it,
 
6220
# with or without modifications, as long as this notice is preserved.
 
6221
 
 
6222
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
6223
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
6224
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
6225
#
 
6226
# Of course, Automake must honor this variable whenever it calls a
 
6227
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
6228
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
6229
# depending on how configure is run.  This is pretty annoying, since
 
6230
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
6231
# source directory, any form will work fine, but in subdirectories a
 
6232
# relative path needs to be adjusted first.
 
6233
#
 
6234
# $ac_aux_dir/missing
 
6235
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
6236
# $top_srcdir/$ac_aux_dir/missing
 
6237
#    fails if $ac_aux_dir is absolute,
 
6238
#    fails when called from a subdirectory in a VPATH build with
 
6239
#          a relative $ac_aux_dir
 
6240
#
 
6241
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
6242
# are both prefixed by $srcdir.  In an in-source build this is usually
 
6243
# harmless because $srcdir is `.', but things will broke when you
 
6244
# start a VPATH build or use an absolute $srcdir.
 
6245
#
 
6246
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
6247
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
6248
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
6249
# and then we would define $MISSING as
 
6250
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
6251
# This will work as long as MISSING is not called from configure, because
 
6252
# unfortunately $(top_srcdir) has no meaning in configure.
 
6253
# However there are other variables, like CC, which are often used in
 
6254
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
6255
#
 
6256
# Another solution, used here, is to always expand $ac_aux_dir to an
 
6257
# absolute PATH.  The drawback is that using absolute paths prevent a
 
6258
# configured tree to be moved without reconfiguration.
 
6259
 
 
6260
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
6261
[dnl Rely on autoconf to set up CDPATH properly.
 
6262
AC_PREREQ([2.50])dnl
 
6263
# expand $ac_aux_dir to an absolute path
 
6264
am_aux_dir=`cd $ac_aux_dir && pwd`
 
6265
])
 
6266
 
 
6267
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
6268
 
 
6269
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6270
# Free Software Foundation, Inc.
 
6271
#
 
6272
# This file is free software; the Free Software Foundation
 
6273
# gives unlimited permission to copy and/or distribute it,
 
6274
# with or without modifications, as long as this notice is preserved.
 
6275
 
 
6276
# serial 7
 
6277
 
 
6278
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
6279
# -------------------------------------
 
6280
# Define a conditional.
 
6281
AC_DEFUN([AM_CONDITIONAL],
 
6282
[AC_PREREQ(2.52)dnl
 
6283
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
6284
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
6285
AC_SUBST([$1_TRUE])
 
6286
AC_SUBST([$1_FALSE])
 
6287
if $2; then
 
6288
  $1_TRUE=
 
6289
  $1_FALSE='#'
 
6290
else
 
6291
  $1_TRUE='#'
 
6292
  $1_FALSE=
 
6293
fi
 
6294
AC_CONFIG_COMMANDS_PRE(
 
6295
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
6296
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
6297
Usually this means the macro was only invoked conditionally.]])
 
6298
fi])])
 
6299
 
 
6300
 
 
6301
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6302
# Free Software Foundation, Inc.
 
6303
#
 
6304
# This file is free software; the Free Software Foundation
 
6305
# gives unlimited permission to copy and/or distribute it,
 
6306
# with or without modifications, as long as this notice is preserved.
 
6307
 
 
6308
# serial 8
 
6309
 
 
6310
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
6311
# written in clear, in which case automake, when reading aclocal.m4,
 
6312
# will think it sees a *use*, and therefore will trigger all it's
 
6313
# C support machinery.  Also note that it means that autoscan, seeing
 
6314
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
6315
 
 
6316
 
 
6317
# _AM_DEPENDENCIES(NAME)
 
6318
# ----------------------
 
6319
# See how the compiler implements dependency checking.
 
6320
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
6321
# We try a few techniques and use that to set a single cache variable.
 
6322
#
 
6323
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
6324
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
6325
# dependency, and given that the user is not expected to run this macro,
 
6326
# just rely on AC_PROG_CC.
 
6327
AC_DEFUN([_AM_DEPENDENCIES],
 
6328
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
6329
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
6330
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
6331
AC_REQUIRE([AM_DEP_TRACK])dnl
 
6332
 
 
6333
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
6334
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
6335
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6336
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
6337
                   [depcc="$$1"   am_compiler_list=])
 
6338
 
 
6339
AC_CACHE_CHECK([dependency style of $depcc],
 
6340
               [am_cv_$1_dependencies_compiler_type],
 
6341
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6342
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6343
  # making bogus files that we don't know about and never remove.  For
 
6344
  # instance it was reported that on HP-UX the gcc test will end up
 
6345
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6346
  # in D'.
 
6347
  mkdir conftest.dir
 
6348
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6349
  # using a relative directory.
 
6350
  cp "$am_depcomp" conftest.dir
 
6351
  cd conftest.dir
 
6352
  # We will build objects and dependencies in a subdirectory because
 
6353
  # it helps to detect inapplicable dependency modes.  For instance
 
6354
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6355
  # side effect of compilation, but ICC will put the dependencies in
 
6356
  # the current directory while Tru64 will put them in the object
 
6357
  # directory.
 
6358
  mkdir sub
 
6359
 
 
6360
  am_cv_$1_dependencies_compiler_type=none
 
6361
  if test "$am_compiler_list" = ""; then
 
6362
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
6363
  fi
 
6364
  for depmode in $am_compiler_list; do
 
6365
    # Setup a source with many dependencies, because some compilers
 
6366
    # like to wrap large dependency lists on column 80 (with \), and
 
6367
    # we should not choose a depcomp mode which is confused by this.
 
6368
    #
 
6369
    # We need to recreate these files for each test, as the compiler may
 
6370
    # overwrite some of them when testing with obscure command lines.
 
6371
    # This happens at least with the AIX C compiler.
 
6372
    : > sub/conftest.c
 
6373
    for i in 1 2 3 4 5 6; do
 
6374
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6375
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6376
      # Solaris 8's {/usr,}/bin/sh.
 
6377
      touch sub/conftst$i.h
 
6378
    done
 
6379
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6380
 
 
6381
    case $depmode in
 
6382
    nosideeffect)
 
6383
      # after this tag, mechanisms are not by side-effect, so they'll
 
6384
      # only be used when explicitly requested
 
6385
      if test "x$enable_dependency_tracking" = xyes; then
 
6386
        continue
 
6387
      else
 
6388
        break
 
6389
      fi
 
6390
      ;;
 
6391
    none) break ;;
 
6392
    esac
 
6393
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6394
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6395
    # handle `-M -o', and we need to detect this.
 
6396
    if depmode=$depmode \
 
6397
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6398
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6399
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6400
         >/dev/null 2>conftest.err &&
 
6401
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6402
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6403
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6404
      # icc doesn't choke on unknown options, it will just issue warnings
 
6405
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6406
      # that says an option was ignored or not supported.
 
6407
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6408
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6409
      # The diagnosis changed in icc 8.0:
 
6410
      #   icc: Command line remark: option '-MP' not supported
 
6411
      if (grep 'ignoring option' conftest.err ||
 
6412
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6413
        am_cv_$1_dependencies_compiler_type=$depmode
 
6414
        break
 
6415
      fi
 
6416
    fi
 
6417
  done
 
6418
 
 
6419
  cd ..
 
6420
  rm -rf conftest.dir
 
6421
else
 
6422
  am_cv_$1_dependencies_compiler_type=none
 
6423
fi
 
6424
])
 
6425
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
6426
AM_CONDITIONAL([am__fastdep$1], [
 
6427
  test "x$enable_dependency_tracking" != xno \
 
6428
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
6429
])
 
6430
 
 
6431
 
 
6432
# AM_SET_DEPDIR
 
6433
# -------------
 
6434
# Choose a directory name for dependency files.
 
6435
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
6436
AC_DEFUN([AM_SET_DEPDIR],
 
6437
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6438
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
6439
])
 
6440
 
 
6441
 
 
6442
# AM_DEP_TRACK
 
6443
# ------------
 
6444
AC_DEFUN([AM_DEP_TRACK],
 
6445
[AC_ARG_ENABLE(dependency-tracking,
 
6446
[  --disable-dependency-tracking  speeds up one-time build
 
6447
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
6448
if test "x$enable_dependency_tracking" != xno; then
 
6449
  am_depcomp="$ac_aux_dir/depcomp"
 
6450
  AMDEPBACKSLASH='\'
 
6451
fi
 
6452
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
6453
AC_SUBST([AMDEPBACKSLASH])
 
6454
])
 
6455
 
 
6456
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
6457
 
 
6458
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6459
# Free Software Foundation, Inc.
 
6460
#
 
6461
# This file is free software; the Free Software Foundation
 
6462
# gives unlimited permission to copy and/or distribute it,
 
6463
# with or without modifications, as long as this notice is preserved.
 
6464
 
 
6465
#serial 3
 
6466
 
 
6467
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6468
# ------------------------------
 
6469
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6470
[for mf in $CONFIG_FILES; do
 
6471
  # Strip MF so we end up with the name of the file.
 
6472
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
6473
  # Check whether this is an Automake generated Makefile or not.
 
6474
  # We used to match only the files named `Makefile.in', but
 
6475
  # some people rename them; so instead we look at the file content.
 
6476
  # Grep'ing the first line is not enough: some people post-process
 
6477
  # each Makefile.in and add a new line on top of each file to say so.
 
6478
  # So let's grep whole file.
 
6479
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
6480
    dirpart=`AS_DIRNAME("$mf")`
 
6481
  else
 
6482
    continue
 
6483
  fi
 
6484
  # Extract the definition of DEPDIR, am__include, and am__quote
 
6485
  # from the Makefile without running `make'.
 
6486
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
6487
  test -z "$DEPDIR" && continue
 
6488
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
6489
  test -z "am__include" && continue
 
6490
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
6491
  # When using ansi2knr, U may be empty or an underscore; expand it
 
6492
  U=`sed -n 's/^U = //p' < "$mf"`
 
6493
  # Find all dependency output files, they are included files with
 
6494
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
6495
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
6496
  # expansion.
 
6497
  for file in `sed -n "
 
6498
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
6499
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
6500
    # Make sure the directory exists.
 
6501
    test -f "$dirpart/$file" && continue
 
6502
    fdir=`AS_DIRNAME(["$file"])`
 
6503
    AS_MKDIR_P([$dirpart/$fdir])
 
6504
    # echo "creating $dirpart/$file"
 
6505
    echo '# dummy' > "$dirpart/$file"
 
6506
  done
 
6507
done
 
6508
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6509
 
 
6510
 
 
6511
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
6512
# -----------------------------
 
6513
# This macro should only be invoked once -- use via AC_REQUIRE.
 
6514
#
 
6515
# This code is only required when automatic dependency tracking
 
6516
# is enabled.  FIXME.  This creates each `.P' file that we will
 
6517
# need in order to bootstrap the dependency handling code.
 
6518
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6519
[AC_CONFIG_COMMANDS([depfiles],
 
6520
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6521
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
6522
])
 
6523
 
 
6524
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
6525
# Free Software Foundation, Inc.
 
6526
#
 
6527
# This file is free software; the Free Software Foundation
 
6528
# gives unlimited permission to copy and/or distribute it,
 
6529
# with or without modifications, as long as this notice is preserved.
 
6530
 
 
6531
# serial 8
 
6532
 
 
6533
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
6534
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
6535
 
 
6536
# Do all the work for Automake.                             -*- Autoconf -*-
 
6537
 
 
6538
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6539
# Free Software Foundation, Inc.
 
6540
#
 
6541
# This file is free software; the Free Software Foundation
 
6542
# gives unlimited permission to copy and/or distribute it,
 
6543
# with or without modifications, as long as this notice is preserved.
 
6544
 
 
6545
# serial 12
 
6546
 
 
6547
# This macro actually does too much.  Some checks are only needed if
 
6548
# your package does certain things.  But this isn't really a big deal.
 
6549
 
 
6550
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
6551
# AM_INIT_AUTOMAKE([OPTIONS])
 
6552
# -----------------------------------------------
 
6553
# The call with PACKAGE and VERSION arguments is the old style
 
6554
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
6555
# and VERSION should now be passed to AC_INIT and removed from
 
6556
# the call to AM_INIT_AUTOMAKE.
 
6557
# We support both call styles for the transition.  After
 
6558
# the next Automake release, Autoconf can make the AC_INIT
 
6559
# arguments mandatory, and then we can depend on a new Autoconf
 
6560
# release and drop the old call support.
 
6561
AC_DEFUN([AM_INIT_AUTOMAKE],
 
6562
[AC_PREREQ([2.58])dnl
 
6563
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
6564
dnl the ones we care about.
 
6565
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
6566
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
6567
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
6568
# test to see if srcdir already configured
 
6569
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
6570
   test -f $srcdir/config.status; then
 
6571
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
6572
fi
 
6573
 
 
6574
# test whether we have cygpath
 
6575
if test -z "$CYGPATH_W"; then
 
6576
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
6577
    CYGPATH_W='cygpath -w'
 
6578
  else
 
6579
    CYGPATH_W=echo
 
6580
  fi
 
6581
fi
 
6582
AC_SUBST([CYGPATH_W])
 
6583
 
 
6584
# Define the identity of the package.
 
6585
dnl Distinguish between old-style and new-style calls.
 
6586
m4_ifval([$2],
 
6587
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
6588
 AC_SUBST([PACKAGE], [$1])dnl
 
6589
 AC_SUBST([VERSION], [$2])],
 
6590
[_AM_SET_OPTIONS([$1])dnl
 
6591
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
6592
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
6593
 
 
6594
_AM_IF_OPTION([no-define],,
 
6595
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
6596
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
6597
 
 
6598
# Some tools Automake needs.
 
6599
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
6600
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
6601
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
6602
AM_MISSING_PROG(AUTOCONF, autoconf)
 
6603
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
6604
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
6605
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
6606
AM_PROG_INSTALL_SH
 
6607
AM_PROG_INSTALL_STRIP
 
6608
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
6609
# We need awk for the "check" target.  The system "awk" is bad on
 
6610
# some platforms.
 
6611
AC_REQUIRE([AC_PROG_AWK])dnl
 
6612
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
6613
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6614
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
6615
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
6616
                             [_AM_PROG_TAR([v7])])])
 
6617
_AM_IF_OPTION([no-dependencies],,
 
6618
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
6619
                  [_AM_DEPENDENCIES(CC)],
 
6620
                  [define([AC_PROG_CC],
 
6621
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
6622
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
6623
                  [_AM_DEPENDENCIES(CXX)],
 
6624
                  [define([AC_PROG_CXX],
 
6625
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
6626
])
 
6627
])
 
6628
 
 
6629
 
 
6630
# When config.status generates a header, we must update the stamp-h file.
 
6631
# This file resides in the same directory as the config header
 
6632
# that is generated.  The stamp files are numbered to have different names.
 
6633
 
 
6634
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
6635
# loop where config.status creates the headers, so we can generate
 
6636
# our stamp files there.
 
6637
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
6638
[# Compute $1's index in $config_headers.
 
6639
_am_stamp_count=1
 
6640
for _am_header in $config_headers :; do
 
6641
  case $_am_header in
 
6642
    $1 | $1:* )
 
6643
      break ;;
 
6644
    * )
 
6645
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
6646
  esac
 
6647
done
 
6648
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
6649
 
 
6650
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6651
#
 
6652
# This file is free software; the Free Software Foundation
 
6653
# gives unlimited permission to copy and/or distribute it,
 
6654
# with or without modifications, as long as this notice is preserved.
 
6655
 
 
6656
# AM_PROG_INSTALL_SH
 
6657
# ------------------
 
6658
# Define $install_sh.
 
6659
AC_DEFUN([AM_PROG_INSTALL_SH],
 
6660
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6661
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
6662
AC_SUBST(install_sh)])
 
6663
 
 
6664
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
6665
#
 
6666
# This file is free software; the Free Software Foundation
 
6667
# gives unlimited permission to copy and/or distribute it,
 
6668
# with or without modifications, as long as this notice is preserved.
 
6669
 
 
6670
# serial 2
 
6671
 
 
6672
# Check whether the underlying file-system supports filenames
 
6673
# with a leading dot.  For instance MS-DOS doesn't.
 
6674
AC_DEFUN([AM_SET_LEADING_DOT],
 
6675
[rm -rf .tst 2>/dev/null
 
6676
mkdir .tst 2>/dev/null
 
6677
if test -d .tst; then
 
6678
  am__leading_dot=.
 
6679
else
 
6680
  am__leading_dot=_
 
6681
fi
 
6682
rmdir .tst 2>/dev/null
 
6683
AC_SUBST([am__leading_dot])])
 
6684
 
 
6685
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
6686
# From Jim Meyering
 
6687
 
 
6688
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
6689
# Free Software Foundation, Inc.
 
6690
#
 
6691
# This file is free software; the Free Software Foundation
 
6692
# gives unlimited permission to copy and/or distribute it,
 
6693
# with or without modifications, as long as this notice is preserved.
 
6694
 
 
6695
# serial 4
 
6696
 
 
6697
AC_DEFUN([AM_MAINTAINER_MODE],
 
6698
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
6699
  dnl maintainer-mode is disabled by default
 
6700
  AC_ARG_ENABLE(maintainer-mode,
 
6701
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
6702
                          (and sometimes confusing) to the casual installer],
 
6703
      USE_MAINTAINER_MODE=$enableval,
 
6704
      USE_MAINTAINER_MODE=no)
 
6705
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
6706
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
6707
  MAINT=$MAINTAINER_MODE_TRUE
 
6708
  AC_SUBST(MAINT)dnl
 
6709
]
 
6710
)
 
6711
 
 
6712
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
6713
 
 
6714
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
6715
 
 
6716
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
6717
#
 
6718
# This file is free software; the Free Software Foundation
 
6719
# gives unlimited permission to copy and/or distribute it,
 
6720
# with or without modifications, as long as this notice is preserved.
 
6721
 
 
6722
# serial 3
 
6723
 
 
6724
# AM_MAKE_INCLUDE()
 
6725
# -----------------
 
6726
# Check to see how make treats includes.
 
6727
AC_DEFUN([AM_MAKE_INCLUDE],
 
6728
[am_make=${MAKE-make}
 
6729
cat > confinc << 'END'
 
6730
am__doit:
 
6731
        @echo done
 
6732
.PHONY: am__doit
 
6733
END
 
6734
# If we don't find an include directive, just comment out the code.
 
6735
AC_MSG_CHECKING([for style of include used by $am_make])
 
6736
am__include="#"
 
6737
am__quote=
 
6738
_am_result=none
 
6739
# First try GNU make style include.
 
6740
echo "include confinc" > confmf
 
6741
# We grep out `Entering directory' and `Leaving directory'
 
6742
# messages which can occur if `w' ends up in MAKEFLAGS.
 
6743
# In particular we don't look at `^make:' because GNU make might
 
6744
# be invoked under some other name (usually "gmake"), in which
 
6745
# case it prints its new name instead of `make'.
 
6746
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
6747
   am__include=include
 
6748
   am__quote=
 
6749
   _am_result=GNU
 
6750
fi
 
6751
# Now try BSD make style include.
 
6752
if test "$am__include" = "#"; then
 
6753
   echo '.include "confinc"' > confmf
 
6754
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
6755
      am__include=.include
 
6756
      am__quote="\""
 
6757
      _am_result=BSD
 
6758
   fi
 
6759
fi
 
6760
AC_SUBST([am__include])
 
6761
AC_SUBST([am__quote])
 
6762
AC_MSG_RESULT([$_am_result])
 
6763
rm -f confinc confmf
 
6764
])
 
6765
 
 
6766
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
6767
 
 
6768
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
6769
# Free Software Foundation, Inc.
 
6770
#
 
6771
# This file is free software; the Free Software Foundation
 
6772
# gives unlimited permission to copy and/or distribute it,
 
6773
# with or without modifications, as long as this notice is preserved.
 
6774
 
 
6775
# serial 4
 
6776
 
 
6777
# AM_MISSING_PROG(NAME, PROGRAM)
 
6778
# ------------------------------
 
6779
AC_DEFUN([AM_MISSING_PROG],
 
6780
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
6781
$1=${$1-"${am_missing_run}$2"}
 
6782
AC_SUBST($1)])
 
6783
 
 
6784
 
 
6785
# AM_MISSING_HAS_RUN
 
6786
# ------------------
 
6787
# Define MISSING if not defined so far and test if it supports --run.
 
6788
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
6789
AC_DEFUN([AM_MISSING_HAS_RUN],
 
6790
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
6791
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
6792
# Use eval to expand $SHELL
 
6793
if eval "$MISSING --run true"; then
 
6794
  am_missing_run="$MISSING --run "
 
6795
else
 
6796
  am_missing_run=
 
6797
  AC_MSG_WARN([`missing' script is too old or missing])
 
6798
fi
 
6799
])
 
6800
 
 
6801
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
6802
#
 
6803
# This file is free software; the Free Software Foundation
 
6804
# gives unlimited permission to copy and/or distribute it,
 
6805
# with or without modifications, as long as this notice is preserved.
 
6806
 
 
6807
# AM_PROG_MKDIR_P
 
6808
# ---------------
 
6809
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
6810
#
 
6811
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
6812
# created by `make install' are always world readable, even if the
 
6813
# installer happens to have an overly restrictive umask (e.g. 077).
 
6814
# This was a mistake.  There are at least two reasons why we must not
 
6815
# use `-m 0755':
 
6816
#   - it causes special bits like SGID to be ignored,
 
6817
#   - it may be too restrictive (some setups expect 775 directories).
 
6818
#
 
6819
# Do not use -m 0755 and let people choose whatever they expect by
 
6820
# setting umask.
 
6821
#
 
6822
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
6823
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
6824
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
6825
# concurrently, both version can detect that a/ is missing, but only
 
6826
# one can create it and the other will error out.  Consequently we
 
6827
# restrict ourselves to GNU make (using the --version option ensures
 
6828
# this.)
 
6829
AC_DEFUN([AM_PROG_MKDIR_P],
 
6830
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
6831
  # We used to keeping the `.' as first argument, in order to
 
6832
  # allow $(mkdir_p) to be used without argument.  As in
 
6833
  #   $(mkdir_p) $(somedir)
 
6834
  # where $(somedir) is conditionally defined.  However this is wrong
 
6835
  # for two reasons:
 
6836
  #  1. if the package is installed by a user who cannot write `.'
 
6837
  #     make install will fail,
 
6838
  #  2. the above comment should most certainly read
 
6839
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
6840
  #     so it does not work when $(somedir) is undefined and
 
6841
  #     $(DESTDIR) is not.
 
6842
  #  To support the latter case, we have to write
 
6843
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
6844
  #  so the `.' trick is pointless.
 
6845
  mkdir_p='mkdir -p --'
 
6846
else
 
6847
  # On NextStep and OpenStep, the `mkdir' command does not
 
6848
  # recognize any option.  It will interpret all options as
 
6849
  # directories to create, and then abort because `.' already
 
6850
  # exists.
 
6851
  for d in ./-p ./--version;
 
6852
  do
 
6853
    test -d $d && rmdir $d
 
6854
  done
 
6855
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
6856
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
6857
    mkdir_p='$(mkinstalldirs)'
 
6858
  else
 
6859
    mkdir_p='$(install_sh) -d'
 
6860
  fi
 
6861
fi
 
6862
AC_SUBST([mkdir_p])])
 
6863
 
 
6864
# Helper functions for option handling.                     -*- Autoconf -*-
 
6865
 
 
6866
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
6867
#
 
6868
# This file is free software; the Free Software Foundation
 
6869
# gives unlimited permission to copy and/or distribute it,
 
6870
# with or without modifications, as long as this notice is preserved.
 
6871
 
 
6872
# serial 3
 
6873
 
 
6874
# _AM_MANGLE_OPTION(NAME)
 
6875
# -----------------------
 
6876
AC_DEFUN([_AM_MANGLE_OPTION],
 
6877
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
6878
 
 
6879
# _AM_SET_OPTION(NAME)
 
6880
# ------------------------------
 
6881
# Set option NAME.  Presently that only means defining a flag for this option.
 
6882
AC_DEFUN([_AM_SET_OPTION],
 
6883
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
6884
 
 
6885
# _AM_SET_OPTIONS(OPTIONS)
 
6886
# ----------------------------------
 
6887
# OPTIONS is a space-separated list of Automake options.
 
6888
AC_DEFUN([_AM_SET_OPTIONS],
 
6889
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
6890
 
 
6891
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
6892
# -------------------------------------------
 
6893
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
6894
AC_DEFUN([_AM_IF_OPTION],
 
6895
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
6896
 
 
6897
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
6898
 
 
6899
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
6900
# Free Software Foundation, Inc.
 
6901
#
 
6902
# This file is free software; the Free Software Foundation
 
6903
# gives unlimited permission to copy and/or distribute it,
 
6904
# with or without modifications, as long as this notice is preserved.
 
6905
 
 
6906
# serial 4
 
6907
 
 
6908
# AM_SANITY_CHECK
 
6909
# ---------------
 
6910
AC_DEFUN([AM_SANITY_CHECK],
 
6911
[AC_MSG_CHECKING([whether build environment is sane])
 
6912
# Just in case
 
6913
sleep 1
 
6914
echo timestamp > conftest.file
 
6915
# Do `set' in a subshell so we don't clobber the current shell's
 
6916
# arguments.  Must try -L first in case configure is actually a
 
6917
# symlink; some systems play weird games with the mod time of symlinks
 
6918
# (eg FreeBSD returns the mod time of the symlink's containing
 
6919
# directory).
 
6920
if (
 
6921
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
6922
   if test "$[*]" = "X"; then
 
6923
      # -L didn't work.
 
6924
      set X `ls -t $srcdir/configure conftest.file`
 
6925
   fi
 
6926
   rm -f conftest.file
 
6927
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
6928
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
6929
 
 
6930
      # If neither matched, then we have a broken ls.  This can happen
 
6931
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
6932
      # broken ls alias from the environment.  This has actually
 
6933
      # happened.  Such a system could not be considered "sane".
 
6934
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
6935
alias in your environment])
 
6936
   fi
 
6937
 
 
6938
   test "$[2]" = conftest.file
 
6939
   )
 
6940
then
 
6941
   # Ok.
 
6942
   :
 
6943
else
 
6944
   AC_MSG_ERROR([newly created file is older than distributed files!
 
6945
Check your system clock])
 
6946
fi
 
6947
AC_MSG_RESULT(yes)])
 
6948
 
 
6949
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6950
#
 
6951
# This file is free software; the Free Software Foundation
 
6952
# gives unlimited permission to copy and/or distribute it,
 
6953
# with or without modifications, as long as this notice is preserved.
 
6954
 
 
6955
# AM_PROG_INSTALL_STRIP
 
6956
# ---------------------
 
6957
# One issue with vendor `install' (even GNU) is that you can't
 
6958
# specify the program used to strip binaries.  This is especially
 
6959
# annoying in cross-compiling environments, where the build's strip
 
6960
# is unlikely to handle the host's binaries.
 
6961
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
6962
# always use install-sh in `make install-strip', and initialize
 
6963
# STRIPPROG with the value of the STRIP variable (set by the user).
 
6964
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
6965
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
6966
# Installed binaries are usually stripped using `strip' when the user
 
6967
# run `make install-strip'.  However `strip' might not be the right
 
6968
# tool to use in cross-compilation environments, therefore Automake
 
6969
# will honor the `STRIP' environment variable to overrule this program.
 
6970
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
6971
if test "$cross_compiling" != no; then
 
6972
  AC_CHECK_TOOL([STRIP], [strip], :)
 
6973
fi
 
6974
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
6975
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
6976
 
 
6977
# Check how to create a tarball.                            -*- Autoconf -*-
 
6978
 
 
6979
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
6980
#
 
6981
# This file is free software; the Free Software Foundation
 
6982
# gives unlimited permission to copy and/or distribute it,
 
6983
# with or without modifications, as long as this notice is preserved.
 
6984
 
 
6985
# serial 2
 
6986
 
 
6987
# _AM_PROG_TAR(FORMAT)
 
6988
# --------------------
 
6989
# Check how to create a tarball in format FORMAT.
 
6990
# FORMAT should be one of `v7', `ustar', or `pax'.
 
6991
#
 
6992
# Substitute a variable $(am__tar) that is a command
 
6993
# writing to stdout a FORMAT-tarball containing the directory
 
6994
# $tardir.
 
6995
#     tardir=directory && $(am__tar) > result.tar
 
6996
#
 
6997
# Substitute a variable $(am__untar) that extract such
 
6998
# a tarball read from stdin.
 
6999
#     $(am__untar) < result.tar
 
7000
AC_DEFUN([_AM_PROG_TAR],
 
7001
[# Always define AMTAR for backward compatibility.
 
7002
AM_MISSING_PROG([AMTAR], [tar])
 
7003
m4_if([$1], [v7],
 
7004
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7005
     [m4_case([$1], [ustar],, [pax],,
 
7006
              [m4_fatal([Unknown tar format])])
 
7007
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7008
# Loop over all known methods to create a tar archive until one works.
 
7009
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7010
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7011
# Do not fold the above two line into one, because Tru64 sh and
 
7012
# Solaris sh will not grok spaces in the rhs of `-'.
 
7013
for _am_tool in $_am_tools
 
7014
do
 
7015
  case $_am_tool in
 
7016
  gnutar)
 
7017
    for _am_tar in tar gnutar gtar;
 
7018
    do
 
7019
      AM_RUN_LOG([$_am_tar --version]) && break
 
7020
    done
 
7021
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7022
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7023
    am__untar="$_am_tar -xf -"
 
7024
    ;;
 
7025
  plaintar)
 
7026
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7027
    # ustar tarball either.
 
7028
    (tar --version) >/dev/null 2>&1 && continue
 
7029
    am__tar='tar chf - "$$tardir"'
 
7030
    am__tar_='tar chf - "$tardir"'
 
7031
    am__untar='tar xf -'
 
7032
    ;;
 
7033
  pax)
 
7034
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7035
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7036
    am__untar='pax -r'
 
7037
    ;;
 
7038
  cpio)
 
7039
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7040
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7041
    am__untar='cpio -i -H $1 -d'
 
7042
    ;;
 
7043
  none)
 
7044
    am__tar=false
 
7045
    am__tar_=false
 
7046
    am__untar=false
 
7047
    ;;
 
7048
  esac
 
7049
 
 
7050
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7051
  # and am__untar set.
 
7052
  test -n "${am_cv_prog_tar_$1}" && break
 
7053
 
 
7054
  # tar/untar a dummy directory, and stop if the command works
 
7055
  rm -rf conftest.dir
 
7056
  mkdir conftest.dir
 
7057
  echo GrepMe > conftest.dir/file
 
7058
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7059
  rm -rf conftest.dir
 
7060
  if test -s conftest.tar; then
 
7061
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7062
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
7063
  fi
 
7064
done
 
7065
rm -rf conftest.dir
 
7066
 
 
7067
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7068
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7069
AC_SUBST([am__tar])
 
7070
AC_SUBST([am__untar])
 
7071
]) # _AM_PROG_TAR
6957
7072
 
6958
7073
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
6959
7074
# Copyright (C) 2001-2003 Red Hat, Inc.
7141
7256
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
7142
7257
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
7143
7258
        if test "$MSGFMT" != "no"; then
 
7259
          glib_save_LIBS="$LIBS"
 
7260
          LIBS="$LIBS $INTLLIBS"
7144
7261
          AC_CHECK_FUNCS(dcgettext)
7145
7262
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
7146
7263
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
7167
7284
            DATADIRNAME=lib
7168
7285
            ;;
7169
7286
            esac])
 
7287
          LIBS="$glib_save_LIBS"
7170
7288
          INSTOBJEXT=.mo
7171
7289
        else
7172
7290
          gt_cv_have_gettext=no
7231
7349
# on various variables needed by the Makefile.in.in installed by 
7232
7350
# glib-gettextize.
7233
7351
dnl
7234
 
glib_DEFUN(GLIB_GNU_GETTEXT,
 
7352
glib_DEFUN([GLIB_GNU_GETTEXT],
7235
7353
  [AC_REQUIRE([AC_PROG_CC])dnl
7236
7354
   AC_REQUIRE([AC_HEADER_STDC])dnl
7237
7355
   
7308
7426
# -------------------------------
7309
7427
# Define VARIABLE to the location where catalog files will
7310
7428
# be installed by po/Makefile.
7311
 
glib_DEFUN(GLIB_DEFINE_LOCALEDIR,
 
7429
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
7312
7430
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
7313
7431
glib_save_prefix="$prefix"
7314
7432
glib_save_exec_prefix="$exec_prefix"
7329
7447
dnl Now the definitions that aclocal will find
7330
7448
dnl
7331
7449
ifdef(glib_configure_in,[],[
7332
 
AC_DEFUN(AM_GLIB_GNU_GETTEXT,[GLIB_GNU_GETTEXT($@)])
7333
 
AC_DEFUN(AM_GLIB_DEFINE_LOCALEDIR,[GLIB_DEFINE_LOCALEDIR($@)])
 
7450
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
7451
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
7334
7452
])dnl
7335
7453
 
7336
 
dnl From Benedikt Meurer (benedikt.meurer@unix-ag.uni-siegen.de)
7337
 
dnl
7338
 
dnl
7339
 
 
 
7454
dnl $Id: xdt-depends.m4 2273 2005-01-31 19:38:09Z benny $
 
7455
dnl
 
7456
dnl Copyright (c) 2002-2005
 
7457
dnl         The Xfce development team. All rights reserved.
 
7458
dnl
 
7459
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
 
7460
dnl
 
7461
dnl xdt-depends
 
7462
dnl -----------
 
7463
dnl  Contains M4 macros to check for software dependencies.
 
7464
dnl  Partly based on prior work of the XDG contributors.
 
7465
dnl
 
7466
 
 
7467
 
 
7468
 
 
7469
dnl We need recent a autoconf version
 
7470
AC_PREREQ([2.53])
 
7471
 
 
7472
 
 
7473
 
 
7474
dnl XDT_PROG_PKG_CONFIG()
 
7475
dnl
 
7476
dnl Checks for the freedesktop.org pkg-config
 
7477
dnl utility and sets the PKG_CONFIG environment
 
7478
dnl variable to the full path if found.
 
7479
dnl
 
7480
AC_DEFUN([XDT_PROG_PKG_CONFIG],
 
7481
[
 
7482
  # minimum supported version of pkg-config
 
7483
  xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
 
7484
 
 
7485
  # lookup pkg-config utility
 
7486
  if test x"$PKG_CONFIG" = x""; then
 
7487
    AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
 
7488
 
 
7489
    if test x"$PKG_CONFIG" = x"no"; then
 
7490
      echo "*** The pkg-config utility could not be found on your system."
 
7491
      echo "*** Make sure it is in your path, or set the PKG_CONFIG"
 
7492
      echo "*** environment variable to the full path to pkg-config."
 
7493
      echo "*** You can download pkg-config from the freedesktop.org"
 
7494
      echo "*** software repository at"
 
7495
      echo "***"
 
7496
      echo "***    http://www.freedesktop.org/software/pkgconfig"
 
7497
      echo "***"
 
7498
      exit 1
 
7499
    fi
 
7500
 
 
7501
    # check pkg-config version
 
7502
    AC_MSG_CHECKING([for pkg-config >= $xdt_cv_PKG_CONFIG_MIN_VERSION])
 
7503
    if $PKG_CONFIG --atleast-pkgconfig-version $xdt_cv_PKG_CONFIG_MIN_VERSION; then
 
7504
      xdt_cv_PKG_CONFIG_VERSION=`$PKG_CONFIG --version`
 
7505
      AC_MSG_RESULT([$xdt_cv_PKG_CONFIG_VERSION])
 
7506
    else
 
7507
      xdt_cv_PKG_CONFIG_VERSION=`$PKG_CONFIG --version`
 
7508
      AC_MSG_RESULT([$xdt_cv_PKG_CONFIG_VERSION])
 
7509
      echo "*** Your version of pkg-config is too old. You need atleast"
 
7510
      echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config "
 
7511
      echo "*** from the freedesktop.org software repository at"
 
7512
      echo "***"
 
7513
      echo "***    http://www.freedesktop.org/software/pkgconfig"
 
7514
      echo "***"
 
7515
      exit 1
 
7516
    fi
 
7517
  fi
 
7518
])
 
7519
 
 
7520
 
 
7521
 
 
7522
dnl XDT_CHECK_PACKAGE(varname, package, version, [action-if], [action-if-not])
 
7523
dnl
 
7524
dnl Checks if "package" >= "version" is installed on the
 
7525
dnl target system, using the pkg-config utility. If the
 
7526
dnl dependency is met, "varname"_CFLAGS, "varname"_LIBS,
 
7527
dnl "varname"_VERSION and "varname"_REQUIRED_VERSION
 
7528
dnl will be set and marked for substition.
 
7529
dnl
 
7530
dnl "varname"_REQUIRED_VERSION will be set to the value of
 
7531
dnl "version". This is mostly useful to automatically
 
7532
dnl place the correct version information into the RPM
 
7533
dnl .spec file.
 
7534
dnl
 
7535
dnl In addition, if the dependency is met, "action-if" will
 
7536
dnl be executed if given.
 
7537
dnl
 
7538
dnl If the package check fails, "action-if-not" will be
 
7539
dnl executed. If this parameter isn't specified, a diagnostic
 
7540
dnl message will be printed and the configure script will
 
7541
dnl be terminated with exit code 1.
 
7542
dnl
 
7543
AC_DEFUN([XDT_CHECK_PACKAGE],
 
7544
[
 
7545
  XDT_PROG_PKG_CONFIG()
 
7546
 
 
7547
  AC_MSG_CHECKING([for $2 >= $3])
 
7548
  if $PKG_CONFIG "--atleast-version=$3" "$2" >/dev/null 2>&1; then
 
7549
    $1_VERSION=`$PKG_CONFIG --modversion "$2"`
 
7550
    AC_MSG_RESULT([$$1_VERSION])
 
7551
 
 
7552
    AC_MSG_CHECKING([$1_CFLAGS])
 
7553
    $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
 
7554
    AC_MSG_RESULT([$$1_CFLAGS])
 
7555
 
 
7556
    AC_MSG_CHECKING([$1_LIBS])
 
7557
    $1_LIBS=`$PKG_CONFIG --libs "$2"`
 
7558
    AC_MSG_RESULT([$$1_LIBS])
 
7559
 
 
7560
    $1_REQUIRED_VERSION=$3
 
7561
 
 
7562
    AC_SUBST([$1_VERSION])
 
7563
    AC_SUBST([$1_CFLAGS])
 
7564
    AC_SUBST([$1_LIBS])
 
7565
    AC_SUBST([$1_REQUIRED_VERSION])
 
7566
 
 
7567
    ifelse([$4], , , [$4])
 
7568
  elif $PKG_CONFIG --exists "$2" >/dev/null 2>&1; then
 
7569
    xdg_cv_version=`$PKG_CONFIG --modversion "$2"`
 
7570
    AC_MSG_RESULT([found, but $xdt_cv_version])
 
7571
 
 
7572
    ifelse([$5], ,
 
7573
    [
 
7574
      echo "*** The required package $2 was found on your system,"
 
7575
      echo "*** but the installed version ($xdt_cv_version) is too old."
 
7576
      echo "*** Please upgrade $2 to atleast version $3, or adjust"
 
7577
      echo "*** the PKG_CONFIG_PATH environment variable if you installed"
 
7578
      echo "*** the new version of the package in a nonstandard prefix so"
 
7579
      echo "*** pkg-config is able to find it."
 
7580
      exit 1
 
7581
    ], [$5])
 
7582
  else
 
7583
    AC_MSG_RESULT([not found])
 
7584
 
 
7585
    ifelse([$5], ,
 
7586
    [
 
7587
      echo "*** The required package $2 was not found on your system."
 
7588
      echo "*** Please install $2 (atleast version $3) or adjust"
 
7589
      echo "*** the PKG_CONFIG_PATH environment variable if you"
 
7590
      echo "*** installed the package in a nonstandard prefix so that"
 
7591
      echo "*** pkg-config is able to find it."
 
7592
      exit 1
 
7593
    ], [$5])
 
7594
  fi
 
7595
])
 
7596
 
 
7597
 
 
7598
 
 
7599
dnl XDT_CHECK_OPTIONAL_PACKAGE(varname, package, version, optionname, helpstring, [default])
 
7600
dnl
 
7601
dnl Checks for an optional dependency on "package" >= "version". "default"
 
7602
dnl can be "yes" or "no" (defaults to "yes" if not specified) and controls
 
7603
dnl whether configure should check this dependency by default, or only if
 
7604
dnl the user explicitly enables it using a command line switch.
 
7605
dnl
 
7606
dnl This macro automatically adds a commandline switch based on the "optionname"
 
7607
dnl parameter (--enable-optionname/--disable-optionname), which allows the
 
7608
dnl user to explicitly control whether this optional dependency should be
 
7609
dnl enabled or not. The "helpstring" parameter gives a brief(!) description
 
7610
dnl about this dependency.
 
7611
dnl
 
7612
dnl If the user chose to enable this dependency and the required package
 
7613
dnl was found, this macro defines the variable "varname"_FOUND and sets it
 
7614
dnl to the string "yes", in addition to the 4 variables set by XDT_CHECK_PACKAGE.
 
7615
dnl But "varname"_FOUND will not be marked for substition. Furthermore,
 
7616
dnl a CPP define HAVE_"varname" will be placed in config.h (or added to
 
7617
dnl the cc command line, depending on your configure.ac) and set to
 
7618
dnl 1.
 
7619
dnl
 
7620
AC_DEFUN([XDT_CHECK_OPTIONAL_PACKAGE],
 
7621
[
 
7622
  AC_REQUIRE([XDT_PROG_PKG_CONFIG])
 
7623
 
 
7624
  AC_ARG_ENABLE([$4],
 
7625
AC_HELP_STRING([--enable-$4], [Enable checking for $5 (default=m4_default([$6], [yes]))])
 
7626
AC_HELP_STRING([--disable-$4], [Disable checking for $5]),
 
7627
    [xdt_cv_$1_check=$enableval], [xdt_cv_$1_check=m4_default([$6], [yes])])
 
7628
 
 
7629
  if test x"$xdt_cv_$1_check" = x"yes"; then
 
7630
    if $PKG_CONFIG --exists "$2 >= $3" >/dev/null 2>&1; then
 
7631
      XDT_CHECK_PACKAGE([$1], [$2], [$3],
 
7632
      [
 
7633
        AC_DEFINE([HAVE_$1], [1], [Define if $2 >= $3 present])
 
7634
        $1_FOUND="yes"
 
7635
      ])
 
7636
    else
 
7637
      AC_MSG_CHECKING([for optional package $2 >= $3])
 
7638
      AC_MSG_RESULT([not found])
 
7639
    fi
 
7640
  else
 
7641
    AC_MSG_CHECKING([for optional package $2])
 
7642
    AC_MSG_RESULT([disabled])
 
7643
  fi
 
7644
 
 
7645
  AM_CONDITIONAL([HAVE_$1], [test x"$$1_FOUND" = x"yes"])
 
7646
])
 
7647
 
 
7648
 
 
7649
 
 
7650
dnl BM_DEPEND(varname, package, version)
 
7651
dnl
 
7652
dnl Simple wrapper for XDT_CHECK_PACKAGE("varname", "package", "version"). Kept
 
7653
dnl for backward compatibility. Will be removed in the future.
 
7654
dnl
7340
7655
AC_DEFUN([BM_DEPEND],
7341
7656
[
7342
 
  PKG_CHECK_MODULES([$1], [$2 >= $3])
7343
 
  $1_REQUIRED_VERSION=$3
7344
 
  AC_SUBST($1_REQUIRED_VERSION)
 
7657
  XDT_CHECK_PACKAGE([$1], [$2], [$3])
7345
7658
])
7346
7659
 
7347
 
dnl
 
7660
 
 
7661
 
7348
7662
dnl BM_DEPEND_CHECK(var, pkg, version, name, helpstring, default)
7349
7663
dnl
 
7664
dnl Simple wrapper for XDT_CHECK_OPTIONAL_PACKAGE(). Kept for backward
 
7665
dnl compatibility. Will be removed in the future.
 
7666
dnl
7350
7667
AC_DEFUN([BM_DEPEND_CHECK],
7351
7668
[
7352
 
  AC_ARG_ENABLE([$4],
7353
 
AC_HELP_STRING([--enable-$4], [Enable checking for $5 (default=$6)])
7354
 
AC_HELP_STRING([--disable-$4], [Disable checking for $5]),
7355
 
    [ac_cv_$1_check=$enableval], [ac_cv_$1_check=$6])
7356
 
 
7357
 
  if test x"$ac_cv_$1_check" = x"yes"; then
7358
 
    AC_MSG_CHECKING([for $2 >= $3])
7359
 
    if $PKG_CONFIG --atleast-version=$3 $2 2> /dev/null; then
7360
 
      AC_MSG_RESULT([yes])
7361
 
      BM_DEPEND([$1], [$2], [$3])
7362
 
      AC_DEFINE([HAVE_$1], [1], [Define if you have $2 >= $3])
7363
 
    else
7364
 
      AC_MSG_RESULT([no])
7365
 
    fi
7366
 
  fi
7367
 
])
7368
 
 
7369
 
dnl
7370
 
dnl XFCE_PANEL_PLUGIN(var, version)
7371
 
dnl
7372
 
dnl Sets $var_CFLAGS, $var_LIBS and $var_PLUGINSDIR
7373
 
dnl
7374
 
AC_DEFUN([XFCE_PANEL_PLUGIN],
7375
 
[
7376
 
  BM_DEPEND([$1], [xfce4-panel-1.0], [$2])
7377
 
 
7378
 
  dnl Check where to put the plugins to
7379
 
  AC_MSG_CHECKING([where to install panel plugins])
7380
 
  $1_PLUGINSDIR=`$PKG_CONFIG --variable=pluginsdir xfce4-panel-1.0`
7381
 
  AC_SUBST([$1_PLUGINSDIR])
7382
 
  AC_MSG_RESULT([$$1_PLUGINSDIR])
7383
 
])
7384
 
 
7385
 
dnl
7386
 
dnl XFCE_MCS_PLUGIN(var, version)
7387
 
dnl
7388
 
dnl sets $var_CFLAGS, $var_LIBS and $var_PLUGINSDIR
7389
 
dnl
7390
 
AC_DEFUN([XFCE_MCS_PLUGIN],
7391
 
[
7392
 
  BM_DEPEND([$1], [xfce-mcs-manager], [$2])
7393
 
 
7394
 
  dnl Check where to put the plugins to
7395
 
  AC_MSG_CHECKING([where to install MCS plugins])
7396
 
  $1_PLUGINSDIR=`$PKG_CONFIG --variable=pluginsdir xfce-mcs-manager`
7397
 
  AC_SUBST([$1_PLUGINSDIR])
7398
 
  AC_MSG_RESULT([$$1_PLUGINSDIR])
7399
 
])
7400
 
 
7401
 
 
7402
 
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
7403
 
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
7404
 
dnl also defines GSTUFF_PKG_ERRORS on error
7405
 
AC_DEFUN(PKG_CHECK_MODULES, [
7406
 
  succeeded=no
7407
 
 
7408
 
  if test -z "$PKG_CONFIG"; then
7409
 
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7410
 
  fi
7411
 
 
7412
 
  if test "$PKG_CONFIG" = "no" ; then
7413
 
     echo "*** The pkg-config script could not be found. Make sure it is"
7414
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
7415
 
     echo "*** to the full path to pkg-config."
7416
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7417
 
  else
7418
 
     PKG_CONFIG_MIN_VERSION=0.9.0
7419
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7420
 
        AC_MSG_CHECKING(for $2)
7421
 
 
7422
 
        if $PKG_CONFIG --exists "$2" ; then
7423
 
            AC_MSG_RESULT(yes)
7424
 
            succeeded=yes
7425
 
 
7426
 
            AC_MSG_CHECKING($1_CFLAGS)
7427
 
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
7428
 
            AC_MSG_RESULT($$1_CFLAGS)
7429
 
 
7430
 
            AC_MSG_CHECKING($1_LIBS)
7431
 
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
7432
 
            AC_MSG_RESULT($$1_LIBS)
7433
 
        else
7434
 
            $1_CFLAGS=""
7435
 
            $1_LIBS=""
7436
 
            ## If we have a custom action on failure, don't print errors, but 
7437
 
            ## do set a variable so people can do so.
7438
 
            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7439
 
            ifelse([$4], ,echo $$1_PKG_ERRORS,)
7440
 
        fi
7441
 
 
7442
 
        AC_SUBST($1_CFLAGS)
7443
 
        AC_SUBST($1_LIBS)
7444
 
     else
7445
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7446
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
7447
 
     fi
7448
 
  fi
7449
 
 
7450
 
  if test $succeeded = yes; then
7451
 
     ifelse([$3], , :, [$3])
7452
 
  else
7453
 
     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
7454
 
  fi
7455
 
])
7456
 
 
7457
 
 
7458
 
 
7459
 
dnl From Benedikt Meurer (benedikt.meurer@unix-ag.uni-siegen.de)
7460
 
dnl
7461
 
dnl if debug support is requested:
7462
 
dnl
7463
 
dnl   1) defines DEBUG to 1
7464
 
dnl   2) adds requested debug level flags to CFLAGS
7465
 
dnl
7466
 
 
7467
 
AC_DEFUN([BM_DEBUG_SUPPORT],
 
7669
  XDT_CHECK_OPTIONAL_PACKAGE([$1], [$2], [$3], [$4], [$5], [$6])
 
7670
])
 
7671
 
 
7672
 
 
7673
 
 
7674
dnl XDT_CHECK_LIBX11()
 
7675
dnl
 
7676
dnl Executes various checks for X11. Sets LIBX11_CFLAGS, LIBX11_LDFLAGS
 
7677
dnl and LIBX11_LIBS (and marks them for substitution). In addition
 
7678
dnl HAVE_LIBX11 is set to 1 in config.h, if the X window system and
 
7679
dnl the development files are detected on the target system.
 
7680
dnl
 
7681
AC_DEFUN([XDT_CHECK_LIBX11],
 
7682
[
 
7683
  AC_REQUIRE([AC_PATH_XTRA])
 
7684
 
 
7685
  LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS=
 
7686
  if test x"$no_x" != x"yes"; then
 
7687
    AC_CHECK_LIB([X11], [main],
 
7688
    [
 
7689
      AC_DEFINE([HAVE_LIBX11], [1], [Define if libX11 is available])
 
7690
      LIBX11_CFLAGS="$X_CFLAGS"
 
7691
      for option in $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS; do
 
7692
        case "$option" in
 
7693
        -L*)
 
7694
          path=`echo $option | sed 's/^-L//'`
 
7695
          if test x"$path" != x""; then
 
7696
            LIBX11_LDFLAGS="$LIBX11_LDFLAGS -L$path"
 
7697
          fi
 
7698
          ;;
 
7699
        *)
 
7700
          LIBX11_LIBS="$LIBX11_LIBS $option"
 
7701
          ;;
 
7702
        esac
 
7703
      done
 
7704
      if ! echo $LIBX11_LIBS | grep -- '-lX11' >/dev/null; then
 
7705
        LIBX11_LIBS="$LIBX11_LIBS -lX11"
 
7706
      fi
 
7707
    ], [], [$X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS])
 
7708
  fi
 
7709
  AC_SUBST([LIBX11_CFLAGS])
 
7710
  AC_SUBST([LIBX11_LDFLAGS])
 
7711
  AC_SUBST([LIBX11_LIBS])
 
7712
])
 
7713
 
 
7714
 
 
7715
 
 
7716
dnl XDT_CHECK_LIBX11_REQUIRE()
 
7717
dnl
 
7718
dnl Similar to XDT_CHECK_LIBX11(), but terminates with an error if
 
7719
dnl the X window system and development files aren't detected on the
 
7720
dnl target system.
 
7721
dnl
 
7722
AC_DEFUN([XDT_CHECK_LIBX11_REQUIRE],
 
7723
[
 
7724
  AC_REQUIRE([XDT_CHECK_LIBX11])
 
7725
  
 
7726
  if test x"$no_x" = x"yes"; then
 
7727
    AC_MSG_ERROR([X Window system libraries and header files are required])
 
7728
  fi
 
7729
])
 
7730
 
 
7731
 
 
7732
 
 
7733
dnl XDT_CHECK_LIBSM()
 
7734
dnl
 
7735
dnl Checks whether the session management library is present on the
 
7736
dnl target system, and sets LIBSM_CFLAGS, LIBSM_LDFLAGS and LIBSM_LIBS
 
7737
dnl properly. In addition, HAVE_LIBSM will be set to 1 in config.h
 
7738
dnl if libSM is detected.
 
7739
dnl
 
7740
AC_DEFUN([XDT_CHECK_LIBSM],
 
7741
[
 
7742
  AC_REQUIRE([XDT_CHECK_LIBX11])
 
7743
 
 
7744
  LIBSM_CFLAGS= LIBSM_LDFLAGS= LIBSM_LIBS=
 
7745
  if test x"$no_x" != x"yes"; then
 
7746
    AC_CHECK_LIB([SM], [SmcSaveYourselfDone],
 
7747
    [
 
7748
      AC_DEFINE([HAVE_LIBSM], [1], [Define if libSM is available])
 
7749
      LIBSM_CFLAGS="$LIBX11_CFLAGS"
 
7750
      LIBSM_LDFLAGS="$LIBX11_LDFLAGS"
 
7751
      LIBSM_LIBS="$LIBX11_LIBS"
 
7752
      if ! echo $LIBSM_LIBS | grep -- '-lSM' >/dev/null; then
 
7753
        LIBSM_LIBS="$LIBSM_LIBS -lSM -lICE"
 
7754
      fi
 
7755
    ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lICE])
 
7756
  fi
 
7757
  AC_SUBST([LIBSM_CFLAGS])
 
7758
  AC_SUBST([LIBSM_LDFLAGS])
 
7759
  AC_SUBST([LIBSM_LIBS])
 
7760
])
 
7761
 
 
7762
 
 
7763
 
 
7764
dnl XDT_CHECK_LIBXPM()
 
7765
dnl
 
7766
dnl Checks if the Xpm library is present on the target system, and
 
7767
dnl sets LIBXPM_CFLAGS, LIBXPM_LDFLAGS and LIBXPM_LIBS. In addition,
 
7768
dnl HAVE_LIBXPM will be set to 1 in config.h if libXpm is detected.
 
7769
dnl
 
7770
AC_DEFUN([XDT_CHECK_LIBXPM],
 
7771
[
 
7772
  AC_REQUIRE([XDT_CHECK_LIBX11])
 
7773
 
 
7774
  LIBXPM_CFLAGS= LIBXPM_LDFLAGS= LIBXPM_LIBS=
 
7775
  if test "$no_x" != "yes"; then
 
7776
    AC_CHECK_LIB([Xpm], [main],
 
7777
    [
 
7778
      AC_DEFINE([HAVE_LIBXPM], [1], [Define if libXpm is available])
 
7779
      LIBXPM_CFLAGS="$LIBX11_CFLAGS"
 
7780
      LIBXPM_LDFLAGS="$LIBX11_LDFLAGS"
 
7781
      LIBXPM_LIBS="$LIBX11_LIBS"
 
7782
      if ! echo $LIBXPM_LIBS | grep -- '-lXpm' >/dev/null; then
 
7783
        LIBXPM_LIBS="$LIBXPM_LIBS -lXpm"
 
7784
      fi
 
7785
    ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXpm])
 
7786
  fi
 
7787
  AC_SUBST([LIBXPM_CFLAGS])
 
7788
  AC_SUBST([LIBXPM_LDFLAGS])
 
7789
  AC_SUBST([LIBXPM_LIBS])
 
7790
])
 
7791
 
 
7792
 
 
7793
 
 
7794
dnl XDT_CHECK_LIBXPM_REQUIRE()
 
7795
dnl
 
7796
dnl Similar to XDT_CHECK_LIBXPM(), but fails if the Xpm library isn't
 
7797
dnl present on the target system.
 
7798
dnl
 
7799
AC_DEFUN([XDT_CHECK_LIBXPM_REQUIRE],
 
7800
[
 
7801
  AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE])
 
7802
  AC_REQUIRE([XDT_CHECK_LIBXPM])
 
7803
 
 
7804
  if test x"$LIBXPM_LIBS" = x""; then
 
7805
    AC_MSG_ERROR([The Xpm library was not found on your system])
 
7806
  fi
 
7807
])
 
7808
 
 
7809
 
 
7810
 
 
7811
dnl BM_LIBX11()
 
7812
dnl
 
7813
dnl Simple wrapper for XDT_CHECK_LIBX11. Kept for backward
 
7814
dnl compatibility. Will be removed in the future.
 
7815
dnl
 
7816
AC_DEFUN([BM_LIBX11],
 
7817
[
 
7818
  AC_REQUIRE([XDT_CHECK_LIBX11])
 
7819
])
 
7820
 
 
7821
 
 
7822
 
 
7823
dnl BM_LIBX11_REQUIRE()
 
7824
dnl
 
7825
dnl Simple wrapper for XDT_CHECK_LIBX11_REQUIRE. Kept for backward
 
7826
dnl compatibility. Will be removed in the future.
 
7827
dnl
 
7828
AC_DEFUN([BM_LIBX11_REQUIRE],
 
7829
[
 
7830
  AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE])
 
7831
])
 
7832
 
 
7833
 
 
7834
 
 
7835
dnl BM_LIBSM()
 
7836
dnl
 
7837
dnl Simple wrapper for XDT_CHECK_LIBSM. Kept for backward
 
7838
dnl compatibility. Will be removed in the future.
 
7839
dnl
 
7840
AC_DEFUN([BM_LIBSM],
 
7841
[
 
7842
  AC_REQUIRE([XDT_CHECK_LIBSM])
 
7843
])
 
7844
 
 
7845
 
 
7846
 
 
7847
dnl BM_LIBXPM
 
7848
dnl
 
7849
dnl Simple wrapper for XDT_CHECK_LIBXPM. Kept for backward
 
7850
dnl compatibility. Will be removed in the future.
 
7851
dnl
 
7852
AC_DEFUN([BM_LIBXPM],
 
7853
[
 
7854
  AC_REQUIRE([XDT_CHECK_LIBXPM])
 
7855
])
 
7856
 
 
7857
 
 
7858
 
 
7859
dnl BM_LIBXPM_REQUIRE
 
7860
dnl
 
7861
dnl Simple wrapper for XDT_CHECK_LIBXPM_REQUIRE. Kept for
 
7862
dnl backward compatibility. Will be removed in the future.
 
7863
dnl
 
7864
AC_DEFUN([BM_LIBXPM_REQUIRE],
 
7865
[
 
7866
  AC_REQUIRE([XDT_CHECK_LIBXPM_REQUIRE])
 
7867
])
 
7868
 
 
7869
 
 
7870
dnl $Id: xdt-features.m4 2282 2005-03-19 16:00:31Z benny $
 
7871
dnl
 
7872
dnl Copyright (c) 2002-2005
 
7873
dnl         The Xfce development team. All rights reserved.
 
7874
dnl
 
7875
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
 
7876
dnl
 
7877
dnl xdt-depends
 
7878
dnl -----------
 
7879
dnl  Contains M4 macros to check for software dependencies.
 
7880
dnl  Partly based on prior work of the XDG contributors.
 
7881
dnl
 
7882
 
 
7883
 
 
7884
 
 
7885
dnl We need recent a autoconf version
 
7886
AC_PREREQ([2.53])
 
7887
 
 
7888
 
 
7889
 
 
7890
dnl XDT_FEATURE_DEBUG()
 
7891
dnl
 
7892
AC_DEFUN([XDT_FEATURE_DEBUG],
7468
7893
[
7469
7894
  AC_ARG_ENABLE([debug],
7470
7895
AC_HELP_STRING([--enable-debug[=yes|no|full]], [Build with debugging support])
7471
7896
AC_HELP_STRING([--disable-debug], [Include no debugging support [default]]),
7472
 
    [], [enable_debug=no])
 
7897
  [], [enable_debug=no])
7473
7898
 
7474
7899
  AC_MSG_CHECKING([whether to build with debugging support])
7475
7900
  if test x"$enable_debug" != x"no"; then
7476
 
    AC_DEFINE(DEBUG, 1, Define for debugging support)
 
7901
    AC_DEFINE([DEBUG], [1], [Define for debugging support])
 
7902
    
 
7903
    xdt_cv_additional_CFLAGS="-Wall"
 
7904
    xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DG_DISABLE_DEPRECATED"
 
7905
    xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED"
 
7906
    
7477
7907
    if test x"$enable_debug" = x"full"; then
7478
 
      AC_DEFINE(DEBUG_TRACE, 1, Define for tracing support)
7479
 
      CFLAGS="$CFLAGS -g3 -Wall -Werror -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
 
7908
      AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
 
7909
      xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
7480
7910
      AC_MSG_RESULT([full])
7481
7911
    else
7482
 
      CFLAGS="$CFLAGS -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
 
7912
      xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
7483
7913
      AC_MSG_RESULT([yes])
7484
7914
    fi
 
7915
 
 
7916
    CFLAGS="$CFLAGS $xdt_cv_additional_CFLAGS"
 
7917
    CXXFLAGS="$CXXFLAGS $xdt_cv_additional_CFLAGS"
7485
7918
  else
7486
7919
    AC_MSG_RESULT([no])
7487
7920
  fi
7488
 
 
 
7921
])
 
7922
 
 
7923
 
 
7924
 
 
7925
dnl BM_DEBUG_SUPPORT()
 
7926
dnl
 
7927
AC_DEFUN([BM_DEBUG_SUPPORT],
 
7928
[
 
7929
dnl # --enable-debug
 
7930
  AC_REQUIRE([XDT_FEATURE_DEBUG])
 
7931
 
 
7932
dnl # --enable-profiling
7489
7933
  AC_ARG_ENABLE([profiling],
7490
7934
AC_HELP_STRING([--enable-profiling],
7491
7935
    [Generate extra code to write profile information])
7496
7940
  AC_MSG_CHECKING([whether to build with profiling support])
7497
7941
  if test x"$enable_profiling" != x"no"; then
7498
7942
    CFLAGS="$CFLAGS -pg"
7499
 
    AC_MSG_RESULT([yes])
7500
 
  else
7501
 
    AC_MSG_RESULT([no])
7502
 
  fi
7503
 
 
 
7943
    LDFLAGS="$LDFLAGS -pg"
 
7944
    AC_MSG_RESULT([yes])
 
7945
  else
 
7946
    AC_MSG_RESULT([no])
 
7947
  fi
 
7948
 
 
7949
dnl # --enable-gcov
 
7950
  AC_ARG_ENABLE([gcov],
 
7951
AC_HELP_STRING([--enable-gcov],
 
7952
    [compile with coverage profiling instrumentation (gcc only)])
 
7953
AC_HELP_STRING([--disable-gcov],
 
7954
    [do not generate coverage profiling instrumentation (default)]),
 
7955
    [], [enable_gcov=no])
 
7956
 
 
7957
  AC_MSG_CHECKING([whether to compile with coverage profiling instrumentation])
 
7958
  if test x"$enable_gcov" != x"no"; then
 
7959
    CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
 
7960
    AC_MSG_RESULT([yes])
 
7961
  else
 
7962
    AC_MSG_RESULT([no])
 
7963
  fi
 
7964
 
 
7965
dnl # --disable-asserts
7504
7966
  AC_ARG_ENABLE([asserts],
7505
 
AC_HELP_STRING([--enable-asserts], [Enable assert statements (default)])
7506
 
AC_HELP_STRING([--disable-asserts],
7507
 
    [Disable assert statements (USE WITH CARE!!!)]),
 
7967
AC_HELP_STRING([--disable-asserts], [Disable assertions [DANGEROUS]]),
7508
7968
    [], [enable_asserts=yes])
7509
7969
 
7510
 
  AC_MSG_CHECKING([whether to enable assert statements])
7511
 
  if test x"$enable_asserts" != x"yes"; then
7512
 
    CFLAGS="$CFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
7513
 
    AC_MSG_RESULT([no])
7514
 
  else
7515
 
    AC_MSG_RESULT([yes])
7516
 
  fi
7517
 
])
 
7970
  AC_MSG_CHECKING([whether to disable assertions])
 
7971
  if test x"$enable_asserts" = x"no"; then
 
7972
    AC_MSG_RESULT([yes])
 
7973
    CPPFLAGS="$CPPFLAGS -DG_DISABLE_CHECKS -DG_DISABLE_ASSERT"
 
7974
    CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
 
7975
  else
 
7976
    AC_MSG_RESULT([no])
 
7977
  fi
 
7978
 
 
7979
dnl # --enable-final
 
7980
  AC_REQUIRE([AC_PROG_LD])
 
7981
  AC_ARG_ENABLE([final],
 
7982
AC_HELP_STRING([--enable-final], [Build final version]),
 
7983
    [], [enable_final=yes])
 
7984
 
 
7985
  AC_MSG_CHECKING([whether to build final version])
 
7986
  if test x"$enable_final" = x"yes"; then
 
7987
    AC_MSG_RESULT([yes])
 
7988
    AC_MSG_CHECKING([whether $LD accepts -O1])
 
7989
    case `$LD -O1 -v 2>&1 </dev/null` in
 
7990
    *GNU* | *'with BFD'*)
 
7991
      LDFLAGS="$LDFLAGS -Wl,-O1"
 
7992
      AC_MSG_RESULT([yes])
 
7993
        ;;
 
7994
    *)
 
7995
      AC_MSG_RESULT([no])
 
7996
        ;;
 
7997
    esac
 
7998
  else
 
7999
    AC_MSG_RESULT([no])
 
8000
  fi
 
8001
])
 
8002
 
 
8003
dnl $Id: xdt-i18n.m4 2278 2005-03-08 15:23:49Z benny $
 
8004
dnl
 
8005
dnl Copyright (c) 2002-2005
 
8006
dnl         The Xfce development team. All rights reserved.
 
8007
dnl
 
8008
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
 
8009
dnl
 
8010
dnl xdt-i18n
 
8011
dnl --------
 
8012
dnl  Internalization M4 macros.
 
8013
dnl
 
8014
 
 
8015
 
 
8016
dnl XDT_I18N(LINGUAS [, PACKAGE])
 
8017
dnl
 
8018
dnl This macro takes care of setting up everything for i18n support.
 
8019
dnl
 
8020
dnl If PACKAGE isn't specified, it defaults to the package tarname; see
 
8021
dnl the description of AC_INIT() for an explanation of what makes up
 
8022
dnl the package tarname. Normally, you don't need to specify PACKAGE,
 
8023
dnl but you can stick with the default.
 
8024
dnl
 
8025
AC_DEFUN([XDT_I18N],
 
8026
[
 
8027
  dnl Substitute GETTEXT_PACKAGE variable
 
8028
  GETTEXT_PACKAGE=m4_default([$2], [AC_PACKAGE_TARNAME()])
 
8029
  AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Name of default gettext domain])
 
8030
  AC_SUBST([GETTEXT_PACKAGE])
 
8031
 
 
8032
  dnl gettext and stuff
 
8033
  ALL_LINGUAS="$1"
 
8034
  AM_GLIB_GNU_GETTEXT()
 
8035
 
 
8036
  dnl This is required on some Linux systems
 
8037
  AC_CHECK_FUNC([bind_textdomain_codeset])
 
8038
 
 
8039
  dnl Determine where to install locale files
 
8040
  AC_MSG_CHECKING([for locales directory])
 
8041
  AC_ARG_WITH([locales-dir], 
 
8042
  [
 
8043
    AC_HELP_STRING([--with-locales-dir=DIR], [Install locales into DIR])
 
8044
  ], [localedir=$withval],
 
8045
  [
 
8046
    if test x"$CATOBJEXT" = x".mo"; then
 
8047
      localedir=$libdir/locale
 
8048
    else
 
8049
      localedir=$datadir/locale
 
8050
    fi
 
8051
  ])
 
8052
  AC_MSG_RESULT([$localedir])
 
8053
  AC_SUBST([localedir])
 
8054
 
 
8055
  dnl Determine additional xgettext flags
 
8056
  AC_MSG_CHECKING([for additional xgettext flags])
 
8057
  if test x"$XGETTEXT_ARGS" = x""; then
 
8058
    XGETTEXT_ARGS="--keyword=Q_";
 
8059
  else
 
8060
    XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_";
 
8061
  fi
 
8062
  AC_SUBST([XGETTEXT_ARGS])
 
8063
  AC_MSG_RESULT([$XGETTEXT_ARGS])
 
8064
])
 
8065
 
 
8066
 
 
8067
 
 
8068
dnl BM_I18N(PACKAGE, LINGUAS)
 
8069
dnl
 
8070
dnl Simple wrapper for XDT_I18N(LINGUAS, PACKAGE). Kept for
 
8071
dnl backward compatibility. Will be removed in the
 
8072
dnl future.
 
8073
dnl
 
8074
AC_DEFUN([BM_I18N],
 
8075
[
 
8076
  XDT_I18N([$2], [$1])
 
8077
])
 
8078
 
 
8079
 
 
8080
dnl $Id: xdt-xfce.m4 2260 2005-01-26 21:34:18Z benny $
 
8081
dnl
 
8082
dnl Copyright (c) 2002-2005
 
8083
dnl         The Xfce development team. All rights reserved.
 
8084
dnl
 
8085
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
 
8086
dnl
 
8087
dnl xdt-xfce
 
8088
dnl --------
 
8089
dnl  Xfce specific M4 macros.
 
8090
dnl
 
8091
 
 
8092
 
 
8093
 
 
8094
dnl XDT_XFCE_PANEL_PLUGIN(varname, [version = 4.2.0])
 
8095
dnl
 
8096
dnl This macro is intended to be used by panel plugin writers. It
 
8097
dnl detects the xfce4-panel package on the target system and sets
 
8098
dnl "varname"_CFLAGS, "varname"_LIBS, "varname"_REQUIRED_VERSION
 
8099
dnl and "varname"_VERSION properly. The parameter "version"
 
8100
dnl specifies the minimum required version of xfce4-panel (defaults
 
8101
dnl to 4.2.0 if not given).
 
8102
dnl
 
8103
dnl This macro also takes care of handling special panel versions,
 
8104
dnl like the threaded panel, that was used during the Xfce 4.2.0
 
8105
dnl development, and automatically sets up the correct flags.
 
8106
dnl
 
8107
dnl In addition, this macro defines "varname"_PLUGINSDIR (and
 
8108
dnl marks it for substitution), which points to the directory
 
8109
dnl where the panel plugin should be installed to. You should
 
8110
dnl use this variable in your Makefile.am.
 
8111
dnl
 
8112
AC_DEFUN([XDT_XFCE_PANEL_PLUGIN],
 
8113
[
 
8114
  dnl Check for the xfce4-panel package
 
8115
  XDT_CHECK_PACKAGE([$1], [xfce4-panel-1.0], [m4_default([$2], [4.2.0])])
 
8116
 
 
8117
  dnl Check if the panel is threaded (only for old panels)
 
8118
  xdt_cv_CFLAGS=$$1_CFLAGS
 
8119
  AC_MSG_CHECKING([whether the Xfce panel is threaded])
 
8120
  if $PKG_CONFIG --max-version=4.1.90 xfce4-panel-1.0 >/dev/null 2>&1; then
 
8121
    AC_MSG_RESULT([yes])
 
8122
    xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_THREADED=1"
 
8123
    xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_LOCK\(\)=gdk_threads_enter\(\)"
 
8124
    xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_UNLOCK\(\)=gdk_threads_leave\(\)"
 
8125
  else
 
8126
    AC_MSG_RESULT([no])
 
8127
    xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_LOCK\(\)=do{}while\(0\)"
 
8128
    xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_UNLOCK\(\)=do{}while\(0\)"
 
8129
  fi
 
8130
  $1_CFLAGS="$xdt_cv_CFLAGS"
 
8131
 
 
8132
  dnl Check where to put the plugins to
 
8133
  AC_MSG_CHECKING([where to install panel plugins])
 
8134
  $1_PLUGINSDIR=$libdir/xfce4/panel-plugins
 
8135
  AC_SUBST([$1_PLUGINSDIR])
 
8136
  AC_MSG_RESULT([$$1_PLUGINSDIR])
 
8137
])
 
8138
 
 
8139
 
 
8140
 
 
8141
dnl XDT_XFCE_MCS_PLUGIN(varname, [version = 4.2.0])
 
8142
dnl
 
8143
dnl This macro is intented to be used by MCS plugin writers. It
 
8144
dnl detects the MCS manager package on the target system and sets
 
8145
dnl "varname"_CFLAGS, "varname"_LIBS, "varname"_REQUIRED_VERSION,
 
8146
dnl and "varname"_VERSION. The parameter "version" allows you
 
8147
dnl to specify the minimum required version of xfce-mcs-manager
 
8148
dnl (defaults to 4.2.0 if not given).
 
8149
dnl
 
8150
dnl In addition, this macro defines "varname"_PLUGINSDIR (and
 
8151
dnl marks it for substitution), which points to the directory
 
8152
dnl where the MCS plugin should be installed to. You should use
 
8153
dnl this variable in your Makefile.am.
 
8154
dnl
 
8155
AC_DEFUN([XDT_XFCE_MCS_PLUGIN],
 
8156
[
 
8157
  dnl Check for the xfce-mcs-manager package
 
8158
  XDT_CHECK_PACKAGE([$1], [xfce-mcs-manager], [m4_default([$2], [4.2.0])])
 
8159
 
 
8160
  dnl Check where to put the plugins to
 
8161
  AC_MSG_CHECKING([where to install MCS plugins])
 
8162
  $1_PLUGINSDIR=$libdir/xfce4/mcs-plugins
 
8163
  AC_SUBST([$1_PLUGINSDIR])
 
8164
  AC_MSG_RESULT([$$1_PLUGINSDIR])
 
8165
])
 
8166
 
 
8167
 
 
8168
 
 
8169
dnl XFCE_PANEL_PLUGIN(varname, version)
 
8170
dnl
 
8171
dnl Simple wrapper for XDT_XFCE_PANEL_PLUGIN(varname, version). Kept
 
8172
dnl for backward compatibility. Will be removed in the future.
 
8173
dnl
 
8174
AC_DEFUN([XFCE_PANEL_PLUGIN],
 
8175
[
 
8176
  XDT_XFCE_PANEL_PLUGIN([$1], [$2])
 
8177
])
 
8178
 
 
8179
 
 
8180
 
 
8181
dnl XFCE_MCS_PLUGIN(varname, version)
 
8182
dnl
 
8183
dnl Simple wrapper for XDT_XFCE_MCS_PLUGIN(varname, version). Kept
 
8184
dnl for backward compatibility. Will be removed in the future.
 
8185
dnl
 
8186
AC_DEFUN([XFCE_MCS_PLUGIN],
 
8187
[
 
8188
  XDT_XFCE_MCS_PLUGIN([$1], [$2])
 
8189
])
 
8190
 
7518
8191