Matthew Whitworth <[EMAIL PROTECTED]> writes:
> I'm writing a program that invokes external programs via popen(), and I'm
> trying to autoconfiscate the package.  I have been trying to use the
> AC_PATH_PROG macro to locate a program.  It seems to be working while the
> configure script is running and the value is available in Makefile.in, but
> I'm not exactly sure how to get the value (the full path to the program)
> in my config.h (where I really need it).

There's a different between AC_SUBST:ing and AC_DEFINE:ing.

Something like the configure.in below should probably do what you
want.

/assar

AC_INIT(configure.in)
AC_CONFIG_HEADER(config.h)
AC_PATH_PROG(PINGPATH, ping)
AC_DEFINE_UNQUOTED(PINGPATH, "$PINGPATH", [path to ping])
AC_OUTPUT(Makefile)

Reply via email to