#define config.m4 text

From: Date: Mon, 04 Dec 2000 15:13:08 +0000
Subject: #define config.m4 text
Groups: php.dev 
Request: Send a blank email to php-dev+get-39980@lists.php.net to get a copy of this message
How do I #define in my C file some text which is only discovered as a result of some config.m4 messing about? i.e. the compile time path of my libraries? I can use: AC_DEFINE(PHP_MUSCAT_DIR,"$MUSCAT_DIR", [ ]) but this defines literally quote-doller-MUSCAT_DIR-quote, I would like to evaluate something somehow. Right now I am doing echo "#define PHP_MUSCAT_DIR \"$MUSCAT_DIR\"" > muscat_dir.h and: #include "../../muscat_dir.h" in my source but I am sure this is a bad way. Sam

« previous php.dev (#39980) next »