440da76b07510745b62f9c7b8f893b684ce1fc19
[citadel.git] / textclient / aclocal.m4
1 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
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 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
16
17 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
18 #
19 # This file is free software; the Free Software Foundation
20 # gives unlimited permission to copy and/or distribute it,
21 # with or without modifications, as long as this notice is preserved.
22
23 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
24 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
25 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
26 #
27 # Of course, Automake must honor this variable whenever it calls a
28 # tool from the auxiliary directory.  The problem is that $srcdir (and
29 # therefore $ac_aux_dir as well) can be either absolute or relative,
30 # depending on how configure is run.  This is pretty annoying, since
31 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
32 # source directory, any form will work fine, but in subdirectories a
33 # relative path needs to be adjusted first.
34 #
35 # $ac_aux_dir/missing
36 #    fails when called from a subdirectory if $ac_aux_dir is relative
37 # $top_srcdir/$ac_aux_dir/missing
38 #    fails if $ac_aux_dir is absolute,
39 #    fails when called from a subdirectory in a VPATH build with
40 #          a relative $ac_aux_dir
41 #
42 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
43 # are both prefixed by $srcdir.  In an in-source build this is usually
44 # harmless because $srcdir is '.', but things will broke when you
45 # start a VPATH build or use an absolute $srcdir.
46 #
47 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
48 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
49 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
50 # and then we would define $MISSING as
51 #   MISSING="\${SHELL} $am_aux_dir/missing"
52 # This will work as long as MISSING is not called from configure, because
53 # unfortunately $(top_srcdir) has no meaning in configure.
54 # However there are other variables, like CC, which are often used in
55 # configure, and could therefore not use this "fixed" $ac_aux_dir.
56 #
57 # Another solution, used here, is to always expand $ac_aux_dir to an
58 # absolute PATH.  The drawback is that using absolute paths prevent a
59 # configured tree to be moved without reconfiguration.
60
61 AC_DEFUN([AM_AUX_DIR_EXPAND],
62 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
63 # Expand $ac_aux_dir to an absolute path.
64 am_aux_dir=`cd "$ac_aux_dir" && pwd`
65 ])
66
67 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
68
69 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
70 #
71 # This file is free software; the Free Software Foundation
72 # gives unlimited permission to copy and/or distribute it,
73 # with or without modifications, as long as this notice is preserved.
74
75 # AM_MISSING_PROG(NAME, PROGRAM)
76 # ------------------------------
77 AC_DEFUN([AM_MISSING_PROG],
78 [AC_REQUIRE([AM_MISSING_HAS_RUN])
79 $1=${$1-"${am_missing_run}$2"}
80 AC_SUBST($1)])
81
82 # AM_MISSING_HAS_RUN
83 # ------------------
84 # Define MISSING if not defined so far and test if it is modern enough.
85 # If it is, set am_missing_run to use it, otherwise, to nothing.
86 AC_DEFUN([AM_MISSING_HAS_RUN],
87 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
88 AC_REQUIRE_AUX_FILE([missing])dnl
89 if test x"${MISSING+set}" != xset; then
90   case $am_aux_dir in
91   *\ * | *\     *)
92     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
93   *)
94     MISSING="\${SHELL} $am_aux_dir/missing" ;;
95   esac
96 fi
97 # Use eval to expand $SHELL
98 if eval "$MISSING --is-lightweight"; then
99   am_missing_run="$MISSING "
100 else
101   am_missing_run=
102   AC_MSG_WARN(['missing' script is too old or missing])
103 fi
104 ])
105
106 m4_include([acinclude.m4])