automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_PATH_PROG


From: Mattias Brändström
Subject: Re: AC_PATH_PROG
Date: Mon, 02 Jun 2003 22:41:38 +0200
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312

Tim Van Holder wrote:
If I have something like this in my configure.ac:

AC_PATH_PROG(SED, sed)
AC_ARG_VAR(SED, [path to sed])

Now everything works fine when sed is in my PATH, but I would like for
./configure to fail if sed isn't in my PATH. Is there a standard way to do
this? I haven't found any.

If someone here has any pointers I would really appriciate it!


I don't think you looked very hard - just use the third parameter
to AC_PATH_PROG.

AC_ARG_VAR([SED], [path to SED])
AC_PATH_PROG([SED], [sed], [no])
if test "$SED" = "no"; then
  AC_MSG_ERROR([sed is required])
fi

It seems you're right, I can't have been looking very hard. Thanks anyhow, for some reason I didn't see that use of the third parameter.

:.:: mattias





reply via email to

[Prev in Thread] Current Thread [Next in Thread]