Hi,
I'm trying to call awk from within the AC_CONFIG_COMMANDS macro in order
to create a file called version.h. But, I'm not sure if what I am
trying to do is possible or whether I am just not quoting it correctly.
No matter how I quote it, I can never get the appropriate command in the
resulting configure script.
In configure.ac, for example I have the following:
AC_CONFIG_COMMANDS([version.h], [echo version is "`awk '/MAJOR/
{major="$3"} END {printf "%d\n", major}' module.h`" > version.h])
This results in the following in 'configure':
"version.h":C) echo version is "`awk '/MAJOR/ {major=""} END {printf
"%d\n", major}' module.h`" > version.h ;;
This, of course, is not what I want. Instead of major="", I would like
the ending result to say major=$3 so. Can someone provide a hint as to
how I can achieve this? Or, if there is a better way to do this I am
also interested in suggestions. Thanks.
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf