Hello Giles, * Giles Anderson wrote on Thu, Sep 11, 2008 at 05:45:38PM CEST: > Is there a way to populate the file output from my '.in' file with only the > result of a condition evaluation not the condition itself? Yes. > So my dev.ini.in file looks like: > > ============ > export SCHED_HOST=@SCHED_HOST_NAME@ > > if [ $(hostname|cut -d. -f1) = "$(echo ${SCHED_HOST} |cut -d. -f1)" ] > then > export ORAENV_ASK=NO > export ORACLE_SID=SID1 > source oraenv > fi > And I would like the resulting dev.ini to look like this if the above is > true: > > export ORAENV_ASK=NO > export ORACLE_SID=SID1 > source oraenv What would you like it to contain if the above is not true? If ORAENV_ASK is YES in that case, for example, you can put export ORAENV_ASK=@ORAENV_ASK@ in the .in file and set $ORAENV_ASK in configure.ac, and AC_SUBST it. If you would like the file to be completely empty, then you can use something like @SET_ORAENV_ASK@ and use something like AC_SUBST([SET_ORAENV_ASK], [export ORAENV_ASK=NO]) in configure.ac. Autoconf versions 2.62 and newer also allow to substitute multiline values, so you can also do something like SET_AND_SOURCE_ORAENV="\ export ORAENV_ASK=NO export ORACLE_SID=SID1 source oraenv" AC_SUBST([SET_AND_SOURCE_ORAENV]) and put @SET_AND_SOURCE_ORAENV@ in your .in file. Cheers, Ralf _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf