Root/package/network/services/ead/src/tinysrp/aclocal.m4

1dnl aclocal.m4 generated automatically by aclocal 1.4a
2
3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13dnl
14dnl check for signal type
15dnl
16dnl AC_RETSIGTYPE isn't quite right, but almost.
17dnl
18define(TYPE_SIGNAL,[
19AC_MSG_CHECKING([POSIX signal handlers])
20AC_CACHE_VAL(cv_has_posix_signals,
21[AC_TRY_COMPILE(
22[#include <sys/types.h>
23#include <signal.h>
24#ifdef signal
25#undef signal
26#endif
27extern void (*signal ()) ();], [],
28cv_has_posix_signals=yes, cv_has_posix_signals=no)])
29AC_MSG_RESULT($cv_has_posix_signals)
30if test $cv_has_posix_signals = yes; then
31   AC_DEFINE(RETSIGTYPE, void, [Return type is void])
32   AC_DEFINE(POSIX_SIGTYPE, [], [Have POSIX signals])
33else
34  if test $ac_cv_type_signal = void; then
35     AC_DEFINE(RETSIGTYPE, void, [Return type is void])
36  else
37     AC_DEFINE(RETSIGTYPE, int, [Return type is int])
38  fi
39fi])dnl
40
41# Like AC_CONFIG_HEADER, but automatically create stamp file.
42
43AC_DEFUN(AM_CONFIG_HEADER,
44[AC_PREREQ([2.12])
45AC_CONFIG_HEADER([$1])
46dnl When config.status generates a header, we must update the stamp-h file.
47dnl This file resides in the same directory as the config header
48dnl that is generated. We must strip everything past the first ":",
49dnl and everything past the last "/".
50AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
51ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
52<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
53<<am_indx=1
54for am_file in <<$1>>; do
55  case " <<$>>CONFIG_HEADERS " in
56  *" <<$>>am_file "*<<)>>
57    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
58    ;;
59  esac
60  am_indx=`expr "<<$>>am_indx" + 1`
61done<<>>dnl>>)
62changequote([,]))])
63
64# Do all the work for Automake. This macro actually does too much --
65# some checks are only needed if your package does certain things.
66# But this isn't really a big deal.
67
68# serial 1
69
70dnl Usage:
71dnl AM_INIT_AUTOMAKE(package,version, [no-define])
72
73AC_DEFUN(AM_INIT_AUTOMAKE,
74[AC_REQUIRE([AC_PROG_INSTALL])
75dnl We require 2.13 because we rely on SHELL being computed by configure.
76AC_PREREQ([2.13])
77PACKAGE=[$1]
78AC_SUBST(PACKAGE)
79VERSION=[$2]
80AC_SUBST(VERSION)
81dnl test to see if srcdir already configured
82if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
83  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
84fi
85ifelse([$3],,
86AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
88AC_REQUIRE([AM_SANITY_CHECK])
89AC_REQUIRE([AC_ARG_PROGRAM])
90dnl FIXME This is truly gross.
91missing_dir=`cd $ac_aux_dir && pwd`
92AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
93AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
94AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
95AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
96AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
97AC_REQUIRE([AC_PROG_MAKE_SET])])
98
99#
100# Check to make sure that the build environment is sane.
101#
102
103AC_DEFUN(AM_SANITY_CHECK,
104[AC_MSG_CHECKING([whether build environment is sane])
105# Just in case
106sleep 1
107echo timestamp > conftestfile
108# Do `set' in a subshell so we don't clobber the current shell's
109# arguments. Must try -L first in case configure is actually a
110# symlink; some systems play weird games with the mod time of symlinks
111# (eg FreeBSD returns the mod time of the symlink's containing
112# directory).
113if (
114   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
115   if test "[$]*" = "X"; then
116      # -L didn't work.
117      set X `ls -t $srcdir/configure conftestfile`
118   fi
119   if test "[$]*" != "X $srcdir/configure conftestfile" \
120      && test "[$]*" != "X conftestfile $srcdir/configure"; then
121
122      # If neither matched, then we have a broken ls. This can happen
123      # if, for instance, CONFIG_SHELL is bash and it inherits a
124      # broken ls alias from the environment. This has actually
125      # happened. Such a system could not be considered "sane".
126      AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
127alias in your environment])
128   fi
129
130   test "[$]2" = conftestfile
131   )
132then
133   # Ok.
134   :
135else
136   AC_MSG_ERROR([newly created file is older than distributed files!
137Check your system clock])
138fi
139rm -f conftest*
140AC_MSG_RESULT(yes)])
141
142dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
143dnl The program must properly implement --version.
144AC_DEFUN(AM_MISSING_PROG,
145[AC_MSG_CHECKING(for working $2)
146# Run test in a subshell; some versions of sh will print an error if
147# an executable is not found, even if stderr is redirected.
148# Redirect stdin to placate older versions of autoconf. Sigh.
149if ($2 --version) < /dev/null > /dev/null 2>&1; then
150   $1=$2
151   AC_MSG_RESULT(found)
152else
153   $1="$3/missing $2"
154   AC_MSG_RESULT(missing)
155fi
156AC_SUBST($1)])
157
158

Archive Download this file



interactive