Function: autoconf-find-query-for-program

autoconf-find-query-for-program is a byte-compiled function defined in autoconf-edit.el.gz.

Signature

(autoconf-find-query-for-program PROG)

Documentation

Position the cursor where PROG is queried.

PROG is the VARIABLE to use in autoconf to identify the program. PROG excludes the _PROG suffix. Thus if PROG were EMACS, then the variable in configure.ac would be EMACS_PROG.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/autoconf-edit.el.gz
(defun autoconf-find-query-for-program (prog)
  "Position the cursor where PROG is queried.
PROG is the VARIABLE to use in autoconf to identify the program.
PROG excludes the _PROG suffix.  Thus if PROG were EMACS, then the
variable in configure.ac would be EMACS_PROG."
  (let ((op (point))
	(found t)
	(builtin (assoc prog autoconf-program-builtin)))
    (goto-char (point-min))
    (condition-case nil
	(re-search-forward
	 (concat "^"
		 (or (cdr-safe builtin)
		     (concat "AC_CHECK_PROG\\s-*(\\s-*" prog "_PROG"))
		 "\\>"))
      (error (setq found nil)))
    (if (not found) (goto-char op))
    found))