Hello, On Thu, Jan 06, 2005 at 02:30:34PM +0100, Magnus Therning wrote: > AC_PROGRAM([MY_PROGR], [mypr], [no], [$bindir:$PATH]) > > but it doesn't seem to work. $bindir is expanded to ${exec_prefix}/bin, > on top of that it seems $exec_prefix still is NONE (i.e. a double > expansion, if I could even trigger it, wouldn't suffice) since I only > use --prefix on the command line. Any suggestions? I believe the double expansion is the way to go. I invented the following: bindir_path=`eval "case $prefix$exec_prefix in \ NONENONE) exec_prefix=$ac_default_prefix;; \ *NONE) exec_prefix=$prefix;;esac; echo $bindir"` AC_PROGRAM([MY_PROGR], [mypr], [no], [$bindir_path:$PATH]) Of course, many other solutions are possible, you can use sed, for example. HTH, Stepan Kasal _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf