~ubuntu-branches/debian/sid/bristol/sid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-02-15 02:54:23 UTC
  • mfrom: (13.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110215025423-g8hcla5gyl08mae3
Tags: 0.60.8-2
* Upload to unstable.
* Relax JACK's build-deps to let this build in sid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  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
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
 
17
[m4_warning([this file was generated for autoconf 2.65.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
14
22
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
15
23
16
24
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
169
177
fi[]dnl
170
178
])# PKG_CHECK_MODULES
171
179
 
172
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
180
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
173
181
#
174
182
# This file is free software; the Free Software Foundation
175
183
# gives unlimited permission to copy and/or distribute it,
179
187
# ----------------------------
180
188
# Automake X.Y traces this macro to ensure aclocal.m4 has been
181
189
# generated from the m4 files accompanying Automake X.Y.
182
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
190
# (This private macro should not be called outside this file.)
 
191
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
192
[am__api_version='1.11'
 
193
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
194
dnl require some minimum version.  Point them to the right macro.
 
195
m4_if([$1], [1.11.1], [],
 
196
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
197
])
 
198
 
 
199
# _AM_AUTOCONF_VERSION(VERSION)
 
200
# -----------------------------
 
201
# aclocal traces this macro to find the Autoconf version.
 
202
# This is a private macro too.  Using m4_define simplifies
 
203
# the logic in aclocal, which can simply ignore this definition.
 
204
m4_define([_AM_AUTOCONF_VERSION], [])
183
205
 
184
206
# AM_SET_CURRENT_AUTOMAKE_VERSION
185
207
# -------------------------------
186
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
187
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
208
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
209
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
188
210
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
189
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
211
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
212
m4_ifndef([AC_AUTOCONF_VERSION],
 
213
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
214
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
190
215
 
191
216
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
192
217
 
243
268
 
244
269
# AM_CONDITIONAL                                            -*- Autoconf -*-
245
270
 
246
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
271
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
247
272
# Free Software Foundation, Inc.
248
273
#
249
274
# This file is free software; the Free Software Foundation
250
275
# gives unlimited permission to copy and/or distribute it,
251
276
# with or without modifications, as long as this notice is preserved.
252
277
 
253
 
# serial 7
 
278
# serial 9
254
279
 
255
280
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
256
281
# -------------------------------------
259
284
[AC_PREREQ(2.52)dnl
260
285
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
261
286
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
262
 
AC_SUBST([$1_TRUE])
263
 
AC_SUBST([$1_FALSE])
 
287
AC_SUBST([$1_TRUE])dnl
 
288
AC_SUBST([$1_FALSE])dnl
 
289
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
290
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
291
m4_define([_AM_COND_VALUE_$1], [$2])dnl
264
292
if $2; then
265
293
  $1_TRUE=
266
294
  $1_FALSE='#'
274
302
Usually this means the macro was only invoked conditionally.]])
275
303
fi])])
276
304
 
277
 
 
278
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
305
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
279
306
# Free Software Foundation, Inc.
280
307
#
281
308
# This file is free software; the Free Software Foundation
282
309
# gives unlimited permission to copy and/or distribute it,
283
310
# with or without modifications, as long as this notice is preserved.
284
311
 
285
 
# serial 8
 
312
# serial 10
286
313
 
287
314
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
288
315
# written in clear, in which case automake, when reading aclocal.m4,
310
337
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
311
338
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
312
339
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
340
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
313
341
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
314
342
                   [depcc="$$1"   am_compiler_list=])
315
343
 
338
366
  if test "$am_compiler_list" = ""; then
339
367
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
340
368
  fi
 
369
  am__universal=false
 
370
  m4_case([$1], [CC],
 
371
    [case " $depcc " in #(
 
372
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
373
     esac],
 
374
    [CXX],
 
375
    [case " $depcc " in #(
 
376
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
377
     esac])
 
378
 
341
379
  for depmode in $am_compiler_list; do
342
380
    # Setup a source with many dependencies, because some compilers
343
381
    # like to wrap large dependency lists on column 80 (with \), and
355
393
    done
356
394
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
357
395
 
 
396
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
397
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
398
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
399
    # versions had trouble with output in subdirs
 
400
    am__obj=sub/conftest.${OBJEXT-o}
 
401
    am__minus_obj="-o $am__obj"
358
402
    case $depmode in
 
403
    gcc)
 
404
      # This depmode causes a compiler race in universal mode.
 
405
      test "$am__universal" = false || continue
 
406
      ;;
359
407
    nosideeffect)
360
408
      # after this tag, mechanisms are not by side-effect, so they'll
361
409
      # only be used when explicitly requested
365
413
        break
366
414
      fi
367
415
      ;;
 
416
    msvisualcpp | msvcmsys)
 
417
      # This compiler won't grok `-c -o', but also, the minuso test has
 
418
      # not run yet.  These depmodes are late enough in the game, and
 
419
      # so weak that their functioning should not be impacted.
 
420
      am__obj=conftest.${OBJEXT-o}
 
421
      am__minus_obj=
 
422
      ;;
368
423
    none) break ;;
369
424
    esac
370
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
371
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
372
 
    # handle `-M -o', and we need to detect this.
373
425
    if depmode=$depmode \
374
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
426
       source=sub/conftest.c object=$am__obj \
375
427
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
376
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
428
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
377
429
         >/dev/null 2>conftest.err &&
 
430
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
378
431
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
379
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
432
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
380
433
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
381
434
      # icc doesn't choke on unknown options, it will just issue warnings
382
435
      # or remarks (even with -Werror).  So we grep stderr for any message
427
480
  AMDEPBACKSLASH='\'
428
481
fi
429
482
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
430
 
AC_SUBST([AMDEPBACKSLASH])
 
483
AC_SUBST([AMDEPBACKSLASH])dnl
 
484
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
431
485
])
432
486
 
433
487
# Generate code to set up dependency tracking.              -*- Autoconf -*-
434
488
 
435
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
489
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
436
490
# Free Software Foundation, Inc.
437
491
#
438
492
# This file is free software; the Free Software Foundation
439
493
# gives unlimited permission to copy and/or distribute it,
440
494
# with or without modifications, as long as this notice is preserved.
441
495
 
442
 
#serial 3
 
496
#serial 5
443
497
 
444
498
# _AM_OUTPUT_DEPENDENCY_COMMANDS
445
499
# ------------------------------
446
500
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
447
 
[for mf in $CONFIG_FILES; do
448
 
  # Strip MF so we end up with the name of the file.
449
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
450
 
  # Check whether this is an Automake generated Makefile or not.
451
 
  # We used to match only the files named `Makefile.in', but
452
 
  # some people rename them; so instead we look at the file content.
453
 
  # Grep'ing the first line is not enough: some people post-process
454
 
  # each Makefile.in and add a new line on top of each file to say so.
455
 
  # So let's grep whole file.
456
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
457
 
    dirpart=`AS_DIRNAME("$mf")`
458
 
  else
459
 
    continue
460
 
  fi
461
 
  # Extract the definition of DEPDIR, am__include, and am__quote
462
 
  # from the Makefile without running `make'.
463
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
464
 
  test -z "$DEPDIR" && continue
465
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
466
 
  test -z "am__include" && continue
467
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
468
 
  # When using ansi2knr, U may be empty or an underscore; expand it
469
 
  U=`sed -n 's/^U = //p' < "$mf"`
470
 
  # Find all dependency output files, they are included files with
471
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
472
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
473
 
  # expansion.
474
 
  for file in `sed -n "
475
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
476
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
477
 
    # Make sure the directory exists.
478
 
    test -f "$dirpart/$file" && continue
479
 
    fdir=`AS_DIRNAME(["$file"])`
480
 
    AS_MKDIR_P([$dirpart/$fdir])
481
 
    # echo "creating $dirpart/$file"
482
 
    echo '# dummy' > "$dirpart/$file"
 
501
[{
 
502
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
503
  # are listed without --file.  Let's play safe and only enable the eval
 
504
  # if we detect the quoting.
 
505
  case $CONFIG_FILES in
 
506
  *\'*) eval set x "$CONFIG_FILES" ;;
 
507
  *)   set x $CONFIG_FILES ;;
 
508
  esac
 
509
  shift
 
510
  for mf
 
511
  do
 
512
    # Strip MF so we end up with the name of the file.
 
513
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
514
    # Check whether this is an Automake generated Makefile or not.
 
515
    # We used to match only the files named `Makefile.in', but
 
516
    # some people rename them; so instead we look at the file content.
 
517
    # Grep'ing the first line is not enough: some people post-process
 
518
    # each Makefile.in and add a new line on top of each file to say so.
 
519
    # Grep'ing the whole file is not good either: AIX grep has a line
 
520
    # limit of 2048, but all sed's we know have understand at least 4000.
 
521
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
522
      dirpart=`AS_DIRNAME("$mf")`
 
523
    else
 
524
      continue
 
525
    fi
 
526
    # Extract the definition of DEPDIR, am__include, and am__quote
 
527
    # from the Makefile without running `make'.
 
528
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
529
    test -z "$DEPDIR" && continue
 
530
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
531
    test -z "am__include" && continue
 
532
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
533
    # When using ansi2knr, U may be empty or an underscore; expand it
 
534
    U=`sed -n 's/^U = //p' < "$mf"`
 
535
    # Find all dependency output files, they are included files with
 
536
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
537
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
538
    # expansion.
 
539
    for file in `sed -n "
 
540
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
541
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
542
      # Make sure the directory exists.
 
543
      test -f "$dirpart/$file" && continue
 
544
      fdir=`AS_DIRNAME(["$file"])`
 
545
      AS_MKDIR_P([$dirpart/$fdir])
 
546
      # echo "creating $dirpart/$file"
 
547
      echo '# dummy' > "$dirpart/$file"
 
548
    done
483
549
  done
484
 
done
 
550
}
485
551
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
486
552
 
487
553
 
512
578
 
513
579
# Do all the work for Automake.                             -*- Autoconf -*-
514
580
 
515
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
516
 
# Free Software Foundation, Inc.
 
581
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
582
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
517
583
#
518
584
# This file is free software; the Free Software Foundation
519
585
# gives unlimited permission to copy and/or distribute it,
520
586
# with or without modifications, as long as this notice is preserved.
521
587
 
522
 
# serial 12
 
588
# serial 16
523
589
 
524
590
# This macro actually does too much.  Some checks are only needed if
525
591
# your package does certain things.  But this isn't really a big deal.
536
602
# arguments mandatory, and then we can depend on a new Autoconf
537
603
# release and drop the old call support.
538
604
AC_DEFUN([AM_INIT_AUTOMAKE],
539
 
[AC_PREREQ([2.58])dnl
 
605
[AC_PREREQ([2.62])dnl
540
606
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
541
607
dnl the ones we care about.
542
608
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
543
609
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
544
610
AC_REQUIRE([AC_PROG_INSTALL])dnl
545
 
# test to see if srcdir already configured
546
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
547
 
   test -f $srcdir/config.status; then
548
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
611
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
612
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
613
  # is not polluted with repeated "-I."
 
614
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
615
  # test to see if srcdir already configured
 
616
  if test -f $srcdir/config.status; then
 
617
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
618
  fi
549
619
fi
550
620
 
551
621
# test whether we have cygpath
565
635
 AC_SUBST([PACKAGE], [$1])dnl
566
636
 AC_SUBST([VERSION], [$2])],
567
637
[_AM_SET_OPTIONS([$1])dnl
 
638
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
639
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
640
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
568
641
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
569
642
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
570
643
 
580
653
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
581
654
AM_MISSING_PROG(AUTOHEADER, autoheader)
582
655
AM_MISSING_PROG(MAKEINFO, makeinfo)
583
 
AM_PROG_INSTALL_SH
584
 
AM_PROG_INSTALL_STRIP
 
656
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
657
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
585
658
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
586
659
# We need awk for the "check" target.  The system "awk" is bad on
587
660
# some platforms.
589
662
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
590
663
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
591
664
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
592
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
593
 
                             [_AM_PROG_TAR([v7])])])
 
665
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
666
                             [_AM_PROG_TAR([v7])])])
594
667
_AM_IF_OPTION([no-dependencies],,
595
668
[AC_PROVIDE_IFELSE([AC_PROG_CC],
596
 
                  [_AM_DEPENDENCIES(CC)],
597
 
                  [define([AC_PROG_CC],
598
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
669
                  [_AM_DEPENDENCIES(CC)],
 
670
                  [define([AC_PROG_CC],
 
671
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
599
672
AC_PROVIDE_IFELSE([AC_PROG_CXX],
600
 
                  [_AM_DEPENDENCIES(CXX)],
601
 
                  [define([AC_PROG_CXX],
602
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
603
 
])
604
 
])
 
673
                  [_AM_DEPENDENCIES(CXX)],
 
674
                  [define([AC_PROG_CXX],
 
675
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
676
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
677
                  [_AM_DEPENDENCIES(OBJC)],
 
678
                  [define([AC_PROG_OBJC],
 
679
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
680
])
 
681
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
682
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
683
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
684
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
685
AC_CONFIG_COMMANDS_PRE(dnl
 
686
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
687
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
688
])
 
689
 
 
690
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
691
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
692
dnl mangled by Autoconf and run in a shell conditional statement.
 
693
m4_define([_AC_COMPILER_EXEEXT],
 
694
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
605
695
 
606
696
 
607
697
# When config.status generates a header, we must update the stamp-h file.
613
703
# our stamp files there.
614
704
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
615
705
[# Compute $1's index in $config_headers.
 
706
_am_arg=$1
616
707
_am_stamp_count=1
617
708
for _am_header in $config_headers :; do
618
709
  case $_am_header in
619
 
    $1 | $1:* )
 
710
    $_am_arg | $_am_arg:* )
620
711
      break ;;
621
712
    * )
622
713
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
623
714
  esac
624
715
done
625
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
716
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
626
717
 
627
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
718
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
628
719
#
629
720
# This file is free software; the Free Software Foundation
630
721
# gives unlimited permission to copy and/or distribute it,
635
726
# Define $install_sh.
636
727
AC_DEFUN([AM_PROG_INSTALL_SH],
637
728
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
638
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
729
if test x"${install_sh}" != xset; then
 
730
  case $am_aux_dir in
 
731
  *\ * | *\     *)
 
732
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
733
  *)
 
734
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
735
  esac
 
736
fi
639
737
AC_SUBST(install_sh)])
640
738
 
641
739
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
661
759
 
662
760
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
663
761
 
664
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
762
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
665
763
#
666
764
# This file is free software; the Free Software Foundation
667
765
# gives unlimited permission to copy and/or distribute it,
668
766
# with or without modifications, as long as this notice is preserved.
669
767
 
670
 
# serial 3
 
768
# serial 4
671
769
 
672
770
# AM_MAKE_INCLUDE()
673
771
# -----------------
676
774
[am_make=${MAKE-make}
677
775
cat > confinc << 'END'
678
776
am__doit:
679
 
        @echo done
 
777
        @echo this is the am__doit target
680
778
.PHONY: am__doit
681
779
END
682
780
# If we don't find an include directive, just comment out the code.
686
784
_am_result=none
687
785
# First try GNU make style include.
688
786
echo "include confinc" > confmf
689
 
# We grep out `Entering directory' and `Leaving directory'
690
 
# messages which can occur if `w' ends up in MAKEFLAGS.
691
 
# In particular we don't look at `^make:' because GNU make might
692
 
# be invoked under some other name (usually "gmake"), in which
693
 
# case it prints its new name instead of `make'.
694
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
695
 
   am__include=include
696
 
   am__quote=
697
 
   _am_result=GNU
698
 
fi
 
787
# Ignore all kinds of additional output from `make'.
 
788
case `$am_make -s -f confmf 2> /dev/null` in #(
 
789
*the\ am__doit\ target*)
 
790
  am__include=include
 
791
  am__quote=
 
792
  _am_result=GNU
 
793
  ;;
 
794
esac
699
795
# Now try BSD make style include.
700
796
if test "$am__include" = "#"; then
701
797
   echo '.include "confinc"' > confmf
702
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
703
 
      am__include=.include
704
 
      am__quote="\""
705
 
      _am_result=BSD
706
 
   fi
 
798
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
799
   *the\ am__doit\ target*)
 
800
     am__include=.include
 
801
     am__quote="\""
 
802
     _am_result=BSD
 
803
     ;;
 
804
   esac
707
805
fi
708
806
AC_SUBST([am__include])
709
807
AC_SUBST([am__quote])
713
811
 
714
812
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
715
813
 
716
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
814
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
717
815
# Free Software Foundation, Inc.
718
816
#
719
817
# This file is free software; the Free Software Foundation
720
818
# gives unlimited permission to copy and/or distribute it,
721
819
# with or without modifications, as long as this notice is preserved.
722
820
 
723
 
# serial 4
 
821
# serial 6
724
822
 
725
823
# AM_MISSING_PROG(NAME, PROGRAM)
726
824
# ------------------------------
736
834
# If it does, set am_missing_run to use it, otherwise, to nothing.
737
835
AC_DEFUN([AM_MISSING_HAS_RUN],
738
836
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
739
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
837
AC_REQUIRE_AUX_FILE([missing])dnl
 
838
if test x"${MISSING+set}" != xset; then
 
839
  case $am_aux_dir in
 
840
  *\ * | *\     *)
 
841
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
842
  *)
 
843
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
844
  esac
 
845
fi
740
846
# Use eval to expand $SHELL
741
847
if eval "$MISSING --run true"; then
742
848
  am_missing_run="$MISSING --run "
746
852
fi
747
853
])
748
854
 
749
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
855
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
750
856
#
751
857
# This file is free software; the Free Software Foundation
752
858
# gives unlimited permission to copy and/or distribute it,
754
860
 
755
861
# AM_PROG_MKDIR_P
756
862
# ---------------
757
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
758
 
#
759
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
760
 
# created by `make install' are always world readable, even if the
761
 
# installer happens to have an overly restrictive umask (e.g. 077).
762
 
# This was a mistake.  There are at least two reasons why we must not
763
 
# use `-m 0755':
764
 
#   - it causes special bits like SGID to be ignored,
765
 
#   - it may be too restrictive (some setups expect 775 directories).
766
 
#
767
 
# Do not use -m 0755 and let people choose whatever they expect by
768
 
# setting umask.
769
 
#
770
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
771
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
772
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
773
 
# concurrently, both version can detect that a/ is missing, but only
774
 
# one can create it and the other will error out.  Consequently we
775
 
# restrict ourselves to GNU make (using the --version option ensures
776
 
# this.)
 
863
# Check for `mkdir -p'.
777
864
AC_DEFUN([AM_PROG_MKDIR_P],
778
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
779
 
  # We used to keeping the `.' as first argument, in order to
780
 
  # allow $(mkdir_p) to be used without argument.  As in
781
 
  #   $(mkdir_p) $(somedir)
782
 
  # where $(somedir) is conditionally defined.  However this is wrong
783
 
  # for two reasons:
784
 
  #  1. if the package is installed by a user who cannot write `.'
785
 
  #     make install will fail,
786
 
  #  2. the above comment should most certainly read
787
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
788
 
  #     so it does not work when $(somedir) is undefined and
789
 
  #     $(DESTDIR) is not.
790
 
  #  To support the latter case, we have to write
791
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
792
 
  #  so the `.' trick is pointless.
793
 
  mkdir_p='mkdir -p --'
794
 
else
795
 
  # On NextStep and OpenStep, the `mkdir' command does not
796
 
  # recognize any option.  It will interpret all options as
797
 
  # directories to create, and then abort because `.' already
798
 
  # exists.
799
 
  for d in ./-p ./--version;
800
 
  do
801
 
    test -d $d && rmdir $d
802
 
  done
803
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
804
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
805
 
    mkdir_p='$(mkinstalldirs)'
806
 
  else
807
 
    mkdir_p='$(install_sh) -d'
808
 
  fi
809
 
fi
810
 
AC_SUBST([mkdir_p])])
 
865
[AC_PREREQ([2.60])dnl
 
866
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
867
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
868
dnl while keeping a definition of mkdir_p for backward compatibility.
 
869
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
870
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
871
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
872
dnl adjustment using top_builddir (which is defined more often than
 
873
dnl MKDIR_P).
 
874
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
875
case $mkdir_p in
 
876
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
877
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
878
esac
 
879
])
811
880
 
812
881
# Helper functions for option handling.                     -*- Autoconf -*-
813
882
 
814
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
883
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
815
884
#
816
885
# This file is free software; the Free Software Foundation
817
886
# gives unlimited permission to copy and/or distribute it,
818
887
# with or without modifications, as long as this notice is preserved.
819
888
 
820
 
# serial 3
 
889
# serial 4
821
890
 
822
891
# _AM_MANGLE_OPTION(NAME)
823
892
# -----------------------
834
903
# ----------------------------------
835
904
# OPTIONS is a space-separated list of Automake options.
836
905
AC_DEFUN([_AM_SET_OPTIONS],
837
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
906
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
838
907
 
839
908
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
840
909
# -------------------------------------------
844
913
 
845
914
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
846
915
 
847
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
916
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
848
917
# Free Software Foundation, Inc.
849
918
#
850
919
# This file is free software; the Free Software Foundation
851
920
# gives unlimited permission to copy and/or distribute it,
852
921
# with or without modifications, as long as this notice is preserved.
853
922
 
854
 
# serial 4
 
923
# serial 5
855
924
 
856
925
# AM_SANITY_CHECK
857
926
# ---------------
860
929
# Just in case
861
930
sleep 1
862
931
echo timestamp > conftest.file
 
932
# Reject unsafe characters in $srcdir or the absolute working directory
 
933
# name.  Accept space and tab only in the latter.
 
934
am_lf='
 
935
'
 
936
case `pwd` in
 
937
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
938
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
939
esac
 
940
case $srcdir in
 
941
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
942
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
943
esac
 
944
 
863
945
# Do `set' in a subshell so we don't clobber the current shell's
864
946
# arguments.  Must try -L first in case configure is actually a
865
947
# symlink; some systems play weird games with the mod time of symlinks
866
948
# (eg FreeBSD returns the mod time of the symlink's containing
867
949
# directory).
868
950
if (
869
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
951
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
870
952
   if test "$[*]" = "X"; then
871
953
      # -L didn't work.
872
 
      set X `ls -t $srcdir/configure conftest.file`
 
954
      set X `ls -t "$srcdir/configure" conftest.file`
873
955
   fi
874
956
   rm -f conftest.file
875
957
   if test "$[*]" != "X $srcdir/configure conftest.file" \
919
1001
if test "$cross_compiling" != no; then
920
1002
  AC_CHECK_TOOL([STRIP], [strip], :)
921
1003
fi
922
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1004
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
923
1005
AC_SUBST([INSTALL_STRIP_PROGRAM])])
924
1006
 
 
1007
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
1008
#
 
1009
# This file is free software; the Free Software Foundation
 
1010
# gives unlimited permission to copy and/or distribute it,
 
1011
# with or without modifications, as long as this notice is preserved.
 
1012
 
 
1013
# serial 2
 
1014
 
 
1015
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1016
# ---------------------------
 
1017
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
1018
# This macro is traced by Automake.
 
1019
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1020
 
 
1021
# AM_SUBST_NOTMAKE(VARIABLE)
 
1022
# ---------------------------
 
1023
# Public sister of _AM_SUBST_NOTMAKE.
 
1024
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1025
 
925
1026
# Check how to create a tarball.                            -*- Autoconf -*-
926
1027
 
927
1028
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.