hi all
i created a configure.ac file like this: AC_INIT() set
the purpose of this is to print every available environment variable the configure script creates using 'set' so i do:
user@host:~$ autoconf
user@host:~$ ./configure
which prints a bunch of variables like
build=
cache_file=/dev/null
IFS='
'
LANG=C
LANGUAGE=C
datarootdir='${prefix}/share'
mandir='${datarootdir}/man'
no_create=
so far so good the problem is:
- i want to expand the variables like '${prefix}/share' - but pipeing everything in a file 'example.sh' and execute it using bash doesnt work cause bash claims about modifying read only variables like UID and expansion itself doesnt seem to work either
- i tried using a makefile for this where expansion works, but it claims about newlines in strings, like in the above output the line IFS=' causes an error message Makefile:24: *** missing separator. Stop.
anyone has a brighter idea to get a fully expanded version of configures output?
thx all