annotate aclocal.m4 @ 429:5593964ec779

Added route conditions based on the From header New route config directives: allowed_from_hdrs, denied_from_hdrs. This feature was motivated by Philipp Takacs <philipp29@t-online.de>.
author markus schnalke <meillo@marmaro.de>
date Thu, 20 Nov 2014 20:36:20 +0100
parents d209b4846f2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
2
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
5 # This file is free software; the Free Software Foundation
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
6 # gives unlimited permission to copy and/or distribute it,
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
7 # with or without modifications, as long as this notice is preserved.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
8
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
12 # PARTICULAR PURPOSE.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
13
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
14 m4_ifndef([AC_AUTOCONF_VERSION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
339
e6864daf89f4 removed -dev postfix on version number
markus schnalke <meillo@marmaro.de>
parents: 296
diff changeset
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
e6864daf89f4 removed -dev postfix on version number
markus schnalke <meillo@marmaro.de>
parents: 296
diff changeset
17 [m4_warning([this file was generated for autoconf 2.68.
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
18 You have another version of autoconf. It may work, but is not guaranteed to.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
19 If you have problems, you may need to regenerate the build system entirely.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
21
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
22 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
23 # serial 1 (pkg-config-0.24)
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
24 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
25 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
26 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
27 # This program is free software; you can redistribute it and/or modify
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
28 # it under the terms of the GNU General Public License as published by
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
29 # the Free Software Foundation; either version 2 of the License, or
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
30 # (at your option) any later version.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
31 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
32 # This program is distributed in the hope that it will be useful, but
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
33 # WITHOUT ANY WARRANTY; without even the implied warranty of
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
35 # General Public License for more details.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
36 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
37 # You should have received a copy of the GNU General Public License
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
38 # along with this program; if not, write to the Free Software
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
39 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
40 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
41 # As a special exception to the GNU General Public License, if you
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
42 # distribute this file as part of a program that contains a
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
43 # configuration script generated by Autoconf, you may include it under
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
44 # the same distribution terms that you use for the rest of that program.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
45
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
46 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
47 # ----------------------------------
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
48 AC_DEFUN([PKG_PROG_PKG_CONFIG],
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
49 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
419
d209b4846f2b The pid files goes to /var/run/masqmail.pid now. Added --with-piddir.
markus schnalke <meillo@marmaro.de>
parents: 339
diff changeset
50 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
d209b4846f2b The pid files goes to /var/run/masqmail.pid now. Added --with-piddir.
markus schnalke <meillo@marmaro.de>
parents: 339
diff changeset
51 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
52 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
53 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
54 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
55
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
56 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
57 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
58 fi
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
59 if test -n "$PKG_CONFIG"; then
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
60 _pkg_min_version=m4_default([$1], [0.9.0])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
61 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
62 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
63 AC_MSG_RESULT([yes])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
64 else
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
65 AC_MSG_RESULT([no])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
66 PKG_CONFIG=""
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
67 fi
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
68 fi[]dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
69 ])# PKG_PROG_PKG_CONFIG
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
70
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
71 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
72 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
73 # Check to see whether a particular set of modules exists. Similar
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
74 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
75 #
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
76 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
77 # only at the first occurence in configure.ac, so if the first place
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
78 # it's called might be skipped (such as if it is within an "if", you
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
79 # have to call PKG_CHECK_EXISTS manually
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
80 # --------------------------------------------------------------
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
81 AC_DEFUN([PKG_CHECK_EXISTS],
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
82 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
83 if test -n "$PKG_CONFIG" && \
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
84 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
85 m4_default([$2], [:])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
86 m4_ifvaln([$3], [else
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
87 $3])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
88 fi])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
89
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
90 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
91 # ---------------------------------------------
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
92 m4_define([_PKG_CONFIG],
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
93 [if test -n "$$1"; then
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
94 pkg_cv_[]$1="$$1"
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
95 elif test -n "$PKG_CONFIG"; then
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
96 PKG_CHECK_EXISTS([$3],
419
d209b4846f2b The pid files goes to /var/run/masqmail.pid now. Added --with-piddir.
markus schnalke <meillo@marmaro.de>
parents: 339
diff changeset
97 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
d209b4846f2b The pid files goes to /var/run/masqmail.pid now. Added --with-piddir.
markus schnalke <meillo@marmaro.de>
parents: 339
diff changeset
98 test "x$?" != "x0" && pkg_failed=yes ],
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
99 [pkg_failed=yes])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
100 else
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
101 pkg_failed=untried
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
102 fi[]dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
103 ])# _PKG_CONFIG
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
104
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
105 # _PKG_SHORT_ERRORS_SUPPORTED
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
106 # -----------------------------
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
107 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
108 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
110 _pkg_short_errors_supported=yes
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
111 else
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
112 _pkg_short_errors_supported=no
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
113 fi[]dnl
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
114 ])# _PKG_SHORT_ERRORS_SUPPORTED
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
115
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
116
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
117 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
118 # [ACTION-IF-NOT-FOUND])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
119 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
120 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
121 # Note that if there is a possibility the first call to
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
122 # PKG_CHECK_MODULES might not happen, you should be sure to include an
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
123 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
124 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
125 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
126 # --------------------------------------------------------------
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
127 AC_DEFUN([PKG_CHECK_MODULES],
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
128 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
129 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
130 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
131
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
132 pkg_failed=no
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
133 AC_MSG_CHECKING([for $1])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
134
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
135 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
136 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
137
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
138 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
139 and $1[]_LIBS to avoid the need to call pkg-config.
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
140 See the pkg-config man page for more details.])
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
141
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
142 if test $pkg_failed = yes; then
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
143 AC_MSG_RESULT([no])
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
144 _PKG_SHORT_ERRORS_SUPPORTED
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
145 if test $_pkg_short_errors_supported = yes; then
419
d209b4846f2b The pid files goes to /var/run/masqmail.pid now. Added --with-piddir.
markus schnalke <meillo@marmaro.de>
parents: 339
diff changeset
146 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
147 else
419
d209b4846f2b The pid files goes to /var/run/masqmail.pid now. Added --with-piddir.
markus schnalke <meillo@marmaro.de>
parents: 339
diff changeset
148 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
149 fi
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
150 # Put the nasty error message in config.log where it belongs
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
151 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
152
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
153 m4_default([$4], [AC_MSG_ERROR(
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
154 [Package requirements ($2) were not met:
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
155
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
156 $$1_PKG_ERRORS
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
157
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
159 installed software in a non-standard prefix.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
160
296
e3e1a030c703 ran aclocal and autoconf
markus schnalke <meillo@marmaro.de>
parents: 52
diff changeset
161 _PKG_TEXT])[]dnl
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
162 ])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
163 elif test $pkg_failed = untried; then
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
164 AC_MSG_RESULT([no])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
165 m4_default([$4], [AC_MSG_FAILURE(
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
166 [The pkg-config script could not be found or is too old. Make sure it
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
167 is in your PATH or set the PKG_CONFIG environment variable to the full
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
168 path to pkg-config.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
169
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
170 _PKG_TEXT
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
171
296
e3e1a030c703 ran aclocal and autoconf
markus schnalke <meillo@marmaro.de>
parents: 52
diff changeset
172 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
173 ])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
174 else
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
175 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
176 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
177 AC_MSG_RESULT([yes])
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
178 $3
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
179 fi[]dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
180 ])# PKG_CHECK_MODULES
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
181
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
182 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
183 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
184 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
185 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
186 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
187
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
188 # AM_AUTOMAKE_VERSION(VERSION)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
189 # ----------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
190 # Automake X.Y traces this macro to ensure aclocal.m4 has been
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
191 # generated from the m4 files accompanying Automake X.Y.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
192 # (This private macro should not be called outside this file.)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
193 AC_DEFUN([AM_AUTOMAKE_VERSION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
194 [am__api_version='1.11'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
195 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
196 dnl require some minimum version. Point them to the right macro.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
197 m4_if([$1], [1.11.1], [],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
198 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
199 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
200
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
201 # _AM_AUTOCONF_VERSION(VERSION)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
202 # -----------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
203 # aclocal traces this macro to find the Autoconf version.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
204 # This is a private macro too. Using m4_define simplifies
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
205 # the logic in aclocal, which can simply ignore this definition.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
206 m4_define([_AM_AUTOCONF_VERSION], [])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
207
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
208 # AM_SET_CURRENT_AUTOMAKE_VERSION
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
209 # -------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
210 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
211 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
212 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
213 [AM_AUTOMAKE_VERSION([1.11.1])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
214 m4_ifndef([AC_AUTOCONF_VERSION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
215 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
216 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
217
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
218 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
219
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
220 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
221 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
222 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
223 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
224 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
225
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
226 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
227 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
228 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
229 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
230 # Of course, Automake must honor this variable whenever it calls a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
231 # tool from the auxiliary directory. The problem is that $srcdir (and
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
232 # therefore $ac_aux_dir as well) can be either absolute or relative,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
233 # depending on how configure is run. This is pretty annoying, since
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
234 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
235 # source directory, any form will work fine, but in subdirectories a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
236 # relative path needs to be adjusted first.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
237 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
238 # $ac_aux_dir/missing
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
239 # fails when called from a subdirectory if $ac_aux_dir is relative
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
240 # $top_srcdir/$ac_aux_dir/missing
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
241 # fails if $ac_aux_dir is absolute,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
242 # fails when called from a subdirectory in a VPATH build with
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
243 # a relative $ac_aux_dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
244 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
245 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
246 # are both prefixed by $srcdir. In an in-source build this is usually
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
247 # harmless because $srcdir is `.', but things will broke when you
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
248 # start a VPATH build or use an absolute $srcdir.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
249 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
250 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
251 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
252 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
253 # and then we would define $MISSING as
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
254 # MISSING="\${SHELL} $am_aux_dir/missing"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
255 # This will work as long as MISSING is not called from configure, because
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
256 # unfortunately $(top_srcdir) has no meaning in configure.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
257 # However there are other variables, like CC, which are often used in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
258 # configure, and could therefore not use this "fixed" $ac_aux_dir.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
259 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
260 # Another solution, used here, is to always expand $ac_aux_dir to an
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
261 # absolute PATH. The drawback is that using absolute paths prevent a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
262 # configured tree to be moved without reconfiguration.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
263
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
264 AC_DEFUN([AM_AUX_DIR_EXPAND],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
265 [dnl Rely on autoconf to set up CDPATH properly.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
266 AC_PREREQ([2.50])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
267 # expand $ac_aux_dir to an absolute path
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
268 am_aux_dir=`cd $ac_aux_dir && pwd`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
269 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
270
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
271 # AM_CONDITIONAL -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
272
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
273 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
274 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
275 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
276 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
277 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
278 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
279
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
280 # serial 9
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
281
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
282 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
283 # -------------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
284 # Define a conditional.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
285 AC_DEFUN([AM_CONDITIONAL],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
286 [AC_PREREQ(2.52)dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
287 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
288 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
289 AC_SUBST([$1_TRUE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
290 AC_SUBST([$1_FALSE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
291 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
292 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
293 m4_define([_AM_COND_VALUE_$1], [$2])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
294 if $2; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
295 $1_TRUE=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
296 $1_FALSE='#'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
297 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
298 $1_TRUE='#'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
299 $1_FALSE=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
300 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
301 AC_CONFIG_COMMANDS_PRE(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
302 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
303 AC_MSG_ERROR([[conditional "$1" was never defined.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
304 Usually this means the macro was only invoked conditionally.]])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
305 fi])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
306
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
307 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
308 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
309 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
310 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
311 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
312 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
313
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
314 # serial 10
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
315
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
316 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
317 # written in clear, in which case automake, when reading aclocal.m4,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
318 # will think it sees a *use*, and therefore will trigger all it's
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
319 # C support machinery. Also note that it means that autoscan, seeing
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
320 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
321
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
322
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
323 # _AM_DEPENDENCIES(NAME)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
324 # ----------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
325 # See how the compiler implements dependency checking.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
326 # NAME is "CC", "CXX", "GCJ", or "OBJC".
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
327 # We try a few techniques and use that to set a single cache variable.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
328 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
329 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
330 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
331 # dependency, and given that the user is not expected to run this macro,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
332 # just rely on AC_PROG_CC.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
333 AC_DEFUN([_AM_DEPENDENCIES],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
334 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
335 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
336 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
337 AC_REQUIRE([AM_DEP_TRACK])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
338
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
339 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
340 [$1], CXX, [depcc="$CXX" am_compiler_list=],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
341 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
342 [$1], UPC, [depcc="$UPC" am_compiler_list=],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
343 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
344 [depcc="$$1" am_compiler_list=])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
345
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
346 AC_CACHE_CHECK([dependency style of $depcc],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
347 [am_cv_$1_dependencies_compiler_type],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
348 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
349 # We make a subdir and do the tests there. Otherwise we can end up
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
350 # making bogus files that we don't know about and never remove. For
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
351 # instance it was reported that on HP-UX the gcc test will end up
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
352 # making a dummy file named `D' -- because `-MD' means `put the output
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
353 # in D'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
354 mkdir conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
355 # Copy depcomp to subdir because otherwise we won't find it if we're
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
356 # using a relative directory.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
357 cp "$am_depcomp" conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
358 cd conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
359 # We will build objects and dependencies in a subdirectory because
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
360 # it helps to detect inapplicable dependency modes. For instance
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
361 # both Tru64's cc and ICC support -MD to output dependencies as a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
362 # side effect of compilation, but ICC will put the dependencies in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
363 # the current directory while Tru64 will put them in the object
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
364 # directory.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
365 mkdir sub
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
366
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
367 am_cv_$1_dependencies_compiler_type=none
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
368 if test "$am_compiler_list" = ""; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
369 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
370 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
371 am__universal=false
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
372 m4_case([$1], [CC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
373 [case " $depcc " in #(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
375 esac],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
376 [CXX],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
377 [case " $depcc " in #(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
378 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
379 esac])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
380
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
381 for depmode in $am_compiler_list; do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
382 # Setup a source with many dependencies, because some compilers
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
383 # like to wrap large dependency lists on column 80 (with \), and
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
384 # we should not choose a depcomp mode which is confused by this.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
385 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
386 # We need to recreate these files for each test, as the compiler may
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
387 # overwrite some of them when testing with obscure command lines.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
388 # This happens at least with the AIX C compiler.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
389 : > sub/conftest.c
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
390 for i in 1 2 3 4 5 6; do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
391 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
392 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
393 # Solaris 8's {/usr,}/bin/sh.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
394 touch sub/conftst$i.h
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
395 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
396 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
397
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
398 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
399 # mode. It turns out that the SunPro C++ compiler does not properly
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
400 # handle `-M -o', and we need to detect this. Also, some Intel
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
401 # versions had trouble with output in subdirs
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
402 am__obj=sub/conftest.${OBJEXT-o}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
403 am__minus_obj="-o $am__obj"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
404 case $depmode in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
405 gcc)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
406 # This depmode causes a compiler race in universal mode.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
407 test "$am__universal" = false || continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
408 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
409 nosideeffect)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
410 # after this tag, mechanisms are not by side-effect, so they'll
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
411 # only be used when explicitly requested
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
412 if test "x$enable_dependency_tracking" = xyes; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
413 continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
414 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
415 break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
416 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
417 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
418 msvisualcpp | msvcmsys)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
419 # This compiler won't grok `-c -o', but also, the minuso test has
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
420 # not run yet. These depmodes are late enough in the game, and
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
421 # so weak that their functioning should not be impacted.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
422 am__obj=conftest.${OBJEXT-o}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
423 am__minus_obj=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
424 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
425 none) break ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
426 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
427 if depmode=$depmode \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
428 source=sub/conftest.c object=$am__obj \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
429 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
430 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
431 >/dev/null 2>conftest.err &&
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
432 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
434 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
436 # icc doesn't choke on unknown options, it will just issue warnings
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
437 # or remarks (even with -Werror). So we grep stderr for any message
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
438 # that says an option was ignored or not supported.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
439 # When given -MP, icc 7.0 and 7.1 complain thusly:
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
440 # icc: Command line warning: ignoring option '-M'; no argument required
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
441 # The diagnosis changed in icc 8.0:
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
442 # icc: Command line remark: option '-MP' not supported
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
443 if (grep 'ignoring option' conftest.err ||
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
445 am_cv_$1_dependencies_compiler_type=$depmode
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
446 break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
447 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
448 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
449 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
450
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
451 cd ..
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
452 rm -rf conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
453 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
454 am_cv_$1_dependencies_compiler_type=none
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
455 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
456 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
457 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
458 AM_CONDITIONAL([am__fastdep$1], [
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
459 test "x$enable_dependency_tracking" != xno \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
460 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
461 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
462
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
463
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
464 # AM_SET_DEPDIR
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
465 # -------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
466 # Choose a directory name for dependency files.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
467 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
468 AC_DEFUN([AM_SET_DEPDIR],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
469 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
470 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
471 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
472
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
473
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
474 # AM_DEP_TRACK
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
475 # ------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
476 AC_DEFUN([AM_DEP_TRACK],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
477 [AC_ARG_ENABLE(dependency-tracking,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
478 [ --disable-dependency-tracking speeds up one-time build
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
479 --enable-dependency-tracking do not reject slow dependency extractors])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
480 if test "x$enable_dependency_tracking" != xno; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
481 am_depcomp="$ac_aux_dir/depcomp"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
482 AMDEPBACKSLASH='\'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
483 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
484 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
485 AC_SUBST([AMDEPBACKSLASH])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
486 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
487 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
488
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
489 # Generate code to set up dependency tracking. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
490
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
491 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
492 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
493 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
494 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
495 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
496 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
497
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
498 #serial 5
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
499
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
500 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
501 # ------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
502 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
503 [{
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
504 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
505 # are listed without --file. Let's play safe and only enable the eval
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
506 # if we detect the quoting.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
507 case $CONFIG_FILES in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
508 *\'*) eval set x "$CONFIG_FILES" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
509 *) set x $CONFIG_FILES ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
510 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
511 shift
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
512 for mf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
513 do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
514 # Strip MF so we end up with the name of the file.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
515 mf=`echo "$mf" | sed -e 's/:.*$//'`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
516 # Check whether this is an Automake generated Makefile or not.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
517 # We used to match only the files named `Makefile.in', but
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
518 # some people rename them; so instead we look at the file content.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
519 # Grep'ing the first line is not enough: some people post-process
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
520 # each Makefile.in and add a new line on top of each file to say so.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
521 # Grep'ing the whole file is not good either: AIX grep has a line
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
522 # limit of 2048, but all sed's we know have understand at least 4000.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
523 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
524 dirpart=`AS_DIRNAME("$mf")`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
525 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
526 continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
527 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
528 # Extract the definition of DEPDIR, am__include, and am__quote
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
529 # from the Makefile without running `make'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
530 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
531 test -z "$DEPDIR" && continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
532 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
533 test -z "am__include" && continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
534 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
535 # When using ansi2knr, U may be empty or an underscore; expand it
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
536 U=`sed -n 's/^U = //p' < "$mf"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
537 # Find all dependency output files, they are included files with
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
538 # $(DEPDIR) in their names. We invoke sed twice because it is the
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
539 # simplest approach to changing $(DEPDIR) to its actual value in the
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
540 # expansion.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
541 for file in `sed -n "
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
542 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
543 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
544 # Make sure the directory exists.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
545 test -f "$dirpart/$file" && continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
546 fdir=`AS_DIRNAME(["$file"])`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
547 AS_MKDIR_P([$dirpart/$fdir])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
548 # echo "creating $dirpart/$file"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
549 echo '# dummy' > "$dirpart/$file"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
550 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
551 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
552 }
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
553 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
554
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
555
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
556 # AM_OUTPUT_DEPENDENCY_COMMANDS
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
557 # -----------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
558 # This macro should only be invoked once -- use via AC_REQUIRE.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
559 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
560 # This code is only required when automatic dependency tracking
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
561 # is enabled. FIXME. This creates each `.P' file that we will
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
562 # need in order to bootstrap the dependency handling code.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
563 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
564 [AC_CONFIG_COMMANDS([depfiles],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
565 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
566 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
567 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
568
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
569 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
570 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
571 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
572 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
573 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
574 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
575
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
576 # serial 8
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
577
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
578 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
579 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
580
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
581 # Do all the work for Automake. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
582
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
583 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
584 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
585 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
586 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
587 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
588 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
589
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
590 # serial 16
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
591
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
592 # This macro actually does too much. Some checks are only needed if
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
593 # your package does certain things. But this isn't really a big deal.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
594
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
595 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
596 # AM_INIT_AUTOMAKE([OPTIONS])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
597 # -----------------------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
598 # The call with PACKAGE and VERSION arguments is the old style
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
599 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
600 # and VERSION should now be passed to AC_INIT and removed from
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
601 # the call to AM_INIT_AUTOMAKE.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
602 # We support both call styles for the transition. After
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
603 # the next Automake release, Autoconf can make the AC_INIT
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
604 # arguments mandatory, and then we can depend on a new Autoconf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
605 # release and drop the old call support.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
606 AC_DEFUN([AM_INIT_AUTOMAKE],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
607 [AC_PREREQ([2.62])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
608 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
609 dnl the ones we care about.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
610 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
611 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
612 AC_REQUIRE([AC_PROG_INSTALL])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
613 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
614 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
615 # is not polluted with repeated "-I."
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
616 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
617 # test to see if srcdir already configured
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
618 if test -f $srcdir/config.status; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
619 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
620 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
621 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
622
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
623 # test whether we have cygpath
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
624 if test -z "$CYGPATH_W"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
625 if (cygpath --version) >/dev/null 2>/dev/null; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
626 CYGPATH_W='cygpath -w'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
627 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
628 CYGPATH_W=echo
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
629 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
630 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
631 AC_SUBST([CYGPATH_W])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
632
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
633 # Define the identity of the package.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
634 dnl Distinguish between old-style and new-style calls.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
635 m4_ifval([$2],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
636 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
637 AC_SUBST([PACKAGE], [$1])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
638 AC_SUBST([VERSION], [$2])],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
639 [_AM_SET_OPTIONS([$1])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
640 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
641 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
642 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
643 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
644 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
645
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
646 _AM_IF_OPTION([no-define],,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
647 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
648 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
649
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
650 # Some tools Automake needs.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
651 AC_REQUIRE([AM_SANITY_CHECK])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
652 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
653 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
654 AM_MISSING_PROG(AUTOCONF, autoconf)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
655 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
656 AM_MISSING_PROG(AUTOHEADER, autoheader)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
657 AM_MISSING_PROG(MAKEINFO, makeinfo)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
658 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
659 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
660 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
661 # We need awk for the "check" target. The system "awk" is bad on
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
662 # some platforms.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
663 AC_REQUIRE([AC_PROG_AWK])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
664 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
665 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
666 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
667 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
668 [_AM_PROG_TAR([v7])])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
669 _AM_IF_OPTION([no-dependencies],,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
670 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
671 [_AM_DEPENDENCIES(CC)],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
672 [define([AC_PROG_CC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
673 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
674 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
675 [_AM_DEPENDENCIES(CXX)],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
676 [define([AC_PROG_CXX],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
677 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
678 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
679 [_AM_DEPENDENCIES(OBJC)],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
680 [define([AC_PROG_OBJC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
681 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
682 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
683 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
684 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
685 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
686 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
687 AC_CONFIG_COMMANDS_PRE(dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
688 [m4_provide_if([_AM_COMPILER_EXEEXT],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
689 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
690 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
691
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
692 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
693 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
694 dnl mangled by Autoconf and run in a shell conditional statement.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
695 m4_define([_AC_COMPILER_EXEEXT],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
696 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
697
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
698
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
699 # When config.status generates a header, we must update the stamp-h file.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
700 # This file resides in the same directory as the config header
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
701 # that is generated. The stamp files are numbered to have different names.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
702
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
703 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
704 # loop where config.status creates the headers, so we can generate
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
705 # our stamp files there.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
706 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
707 [# Compute $1's index in $config_headers.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
708 _am_arg=$1
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
709 _am_stamp_count=1
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
710 for _am_header in $config_headers :; do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
711 case $_am_header in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
712 $_am_arg | $_am_arg:* )
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
713 break ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
714 * )
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
715 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
716 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
717 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
718 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
719
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
720 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
721 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
722 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
723 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
724 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
725
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
726 # AM_PROG_INSTALL_SH
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
727 # ------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
728 # Define $install_sh.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
729 AC_DEFUN([AM_PROG_INSTALL_SH],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
730 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
731 if test x"${install_sh}" != xset; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
732 case $am_aux_dir in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
733 *\ * | *\ *)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
734 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
735 *)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
736 install_sh="\${SHELL} $am_aux_dir/install-sh"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
737 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
738 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
739 AC_SUBST(install_sh)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
740
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
741 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
742 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
743 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
744 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
745 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
746
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
747 # serial 2
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
748
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
749 # Check whether the underlying file-system supports filenames
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
750 # with a leading dot. For instance MS-DOS doesn't.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
751 AC_DEFUN([AM_SET_LEADING_DOT],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
752 [rm -rf .tst 2>/dev/null
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
753 mkdir .tst 2>/dev/null
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
754 if test -d .tst; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
755 am__leading_dot=.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
756 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
757 am__leading_dot=_
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
758 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
759 rmdir .tst 2>/dev/null
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
760 AC_SUBST([am__leading_dot])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
761
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
762 # Check to see how 'make' treats includes. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
763
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
764 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
765 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
766 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
767 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
768 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
769
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
770 # serial 4
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
771
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
772 # AM_MAKE_INCLUDE()
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
773 # -----------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
774 # Check to see how make treats includes.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
775 AC_DEFUN([AM_MAKE_INCLUDE],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
776 [am_make=${MAKE-make}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
777 cat > confinc << 'END'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
778 am__doit:
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
779 @echo this is the am__doit target
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
780 .PHONY: am__doit
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
781 END
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
782 # If we don't find an include directive, just comment out the code.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
783 AC_MSG_CHECKING([for style of include used by $am_make])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
784 am__include="#"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
785 am__quote=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
786 _am_result=none
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
787 # First try GNU make style include.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
788 echo "include confinc" > confmf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
789 # Ignore all kinds of additional output from `make'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
790 case `$am_make -s -f confmf 2> /dev/null` in #(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
791 *the\ am__doit\ target*)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
792 am__include=include
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
793 am__quote=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
794 _am_result=GNU
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
795 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
796 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
797 # Now try BSD make style include.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
798 if test "$am__include" = "#"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
799 echo '.include "confinc"' > confmf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
800 case `$am_make -s -f confmf 2> /dev/null` in #(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
801 *the\ am__doit\ target*)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
802 am__include=.include
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
803 am__quote="\""
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
804 _am_result=BSD
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
805 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
806 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
807 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
808 AC_SUBST([am__include])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
809 AC_SUBST([am__quote])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
810 AC_MSG_RESULT([$_am_result])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
811 rm -f confinc confmf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
812 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
813
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
814 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
815
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
816 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
817 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
818 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
819 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
820 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
821 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
822
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
823 # serial 6
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
824
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
825 # AM_MISSING_PROG(NAME, PROGRAM)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
826 # ------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
827 AC_DEFUN([AM_MISSING_PROG],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
828 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
829 $1=${$1-"${am_missing_run}$2"}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
830 AC_SUBST($1)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
831
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
832
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
833 # AM_MISSING_HAS_RUN
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
834 # ------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
835 # Define MISSING if not defined so far and test if it supports --run.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
836 # If it does, set am_missing_run to use it, otherwise, to nothing.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
837 AC_DEFUN([AM_MISSING_HAS_RUN],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
838 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
839 AC_REQUIRE_AUX_FILE([missing])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
840 if test x"${MISSING+set}" != xset; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
841 case $am_aux_dir in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
842 *\ * | *\ *)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
843 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
844 *)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
845 MISSING="\${SHELL} $am_aux_dir/missing" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
846 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
847 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
848 # Use eval to expand $SHELL
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
849 if eval "$MISSING --run true"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
850 am_missing_run="$MISSING --run "
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
851 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
852 am_missing_run=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
853 AC_MSG_WARN([`missing' script is too old or missing])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
854 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
855 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
856
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
857 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
858 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
859 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
860 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
861 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
862
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
863 # AM_PROG_MKDIR_P
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
864 # ---------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
865 # Check for `mkdir -p'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
866 AC_DEFUN([AM_PROG_MKDIR_P],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
867 [AC_PREREQ([2.60])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
868 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
869 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
870 dnl while keeping a definition of mkdir_p for backward compatibility.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
871 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
872 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
873 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
874 dnl adjustment using top_builddir (which is defined more often than
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
875 dnl MKDIR_P).
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
876 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
877 case $mkdir_p in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
878 [[\\/$]]* | ?:[[\\/]]*) ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
879 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
880 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
881 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
882
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
883 # Helper functions for option handling. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
884
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
885 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
886 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
887 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
888 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
889 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
890
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
891 # serial 4
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
892
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
893 # _AM_MANGLE_OPTION(NAME)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
894 # -----------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
895 AC_DEFUN([_AM_MANGLE_OPTION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
896 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
897
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
898 # _AM_SET_OPTION(NAME)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
899 # ------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
900 # Set option NAME. Presently that only means defining a flag for this option.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
901 AC_DEFUN([_AM_SET_OPTION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
902 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
903
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
904 # _AM_SET_OPTIONS(OPTIONS)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
905 # ----------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
906 # OPTIONS is a space-separated list of Automake options.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
907 AC_DEFUN([_AM_SET_OPTIONS],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
908 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
909
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
910 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
911 # -------------------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
912 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
913 AC_DEFUN([_AM_IF_OPTION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
914 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
915
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
916 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
917
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
918 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
919 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
920 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
921 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
922 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
923 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
924
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
925 # serial 5
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
926
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
927 # AM_SANITY_CHECK
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
928 # ---------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
929 AC_DEFUN([AM_SANITY_CHECK],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
930 [AC_MSG_CHECKING([whether build environment is sane])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
931 # Just in case
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
932 sleep 1
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
933 echo timestamp > conftest.file
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
934 # Reject unsafe characters in $srcdir or the absolute working directory
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
935 # name. Accept space and tab only in the latter.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
936 am_lf='
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
937 '
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
938 case `pwd` in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
939 *[[\\\"\#\$\&\'\`$am_lf]]*)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
940 AC_MSG_ERROR([unsafe absolute working directory name]);;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
941 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
942 case $srcdir in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
943 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
944 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
945 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
946
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
947 # Do `set' in a subshell so we don't clobber the current shell's
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
948 # arguments. Must try -L first in case configure is actually a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
949 # symlink; some systems play weird games with the mod time of symlinks
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
950 # (eg FreeBSD returns the mod time of the symlink's containing
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
951 # directory).
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
952 if (
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
953 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
954 if test "$[*]" = "X"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
955 # -L didn't work.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
956 set X `ls -t "$srcdir/configure" conftest.file`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
957 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
958 rm -f conftest.file
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
959 if test "$[*]" != "X $srcdir/configure conftest.file" \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
960 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
961
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
962 # If neither matched, then we have a broken ls. This can happen
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
963 # if, for instance, CONFIG_SHELL is bash and it inherits a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
964 # broken ls alias from the environment. This has actually
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
965 # happened. Such a system could not be considered "sane".
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
966 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
967 alias in your environment])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
968 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
969
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
970 test "$[2]" = conftest.file
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
971 )
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
972 then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
973 # Ok.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
974 :
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
975 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
976 AC_MSG_ERROR([newly created file is older than distributed files!
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
977 Check your system clock])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
978 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
979 AC_MSG_RESULT(yes)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
980
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
981 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
982 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
983 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
984 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
985 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
986
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
987 # AM_PROG_INSTALL_STRIP
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
988 # ---------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
989 # One issue with vendor `install' (even GNU) is that you can't
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
990 # specify the program used to strip binaries. This is especially
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
991 # annoying in cross-compiling environments, where the build's strip
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
992 # is unlikely to handle the host's binaries.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
993 # Fortunately install-sh will honor a STRIPPROG variable, so we
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
994 # always use install-sh in `make install-strip', and initialize
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
995 # STRIPPROG with the value of the STRIP variable (set by the user).
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
996 AC_DEFUN([AM_PROG_INSTALL_STRIP],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
997 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
998 # Installed binaries are usually stripped using `strip' when the user
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
999 # run `make install-strip'. However `strip' might not be the right
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1000 # tool to use in cross-compilation environments, therefore Automake
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1001 # will honor the `STRIP' environment variable to overrule this program.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1002 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1003 if test "$cross_compiling" != no; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1004 AC_CHECK_TOOL([STRIP], [strip], :)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1005 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1006 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1007 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1009 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1010 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1011 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1012 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1013 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1014
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1015 # serial 2
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1016
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1017 # _AM_SUBST_NOTMAKE(VARIABLE)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1018 # ---------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1019 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1020 # This macro is traced by Automake.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1021 AC_DEFUN([_AM_SUBST_NOTMAKE])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1022
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1023 # AM_SUBST_NOTMAKE(VARIABLE)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1024 # ---------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1025 # Public sister of _AM_SUBST_NOTMAKE.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1026 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1027
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1028 # Check how to create a tarball. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1029
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1030 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1031 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1032 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1033 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1034 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1035
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1036 # serial 2
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1037
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1038 # _AM_PROG_TAR(FORMAT)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1039 # --------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1040 # Check how to create a tarball in format FORMAT.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1041 # FORMAT should be one of `v7', `ustar', or `pax'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1042 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1043 # Substitute a variable $(am__tar) that is a command
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1044 # writing to stdout a FORMAT-tarball containing the directory
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1045 # $tardir.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1046 # tardir=directory && $(am__tar) > result.tar
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1047 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1048 # Substitute a variable $(am__untar) that extract such
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1049 # a tarball read from stdin.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1050 # $(am__untar) < result.tar
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1051 AC_DEFUN([_AM_PROG_TAR],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1052 [# Always define AMTAR for backward compatibility.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1053 AM_MISSING_PROG([AMTAR], [tar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1054 m4_if([$1], [v7],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1055 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1056 [m4_case([$1], [ustar],, [pax],,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1057 [m4_fatal([Unknown tar format])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1058 AC_MSG_CHECKING([how to create a $1 tar archive])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1059 # Loop over all known methods to create a tar archive until one works.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1060 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1061 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1062 # Do not fold the above two line into one, because Tru64 sh and
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1063 # Solaris sh will not grok spaces in the rhs of `-'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1064 for _am_tool in $_am_tools
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1065 do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1066 case $_am_tool in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1067 gnutar)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1068 for _am_tar in tar gnutar gtar;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1069 do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1070 AM_RUN_LOG([$_am_tar --version]) && break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1071 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1072 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1073 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1074 am__untar="$_am_tar -xf -"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1075 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1076 plaintar)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1077 # Must skip GNU tar: if it does not support --format= it doesn't create
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1078 # ustar tarball either.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1079 (tar --version) >/dev/null 2>&1 && continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1080 am__tar='tar chf - "$$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1081 am__tar_='tar chf - "$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1082 am__untar='tar xf -'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1083 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1084 pax)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1085 am__tar='pax -L -x $1 -w "$$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1086 am__tar_='pax -L -x $1 -w "$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1087 am__untar='pax -r'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1088 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1089 cpio)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1090 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1091 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1092 am__untar='cpio -i -H $1 -d'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1093 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1094 none)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1095 am__tar=false
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1096 am__tar_=false
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1097 am__untar=false
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1098 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1099 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1100
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1101 # If the value was cached, stop now. We just wanted to have am__tar
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1102 # and am__untar set.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1103 test -n "${am_cv_prog_tar_$1}" && break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1104
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1105 # tar/untar a dummy directory, and stop if the command works
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1106 rm -rf conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1107 mkdir conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1108 echo GrepMe > conftest.dir/file
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1109 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1110 rm -rf conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1111 if test -s conftest.tar; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1112 AM_RUN_LOG([$am__untar <conftest.tar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1113 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1114 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1115 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1116 rm -rf conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1117
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1118 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1119 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1120 AC_SUBST([am__tar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1121 AC_SUBST([am__untar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1122 ]) # _AM_PROG_TAR
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1123