72
by Luke Yelavich
* New upstream release |
1 |
# generated automatically by aclocal 1.11 -*- Autoconf -*- |
1
by Oliver Grawert
Import upstream version 0.9.5 |
2 |
|
3 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
|
72
by Luke Yelavich
* New upstream release |
4 |
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
1
by Oliver Grawert
Import upstream version 0.9.5 |
5 |
# This file is free software; the Free Software Foundation |
6 |
# gives unlimited permission to copy and/or distribute it, |
|
7 |
# with or without modifications, as long as this notice is preserved. |
|
8 |
||
9 |
# This program is distributed in the hope that it will be useful, |
|
10 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
|
11 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|
12 |
# PARTICULAR PURPOSE. |
|
13 |
||
1.1.5
by Luke Yelavich
Import upstream version 0.9.10 |
14 |
m4_ifndef([AC_AUTOCONF_VERSION], |
15 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
|
1.14.3
by Luke Yelavich
Import upstream version 0.9.16 |
16 |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, |
17 |
[m4_warning([this file was generated for autoconf 2.63. |
|
1.1.5
by Luke Yelavich
Import upstream version 0.9.10 |
18 |
You have another version of autoconf. It may work, but is not guaranteed to.
|
19 |
If you have problems, you may need to regenerate the build system entirely.
|
|
20 |
To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
21 |
|
1.2.1
by Luke Yelavich
Import upstream version 0.9.13 |
22 |
# Copyright (C) 1995-2002 Free Software Foundation, Inc. |
23 |
# Copyright (C) 2001-2003,2004 Red Hat, Inc. |
|
24 |
#
|
|
25 |
# This file is free software, distributed under the terms of the GNU |
|
26 |
# General Public License. As a special exception to the GNU General |
|
27 |
# Public License, this file may be distributed as part of a program |
|
28 |
# that contains a configuration script generated by Autoconf, under |
|
29 |
# the same distribution terms as the rest of that program. |
|
30 |
#
|
|
31 |
# This file can be copied and used freely without restrictions. It can |
|
32 |
# be used in projects which are not available under the GNU Public License |
|
33 |
# but which still want to provide support for the GNU gettext functionality. |
|
34 |
#
|
|
35 |
# Macro to add for using GNU gettext. |
|
36 |
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 |
|
37 |
#
|
|
38 |
# Modified to never use included libintl. |
|
39 |
# Owen Taylor <otaylor@redhat.com>, 12/15/1998 |
|
40 |
#
|
|
41 |
# Major rework to remove unused code |
|
42 |
# Owen Taylor <otaylor@redhat.com>, 12/11/2002 |
|
43 |
#
|
|
44 |
# Added better handling of ALL_LINGUAS from GNU gettext version |
|
45 |
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 |
|
46 |
#
|
|
47 |
# Modified to require ngettext |
|
48 |
# Matthias Clasen <mclasen@redhat.com> 08/06/2004 |
|
49 |
#
|
|
50 |
# We need this here as well, since someone might use autoconf-2.5x |
|
51 |
# to configure GLib then an older version to configure a package |
|
52 |
# using AM_GLIB_GNU_GETTEXT |
|
53 |
AC_PREREQ(2.53) |
|
54 |
||
55 |
dnl
|
|
56 |
dnl We go to great lengths to make sure that aclocal won't |
|
57 |
dnl try to pull in the installed version of these macros
|
|
58 |
dnl when running aclocal in the glib directory.
|
|
59 |
dnl
|
|
60 |
m4_copy([AC_DEFUN],[glib_DEFUN])
|
|
61 |
m4_copy([AC_REQUIRE],[glib_REQUIRE])
|
|
62 |
dnl
|
|
63 |
dnl At the end, if we're not within glib, we'll define the public |
|
64 |
dnl definitions in terms of our private definitions.
|
|
65 |
dnl
|
|
66 |
||
67 |
# GLIB_LC_MESSAGES
|
|
68 |
#--------------------
|
|
69 |
glib_DEFUN([GLIB_LC_MESSAGES],
|
|
70 |
[AC_CHECK_HEADERS([locale.h])
|
|
71 |
if test $ac_cv_header_locale_h = yes; then
|
|
72 |
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
|
|
73 |
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
|
|
74 |
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
|
|
75 |
if test $am_cv_val_LC_MESSAGES = yes; then
|
|
76 |
AC_DEFINE(HAVE_LC_MESSAGES, 1,
|
|
77 |
[Define if your <locale.h> file defines LC_MESSAGES.])
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
78 |
fi
|
1.2.1
by Luke Yelavich
Import upstream version 0.9.13 |
79 |
fi])
|
80 |
||
81 |
# GLIB_PATH_PROG_WITH_TEST
|
|
82 |
#----------------------------
|
|
83 |
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
|
|
84 |
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
|
|
85 |
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
|
|
86 |
[# Extract the first word of "$2", so it can be a program name with args.
|
|
87 |
set dummy $2; ac_word=[$]2
|
|
88 |
AC_MSG_CHECKING([for $ac_word])
|
|
89 |
AC_CACHE_VAL(ac_cv_path_$1,
|
|
90 |
[case "[$]$1" in
|
|
91 |
/*)
|
|
92 |
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
|
|
93 |
;;
|
|
94 |
*)
|
|
95 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
96 |
for ac_dir in ifelse([$5], , $PATH, [$5]); do
|
|
97 |
test -z "$ac_dir" && ac_dir=.
|
|
98 |
if test -f $ac_dir/$ac_word; then
|
|
99 |
if [$3]; then
|
|
100 |
ac_cv_path_$1="$ac_dir/$ac_word"
|
|
101 |
break
|
|
1.1.5
by Luke Yelavich
Import upstream version 0.9.10 |
102 |
fi
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
103 |
fi
|
104 |
done
|
|
105 |
IFS="$ac_save_ifs"
|
|
1.2.1
by Luke Yelavich
Import upstream version 0.9.13 |
106 |
dnl If no 4th arg is given, leave the cache variable unset,
|
107 |
dnl so AC_PATH_PROGS will keep looking.
|
|
108 |
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
|
|
109 |
])dnl
|
|
110 |
;;
|
|
111 |
esac])dnl
|
|
112 |
$1="$ac_cv_path_$1"
|
|
113 |
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
|
|
114 |
AC_MSG_RESULT([$]$1)
|
|
115 |
else
|
|
116 |
AC_MSG_RESULT(no)
|
|
117 |
fi
|
|
118 |
AC_SUBST($1)dnl
|
|
119 |
])
|
|
120 |
||
121 |
# GLIB_WITH_NLS
|
|
122 |
#-----------------
|
|
123 |
glib_DEFUN([GLIB_WITH_NLS],
|
|
124 |
dnl NLS is obligatory
|
|
125 |
[USE_NLS=yes
|
|
126 |
AC_SUBST(USE_NLS)
|
|
127 |
||
128 |
gt_cv_have_gettext=no
|
|
129 |
||
130 |
CATOBJEXT=NONE
|
|
131 |
XGETTEXT=:
|
|
132 |
INTLLIBS=
|
|
133 |
||
134 |
AC_CHECK_HEADER(libintl.h,
|
|
135 |
[gt_cv_func_dgettext_libintl="no"
|
|
136 |
libintl_extra_libs=""
|
|
137 |
||
138 |
#
|
|
139 |
# First check in libc
|
|
140 |
#
|
|
141 |
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
|
|
142 |
[AC_TRY_LINK([
|
|
143 |
#include <libintl.h>
|
|
144 |
],
|
|
145 |
[return !ngettext ("","", 1)],
|
|
146 |
gt_cv_func_ngettext_libc=yes,
|
|
147 |
gt_cv_func_ngettext_libc=no)
|
|
148 |
])
|
|
149 |
|
|
150 |
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
|
151 |
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
|
|
152 |
[AC_TRY_LINK([
|
|
153 |
#include <libintl.h>
|
|
154 |
],
|
|
155 |
[return !dgettext ("","")],
|
|
156 |
gt_cv_func_dgettext_libc=yes,
|
|
157 |
gt_cv_func_dgettext_libc=no)
|
|
158 |
])
|
|
159 |
fi
|
|
160 |
|
|
161 |
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
|
162 |
AC_CHECK_FUNCS(bind_textdomain_codeset)
|
|
163 |
fi
|
|
164 |
||
165 |
#
|
|
166 |
# If we don't have everything we want, check in libintl |
|
167 |
# |
|
168 |
if test "$gt_cv_func_dgettext_libc" != "yes" \ |
|
169 |
|| test "$gt_cv_func_ngettext_libc" != "yes" \ |
|
170 |
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
|
171 |
|
|
172 |
AC_CHECK_LIB(intl, bindtextdomain, |
|
173 |
[AC_CHECK_LIB(intl, ngettext, |
|
174 |
[AC_CHECK_LIB(intl, dgettext,
|
|
175 |
gt_cv_func_dgettext_libintl=yes)])]) |
|
176 |
||
177 |
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
|
178 |
AC_MSG_CHECKING([if -liconv is needed to use gettext]) |
|
179 |
AC_MSG_RESULT([]) |
|
180 |
AC_CHECK_LIB(intl, ngettext, |
|
181 |
[AC_CHECK_LIB(intl, dcgettext, |
|
182 |
[gt_cv_func_dgettext_libintl=yes
|
|
183 |
libintl_extra_libs=-liconv], |
|
184 |
:,-liconv)], |
|
185 |
:,-liconv) |
|
186 |
fi |
|
187 |
||
188 |
# |
|
189 |
# If we found libintl, then check in it for bind_textdomain_codeset(); |
|
190 |
# we'll prefer libc if neither have bind_textdomain_codeset(), |
|
191 |
# and both have dgettext and ngettext
|
|
192 |
#
|
|
193 |
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
|
|
194 |
glib_save_LIBS="$LIBS"
|
|
195 |
LIBS="$LIBS -lintl $libintl_extra_libs"
|
|
196 |
unset ac_cv_func_bind_textdomain_codeset
|
|
197 |
AC_CHECK_FUNCS(bind_textdomain_codeset)
|
|
198 |
LIBS="$glib_save_LIBS"
|
|
199 |
||
200 |
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
|
|
201 |
gt_cv_func_dgettext_libc=no
|
|
202 |
else
|
|
203 |
if test "$gt_cv_func_dgettext_libc" = "yes" \
|
|
204 |
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
|
|
205 |
gt_cv_func_dgettext_libintl=no
|
|
206 |
fi
|
|
207 |
fi
|
|
208 |
fi
|
|
209 |
fi
|
|
210 |
||
211 |
if test "$gt_cv_func_dgettext_libc" = "yes" \
|
|
212 |
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
|
213 |
gt_cv_have_gettext=yes
|
|
214 |
fi
|
|
215 |
|
|
216 |
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
|
217 |
INTLLIBS="-lintl $libintl_extra_libs"
|
|
218 |
fi
|
|
219 |
|
|
220 |
if test "$gt_cv_have_gettext" = "yes"; then
|
|
221 |
AC_DEFINE(HAVE_GETTEXT,1,
|
|
222 |
[Define if the GNU gettext() function is already present or preinstalled.])
|
|
223 |
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
|
224 |
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl |
|
225 |
if test "$MSGFMT" != "no"; then
|
|
226 |
glib_save_LIBS="$LIBS"
|
|
227 |
LIBS="$LIBS $INTLLIBS"
|
|
228 |
AC_CHECK_FUNCS(dcgettext)
|
|
229 |
MSGFMT_OPTS=
|
|
230 |
AC_MSG_CHECKING([if msgfmt accepts -c])
|
|
231 |
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
|
|
232 |
msgid ""
|
|
233 |
msgstr ""
|
|
234 |
"Content-Type: text/plain; charset=UTF-8\n"
|
|
235 |
"Project-Id-Version: test 1.0\n"
|
|
236 |
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
|
|
237 |
"Last-Translator: test <foo@bar.xx>\n"
|
|
238 |
"Language-Team: C <LL@li.org>\n"
|
|
239 |
"MIME-Version: 1.0\n"
|
|
240 |
"Content-Transfer-Encoding: 8bit\n"
|
|
241 |
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
|
|
242 |
AC_SUBST(MSGFMT_OPTS)
|
|
243 |
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
|
244 |
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
|
245 |
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
|
246 |
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
|
247 |
return _nl_msg_cat_cntr],
|
|
248 |
[CATOBJEXT=.gmo
|
|
249 |
DATADIRNAME=share],
|
|
250 |
[case $host in
|
|
251 |
*-*-solaris*)
|
|
252 |
dnl On Solaris, if bind_textdomain_codeset is in libc,
|
|
253 |
dnl GNU format message catalog is always supported,
|
|
254 |
dnl since both are added to the libc all together.
|
|
255 |
dnl Hence, we'd like to go with DATADIRNAME=share and |
|
256 |
dnl and CATOBJEXT=.gmo in this case. |
|
257 |
AC_CHECK_FUNC(bind_textdomain_codeset, |
|
258 |
[CATOBJEXT=.gmo |
|
259 |
DATADIRNAME=share], |
|
260 |
[CATOBJEXT=.mo |
|
261 |
DATADIRNAME=lib]) |
|
262 |
;; |
|
263 |
*) |
|
264 |
CATOBJEXT=.mo |
|
265 |
DATADIRNAME=lib |
|
266 |
;; |
|
267 |
esac]) |
|
268 |
LIBS="$glib_save_LIBS" |
|
269 |
INSTOBJEXT=.mo |
|
270 |
else |
|
271 |
gt_cv_have_gettext=no |
|
272 |
fi |
|
273 |
fi |
|
274 |
]) |
|
275 |
||
276 |
if test "$gt_cv_have_gettext" = "yes" ; then |
|
277 |
AC_DEFINE(ENABLE_NLS, 1, |
|
278 |
[always defined to indicate that i18n is enabled]) |
|
279 |
fi |
|
280 |
||
281 |
dnl Test whether we really found GNU xgettext. |
|
282 |
if test "$XGETTEXT" != ":"; then |
|
283 |
dnl If it is not GNU xgettext we define it as : so that the |
|
284 |
dnl Makefiles still can work. |
|
285 |
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
|
286 |
: ; |
|
287 |
else |
|
288 |
AC_MSG_RESULT( |
|
289 |
[found xgettext program is not GNU xgettext; ignore it]) |
|
290 |
XGETTEXT=":" |
|
291 |
fi |
|
292 |
fi |
|
293 |
||
294 |
# We need to process the po/ directory. |
|
295 |
POSUB=po |
|
296 |
||
297 |
AC_OUTPUT_COMMANDS( |
|
298 |
[case "$CONFIG_FILES" in *po/Makefile.in*) |
|
299 |
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
|
|
300 |
esac]) |
|
301 |
||
302 |
dnl These rules are solely for the distribution goal. While doing this |
|
303 |
dnl we only have to keep exactly one list of the available catalogs |
|
304 |
dnl in configure.in. |
|
305 |
for lang in $ALL_LINGUAS; do |
|
306 |
GMOFILES="$GMOFILES $lang.gmo" |
|
307 |
POFILES="$POFILES $lang.po" |
|
308 |
done |
|
309 |
||
310 |
dnl Make all variables we use known to autoconf. |
|
311 |
AC_SUBST(CATALOGS) |
|
312 |
AC_SUBST(CATOBJEXT) |
|
313 |
AC_SUBST(DATADIRNAME) |
|
314 |
AC_SUBST(GMOFILES) |
|
315 |
AC_SUBST(INSTOBJEXT) |
|
316 |
AC_SUBST(INTLLIBS) |
|
317 |
AC_SUBST(PO_IN_DATADIR_TRUE) |
|
318 |
AC_SUBST(PO_IN_DATADIR_FALSE) |
|
319 |
AC_SUBST(POFILES) |
|
320 |
AC_SUBST(POSUB) |
|
321 |
]) |
|
322 |
||
323 |
# AM_GLIB_GNU_GETTEXT |
|
324 |
# ------------------- |
|
325 |
# Do checks necessary for use of gettext. If a suitable implementation |
|
326 |
# of gettext is found in either in libintl or in the C library, |
|
327 |
# it will set INTLLIBS to the libraries needed for use of gettext |
|
328 |
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable |
|
329 |
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() |
|
330 |
# on various variables needed by the Makefile.in.in installed by |
|
331 |
# glib-gettextize. |
|
332 |
dnl
|
|
333 |
glib_DEFUN([GLIB_GNU_GETTEXT], |
|
334 |
[AC_REQUIRE([AC_PROG_CC])dnl |
|
335 |
AC_REQUIRE([AC_HEADER_STDC])dnl |
|
336 |
|
|
337 |
GLIB_LC_MESSAGES |
|
338 |
GLIB_WITH_NLS |
|
339 |
||
340 |
if test "$gt_cv_have_gettext" = "yes"; then |
|
341 |
if test "x$ALL_LINGUAS" = "x"; then |
|
342 |
LINGUAS= |
|
343 |
else |
|
344 |
AC_MSG_CHECKING(for catalogs to be installed) |
|
345 |
NEW_LINGUAS= |
|
346 |
for presentlang in $ALL_LINGUAS; do |
|
347 |
useit=no |
|
348 |
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then |
|
349 |
desiredlanguages="$LINGUAS" |
|
350 |
else |
|
351 |
desiredlanguages="$ALL_LINGUAS" |
|
352 |
fi |
|
353 |
for desiredlang in $desiredlanguages; do |
|
354 |
# Use the presentlang catalog if desiredlang is |
|
355 |
# a. equal to presentlang, or |
|
356 |
# b. a variant of presentlang (because in this case, |
|
357 |
# presentlang can be used as a fallback for messages |
|
358 |
# which are not translated in the desiredlang catalog). |
|
359 |
case "$desiredlang" in |
|
360 |
"$presentlang"*) useit=yes;; |
|
361 |
esac |
|
362 |
done |
|
363 |
if test $useit = yes; then |
|
364 |
NEW_LINGUAS="$NEW_LINGUAS $presentlang" |
|
365 |
fi |
|
366 |
done |
|
367 |
LINGUAS=$NEW_LINGUAS |
|
368 |
AC_MSG_RESULT($LINGUAS) |
|
369 |
fi |
|
370 |
||
371 |
dnl Construct list of names of catalog files to be constructed. |
|
372 |
if test -n "$LINGUAS"; then |
|
373 |
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
|
374 |
fi |
|
375 |
fi |
|
376 |
||
377 |
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
|
378 |
dnl find the mkinstalldirs script in another subdir but ($top_srcdir). |
|
379 |
dnl Try to locate is. |
|
380 |
MKINSTALLDIRS= |
|
381 |
if test -n "$ac_aux_dir"; then |
|
382 |
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
|
383 |
fi |
|
384 |
if test -z "$MKINSTALLDIRS"; then |
|
385 |
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
|
386 |
fi |
|
387 |
AC_SUBST(MKINSTALLDIRS) |
|
388 |
||
389 |
dnl Generate list of files to be processed by xgettext which will |
|
390 |
dnl be included in po/Makefile. |
|
391 |
test -d po || mkdir po |
|
392 |
if test "x$srcdir" != "x."; then |
|
393 |
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
|
394 |
posrcprefix="$srcdir/" |
|
395 |
else |
|
396 |
posrcprefix="../$srcdir/" |
|
397 |
fi |
|
398 |
else |
|
399 |
posrcprefix="../" |
|
400 |
fi |
|
401 |
rm -f po/POTFILES |
|
402 |
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
|
403 |
< $srcdir/po/POTFILES.in > po/POTFILES |
|
404 |
]) |
|
405 |
||
406 |
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) |
|
407 |
# ------------------------------- |
|
408 |
# Define VARIABLE to the location where catalog files will |
|
409 |
# be installed by po/Makefile. |
|
410 |
glib_DEFUN([GLIB_DEFINE_LOCALEDIR], |
|
411 |
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl |
|
412 |
glib_save_prefix="$prefix" |
|
413 |
glib_save_exec_prefix="$exec_prefix" |
|
414 |
glib_save_datarootdir="$datarootdir" |
|
415 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
416 |
test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
|
417 |
datarootdir=`eval echo "${datarootdir}"` |
|
418 |
if test "x$CATOBJEXT" = "x.mo" ; then |
|
419 |
localedir=`eval echo "${libdir}/locale"` |
|
420 |
else
|
|
421 |
localedir=`eval echo "${datadir}/locale"` |
|
422 |
fi
|
|
423 |
prefix="$glib_save_prefix" |
|
424 |
exec_prefix="$glib_save_exec_prefix" |
|
425 |
datarootdir="$glib_save_datarootdir" |
|
426 |
AC_DEFINE_UNQUOTED($1, "$localedir", |
|
427 |
[Define the location where the catalogs will be installed]) |
|
428 |
]) |
|
429 |
||
430 |
dnl
|
|
431 |
dnl Now the definitions that aclocal will find |
|
432 |
dnl
|
|
433 |
ifdef(glib_configure_in,[],[ |
|
434 |
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) |
|
435 |
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) |
|
436 |
])dnl |
|
437 |
||
438 |
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) |
|
439 |
# |
|
440 |
# Create a temporary file with TEST-FILE as its contents and pass the |
|
441 |
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with |
|
442 |
# 0 and perform ACTION-IF-FAIL for any other exit status. |
|
443 |
AC_DEFUN([GLIB_RUN_PROG], |
|
444 |
[cat >conftest.foo <<_ACEOF |
|
445 |
$2
|
|
446 |
_ACEOF
|
|
447 |
if AC_RUN_LOG([$1 conftest.foo]); then |
|
448 |
m4_ifval([$3], [$3], [:]) |
|
449 |
m4_ifvaln([$4], [else $4])dnl |
|
450 |
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD |
|
451 |
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
452 |
fi]) |
1.2.1
by Luke Yelavich
Import upstream version 0.9.13 |
453 |
|
1.1.1
by Daniel T Chen
Import upstream version 0.9.6 |
454 |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
455 |
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
456 |
# |
|
457 |
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
|
458 |
#
|
|
459 |
# This program is free software; you can redistribute it and/or modify |
|
460 |
# it under the terms of the GNU General Public License as published by |
|
461 |
# the Free Software Foundation; either version 2 of the License, or |
|
462 |
# (at your option) any later version. |
|
463 |
#
|
|
464 |
# This program is distributed in the hope that it will be useful, but |
|
465 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
466 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
467 |
# General Public License for more details. |
|
468 |
#
|
|
469 |
# You should have received a copy of the GNU General Public License |
|
470 |
# along with this program; if not, write to the Free Software |
|
471 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
472 |
#
|
|
473 |
# As a special exception to the GNU General Public License, if you |
|
474 |
# distribute this file as part of a program that contains a |
|
475 |
# configuration script generated by Autoconf, you may include it under |
|
476 |
# the same distribution terms that you use for the rest of that program. |
|
477 |
||
478 |
# PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
|
479 |
# ---------------------------------- |
|
480 |
AC_DEFUN([PKG_PROG_PKG_CONFIG], |
|
481 |
[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
|
482 |
m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) |
|
483 |
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl |
|
484 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
|
485 |
AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
|
486 |
fi
|
|
487 |
if test -n "$PKG_CONFIG"; then |
|
488 |
_pkg_min_version=m4_default([$1], [0.9.0]) |
|
489 |
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
|
490 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
|
491 |
AC_MSG_RESULT([yes]) |
|
492 |
else |
|
493 |
AC_MSG_RESULT([no]) |
|
494 |
PKG_CONFIG="" |
|
495 |
fi |
|
496 |
|
|
497 |
fi[]dnl |
|
498 |
])# PKG_PROG_PKG_CONFIG |
|
499 |
||
500 |
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
|
501 |
#
|
|
502 |
# Check to see whether a particular set of modules exists. Similar |
|
503 |
# to PKG_CHECK_MODULES(), but does not set variables or print errors. |
|
504 |
#
|
|
505 |
#
|
|
506 |
# Similar to PKG_CHECK_MODULES, make sure that the first instance of |
|
507 |
# this or PKG_CHECK_MODULES is called, or make sure to call |
|
508 |
# PKG_CHECK_EXISTS manually |
|
509 |
# -------------------------------------------------------------- |
|
510 |
AC_DEFUN([PKG_CHECK_EXISTS], |
|
511 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
|
512 |
if test -n "$PKG_CONFIG" && \ |
|
513 |
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
|
514 |
m4_ifval([$2], [$2], [:]) |
|
515 |
m4_ifvaln([$3], [else |
|
516 |
$3])dnl |
|
517 |
fi]) |
|
518 |
||
519 |
||
520 |
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
|
521 |
# --------------------------------------------- |
|
522 |
m4_define([_PKG_CONFIG], |
|
1.14.3
by Luke Yelavich
Import upstream version 0.9.16 |
523 |
[if test -n "$$1"; then |
524 |
pkg_cv_[]$1="$$1" |
|
525 |
elif test -n "$PKG_CONFIG"; then |
|
526 |
PKG_CHECK_EXISTS([$3], |
|
527 |
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], |
|
528 |
[pkg_failed=yes]) |
|
529 |
else |
|
530 |
pkg_failed=untried |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
531 |
fi[]dnl |
532 |
])# _PKG_CONFIG |
|
533 |
||
534 |
# _PKG_SHORT_ERRORS_SUPPORTED |
|
535 |
# ----------------------------- |
|
536 |
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
|
537 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
|
538 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
|
539 |
_pkg_short_errors_supported=yes |
|
540 |
else
|
|
541 |
_pkg_short_errors_supported=no |
|
542 |
fi[]dnl |
|
543 |
])# _PKG_SHORT_ERRORS_SUPPORTED |
|
544 |
||
545 |
||
546 |
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
|
547 |
# [ACTION-IF-NOT-FOUND]) |
|
548 |
#
|
|
549 |
#
|
|
550 |
# Note that if there is a possibility the first call to |
|
551 |
# PKG_CHECK_MODULES might not happen, you should be sure to include an |
|
552 |
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
|
553 |
#
|
|
554 |
#
|
|
555 |
# -------------------------------------------------------------- |
|
556 |
AC_DEFUN([PKG_CHECK_MODULES], |
|
557 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
|
558 |
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
|
559 |
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
|
560 |
||
561 |
pkg_failed=no |
|
562 |
AC_MSG_CHECKING([for $1]) |
|
563 |
||
564 |
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) |
|
565 |
_PKG_CONFIG([$1][_LIBS], [libs], [$2]) |
|
566 |
||
567 |
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS |
|
568 |
and $1[]_LIBS to avoid the need to call pkg-config. |
|
569 |
See the pkg-config man page for more details.]) |
|
570 |
||
571 |
if test $pkg_failed = yes; then |
|
572 |
_PKG_SHORT_ERRORS_SUPPORTED |
|
573 |
if test $_pkg_short_errors_supported = yes; then |
|
1.14.3
by Luke Yelavich
Import upstream version 0.9.16 |
574 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` |
1
by Oliver Grawert
Import upstream version 0.9.5 |
575 |
else |
1.14.3
by Luke Yelavich
Import upstream version 0.9.16 |
576 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` |
1
by Oliver Grawert
Import upstream version 0.9.5 |
577 |
fi |
578 |
# Put the nasty error message in config.log where it belongs |
|
579 |
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
|
580 |
||
581 |
ifelse([$4], , [AC_MSG_ERROR(dnl |
|
582 |
[Package requirements ($2) were not met:
|
|
583 |
||
584 |
$$1_PKG_ERRORS
|
|
585 |
||
586 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
587 |
installed software in a non-standard prefix.
|
|
588 |
||
589 |
_PKG_TEXT
|
|
590 |
])], |
|
1.1.1
by Daniel T Chen
Import upstream version 0.9.6 |
591 |
[AC_MSG_RESULT([no]) |
592 |
$4]) |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
593 |
elif test $pkg_failed = untried; then |
594 |
ifelse([$4], , [AC_MSG_FAILURE(dnl |
|
595 |
[The pkg-config script could not be found or is too old. Make sure it
|
|
596 |
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
597 |
path to pkg-config.
|
|
598 |
||
599 |
_PKG_TEXT
|
|
600 |
||
1.1.2
by Daniel T Chen
Import upstream version 0.9.7 |
601 |
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], |
1
by Oliver Grawert
Import upstream version 0.9.5 |
602 |
[$4]) |
603 |
else
|
|
604 |
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
|
605 |
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
|
606 |
AC_MSG_RESULT([yes]) |
|
607 |
ifelse([$3], , :, [$3]) |
|
608 |
fi[]dnl |
|
609 |
])# PKG_CHECK_MODULES |
|
610 |
||
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
611 |
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
1
by Oliver Grawert
Import upstream version 0.9.5 |
612 |
#
|
613 |
# This file is free software; the Free Software Foundation |
|
614 |
# gives unlimited permission to copy and/or distribute it, |
|
615 |
# with or without modifications, as long as this notice is preserved. |
|
616 |
||
617 |
# AM_AUTOMAKE_VERSION(VERSION) |
|
618 |
# ---------------------------- |
|
619 |
# Automake X.Y traces this macro to ensure aclocal.m4 has been |
|
620 |
# generated from the m4 files accompanying Automake X.Y. |
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
621 |
# (This private macro should not be called outside this file.) |
622 |
AC_DEFUN([AM_AUTOMAKE_VERSION], |
|
72
by Luke Yelavich
* New upstream release |
623 |
[am__api_version='1.11' |
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
624 |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
625 |
dnl require some minimum version. Point them to the right macro.
|
|
72
by Luke Yelavich
* New upstream release |
626 |
m4_if([$1], [1.11], [], |
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
627 |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
628 |
]) |
|
629 |
||
630 |
# _AM_AUTOCONF_VERSION(VERSION) |
|
631 |
# ----------------------------- |
|
632 |
# aclocal traces this macro to find the Autoconf version. |
|
633 |
# This is a private macro too. Using m4_define simplifies |
|
634 |
# the logic in aclocal, which can simply ignore this definition. |
|
635 |
m4_define([_AM_AUTOCONF_VERSION], []) |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
636 |
|
637 |
# AM_SET_CURRENT_AUTOMAKE_VERSION |
|
638 |
# ------------------------------- |
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
639 |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
640 |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
1
by Oliver Grawert
Import upstream version 0.9.5 |
641 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
72
by Luke Yelavich
* New upstream release |
642 |
[AM_AUTOMAKE_VERSION([1.11])dnl |
1.1.5
by Luke Yelavich
Import upstream version 0.9.10 |
643 |
m4_ifndef([AC_AUTOCONF_VERSION], |
644 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
|
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
645 |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
1
by Oliver Grawert
Import upstream version 0.9.5 |
646 |
|
647 |
# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
|
648 |
||
649 |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
|
650 |
#
|
|
651 |
# This file is free software; the Free Software Foundation |
|
652 |
# gives unlimited permission to copy and/or distribute it, |
|
653 |
# with or without modifications, as long as this notice is preserved. |
|
654 |
||
655 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
|
656 |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
|
657 |
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
|
658 |
#
|
|
659 |
# Of course, Automake must honor this variable whenever it calls a |
|
660 |
# tool from the auxiliary directory. The problem is that $srcdir (and |
|
661 |
# therefore $ac_aux_dir as well) can be either absolute or relative, |
|
662 |
# depending on how configure is run. This is pretty annoying, since |
|
663 |
# it makes $ac_aux_dir quite unusable in subdirectories: in the top |
|
664 |
# source directory, any form will work fine, but in subdirectories a |
|
665 |
# relative path needs to be adjusted first. |
|
666 |
#
|
|
667 |
# $ac_aux_dir/missing |
|
668 |
# fails when called from a subdirectory if $ac_aux_dir is relative |
|
669 |
# $top_srcdir/$ac_aux_dir/missing |
|
670 |
# fails if $ac_aux_dir is absolute, |
|
671 |
# fails when called from a subdirectory in a VPATH build with |
|
672 |
# a relative $ac_aux_dir |
|
673 |
#
|
|
674 |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
|
675 |
# are both prefixed by $srcdir. In an in-source build this is usually |
|
676 |
# harmless because $srcdir is `.', but things will broke when you |
|
677 |
# start a VPATH build or use an absolute $srcdir.
|
|
678 |
#
|
|
679 |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
680 |
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
681 |
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
|
682 |
# and then we would define $MISSING as
|
|
683 |
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
684 |
# This will work as long as MISSING is not called from configure, because
|
|
685 |
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
686 |
# However there are other variables, like CC, which are often used in
|
|
687 |
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
688 |
#
|
|
689 |
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
690 |
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
691 |
# configured tree to be moved without reconfiguration.
|
|
692 |
||
693 |
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
694 |
[dnl Rely on autoconf to set up CDPATH properly.
|
|
695 |
AC_PREREQ([2.50])dnl
|
|
696 |
# expand $ac_aux_dir to an absolute path
|
|
697 |
am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
698 |
])
|
|
699 |
||
700 |
# AM_CONDITIONAL -*- Autoconf -*-
|
|
701 |
||
72
by Luke Yelavich
* New upstream release |
702 |
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
703 |
# Free Software Foundation, Inc.
|
704 |
#
|
|
705 |
# This file is free software; the Free Software Foundation
|
|
706 |
# gives unlimited permission to copy and/or distribute it,
|
|
707 |
# with or without modifications, as long as this notice is preserved.
|
|
708 |
||
72
by Luke Yelavich
* New upstream release |
709 |
# serial 9
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
710 |
|
711 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
712 |
# -------------------------------------
|
|
713 |
# Define a conditional.
|
|
714 |
AC_DEFUN([AM_CONDITIONAL],
|
|
715 |
[AC_PREREQ(2.52)dnl
|
|
716 |
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
717 |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
718 |
AC_SUBST([$1_TRUE])dnl
|
719 |
AC_SUBST([$1_FALSE])dnl
|
|
720 |
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
721 |
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
72
by Luke Yelavich
* New upstream release |
722 |
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
723 |
if $2; then
|
724 |
$1_TRUE=
|
|
725 |
$1_FALSE='#' |
|
726 |
else
|
|
727 |
$1_TRUE='#' |
|
728 |
$1_FALSE=
|
|
729 |
fi
|
|
730 |
AC_CONFIG_COMMANDS_PRE(
|
|
731 |
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
732 |
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
733 |
Usually this means the macro was only invoked conditionally.]])
|
|
734 |
fi])])
|
|
735 |
||
72
by Luke Yelavich
* New upstream release |
736 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
737 |
# Free Software Foundation, Inc.
|
738 |
#
|
|
739 |
# This file is free software; the Free Software Foundation
|
|
740 |
# gives unlimited permission to copy and/or distribute it,
|
|
741 |
# with or without modifications, as long as this notice is preserved.
|
|
742 |
||
72
by Luke Yelavich
* New upstream release |
743 |
# serial 10
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
744 |
|
745 |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
|
746 |
# written in clear, in which case automake, when reading aclocal.m4, |
|
747 |
# will think it sees a *use*, and therefore will trigger all it's |
|
748 |
# C support machinery. Also note that it means that autoscan, seeing
|
|
749 |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
750 |
||
751 |
||
752 |
# _AM_DEPENDENCIES(NAME)
|
|
753 |
# ----------------------
|
|
754 |
# See how the compiler implements dependency checking.
|
|
755 |
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
|
756 |
# We try a few techniques and use that to set a single cache variable.
|
|
757 |
#
|
|
758 |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
|
759 |
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
|
760 |
# dependency, and given that the user is not expected to run this macro, |
|
761 |
# just rely on AC_PROG_CC. |
|
762 |
AC_DEFUN([_AM_DEPENDENCIES], |
|
763 |
[AC_REQUIRE([AM_SET_DEPDIR])dnl |
|
764 |
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
|
765 |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
|
766 |
AC_REQUIRE([AM_DEP_TRACK])dnl |
|
767 |
||
768 |
ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
|
769 |
[$1], CXX, [depcc="$CXX" am_compiler_list=], |
|
770 |
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
771 |
[$1], UPC, [depcc="$UPC" am_compiler_list=], |
1
by Oliver Grawert
Import upstream version 0.9.5 |
772 |
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
773 |
[depcc="$$1" am_compiler_list=]) |
|
774 |
||
775 |
AC_CACHE_CHECK([dependency style of $depcc], |
|
776 |
[am_cv_$1_dependencies_compiler_type], |
|
777 |
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
778 |
# We make a subdir and do the tests there. Otherwise we can end up
|
|
779 |
# making bogus files that we don't know about and never remove. For
|
|
780 |
# instance it was reported that on HP-UX the gcc test will end up
|
|
781 |
# making a dummy file named `D' -- because `-MD' means `put the output
|
|
782 |
# in D'.
|
|
783 |
mkdir conftest.dir
|
|
784 |
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
785 |
# using a relative directory.
|
|
786 |
cp "$am_depcomp" conftest.dir
|
|
787 |
cd conftest.dir
|
|
788 |
# We will build objects and dependencies in a subdirectory because
|
|
789 |
# it helps to detect inapplicable dependency modes. For instance
|
|
790 |
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
791 |
# side effect of compilation, but ICC will put the dependencies in
|
|
792 |
# the current directory while Tru64 will put them in the object
|
|
793 |
# directory.
|
|
794 |
mkdir sub
|
|
795 |
||
796 |
am_cv_$1_dependencies_compiler_type=none
|
|
797 |
if test "$am_compiler_list" = ""; then
|
|
798 |
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
|
799 |
fi
|
|
72
by Luke Yelavich
* New upstream release |
800 |
am__universal=false
|
801 |
m4_case([$1], [CC],
|
|
802 |
[case " $depcc " in #(
|
|
803 |
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
804 |
esac],
|
|
805 |
[CXX],
|
|
806 |
[case " $depcc " in #(
|
|
807 |
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
808 |
esac])
|
|
809 |
||
1
by Oliver Grawert
Import upstream version 0.9.5 |
810 |
for depmode in $am_compiler_list; do
|
811 |
# Setup a source with many dependencies, because some compilers
|
|
812 |
# like to wrap large dependency lists on column 80 (with \), and
|
|
813 |
# we should not choose a depcomp mode which is confused by this.
|
|
814 |
#
|
|
815 |
# We need to recreate these files for each test, as the compiler may
|
|
816 |
# overwrite some of them when testing with obscure command lines.
|
|
817 |
# This happens at least with the AIX C compiler.
|
|
818 |
: > sub/conftest.c
|
|
819 |
for i in 1 2 3 4 5 6; do
|
|
820 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
821 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
822 |
# Solaris 8's {/usr,}/bin/sh. |
|
823 |
touch sub/conftst$i.h
|
|
824 |
done
|
|
825 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
826 |
||
72
by Luke Yelavich
* New upstream release |
827 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
828 |
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
829 |
# handle `-M -o', and we need to detect this. Also, some Intel |
|
830 |
# versions had trouble with output in subdirs |
|
831 |
am__obj=sub/conftest.${OBJEXT-o} |
|
832 |
am__minus_obj="-o $am__obj" |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
833 |
case $depmode in |
72
by Luke Yelavich
* New upstream release |
834 |
gcc) |
835 |
# This depmode causes a compiler race in universal mode. |
|
836 |
test "$am__universal" = false || continue |
|
837 |
;; |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
838 |
nosideeffect) |
839 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
840 |
# only be used when explicitly requested
|
|
841 |
if test "x$enable_dependency_tracking" = xyes; then
|
|
842 |
continue
|
|
843 |
else
|
|
844 |
break
|
|
845 |
fi
|
|
846 |
;;
|
|
72
by Luke Yelavich
* New upstream release |
847 |
msvisualcpp | msvcmsys)
|
848 |
# This compiler won't grok `-c -o', but also, the minuso test has |
|
849 |
# not run yet. These depmodes are late enough in the game, and
|
|
850 |
# so weak that their functioning should not be impacted.
|
|
851 |
am__obj=conftest.${OBJEXT-o}
|
|
852 |
am__minus_obj=
|
|
853 |
;;
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
854 |
none) break ;;
|
855 |
esac
|
|
856 |
if depmode=$depmode \
|
|
72
by Luke Yelavich
* New upstream release |
857 |
source=sub/conftest.c object=$am__obj \
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
858 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
72
by Luke Yelavich
* New upstream release |
859 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
860 |
>/dev/null 2>conftest.err &&
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
861 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
862 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
72
by Luke Yelavich
* New upstream release |
863 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
864 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
865 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
866 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
867 |
# that says an option was ignored or not supported. |
|
868 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
869 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
870 |
# The diagnosis changed in icc 8.0: |
|
871 |
# icc: Command line remark: option '-MP' not supported |
|
872 |
if (grep 'ignoring option' conftest.err || |
|
873 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
874 |
am_cv_$1_dependencies_compiler_type=$depmode |
|
875 |
break |
|
876 |
fi |
|
877 |
fi |
|
878 |
done |
|
879 |
||
880 |
cd .. |
|
881 |
rm -rf conftest.dir |
|
882 |
else
|
|
883 |
am_cv_$1_dependencies_compiler_type=none |
|
884 |
fi
|
|
885 |
]) |
|
886 |
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
|
887 |
AM_CONDITIONAL([am__fastdep$1], [ |
|
888 |
test "x$enable_dependency_tracking" != xno \
|
|
889 |
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
|
890 |
]) |
|
891 |
||
892 |
||
893 |
# AM_SET_DEPDIR |
|
894 |
# ------------- |
|
895 |
# Choose a directory name for dependency files. |
|
896 |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
|
897 |
AC_DEFUN([AM_SET_DEPDIR], |
|
898 |
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|
899 |
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
|
900 |
]) |
|
901 |
||
902 |
||
903 |
# AM_DEP_TRACK |
|
904 |
# ------------ |
|
905 |
AC_DEFUN([AM_DEP_TRACK], |
|
906 |
[AC_ARG_ENABLE(dependency-tracking, |
|
907 |
[ --disable-dependency-tracking speeds up one-time build
|
|
908 |
--enable-dependency-tracking do not reject slow dependency extractors]) |
|
909 |
if test "x$enable_dependency_tracking" != xno; then |
|
910 |
am_depcomp="$ac_aux_dir/depcomp" |
|
911 |
AMDEPBACKSLASH='\' |
|
912 |
fi
|
|
913 |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
914 |
AC_SUBST([AMDEPBACKSLASH])dnl |
915 |
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
916 |
]) |
917 |
||
918 |
# Generate code to set up dependency tracking. -*- Autoconf -*- |
|
919 |
||
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
920 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
1
by Oliver Grawert
Import upstream version 0.9.5 |
921 |
# Free Software Foundation, Inc. |
922 |
#
|
|
923 |
# This file is free software; the Free Software Foundation |
|
924 |
# gives unlimited permission to copy and/or distribute it, |
|
925 |
# with or without modifications, as long as this notice is preserved. |
|
926 |
||
72
by Luke Yelavich
* New upstream release |
927 |
#serial 5 |
1
by Oliver Grawert
Import upstream version 0.9.5 |
928 |
|
929 |
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
930 |
# ------------------------------ |
|
931 |
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
72
by Luke Yelavich
* New upstream release |
932 |
[{ |
933 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files
|
|
934 |
# are listed without --file. Let's play safe and only enable the eval
|
|
935 |
# if we detect the quoting.
|
|
936 |
case $CONFIG_FILES in
|
|
937 |
*\'*) eval set x "$CONFIG_FILES" ;;
|
|
938 |
*) set x $CONFIG_FILES ;;
|
|
939 |
esac
|
|
940 |
shift
|
|
941 |
for mf
|
|
942 |
do
|
|
943 |
# Strip MF so we end up with the name of the file.
|
|
944 |
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
945 |
# Check whether this is an Automake generated Makefile or not.
|
|
946 |
# We used to match only the files named `Makefile.in', but
|
|
947 |
# some people rename them; so instead we look at the file content.
|
|
948 |
# Grep'ing the first line is not enough: some people post-process
|
|
949 |
# each Makefile.in and add a new line on top of each file to say so.
|
|
950 |
# Grep'ing the whole file is not good either: AIX grep has a line
|
|
951 |
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
952 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
953 |
dirpart=`AS_DIRNAME("$mf")`
|
|
954 |
else
|
|
955 |
continue
|
|
956 |
fi
|
|
957 |
# Extract the definition of DEPDIR, am__include, and am__quote
|
|
958 |
# from the Makefile without running `make'.
|
|
959 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
960 |
test -z "$DEPDIR" && continue
|
|
961 |
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
962 |
test -z "am__include" && continue
|
|
963 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
964 |
# When using ansi2knr, U may be empty or an underscore; expand it
|
|
965 |
U=`sed -n 's/^U = //p' < "$mf"`
|
|
966 |
# Find all dependency output files, they are included files with
|
|
967 |
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
968 |
# simplest approach to changing $(DEPDIR) to its actual value in the
|
|
969 |
# expansion.
|
|
970 |
for file in `sed -n "
|
|
971 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
972 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
|
973 |
# Make sure the directory exists.
|
|
974 |
test -f "$dirpart/$file" && continue
|
|
975 |
fdir=`AS_DIRNAME(["$file"])` |
|
976 |
AS_MKDIR_P([$dirpart/$fdir]) |
|
977 |
# echo "creating $dirpart/$file" |
|
978 |
echo '# dummy' > "$dirpart/$file" |
|
979 |
done |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
980 |
done |
72
by Luke Yelavich
* New upstream release |
981 |
}
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
982 |
])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
983 |
||
984 |
||
985 |
# AM_OUTPUT_DEPENDENCY_COMMANDS |
|
986 |
# ----------------------------- |
|
987 |
# This macro should only be invoked once -- use via AC_REQUIRE. |
|
988 |
#
|
|
989 |
# This code is only required when automatic dependency tracking |
|
990 |
# is enabled. FIXME. This creates each `.P' file that we will |
|
991 |
# need in order to bootstrap the dependency handling code.
|
|
992 |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
993 |
[AC_CONFIG_COMMANDS([depfiles],
|
|
994 |
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
995 |
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|
996 |
])
|
|
997 |
||
998 |
# Do all the work for Automake. -*- Autoconf -*-
|
|
999 |
||
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1000 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
72
by Luke Yelavich
* New upstream release |
1001 |
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1002 |
#
|
1003 |
# This file is free software; the Free Software Foundation
|
|
1004 |
# gives unlimited permission to copy and/or distribute it,
|
|
1005 |
# with or without modifications, as long as this notice is preserved.
|
|
1006 |
||
72
by Luke Yelavich
* New upstream release |
1007 |
# serial 16
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1008 |
|
1009 |
# This macro actually does too much. Some checks are only needed if
|
|
1010 |
# your package does certain things. But this isn't really a big deal. |
|
1011 |
||
1012 |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
|
1013 |
# AM_INIT_AUTOMAKE([OPTIONS]) |
|
1014 |
# ----------------------------------------------- |
|
1015 |
# The call with PACKAGE and VERSION arguments is the old style |
|
1016 |
# call (pre autoconf-2.50), which is being phased out. PACKAGE |
|
1017 |
# and VERSION should now be passed to AC_INIT and removed from |
|
1018 |
# the call to AM_INIT_AUTOMAKE. |
|
1019 |
# We support both call styles for the transition. After |
|
1020 |
# the next Automake release, Autoconf can make the AC_INIT |
|
1021 |
# arguments mandatory, and then we can depend on a new Autoconf |
|
1022 |
# release and drop the old call support. |
|
1023 |
AC_DEFUN([AM_INIT_AUTOMAKE], |
|
72
by Luke Yelavich
* New upstream release |
1024 |
[AC_PREREQ([2.62])dnl |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1025 |
dnl Autoconf wants to disallow AM_ names. We explicitly allow |
1026 |
dnl the ones we care about. |
|
1027 |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
|
1028 |
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
|
1029 |
AC_REQUIRE([AC_PROG_INSTALL])dnl |
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1030 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
1031 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
|
1032 |
# is not polluted with repeated "-I."
|
|
1033 |
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
|
1034 |
# test to see if srcdir already configured
|
|
1035 |
if test -f $srcdir/config.status; then
|
|
1036 |
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
1037 |
fi
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1038 |
fi
|
1039 |
||
1040 |
# test whether we have cygpath
|
|
1041 |
if test -z "$CYGPATH_W"; then
|
|
1042 |
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
1043 |
CYGPATH_W='cygpath -w' |
|
1044 |
else
|
|
1045 |
CYGPATH_W=echo
|
|
1046 |
fi
|
|
1047 |
fi
|
|
1048 |
AC_SUBST([CYGPATH_W])
|
|
1049 |
||
1050 |
# Define the identity of the package.
|
|
1051 |
dnl Distinguish between old-style and new-style calls.
|
|
1052 |
m4_ifval([$2],
|
|
1053 |
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
1054 |
AC_SUBST([PACKAGE], [$1])dnl
|
|
1055 |
AC_SUBST([VERSION], [$2])],
|
|
1056 |
[_AM_SET_OPTIONS([$1])dnl
|
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1057 |
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
1058 |
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
|
1059 |
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1060 |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
1061 |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
|
1062 |
||
1063 |
_AM_IF_OPTION([no-define],,
|
|
1064 |
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
|
1065 |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
|
1066 |
||
1067 |
# Some tools Automake needs.
|
|
1068 |
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
1069 |
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
1070 |
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
|
1071 |
AM_MISSING_PROG(AUTOCONF, autoconf)
|
|
1072 |
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
|
1073 |
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
|
1074 |
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
|
72
by Luke Yelavich
* New upstream release |
1075 |
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
1076 |
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1077 |
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
1078 |
# We need awk for the "check" target. The system "awk" is bad on
|
|
1079 |
# some platforms.
|
|
1080 |
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
1081 |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
1082 |
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
1083 |
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
72
by Luke Yelavich
* New upstream release |
1084 |
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
1085 |
[_AM_PROG_TAR([v7])])])
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1086 |
_AM_IF_OPTION([no-dependencies],,
|
1087 |
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
72
by Luke Yelavich
* New upstream release |
1088 |
[_AM_DEPENDENCIES(CC)],
|
1089 |
[define([AC_PROG_CC],
|
|
1090 |
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1091 |
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
72
by Luke Yelavich
* New upstream release |
1092 |
[_AM_DEPENDENCIES(CXX)],
|
1093 |
[define([AC_PROG_CXX],
|
|
1094 |
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1095 |
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
72
by Luke Yelavich
* New upstream release |
1096 |
[_AM_DEPENDENCIES(OBJC)],
|
1097 |
[define([AC_PROG_OBJC],
|
|
1098 |
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
|
1099 |
])
|
|
1100 |
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
|
|
1101 |
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the |
|
1102 |
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro |
|
1103 |
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
1104 |
AC_CONFIG_COMMANDS_PRE(dnl
|
|
1105 |
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
1106 |
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
1107 |
])
|
|
1108 |
||
1109 |
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
|
1110 |
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
|
1111 |
dnl mangled by Autoconf and run in a shell conditional statement. |
|
1112 |
m4_define([_AC_COMPILER_EXEEXT], |
|
1113 |
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1114 |
|
1115 |
||
1116 |
# When config.status generates a header, we must update the stamp-h file. |
|
1117 |
# This file resides in the same directory as the config header |
|
1118 |
# that is generated. The stamp files are numbered to have different names. |
|
1119 |
||
1120 |
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
|
1121 |
# loop where config.status creates the headers, so we can generate |
|
1122 |
# our stamp files there. |
|
1123 |
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
|
1124 |
[# Compute $1's index in $config_headers. |
|
1.1.5
by Luke Yelavich
Import upstream version 0.9.10 |
1125 |
_am_arg=$1
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1126 |
_am_stamp_count=1
|
1127 |
for _am_header in $config_headers :; do
|
|
1128 |
case $_am_header in
|
|
1.1.5
by Luke Yelavich
Import upstream version 0.9.10 |
1129 |
$_am_arg | $_am_arg:* )
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1130 |
break ;;
|
1131 |
* )
|
|
1132 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
1133 |
esac
|
|
1134 |
done
|
|
1.1.5
by Luke Yelavich
Import upstream version 0.9.10 |
1135 |
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1136 |
|
72
by Luke Yelavich
* New upstream release |
1137 |
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1138 |
#
|
1139 |
# This file is free software; the Free Software Foundation |
|
1140 |
# gives unlimited permission to copy and/or distribute it, |
|
1141 |
# with or without modifications, as long as this notice is preserved. |
|
1142 |
||
1143 |
# AM_PROG_INSTALL_SH |
|
1144 |
# ------------------ |
|
1145 |
# Define $install_sh. |
|
1146 |
AC_DEFUN([AM_PROG_INSTALL_SH], |
|
1147 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
72
by Luke Yelavich
* New upstream release |
1148 |
if test x"${install_sh}" != xset; then |
1149 |
case $am_aux_dir in |
|
1150 |
*\ * | *\ *) |
|
1151 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
|
1152 |
*) |
|
1153 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
|
1154 |
esac |
|
1155 |
fi
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1156 |
AC_SUBST(install_sh)]) |
1157 |
||
1158 |
# Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
|
1159 |
#
|
|
1160 |
# This file is free software; the Free Software Foundation |
|
1161 |
# gives unlimited permission to copy and/or distribute it, |
|
1162 |
# with or without modifications, as long as this notice is preserved. |
|
1163 |
||
1164 |
# serial 2 |
|
1165 |
||
1166 |
# Check whether the underlying file-system supports filenames |
|
1167 |
# with a leading dot. For instance MS-DOS doesn't. |
|
1168 |
AC_DEFUN([AM_SET_LEADING_DOT],
|
|
1169 |
[rm -rf .tst 2>/dev/null
|
|
1170 |
mkdir .tst 2>/dev/null
|
|
1171 |
if test -d .tst; then
|
|
1172 |
am__leading_dot=.
|
|
1173 |
else
|
|
1174 |
am__leading_dot=_
|
|
1175 |
fi
|
|
1176 |
rmdir .tst 2>/dev/null
|
|
1177 |
AC_SUBST([am__leading_dot])])
|
|
1178 |
||
1179 |
# Check to see how 'make' treats includes. -*- Autoconf -*- |
|
1180 |
||
72
by Luke Yelavich
* New upstream release |
1181 |
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1182 |
#
|
1183 |
# This file is free software; the Free Software Foundation
|
|
1184 |
# gives unlimited permission to copy and/or distribute it,
|
|
1185 |
# with or without modifications, as long as this notice is preserved.
|
|
1186 |
||
72
by Luke Yelavich
* New upstream release |
1187 |
# serial 4
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1188 |
|
1189 |
# AM_MAKE_INCLUDE()
|
|
1190 |
# -----------------
|
|
1191 |
# Check to see how make treats includes.
|
|
1192 |
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
1193 |
[am_make=${MAKE-make}
|
|
1194 |
cat > confinc << 'END' |
|
1195 |
am__doit:
|
|
72
by Luke Yelavich
* New upstream release |
1196 |
@echo this is the am__doit target
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1197 |
.PHONY: am__doit
|
1198 |
END
|
|
1199 |
# If we don't find an include directive, just comment out the code. |
|
1200 |
AC_MSG_CHECKING([for style of include used by $am_make]) |
|
1201 |
am__include="#" |
|
1202 |
am__quote= |
|
1203 |
_am_result=none |
|
1204 |
# First try GNU make style include. |
|
1205 |
echo "include confinc" > confmf |
|
72
by Luke Yelavich
* New upstream release |
1206 |
# Ignore all kinds of additional output from `make'. |
1207 |
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
1208 |
*the\ am__doit\ target*)
|
|
1209 |
am__include=include
|
|
1210 |
am__quote=
|
|
1211 |
_am_result=GNU
|
|
1212 |
;;
|
|
1213 |
esac
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1214 |
# Now try BSD make style include.
|
1215 |
if test "$am__include" = "#"; then
|
|
1216 |
echo '.include "confinc"' > confmf |
|
72
by Luke Yelavich
* New upstream release |
1217 |
case `$am_make -s -f confmf 2> /dev/null` in #(
|
1218 |
*the\ am__doit\ target*)
|
|
1219 |
am__include=.include
|
|
1220 |
am__quote="\""
|
|
1221 |
_am_result=BSD
|
|
1222 |
;;
|
|
1223 |
esac
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1224 |
fi
|
1225 |
AC_SUBST([am__include])
|
|
1226 |
AC_SUBST([am__quote])
|
|
1227 |
AC_MSG_RESULT([$_am_result])
|
|
1228 |
rm -f confinc confmf
|
|
1229 |
])
|
|
1230 |
||
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
1231 |
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1232 |
# Free Software Foundation, Inc.
|
1.1.2
by Daniel T Chen
Import upstream version 0.9.7 |
1233 |
#
|
1234 |
# This file is free software; the Free Software Foundation
|
|
1235 |
# gives unlimited permission to copy and/or distribute it,
|
|
1236 |
# with or without modifications, as long as this notice is preserved.
|
|
1237 |
||
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
1238 |
# serial 6
|
1.1.2
by Daniel T Chen
Import upstream version 0.9.7 |
1239 |
|
1240 |
# AM_PROG_CC_C_O
|
|
1241 |
# --------------
|
|
1242 |
# Like AC_PROG_CC_C_O, but changed for automake.
|
|
1243 |
AC_DEFUN([AM_PROG_CC_C_O],
|
|
1244 |
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
|
|
1245 |
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1246 |
AC_REQUIRE_AUX_FILE([compile])dnl
|
1.1.2
by Daniel T Chen
Import upstream version 0.9.7 |
1247 |
# FIXME: we rely on the cache variable name because
|
1248 |
# there is no other way.
|
|
1249 |
set dummy $CC
|
|
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
1250 |
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` |
1251 |
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
|
|
1252 |
if test "$am_t" != yes; then
|
|
1.1.2
by Daniel T Chen
Import upstream version 0.9.7 |
1253 |
# Losing compiler, so override with the script.
|
1254 |
# FIXME: It is wrong to rewrite CC.
|
|
1255 |
# But if we don't then we get into trouble of one sort or another. |
|
1256 |
# A longer-term fix would be to have automake use am__CC in this case, |
|
1257 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
|
1258 |
CC="$am_aux_dir/compile $CC" |
|
1259 |
fi
|
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1260 |
dnl Make sure AC_PROG_CC is never called again, or it will override our |
1261 |
dnl setting of CC. |
|
1262 |
m4_define([AC_PROG_CC], |
|
1263 |
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) |
|
1.1.2
by Daniel T Chen
Import upstream version 0.9.7 |
1264 |
]) |
1265 |
||
1
by Oliver Grawert
Import upstream version 0.9.5 |
1266 |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
1267 |
||
72
by Luke Yelavich
* New upstream release |
1268 |
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1269 |
# Free Software Foundation, Inc. |
1270 |
#
|
|
1271 |
# This file is free software; the Free Software Foundation |
|
1272 |
# gives unlimited permission to copy and/or distribute it, |
|
1273 |
# with or without modifications, as long as this notice is preserved. |
|
1274 |
||
72
by Luke Yelavich
* New upstream release |
1275 |
# serial 6 |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1276 |
|
1277 |
# AM_MISSING_PROG(NAME, PROGRAM) |
|
1278 |
# ------------------------------ |
|
1279 |
AC_DEFUN([AM_MISSING_PROG], |
|
1280 |
[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
|
1281 |
$1=${$1-"${am_missing_run}$2"} |
|
1282 |
AC_SUBST($1)]) |
|
1283 |
||
1284 |
||
1285 |
# AM_MISSING_HAS_RUN |
|
1286 |
# ------------------ |
|
1287 |
# Define MISSING if not defined so far and test if it supports --run. |
|
1288 |
# If it does, set am_missing_run to use it, otherwise, to nothing. |
|
1289 |
AC_DEFUN([AM_MISSING_HAS_RUN], |
|
1290 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1291 |
AC_REQUIRE_AUX_FILE([missing])dnl |
72
by Luke Yelavich
* New upstream release |
1292 |
if test x"${MISSING+set}" != xset; then |
1293 |
case $am_aux_dir in |
|
1294 |
*\ * | *\ *) |
|
1295 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
|
1296 |
*) |
|
1297 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
|
1298 |
esac |
|
1299 |
fi
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1300 |
# Use eval to expand $SHELL |
1301 |
if eval "$MISSING --run true"; then |
|
1302 |
am_missing_run="$MISSING --run " |
|
1303 |
else
|
|
1304 |
am_missing_run= |
|
1305 |
AC_MSG_WARN([`missing' script is too old or missing]) |
|
1306 |
fi
|
|
1307 |
]) |
|
1308 |
||
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1309 |
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1310 |
#
|
1311 |
# This file is free software; the Free Software Foundation |
|
1312 |
# gives unlimited permission to copy and/or distribute it, |
|
1313 |
# with or without modifications, as long as this notice is preserved. |
|
1314 |
||
1315 |
# AM_PROG_MKDIR_P |
|
1316 |
# --------------- |
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1317 |
# Check for `mkdir -p'. |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1318 |
AC_DEFUN([AM_PROG_MKDIR_P],
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1319 |
[AC_PREREQ([2.60])dnl
|
1320 |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
1321 |
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
|
1322 |
dnl while keeping a definition of mkdir_p for backward compatibility.
|
|
1323 |
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
|
1324 |
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
|
1325 |
dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
|
1326 |
dnl adjustment using top_builddir (which is defined more often than
|
|
1327 |
dnl MKDIR_P).
|
|
1328 |
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
|
1329 |
case $mkdir_p in
|
|
1330 |
[[\\/$]]* | ?:[[\\/]]*) ;;
|
|
1331 |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
|
1332 |
esac
|
|
1333 |
])
|
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1334 |
|
1335 |
# Helper functions for option handling. -*- Autoconf -*-
|
|
1336 |
||
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
1337 |
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1338 |
#
|
1339 |
# This file is free software; the Free Software Foundation
|
|
1340 |
# gives unlimited permission to copy and/or distribute it,
|
|
1341 |
# with or without modifications, as long as this notice is preserved.
|
|
1342 |
||
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
1343 |
# serial 4
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1344 |
|
1345 |
# _AM_MANGLE_OPTION(NAME)
|
|
1346 |
# -----------------------
|
|
1347 |
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
1348 |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
1349 |
||
1350 |
# _AM_SET_OPTION(NAME)
|
|
1351 |
# ------------------------------
|
|
1352 |
# Set option NAME. Presently that only means defining a flag for this option.
|
|
1353 |
AC_DEFUN([_AM_SET_OPTION],
|
|
1354 |
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
|
1355 |
||
1356 |
# _AM_SET_OPTIONS(OPTIONS)
|
|
1357 |
# ----------------------------------
|
|
1358 |
# OPTIONS is a space-separated list of Automake options.
|
|
1359 |
AC_DEFUN([_AM_SET_OPTIONS],
|
|
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
1360 |
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1361 |
|
1362 |
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
1363 |
# -------------------------------------------
|
|
1364 |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
1365 |
AC_DEFUN([_AM_IF_OPTION],
|
|
1366 |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
1367 |
||
72
by Luke Yelavich
* New upstream release |
1368 |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
1369 |
#
|
|
1370 |
# This file is free software; the Free Software Foundation
|
|
1371 |
# gives unlimited permission to copy and/or distribute it,
|
|
1372 |
# with or without modifications, as long as this notice is preserved.
|
|
1373 |
||
1374 |
# AM_RUN_LOG(COMMAND)
|
|
1375 |
# -------------------
|
|
1376 |
# Run COMMAND, save the exit status in ac_status, and log it.
|
|
1377 |
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) |
|
1378 |
AC_DEFUN([AM_RUN_LOG], |
|
1379 |
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD |
|
1380 |
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
|
1381 |
ac_status=$?
|
|
1382 |
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
1383 |
(exit $ac_status); }]) |
|
1384 |
||
1
by Oliver Grawert
Import upstream version 0.9.5 |
1385 |
# Check to make sure that the build environment is sane. -*- Autoconf -*- |
1386 |
||
72
by Luke Yelavich
* New upstream release |
1387 |
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1388 |
# Free Software Foundation, Inc. |
1389 |
#
|
|
1390 |
# This file is free software; the Free Software Foundation |
|
1391 |
# gives unlimited permission to copy and/or distribute it, |
|
1392 |
# with or without modifications, as long as this notice is preserved. |
|
1393 |
||
72
by Luke Yelavich
* New upstream release |
1394 |
# serial 5 |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1395 |
|
1396 |
# AM_SANITY_CHECK |
|
1397 |
# --------------- |
|
1398 |
AC_DEFUN([AM_SANITY_CHECK], |
|
1399 |
[AC_MSG_CHECKING([whether build environment is sane]) |
|
1400 |
# Just in case |
|
1401 |
sleep 1 |
|
1402 |
echo timestamp > conftest.file |
|
72
by Luke Yelavich
* New upstream release |
1403 |
# Reject unsafe characters in $srcdir or the absolute working directory |
1404 |
# name. Accept space and tab only in the latter. |
|
1405 |
am_lf=' |
|
1406 |
'
|
|
1407 |
case `pwd` in |
|
1408 |
*[[\\\"\#\$\&\'\`$am_lf]]*) |
|
1409 |
AC_MSG_ERROR([unsafe absolute working directory name]);; |
|
1410 |
esac
|
|
1411 |
case $srcdir in |
|
1412 |
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
|
1413 |
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; |
|
1414 |
esac
|
|
1415 |
||
1
by Oliver Grawert
Import upstream version 0.9.5 |
1416 |
# Do `set' in a subshell so we don't clobber the current shell's |
1417 |
# arguments. Must try -L first in case configure is actually a
|
|
1418 |
# symlink; some systems play weird games with the mod time of symlinks
|
|
1419 |
# (eg FreeBSD returns the mod time of the symlink's containing |
|
1420 |
# directory). |
|
1421 |
if ( |
|
72
by Luke Yelavich
* New upstream release |
1422 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1423 |
if test "$[*]" = "X"; then |
1424 |
# -L didn't work. |
|
72
by Luke Yelavich
* New upstream release |
1425 |
set X `ls -t "$srcdir/configure" conftest.file`
|
1
by Oliver Grawert
Import upstream version 0.9.5 |
1426 |
fi
|
1427 |
rm -f conftest.file
|
|
1428 |
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
1429 |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
1430 |
||
1431 |
# If neither matched, then we have a broken ls. This can happen
|
|
1432 |
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
1433 |
# broken ls alias from the environment. This has actually
|
|
1434 |
# happened. Such a system could not be considered "sane".
|
|
1435 |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
1436 |
alias in your environment])
|
|
1437 |
fi
|
|
1438 |
||
1439 |
test "$[2]" = conftest.file
|
|
1440 |
)
|
|
1441 |
then
|
|
1442 |
# Ok.
|
|
1443 |
:
|
|
1444 |
else
|
|
1445 |
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
1446 |
Check your system clock])
|
|
1447 |
fi
|
|
1448 |
AC_MSG_RESULT(yes)])
|
|
1449 |
||
72
by Luke Yelavich
* New upstream release |
1450 |
# Copyright (C) 2009 Free Software Foundation, Inc.
|
1451 |
#
|
|
1452 |
# This file is free software; the Free Software Foundation
|
|
1453 |
# gives unlimited permission to copy and/or distribute it,
|
|
1454 |
# with or without modifications, as long as this notice is preserved.
|
|
1455 |
||
1456 |
# serial 1
|
|
1457 |
||
1458 |
# AM_SILENT_RULES([DEFAULT])
|
|
1459 |
# --------------------------
|
|
1460 |
# Enable less verbose build rules; with the default set to DEFAULT
|
|
1461 |
# (`yes' being less verbose, `no' or empty being verbose). |
|
1462 |
AC_DEFUN([AM_SILENT_RULES],
|
|
1463 |
[AC_ARG_ENABLE([silent-rules],
|
|
1464 |
[ --enable-silent-rules less verbose build output (undo: `make V=1') |
|
1465 |
--disable-silent-rules verbose build output (undo: `make V=0')]) |
|
1466 |
case $enable_silent_rules in
|
|
1467 |
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
1468 |
no) AM_DEFAULT_VERBOSITY=1;;
|
|
1469 |
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
|
1470 |
esac
|
|
1471 |
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
|
1472 |
AM_BACKSLASH='\' |
|
1473 |
AC_SUBST([AM_BACKSLASH])dnl
|
|
1474 |
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
1475 |
])
|
|
1476 |
||
1
by Oliver Grawert
Import upstream version 0.9.5 |
1477 |
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
1478 |
#
|
|
1479 |
# This file is free software; the Free Software Foundation
|
|
1480 |
# gives unlimited permission to copy and/or distribute it,
|
|
1481 |
# with or without modifications, as long as this notice is preserved.
|
|
1482 |
||
1483 |
# AM_PROG_INSTALL_STRIP
|
|
1484 |
# ---------------------
|
|
1485 |
# One issue with vendor `install' (even GNU) is that you can't |
|
1486 |
# specify the program used to strip binaries. This is especially
|
|
1487 |
# annoying in cross-compiling environments, where the build's strip |
|
1488 |
# is unlikely to handle the host's binaries. |
|
1489 |
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
1490 |
# always use install-sh in `make install-strip', and initialize |
|
1491 |
# STRIPPROG with the value of the STRIP variable (set by the user). |
|
1492 |
AC_DEFUN([AM_PROG_INSTALL_STRIP], |
|
1493 |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
|
1494 |
# Installed binaries are usually stripped using `strip' when the user |
|
1495 |
# run `make install-strip'. However `strip' might not be the right |
|
1496 |
# tool to use in cross-compilation environments, therefore Automake
|
|
1497 |
# will honor the `STRIP' environment variable to overrule this program. |
|
1498 |
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
|
1499 |
if test "$cross_compiling" != no; then |
|
1500 |
AC_CHECK_TOOL([STRIP], [strip], :) |
|
1501 |
fi
|
|
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1502 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1
by Oliver Grawert
Import upstream version 0.9.5 |
1503 |
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1504 |
||
72
by Luke Yelavich
* New upstream release |
1505 |
# Copyright (C) 2006, 2008 Free Software Foundation, Inc. |
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1506 |
#
|
1507 |
# This file is free software; the Free Software Foundation |
|
1508 |
# gives unlimited permission to copy and/or distribute it, |
|
1509 |
# with or without modifications, as long as this notice is preserved. |
|
1510 |
||
72
by Luke Yelavich
* New upstream release |
1511 |
# serial 2 |
1512 |
||
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1513 |
# _AM_SUBST_NOTMAKE(VARIABLE) |
1514 |
# --------------------------- |
|
1.1.5
by Luke Yelavich
Import upstream version 0.9.10 |
1515 |
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
1.1.4
by Daniel T Chen
Import upstream version 0.9.9 |
1516 |
# This macro is traced by Automake. |
1517 |
AC_DEFUN([_AM_SUBST_NOTMAKE]) |
|
1518 |
||
72
by Luke Yelavich
* New upstream release |
1519 |
# AM_SUBST_NOTMAKE(VARIABLE) |
1520 |
# --------------------------- |
|
1521 |
# Public sister of _AM_SUBST_NOTMAKE. |
|
1522 |
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
|
1523 |
||
1
by Oliver Grawert
Import upstream version 0.9.5 |
1524 |
# Check how to create a tarball. -*- Autoconf -*- |
1525 |
||
1526 |
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
|
1527 |
#
|
|
1528 |
# This file is free software; the Free Software Foundation |
|
1529 |
# gives unlimited permission to copy and/or distribute it, |
|
1530 |
# with or without modifications, as long as this notice is preserved. |
|
1531 |
||
1532 |
# serial 2 |
|
1533 |
||
1534 |
# _AM_PROG_TAR(FORMAT) |
|
1535 |
# -------------------- |
|
1536 |
# Check how to create a tarball in format FORMAT. |
|
1537 |
# FORMAT should be one of `v7', `ustar', or `pax'. |
|
1538 |
#
|
|
1539 |
# Substitute a variable $(am__tar) that is a command
|
|
1540 |
# writing to stdout a FORMAT-tarball containing the directory
|
|
1541 |
# $tardir.
|
|
1542 |
# tardir=directory && $(am__tar) > result.tar
|
|
1543 |
#
|
|
1544 |
# Substitute a variable $(am__untar) that extract such
|
|
1545 |
# a tarball read from stdin.
|
|
1546 |
# $(am__untar) < result.tar
|
|
1547 |
AC_DEFUN([_AM_PROG_TAR],
|
|
1548 |
[# Always define AMTAR for backward compatibility.
|
|
1549 |
AM_MISSING_PROG([AMTAR], [tar])
|
|
1550 |
m4_if([$1], [v7],
|
|
1551 |
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
|
1552 |
[m4_case([$1], [ustar],, [pax],,
|
|
1553 |
[m4_fatal([Unknown tar format])])
|
|
1554 |
AC_MSG_CHECKING([how to create a $1 tar archive])
|
|
1555 |
# Loop over all known methods to create a tar archive until one works.
|
|
1556 |
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
|
1557 |
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|
1558 |
# Do not fold the above two line into one, because Tru64 sh and
|
|
1559 |
# Solaris sh will not grok spaces in the rhs of `-'. |
|
1560 |
for _am_tool in $_am_tools |
|
1561 |
do
|
|
1562 |
case $_am_tool in |
|
1563 |
gnutar) |
|
1564 |
for _am_tar in tar gnutar gtar; |
|
1565 |
do |
|
1566 |
AM_RUN_LOG([$_am_tar --version]) && break |
|
1567 |
done |
|
1568 |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
|
1569 |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
|
1570 |
am__untar="$_am_tar -xf -" |
|
1571 |
;; |
|
1572 |
plaintar) |
|
1573 |
# Must skip GNU tar: if it does not support --format= it doesn't create |
|
1574 |
# ustar tarball either.
|
|
1575 |
(tar --version) >/dev/null 2>&1 && continue
|
|
1576 |
am__tar='tar chf - "$$tardir"' |
|
1577 |
am__tar_='tar chf - "$tardir"' |
|
1578 |
am__untar='tar xf -' |
|
1579 |
;;
|
|
1580 |
pax)
|
|
1581 |
am__tar='pax -L -x $1 -w "$$tardir"' |
|
1582 |
am__tar_='pax -L -x $1 -w "$tardir"' |
|
1583 |
am__untar='pax -r' |
|
1584 |
;;
|
|
1585 |
cpio)
|
|
1586 |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
|
1587 |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
|
1588 |
am__untar='cpio -i -H $1 -d' |
|
1589 |
;; |
|
1590 |
none) |
|
1591 |
am__tar=false |
|
1592 |
am__tar_=false |
|
1593 |
am__untar=false |
|
1594 |
;; |
|
1595 |
esac |
|
1596 |
||
1597 |
# If the value was cached, stop now. We just wanted to have am__tar |
|
1598 |
# and am__untar set. |
|
1599 |
test -n "${am_cv_prog_tar_$1}" && break |
|
1600 |
||
1601 |
# tar/untar a dummy directory, and stop if the command works |
|
1602 |
rm -rf conftest.dir |
|
1603 |
mkdir conftest.dir |
|
1604 |
echo GrepMe > conftest.dir/file |
|
1605 |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
|
1606 |
rm -rf conftest.dir |
|
1607 |
if test -s conftest.tar; then |
|
1608 |
AM_RUN_LOG([$am__untar <conftest.tar]) |
|
1609 |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
|
1610 |
fi |
|
1611 |
done
|
|
1612 |
rm -rf conftest.dir |
|
1613 |
||
1614 |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
|
1615 |
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
|
1616 |
AC_SUBST([am__tar]) |
|
1617 |
AC_SUBST([am__untar]) |
|
1618 |
]) # _AM_PROG_TAR |
|
1619 |
||
1.2.1
by Luke Yelavich
Import upstream version 0.9.13 |
1620 |
m4_include([m4/acx_libwrap.m4]) |
1621 |
m4_include([m4/acx_lirc.m4]) |
|
1622 |
m4_include([m4/acx_pthread.m4]) |
|
1623 |
m4_include([m4/attributes.m4]) |
|
1624 |
m4_include([m4/check_define.m4]) |
|
1625 |
m4_include([m4/iconv.m4]) |
|
1626 |
m4_include([m4/intltool.m4]) |
|
1627 |
m4_include([m4/lib-ld.m4]) |
|
1628 |
m4_include([m4/lib-link.m4]) |
|
1629 |
m4_include([m4/lib-prefix.m4]) |
|
1.3.1
by Sjoerd Simons
Import upstream version 0.9.15~test5 |
1630 |
m4_include([m4/libtool.m4]) |
1631 |
m4_include([m4/ltoptions.m4]) |
|
1632 |
m4_include([m4/ltsugar.m4]) |
|
1633 |
m4_include([m4/ltversion.m4]) |
|
1634 |
m4_include([m4/lt~obsolete.m4]) |
|
1635 |
m4_include([m4/nls.m4]) |
|
1.2.1
by Luke Yelavich
Import upstream version 0.9.13 |
1636 |
m4_include([m4/tls.m4]) |