~ubuntu-branches/ubuntu/precise/gpp4/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2011-01-11 13:47:36 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110111134736-2blfcoz9uoknpic7
Tags: 1.3.0-0ubuntu1
* New upstream release 1.3.0
* debian/control: Add ${misc:Depends}, bump standards-version
* Patched to address various compiler warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- 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, 2006, 2007, 2008  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.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
 
[m4_warning([this file was generated for autoconf 2.63.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
 
17
[m4_warning([this file was generated for autoconf 2.65.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
189
189
# generated from the m4 files accompanying Automake X.Y.
190
190
# (This private macro should not be called outside this file.)
191
191
AC_DEFUN([AM_AUTOMAKE_VERSION],
192
 
[am__api_version='1.10'
 
192
[am__api_version='1.11'
193
193
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
194
194
dnl require some minimum version.  Point them to the right macro.
195
 
m4_if([$1], [1.10.2], [],
 
195
m4_if([$1], [1.11.1], [],
196
196
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
197
197
])
198
198
 
208
208
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
209
209
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
210
210
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
211
 
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
211
[AM_AUTOMAKE_VERSION([1.11.1])dnl
212
212
m4_ifndef([AC_AUTOCONF_VERSION],
213
213
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
214
214
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
268
268
 
269
269
# AM_CONDITIONAL                                            -*- Autoconf -*-
270
270
 
271
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
271
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
272
272
# Free Software Foundation, Inc.
273
273
#
274
274
# This file is free software; the Free Software Foundation
275
275
# gives unlimited permission to copy and/or distribute it,
276
276
# with or without modifications, as long as this notice is preserved.
277
277
 
278
 
# serial 8
 
278
# serial 9
279
279
 
280
280
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
281
281
# -------------------------------------
288
288
AC_SUBST([$1_FALSE])dnl
289
289
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
290
290
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
291
m4_define([_AM_COND_VALUE_$1], [$2])dnl
291
292
if $2; then
292
293
  $1_TRUE=
293
294
  $1_FALSE='#'
301
302
Usually this means the macro was only invoked conditionally.]])
302
303
fi])])
303
304
 
304
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
305
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
305
306
# Free Software Foundation, Inc.
306
307
#
307
308
# This file is free software; the Free Software Foundation
308
309
# gives unlimited permission to copy and/or distribute it,
309
310
# with or without modifications, as long as this notice is preserved.
310
311
 
311
 
# serial 9
 
312
# serial 10
312
313
 
313
314
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
314
315
# written in clear, in which case automake, when reading aclocal.m4,
365
366
  if test "$am_compiler_list" = ""; then
366
367
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
367
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
 
368
379
  for depmode in $am_compiler_list; do
369
380
    # Setup a source with many dependencies, because some compilers
370
381
    # like to wrap large dependency lists on column 80 (with \), and
382
393
    done
383
394
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
384
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"
385
402
    case $depmode in
 
403
    gcc)
 
404
      # This depmode causes a compiler race in universal mode.
 
405
      test "$am__universal" = false || continue
 
406
      ;;
386
407
    nosideeffect)
387
408
      # after this tag, mechanisms are not by side-effect, so they'll
388
409
      # only be used when explicitly requested
392
413
        break
393
414
      fi
394
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
      ;;
395
423
    none) break ;;
396
424
    esac
397
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
398
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
399
 
    # handle `-M -o', and we need to detect this.
400
425
    if depmode=$depmode \
401
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
426
       source=sub/conftest.c object=$am__obj \
402
427
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
403
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
428
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
404
429
         >/dev/null 2>conftest.err &&
405
430
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
406
431
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
407
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
432
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
408
433
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
409
434
      # icc doesn't choke on unknown options, it will just issue warnings
410
435
      # or remarks (even with -Werror).  So we grep stderr for any message
542
567
# Do all the work for Automake.                             -*- Autoconf -*-
543
568
 
544
569
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
545
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
570
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
546
571
#
547
572
# This file is free software; the Free Software Foundation
548
573
# gives unlimited permission to copy and/or distribute it,
549
574
# with or without modifications, as long as this notice is preserved.
550
575
 
551
 
# serial 13
 
576
# serial 16
552
577
 
553
578
# This macro actually does too much.  Some checks are only needed if
554
579
# your package does certain things.  But this isn't really a big deal.
565
590
# arguments mandatory, and then we can depend on a new Autoconf
566
591
# release and drop the old call support.
567
592
AC_DEFUN([AM_INIT_AUTOMAKE],
568
 
[AC_PREREQ([2.60])dnl
 
593
[AC_PREREQ([2.62])dnl
569
594
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
570
595
dnl the ones we care about.
571
596
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
616
641
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
617
642
AM_MISSING_PROG(AUTOHEADER, autoheader)
618
643
AM_MISSING_PROG(MAKEINFO, makeinfo)
619
 
AM_PROG_INSTALL_SH
620
 
AM_PROG_INSTALL_STRIP
 
644
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
645
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
621
646
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
622
647
# We need awk for the "check" target.  The system "awk" is bad on
623
648
# some platforms.
625
650
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
626
651
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
627
652
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
628
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
629
 
                             [_AM_PROG_TAR([v7])])])
 
653
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
654
                             [_AM_PROG_TAR([v7])])])
630
655
_AM_IF_OPTION([no-dependencies],,
631
656
[AC_PROVIDE_IFELSE([AC_PROG_CC],
632
 
                  [_AM_DEPENDENCIES(CC)],
633
 
                  [define([AC_PROG_CC],
634
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
657
                  [_AM_DEPENDENCIES(CC)],
 
658
                  [define([AC_PROG_CC],
 
659
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
635
660
AC_PROVIDE_IFELSE([AC_PROG_CXX],
636
 
                  [_AM_DEPENDENCIES(CXX)],
637
 
                  [define([AC_PROG_CXX],
638
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
661
                  [_AM_DEPENDENCIES(CXX)],
 
662
                  [define([AC_PROG_CXX],
 
663
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
639
664
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
640
 
                  [_AM_DEPENDENCIES(OBJC)],
641
 
                  [define([AC_PROG_OBJC],
642
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
643
 
])
644
 
])
 
665
                  [_AM_DEPENDENCIES(OBJC)],
 
666
                  [define([AC_PROG_OBJC],
 
667
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
668
])
 
669
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
670
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
671
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
672
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
673
AC_CONFIG_COMMANDS_PRE(dnl
 
674
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
675
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
676
])
 
677
 
 
678
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
679
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
680
dnl mangled by Autoconf and run in a shell conditional statement.
 
681
m4_define([_AC_COMPILER_EXEEXT],
 
682
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
645
683
 
646
684
 
647
685
# When config.status generates a header, we must update the stamp-h file.
665
703
done
666
704
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
667
705
 
668
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
706
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
669
707
#
670
708
# This file is free software; the Free Software Foundation
671
709
# gives unlimited permission to copy and/or distribute it,
676
714
# Define $install_sh.
677
715
AC_DEFUN([AM_PROG_INSTALL_SH],
678
716
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
679
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
717
if test x"${install_sh}" != xset; then
 
718
  case $am_aux_dir in
 
719
  *\ * | *\     *)
 
720
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
721
  *)
 
722
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
723
  esac
 
724
fi
680
725
AC_SUBST(install_sh)])
681
726
 
682
727
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
702
747
 
703
748
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
704
749
 
705
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
750
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
706
751
#
707
752
# This file is free software; the Free Software Foundation
708
753
# gives unlimited permission to copy and/or distribute it,
709
754
# with or without modifications, as long as this notice is preserved.
710
755
 
711
 
# serial 3
 
756
# serial 4
712
757
 
713
758
# AM_MAKE_INCLUDE()
714
759
# -----------------
717
762
[am_make=${MAKE-make}
718
763
cat > confinc << 'END'
719
764
am__doit:
720
 
        @echo done
 
765
        @echo this is the am__doit target
721
766
.PHONY: am__doit
722
767
END
723
768
# If we don't find an include directive, just comment out the code.
727
772
_am_result=none
728
773
# First try GNU make style include.
729
774
echo "include confinc" > confmf
730
 
# We grep out `Entering directory' and `Leaving directory'
731
 
# messages which can occur if `w' ends up in MAKEFLAGS.
732
 
# In particular we don't look at `^make:' because GNU make might
733
 
# be invoked under some other name (usually "gmake"), in which
734
 
# case it prints its new name instead of `make'.
735
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
736
 
   am__include=include
737
 
   am__quote=
738
 
   _am_result=GNU
739
 
fi
 
775
# Ignore all kinds of additional output from `make'.
 
776
case `$am_make -s -f confmf 2> /dev/null` in #(
 
777
*the\ am__doit\ target*)
 
778
  am__include=include
 
779
  am__quote=
 
780
  _am_result=GNU
 
781
  ;;
 
782
esac
740
783
# Now try BSD make style include.
741
784
if test "$am__include" = "#"; then
742
785
   echo '.include "confinc"' > confmf
743
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
744
 
      am__include=.include
745
 
      am__quote="\""
746
 
      _am_result=BSD
747
 
   fi
 
786
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
787
   *the\ am__doit\ target*)
 
788
     am__include=.include
 
789
     am__quote="\""
 
790
     _am_result=BSD
 
791
     ;;
 
792
   esac
748
793
fi
749
794
AC_SUBST([am__include])
750
795
AC_SUBST([am__quote])
754
799
 
755
800
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
756
801
 
757
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
802
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
758
803
# Free Software Foundation, Inc.
759
804
#
760
805
# This file is free software; the Free Software Foundation
761
806
# gives unlimited permission to copy and/or distribute it,
762
807
# with or without modifications, as long as this notice is preserved.
763
808
 
764
 
# serial 5
 
809
# serial 6
765
810
 
766
811
# AM_MISSING_PROG(NAME, PROGRAM)
767
812
# ------------------------------
778
823
AC_DEFUN([AM_MISSING_HAS_RUN],
779
824
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
780
825
AC_REQUIRE_AUX_FILE([missing])dnl
781
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
826
if test x"${MISSING+set}" != xset; then
 
827
  case $am_aux_dir in
 
828
  *\ * | *\     *)
 
829
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
830
  *)
 
831
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
832
  esac
 
833
fi
782
834
# Use eval to expand $SHELL
783
835
if eval "$MISSING --run true"; then
784
836
  am_missing_run="$MISSING --run "
849
901
 
850
902
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
851
903
 
852
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
904
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
853
905
# Free Software Foundation, Inc.
854
906
#
855
907
# This file is free software; the Free Software Foundation
856
908
# gives unlimited permission to copy and/or distribute it,
857
909
# with or without modifications, as long as this notice is preserved.
858
910
 
859
 
# serial 4
 
911
# serial 5
860
912
 
861
913
# AM_SANITY_CHECK
862
914
# ---------------
865
917
# Just in case
866
918
sleep 1
867
919
echo timestamp > conftest.file
 
920
# Reject unsafe characters in $srcdir or the absolute working directory
 
921
# name.  Accept space and tab only in the latter.
 
922
am_lf='
 
923
'
 
924
case `pwd` in
 
925
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
926
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
927
esac
 
928
case $srcdir in
 
929
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
930
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
931
esac
 
932
 
868
933
# Do `set' in a subshell so we don't clobber the current shell's
869
934
# arguments.  Must try -L first in case configure is actually a
870
935
# symlink; some systems play weird games with the mod time of symlinks
871
936
# (eg FreeBSD returns the mod time of the symlink's containing
872
937
# directory).
873
938
if (
874
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
939
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
875
940
   if test "$[*]" = "X"; then
876
941
      # -L didn't work.
877
 
      set X `ls -t $srcdir/configure conftest.file`
 
942
      set X `ls -t "$srcdir/configure" conftest.file`
878
943
   fi
879
944
   rm -f conftest.file
880
945
   if test "$[*]" != "X $srcdir/configure conftest.file" \
927
992
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
928
993
AC_SUBST([INSTALL_STRIP_PROGRAM])])
929
994
 
930
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
995
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
931
996
#
932
997
# This file is free software; the Free Software Foundation
933
998
# gives unlimited permission to copy and/or distribute it,
934
999
# with or without modifications, as long as this notice is preserved.
935
1000
 
 
1001
# serial 2
 
1002
 
936
1003
# _AM_SUBST_NOTMAKE(VARIABLE)
937
1004
# ---------------------------
938
1005
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
939
1006
# This macro is traced by Automake.
940
1007
AC_DEFUN([_AM_SUBST_NOTMAKE])
941
1008
 
 
1009
# AM_SUBST_NOTMAKE(VARIABLE)
 
1010
# ---------------------------
 
1011
# Public sister of _AM_SUBST_NOTMAKE.
 
1012
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1013
 
942
1014
# Check how to create a tarball.                            -*- Autoconf -*-
943
1015
 
944
1016
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.