|
Re: Handling PACKAGE, PACKAGE_VERSION, etc. with multiple libraries: msg#00008sysutils.autoconf.general
This is a big annoyance. When I asked this question mostly what I got was people telling me to RTFM. What I ended up doing is to get configure to #define things in something like a config_internal.h I would then have a config.h which would look like: #ifndef QDP_CONFIG_H #define QDP_CONFIG_H /* Undef the unwanted from the environment -- eg the compiler command line */ #undef PACKAGE #undef PACKAGE_BUGREPORT #undef PACKAGE_NAME #undef PACKAGE_STRING #undef PACKAGE_TARNAME #undef PACKAGE_VERSION #undef VERSION /* Include the stuff generated by autoconf */ #include "qdp_config_internal.h" /* Prefix everything with QDP_ */ #define QDP_PACKAGE PACKAGE #define QDP_PACKAGE_BUGREPORT PACKAGE_BUGREPORT #define QDP_PACKAGE_NAME PACKAGE_NAME #define QDP_PACKAGE_STRING PACKAGE_STRING #define QDP_PACKAGE_TARNAME PACKAGE_TARNAME #define QDP_PACKAGE_VERSION PACKAGE_VERSION /* Undef the unwanted */ #undef PACKAGE #undef PACKAGE_BUGREPORT #undef PACKAGE_NAME #undef PACKAGE_STRING #undef PACKAGE_TARNAME #undef PACKAGE_VERSION #undef VERSION #endif /* Close starting ifnded */ It is a kludge... but it seems to shut the warnings up. With best wishes, Balint J.T. Conklin wrote: I am in the process of autoconfiscating TAO (The ACE ORB), an open -- ------------------------------------------------------------------- Dr Balint Joo Post Doctoral Research Fellow School of Physics University of Edinburgh Mayfield Road, Edinburgh EH9 3JZ Scotland UK Tel: 0131 650 6469 (from UK) +44-131-650-6469 (from outwith UK) Fax: 0131 650 5902 (from UK) +44-131-650-5902 (from outwith UK) email: bj@xxxxxxxxxxx bj@xxxxxxxxxxxxxxxxx WWW : http://www.ph.ed.ac.uk/~bj ------------------------------------------------------------------- |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Handling PACKAGE, PACKAGE_VERSION, etc. with multiple libraries: 00008, Ralf Corsepius |
|---|---|
| Next by Date: | Re: Handling PACKAGE, PACKAGE_VERSION, etc. with multiple libraries: 00008, J.T. Conklin |
| Previous by Thread: | Re: Handling PACKAGE, PACKAGE_VERSION, etc. with multiple librariesi: 00008, Bob Friesenhahn |
| Next by Thread: | Re: Handling PACKAGE, PACKAGE_VERSION, etc. with multiple libraries: 00008, Noah Misch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |