wmauda: Fix installation dir
[dockapps.git] / wmacpiload-0.1.2 / aclocal.m4
blob3bcd5d716813f18b525531783be1b432fcff97e3
1 dnl aclocal.m4 generated automatically by aclocal 1.4-p4
3 dnl Copyright (C) 1994, 1995-8, 1999 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.
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.
13 #!/bin/sh
15 # $Id: acinclude.m4,v 1.3 1999/07/24 22:01:51 daeron Exp $
17 dnl
18 dnl DA_CHECK_LIB(NAME, FUNCTION, EXTRALIBS)
19 dnl
20 AC_DEFUN(DA_CHECK_LIB,
22 LDFLAGS_old="$LDFLAGS"
23 LDFLAGS="$LDFLAGS $lib_search_path"
24 AC_CHECK_LIB([$1],[$2],yes=yes,no=no,[$3])
25 LDFLAGS="$LDFLAGS_old"
29 dnl
30 dnl DA_CHECK_HEADER(NAME)
31 dnl
32 AC_DEFUN(DA_CHECK_HEADER,
34 CPPFLAGS_old="$CPPFLAGS"
35 CPPFLAGS="$CPPFLAGS $inc_search_path"
36 AC_CHECK_HEADER([$1])
37 CPPFLAGS="$CPPFLAGS_old"
41 # Do all the work for Automake.  This macro actually does too much --
42 # some checks are only needed if your package does certain things.
43 # But this isn't really a big deal.
45 # serial 1
47 dnl Usage:
48 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
50 AC_DEFUN(AM_INIT_AUTOMAKE,
51 [AC_REQUIRE([AC_PROG_INSTALL])
52 PACKAGE=[$1]
53 AC_SUBST(PACKAGE)
54 VERSION=[$2]
55 AC_SUBST(VERSION)
56 dnl test to see if srcdir already configured
57 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
58   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
60 ifelse([$3],,
61 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
62 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
63 AC_REQUIRE([AM_SANITY_CHECK])
64 AC_REQUIRE([AC_ARG_PROGRAM])
65 dnl FIXME This is truly gross.
66 missing_dir=`cd $ac_aux_dir && pwd`
67 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
68 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
69 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
70 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
71 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
72 AC_REQUIRE([AC_PROG_MAKE_SET])])
75 # Check to make sure that the build environment is sane.
78 AC_DEFUN(AM_SANITY_CHECK,
79 [AC_MSG_CHECKING([whether build environment is sane])
80 # Just in case
81 sleep 1
82 echo timestamp > conftestfile
83 # Do `set' in a subshell so we don't clobber the current shell's
84 # arguments.  Must try -L first in case configure is actually a
85 # symlink; some systems play weird games with the mod time of symlinks
86 # (eg FreeBSD returns the mod time of the symlink's containing
87 # directory).
88 if (
89    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
90    if test "[$]*" = "X"; then
91       # -L didn't work.
92       set X `ls -t $srcdir/configure conftestfile`
93    fi
94    if test "[$]*" != "X $srcdir/configure conftestfile" \
95       && test "[$]*" != "X conftestfile $srcdir/configure"; then
97       # If neither matched, then we have a broken ls.  This can happen
98       # if, for instance, CONFIG_SHELL is bash and it inherits a
99       # broken ls alias from the environment.  This has actually
100       # happened.  Such a system could not be considered "sane".
101       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
102 alias in your environment])
103    fi
105    test "[$]2" = conftestfile
106    )
107 then
108    # Ok.
109    :
110 else
111    AC_MSG_ERROR([newly created file is older than distributed files!
112 Check your system clock])
114 rm -f conftest*
115 AC_MSG_RESULT(yes)])
117 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
118 dnl The program must properly implement --version.
119 AC_DEFUN(AM_MISSING_PROG,
120 [AC_MSG_CHECKING(for working $2)
121 # Run test in a subshell; some versions of sh will print an error if
122 # an executable is not found, even if stderr is redirected.
123 # Redirect stdin to placate older versions of autoconf.  Sigh.
124 if ($2 --version) < /dev/null > /dev/null 2>&1; then
125    $1=$2
126    AC_MSG_RESULT(found)
127 else
128    $1="$3/missing $2"
129    AC_MSG_RESULT(missing)
131 AC_SUBST($1)])
133 # Like AC_CONFIG_HEADER, but automatically create stamp file.
135 AC_DEFUN(AM_CONFIG_HEADER,
136 [AC_PREREQ([2.12])
137 AC_CONFIG_HEADER([$1])
138 dnl When config.status generates a header, we must update the stamp-h file.
139 dnl This file resides in the same directory as the config header
140 dnl that is generated.  We must strip everything past the first ":",
141 dnl and everything past the last "/".
142 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
143 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
144 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
145 <<am_indx=1
146 for am_file in <<$1>>; do
147   case " <<$>>CONFIG_HEADERS " in
148   *" <<$>>am_file "*<<)>>
149     echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
150     ;;
151   esac
152   am_indx=`expr "<<$>>am_indx" + 1`
153 done<<>>dnl>>)
154 changequote([,]))])