Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem locating include file

1 view
Skip to first unread message

Jon Leighton

unread,
Mar 13, 2009, 1:25:35 PM3/13/09
to
I'm working with NSPR on Windows XP, using MozillaBuild 1.3 and Visual
Studio 2005. I've added a check to the configure script using
AC_DEFUN[...], and the check tries to compile and run a small piece of
code. I'm having trouble telling the compiler how to find one of the
include files needed for the code.

I've set CPPFLAGS to specify the include directory using the -I compiler
option, but for some reason the compiler still can't find the file. The
only way I've been able to get it to work is either to place the include
file in the same directory from which I'm running the configure script,
or to add the include file's path to the INCLUDE environment variable.

Is there some way to get the -I option to work as expected? Thanks for
any help.

- Jon Leighton

Wan-Teh Chang

unread,
Mar 19, 2009, 12:10:34 PM3/19/09
to leig...@cis.udel.edu, dev-te...@lists.mozilla.org

I'm not good at autoconf programming, so I don't know how to
solve this problem. Sorry!

Looking at nsprpub/configure.in, I only see CPPFLAGS used in
AC_DEFUN(MOZ_CHECK_PTHREADS, whereas CFLAGS is
used in many places (search for "_SAVE_CFLAGS=$CFLAGS").

You can email Ted Mielczarek for help (I don't think he reads
this newsgroup):
http://www.mozilla.org/owners.html#nspr

Wan-Teh

0 new messages