| 1 | dnl aclocal.m4 generated automatically by aclocal 1.4-p6 |
|---|
| 2 | |
|---|
| 3 | dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
|---|
| 4 | dnl This file is free software; the Free Software Foundation |
|---|
| 5 | dnl gives unlimited permission to copy and/or distribute it, |
|---|
| 6 | dnl with or without modifications, as long as this notice is preserved. |
|---|
| 7 | |
|---|
| 8 | dnl This program is distributed in the hope that it will be useful, |
|---|
| 9 | dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
|---|
| 10 | dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|---|
| 11 | dnl PARTICULAR PURPOSE. |
|---|
| 12 | |
|---|
| 13 | #serial 3 |
|---|
| 14 | |
|---|
| 15 | dnl From Jim Meyering |
|---|
| 16 | |
|---|
| 17 | dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared -- |
|---|
| 18 | dnl usually in <utime.h>. |
|---|
| 19 | dnl Some systems have utime.h but don't declare the struct anywhere. |
|---|
| 20 | |
|---|
| 21 | AC_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 | |
|---|
| 60 | dnl Usage: |
|---|
| 61 | dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
|---|
| 62 | |
|---|
| 63 | AC_DEFUN([AM_INIT_AUTOMAKE], |
|---|
| 64 | [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
|---|
| 65 | AC_REQUIRE([AC_PROG_INSTALL]) |
|---|
| 66 | PACKAGE=[$1] |
|---|
| 67 | AC_SUBST(PACKAGE) |
|---|
| 68 | VERSION=[$2] |
|---|
| 69 | AC_SUBST(VERSION) |
|---|
| 70 | dnl test to see if srcdir already configured |
|---|
| 71 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
|---|
| 72 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
|---|
| 73 | fi |
|---|
| 74 | ifelse([$3],, |
|---|
| 75 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
|---|
| 76 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) |
|---|
| 77 | AC_REQUIRE([AM_SANITY_CHECK]) |
|---|
| 78 | AC_REQUIRE([AC_ARG_PROGRAM]) |
|---|
| 79 | dnl FIXME This is truly gross. |
|---|
| 80 | missing_dir=`cd $ac_aux_dir && pwd` |
|---|
| 81 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) |
|---|
| 82 | AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
|---|
| 83 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) |
|---|
| 84 | AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
|---|
| 85 | AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
|---|
| 86 | AC_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. |
|---|
| 108 | AC_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. |
|---|
| 114 | AC_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 | |
|---|
| 121 | AC_DEFUN([AM_SANITY_CHECK], |
|---|
| 122 | [AC_MSG_CHECKING([whether build environment is sane]) |
|---|
| 123 | # Just in case |
|---|
| 124 | sleep 1 |
|---|
| 125 | echo 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). |
|---|
| 131 | if ( |
|---|
| 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 |
|---|
| 145 | alias in your environment]) |
|---|
| 146 | fi |
|---|
| 147 | |
|---|
| 148 | test "[$]2" = conftestfile |
|---|
| 149 | ) |
|---|
| 150 | then |
|---|
| 151 | # Ok. |
|---|
| 152 | : |
|---|
| 153 | else |
|---|
| 154 | AC_MSG_ERROR([newly created file is older than distributed files! |
|---|
| 155 | Check your system clock]) |
|---|
| 156 | fi |
|---|
| 157 | rm -f conftest* |
|---|
| 158 | AC_MSG_RESULT(yes)]) |
|---|
| 159 | |
|---|
| 160 | dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
|---|
| 161 | dnl The program must properly implement --version. |
|---|
| 162 | AC_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. |
|---|
| 167 | if ($2 --version) < /dev/null > /dev/null 2>&1; then |
|---|
| 168 | $1=$2 |
|---|
| 169 | AC_MSG_RESULT(found) |
|---|
| 170 | else |
|---|
| 171 | $1="$3/missing $2" |
|---|
| 172 | AC_MSG_RESULT(missing) |
|---|
| 173 | fi |
|---|
| 174 | AC_SUBST($1)]) |
|---|
| 175 | |
|---|
| 176 | # Like AC_CONFIG_HEADER, but automatically create stamp file. |
|---|
| 177 | |
|---|
| 178 | AC_DEFUN([AM_CONFIG_HEADER], |
|---|
| 179 | [AC_PREREQ([2.12]) |
|---|
| 180 | AC_CONFIG_HEADER([$1]) |
|---|
| 181 | dnl When config.status generates a header, we must update the stamp-h file. |
|---|
| 182 | dnl This file resides in the same directory as the config header |
|---|
| 183 | dnl that is generated. We must strip everything past the first ":", |
|---|
| 184 | dnl and everything past the last "/". |
|---|
| 185 | AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl |
|---|
| 186 | ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, |
|---|
| 187 | <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, |
|---|
| 188 | <<am_indx=1 |
|---|
| 189 | for 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` |
|---|
| 196 | done<<>>dnl>>) |
|---|
| 197 | changequote([,]))]) |
|---|
| 198 | |
|---|