PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/config/ac_exec.m4

https://code.google.com/
m4 | 39 lines | 19 code | 2 blank | 18 comment | 0 complexity | 93f44d171c1ffd6886e0cb871d3027cd MD5 | raw file
 1##*****************************************************************************
 2## $Id$
 3##*****************************************************************************
 4#  AUTHOR:
 5#    Albert Chu
 6#
 7#  SYNOPSIS:
 8#    AC_EXEC
 9#
10#  DESCRIPTION:
11#    Check if user wants to compile execcmd
12#
13#  WARNINGS:
14#    This macro must be placed after AC_PROG_CC or equivalent.
15##*****************************************************************************
16
17AC_DEFUN([AC_EXEC],
18[
19  #
20  # Check for whether to include exec module
21  #
22  AC_MSG_CHECKING([for whether to build exec module])
23  AC_ARG_WITH([exec],
24    AC_HELP_STRING([--with-exec], [Build exec module]),
25    [ case "$withval" in
26        no)  ac_with_exec=no ;;
27        yes) ac_with_exec=yes ;;
28        *)   AC_MSG_RESULT([doh!])
29             AC_MSG_ERROR([bad value "$withval" for --with-exec]) ;;
30      esac
31    ]
32  )
33  AC_MSG_RESULT([${ac_with_exec=yes}])
34   
35  if test "$ac_with_exec" = "yes"; then
36     ac_have_exec=yes
37     AC_ADD_STATIC_MODULE("execcmd")
38  fi
39])