~ubuntu-branches/ubuntu/utopic/bumprace/utopic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess, Joey Hess, root
  • Date: 2006-10-14 23:00:39 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20061014230039-navrufb60e95o381
Tags: 1.5.1.dfsg-2.1
[ Joey Hess ]
* NMU with patch from tbm to fix FTBFS with current gcc. Closes: #392318

[ root ]
* GNU config automated update: config.sub     (20060223 to 20060920),
  config.guess     (20060223 to 20060702)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
2
 
 
3
 
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
 
# Free Software Foundation, Inc.
5
 
# This file is free software; the Free Software Foundation
6
 
# gives unlimited permission to copy and/or distribute it,
7
 
# with or without modifications, as long as this notice is preserved.
8
 
 
9
 
# This program is distributed in the hope that it will be useful,
10
 
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
 
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
 
# PARTICULAR PURPOSE.
 
1
dnl aclocal.m4 generated automatically by aclocal 1.4-p6
 
2
 
 
3
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
 
4
dnl This file is free software; the Free Software Foundation
 
5
dnl gives unlimited permission to copy and/or distribute it,
 
6
dnl with or without modifications, as long as this notice is preserved.
 
7
 
 
8
dnl This program is distributed in the hope that it will be useful,
 
9
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
10
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
11
dnl PARTICULAR PURPOSE.
13
12
 
14
13
# Configure paths for SDL
15
14
# Sam Lantinga 9/21/99
186
185
  rm -f conf.sdltest
187
186
])
188
187
 
189
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
190
 
 
191
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
192
 
 
193
 
# This program is free software; you can redistribute it and/or modify
194
 
# it under the terms of the GNU General Public License as published by
195
 
# the Free Software Foundation; either version 2, or (at your option)
196
 
# any later version.
197
 
 
198
 
# This program is distributed in the hope that it will be useful,
199
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
200
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
201
 
# GNU General Public License for more details.
202
 
 
203
 
# You should have received a copy of the GNU General Public License
204
 
# along with this program; if not, write to the Free Software
205
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
206
 
# 02111-1307, USA.
207
 
 
208
 
# serial 5
209
 
 
210
 
AC_PREREQ(2.52)
211
 
 
212
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
213
 
# -------------------------------------
214
 
# Define a conditional.
215
 
AC_DEFUN([AM_CONDITIONAL],
216
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
217
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
218
 
AC_SUBST([$1_TRUE])
219
 
AC_SUBST([$1_FALSE])
220
 
if $2; then
221
 
  $1_TRUE=
222
 
  $1_FALSE='#'
223
 
else
224
 
  $1_TRUE='#'
225
 
  $1_FALSE=
226
 
fi
227
 
AC_CONFIG_COMMANDS_PRE(
228
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
229
 
  AC_MSG_ERROR([conditional \"$1\" was never defined.
230
 
Usually this means the macro was only invoked conditionally.])
231
 
fi])])
232
 
 
233
 
# Do all the work for Automake.                            -*- Autoconf -*-
234
 
 
235
 
# This macro actually does too much some checks are only needed if
236
 
# your package does certain things.  But this isn't really a big deal.
237
 
 
238
 
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
239
 
# Free Software Foundation, Inc.
240
 
 
241
 
# This program is free software; you can redistribute it and/or modify
242
 
# it under the terms of the GNU General Public License as published by
243
 
# the Free Software Foundation; either version 2, or (at your option)
244
 
# any later version.
245
 
 
246
 
# This program is distributed in the hope that it will be useful,
247
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
248
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
249
 
# GNU General Public License for more details.
250
 
 
251
 
# You should have received a copy of the GNU General Public License
252
 
# along with this program; if not, write to the Free Software
253
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
254
 
# 02111-1307, USA.
255
 
 
256
 
# serial 8
257
 
 
258
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
259
 
# written in clear, in which case automake, when reading aclocal.m4,
260
 
# will think it sees a *use*, and therefore will trigger all it's
261
 
# C support machinery.  Also note that it means that autoscan, seeing
262
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
263
 
 
264
 
 
265
 
AC_PREREQ([2.52])
266
 
 
267
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
268
 
# the ones we care about.
269
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
270
 
 
271
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
272
 
# AM_INIT_AUTOMAKE([OPTIONS])
273
 
# -----------------------------------------------
274
 
# The call with PACKAGE and VERSION arguments is the old style
275
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
276
 
# and VERSION should now be passed to AC_INIT and removed from
277
 
# the call to AM_INIT_AUTOMAKE.
278
 
# We support both call styles for the transition.  After
279
 
# the next Automake release, Autoconf can make the AC_INIT
280
 
# arguments mandatory, and then we can depend on a new Autoconf
281
 
# release and drop the old call support.
 
188
# Do all the work for Automake.  This macro actually does too much --
 
189
# some checks are only needed if your package does certain things.
 
190
# But this isn't really a big deal.
 
191
 
 
192
# serial 1
 
193
 
 
194
dnl Usage:
 
195
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
 
196
 
282
197
AC_DEFUN([AM_INIT_AUTOMAKE],
283
198
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
284
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
285
 
# test to see if srcdir already configured
286
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
287
 
   test -f $srcdir/config.status; then
 
199
AC_REQUIRE([AC_PROG_INSTALL])
 
200
PACKAGE=[$1]
 
201
AC_SUBST(PACKAGE)
 
202
VERSION=[$2]
 
203
AC_SUBST(VERSION)
 
204
dnl test to see if srcdir already configured
 
205
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
288
206
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
289
207
fi
290
 
 
291
 
# Define the identity of the package.
292
 
dnl Distinguish between old-style and new-style calls.
293
 
m4_ifval([$2],
294
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
295
 
 AC_SUBST([PACKAGE], [$1])dnl
296
 
 AC_SUBST([VERSION], [$2])],
297
 
[_AM_SET_OPTIONS([$1])dnl
298
 
 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
299
 
 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
300
 
 
301
 
_AM_IF_OPTION([no-define],,
302
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
303
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
304
 
 
305
 
# Some tools Automake needs.
306
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
307
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
308
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
309
 
AM_MISSING_PROG(AUTOCONF, autoconf)
310
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
311
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
312
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
313
 
AM_MISSING_PROG(AMTAR, tar)
314
 
AM_PROG_INSTALL_SH
315
 
AM_PROG_INSTALL_STRIP
316
 
# We need awk for the "check" target.  The system "awk" is bad on
317
 
# some platforms.
318
 
AC_REQUIRE([AC_PROG_AWK])dnl
319
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
320
 
 
321
 
_AM_IF_OPTION([no-dependencies],,
322
 
[AC_PROVIDE_IFELSE([AC_PROG_][CC],
323
 
                  [_AM_DEPENDENCIES(CC)],
324
 
                  [define([AC_PROG_][CC],
325
 
                          defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
326
 
AC_PROVIDE_IFELSE([AC_PROG_][CXX],
327
 
                  [_AM_DEPENDENCIES(CXX)],
328
 
                  [define([AC_PROG_][CXX],
329
 
                          defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
330
 
])
331
 
])
 
208
ifelse([$3],,
 
209
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
210
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
 
211
AC_REQUIRE([AM_SANITY_CHECK])
 
212
AC_REQUIRE([AC_ARG_PROGRAM])
 
213
dnl FIXME This is truly gross.
 
214
missing_dir=`cd $ac_aux_dir && pwd`
 
215
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
 
216
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
 
217
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
 
218
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
 
219
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
 
220
AC_REQUIRE([AC_PROG_MAKE_SET])])
332
221
 
333
222
# Copyright 2002  Free Software Foundation, Inc.
334
223
 
350
239
# ----------------------------
351
240
# Automake X.Y traces this macro to ensure aclocal.m4 has been
352
241
# generated from the m4 files accompanying Automake X.Y.
353
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
 
242
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
354
243
 
355
244
# AM_SET_CURRENT_AUTOMAKE_VERSION
356
245
# -------------------------------
357
246
# Call AM_AUTOMAKE_VERSION so it can be traced.
358
247
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
359
248
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
360
 
         [AM_AUTOMAKE_VERSION([1.6.3])])
361
 
 
362
 
# Helper functions for option handling.                    -*- Autoconf -*-
363
 
 
364
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
365
 
 
366
 
# This program is free software; you can redistribute it and/or modify
367
 
# it under the terms of the GNU General Public License as published by
368
 
# the Free Software Foundation; either version 2, or (at your option)
369
 
# any later version.
370
 
 
371
 
# This program is distributed in the hope that it will be useful,
372
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
373
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
374
 
# GNU General Public License for more details.
375
 
 
376
 
# You should have received a copy of the GNU General Public License
377
 
# along with this program; if not, write to the Free Software
378
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
379
 
# 02111-1307, USA.
380
 
 
381
 
# serial 2
382
 
 
383
 
# _AM_MANGLE_OPTION(NAME)
384
 
# -----------------------
385
 
AC_DEFUN([_AM_MANGLE_OPTION],
386
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
387
 
 
388
 
# _AM_SET_OPTION(NAME)
389
 
# ------------------------------
390
 
# Set option NAME.  Presently that only means defining a flag for this option.
391
 
AC_DEFUN([_AM_SET_OPTION],
392
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
393
 
 
394
 
# _AM_SET_OPTIONS(OPTIONS)
395
 
# ----------------------------------
396
 
# OPTIONS is a space-separated list of Automake options.
397
 
AC_DEFUN([_AM_SET_OPTIONS],
398
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
399
 
 
400
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
401
 
# -------------------------------------------
402
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
403
 
AC_DEFUN([_AM_IF_OPTION],
404
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
249
         [AM_AUTOMAKE_VERSION([1.4-p6])])
405
250
 
406
251
#
407
252
# Check to make sure that the build environment is sane.
408
253
#
409
254
 
410
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
411
 
 
412
 
# This program is free software; you can redistribute it and/or modify
413
 
# it under the terms of the GNU General Public License as published by
414
 
# the Free Software Foundation; either version 2, or (at your option)
415
 
# any later version.
416
 
 
417
 
# This program is distributed in the hope that it will be useful,
418
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
419
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
420
 
# GNU General Public License for more details.
421
 
 
422
 
# You should have received a copy of the GNU General Public License
423
 
# along with this program; if not, write to the Free Software
424
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
425
 
# 02111-1307, USA.
426
 
 
427
 
# serial 3
428
 
 
429
 
# AM_SANITY_CHECK
430
 
# ---------------
431
255
AC_DEFUN([AM_SANITY_CHECK],
432
256
[AC_MSG_CHECKING([whether build environment is sane])
433
257
# Just in case
434
258
sleep 1
435
 
echo timestamp > conftest.file
 
259
echo timestamp > conftestfile
436
260
# Do `set' in a subshell so we don't clobber the current shell's
437
261
# arguments.  Must try -L first in case configure is actually a
438
262
# symlink; some systems play weird games with the mod time of symlinks
439
263
# (eg FreeBSD returns the mod time of the symlink's containing
440
264
# directory).
441
265
if (
442
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
443
 
   if test "$[*]" = "X"; then
 
266
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
267
   if test "[$]*" = "X"; then
444
268
      # -L didn't work.
445
 
      set X `ls -t $srcdir/configure conftest.file`
 
269
      set X `ls -t $srcdir/configure conftestfile`
446
270
   fi
447
 
   rm -f conftest.file
448
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
449
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
271
   if test "[$]*" != "X $srcdir/configure conftestfile" \
 
272
      && test "[$]*" != "X conftestfile $srcdir/configure"; then
450
273
 
451
274
      # If neither matched, then we have a broken ls.  This can happen
452
275
      # if, for instance, CONFIG_SHELL is bash and it inherits a
456
279
alias in your environment])
457
280
   fi
458
281
 
459
 
   test "$[2]" = conftest.file
 
282
   test "[$]2" = conftestfile
460
283
   )
461
284
then
462
285
   # Ok.
465
288
   AC_MSG_ERROR([newly created file is older than distributed files!
466
289
Check your system clock])
467
290
fi
 
291
rm -f conftest*
468
292
AC_MSG_RESULT(yes)])
469
293
 
470
 
#  -*- Autoconf -*-
471
 
 
472
 
 
473
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
474
 
 
475
 
# This program is free software; you can redistribute it and/or modify
476
 
# it under the terms of the GNU General Public License as published by
477
 
# the Free Software Foundation; either version 2, or (at your option)
478
 
# any later version.
479
 
 
480
 
# This program is distributed in the hope that it will be useful,
481
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
482
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
483
 
# GNU General Public License for more details.
484
 
 
485
 
# You should have received a copy of the GNU General Public License
486
 
# along with this program; if not, write to the Free Software
487
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
488
 
# 02111-1307, USA.
489
 
 
490
 
# serial 3
491
 
 
492
 
# AM_MISSING_PROG(NAME, PROGRAM)
493
 
# ------------------------------
 
294
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
 
295
dnl The program must properly implement --version.
494
296
AC_DEFUN([AM_MISSING_PROG],
495
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
496
 
$1=${$1-"${am_missing_run}$2"}
 
297
[AC_MSG_CHECKING(for working $2)
 
298
# Run test in a subshell; some versions of sh will print an error if
 
299
# an executable is not found, even if stderr is redirected.
 
300
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
301
if ($2 --version) < /dev/null > /dev/null 2>&1; then
 
302
   $1=$2
 
303
   AC_MSG_RESULT(found)
 
304
else
 
305
   $1="$3/missing $2"
 
306
   AC_MSG_RESULT(missing)
 
307
fi
497
308
AC_SUBST($1)])
498
309
 
499
 
 
500
 
# AM_MISSING_HAS_RUN
501
 
# ------------------
502
 
# Define MISSING if not defined so far and test if it supports --run.
503
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
504
 
AC_DEFUN([AM_MISSING_HAS_RUN],
505
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
506
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
507
 
# Use eval to expand $SHELL
508
 
if eval "$MISSING --run true"; then
509
 
  am_missing_run="$MISSING --run "
510
 
else
511
 
  am_missing_run=
512
 
  AC_MSG_WARN([`missing' script is too old or missing])
513
 
fi
514
 
])
515
 
 
516
 
# AM_AUX_DIR_EXPAND
517
 
 
518
 
# Copyright 2001 Free Software Foundation, Inc.
519
 
 
520
 
# This program is free software; you can redistribute it and/or modify
521
 
# it under the terms of the GNU General Public License as published by
522
 
# the Free Software Foundation; either version 2, or (at your option)
523
 
# any later version.
524
 
 
525
 
# This program is distributed in the hope that it will be useful,
526
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
527
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
528
 
# GNU General Public License for more details.
529
 
 
530
 
# You should have received a copy of the GNU General Public License
531
 
# along with this program; if not, write to the Free Software
532
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
533
 
# 02111-1307, USA.
534
 
 
535
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
536
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
537
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
538
 
#
539
 
# Of course, Automake must honor this variable whenever it calls a
540
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
541
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
542
 
# depending on how configure is run.  This is pretty annoying, since
543
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
544
 
# source directory, any form will work fine, but in subdirectories a
545
 
# relative path needs to be adjusted first.
546
 
#
547
 
# $ac_aux_dir/missing
548
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
549
 
# $top_srcdir/$ac_aux_dir/missing
550
 
#    fails if $ac_aux_dir is absolute,
551
 
#    fails when called from a subdirectory in a VPATH build with
552
 
#          a relative $ac_aux_dir
553
 
#
554
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
555
 
# are both prefixed by $srcdir.  In an in-source build this is usually
556
 
# harmless because $srcdir is `.', but things will broke when you
557
 
# start a VPATH build or use an absolute $srcdir.
558
 
#
559
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
560
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
561
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
562
 
# and then we would define $MISSING as
563
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
564
 
# This will work as long as MISSING is not called from configure, because
565
 
# unfortunately $(top_srcdir) has no meaning in configure.
566
 
# However there are other variables, like CC, which are often used in
567
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
568
 
#
569
 
# Another solution, used here, is to always expand $ac_aux_dir to an
570
 
# absolute PATH.  The drawback is that using absolute paths prevent a
571
 
# configured tree to be moved without reconfiguration.
572
 
 
573
 
# Rely on autoconf to set up CDPATH properly.
574
 
AC_PREREQ([2.50])
575
 
 
576
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
577
 
# expand $ac_aux_dir to an absolute path
578
 
am_aux_dir=`cd $ac_aux_dir && pwd`
579
 
])
580
 
 
581
 
# AM_PROG_INSTALL_SH
582
 
# ------------------
583
 
# Define $install_sh.
584
 
 
585
 
# Copyright 2001 Free Software Foundation, Inc.
586
 
 
587
 
# This program is free software; you can redistribute it and/or modify
588
 
# it under the terms of the GNU General Public License as published by
589
 
# the Free Software Foundation; either version 2, or (at your option)
590
 
# any later version.
591
 
 
592
 
# This program is distributed in the hope that it will be useful,
593
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
594
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
595
 
# GNU General Public License for more details.
596
 
 
597
 
# You should have received a copy of the GNU General Public License
598
 
# along with this program; if not, write to the Free Software
599
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
600
 
# 02111-1307, USA.
601
 
 
602
 
AC_DEFUN([AM_PROG_INSTALL_SH],
603
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
604
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
605
 
AC_SUBST(install_sh)])
606
 
 
607
 
# AM_PROG_INSTALL_STRIP
608
 
 
609
 
# Copyright 2001 Free Software Foundation, Inc.
610
 
 
611
 
# This program is free software; you can redistribute it and/or modify
612
 
# it under the terms of the GNU General Public License as published by
613
 
# the Free Software Foundation; either version 2, or (at your option)
614
 
# any later version.
615
 
 
616
 
# This program is distributed in the hope that it will be useful,
617
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
618
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
619
 
# GNU General Public License for more details.
620
 
 
621
 
# You should have received a copy of the GNU General Public License
622
 
# along with this program; if not, write to the Free Software
623
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
624
 
# 02111-1307, USA.
625
 
 
626
 
# One issue with vendor `install' (even GNU) is that you can't
627
 
# specify the program used to strip binaries.  This is especially
628
 
# annoying in cross-compiling environments, where the build's strip
629
 
# is unlikely to handle the host's binaries.
630
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
631
 
# always use install-sh in `make install-strip', and initialize
632
 
# STRIPPROG with the value of the STRIP variable (set by the user).
633
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
634
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
635
 
# Installed binaries are usually stripped using `strip' when the user
636
 
# run `make install-strip'.  However `strip' might not be the right
637
 
# tool to use in cross-compilation environments, therefore Automake
638
 
# will honor the `STRIP' environment variable to overrule this program.
639
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
640
 
if test "$cross_compiling" != no; then
641
 
  AC_CHECK_TOOL([STRIP], [strip], :)
642
 
fi
643
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
644
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
645
 
 
646
 
# serial 4                                              -*- Autoconf -*-
647
 
 
648
 
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
649
 
 
650
 
# This program is free software; you can redistribute it and/or modify
651
 
# it under the terms of the GNU General Public License as published by
652
 
# the Free Software Foundation; either version 2, or (at your option)
653
 
# any later version.
654
 
 
655
 
# This program is distributed in the hope that it will be useful,
656
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
657
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
658
 
# GNU General Public License for more details.
659
 
 
660
 
# You should have received a copy of the GNU General Public License
661
 
# along with this program; if not, write to the Free Software
662
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
663
 
# 02111-1307, USA.
664
 
 
665
 
 
666
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
667
 
# written in clear, in which case automake, when reading aclocal.m4,
668
 
# will think it sees a *use*, and therefore will trigger all it's
669
 
# C support machinery.  Also note that it means that autoscan, seeing
670
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
671
 
 
672
 
 
673
 
 
674
 
# _AM_DEPENDENCIES(NAME)
675
 
# ----------------------
676
 
# See how the compiler implements dependency checking.
677
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
678
 
# We try a few techniques and use that to set a single cache variable.
679
 
#
680
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
681
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
682
 
# dependency, and given that the user is not expected to run this macro,
683
 
# just rely on AC_PROG_CC.
684
 
AC_DEFUN([_AM_DEPENDENCIES],
685
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
686
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
687
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
688
 
AC_REQUIRE([AM_DEP_TRACK])dnl
689
 
 
690
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
691
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
692
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
693
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
694
 
                   [depcc="$$1"   am_compiler_list=])
695
 
 
696
 
AC_CACHE_CHECK([dependency style of $depcc],
697
 
               [am_cv_$1_dependencies_compiler_type],
698
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
699
 
  # We make a subdir and do the tests there.  Otherwise we can end up
700
 
  # making bogus files that we don't know about and never remove.  For
701
 
  # instance it was reported that on HP-UX the gcc test will end up
702
 
  # making a dummy file named `D' -- because `-MD' means `put the output
703
 
  # in D'.
704
 
  mkdir conftest.dir
705
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
706
 
  # using a relative directory.
707
 
  cp "$am_depcomp" conftest.dir
708
 
  cd conftest.dir
709
 
 
710
 
  am_cv_$1_dependencies_compiler_type=none
711
 
  if test "$am_compiler_list" = ""; then
712
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
713
 
  fi
714
 
  for depmode in $am_compiler_list; do
715
 
    # We need to recreate these files for each test, as the compiler may
716
 
    # overwrite some of them when testing with obscure command lines.
717
 
    # This happens at least with the AIX C compiler.
718
 
    echo '#include "conftest.h"' > conftest.c
719
 
    echo 'int i;' > conftest.h
720
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
721
 
 
722
 
    case $depmode in
723
 
    nosideeffect)
724
 
      # after this tag, mechanisms are not by side-effect, so they'll
725
 
      # only be used when explicitly requested
726
 
      if test "x$enable_dependency_tracking" = xyes; then
727
 
        continue
728
 
      else
729
 
        break
730
 
      fi
731
 
      ;;
732
 
    none) break ;;
733
 
    esac
734
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
735
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
736
 
    # handle `-M -o', and we need to detect this.
737
 
    if depmode=$depmode \
738
 
       source=conftest.c object=conftest.o \
739
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
740
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
741
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
742
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
743
 
      am_cv_$1_dependencies_compiler_type=$depmode
744
 
      break
745
 
    fi
746
 
  done
747
 
 
748
 
  cd ..
749
 
  rm -rf conftest.dir
750
 
else
751
 
  am_cv_$1_dependencies_compiler_type=none
752
 
fi
753
 
])
754
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
755
 
])
756
 
 
757
 
 
758
 
# AM_SET_DEPDIR
759
 
# -------------
760
 
# Choose a directory name for dependency files.
761
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
762
 
AC_DEFUN([AM_SET_DEPDIR],
763
 
[rm -f .deps 2>/dev/null
764
 
mkdir .deps 2>/dev/null
765
 
if test -d .deps; then
766
 
  DEPDIR=.deps
767
 
else
768
 
  # MS-DOS does not allow filenames that begin with a dot.
769
 
  DEPDIR=_deps
770
 
fi
771
 
rmdir .deps 2>/dev/null
772
 
AC_SUBST([DEPDIR])
773
 
])
774
 
 
775
 
 
776
 
# AM_DEP_TRACK
777
 
# ------------
778
 
AC_DEFUN([AM_DEP_TRACK],
779
 
[AC_ARG_ENABLE(dependency-tracking,
780
 
[  --disable-dependency-tracking Speeds up one-time builds
781
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
782
 
if test "x$enable_dependency_tracking" != xno; then
783
 
  am_depcomp="$ac_aux_dir/depcomp"
784
 
  AMDEPBACKSLASH='\'
785
 
fi
786
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
787
 
AC_SUBST([AMDEPBACKSLASH])
788
 
])
789
 
 
790
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
791
 
 
792
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
793
 
 
794
 
# This program is free software; you can redistribute it and/or modify
795
 
# it under the terms of the GNU General Public License as published by
796
 
# the Free Software Foundation; either version 2, or (at your option)
797
 
# any later version.
798
 
 
799
 
# This program is distributed in the hope that it will be useful,
800
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
801
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
802
 
# GNU General Public License for more details.
803
 
 
804
 
# You should have received a copy of the GNU General Public License
805
 
# along with this program; if not, write to the Free Software
806
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
807
 
# 02111-1307, USA.
808
 
 
809
 
#serial 2
810
 
 
811
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
812
 
# ------------------------------
813
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
814
 
[for mf in $CONFIG_FILES; do
815
 
  # Strip MF so we end up with the name of the file.
816
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
817
 
  # Check whether this is an Automake generated Makefile or not.
818
 
  # We used to match only the files named `Makefile.in', but
819
 
  # some people rename them; so instead we look at the file content.
820
 
  # Grep'ing the first line is not enough: some people post-process
821
 
  # each Makefile.in and add a new line on top of each file to say so.
822
 
  # So let's grep whole file.
823
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
824
 
    dirpart=`AS_DIRNAME("$mf")`
825
 
  else
826
 
    continue
827
 
  fi
828
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
829
 
  # Extract the definition of DEP_FILES from the Makefile without
830
 
  # running `make'.
831
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
832
 
  test -z "$DEPDIR" && continue
833
 
  # When using ansi2knr, U may be empty or an underscore; expand it
834
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
835
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
836
 
  # We invoke sed twice because it is the simplest approach to
837
 
  # changing $(DEPDIR) to its actual value in the expansion.
838
 
  for file in `sed -n -e '
839
 
    /^DEP_FILES = .*\\\\$/ {
840
 
      s/^DEP_FILES = //
841
 
      :loop
842
 
        s/\\\\$//
843
 
        p
844
 
        n
845
 
        /\\\\$/ b loop
846
 
      p
847
 
    }
848
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
849
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
850
 
    # Make sure the directory exists.
851
 
    test -f "$dirpart/$file" && continue
852
 
    fdir=`AS_DIRNAME(["$file"])`
853
 
    AS_MKDIR_P([$dirpart/$fdir])
854
 
    # echo "creating $dirpart/$file"
855
 
    echo '# dummy' > "$dirpart/$file"
856
 
  done
857
 
done
858
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
859
 
 
860
 
 
861
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
862
 
# -----------------------------
863
 
# This macro should only be invoked once -- use via AC_REQUIRE.
864
 
#
865
 
# This code is only required when automatic dependency tracking
866
 
# is enabled.  FIXME.  This creates each `.P' file that we will
867
 
# need in order to bootstrap the dependency handling code.
868
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
869
 
[AC_CONFIG_COMMANDS([depfiles],
870
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
871
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
872
 
])
873
 
 
874
 
# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
875
 
 
876
 
# This program is free software; you can redistribute it and/or modify
877
 
# it under the terms of the GNU General Public License as published by
878
 
# the Free Software Foundation; either version 2, or (at your option)
879
 
# any later version.
880
 
 
881
 
# This program is distributed in the hope that it will be useful,
882
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
883
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
884
 
# GNU General Public License for more details.
885
 
 
886
 
# You should have received a copy of the GNU General Public License
887
 
# along with this program; if not, write to the Free Software
888
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
889
 
# 02111-1307, USA.
890
 
 
891
 
# serial 2
892
 
 
893
 
# AM_MAKE_INCLUDE()
894
 
# -----------------
895
 
# Check to see how make treats includes.
896
 
AC_DEFUN([AM_MAKE_INCLUDE],
897
 
[am_make=${MAKE-make}
898
 
cat > confinc << 'END'
899
 
doit:
900
 
        @echo done
901
 
END
902
 
# If we don't find an include directive, just comment out the code.
903
 
AC_MSG_CHECKING([for style of include used by $am_make])
904
 
am__include="#"
905
 
am__quote=
906
 
_am_result=none
907
 
# First try GNU make style include.
908
 
echo "include confinc" > confmf
909
 
# We grep out `Entering directory' and `Leaving directory'
910
 
# messages which can occur if `w' ends up in MAKEFLAGS.
911
 
# In particular we don't look at `^make:' because GNU make might
912
 
# be invoked under some other name (usually "gmake"), in which
913
 
# case it prints its new name instead of `make'.
914
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
915
 
   am__include=include
916
 
   am__quote=
917
 
   _am_result=GNU
918
 
fi
919
 
# Now try BSD make style include.
920
 
if test "$am__include" = "#"; then
921
 
   echo '.include "confinc"' > confmf
922
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
923
 
      am__include=.include
924
 
      am__quote="\""
925
 
      _am_result=BSD
926
 
   fi
927
 
fi
928
 
AC_SUBST(am__include)
929
 
AC_SUBST(am__quote)
930
 
AC_MSG_RESULT($_am_result)
931
 
rm -f confinc confmf
932
 
])
933