[PHP-DEV] #define config.m4 text From: Sam Liddicott (sam.liddicott <email protected>)
Date: 12/04/00

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>