[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CPPFLAGS and AC_CHECK_HEADERS
From: |
Jose Roman Bilbao |
Subject: |
CPPFLAGS and AC_CHECK_HEADERS |
Date: |
14 May 2003 15:26:49 +0200 |
Hi again,
Do you know why this is not working?, is there something wrong I am
missing?: (The problem is specified at the end)
+++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
AC_INIT
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(Xmipp,0.9)
AC_PROG_LIBTOOL
AC_PROG_CPP
AC_SUBST(XMIPP_PREFIX)
# checking for the existence of VTK on regular PATH
AC_MSG_CHECKING("VTK library dir")
AC_ARG_WITH(vtk-libdir,[ --with-vtk-libdir=DIR location of
the vtk lib directory],
[LDFLAGS="${LDFLAGS} -L${withval} -lvtkCommon -lvtkImaging -lvtkIO
-lvtkGraphics" ])
AC_ARG_WITH(vtk-incdir,[ --with-vtk-incdir=DIR location of
the vtk include directory],
[CPPFLAGS="${CPPFLAGS} -I${withval}"])
# If vtk is not found and no valid --with-vtk-libdir PATH
# has been provide configuration finishes
AC_CHECK_LIB(vtkCommon, main,,
[AC_MSG_ERROR([VTK not found; Check your installation or try
./configure --with-vtk-libdir=/libdir/for/vtk])])
AC_CHECK_LIB(vtkImaging, main,,
[AC_MSG_ERROR([VTK not found; Check your installation or try
./configure --with-vtk-libdir=/libdir/for/vtk])])
AC_CHECK_LIB(vtkGraphics, main,,
[AC_MSG_ERROR([VTK not found; Check your installation or try
./configure --with-vtk-libdir=/libdir/for/vtk])])
AC_MSG_RESULT($CPPFLAGS)
AC_CHECK_HEADER([vtkImageFFT.h],,
[AC_MSG_ERROR([VTK headers not found; Check your installation or try
./configure --with-vtk-incdir=/libdir/for/vtkheaders])])
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The problem is on the last stage. The header vtkImageFFT is where I have
pointed with --with-vtk-incdir but the test does not detect it. Do you
know why is it?.
I am sorry for the inconveniences I can create to you but I am rather
new on this of autoconf.
Many thanks
--
Jose Roman Bilbao <address@hidden>
- CPPFLAGS and AC_CHECK_HEADERS,
Jose Roman Bilbao <=