Mercurial > noffle
comparison aclocal.m4 @ 438:a6e3b57fb035 noffle
[svn] * Makefile.in,aclocal.m4,configure,docs/Makefile.in,packages/Makefile.in,
packages/redhat/Makefile.in,src/Makefile.in: Autoconf updates.
author | bears |
---|---|
date | Wed, 25 Jun 2003 10:40:54 +0100 |
parents | c02c4eb95f95 |
children | d33568bb18ab |
comparison
equal
deleted
inserted
replaced
437:5687083b6f9a | 438:a6e3b57fb035 |
---|---|
1 dnl aclocal.m4 generated automatically by aclocal 1.4-p6 | 1 dnl aclocal.m4 generated automatically by aclocal 1.4-p4 |
2 | 2 |
3 dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. | 3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
4 dnl This file is free software; the Free Software Foundation | 4 dnl This file is free software; the Free Software Foundation |
5 dnl gives unlimited permission to copy and/or distribute it, | 5 dnl gives unlimited permission to copy and/or distribute it, |
6 dnl with or without modifications, as long as this notice is preserved. | 6 dnl with or without modifications, as long as this notice is preserved. |
7 | 7 |
8 dnl This program is distributed in the hope that it will be useful, | 8 dnl This program is distributed in the hope that it will be useful, |
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 dnl PARTICULAR PURPOSE. | 11 dnl PARTICULAR PURPOSE. |
12 | 12 |
13 # Like AC_CONFIG_HEADER, but automatically create stamp file. | 13 # Like AC_CONFIG_HEADER, but automatically create stamp file. |
14 | 14 |
15 AC_DEFUN([AM_CONFIG_HEADER], | 15 AC_DEFUN(AM_CONFIG_HEADER, |
16 [AC_PREREQ([2.12]) | 16 [AC_PREREQ([2.12]) |
17 AC_CONFIG_HEADER([$1]) | 17 AC_CONFIG_HEADER([$1]) |
18 dnl When config.status generates a header, we must update the stamp-h file. | 18 dnl When config.status generates a header, we must update the stamp-h file. |
19 dnl This file resides in the same directory as the config header | 19 dnl This file resides in the same directory as the config header |
20 dnl that is generated. We must strip everything past the first ":", | 20 dnl that is generated. We must strip everything past the first ":", |
40 # serial 1 | 40 # serial 1 |
41 | 41 |
42 dnl Usage: | 42 dnl Usage: |
43 dnl AM_INIT_AUTOMAKE(package,version, [no-define]) | 43 dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
44 | 44 |
45 AC_DEFUN([AM_INIT_AUTOMAKE], | 45 AC_DEFUN(AM_INIT_AUTOMAKE, |
46 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | 46 [AC_REQUIRE([AC_PROG_INSTALL]) |
47 AC_REQUIRE([AC_PROG_INSTALL]) | |
48 PACKAGE=[$1] | 47 PACKAGE=[$1] |
49 AC_SUBST(PACKAGE) | 48 AC_SUBST(PACKAGE) |
50 VERSION=[$2] | 49 VERSION=[$2] |
51 AC_SUBST(VERSION) | 50 AC_SUBST(VERSION) |
52 dnl test to see if srcdir already configured | 51 dnl test to see if srcdir already configured |
58 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) | 57 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) |
59 AC_REQUIRE([AM_SANITY_CHECK]) | 58 AC_REQUIRE([AM_SANITY_CHECK]) |
60 AC_REQUIRE([AC_ARG_PROGRAM]) | 59 AC_REQUIRE([AC_ARG_PROGRAM]) |
61 dnl FIXME This is truly gross. | 60 dnl FIXME This is truly gross. |
62 missing_dir=`cd $ac_aux_dir && pwd` | 61 missing_dir=`cd $ac_aux_dir && pwd` |
63 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) | 62 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) |
64 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) | 63 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
65 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) | 64 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) |
66 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) | 65 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
67 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) | 66 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
68 AC_REQUIRE([AC_PROG_MAKE_SET])]) | 67 AC_REQUIRE([AC_PROG_MAKE_SET])]) |
69 | |
70 # Copyright 2002 Free Software Foundation, Inc. | |
71 | |
72 # This program is free software; you can redistribute it and/or modify | |
73 # it under the terms of the GNU General Public License as published by | |
74 # the Free Software Foundation; either version 2, or (at your option) | |
75 # any later version. | |
76 | |
77 # This program is distributed in the hope that it will be useful, | |
78 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
79 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
80 # GNU General Public License for more details. | |
81 | |
82 # You should have received a copy of the GNU General Public License | |
83 # along with this program; if not, write to the Free Software | |
84 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
85 | |
86 # AM_AUTOMAKE_VERSION(VERSION) | |
87 # ---------------------------- | |
88 # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
89 # generated from the m4 files accompanying Automake X.Y. | |
90 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) | |
91 | |
92 # AM_SET_CURRENT_AUTOMAKE_VERSION | |
93 # ------------------------------- | |
94 # Call AM_AUTOMAKE_VERSION so it can be traced. | |
95 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | |
96 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
97 [AM_AUTOMAKE_VERSION([1.4-p6])]) | |
98 | 68 |
99 # | 69 # |
100 # Check to make sure that the build environment is sane. | 70 # Check to make sure that the build environment is sane. |
101 # | 71 # |
102 | 72 |
103 AC_DEFUN([AM_SANITY_CHECK], | 73 AC_DEFUN(AM_SANITY_CHECK, |
104 [AC_MSG_CHECKING([whether build environment is sane]) | 74 [AC_MSG_CHECKING([whether build environment is sane]) |
105 # Just in case | 75 # Just in case |
106 sleep 1 | 76 sleep 1 |
107 echo timestamp > conftestfile | 77 echo timestamp > conftestfile |
108 # Do `set' in a subshell so we don't clobber the current shell's | 78 # Do `set' in a subshell so we don't clobber the current shell's |
139 rm -f conftest* | 109 rm -f conftest* |
140 AC_MSG_RESULT(yes)]) | 110 AC_MSG_RESULT(yes)]) |
141 | 111 |
142 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) | 112 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
143 dnl The program must properly implement --version. | 113 dnl The program must properly implement --version. |
144 AC_DEFUN([AM_MISSING_PROG], | 114 AC_DEFUN(AM_MISSING_PROG, |
145 [AC_MSG_CHECKING(for working $2) | 115 [AC_MSG_CHECKING(for working $2) |
146 # Run test in a subshell; some versions of sh will print an error if | 116 # Run test in a subshell; some versions of sh will print an error if |
147 # an executable is not found, even if stderr is redirected. | 117 # an executable is not found, even if stderr is redirected. |
148 # Redirect stdin to placate older versions of autoconf. Sigh. | 118 # Redirect stdin to placate older versions of autoconf. Sigh. |
149 if ($2 --version) < /dev/null > /dev/null 2>&1; then | 119 if ($2 --version) < /dev/null > /dev/null 2>&1; then |
153 $1="$3/missing $2" | 123 $1="$3/missing $2" |
154 AC_MSG_RESULT(missing) | 124 AC_MSG_RESULT(missing) |
155 fi | 125 fi |
156 AC_SUBST($1)]) | 126 AC_SUBST($1)]) |
157 | 127 |
158 # isc-posix.m4 serial 2 (gettext-0.11.2) | |
159 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. | |
160 dnl This file is free software, distributed under the terms of the GNU | |
161 dnl General Public License. As a special exception to the GNU General | |
162 dnl Public License, this file may be distributed as part of a program | |
163 dnl that contains a configuration script generated by Autoconf, under | |
164 dnl the same distribution terms as the rest of that program. | |
165 | |
166 # This file is not needed with autoconf-2.53 and newer. Remove it in 2005. | |
167 | |
168 # This test replaces the one in autoconf. | |
169 # Currently this macro should have the same name as the autoconf macro | |
170 # because gettext's gettext.m4 (distributed in the automake package) | |
171 # still uses it. Otherwise, the use in gettext.m4 makes autoheader | |
172 # give these diagnostics: | |
173 # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX | |
174 # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX | |
175 | |
176 undefine([AC_ISC_POSIX]) | |
177 | |
178 AC_DEFUN([AC_ISC_POSIX], | |
179 [ | |
180 dnl This test replaces the obsolescent AC_ISC_POSIX kludge. | |
181 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) | |
182 ] | |
183 ) | |
184 |