-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 As part of running `configure' I would like to generate some values to be used/substituted in a Makefile. Specifically, I want to get some Oracle compile and link flags using an auxillary Makefile containing something similar to: config: @echo 'ORACLE_CFLAGS=$(CFLAGS)' @echo 'ORACLE_LDFLAGS=-L$(LIBDIR) $(PROLDLIBS)' include $(ORACLE_HOME)/precomp/lib/env_precomp.mk `env_precomp.mk' contains a slew of useful definitions and, since I can't include the file directly in Makefile/Makefile.am (there are some values in there that I believe would muck up the generated Makefile) I would like to do something like the following in configure.ac: ORACLE_CFLAGS=`make -f "$ac_top_srcdir/config/oracle.mk" config | grep -E '^ORACLE_CFLAGS=' | sed -e 's/^[^=]*=//` AC_SUBST(ORACLE_CFLAGS) and then use `@ORACLE_CFLAGS@' in Makefile.am. Unfortunately, `$ac_top_srcdir' isn't available until config.status is run, but I need (?) to get the root of the source directory at configure time to determine the absolute location of oracle.mk (which contains the first snippet of code). So: How can I figure out where the code is when configure is run (without duplicating the code used to calculate ac_top_srcdir), or is there a better generic solution? TIA - -- Michael J. Barillier mbarilli(at)midsouth.rr.com /"\ ASCII Ribbon Reg Linux user #125310 <http://counter.li.org/> \ / Campaign against A. Because that's not how people read. X HTML and RTF Q. Why is top-posting email replies bad? / \ email -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/sU952CJ4zjXlSXMRAmdrAJ4nNXmNzWi8MnV0F0R3y5TVuae+vACcDDld tJCdfpwJzknGg7E8qT7MCNE= =PHhq -----END PGP SIGNATURE-----