source: trunk/third/intltool/aclocal.m4 @ 20759

Revision 20759, 20.7 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20758, which included commits to RCS files with non-trunk default branches.
Line 
1# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4# Free Software Foundation, Inc.
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
14#                                                        -*- Autoconf -*-
15# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
16# Generated from amversion.in; do not edit by hand.
17
18# This program is free software; you can redistribute it and/or modify
19# it under the terms of the GNU General Public License as published by
20# the Free Software Foundation; either version 2, or (at your option)
21# any later version.
22
23# This program is distributed in the hope that it will be useful,
24# but WITHOUT ANY WARRANTY; without even the implied warranty of
25# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26# GNU General Public License for more details.
27
28# You should have received a copy of the GNU General Public License
29# along with this program; if not, write to the Free Software
30# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
31
32# AM_AUTOMAKE_VERSION(VERSION)
33# ----------------------------
34# Automake X.Y traces this macro to ensure aclocal.m4 has been
35# generated from the m4 files accompanying Automake X.Y.
36AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
37
38# AM_SET_CURRENT_AUTOMAKE_VERSION
39# -------------------------------
40# Call AM_AUTOMAKE_VERSION so it can be traced.
41# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43         [AM_AUTOMAKE_VERSION([1.8.5])])
44
45# AM_AUX_DIR_EXPAND
46
47# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
48
49# This program is free software; you can redistribute it and/or modify
50# it under the terms of the GNU General Public License as published by
51# the Free Software Foundation; either version 2, or (at your option)
52# any later version.
53
54# This program is distributed in the hope that it will be useful,
55# but WITHOUT ANY WARRANTY; without even the implied warranty of
56# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57# GNU General Public License for more details.
58
59# You should have received a copy of the GNU General Public License
60# along with this program; if not, write to the Free Software
61# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
62# 02111-1307, USA.
63
64# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
65# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
66# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
67#
68# Of course, Automake must honor this variable whenever it calls a
69# tool from the auxiliary directory.  The problem is that $srcdir (and
70# therefore $ac_aux_dir as well) can be either absolute or relative,
71# depending on how configure is run.  This is pretty annoying, since
72# it makes $ac_aux_dir quite unusable in subdirectories: in the top
73# source directory, any form will work fine, but in subdirectories a
74# relative path needs to be adjusted first.
75#
76# $ac_aux_dir/missing
77#    fails when called from a subdirectory if $ac_aux_dir is relative
78# $top_srcdir/$ac_aux_dir/missing
79#    fails if $ac_aux_dir is absolute,
80#    fails when called from a subdirectory in a VPATH build with
81#          a relative $ac_aux_dir
82#
83# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
84# are both prefixed by $srcdir.  In an in-source build this is usually
85# harmless because $srcdir is `.', but things will broke when you
86# start a VPATH build or use an absolute $srcdir.
87#
88# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
89# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
90#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
91# and then we would define $MISSING as
92#   MISSING="\${SHELL} $am_aux_dir/missing"
93# This will work as long as MISSING is not called from configure, because
94# unfortunately $(top_srcdir) has no meaning in configure.
95# However there are other variables, like CC, which are often used in
96# configure, and could therefore not use this "fixed" $ac_aux_dir.
97#
98# Another solution, used here, is to always expand $ac_aux_dir to an
99# absolute PATH.  The drawback is that using absolute paths prevent a
100# configured tree to be moved without reconfiguration.
101
102AC_DEFUN([AM_AUX_DIR_EXPAND],
103[dnl Rely on autoconf to set up CDPATH properly.
104AC_PREREQ([2.50])dnl
105# expand $ac_aux_dir to an absolute path
106am_aux_dir=`cd $ac_aux_dir && pwd`
107])
108
109# Do all the work for Automake.                            -*- Autoconf -*-
110
111# This macro actually does too much some checks are only needed if
112# your package does certain things.  But this isn't really a big deal.
113
114# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
115# Free Software Foundation, Inc.
116
117# This program is free software; you can redistribute it and/or modify
118# it under the terms of the GNU General Public License as published by
119# the Free Software Foundation; either version 2, or (at your option)
120# any later version.
121
122# This program is distributed in the hope that it will be useful,
123# but WITHOUT ANY WARRANTY; without even the implied warranty of
124# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
125# GNU General Public License for more details.
126
127# You should have received a copy of the GNU General Public License
128# along with this program; if not, write to the Free Software
129# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
130# 02111-1307, USA.
131
132# serial 11
133
134# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
135# AM_INIT_AUTOMAKE([OPTIONS])
136# -----------------------------------------------
137# The call with PACKAGE and VERSION arguments is the old style
138# call (pre autoconf-2.50), which is being phased out.  PACKAGE
139# and VERSION should now be passed to AC_INIT and removed from
140# the call to AM_INIT_AUTOMAKE.
141# We support both call styles for the transition.  After
142# the next Automake release, Autoconf can make the AC_INIT
143# arguments mandatory, and then we can depend on a new Autoconf
144# release and drop the old call support.
145AC_DEFUN([AM_INIT_AUTOMAKE],
146[AC_PREREQ([2.58])dnl
147dnl Autoconf wants to disallow AM_ names.  We explicitly allow
148dnl the ones we care about.
149m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
150AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
151AC_REQUIRE([AC_PROG_INSTALL])dnl
152# test to see if srcdir already configured
153if test "`cd $srcdir && pwd`" != "`pwd`" &&
154   test -f $srcdir/config.status; then
155  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
156fi
157
158# test whether we have cygpath
159if test -z "$CYGPATH_W"; then
160  if (cygpath --version) >/dev/null 2>/dev/null; then
161    CYGPATH_W='cygpath -w'
162  else
163    CYGPATH_W=echo
164  fi
165fi
166AC_SUBST([CYGPATH_W])
167
168# Define the identity of the package.
169dnl Distinguish between old-style and new-style calls.
170m4_ifval([$2],
171[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
172 AC_SUBST([PACKAGE], [$1])dnl
173 AC_SUBST([VERSION], [$2])],
174[_AM_SET_OPTIONS([$1])dnl
175 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
176 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
177
178_AM_IF_OPTION([no-define],,
179[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
180 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
181
182# Some tools Automake needs.
183AC_REQUIRE([AM_SANITY_CHECK])dnl
184AC_REQUIRE([AC_ARG_PROGRAM])dnl
185AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
186AM_MISSING_PROG(AUTOCONF, autoconf)
187AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
188AM_MISSING_PROG(AUTOHEADER, autoheader)
189AM_MISSING_PROG(MAKEINFO, makeinfo)
190AM_MISSING_PROG(AMTAR, tar)
191AM_PROG_INSTALL_SH
192AM_PROG_INSTALL_STRIP
193AC_REQUIRE([AM_PROG_MKDIR_P])dnl
194# We need awk for the "check" target.  The system "awk" is bad on
195# some platforms.
196AC_REQUIRE([AC_PROG_AWK])dnl
197AC_REQUIRE([AC_PROG_MAKE_SET])dnl
198AC_REQUIRE([AM_SET_LEADING_DOT])dnl
199
200_AM_IF_OPTION([no-dependencies],,
201[AC_PROVIDE_IFELSE([AC_PROG_CC],
202                  [_AM_DEPENDENCIES(CC)],
203                  [define([AC_PROG_CC],
204                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
205AC_PROVIDE_IFELSE([AC_PROG_CXX],
206                  [_AM_DEPENDENCIES(CXX)],
207                  [define([AC_PROG_CXX],
208                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
209])
210])
211
212
213# When config.status generates a header, we must update the stamp-h file.
214# This file resides in the same directory as the config header
215# that is generated.  The stamp files are numbered to have different names.
216
217# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
218# loop where config.status creates the headers, so we can generate
219# our stamp files there.
220AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
221[# Compute $1's index in $config_headers.
222_am_stamp_count=1
223for _am_header in $config_headers :; do
224  case $_am_header in
225    $1 | $1:* )
226      break ;;
227    * )
228      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
229  esac
230done
231echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
232
233# AM_PROG_INSTALL_SH
234# ------------------
235# Define $install_sh.
236
237# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
238
239# This program is free software; you can redistribute it and/or modify
240# it under the terms of the GNU General Public License as published by
241# the Free Software Foundation; either version 2, or (at your option)
242# any later version.
243
244# This program is distributed in the hope that it will be useful,
245# but WITHOUT ANY WARRANTY; without even the implied warranty of
246# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
247# GNU General Public License for more details.
248
249# You should have received a copy of the GNU General Public License
250# along with this program; if not, write to the Free Software
251# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
252# 02111-1307, USA.
253
254AC_DEFUN([AM_PROG_INSTALL_SH],
255[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
256install_sh=${install_sh-"$am_aux_dir/install-sh"}
257AC_SUBST(install_sh)])
258
259#                                                          -*- Autoconf -*-
260# Copyright (C) 2003  Free Software Foundation, Inc.
261
262# This program is free software; you can redistribute it and/or modify
263# it under the terms of the GNU General Public License as published by
264# the Free Software Foundation; either version 2, or (at your option)
265# any later version.
266
267# This program is distributed in the hope that it will be useful,
268# but WITHOUT ANY WARRANTY; without even the implied warranty of
269# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
270# GNU General Public License for more details.
271
272# You should have received a copy of the GNU General Public License
273# along with this program; if not, write to the Free Software
274# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
275# 02111-1307, USA.
276
277# serial 1
278
279# Check whether the underlying file-system supports filenames
280# with a leading dot.  For instance MS-DOS doesn't.
281AC_DEFUN([AM_SET_LEADING_DOT],
282[rm -rf .tst 2>/dev/null
283mkdir .tst 2>/dev/null
284if test -d .tst; then
285  am__leading_dot=.
286else
287  am__leading_dot=_
288fi
289rmdir .tst 2>/dev/null
290AC_SUBST([am__leading_dot])])
291
292#  -*- Autoconf -*-
293
294
295# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
296
297# This program is free software; you can redistribute it and/or modify
298# it under the terms of the GNU General Public License as published by
299# the Free Software Foundation; either version 2, or (at your option)
300# any later version.
301
302# This program is distributed in the hope that it will be useful,
303# but WITHOUT ANY WARRANTY; without even the implied warranty of
304# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
305# GNU General Public License for more details.
306
307# You should have received a copy of the GNU General Public License
308# along with this program; if not, write to the Free Software
309# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
310# 02111-1307, USA.
311
312# serial 3
313
314# AM_MISSING_PROG(NAME, PROGRAM)
315# ------------------------------
316AC_DEFUN([AM_MISSING_PROG],
317[AC_REQUIRE([AM_MISSING_HAS_RUN])
318$1=${$1-"${am_missing_run}$2"}
319AC_SUBST($1)])
320
321
322# AM_MISSING_HAS_RUN
323# ------------------
324# Define MISSING if not defined so far and test if it supports --run.
325# If it does, set am_missing_run to use it, otherwise, to nothing.
326AC_DEFUN([AM_MISSING_HAS_RUN],
327[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
328test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
329# Use eval to expand $SHELL
330if eval "$MISSING --run true"; then
331  am_missing_run="$MISSING --run "
332else
333  am_missing_run=
334  AC_MSG_WARN([`missing' script is too old or missing])
335fi
336])
337
338# AM_PROG_MKDIR_P
339# ---------------
340# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
341
342# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
343
344# This program is free software; you can redistribute it and/or modify
345# it under the terms of the GNU General Public License as published by
346# the Free Software Foundation; either version 2, or (at your option)
347# any later version.
348
349# This program is distributed in the hope that it will be useful,
350# but WITHOUT ANY WARRANTY; without even the implied warranty of
351# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
352# GNU General Public License for more details.
353
354# You should have received a copy of the GNU General Public License
355# along with this program; if not, write to the Free Software
356# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
357# 02111-1307, USA.
358
359# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
360# created by `make install' are always world readable, even if the
361# installer happens to have an overly restrictive umask (e.g. 077).
362# This was a mistake.  There are at least two reasons why we must not
363# use `-m 0755':
364#   - it causes special bits like SGID to be ignored,
365#   - it may be too restrictive (some setups expect 775 directories).
366#
367# Do not use -m 0755 and let people choose whatever they expect by
368# setting umask.
369#
370# We cannot accept any implementation of `mkdir' that recognizes `-p'.
371# Some implementations (such as Solaris 8's) are not thread-safe: if a
372# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
373# concurrently, both version can detect that a/ is missing, but only
374# one can create it and the other will error out.  Consequently we
375# restrict ourselves to GNU make (using the --version option ensures
376# this.)
377AC_DEFUN([AM_PROG_MKDIR_P],
378[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
379  # Keeping the `.' argument allows $(mkdir_p) to be used without
380  # argument.  Indeed, we sometimes output rules like
381  #   $(mkdir_p) $(somedir)
382  # where $(somedir) is conditionally defined.
383  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
384  # expensive solution, as it forces Make to start a sub-shell.)
385  mkdir_p='mkdir -p -- .'
386else
387  # On NextStep and OpenStep, the `mkdir' command does not
388  # recognize any option.  It will interpret all options as
389  # directories to create, and then abort because `.' already
390  # exists.
391  for d in ./-p ./--version;
392  do
393    test -d $d && rmdir $d
394  done
395  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
396  if test -f "$ac_aux_dir/mkinstalldirs"; then
397    mkdir_p='$(mkinstalldirs)'
398  else
399    mkdir_p='$(install_sh) -d'
400  fi
401fi
402AC_SUBST([mkdir_p])])
403
404# Helper functions for option handling.                    -*- Autoconf -*-
405
406# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
407
408# This program is free software; you can redistribute it and/or modify
409# it under the terms of the GNU General Public License as published by
410# the Free Software Foundation; either version 2, or (at your option)
411# any later version.
412
413# This program is distributed in the hope that it will be useful,
414# but WITHOUT ANY WARRANTY; without even the implied warranty of
415# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
416# GNU General Public License for more details.
417
418# You should have received a copy of the GNU General Public License
419# along with this program; if not, write to the Free Software
420# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
421# 02111-1307, USA.
422
423# serial 2
424
425# _AM_MANGLE_OPTION(NAME)
426# -----------------------
427AC_DEFUN([_AM_MANGLE_OPTION],
428[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
429
430# _AM_SET_OPTION(NAME)
431# ------------------------------
432# Set option NAME.  Presently that only means defining a flag for this option.
433AC_DEFUN([_AM_SET_OPTION],
434[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
435
436# _AM_SET_OPTIONS(OPTIONS)
437# ----------------------------------
438# OPTIONS is a space-separated list of Automake options.
439AC_DEFUN([_AM_SET_OPTIONS],
440[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
441
442# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
443# -------------------------------------------
444# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
445AC_DEFUN([_AM_IF_OPTION],
446[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
447
448#
449# Check to make sure that the build environment is sane.
450#
451
452# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
453
454# This program is free software; you can redistribute it and/or modify
455# it under the terms of the GNU General Public License as published by
456# the Free Software Foundation; either version 2, or (at your option)
457# any later version.
458
459# This program is distributed in the hope that it will be useful,
460# but WITHOUT ANY WARRANTY; without even the implied warranty of
461# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
462# GNU General Public License for more details.
463
464# You should have received a copy of the GNU General Public License
465# along with this program; if not, write to the Free Software
466# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
467# 02111-1307, USA.
468
469# serial 3
470
471# AM_SANITY_CHECK
472# ---------------
473AC_DEFUN([AM_SANITY_CHECK],
474[AC_MSG_CHECKING([whether build environment is sane])
475# Just in case
476sleep 1
477echo timestamp > conftest.file
478# Do `set' in a subshell so we don't clobber the current shell's
479# arguments.  Must try -L first in case configure is actually a
480# symlink; some systems play weird games with the mod time of symlinks
481# (eg FreeBSD returns the mod time of the symlink's containing
482# directory).
483if (
484   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
485   if test "$[*]" = "X"; then
486      # -L didn't work.
487      set X `ls -t $srcdir/configure conftest.file`
488   fi
489   rm -f conftest.file
490   if test "$[*]" != "X $srcdir/configure conftest.file" \
491      && test "$[*]" != "X conftest.file $srcdir/configure"; then
492
493      # If neither matched, then we have a broken ls.  This can happen
494      # if, for instance, CONFIG_SHELL is bash and it inherits a
495      # broken ls alias from the environment.  This has actually
496      # happened.  Such a system could not be considered "sane".
497      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
498alias in your environment])
499   fi
500
501   test "$[2]" = conftest.file
502   )
503then
504   # Ok.
505   :
506else
507   AC_MSG_ERROR([newly created file is older than distributed files!
508Check your system clock])
509fi
510AC_MSG_RESULT(yes)])
511
512# AM_PROG_INSTALL_STRIP
513
514# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
515
516# This program is free software; you can redistribute it and/or modify
517# it under the terms of the GNU General Public License as published by
518# the Free Software Foundation; either version 2, or (at your option)
519# any later version.
520
521# This program is distributed in the hope that it will be useful,
522# but WITHOUT ANY WARRANTY; without even the implied warranty of
523# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
524# GNU General Public License for more details.
525
526# You should have received a copy of the GNU General Public License
527# along with this program; if not, write to the Free Software
528# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
529# 02111-1307, USA.
530
531# One issue with vendor `install' (even GNU) is that you can't
532# specify the program used to strip binaries.  This is especially
533# annoying in cross-compiling environments, where the build's strip
534# is unlikely to handle the host's binaries.
535# Fortunately install-sh will honor a STRIPPROG variable, so we
536# always use install-sh in `make install-strip', and initialize
537# STRIPPROG with the value of the STRIP variable (set by the user).
538AC_DEFUN([AM_PROG_INSTALL_STRIP],
539[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
540# Installed binaries are usually stripped using `strip' when the user
541# run `make install-strip'.  However `strip' might not be the right
542# tool to use in cross-compilation environments, therefore Automake
543# will honor the `STRIP' environment variable to overrule this program.
544dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
545if test "$cross_compiling" != no; then
546  AC_CHECK_TOOL([STRIP], [strip], :)
547fi
548INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
549AC_SUBST([INSTALL_STRIP_PROGRAM])])
550
Note: See TracBrowser for help on using the repository browser.