On 07/11/2011 10:25 PM, narke wrote:
> Hi,
> 
> I am writing a script.in file that is supposed to finally produce a
> script.sh file by automake.  In this script.in, I like to refer the
> full path name of two utilities:  sed and tar, hence I use @SED@ and
> @TAR@ int my script.in as a place holder.  By add 'AC_PROG_SED‘ in my
> configure.ac, I get the @SED@ works for me.  But since there is no
> AC_PROG_TAR, I don't know how to make my @TAR@ works.
> 
> Can someone please give me a hint?  And, more generally, how to detect
> the full path of an external program?

AC_CHECK_PROG or AC_PATH_PROG

http://www.gnu.org/software/autoconf/manual/autoconf.html#Generic-Programs

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to