From: David Lindes Subject: configure's g++ -E doesn't use CXXFLAGS... To: address@hidden Date: Tue, 9 Sep 2003 20:00:39 -0700 X-Sent: 13 hours, 31 minutes, 48 seconds ago Hi there, Perhaps this is already a known issue, but when I try to run ./configure out of the Sablotron version 1.0 source tree, using the following command line: ./configure LDFLAGS=-L/opt/third-party/lib CXXFLAGS=-I/opt/third-party/include CFLAGS=-I/opt/third-party/include (/opt/third-party is where a bunch of stuff is installed in the environment I tried this in...) I get this output: checking where to find xml parser... expat (new) checking expat.h usability... yes checking expat.h presence... no configure: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: expat.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to address@hidden ## configure: WARNING: ## ------------------------------------ ## checking for expat.h... no configure: error: Couldn't find the expat header file(s) It says to report the bug, so this is it. FYI, here's some info from config.log: configure:9119: checking where to find xml parser configure:9123: checking for XML_Parse in -lexpat configure:9154: g++ -o conftest -I/opt/third-party/include -L/opt/third-party/lib conftest.cc -lexpat >&5 configure:9157: $? = 0 configure:9160: test -s conftest configure:9163: $? = 0 configure:9175: result: yes configure:9261: result: expat (new) configure:9284: checking expat.h usability configure:9297: g++ -c -I/opt/third-party/include conftest.cc >&5 configure:9300: $? = 0 configure:9303: test -s conftest.o configure:9306: $? = 0 configure:9316: result: yes configure:9320: checking expat.h presence configure:9331: g++ -E conftest.cc configure:9342: expat.h: No such file or directory configure:9337: $? = 1 configure: failed program was: | #line 9322 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define ENABLE_DOM 1 | /* end confdefs.h. */ | #include configure:9356: result: no configure:9362: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor! configure:9364: WARNING: expat.h: proceeding with the preprocessor's result configure:9392: checking for expat.h configure:9399: result: no configure:9563: error: Couldn't find the expat header file(s) And some preamble information: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.57. Invocation command line was $ ./configure LDFLAGS=-L/opt/third-party/lib CXXFLAGS=-I/opt/third-party/include CFLAGS=-I/opt/third-party/include ## --------- ## ## Platform. ## ## --------- ## hostname = [deleted from e-mail] uname -m = i686 uname -r = 2.4.21-1a uname -s = Linux uname -v = #1 Thu Jul 3 15:47:32 PDT 2003 Anyway, hopefully that's all the info you need... I'm sure I can work around it (and I realize I'm probably just not using the proper flags to ./configure), but thought you might like to know. (In case you don't already.) Cheers, David