1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
4
# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# isc-posix.m4 serial 2 (gettext-0.11.2)
15
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
16
dnl This file is free software; the Free Software Foundation
17
dnl gives unlimited permission to copy and/or distribute it,
18
dnl with or without modifications, as long as this notice is preserved.
20
# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
22
# This test replaces the one in autoconf.
23
# Currently this macro should have the same name as the autoconf macro
24
# because gettext's gettext.m4 (distributed in the automake package)
25
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
26
# give these diagnostics:
27
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
28
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
30
undefine([AC_ISC_POSIX])
32
AC_DEFUN([AC_ISC_POSIX],
34
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
35
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
39
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
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'.])])
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
41
24
# This file is free software; the Free Software Foundation
42
25
# gives unlimited permission to copy and/or distribute it,
46
29
# ----------------------------
47
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
48
31
# generated from the m4 files accompanying Automake X.Y.
49
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
32
# (This private macro should not be called outside this file.)
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
[am__api_version='1.10'
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
dnl require some minimum version. Point them to the right macro.
37
m4_if([$1], [1.10.1], [],
38
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41
# _AM_AUTOCONF_VERSION(VERSION)
42
# -----------------------------
43
# aclocal traces this macro to find the Autoconf version.
44
# This is a private macro too. Using m4_define simplifies
45
# the logic in aclocal, which can simply ignore this definition.
46
m4_define([_AM_AUTOCONF_VERSION], [])
51
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
52
49
# -------------------------------
53
# Call AM_AUTOMAKE_VERSION so it can be traced.
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
54
51
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
55
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56
[AM_AUTOMAKE_VERSION([1.9.6])])
53
[AM_AUTOMAKE_VERSION([1.10.1])dnl
54
m4_ifndef([AC_AUTOCONF_VERSION],
55
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
58
58
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
111
111
# AM_CONDITIONAL -*- Autoconf -*-
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
114
114
# Free Software Foundation, Inc.
116
116
# This file is free software; the Free Software Foundation
117
117
# gives unlimited permission to copy and/or distribute it,
118
118
# with or without modifications, as long as this notice is preserved.
122
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
123
# -------------------------------------
141
143
Usually this means the macro was only invoked conditionally.]])
145
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
146
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
146
147
# Free Software Foundation, Inc.
148
149
# This file is free software; the Free Software Foundation
149
150
# gives unlimited permission to copy and/or distribute it,
150
151
# with or without modifications, as long as this notice is preserved.
154
155
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
155
156
# written in clear, in which case automake, when reading aclocal.m4,
177
178
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
178
179
[$1], CXX, [depcc="$CXX" am_compiler_list=],
179
180
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181
[$1], UPC, [depcc="$UPC" am_compiler_list=],
180
182
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
181
183
[depcc="$$1" am_compiler_list=])
319
323
# some people rename them; so instead we look at the file content.
320
324
# Grep'ing the first line is not enough: some people post-process
321
325
# each Makefile.in and add a new line on top of each file to say so.
322
# So let's grep whole file.
323
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
326
# Grep'ing the whole file is not good either: AIX grep has a line
327
# limit of 2048, but all sed's we know have understand at least 4000.
328
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
324
329
dirpart=`AS_DIRNAME("$mf")`
380
385
# Do all the work for Automake. -*- Autoconf -*-
382
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
383
# Free Software Foundation, Inc.
387
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
388
# 2005, 2006, 2008 Free Software Foundation, Inc.
385
390
# This file is free software; the Free Software Foundation
386
391
# gives unlimited permission to copy and/or distribute it,
387
392
# with or without modifications, as long as this notice is preserved.
391
396
# This macro actually does too much. Some checks are only needed if
392
397
# your package does certain things. But this isn't really a big deal.
403
408
# arguments mandatory, and then we can depend on a new Autoconf
404
409
# release and drop the old call support.
405
410
AC_DEFUN([AM_INIT_AUTOMAKE],
406
[AC_PREREQ([2.58])dnl
411
[AC_PREREQ([2.60])dnl
407
412
dnl Autoconf wants to disallow AM_ names. We explicitly allow
408
413
dnl the ones we care about.
409
414
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
410
415
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
411
416
AC_REQUIRE([AC_PROG_INSTALL])dnl
412
# test to see if srcdir already configured
413
if test "`cd $srcdir && pwd`" != "`pwd`" &&
414
test -f $srcdir/config.status; then
415
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
417
if test "`cd $srcdir && pwd`" != "`pwd`"; then
418
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
419
# is not polluted with repeated "-I."
420
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
421
# test to see if srcdir already configured
422
if test -f $srcdir/config.status; then
423
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
418
427
# test whether we have cygpath
432
441
AC_SUBST([PACKAGE], [$1])dnl
433
442
AC_SUBST([VERSION], [$2])],
434
443
[_AM_SET_OPTIONS([$1])dnl
444
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
445
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
446
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
435
447
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
436
448
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
480
496
# our stamp files there.
481
497
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
482
498
[# Compute $1's index in $config_headers.
483
500
_am_stamp_count=1
484
501
for _am_header in $config_headers :; do
485
502
case $_am_header in
503
$_am_arg | $_am_arg:* )
489
506
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
492
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
509
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
494
511
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
581
598
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
583
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
600
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
584
601
# Free Software Foundation, Inc.
586
603
# This file is free software; the Free Software Foundation
587
604
# gives unlimited permission to copy and/or distribute it,
588
605
# with or without modifications, as long as this notice is preserved.
592
609
# AM_MISSING_PROG(NAME, PROGRAM)
593
610
# ------------------------------
603
620
# If it does, set am_missing_run to use it, otherwise, to nothing.
604
621
AC_DEFUN([AM_MISSING_HAS_RUN],
605
622
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
623
AC_REQUIRE_AUX_FILE([missing])dnl
606
624
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
607
625
# Use eval to expand $SHELL
608
626
if eval "$MISSING --run true"; then
616
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
634
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
618
636
# This file is free software; the Free Software Foundation
619
637
# gives unlimited permission to copy and/or distribute it,
622
640
# AM_PROG_MKDIR_P
623
641
# ---------------
624
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
626
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
627
# created by `make install' are always world readable, even if the
628
# installer happens to have an overly restrictive umask (e.g. 077).
629
# This was a mistake. There are at least two reasons why we must not
631
# - it causes special bits like SGID to be ignored,
632
# - it may be too restrictive (some setups expect 775 directories).
634
# Do not use -m 0755 and let people choose whatever they expect by
637
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
638
# Some implementations (such as Solaris 8's) are not thread-safe: if a
639
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
640
# concurrently, both version can detect that a/ is missing, but only
641
# one can create it and the other will error out. Consequently we
642
# restrict ourselves to GNU make (using the --version option ensures
642
# Check for `mkdir -p'.
644
643
AC_DEFUN([AM_PROG_MKDIR_P],
645
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
646
# We used to keeping the `.' as first argument, in order to
647
# allow $(mkdir_p) to be used without argument. As in
648
# $(mkdir_p) $(somedir)
649
# where $(somedir) is conditionally defined. However this is wrong
651
# 1. if the package is installed by a user who cannot write `.'
652
# make install will fail,
653
# 2. the above comment should most certainly read
654
# $(mkdir_p) $(DESTDIR)$(somedir)
655
# so it does not work when $(somedir) is undefined and
657
# To support the latter case, we have to write
658
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
659
# so the `.' trick is pointless.
660
mkdir_p='mkdir -p --'
662
# On NextStep and OpenStep, the `mkdir' command does not
663
# recognize any option. It will interpret all options as
664
# directories to create, and then abort because `.' already
666
for d in ./-p ./--version;
668
test -d $d && rmdir $d
670
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
671
if test -f "$ac_aux_dir/mkinstalldirs"; then
672
mkdir_p='$(mkinstalldirs)'
674
mkdir_p='$(install_sh) -d'
677
AC_SUBST([mkdir_p])])
644
[AC_PREREQ([2.60])dnl
645
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
646
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
647
dnl while keeping a definition of mkdir_p for backward compatibility.
648
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
649
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
650
dnl Makefile.ins that do not define MKDIR_P, so we do our own
651
dnl adjustment using top_builddir (which is defined more often than
653
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
655
[[\\/$]]* | ?:[[\\/]]*) ;;
656
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
679
660
# Helper functions for option handling. -*- Autoconf -*-
709
690
AC_DEFUN([_AM_IF_OPTION],
710
691
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
712
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
693
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
713
694
# Free Software Foundation, Inc.
715
696
# This file is free software; the Free Software Foundation
716
697
# gives unlimited permission to copy and/or distribute it,
717
698
# with or without modifications, as long as this notice is preserved.
721
702
AC_DEFUN([AM_C_PROTOTYPES],
722
703
[AC_REQUIRE([AC_C_PROTOTYPES])
811
793
if test "$cross_compiling" != no; then
812
794
AC_CHECK_TOOL([STRIP], [strip], :)
814
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
796
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
815
797
AC_SUBST([INSTALL_STRIP_PROGRAM])])
799
# Copyright (C) 2006 Free Software Foundation, Inc.
801
# This file is free software; the Free Software Foundation
802
# gives unlimited permission to copy and/or distribute it,
803
# with or without modifications, as long as this notice is preserved.
805
# _AM_SUBST_NOTMAKE(VARIABLE)
806
# ---------------------------
807
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
808
# This macro is traced by Automake.
809
AC_DEFUN([_AM_SUBST_NOTMAKE])
817
811
# Check how to create a tarball. -*- Autoconf -*-
819
813
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.