Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/automake/orxonox/aclocal.m4 @ 1943

Last change on this file since 1943 was 1943, checked in by bensch, 21 years ago

orxonox/branches/autoconf: added a branch for autoconf

File size: 6.5 KB
Line 
1dnl aclocal.m4 generated automatically by aclocal 1.4-p6
2
3dnl Copyright (C) 1994, 1995-8, 1999, 2001 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
13#serial 3
14
15dnl From Jim Meyering
16
17dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared --
18dnl usually in <utime.h>.
19dnl Some systems have utime.h but don't declare the struct anywhere.
20
21AC_DEFUN(jm_CHECK_TYPE_STRUCT_UTIMBUF,
22[
23  AC_CHECK_HEADERS(utime.h)
24  AC_REQUIRE([AC_HEADER_TIME])
25  AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf,
26    [AC_TRY_COMPILE(
27      [
28#ifdef TIME_WITH_SYS_TIME
29# include <sys/time.h>
30# include <time.h>
31#else
32# ifdef HAVE_SYS_TIME_H
33#  include <sys/time.h>
34# else
35#  include <time.h>
36# endif
37#endif
38#ifdef HAVE_UTIME_H
39# include <utime.h>
40#endif
41      ],
42      [static struct utimbuf x; x.actime = x.modtime;],
43      fu_cv_sys_struct_utimbuf=yes,
44      fu_cv_sys_struct_utimbuf=no)
45    ])
46
47  if test $fu_cv_sys_struct_utimbuf = yes; then
48    AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1,
49[Define if struct utimbuf is declared -- usually in <utime.h>.
50   Some systems have utime.h but don't declare the struct anywhere. ])
51  fi
52])
53
54# Do all the work for Automake.  This macro actually does too much --
55# some checks are only needed if your package does certain things.
56# But this isn't really a big deal.
57
58# serial 1
59
60dnl Usage:
61dnl AM_INIT_AUTOMAKE(package,version, [no-define])
62
63AC_DEFUN([AM_INIT_AUTOMAKE],
64[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
65AC_REQUIRE([AC_PROG_INSTALL])
66PACKAGE=[$1]
67AC_SUBST(PACKAGE)
68VERSION=[$2]
69AC_SUBST(VERSION)
70dnl test to see if srcdir already configured
71if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
72  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
73fi
74ifelse([$3],,
75AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
76AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
77AC_REQUIRE([AM_SANITY_CHECK])
78AC_REQUIRE([AC_ARG_PROGRAM])
79dnl FIXME This is truly gross.
80missing_dir=`cd $ac_aux_dir && pwd`
81AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
82AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
83AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
84AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
85AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
86AC_REQUIRE([AC_PROG_MAKE_SET])])
87
88# Copyright 2002  Free Software Foundation, Inc.
89
90# This program is free software; you can redistribute it and/or modify
91# it under the terms of the GNU General Public License as published by
92# the Free Software Foundation; either version 2, or (at your option)
93# any later version.
94
95# This program is distributed in the hope that it will be useful,
96# but WITHOUT ANY WARRANTY; without even the implied warranty of
97# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
98# GNU General Public License for more details.
99
100# You should have received a copy of the GNU General Public License
101# along with this program; if not, write to the Free Software
102# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
103
104# AM_AUTOMAKE_VERSION(VERSION)
105# ----------------------------
106# Automake X.Y traces this macro to ensure aclocal.m4 has been
107# generated from the m4 files accompanying Automake X.Y.
108AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
109
110# AM_SET_CURRENT_AUTOMAKE_VERSION
111# -------------------------------
112# Call AM_AUTOMAKE_VERSION so it can be traced.
113# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
114AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
115         [AM_AUTOMAKE_VERSION([1.4-p6])])
116
117#
118# Check to make sure that the build environment is sane.
119#
120
121AC_DEFUN([AM_SANITY_CHECK],
122[AC_MSG_CHECKING([whether build environment is sane])
123# Just in case
124sleep 1
125echo timestamp > conftestfile
126# Do `set' in a subshell so we don't clobber the current shell's
127# arguments.  Must try -L first in case configure is actually a
128# symlink; some systems play weird games with the mod time of symlinks
129# (eg FreeBSD returns the mod time of the symlink's containing
130# directory).
131if (
132   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
133   if test "[$]*" = "X"; then
134      # -L didn't work.
135      set X `ls -t $srcdir/configure conftestfile`
136   fi
137   if test "[$]*" != "X $srcdir/configure conftestfile" \
138      && test "[$]*" != "X conftestfile $srcdir/configure"; then
139
140      # If neither matched, then we have a broken ls.  This can happen
141      # if, for instance, CONFIG_SHELL is bash and it inherits a
142      # broken ls alias from the environment.  This has actually
143      # happened.  Such a system could not be considered "sane".
144      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
145alias in your environment])
146   fi
147
148   test "[$]2" = conftestfile
149   )
150then
151   # Ok.
152   :
153else
154   AC_MSG_ERROR([newly created file is older than distributed files!
155Check your system clock])
156fi
157rm -f conftest*
158AC_MSG_RESULT(yes)])
159
160dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
161dnl The program must properly implement --version.
162AC_DEFUN([AM_MISSING_PROG],
163[AC_MSG_CHECKING(for working $2)
164# Run test in a subshell; some versions of sh will print an error if
165# an executable is not found, even if stderr is redirected.
166# Redirect stdin to placate older versions of autoconf.  Sigh.
167if ($2 --version) < /dev/null > /dev/null 2>&1; then
168   $1=$2
169   AC_MSG_RESULT(found)
170else
171   $1="$3/missing $2"
172   AC_MSG_RESULT(missing)
173fi
174AC_SUBST($1)])
175
176# Like AC_CONFIG_HEADER, but automatically create stamp file.
177
178AC_DEFUN([AM_CONFIG_HEADER],
179[AC_PREREQ([2.12])
180AC_CONFIG_HEADER([$1])
181dnl When config.status generates a header, we must update the stamp-h file.
182dnl This file resides in the same directory as the config header
183dnl that is generated.  We must strip everything past the first ":",
184dnl and everything past the last "/".
185AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
186ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
187<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
188<<am_indx=1
189for am_file in <<$1>>; do
190  case " <<$>>CONFIG_HEADERS " in
191  *" <<$>>am_file "*<<)>>
192    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
193    ;;
194  esac
195  am_indx=`expr "<<$>>am_indx" + 1`
196done<<>>dnl>>)
197changequote([,]))])
198
Note: See TracBrowser for help on using the repository browser.