symbian-qemu-0.9.1-12/dtc-trunk/acinclude.m4
author Gareth Stockwell <gareth.stockwell@accenture.com>
Wed, 22 Sep 2010 20:10:53 +0100
branchgraphics-phase-3
changeset 113 b842c0cb760e
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Backed out changeset b6c206049d8a The nvmemmory library depends on a modification to qemu; this change is therefore backed out in order to allow NVM functionality to be merged into graphics-phase-3 by transplanting individual commits.

dnl Useful autoconf macros

# --enable-maintainer-mode is disabled by default
AC_DEFUN([CSL_AC_MAINTAINER_MODE],[
  AC_ARG_ENABLE(maintainer-mode,
    AS_HELP_STRING([--enable-maintainer-mode],
	  	   [Enable maintainer mode]),
    MAINTAINER_MODE=$enableval,
    MAINTAINER_MODE=no)
  AC_SUBST(MAINTAINER_MODE)
])

# --with-pkgversion=VERSION
AC_DEFUN([CSL_AC_PKGVERSION],[
  AC_ARG_WITH(pkgversion,
    AS_HELP_STRING([--with-pkgversion=PKG],
                   [Add PKG to the version string]),
    [case "$withval" in
      (yes) AC_MSG_ERROR([package version not specified]) ;;
      (no)  PKGVERSION= ;;
      (*)   PKGVERSION=" ($withval)" ;;
     esac],
    PKGVERSION=
  )
  AC_SUBST(PKGVERSION)
])

# --with-bugurl=URL
AC_DEFUN([CSL_AC_BUGURL],[
  AC_ARG_WITH(bugurl,
    AS_HELP_STRING([--with-bugurl=URL],
                   [Direct users to URL to report a bug]),
    [case "$withval" in
      (yes) AC_MSG_ERROR([bug URL not specified]) ;;
      (no)  BUGURL="" ;; 
      (*)   BUGURL="<URL:$withval>" ;;
     esac],
     BUGURL=""
  )
  AC_SUBST(BUGURL)
])