~ubuntu-branches/ubuntu/maverick/autoconf/maverick

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Ben Pfaff
  • Date: 2007-01-17 19:57:13 UTC
  • mfrom: (3.1.7 feisty)
  • Revision ID: james.westby@ubuntu.com-20070117195713-n2q7e2pbpu4ezbx7
Tags: 2.61-4
debian/control: Require m4 version 1.4.8 or later.  Thanks to Jim
Paris <jim@jtan.com> for reporting this bug.  Closes: #407385.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7a -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006  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
 
#                                                        -*- Autoconf -*-
15
 
# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
16
 
 
17
 
# This program is free software; you can redistribute it and/or modify
18
 
# it under the terms of the GNU General Public License as published by
19
 
# the Free Software Foundation; either version 2, or (at your option)
20
 
# any later version.
21
 
 
22
 
# This program is distributed in the hope that it will be useful,
23
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 
# GNU General Public License for more details.
26
 
 
27
 
# You should have received a copy of the GNU General Public License
28
 
# along with this program; if not, write to the Free Software
29
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
 
19
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
20
#
 
21
# This file is free software; the Free Software Foundation
 
22
# gives unlimited permission to copy and/or distribute it,
 
23
# with or without modifications, as long as this notice is preserved.
30
24
 
31
25
# AM_AUTOMAKE_VERSION(VERSION)
32
26
# ----------------------------
33
27
# Automake X.Y traces this macro to ensure aclocal.m4 has been
34
28
# generated from the m4 files accompanying Automake X.Y.
35
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7a"])
 
29
# (This private macro should not be called outside this file.)
 
30
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
31
[am__api_version='1.10'
 
32
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
33
dnl require some minimum version.  Point them to the right macro.
 
34
m4_if([$1], [1.10], [],
 
35
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
36
])
 
37
 
 
38
# _AM_AUTOCONF_VERSION(VERSION)
 
39
# -----------------------------
 
40
# aclocal traces this macro to find the Autoconf version.
 
41
# This is a private macro too.  Using m4_define simplifies
 
42
# the logic in aclocal, which can simply ignore this definition.
 
43
m4_define([_AM_AUTOCONF_VERSION], [])
36
44
 
37
45
# AM_SET_CURRENT_AUTOMAKE_VERSION
38
46
# -------------------------------
39
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
47
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
40
48
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
41
49
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
42
 
         [AM_AUTOMAKE_VERSION([1.7a])])
43
 
 
44
 
# AM_AUX_DIR_EXPAND
45
 
 
46
 
# Copyright (C) 2001, 2003 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.
 
50
[AM_AUTOMAKE_VERSION([1.10])dnl
 
51
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
52
 
 
53
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
54
 
 
55
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
56
#
 
57
# This file is free software; the Free Software Foundation
 
58
# gives unlimited permission to copy and/or distribute it,
 
59
# with or without modifications, as long as this notice is preserved.
62
60
 
63
61
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
64
62
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
105
103
am_aux_dir=`cd $ac_aux_dir && pwd`
106
104
])
107
105
 
108
 
# Do all the work for Automake.                            -*- Autoconf -*-
109
 
 
110
 
# This macro actually does too much some checks are only needed if
 
106
# Do all the work for Automake.                             -*- Autoconf -*-
 
107
 
 
108
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
109
# 2005, 2006 Free Software Foundation, Inc.
 
110
#
 
111
# This file is free software; the Free Software Foundation
 
112
# gives unlimited permission to copy and/or distribute it,
 
113
# with or without modifications, as long as this notice is preserved.
 
114
 
 
115
# serial 12
 
116
 
 
117
# This macro actually does too much.  Some checks are only needed if
111
118
# your package does certain things.  But this isn't really a big deal.
112
119
 
113
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
114
 
# Free Software Foundation, Inc.
115
 
 
116
 
# This program is free software; you can redistribute it and/or modify
117
 
# it under the terms of the GNU General Public License as published by
118
 
# the Free Software Foundation; either version 2, or (at your option)
119
 
# any later version.
120
 
 
121
 
# This program is distributed in the hope that it will be useful,
122
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
123
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
124
 
# GNU General Public License for more details.
125
 
 
126
 
# You should have received a copy of the GNU General Public License
127
 
# along with this program; if not, write to the Free Software
128
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
129
 
# 02111-1307, USA.
130
 
 
131
 
# serial 11
132
 
 
133
120
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
134
121
# AM_INIT_AUTOMAKE([OPTIONS])
135
122
# -----------------------------------------------
142
129
# arguments mandatory, and then we can depend on a new Autoconf
143
130
# release and drop the old call support.
144
131
AC_DEFUN([AM_INIT_AUTOMAKE],
145
 
[AC_PREREQ([2.58])dnl
 
132
[AC_PREREQ([2.60])dnl
146
133
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
147
134
dnl the ones we care about.
148
135
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
149
136
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
150
137
AC_REQUIRE([AC_PROG_INSTALL])dnl
151
 
# test to see if srcdir already configured
152
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
153
 
   test -f $srcdir/config.status; then
154
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
138
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
139
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
140
  # is not polluted with repeated "-I."
 
141
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
142
  # test to see if srcdir already configured
 
143
  if test -f $srcdir/config.status; then
 
144
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
145
  fi
155
146
fi
156
147
 
157
148
# test whether we have cygpath
171
162
 AC_SUBST([PACKAGE], [$1])dnl
172
163
 AC_SUBST([VERSION], [$2])],
173
164
[_AM_SET_OPTIONS([$1])dnl
 
165
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
166
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
167
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
174
168
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
175
169
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
176
170
 
186
180
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
187
181
AM_MISSING_PROG(AUTOHEADER, autoheader)
188
182
AM_MISSING_PROG(MAKEINFO, makeinfo)
189
 
AM_MISSING_PROG(AMTAR, tar)
190
183
AM_PROG_INSTALL_SH
191
184
AM_PROG_INSTALL_STRIP
 
185
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
192
186
# We need awk for the "check" target.  The system "awk" is bad on
193
187
# some platforms.
194
188
AC_REQUIRE([AC_PROG_AWK])dnl
195
189
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
196
190
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
197
 
 
 
191
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
192
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
193
                             [_AM_PROG_TAR([v7])])])
198
194
_AM_IF_OPTION([no-dependencies],,
199
195
[AC_PROVIDE_IFELSE([AC_PROG_CC],
200
196
                  [_AM_DEPENDENCIES(CC)],
204
200
                  [_AM_DEPENDENCIES(CXX)],
205
201
                  [define([AC_PROG_CXX],
206
202
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
203
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
204
                  [_AM_DEPENDENCIES(OBJC)],
 
205
                  [define([AC_PROG_OBJC],
 
206
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
207
207
])
208
208
])
209
209
 
228
228
done
229
229
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
230
230
 
 
231
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
232
#
 
233
# This file is free software; the Free Software Foundation
 
234
# gives unlimited permission to copy and/or distribute it,
 
235
# with or without modifications, as long as this notice is preserved.
 
236
 
231
237
# AM_PROG_INSTALL_SH
232
238
# ------------------
233
239
# Define $install_sh.
234
 
 
235
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
236
 
 
237
 
# This program is free software; you can redistribute it and/or modify
238
 
# it under the terms of the GNU General Public License as published by
239
 
# the Free Software Foundation; either version 2, or (at your option)
240
 
# any later version.
241
 
 
242
 
# This program is distributed in the hope that it will be useful,
243
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
244
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
245
 
# GNU General Public License for more details.
246
 
 
247
 
# You should have received a copy of the GNU General Public License
248
 
# along with this program; if not, write to the Free Software
249
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
250
 
# 02111-1307, USA.
251
 
 
252
240
AC_DEFUN([AM_PROG_INSTALL_SH],
253
241
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
254
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
242
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
255
243
AC_SUBST(install_sh)])
256
244
 
257
 
#                                                          -*- Autoconf -*-
258
 
# Copyright (C) 2003  Free Software Foundation, Inc.
259
 
 
260
 
# This program is free software; you can redistribute it and/or modify
261
 
# it under the terms of the GNU General Public License as published by
262
 
# the Free Software Foundation; either version 2, or (at your option)
263
 
# any later version.
264
 
 
265
 
# This program is distributed in the hope that it will be useful,
266
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
267
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
268
 
# GNU General Public License for more details.
269
 
 
270
 
# You should have received a copy of the GNU General Public License
271
 
# along with this program; if not, write to the Free Software
272
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
273
 
# 02111-1307, USA.
274
 
 
275
 
# serial 1
 
245
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
246
#
 
247
# This file is free software; the Free Software Foundation
 
248
# gives unlimited permission to copy and/or distribute it,
 
249
# with or without modifications, as long as this notice is preserved.
 
250
 
 
251
# serial 2
276
252
 
277
253
# Check whether the underlying file-system supports filenames
278
254
# with a leading dot.  For instance MS-DOS doesn't.
287
263
rmdir .tst 2>/dev/null
288
264
AC_SUBST([am__leading_dot])])
289
265
 
290
 
 
291
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
292
 
# Free Software Foundation, Inc.
293
 
 
294
 
# This program is free software; you can redistribute it and/or modify
295
 
# it under the terms of the GNU General Public License as published by
296
 
# the Free Software Foundation; either version 2, or (at your option)
297
 
# any later version.
298
 
 
299
 
# This program is distributed in the hope that it will be useful,
300
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
301
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
302
 
# GNU General Public License for more details.
303
 
 
304
 
# You should have received a copy of the GNU General Public License
305
 
# along with this program; if not, write to the Free Software
306
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
307
 
# 02111-1307, USA.
308
 
 
309
 
# serial 7
 
266
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 
267
# 2006  Free Software Foundation, Inc.
 
268
#
 
269
# This file is free software; the Free Software Foundation
 
270
# gives unlimited permission to copy and/or distribute it,
 
271
# with or without modifications, as long as this notice is preserved.
 
272
 
 
273
# serial 10
310
274
 
311
275
# AM_PATH_LISPDIR
312
276
# ---------------
313
277
AC_DEFUN([AM_PATH_LISPDIR],
314
 
[AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
 
278
[AC_PREREQ([2.60])dnl
 
279
 # If set to t, that means we are running in a shell under Emacs.
 
280
 # If you have an Emacs named "t", then use the full path.
 
281
 test x"$EMACS" = xt && EMACS=
 
282
 AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
315
283
 AC_ARG_VAR([EMACS], [the Emacs editor command])
316
284
 AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
317
285
 AC_ARG_WITH([lispdir],
318
 
 [  --with-lispdir          Override the default lisp directory ],
 
286
 [  --with-lispdir          override the default lisp directory],
319
287
 [ lispdir="$withval"
320
288
   AC_MSG_CHECKING([where .elc files should go])
321
289
   AC_MSG_RESULT([$lispdir])],
322
290
 [
323
 
 # If set to t, that means we are running in a shell under Emacs.
324
 
 # If you have an Emacs named "t", then use the full path.
325
 
 test x"$EMACS" = xt && EMACS=
326
291
 AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
327
292
   if test $EMACS != "no"; then
328
293
     if test x${lispdir+set} != xset; then
334
299
  AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
335
300
        am_cv_lispdir=`sed -n \
336
301
       -e 's,/$,,' \
337
 
       -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
338
 
       -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
 
302
       -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
 
303
       -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
339
304
       conftest.out`
340
305
       rm conftest.out
341
306
     fi
349
314
 
350
315
AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
351
316
 
352
 
#  -*- Autoconf -*-
353
 
 
354
 
 
355
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
356
 
 
357
 
# This program is free software; you can redistribute it and/or modify
358
 
# it under the terms of the GNU General Public License as published by
359
 
# the Free Software Foundation; either version 2, or (at your option)
360
 
# any later version.
361
 
 
362
 
# This program is distributed in the hope that it will be useful,
363
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
364
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
365
 
# GNU General Public License for more details.
366
 
 
367
 
# You should have received a copy of the GNU General Public License
368
 
# along with this program; if not, write to the Free Software
369
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
370
 
# 02111-1307, USA.
371
 
 
372
 
# serial 3
 
317
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
318
 
 
319
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
320
# Free Software Foundation, Inc.
 
321
#
 
322
# This file is free software; the Free Software Foundation
 
323
# gives unlimited permission to copy and/or distribute it,
 
324
# with or without modifications, as long as this notice is preserved.
 
325
 
 
326
# serial 5
373
327
 
374
328
# AM_MISSING_PROG(NAME, PROGRAM)
375
329
# ------------------------------
385
339
# If it does, set am_missing_run to use it, otherwise, to nothing.
386
340
AC_DEFUN([AM_MISSING_HAS_RUN],
387
341
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
342
AC_REQUIRE_AUX_FILE([missing])dnl
388
343
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
389
344
# Use eval to expand $SHELL
390
345
if eval "$MISSING --run true"; then
395
350
fi
396
351
])
397
352
 
398
 
# Helper functions for option handling.                    -*- Autoconf -*-
399
 
 
400
 
# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
401
 
 
402
 
# This program is free software; you can redistribute it and/or modify
403
 
# it under the terms of the GNU General Public License as published by
404
 
# the Free Software Foundation; either version 2, or (at your option)
405
 
# any later version.
406
 
 
407
 
# This program is distributed in the hope that it will be useful,
408
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
409
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
410
 
# GNU General Public License for more details.
411
 
 
412
 
# You should have received a copy of the GNU General Public License
413
 
# along with this program; if not, write to the Free Software
414
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
415
 
# 02111-1307, USA.
416
 
 
417
 
# serial 2
 
353
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
354
#
 
355
# This file is free software; the Free Software Foundation
 
356
# gives unlimited permission to copy and/or distribute it,
 
357
# with or without modifications, as long as this notice is preserved.
 
358
 
 
359
# AM_PROG_MKDIR_P
 
360
# ---------------
 
361
# Check for `mkdir -p'.
 
362
AC_DEFUN([AM_PROG_MKDIR_P],
 
363
[AC_PREREQ([2.60])dnl
 
364
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
365
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
366
dnl while keeping a definition of mkdir_p for backward compatibility.
 
367
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
368
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
369
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
370
dnl adjustment using top_builddir (which is defined more often than
 
371
dnl MKDIR_P).
 
372
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
373
case $mkdir_p in
 
374
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
375
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
376
esac
 
377
])
 
378
 
 
379
# Helper functions for option handling.                     -*- Autoconf -*-
 
380
 
 
381
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
382
#
 
383
# This file is free software; the Free Software Foundation
 
384
# gives unlimited permission to copy and/or distribute it,
 
385
# with or without modifications, as long as this notice is preserved.
 
386
 
 
387
# serial 3
418
388
 
419
389
# _AM_MANGLE_OPTION(NAME)
420
390
# -----------------------
439
409
AC_DEFUN([_AM_IF_OPTION],
440
410
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
441
411
 
442
 
#
443
 
# Check to make sure that the build environment is sane.
444
 
#
445
 
 
446
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
447
 
 
448
 
# This program is free software; you can redistribute it and/or modify
449
 
# it under the terms of the GNU General Public License as published by
450
 
# the Free Software Foundation; either version 2, or (at your option)
451
 
# any later version.
452
 
 
453
 
# This program is distributed in the hope that it will be useful,
454
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
455
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
456
 
# GNU General Public License for more details.
457
 
 
458
 
# You should have received a copy of the GNU General Public License
459
 
# along with this program; if not, write to the Free Software
460
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
461
 
# 02111-1307, USA.
462
 
 
463
 
# serial 3
 
412
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
413
 
 
414
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
415
# Free Software Foundation, Inc.
 
416
#
 
417
# This file is free software; the Free Software Foundation
 
418
# gives unlimited permission to copy and/or distribute it,
 
419
# with or without modifications, as long as this notice is preserved.
 
420
 
 
421
# serial 4
464
422
 
465
423
# AM_SANITY_CHECK
466
424
# ---------------
503
461
fi
504
462
AC_MSG_RESULT(yes)])
505
463
 
 
464
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
465
#
 
466
# This file is free software; the Free Software Foundation
 
467
# gives unlimited permission to copy and/or distribute it,
 
468
# with or without modifications, as long as this notice is preserved.
 
469
 
506
470
# AM_PROG_INSTALL_STRIP
507
 
 
508
 
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
509
 
 
510
 
# This program is free software; you can redistribute it and/or modify
511
 
# it under the terms of the GNU General Public License as published by
512
 
# the Free Software Foundation; either version 2, or (at your option)
513
 
# any later version.
514
 
 
515
 
# This program is distributed in the hope that it will be useful,
516
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
517
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
518
 
# GNU General Public License for more details.
519
 
 
520
 
# You should have received a copy of the GNU General Public License
521
 
# along with this program; if not, write to the Free Software
522
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
523
 
# 02111-1307, USA.
524
 
 
 
471
# ---------------------
525
472
# One issue with vendor `install' (even GNU) is that you can't
526
473
# specify the program used to strip binaries.  This is especially
527
474
# annoying in cross-compiling environments, where the build's strip
539
486
if test "$cross_compiling" != no; then
540
487
  AC_CHECK_TOOL([STRIP], [strip], :)
541
488
fi
542
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
489
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
543
490
AC_SUBST([INSTALL_STRIP_PROGRAM])])
544
491
 
545
 
m4_include([config/m4.m4])
 
492
# Copyright (C) 2006  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.
 
497
 
 
498
# _AM_SUBST_NOTMAKE(VARIABLE)
 
499
# ---------------------------
 
500
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
501
# This macro is traced by Automake.
 
502
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
503
 
 
504
# Check how to create a tarball.                            -*- Autoconf -*-
 
505
 
 
506
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
507
#
 
508
# This file is free software; the Free Software Foundation
 
509
# gives unlimited permission to copy and/or distribute it,
 
510
# with or without modifications, as long as this notice is preserved.
 
511
 
 
512
# serial 2
 
513
 
 
514
# _AM_PROG_TAR(FORMAT)
 
515
# --------------------
 
516
# Check how to create a tarball in format FORMAT.
 
517
# FORMAT should be one of `v7', `ustar', or `pax'.
 
518
#
 
519
# Substitute a variable $(am__tar) that is a command
 
520
# writing to stdout a FORMAT-tarball containing the directory
 
521
# $tardir.
 
522
#     tardir=directory && $(am__tar) > result.tar
 
523
#
 
524
# Substitute a variable $(am__untar) that extract such
 
525
# a tarball read from stdin.
 
526
#     $(am__untar) < result.tar
 
527
AC_DEFUN([_AM_PROG_TAR],
 
528
[# Always define AMTAR for backward compatibility.
 
529
AM_MISSING_PROG([AMTAR], [tar])
 
530
m4_if([$1], [v7],
 
531
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
532
     [m4_case([$1], [ustar],, [pax],,
 
533
              [m4_fatal([Unknown tar format])])
 
534
AC_MSG_CHECKING([how to create a $1 tar archive])
 
535
# Loop over all known methods to create a tar archive until one works.
 
536
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
537
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
538
# Do not fold the above two line into one, because Tru64 sh and
 
539
# Solaris sh will not grok spaces in the rhs of `-'.
 
540
for _am_tool in $_am_tools
 
541
do
 
542
  case $_am_tool in
 
543
  gnutar)
 
544
    for _am_tar in tar gnutar gtar;
 
545
    do
 
546
      AM_RUN_LOG([$_am_tar --version]) && break
 
547
    done
 
548
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
549
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
550
    am__untar="$_am_tar -xf -"
 
551
    ;;
 
552
  plaintar)
 
553
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
554
    # ustar tarball either.
 
555
    (tar --version) >/dev/null 2>&1 && continue
 
556
    am__tar='tar chf - "$$tardir"'
 
557
    am__tar_='tar chf - "$tardir"'
 
558
    am__untar='tar xf -'
 
559
    ;;
 
560
  pax)
 
561
    am__tar='pax -L -x $1 -w "$$tardir"'
 
562
    am__tar_='pax -L -x $1 -w "$tardir"'
 
563
    am__untar='pax -r'
 
564
    ;;
 
565
  cpio)
 
566
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
567
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
568
    am__untar='cpio -i -H $1 -d'
 
569
    ;;
 
570
  none)
 
571
    am__tar=false
 
572
    am__tar_=false
 
573
    am__untar=false
 
574
    ;;
 
575
  esac
 
576
 
 
577
  # If the value was cached, stop now.  We just wanted to have am__tar
 
578
  # and am__untar set.
 
579
  test -n "${am_cv_prog_tar_$1}" && break
 
580
 
 
581
  # tar/untar a dummy directory, and stop if the command works
 
582
  rm -rf conftest.dir
 
583
  mkdir conftest.dir
 
584
  echo GrepMe > conftest.dir/file
 
585
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
586
  rm -rf conftest.dir
 
587
  if test -s conftest.tar; then
 
588
    AM_RUN_LOG([$am__untar <conftest.tar])
 
589
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
590
  fi
 
591
done
 
592
rm -rf conftest.dir
 
593
 
 
594
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
595
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
596
AC_SUBST([am__tar])
 
597
AC_SUBST([am__untar])
 
598
]) # _AM_PROG_TAR
 
599
 
 
600
m4_include([m4/m4.m4])