Import/Merge of libtest latest.
[m6w6/libmemcached] / libtest / m4 / ax_prog_mysqld.m4
1 # ===========================================================================
2 # http://www.gnu.org/software/autoconf-archive/ax_prog_mysqld.html
3 # ===========================================================================
4 #
5 # SYNOPSIS
6 #
7 # AX_PROG_MYSQLD
8 #
9 # DESCRIPTION
10 #
11 # Check for the program 'mysqld' let script continue if exists & works
12 # pops up error message if not.
13 #
14 # Besides checking existence, this macro also set these environment
15 # variables upon completion:
16 #
17 # MYSQLD = which mysqld
18 #
19 # LICENSE
20 #
21 # Copyright (c) 2008 Gleen Salmon <gleensalmon@yahoo.com>
22 #
23 # This program is free software; you can redistribute it and/or modify it
24 # under the terms of the GNU General Public License as published by the
25 # Free Software Foundation; either version 2 of the License, or (at your
26 # option) any later version.
27 #
28 # This program is distributed in the hope that it will be useful, but
29 # WITHOUT ANY WARRANTY; without even the implied warranty of
30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
31 # Public License for more details.
32 #
33 # You should have received a copy of the GNU General Public License along
34 # with this program. If not, see <http://www.gnu.org/licenses/>.
35 #
36 # As a special exception, the respective Autoconf Macro's copyright owner
37 # gives unlimited permission to copy, distribute and modify the configure
38 # scripts that are the output of Autoconf when processing the Macro. You
39 # need not follow the terms of the GNU General Public License when using
40 # or distributing such scripts, even though portions of the text of the
41 # Macro appear in them. The GNU General Public License (GPL) does govern
42 # all other use of the material that constitutes the Autoconf Macro.
43 #
44 # This special exception to the GPL applies to versions of the Autoconf
45 # Macro released by the Autoconf Archive. When you make and distribute a
46 # modified version of the Autoconf Macro, you may extend this special
47 # exception to the GPL to apply to your modified version as well.
48
49 #serial 6
50
51 AU_ALIAS([AC_PROG_MYSQLD], [AX_PROG_MYSQLD])
52 AC_DEFUN([AX_PROG_MYSQLD],[
53 AC_REQUIRE([AC_EXEEXT])dnl
54 AC_PATH_PROG(MYSQLD, mysqld$EXEEXT, nocommand)
55 if test "$MYSQLD" = nocommand; then
56 AC_MSG_WARN([mysqld not found in $PATH])
57 fi;dnl
58 ])