[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CPPFLAGS and AC_CHECK_HEADERS
From: |
Jose Roman Bilbao |
Subject: |
Re: CPPFLAGS and AC_CHECK_HEADERS |
Date: |
30 May 2003 15:34:34 +0200 |
Hi Again,
Here you are a part of the "config.log" file code. This is the beginning
of the "test for vtkImageFFT.h file:
configure:9331: checking vtkImageFFT.h usability
configure:9344: gcc -c -g -O2 -I/usr/local/include/vtk conftest.c >&5
In file included from /usr/local/include/vtk/vtkIndent.h:52,
from /usr/local/include/vtk/vtkObject.h:67,
from /usr/local/include/vtk/vtkDataObject.h:62,
from /usr/local/include/vtk/vtkDataSet.h:67,
from /usr/local/include/vtk/vtkImageData.h:52,
from /usr/local/include/vtk/vtkImageSource.h:55,
from /usr/local/include/vtk/vtkImageToImageFilter.h:56,
from /usr/local/include/vtk/vtkImageIterateFilter.h:55,
from
/usr/local/include/vtk/vtkImageDecomposeFilter.h:54,
from /usr/local/include/vtk/vtkImageFourierFilter.h:52,
from /usr/local/include/vtk/vtkImageFFT.h:58,
from configure:9394:
It continues for a couple of hundred lines like those ... Can you help
me?.
In configure.in it is written like this:
AC_CHECK_HEADERS([vtkImageFFT.h])
Thanks.
El jue, 29-05-2003 a las 19:18, Assar Westerlund escribió:
> Jose Roman Bilbao <address@hidden> writes:
> > I can not show you now the output but I can tell you that configure
> > finished saying "NO" to all the tests performed to that library, I mean,
> > usability, compiler and presence.
>
> config.log probably has more hints as to why this happened.
>
> > I tried to build a test and I realized that I can not use this header
> > alone and I have to add some other VTK headers. Has it something to do
> > with my problem?
>
> Yes, that's likely a problem. Look at AC_CHECK_HEADERS in the manual,
> it allows you to include the required headers when testing for a header.
>
> > I could make a simple test using EGREP as I know a file gcc does not
> > find when trying to build the simple example but I was wondering if will
> > work under other plattforms.
>
> Using AC_CHECK_HEADER is going to be more portable, since it actually
> runs the compiler.