-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim Post wrote: > In my configure.ac, I have added: > > # Check for package options > AC_ARG_ENABLE(unsafe, [ --enable-unsafe enable unsafe operation > [[default=no]]],[ > if test "$enableval" = no; then > ac_enable_unsafe=no > else > ac_enable_unsafe=yes > fi > ],[ ac_enable_unsafe=no]) > > AC_ARG_WITH(user,[ --with-user specify the system user],[ > ac_with_user="$withval" > ],[ > ac_with_user="" > ]) > > This adds the options to ./configure , however I can't seem to figure > out how I can get the value of these options when compiling. > > I am not using automake, only the basics ... my .in files simply contain > the typical @variables@ that are filled with user preferences. Tim, If you want to pass these into your Makefile.in templates, use AC_SUBST(ac_with_user) then they'll be available as substitution variables (eg., @ac_with_user@) If you want to go farther and create cpp macro definitions in your config.h.in template (automatically if you're using autoheader) then use AC_DEFINE(ac_with_user) They'll then also be available as definitions in config.h. Regards, John -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIJHC3dcgqmRY/OH8RAuGAAJ49ETLnrziNDH9kb4JngIEZwwQ6QgCfaBuz HF9/jdZhXFbnIK8DQd3waT4= =+rCo -----END PGP SIGNATURE----- _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf