This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to pass non regular paths to ./configure?


Hi,

I need to test in my configure.in file for the existence of VTK library.
I have written this:

AC_INIT
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(Xmipp,0.9)
AC_PROG_LIBTOOL
AC_PROG_CXX

AC_CHECK_LIB(vtkImaging, main)
AC_CHECK_LIB(vtkGraphics, main)
AC_CHECK_LIB(vtkCommon, main)
AC_CHECK_LIB(Xext, main)
AC_CHECK_LIB(Xt, main)
AC_CHECK_LIB(X11, main)
AC_CHECK_LIB(pthread, main)

AC_OUTPUT(Makefile  po/Makefile.in m4/Makefile \
	Lib/Makefile \
	Lib/XmippData/Makefile \
	Lib/Reconstruction/Makefile )

Well, it looks for the library but as it is not installed in other place
than /usr/local/lib/vtk it is not able to find it.

Then my question is, What should I add to my configure.in to be able to
do something like ./configure --with-vtk-libdir=/usr/local/lib/vtk and
that it generates an entry in config.h like HAVE_VTK?

Thanks,

-- 
Jose Roman Bilbao <jrbcast@teleline.es>




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]