~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.9 -*- 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
 
dnl From http://autoconf-archive.cryp.to/ac_define_dir.html.
15
 
 
16
 
AC_DEFUN([AC_DEFINE_DIR], [
17
 
  prefix_NONE=
18
 
  exec_prefix_NONE=
19
 
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20
 
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21
 
  eval ac_define_dir="\"[$]$2\""
22
 
  AC_SUBST($1, "$ac_define_dir")
23
 
  AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3])
24
 
  test "$prefix_NONE" && prefix=NONE
25
 
  test "$exec_prefix_NONE" && exec_prefix=NONE
26
 
])
27
 
 
28
 
# Do all the work for Automake.                            -*- Autoconf -*-
29
 
 
30
 
# This macro actually does too much some checks are only needed if
31
 
# your package does certain things.  But this isn't really a big deal.
32
 
 
33
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
34
 
# Free Software Foundation, Inc.
35
 
 
36
 
# This program is free software; you can redistribute it and/or modify
37
 
# it under the terms of the GNU General Public License as published by
38
 
# the Free Software Foundation; either version 2, or (at your option)
39
 
# any later version.
40
 
 
41
 
# This program is distributed in the hope that it will be useful,
42
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
43
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44
 
# GNU General Public License for more details.
45
 
 
46
 
# You should have received a copy of the GNU General Public License
47
 
# along with this program; if not, write to the Free Software
48
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
49
 
# 02111-1307, USA.
50
 
 
51
 
# serial 10
52
 
 
53
 
AC_PREREQ([2.54])
54
 
 
55
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
56
 
# the ones we care about.
57
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
58
 
 
59
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
60
 
# AM_INIT_AUTOMAKE([OPTIONS])
61
 
# -----------------------------------------------
62
 
# The call with PACKAGE and VERSION arguments is the old style
63
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
64
 
# and VERSION should now be passed to AC_INIT and removed from
65
 
# the call to AM_INIT_AUTOMAKE.
66
 
# We support both call styles for the transition.  After
67
 
# the next Automake release, Autoconf can make the AC_INIT
68
 
# arguments mandatory, and then we can depend on a new Autoconf
69
 
# release and drop the old call support.
70
 
AC_DEFUN([AM_INIT_AUTOMAKE],
71
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
72
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
73
 
# test to see if srcdir already configured
74
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
75
 
   test -f $srcdir/config.status; then
76
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
77
 
fi
78
 
 
79
 
# test whether we have cygpath
80
 
if test -z "$CYGPATH_W"; then
81
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
82
 
    CYGPATH_W='cygpath -w'
83
 
  else
84
 
    CYGPATH_W=echo
85
 
  fi
86
 
fi
87
 
AC_SUBST([CYGPATH_W])
88
 
 
89
 
# Define the identity of the package.
90
 
dnl Distinguish between old-style and new-style calls.
91
 
m4_ifval([$2],
92
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
93
 
 AC_SUBST([PACKAGE], [$1])dnl
94
 
 AC_SUBST([VERSION], [$2])],
95
 
[_AM_SET_OPTIONS([$1])dnl
96
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
97
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
98
 
 
99
 
_AM_IF_OPTION([no-define],,
100
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
101
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
102
 
 
103
 
# Some tools Automake needs.
104
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
105
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
106
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
107
 
AM_MISSING_PROG(AUTOCONF, autoconf)
108
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
109
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
110
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
111
 
AM_MISSING_PROG(AMTAR, tar)
112
 
AM_PROG_INSTALL_SH
113
 
AM_PROG_INSTALL_STRIP
114
 
# We need awk for the "check" target.  The system "awk" is bad on
115
 
# some platforms.
116
 
AC_REQUIRE([AC_PROG_AWK])dnl
117
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
118
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
119
 
 
120
 
_AM_IF_OPTION([no-dependencies],,
121
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
122
 
                  [_AM_DEPENDENCIES(CC)],
123
 
                  [define([AC_PROG_CC],
124
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
125
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
126
 
                  [_AM_DEPENDENCIES(CXX)],
127
 
                  [define([AC_PROG_CXX],
128
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
129
 
])
130
 
])
131
 
 
132
 
 
133
 
# When config.status generates a header, we must update the stamp-h file.
134
 
# This file resides in the same directory as the config header
135
 
# that is generated.  The stamp files are numbered to have different names.
136
 
 
137
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
138
 
# loop where config.status creates the headers, so we can generate
139
 
# our stamp files there.
140
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
141
 
[# Compute $1's index in $config_headers.
142
 
_am_stamp_count=1
143
 
for _am_header in $config_headers :; do
144
 
  case $_am_header in
145
 
    $1 | $1:* )
146
 
      break ;;
147
 
    * )
148
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
149
 
  esac
150
 
done
151
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
152
 
 
153
 
# Copyright 2002  Free Software Foundation, Inc.
154
 
 
155
 
# This program is free software; you can redistribute it and/or modify
156
 
# it under the terms of the GNU General Public License as published by
157
 
# the Free Software Foundation; either version 2, or (at your option)
158
 
# any later version.
159
 
 
160
 
# This program is distributed in the hope that it will be useful,
161
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
162
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
163
 
# GNU General Public License for more details.
164
 
 
165
 
# You should have received a copy of the GNU General Public License
166
 
# along with this program; if not, write to the Free Software
167
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
14
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
15
#
 
16
# This file is free software; the Free Software Foundation
 
17
# gives unlimited permission to copy and/or distribute it,
 
18
# with or without modifications, as long as this notice is preserved.
168
19
 
169
20
# AM_AUTOMAKE_VERSION(VERSION)
170
21
# ----------------------------
171
22
# Automake X.Y traces this macro to ensure aclocal.m4 has been
172
23
# generated from the m4 files accompanying Automake X.Y.
173
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
 
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
174
25
 
175
26
# AM_SET_CURRENT_AUTOMAKE_VERSION
176
27
# -------------------------------
177
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
178
29
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
179
30
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
180
 
         [AM_AUTOMAKE_VERSION([1.7.9])])
181
 
 
182
 
# Helper functions for option handling.                    -*- Autoconf -*-
183
 
 
184
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
185
 
 
186
 
# This program is free software; you can redistribute it and/or modify
187
 
# it under the terms of the GNU General Public License as published by
188
 
# the Free Software Foundation; either version 2, or (at your option)
189
 
# any later version.
190
 
 
191
 
# This program is distributed in the hope that it will be useful,
192
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
193
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
194
 
# GNU General Public License for more details.
195
 
 
196
 
# You should have received a copy of the GNU General Public License
197
 
# along with this program; if not, write to the Free Software
198
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
199
 
# 02111-1307, USA.
200
 
 
201
 
# serial 2
202
 
 
203
 
# _AM_MANGLE_OPTION(NAME)
204
 
# -----------------------
205
 
AC_DEFUN([_AM_MANGLE_OPTION],
206
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
207
 
 
208
 
# _AM_SET_OPTION(NAME)
209
 
# ------------------------------
210
 
# Set option NAME.  Presently that only means defining a flag for this option.
211
 
AC_DEFUN([_AM_SET_OPTION],
212
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
213
 
 
214
 
# _AM_SET_OPTIONS(OPTIONS)
215
 
# ----------------------------------
216
 
# OPTIONS is a space-separated list of Automake options.
217
 
AC_DEFUN([_AM_SET_OPTIONS],
218
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
219
 
 
220
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
221
 
# -------------------------------------------
222
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
223
 
AC_DEFUN([_AM_IF_OPTION],
224
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
225
 
 
226
 
#
227
 
# Check to make sure that the build environment is sane.
228
 
#
229
 
 
230
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
231
 
 
232
 
# This program is free software; you can redistribute it and/or modify
233
 
# it under the terms of the GNU General Public License as published by
234
 
# the Free Software Foundation; either version 2, or (at your option)
235
 
# any later version.
236
 
 
237
 
# This program is distributed in the hope that it will be useful,
238
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
239
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
240
 
# GNU General Public License for more details.
241
 
 
242
 
# You should have received a copy of the GNU General Public License
243
 
# along with this program; if not, write to the Free Software
244
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
245
 
# 02111-1307, USA.
246
 
 
247
 
# serial 3
248
 
 
249
 
# AM_SANITY_CHECK
250
 
# ---------------
251
 
AC_DEFUN([AM_SANITY_CHECK],
252
 
[AC_MSG_CHECKING([whether build environment is sane])
253
 
# Just in case
254
 
sleep 1
255
 
echo timestamp > conftest.file
256
 
# Do `set' in a subshell so we don't clobber the current shell's
257
 
# arguments.  Must try -L first in case configure is actually a
258
 
# symlink; some systems play weird games with the mod time of symlinks
259
 
# (eg FreeBSD returns the mod time of the symlink's containing
260
 
# directory).
261
 
if (
262
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
263
 
   if test "$[*]" = "X"; then
264
 
      # -L didn't work.
265
 
      set X `ls -t $srcdir/configure conftest.file`
266
 
   fi
267
 
   rm -f conftest.file
268
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
269
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
270
 
 
271
 
      # If neither matched, then we have a broken ls.  This can happen
272
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
273
 
      # broken ls alias from the environment.  This has actually
274
 
      # happened.  Such a system could not be considered "sane".
275
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
276
 
alias in your environment])
277
 
   fi
278
 
 
279
 
   test "$[2]" = conftest.file
280
 
   )
281
 
then
282
 
   # Ok.
283
 
   :
284
 
else
285
 
   AC_MSG_ERROR([newly created file is older than distributed files!
286
 
Check your system clock])
287
 
fi
288
 
AC_MSG_RESULT(yes)])
289
 
 
290
 
#  -*- Autoconf -*-
291
 
 
292
 
 
293
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
294
 
 
295
 
# This program is free software; you can redistribute it and/or modify
296
 
# it under the terms of the GNU General Public License as published by
297
 
# the Free Software Foundation; either version 2, or (at your option)
298
 
# any later version.
299
 
 
300
 
# This program is distributed in the hope that it will be useful,
301
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
302
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
303
 
# GNU General Public License for more details.
304
 
 
305
 
# You should have received a copy of the GNU General Public License
306
 
# along with this program; if not, write to the Free Software
307
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
308
 
# 02111-1307, USA.
309
 
 
310
 
# serial 3
311
 
 
312
 
# AM_MISSING_PROG(NAME, PROGRAM)
313
 
# ------------------------------
314
 
AC_DEFUN([AM_MISSING_PROG],
315
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
316
 
$1=${$1-"${am_missing_run}$2"}
317
 
AC_SUBST($1)])
318
 
 
319
 
 
320
 
# AM_MISSING_HAS_RUN
321
 
# ------------------
322
 
# Define MISSING if not defined so far and test if it supports --run.
323
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
324
 
AC_DEFUN([AM_MISSING_HAS_RUN],
325
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
326
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
327
 
# Use eval to expand $SHELL
328
 
if eval "$MISSING --run true"; then
329
 
  am_missing_run="$MISSING --run "
330
 
else
331
 
  am_missing_run=
332
 
  AC_MSG_WARN([`missing' script is too old or missing])
333
 
fi
 
31
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
32
 
 
33
# Figure out how to run the assembler.                      -*- Autoconf -*-
 
34
 
 
35
# Copyright (C) 2001, 2003, 2004, 2005  Free Software Foundation, Inc.
 
36
#
 
37
# This file is free software; the Free Software Foundation
 
38
# gives unlimited permission to copy and/or distribute it,
 
39
# with or without modifications, as long as this notice is preserved.
 
40
 
 
41
# serial 4
 
42
 
 
43
# AM_PROG_AS
 
44
# ----------
 
45
AC_DEFUN([AM_PROG_AS],
 
46
[# By default we simply use the C compiler to build assembly code.
 
47
AC_REQUIRE([AC_PROG_CC])
 
48
test "${CCAS+set}" = set || CCAS=$CC
 
49
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
50
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
 
51
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
334
52
])
335
53
 
336
 
# AM_AUX_DIR_EXPAND
337
 
 
338
 
# Copyright 2001 Free Software Foundation, Inc.
339
 
 
340
 
# This program is free software; you can redistribute it and/or modify
341
 
# it under the terms of the GNU General Public License as published by
342
 
# the Free Software Foundation; either version 2, or (at your option)
343
 
# any later version.
344
 
 
345
 
# This program is distributed in the hope that it will be useful,
346
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
347
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
348
 
# GNU General Public License for more details.
349
 
 
350
 
# You should have received a copy of the GNU General Public License
351
 
# along with this program; if not, write to the Free Software
352
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
353
 
# 02111-1307, USA.
 
54
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
55
 
 
56
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
57
#
 
58
# This file is free software; the Free Software Foundation
 
59
# gives unlimited permission to copy and/or distribute it,
 
60
# with or without modifications, as long as this notice is preserved.
354
61
 
355
62
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
356
63
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
390
97
# absolute PATH.  The drawback is that using absolute paths prevent a
391
98
# configured tree to be moved without reconfiguration.
392
99
 
393
 
# Rely on autoconf to set up CDPATH properly.
394
 
AC_PREREQ([2.50])
395
 
 
396
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
 
100
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
101
[dnl Rely on autoconf to set up CDPATH properly.
 
102
AC_PREREQ([2.50])dnl
397
103
# expand $ac_aux_dir to an absolute path
398
104
am_aux_dir=`cd $ac_aux_dir && pwd`
399
105
])
400
106
 
401
 
# AM_PROG_INSTALL_SH
402
 
# ------------------
403
 
# Define $install_sh.
404
 
 
405
 
# Copyright 2001 Free Software Foundation, Inc.
406
 
 
407
 
# This program is free software; you can redistribute it and/or modify
408
 
# it under the terms of the GNU General Public License as published by
409
 
# the Free Software Foundation; either version 2, or (at your option)
410
 
# any later version.
411
 
 
412
 
# This program is distributed in the hope that it will be useful,
413
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
414
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
415
 
# GNU General Public License for more details.
416
 
 
417
 
# You should have received a copy of the GNU General Public License
418
 
# along with this program; if not, write to the Free Software
419
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
420
 
# 02111-1307, USA.
421
 
 
422
 
AC_DEFUN([AM_PROG_INSTALL_SH],
423
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
424
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
425
 
AC_SUBST(install_sh)])
426
 
 
427
 
# AM_PROG_INSTALL_STRIP
428
 
 
429
 
# Copyright 2001 Free Software Foundation, Inc.
430
 
 
431
 
# This program is free software; you can redistribute it and/or modify
432
 
# it under the terms of the GNU General Public License as published by
433
 
# the Free Software Foundation; either version 2, or (at your option)
434
 
# any later version.
435
 
 
436
 
# This program is distributed in the hope that it will be useful,
437
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
438
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
439
 
# GNU General Public License for more details.
440
 
 
441
 
# You should have received a copy of the GNU General Public License
442
 
# along with this program; if not, write to the Free Software
443
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
444
 
# 02111-1307, USA.
445
 
 
446
 
# One issue with vendor `install' (even GNU) is that you can't
447
 
# specify the program used to strip binaries.  This is especially
448
 
# annoying in cross-compiling environments, where the build's strip
449
 
# is unlikely to handle the host's binaries.
450
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
451
 
# always use install-sh in `make install-strip', and initialize
452
 
# STRIPPROG with the value of the STRIP variable (set by the user).
453
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
454
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
455
 
# Installed binaries are usually stripped using `strip' when the user
456
 
# run `make install-strip'.  However `strip' might not be the right
457
 
# tool to use in cross-compilation environments, therefore Automake
458
 
# will honor the `STRIP' environment variable to overrule this program.
459
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
460
 
if test "$cross_compiling" != no; then
461
 
  AC_CHECK_TOOL([STRIP], [strip], :)
462
 
fi
463
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
464
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
465
 
 
466
 
#                                                          -*- Autoconf -*-
467
 
# Copyright (C) 2003  Free Software Foundation, Inc.
468
 
 
469
 
# This program is free software; you can redistribute it and/or modify
470
 
# it under the terms of the GNU General Public License as published by
471
 
# the Free Software Foundation; either version 2, or (at your option)
472
 
# any later version.
473
 
 
474
 
# This program is distributed in the hope that it will be useful,
475
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
476
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
477
 
# GNU General Public License for more details.
478
 
 
479
 
# You should have received a copy of the GNU General Public License
480
 
# along with this program; if not, write to the Free Software
481
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
482
 
# 02111-1307, USA.
483
 
 
484
 
# serial 1
485
 
 
486
 
# Check whether the underlying file-system supports filenames
487
 
# with a leading dot.  For instance MS-DOS doesn't.
488
 
AC_DEFUN([AM_SET_LEADING_DOT],
489
 
[rm -rf .tst 2>/dev/null
490
 
mkdir .tst 2>/dev/null
491
 
if test -d .tst; then
492
 
  am__leading_dot=.
 
107
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
108
 
 
109
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
110
# Free Software Foundation, Inc.
 
111
#
 
112
# This file is free software; the Free Software Foundation
 
113
# gives unlimited permission to copy and/or distribute it,
 
114
# with or without modifications, as long as this notice is preserved.
 
115
 
 
116
# serial 7
 
117
 
 
118
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
119
# -------------------------------------
 
120
# Define a conditional.
 
121
AC_DEFUN([AM_CONDITIONAL],
 
122
[AC_PREREQ(2.52)dnl
 
123
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
124
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
125
AC_SUBST([$1_TRUE])
 
126
AC_SUBST([$1_FALSE])
 
127
if $2; then
 
128
  $1_TRUE=
 
129
  $1_FALSE='#'
493
130
else
494
 
  am__leading_dot=_
 
131
  $1_TRUE='#'
 
132
  $1_FALSE=
495
133
fi
496
 
rmdir .tst 2>/dev/null
497
 
AC_SUBST([am__leading_dot])])
498
 
 
499
 
# serial 5                                              -*- Autoconf -*-
500
 
 
501
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
502
 
 
503
 
# This program is free software; you can redistribute it and/or modify
504
 
# it under the terms of the GNU General Public License as published by
505
 
# the Free Software Foundation; either version 2, or (at your option)
506
 
# any later version.
507
 
 
508
 
# This program is distributed in the hope that it will be useful,
509
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
510
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
511
 
# GNU General Public License for more details.
512
 
 
513
 
# You should have received a copy of the GNU General Public License
514
 
# along with this program; if not, write to the Free Software
515
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
516
 
# 02111-1307, USA.
517
 
 
 
134
AC_CONFIG_COMMANDS_PRE(
 
135
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
136
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
137
Usually this means the macro was only invoked conditionally.]])
 
138
fi])])
 
139
 
 
140
 
 
141
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
142
# Free Software Foundation, Inc.
 
143
#
 
144
# This file is free software; the Free Software Foundation
 
145
# gives unlimited permission to copy and/or distribute it,
 
146
# with or without modifications, as long as this notice is preserved.
 
147
 
 
148
# serial 8
518
149
 
519
150
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
520
151
# written in clear, in which case automake, when reading aclocal.m4,
523
154
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
524
155
 
525
156
 
526
 
 
527
157
# _AM_DEPENDENCIES(NAME)
528
158
# ----------------------
529
159
# See how the compiler implements dependency checking.
582
212
    : > sub/conftest.c
583
213
    for i in 1 2 3 4 5 6; do
584
214
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
585
 
      : > sub/conftst$i.h
 
215
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
216
      # Solaris 8's {/usr,}/bin/sh.
 
217
      touch sub/conftst$i.h
586
218
    done
587
219
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
588
220
 
610
242
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
611
243
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
612
244
      # icc doesn't choke on unknown options, it will just issue warnings
613
 
      # (even with -Werror).  So we grep stderr for any message
614
 
      # that says an option was ignored.
615
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
245
      # or remarks (even with -Werror).  So we grep stderr for any message
 
246
      # that says an option was ignored or not supported.
 
247
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
248
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
249
      # The diagnosis changed in icc 8.0:
 
250
      #   icc: Command line remark: option '-MP' not supported
 
251
      if (grep 'ignoring option' conftest.err ||
 
252
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
616
253
        am_cv_$1_dependencies_compiler_type=$depmode
617
254
        break
618
255
      fi
646
283
# ------------
647
284
AC_DEFUN([AM_DEP_TRACK],
648
285
[AC_ARG_ENABLE(dependency-tracking,
649
 
[  --disable-dependency-tracking Speeds up one-time builds
650
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
 
286
[  --disable-dependency-tracking  speeds up one-time build
 
287
  --enable-dependency-tracking   do not reject slow dependency extractors])
651
288
if test "x$enable_dependency_tracking" != xno; then
652
289
  am_depcomp="$ac_aux_dir/depcomp"
653
290
  AMDEPBACKSLASH='\'
656
293
AC_SUBST([AMDEPBACKSLASH])
657
294
])
658
295
 
659
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
660
 
 
661
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
662
 
 
663
 
# This program is free software; you can redistribute it and/or modify
664
 
# it under the terms of the GNU General Public License as published by
665
 
# the Free Software Foundation; either version 2, or (at your option)
666
 
# any later version.
667
 
 
668
 
# This program is distributed in the hope that it will be useful,
669
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
670
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
671
 
# GNU General Public License for more details.
672
 
 
673
 
# You should have received a copy of the GNU General Public License
674
 
# along with this program; if not, write to the Free Software
675
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
676
 
# 02111-1307, USA.
677
 
 
678
 
#serial 2
 
296
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
297
 
 
298
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
299
# Free Software Foundation, Inc.
 
300
#
 
301
# This file is free software; the Free Software Foundation
 
302
# gives unlimited permission to copy and/or distribute it,
 
303
# with or without modifications, as long as this notice is preserved.
 
304
 
 
305
#serial 3
679
306
 
680
307
# _AM_OUTPUT_DEPENDENCY_COMMANDS
681
308
# ------------------------------
694
321
  else
695
322
    continue
696
323
  fi
697
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
698
 
  # Extract the definition of DEP_FILES from the Makefile without
699
 
  # running `make'.
700
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
324
  # Extract the definition of DEPDIR, am__include, and am__quote
 
325
  # from the Makefile without running `make'.
 
326
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
701
327
  test -z "$DEPDIR" && continue
 
328
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
329
  test -z "am__include" && continue
 
330
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
702
331
  # When using ansi2knr, U may be empty or an underscore; expand it
703
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
704
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
705
 
  # We invoke sed twice because it is the simplest approach to
706
 
  # changing $(DEPDIR) to its actual value in the expansion.
707
 
  for file in `sed -n -e '
708
 
    /^DEP_FILES = .*\\\\$/ {
709
 
      s/^DEP_FILES = //
710
 
      :loop
711
 
        s/\\\\$//
712
 
        p
713
 
        n
714
 
        /\\\\$/ b loop
715
 
      p
716
 
    }
717
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
332
  U=`sed -n 's/^U = //p' < "$mf"`
 
333
  # Find all dependency output files, they are included files with
 
334
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
335
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
336
  # expansion.
 
337
  for file in `sed -n "
 
338
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
718
339
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
719
340
    # Make sure the directory exists.
720
341
    test -f "$dirpart/$file" && continue
740
361
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
741
362
])
742
363
 
743
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
744
 
 
745
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
746
 
 
747
 
# This program is free software; you can redistribute it and/or modify
748
 
# it under the terms of the GNU General Public License as published by
749
 
# the Free Software Foundation; either version 2, or (at your option)
750
 
# any later version.
751
 
 
752
 
# This program is distributed in the hope that it will be useful,
753
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
754
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
755
 
# GNU General Public License for more details.
756
 
 
757
 
# You should have received a copy of the GNU General Public License
758
 
# along with this program; if not, write to the Free Software
759
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
760
 
# 02111-1307, USA.
 
364
# Do all the work for Automake.                             -*- Autoconf -*-
 
365
 
 
366
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
367
# Free Software Foundation, Inc.
 
368
#
 
369
# This file is free software; the Free Software Foundation
 
370
# gives unlimited permission to copy and/or distribute it,
 
371
# with or without modifications, as long as this notice is preserved.
 
372
 
 
373
# serial 12
 
374
 
 
375
# This macro actually does too much.  Some checks are only needed if
 
376
# your package does certain things.  But this isn't really a big deal.
 
377
 
 
378
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
379
# AM_INIT_AUTOMAKE([OPTIONS])
 
380
# -----------------------------------------------
 
381
# The call with PACKAGE and VERSION arguments is the old style
 
382
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
383
# and VERSION should now be passed to AC_INIT and removed from
 
384
# the call to AM_INIT_AUTOMAKE.
 
385
# We support both call styles for the transition.  After
 
386
# the next Automake release, Autoconf can make the AC_INIT
 
387
# arguments mandatory, and then we can depend on a new Autoconf
 
388
# release and drop the old call support.
 
389
AC_DEFUN([AM_INIT_AUTOMAKE],
 
390
[AC_PREREQ([2.58])dnl
 
391
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
392
dnl the ones we care about.
 
393
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
394
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
395
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
396
# test to see if srcdir already configured
 
397
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
398
   test -f $srcdir/config.status; then
 
399
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
400
fi
 
401
 
 
402
# test whether we have cygpath
 
403
if test -z "$CYGPATH_W"; then
 
404
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
405
    CYGPATH_W='cygpath -w'
 
406
  else
 
407
    CYGPATH_W=echo
 
408
  fi
 
409
fi
 
410
AC_SUBST([CYGPATH_W])
 
411
 
 
412
# Define the identity of the package.
 
413
dnl Distinguish between old-style and new-style calls.
 
414
m4_ifval([$2],
 
415
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
416
 AC_SUBST([PACKAGE], [$1])dnl
 
417
 AC_SUBST([VERSION], [$2])],
 
418
[_AM_SET_OPTIONS([$1])dnl
 
419
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
420
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
421
 
 
422
_AM_IF_OPTION([no-define],,
 
423
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
424
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
425
 
 
426
# Some tools Automake needs.
 
427
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
428
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
429
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
430
AM_MISSING_PROG(AUTOCONF, autoconf)
 
431
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
432
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
433
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
434
AM_PROG_INSTALL_SH
 
435
AM_PROG_INSTALL_STRIP
 
436
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
437
# We need awk for the "check" target.  The system "awk" is bad on
 
438
# some platforms.
 
439
AC_REQUIRE([AC_PROG_AWK])dnl
 
440
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
441
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
442
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
443
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
444
                             [_AM_PROG_TAR([v7])])])
 
445
_AM_IF_OPTION([no-dependencies],,
 
446
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
447
                  [_AM_DEPENDENCIES(CC)],
 
448
                  [define([AC_PROG_CC],
 
449
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
450
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
451
                  [_AM_DEPENDENCIES(CXX)],
 
452
                  [define([AC_PROG_CXX],
 
453
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
454
])
 
455
])
 
456
 
 
457
 
 
458
# When config.status generates a header, we must update the stamp-h file.
 
459
# This file resides in the same directory as the config header
 
460
# that is generated.  The stamp files are numbered to have different names.
 
461
 
 
462
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
463
# loop where config.status creates the headers, so we can generate
 
464
# our stamp files there.
 
465
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
466
[# Compute $1's index in $config_headers.
 
467
_am_stamp_count=1
 
468
for _am_header in $config_headers :; do
 
469
  case $_am_header in
 
470
    $1 | $1:* )
 
471
      break ;;
 
472
    * )
 
473
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
474
  esac
 
475
done
 
476
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
477
 
 
478
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
479
#
 
480
# This file is free software; the Free Software Foundation
 
481
# gives unlimited permission to copy and/or distribute it,
 
482
# with or without modifications, as long as this notice is preserved.
 
483
 
 
484
# AM_PROG_INSTALL_SH
 
485
# ------------------
 
486
# Define $install_sh.
 
487
AC_DEFUN([AM_PROG_INSTALL_SH],
 
488
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
489
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
490
AC_SUBST(install_sh)])
 
491
 
 
492
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
493
#
 
494
# This file is free software; the Free Software Foundation
 
495
# gives unlimited permission to copy and/or distribute it,
 
496
# with or without modifications, as long as this notice is preserved.
761
497
 
762
498
# serial 2
763
499
 
 
500
# Check whether the underlying file-system supports filenames
 
501
# with a leading dot.  For instance MS-DOS doesn't.
 
502
AC_DEFUN([AM_SET_LEADING_DOT],
 
503
[rm -rf .tst 2>/dev/null
 
504
mkdir .tst 2>/dev/null
 
505
if test -d .tst; then
 
506
  am__leading_dot=.
 
507
else
 
508
  am__leading_dot=_
 
509
fi
 
510
rmdir .tst 2>/dev/null
 
511
AC_SUBST([am__leading_dot])])
 
512
 
 
513
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
514
# From Jim Meyering
 
515
 
 
516
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
517
# Free Software Foundation, Inc.
 
518
#
 
519
# This file is free software; the Free Software Foundation
 
520
# gives unlimited permission to copy and/or distribute it,
 
521
# with or without modifications, as long as this notice is preserved.
 
522
 
 
523
# serial 4
 
524
 
 
525
AC_DEFUN([AM_MAINTAINER_MODE],
 
526
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
527
  dnl maintainer-mode is disabled by default
 
528
  AC_ARG_ENABLE(maintainer-mode,
 
529
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
530
                          (and sometimes confusing) to the casual installer],
 
531
      USE_MAINTAINER_MODE=$enableval,
 
532
      USE_MAINTAINER_MODE=no)
 
533
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
534
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
535
  MAINT=$MAINTAINER_MODE_TRUE
 
536
  AC_SUBST(MAINT)dnl
 
537
]
 
538
)
 
539
 
 
540
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
541
 
 
542
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
543
 
 
544
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
545
#
 
546
# This file is free software; the Free Software Foundation
 
547
# gives unlimited permission to copy and/or distribute it,
 
548
# with or without modifications, as long as this notice is preserved.
 
549
 
 
550
# serial 3
 
551
 
764
552
# AM_MAKE_INCLUDE()
765
553
# -----------------
766
554
# Check to see how make treats includes.
803
591
rm -f confinc confmf
804
592
])
805
593
 
806
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
807
 
 
808
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
809
 
 
810
 
# This program is free software; you can redistribute it and/or modify
811
 
# it under the terms of the GNU General Public License as published by
812
 
# the Free Software Foundation; either version 2, or (at your option)
813
 
# any later version.
814
 
 
815
 
# This program is distributed in the hope that it will be useful,
816
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
817
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
818
 
# GNU General Public License for more details.
819
 
 
820
 
# You should have received a copy of the GNU General Public License
821
 
# along with this program; if not, write to the Free Software
822
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
823
 
# 02111-1307, USA.
824
 
 
825
 
# serial 5
826
 
 
827
 
AC_PREREQ(2.52)
828
 
 
829
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
830
 
# -------------------------------------
831
 
# Define a conditional.
832
 
AC_DEFUN([AM_CONDITIONAL],
833
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
834
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
835
 
AC_SUBST([$1_TRUE])
836
 
AC_SUBST([$1_FALSE])
837
 
if $2; then
838
 
  $1_TRUE=
839
 
  $1_FALSE='#'
840
 
else
841
 
  $1_TRUE='#'
842
 
  $1_FALSE=
843
 
fi
844
 
AC_CONFIG_COMMANDS_PRE(
845
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
846
 
  AC_MSG_ERROR([conditional "$1" was never defined.
847
 
Usually this means the macro was only invoked conditionally.])
848
 
fi])])
849
 
 
850
 
# Add --enable-maintainer-mode option to configure.
851
 
# From Jim Meyering
852
 
 
853
 
# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
854
 
 
855
 
# This program is free software; you can redistribute it and/or modify
856
 
# it under the terms of the GNU General Public License as published by
857
 
# the Free Software Foundation; either version 2, or (at your option)
858
 
# any later version.
859
 
 
860
 
# This program is distributed in the hope that it will be useful,
861
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
862
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
863
 
# GNU General Public License for more details.
864
 
 
865
 
# You should have received a copy of the GNU General Public License
866
 
# along with this program; if not, write to the Free Software
867
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
868
 
# 02111-1307, USA.
869
 
 
870
 
# serial 2
871
 
 
872
 
AC_DEFUN([AM_MAINTAINER_MODE],
873
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
874
 
  dnl maintainer-mode is disabled by default
875
 
  AC_ARG_ENABLE(maintainer-mode,
876
 
[  --enable-maintainer-mode enable make rules and dependencies not useful
877
 
                          (and sometimes confusing) to the casual installer],
878
 
      USE_MAINTAINER_MODE=$enableval,
879
 
      USE_MAINTAINER_MODE=no)
880
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
881
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
882
 
  MAINT=$MAINTAINER_MODE_TRUE
883
 
  AC_SUBST(MAINT)dnl
884
 
]
885
 
)
886
 
 
887
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
888
 
 
889
 
# Figure out how to run the assembler.             -*- Autoconf -*-
890
 
 
891
 
# serial 2
892
 
 
893
 
# Copyright 2001 Free Software Foundation, Inc.
894
 
 
895
 
# This program is free software; you can redistribute it and/or modify
896
 
# it under the terms of the GNU General Public License as published by
897
 
# the Free Software Foundation; either version 2, or (at your option)
898
 
# any later version.
899
 
 
900
 
# This program is distributed in the hope that it will be useful,
901
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
902
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
903
 
# GNU General Public License for more details.
904
 
 
905
 
# You should have received a copy of the GNU General Public License
906
 
# along with this program; if not, write to the Free Software
907
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
908
 
# 02111-1307, USA.
909
 
 
910
 
# AM_PROG_AS
911
 
# ----------
912
 
AC_DEFUN([AM_PROG_AS],
913
 
[# By default we simply use the C compiler to build assembly code.
914
 
AC_REQUIRE([AC_PROG_CC])
915
 
: ${CCAS='$(CC)'}
916
 
# Set ASFLAGS if not already set.
917
 
: ${CCASFLAGS='$(CFLAGS)'}
918
 
AC_SUBST(CCAS)
919
 
AC_SUBST(CCASFLAGS)])
 
594
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
595
 
 
596
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
597
# Free Software Foundation, Inc.
 
598
#
 
599
# This file is free software; the Free Software Foundation
 
600
# gives unlimited permission to copy and/or distribute it,
 
601
# with or without modifications, as long as this notice is preserved.
 
602
 
 
603
# serial 4
 
604
 
 
605
# AM_MISSING_PROG(NAME, PROGRAM)
 
606
# ------------------------------
 
607
AC_DEFUN([AM_MISSING_PROG],
 
608
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
609
$1=${$1-"${am_missing_run}$2"}
 
610
AC_SUBST($1)])
 
611
 
 
612
 
 
613
# AM_MISSING_HAS_RUN
 
614
# ------------------
 
615
# Define MISSING if not defined so far and test if it supports --run.
 
616
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
617
AC_DEFUN([AM_MISSING_HAS_RUN],
 
618
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
619
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
620
# Use eval to expand $SHELL
 
621
if eval "$MISSING --run true"; then
 
622
  am_missing_run="$MISSING --run "
 
623
else
 
624
  am_missing_run=
 
625
  AC_MSG_WARN([`missing' script is too old or missing])
 
626
fi
 
627
])
 
628
 
 
629
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
630
#
 
631
# This file is free software; the Free Software Foundation
 
632
# gives unlimited permission to copy and/or distribute it,
 
633
# with or without modifications, as long as this notice is preserved.
 
634
 
 
635
# AM_PROG_MKDIR_P
 
636
# ---------------
 
637
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
638
#
 
639
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
640
# created by `make install' are always world readable, even if the
 
641
# installer happens to have an overly restrictive umask (e.g. 077).
 
642
# This was a mistake.  There are at least two reasons why we must not
 
643
# use `-m 0755':
 
644
#   - it causes special bits like SGID to be ignored,
 
645
#   - it may be too restrictive (some setups expect 775 directories).
 
646
#
 
647
# Do not use -m 0755 and let people choose whatever they expect by
 
648
# setting umask.
 
649
#
 
650
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
651
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
652
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
653
# concurrently, both version can detect that a/ is missing, but only
 
654
# one can create it and the other will error out.  Consequently we
 
655
# restrict ourselves to GNU make (using the --version option ensures
 
656
# this.)
 
657
AC_DEFUN([AM_PROG_MKDIR_P],
 
658
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
659
  # We used to keeping the `.' as first argument, in order to
 
660
  # allow $(mkdir_p) to be used without argument.  As in
 
661
  #   $(mkdir_p) $(somedir)
 
662
  # where $(somedir) is conditionally defined.  However this is wrong
 
663
  # for two reasons:
 
664
  #  1. if the package is installed by a user who cannot write `.'
 
665
  #     make install will fail,
 
666
  #  2. the above comment should most certainly read
 
667
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
668
  #     so it does not work when $(somedir) is undefined and
 
669
  #     $(DESTDIR) is not.
 
670
  #  To support the latter case, we have to write
 
671
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
672
  #  so the `.' trick is pointless.
 
673
  mkdir_p='mkdir -p --'
 
674
else
 
675
  # On NextStep and OpenStep, the `mkdir' command does not
 
676
  # recognize any option.  It will interpret all options as
 
677
  # directories to create, and then abort because `.' already
 
678
  # exists.
 
679
  for d in ./-p ./--version;
 
680
  do
 
681
    test -d $d && rmdir $d
 
682
  done
 
683
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
684
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
685
    mkdir_p='$(mkinstalldirs)'
 
686
  else
 
687
    mkdir_p='$(install_sh) -d'
 
688
  fi
 
689
fi
 
690
AC_SUBST([mkdir_p])])
 
691
 
 
692
# Helper functions for option handling.                     -*- Autoconf -*-
 
693
 
 
694
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
695
#
 
696
# This file is free software; the Free Software Foundation
 
697
# gives unlimited permission to copy and/or distribute it,
 
698
# with or without modifications, as long as this notice is preserved.
 
699
 
 
700
# serial 3
 
701
 
 
702
# _AM_MANGLE_OPTION(NAME)
 
703
# -----------------------
 
704
AC_DEFUN([_AM_MANGLE_OPTION],
 
705
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
706
 
 
707
# _AM_SET_OPTION(NAME)
 
708
# ------------------------------
 
709
# Set option NAME.  Presently that only means defining a flag for this option.
 
710
AC_DEFUN([_AM_SET_OPTION],
 
711
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
712
 
 
713
# _AM_SET_OPTIONS(OPTIONS)
 
714
# ----------------------------------
 
715
# OPTIONS is a space-separated list of Automake options.
 
716
AC_DEFUN([_AM_SET_OPTIONS],
 
717
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
718
 
 
719
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
720
# -------------------------------------------
 
721
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
722
AC_DEFUN([_AM_IF_OPTION],
 
723
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
724
 
 
725
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
726
 
 
727
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
728
# Free Software Foundation, Inc.
 
729
#
 
730
# This file is free software; the Free Software Foundation
 
731
# gives unlimited permission to copy and/or distribute it,
 
732
# with or without modifications, as long as this notice is preserved.
 
733
 
 
734
# serial 4
 
735
 
 
736
# AM_SANITY_CHECK
 
737
# ---------------
 
738
AC_DEFUN([AM_SANITY_CHECK],
 
739
[AC_MSG_CHECKING([whether build environment is sane])
 
740
# Just in case
 
741
sleep 1
 
742
echo timestamp > conftest.file
 
743
# Do `set' in a subshell so we don't clobber the current shell's
 
744
# arguments.  Must try -L first in case configure is actually a
 
745
# symlink; some systems play weird games with the mod time of symlinks
 
746
# (eg FreeBSD returns the mod time of the symlink's containing
 
747
# directory).
 
748
if (
 
749
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
750
   if test "$[*]" = "X"; then
 
751
      # -L didn't work.
 
752
      set X `ls -t $srcdir/configure conftest.file`
 
753
   fi
 
754
   rm -f conftest.file
 
755
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
756
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
757
 
 
758
      # If neither matched, then we have a broken ls.  This can happen
 
759
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
760
      # broken ls alias from the environment.  This has actually
 
761
      # happened.  Such a system could not be considered "sane".
 
762
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
763
alias in your environment])
 
764
   fi
 
765
 
 
766
   test "$[2]" = conftest.file
 
767
   )
 
768
then
 
769
   # Ok.
 
770
   :
 
771
else
 
772
   AC_MSG_ERROR([newly created file is older than distributed files!
 
773
Check your system clock])
 
774
fi
 
775
AC_MSG_RESULT(yes)])
 
776
 
 
777
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
778
#
 
779
# This file is free software; the Free Software Foundation
 
780
# gives unlimited permission to copy and/or distribute it,
 
781
# with or without modifications, as long as this notice is preserved.
 
782
 
 
783
# AM_PROG_INSTALL_STRIP
 
784
# ---------------------
 
785
# One issue with vendor `install' (even GNU) is that you can't
 
786
# specify the program used to strip binaries.  This is especially
 
787
# annoying in cross-compiling environments, where the build's strip
 
788
# is unlikely to handle the host's binaries.
 
789
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
790
# always use install-sh in `make install-strip', and initialize
 
791
# STRIPPROG with the value of the STRIP variable (set by the user).
 
792
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
793
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
794
# Installed binaries are usually stripped using `strip' when the user
 
795
# run `make install-strip'.  However `strip' might not be the right
 
796
# tool to use in cross-compilation environments, therefore Automake
 
797
# will honor the `STRIP' environment variable to overrule this program.
 
798
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
799
if test "$cross_compiling" != no; then
 
800
  AC_CHECK_TOOL([STRIP], [strip], :)
 
801
fi
 
802
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
803
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
804
 
 
805
# Check how to create a tarball.                            -*- Autoconf -*-
 
806
 
 
807
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
808
#
 
809
# This file is free software; the Free Software Foundation
 
810
# gives unlimited permission to copy and/or distribute it,
 
811
# with or without modifications, as long as this notice is preserved.
 
812
 
 
813
# serial 2
 
814
 
 
815
# _AM_PROG_TAR(FORMAT)
 
816
# --------------------
 
817
# Check how to create a tarball in format FORMAT.
 
818
# FORMAT should be one of `v7', `ustar', or `pax'.
 
819
#
 
820
# Substitute a variable $(am__tar) that is a command
 
821
# writing to stdout a FORMAT-tarball containing the directory
 
822
# $tardir.
 
823
#     tardir=directory && $(am__tar) > result.tar
 
824
#
 
825
# Substitute a variable $(am__untar) that extract such
 
826
# a tarball read from stdin.
 
827
#     $(am__untar) < result.tar
 
828
AC_DEFUN([_AM_PROG_TAR],
 
829
[# Always define AMTAR for backward compatibility.
 
830
AM_MISSING_PROG([AMTAR], [tar])
 
831
m4_if([$1], [v7],
 
832
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
833
     [m4_case([$1], [ustar],, [pax],,
 
834
              [m4_fatal([Unknown tar format])])
 
835
AC_MSG_CHECKING([how to create a $1 tar archive])
 
836
# Loop over all known methods to create a tar archive until one works.
 
837
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
838
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
839
# Do not fold the above two line into one, because Tru64 sh and
 
840
# Solaris sh will not grok spaces in the rhs of `-'.
 
841
for _am_tool in $_am_tools
 
842
do
 
843
  case $_am_tool in
 
844
  gnutar)
 
845
    for _am_tar in tar gnutar gtar;
 
846
    do
 
847
      AM_RUN_LOG([$_am_tar --version]) && break
 
848
    done
 
849
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
850
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
851
    am__untar="$_am_tar -xf -"
 
852
    ;;
 
853
  plaintar)
 
854
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
855
    # ustar tarball either.
 
856
    (tar --version) >/dev/null 2>&1 && continue
 
857
    am__tar='tar chf - "$$tardir"'
 
858
    am__tar_='tar chf - "$tardir"'
 
859
    am__untar='tar xf -'
 
860
    ;;
 
861
  pax)
 
862
    am__tar='pax -L -x $1 -w "$$tardir"'
 
863
    am__tar_='pax -L -x $1 -w "$tardir"'
 
864
    am__untar='pax -r'
 
865
    ;;
 
866
  cpio)
 
867
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
868
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
869
    am__untar='cpio -i -H $1 -d'
 
870
    ;;
 
871
  none)
 
872
    am__tar=false
 
873
    am__tar_=false
 
874
    am__untar=false
 
875
    ;;
 
876
  esac
 
877
 
 
878
  # If the value was cached, stop now.  We just wanted to have am__tar
 
879
  # and am__untar set.
 
880
  test -n "${am_cv_prog_tar_$1}" && break
 
881
 
 
882
  # tar/untar a dummy directory, and stop if the command works
 
883
  rm -rf conftest.dir
 
884
  mkdir conftest.dir
 
885
  echo GrepMe > conftest.dir/file
 
886
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
887
  rm -rf conftest.dir
 
888
  if test -s conftest.tar; then
 
889
    AM_RUN_LOG([$am__untar <conftest.tar])
 
890
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
891
  fi
 
892
done
 
893
rm -rf conftest.dir
 
894
 
 
895
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
896
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
897
AC_SUBST([am__tar])
 
898
AC_SUBST([am__untar])
 
899
]) # _AM_PROG_TAR
920
900
 
921
901
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
922
902
 
923
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
903
# serial 48 AC_PROG_LIBTOOL
924
904
 
925
905
 
926
906
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2304
2284
  dynamic_linker=no
2305
2285
  ;;
2306
2286
 
 
2287
kfreebsd*-gnu)
 
2288
  version_type=linux
 
2289
  need_lib_prefix=no
 
2290
  need_version=no
 
2291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2292
  soname_spec='${libname}${release}${shared_ext}$major'
 
2293
  shlibpath_var=LD_LIBRARY_PATH
 
2294
  shlibpath_overrides_runpath=no
 
2295
  hardcode_into_libs=yes
 
2296
  dynamic_linker='GNU ld.so'
 
2297
  ;;
 
2298
 
2307
2299
freebsd* | dragonfly*)
2308
2300
  # DragonFly does not have aout.  When/if they implement a new
2309
2301
  # versioning mechanism, adjust this.
2459
2451
  ;;
2460
2452
 
2461
2453
# This must be Linux ELF.
2462
 
linux* | k*bsd*-gnu)
 
2454
linux*)
2463
2455
  version_type=linux
2464
2456
  need_lib_prefix=no
2465
2457
  need_version=no
2488
2480
  dynamic_linker='GNU/Linux ld.so'
2489
2481
  ;;
2490
2482
 
2491
 
netbsdelf*-gnu)
 
2483
knetbsd*-gnu)
2492
2484
  version_type=linux
2493
2485
  need_lib_prefix=no
2494
2486
  need_version=no
2497
2489
  shlibpath_var=LD_LIBRARY_PATH
2498
2490
  shlibpath_overrides_runpath=no
2499
2491
  hardcode_into_libs=yes
2500
 
  dynamic_linker='NetBSD ld.elf_so'
 
2492
  dynamic_linker='GNU ld.so'
2501
2493
  ;;
2502
2494
 
2503
2495
netbsd*)
3205
3197
  lt_cv_deplibs_check_method=pass_all
3206
3198
  ;;
3207
3199
 
3208
 
freebsd* | dragonfly*)
 
3200
freebsd* | kfreebsd*-gnu | dragonfly*)
3209
3201
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3210
3202
    case $host_cpu in
3211
3203
    i*86 )
3259
3251
  ;;
3260
3252
 
3261
3253
# This must be Linux ELF.
3262
 
linux* | k*bsd*-gnu)
 
3254
linux*)
3263
3255
  lt_cv_deplibs_check_method=pass_all
3264
3256
  ;;
3265
3257
 
3266
 
netbsd* | netbsdelf*-gnu)
 
3258
netbsd*)
3267
3259
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3268
3260
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3269
3261
  else
4011
4003
  freebsd-elf*)
4012
4004
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4013
4005
    ;;
4014
 
  freebsd* | dragonfly*)
 
4006
  freebsd* | kfreebsd*-gnu | dragonfly*)
4015
4007
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4016
4008
    # conventions
4017
4009
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4170
4162
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4171
4163
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4172
4164
    ;;
4173
 
  linux* | k*bsd*-gnu)
 
4165
  linux*)
4174
4166
    case $cc_basename in
4175
4167
      KCC*)
4176
4168
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4272
4264
        ;;
4273
4265
    esac
4274
4266
    ;;
4275
 
  netbsd* | netbsdelf*-gnu)
 
4267
  netbsd*)
4276
4268
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4277
4269
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4278
4270
      wlarc=
5537
5529
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5538
5530
  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'"
5539
5531
  ;;
5540
 
linux* | k*bsd*-gnu)
 
5532
linux*)
5541
5533
  if test "$host_cpu" = ia64; then
5542
5534
    symcode='[[ABCDGIRSTW]]'
5543
5535
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5810
5802
            ;;
5811
5803
        esac
5812
5804
        ;;
5813
 
      freebsd* | dragonfly*)
 
5805
      freebsd* | kfreebsd*-gnu | dragonfly*)
5814
5806
        # FreeBSD uses GNU C++
5815
5807
        ;;
5816
5808
      hpux9* | hpux10* | hpux11*)
5853
5845
            ;;
5854
5846
        esac
5855
5847
        ;;
5856
 
      linux* | k*bsd*-gnu)
 
5848
      linux*)
5857
5849
        case $cc_basename in
5858
5850
          KCC*)
5859
5851
            # KAI C++ Compiler
5896
5888
            ;;
5897
5889
        esac
5898
5890
        ;;
5899
 
      netbsd* | netbsdelf*-gnu)
 
5891
      netbsd*)
5900
5892
        ;;
5901
5893
      osf3* | osf4* | osf5*)
5902
5894
        case $cc_basename in
6107
6099
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6108
6100
      ;;
6109
6101
 
6110
 
    linux* | k*bsd*-gnu)
 
6102
    linux*)
6111
6103
      case $cc_basename in
6112
6104
      icc* | ecc*)
6113
6105
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6248
6240
  cygwin* | mingw*)
6249
6241
    _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'
6250
6242
  ;;
6251
 
  linux* | k*bsd*-gnu)
6252
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6253
 
  ;;
6254
6243
  *)
6255
6244
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6256
6245
  ;;
6421
6410
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6422
6411
      ;;
6423
6412
 
6424
 
    linux* | k*bsd*-gnu)
 
6413
    linux*)
6425
6414
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6426
6415
        tmp_addflag=
6427
6416
        case $cc_basename,$host_cpu in
6447
6436
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6448
6437
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6449
6438
        fi
6450
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6451
6439
      else
6452
6440
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6453
6441
      fi
6454
6442
      ;;
6455
6443
 
6456
 
    netbsd* | netbsdelf*-gnu)
 
6444
    netbsd*)
6457
6445
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6458
6446
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6459
6447
        wlarc=
6783
6771
      ;;
6784
6772
 
6785
6773
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6786
 
    freebsd* | dragonfly*)
 
6774
    freebsd* | kfreebsd*-gnu | dragonfly*)
6787
6775
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6788
6776
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6789
6777
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6885
6873
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6886
6874
      ;;
6887
6875
 
6888
 
    netbsd* | netbsdelf*-gnu)
 
6876
    netbsd*)
6889
6877
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6890
6878
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6891
6879
      else
7444
7432
fi[]dnl
7445
7433
])# PKG_CHECK_MODULES
7446
7434
 
7447
 
dnl $Id: xorg-macros.m4,v 1.8 2005/12/09 15:28:41 kem Exp $
 
7435
dnl $Id: xorg-macros.m4,v 1.7 2005/12/09 03:01:09 kem Exp $
7448
7436
dnl
7449
7437
dnl Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
7450
7438
dnl 
7717
7705
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
7718
7706
]) # XORG_CHECK_MALLOC_ZERO
7719
7707
 
 
7708
dnl Copyright 2005 Red Hat, Inc
 
7709
dnl
 
7710
dnl Permission to use, copy, modify, distribute, and sell this software and its
 
7711
dnl documentation for any purpose is hereby granted without fee, provided that
 
7712
dnl the above copyright notice appear in all copies and that both that
 
7713
dnl copyright notice and this permission notice appear in supporting
 
7714
dnl documentation.
 
7715
dnl
 
7716
dnl The above copyright notice and this permission notice shall be included
 
7717
dnl in all copies or substantial portions of the Software.
 
7718
dnl
 
7719
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
7720
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
7721
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
7722
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
7723
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
7724
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
7725
dnl OTHER DEALINGS IN THE SOFTWARE.
 
7726
dnl
 
7727
dnl Except as contained in this notice, the name of the copyright holders shall
 
7728
dnl not be used in advertising or otherwise to promote the sale, use or
 
7729
dnl other dealings in this Software without prior written authorization
 
7730
dnl from the copyright holders.
 
7731
dnl
 
7732
 
 
7733
# XORG_RELEASE_VERSION
 
7734
# --------------------
 
7735
# Adds --with/without-release-string and changes the PACKAGE and
 
7736
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION".  If
 
7737
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
 
7738
 
 
7739
AC_DEFUN([XORG_RELEASE_VERSION],[
 
7740
        AC_ARG_WITH(release-version,
 
7741
                        AC_HELP_STRING([--with-release-version=STRING],
 
7742
                                [Use release version string in package name]),
 
7743
                        [RELEASE_VERSION="$withval"],
 
7744
                        [RELEASE_VERSION=""])
 
7745
        if test "x$RELEASE_VERSION" != "x"; then
 
7746
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
7747
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
7748
                AC_MSG_NOTICE([Building with package name set to $PACKAGE])
 
7749
        fi
 
7750
])
 
7751
 
7720
7752
dnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $
7721
7753
dnl
7722
7754
dnl Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
7832
7864
]) # XTRANS_SECURE_RPC_FLAGS
7833
7865
 
7834
7866
 
7835
 
dnl Copyright 2005 Red Hat, Inc
7836
 
dnl
7837
 
dnl Permission to use, copy, modify, distribute, and sell this software and its
7838
 
dnl documentation for any purpose is hereby granted without fee, provided that
7839
 
dnl the above copyright notice appear in all copies and that both that
7840
 
dnl copyright notice and this permission notice appear in supporting
7841
 
dnl documentation.
7842
 
dnl
7843
 
dnl The above copyright notice and this permission notice shall be included
7844
 
dnl in all copies or substantial portions of the Software.
7845
 
dnl
7846
 
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
7847
 
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
7848
 
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
7849
 
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
7850
 
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
7851
 
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
7852
 
dnl OTHER DEALINGS IN THE SOFTWARE.
7853
 
dnl
7854
 
dnl Except as contained in this notice, the name of the copyright holders shall
7855
 
dnl not be used in advertising or otherwise to promote the sale, use or
7856
 
dnl other dealings in this Software without prior written authorization
7857
 
dnl from the copyright holders.
7858
 
dnl
7859
 
 
7860
 
# XORG_RELEASE_VERSION
7861
 
# --------------------
7862
 
# Adds --with/without-release-string and changes the PACKAGE and
7863
 
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION".  If
7864
 
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
7865
 
 
7866
 
AC_DEFUN([XORG_RELEASE_VERSION],[
7867
 
        AC_ARG_WITH(release-version,
7868
 
                        AC_HELP_STRING([--with-release-version=STRING],
7869
 
                                [Use release version string in package name]),
7870
 
                        [RELEASE_VERSION="$withval"],
7871
 
                        [RELEASE_VERSION=""])
7872
 
        if test "x$RELEASE_VERSION" != "x"; then
7873
 
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
7874
 
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
7875
 
                AC_MSG_NOTICE([Building with package name set to $PACKAGE])
7876
 
        fi
7877
 
])
7878
 
 
 
7867
m4_include([acinclude.m4])