~ubuntu-branches/ubuntu/trusty/kmod/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-10-24 06:16:30 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20131024061630-o87ipf2zxqtpigls
Tags: 15-0ubuntu1
* New upstream release. (See Debian #716739)
* Drop patches included upstream: dot_kcmdline, bad_alias_assertion,
  blacklist_aliased.
* Drop check_builtin_kver, this would only apply to lucid and is otherwise
  unnecessary.
* Drop --disable-shared/--enable-static, this got dropped in this version
  and isn't necessary any more. /bin/kmod does not dynamically link to
  libkmod by default now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.12.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.14 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
179
180
fi[]dnl
180
181
])# PKG_CHECK_MODULES
181
182
 
182
 
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
 
183
 
 
184
# PKG_INSTALLDIR(DIRECTORY)
 
185
# -------------------------
 
186
# Substitutes the variable pkgconfigdir as the location where a module
 
187
# should install pkg-config .pc files. By default the directory is
 
188
# $libdir/pkgconfig, but the default can be changed by passing
 
189
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
190
# parameter.
 
191
AC_DEFUN([PKG_INSTALLDIR],
 
192
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
193
m4_pushdef([pkg_description],
 
194
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
195
AC_ARG_WITH([pkgconfigdir],
 
196
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
197
    [with_pkgconfigdir=]pkg_default)
 
198
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
199
m4_popdef([pkg_default])
 
200
m4_popdef([pkg_description])
 
201
]) dnl PKG_INSTALLDIR
 
202
 
 
203
 
 
204
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
205
# -------------------------
 
206
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
207
# module should install arch-independent pkg-config .pc files. By
 
208
# default the directory is $datadir/pkgconfig, but the default can be
 
209
# changed by passing DIRECTORY. The user can override through the
 
210
# --with-noarch-pkgconfigdir parameter.
 
211
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
212
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
213
m4_pushdef([pkg_description],
 
214
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
215
AC_ARG_WITH([noarch-pkgconfigdir],
 
216
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
217
    [with_noarch_pkgconfigdir=]pkg_default)
 
218
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
219
m4_popdef([pkg_default])
 
220
m4_popdef([pkg_description])
 
221
]) dnl PKG_NOARCH_INSTALLDIR
 
222
 
 
223
 
 
224
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
225
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
226
# -------------------------------------------
 
227
# Retrieves the value of the pkg-config variable for the given module.
 
228
AC_DEFUN([PKG_CHECK_VAR],
 
229
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
230
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 
231
 
 
232
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 
233
AS_VAR_COPY([$1], [pkg_cv_][$1])
 
234
 
 
235
AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
236
])# PKG_CHECK_VAR
 
237
 
 
238
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
183
239
#
184
240
# This file is free software; the Free Software Foundation
185
241
# gives unlimited permission to copy and/or distribute it,
186
242
# with or without modifications, as long as this notice is preserved.
187
243
 
188
 
# serial 8
189
 
 
190
244
# AM_AUTOMAKE_VERSION(VERSION)
191
245
# ----------------------------
192
246
# Automake X.Y traces this macro to ensure aclocal.m4 has been
193
247
# generated from the m4 files accompanying Automake X.Y.
194
248
# (This private macro should not be called outside this file.)
195
249
AC_DEFUN([AM_AUTOMAKE_VERSION],
196
 
[am__api_version='1.12'
 
250
[am__api_version='1.14'
197
251
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
198
252
dnl require some minimum version.  Point them to the right macro.
199
 
m4_if([$1], [1.12.1], [],
 
253
m4_if([$1], [1.14], [],
200
254
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
201
255
])
202
256
 
212
266
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
213
267
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
214
268
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
215
 
[AM_AUTOMAKE_VERSION([1.12.1])dnl
 
269
[AM_AUTOMAKE_VERSION([1.14])dnl
216
270
m4_ifndef([AC_AUTOCONF_VERSION],
217
271
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
218
272
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
219
273
 
220
274
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
221
275
 
222
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
276
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
223
277
#
224
278
# This file is free software; the Free Software Foundation
225
279
# gives unlimited permission to copy and/or distribute it,
226
280
# with or without modifications, as long as this notice is preserved.
227
281
 
228
 
# serial 2
229
 
 
230
282
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
231
283
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
232
284
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
274
326
 
275
327
# AM_CONDITIONAL                                            -*- Autoconf -*-
276
328
 
277
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
329
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
278
330
#
279
331
# This file is free software; the Free Software Foundation
280
332
# gives unlimited permission to copy and/or distribute it,
281
333
# with or without modifications, as long as this notice is preserved.
282
334
 
283
 
# serial 10
284
 
 
285
335
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
286
336
# -------------------------------------
287
337
# Define a conditional.
307
357
Usually this means the macro was only invoked conditionally.]])
308
358
fi])])
309
359
 
310
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
360
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
311
361
#
312
362
# This file is free software; the Free Software Foundation
313
363
# gives unlimited permission to copy and/or distribute it,
314
364
# with or without modifications, as long as this notice is preserved.
315
365
 
316
 
# serial 17
317
366
 
318
367
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
319
368
# written in clear, in which case automake, when reading aclocal.m4,
499
548
 
500
549
# Generate code to set up dependency tracking.              -*- Autoconf -*-
501
550
 
502
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
551
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
503
552
#
504
553
# This file is free software; the Free Software Foundation
505
554
# gives unlimited permission to copy and/or distribute it,
506
555
# with or without modifications, as long as this notice is preserved.
507
556
 
508
 
# serial 6
509
557
 
510
558
# _AM_OUTPUT_DEPENDENCY_COMMANDS
511
559
# ------------------------------
512
560
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
513
561
[{
514
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
562
  # Older Autoconf quotes --file arguments for eval, but not when files
515
563
  # are listed without --file.  Let's play safe and only enable the eval
516
564
  # if we detect the quoting.
517
565
  case $CONFIG_FILES in
540
588
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
541
589
    test -z "$DEPDIR" && continue
542
590
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
543
 
    test -z "am__include" && continue
 
591
    test -z "$am__include" && continue
544
592
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
545
593
    # Find all dependency output files, they are included files with
546
594
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
576
624
 
577
625
# Do all the work for Automake.                             -*- Autoconf -*-
578
626
 
579
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
627
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
580
628
#
581
629
# This file is free software; the Free Software Foundation
582
630
# gives unlimited permission to copy and/or distribute it,
583
631
# with or without modifications, as long as this notice is preserved.
584
632
 
585
 
# serial 19
586
 
 
587
633
# This macro actually does too much.  Some checks are only needed if
588
634
# your package does certain things.  But this isn't really a big deal.
589
635
 
 
636
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
637
m4_define([AC_PROG_CC],
 
638
m4_defn([AC_PROG_CC])
 
639
[_AM_PROG_CC_C_O
 
640
])
 
641
 
590
642
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
591
643
# AM_INIT_AUTOMAKE([OPTIONS])
592
644
# -----------------------------------------------
599
651
# arguments mandatory, and then we can depend on a new Autoconf
600
652
# release and drop the old call support.
601
653
AC_DEFUN([AM_INIT_AUTOMAKE],
602
 
[AC_PREREQ([2.62])dnl
 
654
[AC_PREREQ([2.65])dnl
603
655
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
604
656
dnl the ones we care about.
605
657
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
629
681
dnl Distinguish between old-style and new-style calls.
630
682
m4_ifval([$2],
631
683
[AC_DIAGNOSE([obsolete],
632
 
[$0: two- and three-arguments forms are deprecated.  For more info, see:
633
 
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
684
             [$0: two- and three-arguments forms are deprecated.])
634
685
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
635
686
 AC_SUBST([PACKAGE], [$1])dnl
636
687
 AC_SUBST([VERSION], [$2])],
658
709
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
659
710
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
660
711
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
712
# For better backward compatibility.  To be removed once Automake 1.9.x
 
713
# dies out for good.  For more background, see:
 
714
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
715
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
716
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
661
717
# We need awk for the "check" target.  The system "awk" is bad on
662
718
# some platforms.
663
719
AC_REQUIRE([AC_PROG_AWK])dnl
679
735
                  [_AM_DEPENDENCIES([OBJC])],
680
736
                  [m4_define([AC_PROG_OBJC],
681
737
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
682
 
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
683
 
dnl but we still cater to Autoconf 2.62.
684
 
m4_ifdef([AC_PROG_OBJCXX],
685
 
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
738
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
686
739
                  [_AM_DEPENDENCIES([OBJCXX])],
687
740
                  [m4_define([AC_PROG_OBJCXX],
688
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
 
741
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
689
742
])
690
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
691
 
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
692
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
693
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
743
AC_REQUIRE([AM_SILENT_RULES])dnl
 
744
dnl The testsuite driver may need to know about EXEEXT, so add the
 
745
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
746
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
694
747
AC_CONFIG_COMMANDS_PRE(dnl
695
748
[m4_provide_if([_AM_COMPILER_EXEEXT],
696
749
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
697
 
])
 
750
 
 
751
# POSIX will say in a future version that running "rm -f" with no argument
 
752
# is OK; and we want to be able to make that assumption in our Makefile
 
753
# recipes.  So use an aggressive probe to check that the usage we want is
 
754
# actually supported "in the wild" to an acceptable degree.
 
755
# See automake bug#10828.
 
756
# To make any issue more visible, cause the running configure to be aborted
 
757
# by default if the 'rm' program in use doesn't match our expectations; the
 
758
# user can still override this though.
 
759
if rm -f && rm -fr && rm -rf; then : OK; else
 
760
  cat >&2 <<'END'
 
761
Oops!
 
762
 
 
763
Your 'rm' program seems unable to run without file operands specified
 
764
on the command line, even when the '-f' option is present.  This is contrary
 
765
to the behaviour of most rm programs out there, and not conforming with
 
766
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
767
 
 
768
Please tell bug-automake@gnu.org about your system, including the value
 
769
of your $PATH and any error possibly output before this message.  This
 
770
can help us improve future automake versions.
 
771
 
 
772
END
 
773
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
774
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
775
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
776
    echo >&2
 
777
  else
 
778
    cat >&2 <<'END'
 
779
Aborting the configuration process, to ensure you take notice of the issue.
 
780
 
 
781
You can download and install GNU coreutils to get an 'rm' implementation
 
782
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
783
 
 
784
If you want to complete the configuration process using your problematic
 
785
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
786
to "yes", and re-run configure.
 
787
 
 
788
END
 
789
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
790
  fi
 
791
fi])
698
792
 
699
793
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
700
794
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
702
796
m4_define([_AC_COMPILER_EXEEXT],
703
797
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
704
798
 
705
 
 
706
799
# When config.status generates a header, we must update the stamp-h file.
707
800
# This file resides in the same directory as the config header
708
801
# that is generated.  The stamp files are numbered to have different names.
724
817
done
725
818
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
726
819
 
727
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
820
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
728
821
#
729
822
# This file is free software; the Free Software Foundation
730
823
# gives unlimited permission to copy and/or distribute it,
731
824
# with or without modifications, as long as this notice is preserved.
732
825
 
733
 
# serial 8
734
 
 
735
826
# AM_PROG_INSTALL_SH
736
827
# ------------------
737
828
# Define $install_sh.
747
838
fi
748
839
AC_SUBST([install_sh])])
749
840
 
750
 
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
 
841
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
751
842
#
752
843
# This file is free software; the Free Software Foundation
753
844
# gives unlimited permission to copy and/or distribute it,
754
845
# with or without modifications, as long as this notice is preserved.
755
846
 
756
 
# serial 2
757
 
 
758
847
# Check whether the underlying file-system supports filenames
759
848
# with a leading dot.  For instance MS-DOS doesn't.
760
849
AC_DEFUN([AM_SET_LEADING_DOT],
770
859
 
771
860
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
772
861
 
773
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
862
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
774
863
#
775
864
# This file is free software; the Free Software Foundation
776
865
# gives unlimited permission to copy and/or distribute it,
777
866
# with or without modifications, as long as this notice is preserved.
778
867
 
779
 
# serial 5
780
 
 
781
868
# AM_MAKE_INCLUDE()
782
869
# -----------------
783
870
# Check to see how make treats includes.
820
907
rm -f confinc confmf
821
908
])
822
909
 
823
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
824
 
#
825
 
# This file is free software; the Free Software Foundation
826
 
# gives unlimited permission to copy and/or distribute it,
827
 
# with or without modifications, as long as this notice is preserved.
828
 
 
829
 
# serial 6
830
 
 
831
 
# AM_PROG_CC_C_O
832
 
# --------------
833
 
# Like AC_PROG_CC_C_O, but changed for automake.
834
 
AC_DEFUN([AM_PROG_CC_C_O],
835
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
836
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
837
 
AC_REQUIRE_AUX_FILE([compile])dnl
838
 
# FIXME: we rely on the cache variable name because
839
 
# there is no other way.
840
 
set dummy $CC
841
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
842
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
843
 
if test "$am_t" != yes; then
844
 
   # Losing compiler, so override with the script.
845
 
   # FIXME: It is wrong to rewrite CC.
846
 
   # But if we don't then we get into trouble of one sort or another.
847
 
   # A longer-term fix would be to have automake use am__CC in this case,
848
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
849
 
   CC="$am_aux_dir/compile $CC"
850
 
fi
851
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
852
 
dnl setting of CC.
853
 
m4_define([AC_PROG_CC],
854
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
855
 
])
856
 
 
857
910
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
858
911
 
859
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
912
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
860
913
#
861
914
# This file is free software; the Free Software Foundation
862
915
# gives unlimited permission to copy and/or distribute it,
863
916
# with or without modifications, as long as this notice is preserved.
864
917
 
865
 
# serial 7
866
 
 
867
918
# AM_MISSING_PROG(NAME, PROGRAM)
868
919
# ------------------------------
869
920
AC_DEFUN([AM_MISSING_PROG],
871
922
$1=${$1-"${am_missing_run}$2"}
872
923
AC_SUBST($1)])
873
924
 
874
 
 
875
925
# AM_MISSING_HAS_RUN
876
926
# ------------------
877
 
# Define MISSING if not defined so far and test if it supports --run.
878
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
927
# Define MISSING if not defined so far and test if it is modern enough.
 
928
# If it is, set am_missing_run to use it, otherwise, to nothing.
879
929
AC_DEFUN([AM_MISSING_HAS_RUN],
880
930
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
881
931
AC_REQUIRE_AUX_FILE([missing])dnl
888
938
  esac
889
939
fi
890
940
# Use eval to expand $SHELL
891
 
if eval "$MISSING --run true"; then
892
 
  am_missing_run="$MISSING --run "
 
941
if eval "$MISSING --is-lightweight"; then
 
942
  am_missing_run="$MISSING "
893
943
else
894
944
  am_missing_run=
895
945
  AC_MSG_WARN(['missing' script is too old or missing])
898
948
 
899
949
# Helper functions for option handling.                     -*- Autoconf -*-
900
950
 
901
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
951
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
902
952
#
903
953
# This file is free software; the Free Software Foundation
904
954
# gives unlimited permission to copy and/or distribute it,
905
955
# with or without modifications, as long as this notice is preserved.
906
956
 
907
 
# serial 6
908
 
 
909
957
# _AM_MANGLE_OPTION(NAME)
910
958
# -----------------------
911
959
AC_DEFUN([_AM_MANGLE_OPTION],
929
977
AC_DEFUN([_AM_IF_OPTION],
930
978
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
931
979
 
932
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
933
 
#
934
 
# This file is free software; the Free Software Foundation
935
 
# gives unlimited permission to copy and/or distribute it,
936
 
# with or without modifications, as long as this notice is preserved.
937
 
 
938
 
# serial 1
 
980
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
981
#
 
982
# This file is free software; the Free Software Foundation
 
983
# gives unlimited permission to copy and/or distribute it,
 
984
# with or without modifications, as long as this notice is preserved.
 
985
 
 
986
# _AM_PROG_CC_C_O
 
987
# ---------------
 
988
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 
989
# to automatically call this.
 
990
AC_DEFUN([_AM_PROG_CC_C_O],
 
991
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
992
AC_REQUIRE_AUX_FILE([compile])dnl
 
993
AC_LANG_PUSH([C])dnl
 
994
AC_CACHE_CHECK(
 
995
  [whether $CC understands -c and -o together],
 
996
  [am_cv_prog_cc_c_o],
 
997
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 
998
  # Make sure it works both with $CC and with simple cc.
 
999
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
1000
  # compilers refuse to overwrite an existing .o file with -o,
 
1001
  # though they will create one.
 
1002
  am_cv_prog_cc_c_o=yes
 
1003
  for am_i in 1 2; do
 
1004
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 
1005
         && test -f conftest2.$ac_objext; then
 
1006
      : OK
 
1007
    else
 
1008
      am_cv_prog_cc_c_o=no
 
1009
      break
 
1010
    fi
 
1011
  done
 
1012
  rm -f core conftest*
 
1013
  unset am_i])
 
1014
if test "$am_cv_prog_cc_c_o" != yes; then
 
1015
   # Losing compiler, so override with the script.
 
1016
   # FIXME: It is wrong to rewrite CC.
 
1017
   # But if we don't then we get into trouble of one sort or another.
 
1018
   # A longer-term fix would be to have automake use am__CC in this case,
 
1019
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1020
   CC="$am_aux_dir/compile $CC"
 
1021
fi
 
1022
AC_LANG_POP([C])])
 
1023
 
 
1024
# For backward compatibility.
 
1025
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
1026
 
 
1027
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1028
#
 
1029
# This file is free software; the Free Software Foundation
 
1030
# gives unlimited permission to copy and/or distribute it,
 
1031
# with or without modifications, as long as this notice is preserved.
939
1032
 
940
1033
# AM_RUN_LOG(COMMAND)
941
1034
# -------------------
950
1043
 
951
1044
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
952
1045
 
953
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
1046
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
954
1047
#
955
1048
# This file is free software; the Free Software Foundation
956
1049
# gives unlimited permission to copy and/or distribute it,
957
1050
# with or without modifications, as long as this notice is preserved.
958
1051
 
959
 
# serial 9
960
 
 
961
1052
# AM_SANITY_CHECK
962
1053
# ---------------
963
1054
AC_DEFUN([AM_SANITY_CHECK],
1033
1124
rm -f conftest.file
1034
1125
])
1035
1126
 
1036
 
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
 
1127
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1037
1128
#
1038
1129
# This file is free software; the Free Software Foundation
1039
1130
# gives unlimited permission to copy and/or distribute it,
1040
1131
# with or without modifications, as long as this notice is preserved.
1041
1132
 
1042
 
# serial 3
1043
 
 
1044
1133
# AM_SILENT_RULES([DEFAULT])
1045
1134
# --------------------------
1046
1135
# Enable less verbose build rules; with the default set to DEFAULT
1095
1184
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1096
1185
])
1097
1186
 
1098
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
1187
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1099
1188
#
1100
1189
# This file is free software; the Free Software Foundation
1101
1190
# gives unlimited permission to copy and/or distribute it,
1102
1191
# with or without modifications, as long as this notice is preserved.
1103
1192
 
1104
 
# serial 2
1105
 
 
1106
1193
# AM_PROG_INSTALL_STRIP
1107
1194
# ---------------------
1108
1195
# One issue with vendor 'install' (even GNU) is that you can't
1125
1212
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1126
1213
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1127
1214
 
1128
 
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
1215
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1129
1216
#
1130
1217
# This file is free software; the Free Software Foundation
1131
1218
# gives unlimited permission to copy and/or distribute it,
1132
1219
# with or without modifications, as long as this notice is preserved.
1133
1220
 
1134
 
# serial 3
1135
 
 
1136
1221
# _AM_SUBST_NOTMAKE(VARIABLE)
1137
1222
# ---------------------------
1138
1223
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1146
1231
 
1147
1232
# Check how to create a tarball.                            -*- Autoconf -*-
1148
1233
 
1149
 
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
1234
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1150
1235
#
1151
1236
# This file is free software; the Free Software Foundation
1152
1237
# gives unlimited permission to copy and/or distribute it,
1153
1238
# with or without modifications, as long as this notice is preserved.
1154
1239
 
1155
 
# serial 3
1156
 
 
1157
1240
# _AM_PROG_TAR(FORMAT)
1158
1241
# --------------------
1159
1242
# Check how to create a tarball in format FORMAT.
1167
1250
# Substitute a variable $(am__untar) that extract such
1168
1251
# a tarball read from stdin.
1169
1252
#     $(am__untar) < result.tar
 
1253
#
1170
1254
AC_DEFUN([_AM_PROG_TAR],
1171
1255
[# Always define AMTAR for backward compatibility.  Yes, it's still used
1172
1256
# in the wild :-(  We should find a proper way to deprecate it ...
1173
1257
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1258
 
 
1259
# We'll loop over all known methods to create a tar archive until one works.
 
1260
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1261
 
1174
1262
m4_if([$1], [v7],
1175
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1176
 
     [m4_case([$1], [ustar],, [pax],,
1177
 
              [m4_fatal([Unknown tar format])])
1178
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1179
 
# Loop over all known methods to create a tar archive until one works.
1180
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1181
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1182
 
# Do not fold the above two line into one, because Tru64 sh and
1183
 
# Solaris sh will not grok spaces in the rhs of '-'.
1184
 
for _am_tool in $_am_tools
1185
 
do
1186
 
  case $_am_tool in
1187
 
  gnutar)
1188
 
    for _am_tar in tar gnutar gtar;
1189
 
    do
1190
 
      AM_RUN_LOG([$_am_tar --version]) && break
1191
 
    done
1192
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1193
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1194
 
    am__untar="$_am_tar -xf -"
1195
 
    ;;
1196
 
  plaintar)
1197
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1198
 
    # ustar tarball either.
1199
 
    (tar --version) >/dev/null 2>&1 && continue
1200
 
    am__tar='tar chf - "$$tardir"'
1201
 
    am__tar_='tar chf - "$tardir"'
1202
 
    am__untar='tar xf -'
1203
 
    ;;
1204
 
  pax)
1205
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1206
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1207
 
    am__untar='pax -r'
1208
 
    ;;
1209
 
  cpio)
1210
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1211
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1212
 
    am__untar='cpio -i -H $1 -d'
1213
 
    ;;
1214
 
  none)
1215
 
    am__tar=false
1216
 
    am__tar_=false
1217
 
    am__untar=false
1218
 
    ;;
1219
 
  esac
1220
 
 
1221
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1222
 
  # and am__untar set.
1223
 
  test -n "${am_cv_prog_tar_$1}" && break
1224
 
 
1225
 
  # tar/untar a dummy directory, and stop if the command works
1226
 
  rm -rf conftest.dir
1227
 
  mkdir conftest.dir
1228
 
  echo GrepMe > conftest.dir/file
1229
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1230
 
  rm -rf conftest.dir
1231
 
  if test -s conftest.tar; then
1232
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1233
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1234
 
  fi
1235
 
done
1236
 
rm -rf conftest.dir
1237
 
 
1238
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1239
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1263
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1264
 
 
1265
  [m4_case([$1],
 
1266
    [ustar],
 
1267
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1268
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1269
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1270
      # and bug#13588).
 
1271
      am_max_uid=2097151 # 2^21 - 1
 
1272
      am_max_gid=$am_max_uid
 
1273
      # The $UID and $GID variables are not portable, so we need to resort
 
1274
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1275
      # below are definitely unexpected, so allow the users to see them
 
1276
      # (that is, avoid stderr redirection).
 
1277
      am_uid=`id -u || echo unknown`
 
1278
      am_gid=`id -g || echo unknown`
 
1279
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1280
      if test $am_uid -le $am_max_uid; then
 
1281
         AC_MSG_RESULT([yes])
 
1282
      else
 
1283
         AC_MSG_RESULT([no])
 
1284
         _am_tools=none
 
1285
      fi
 
1286
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1287
      if test $am_gid -le $am_max_gid; then
 
1288
         AC_MSG_RESULT([yes])
 
1289
      else
 
1290
        AC_MSG_RESULT([no])
 
1291
        _am_tools=none
 
1292
      fi],
 
1293
 
 
1294
  [pax],
 
1295
    [],
 
1296
 
 
1297
  [m4_fatal([Unknown tar format])])
 
1298
 
 
1299
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1300
 
 
1301
  # Go ahead even if we have the value already cached.  We do so because we
 
1302
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1303
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1304
 
 
1305
  for _am_tool in $_am_tools; do
 
1306
    case $_am_tool in
 
1307
    gnutar)
 
1308
      for _am_tar in tar gnutar gtar; do
 
1309
        AM_RUN_LOG([$_am_tar --version]) && break
 
1310
      done
 
1311
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1312
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1313
      am__untar="$_am_tar -xf -"
 
1314
      ;;
 
1315
    plaintar)
 
1316
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1317
      # ustar tarball either.
 
1318
      (tar --version) >/dev/null 2>&1 && continue
 
1319
      am__tar='tar chf - "$$tardir"'
 
1320
      am__tar_='tar chf - "$tardir"'
 
1321
      am__untar='tar xf -'
 
1322
      ;;
 
1323
    pax)
 
1324
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1325
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1326
      am__untar='pax -r'
 
1327
      ;;
 
1328
    cpio)
 
1329
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1330
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1331
      am__untar='cpio -i -H $1 -d'
 
1332
      ;;
 
1333
    none)
 
1334
      am__tar=false
 
1335
      am__tar_=false
 
1336
      am__untar=false
 
1337
      ;;
 
1338
    esac
 
1339
 
 
1340
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1341
    # and am__untar set.
 
1342
    test -n "${am_cv_prog_tar_$1}" && break
 
1343
 
 
1344
    # tar/untar a dummy directory, and stop if the command works.
 
1345
    rm -rf conftest.dir
 
1346
    mkdir conftest.dir
 
1347
    echo GrepMe > conftest.dir/file
 
1348
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1349
    rm -rf conftest.dir
 
1350
    if test -s conftest.tar; then
 
1351
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1352
      AM_RUN_LOG([cat conftest.dir/file])
 
1353
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1354
    fi
 
1355
  done
 
1356
  rm -rf conftest.dir
 
1357
 
 
1358
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1359
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1360
 
1240
1361
AC_SUBST([am__tar])
1241
1362
AC_SUBST([am__untar])
1242
1363
]) # _AM_PROG_TAR