dnl Process this file with autoconf to produce a configure script. AC_INIT(src/apps/btoa/btoa.cc) dnl Checks for programs. AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_RANLIB dnl Checks for libraries. dnl Replace `main' with a function in -lGL: AC_CHECK_LIB(GL, glEnable) dnl Replace `main' with a function in -lGLU: AC_CHECK_LIB(GLU, gluLookAt) dnl Replace `main' with a function in -lX11: AC_CHECK_LIB(X11, main) dnl Replace `main' with a function in -lXext: AC_CHECK_LIB(Xext, main) dnl Replace `main' with a function in -ldl: AC_CHECK_LIB(dl, main) dnl Replace `main' with a function in -lfltk: AC_CHECK_LIB(fltk, main) dnl Replace `main' with a function in -libs: AC_CHECK_LIB(ibs, main) dnl Replace `main' with a function in -ljpeg: AC_CHECK_LIB(jpeg, main) dnl Replace `main' with a function in -lm: AC_CHECK_LIB(m, main) dnl Replace `main' with a function in -lossim: AC_CHECK_LIB(ossim, main) dnl Replace `main' with a function in -lpvm3: AC_CHECK_LIB(pvm3, main) dnl We really need a relatively recent libtiff, at least a 3.5.x version. AC_CHECK_LIB(tiff, TIFFReadRGBATile) # This library may be required by Python 2.0 AC_CHECK_LIB(util, openpty) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T OSSIM_TOP=`pwd` export OSSIM_TOP AC_SUBST(OSSIM_TOP,$OSSIM_TOP) OSSIM_CHECK_WXGTK OSSIM_CHECK_LIBGRASS dnl --------------------------------------------------------------------------- dnl Python Checks dnl --------------------------------------------------------------------------- AC_ARG_WITH(python,[ --without-python Disable Python],,) AM_PATH_PYTHON AM_INIT_PYEXEC_MOD PYTHON_SETTING=0 export PYTHON_SETTING PYTHON_LIBS= export PYTHON_LIBS if test "$PYTHON" != no -a -f "$pythonlib" ; then PYTHON_LIBS=$pythonlib PYTHON_SETTING=1 echo "found $PYTHON_LIBS, python enabled." fi AC_SUBST(PYTHON_SETTING,$PYTHON_SETTING) AC_SUBST(PYTHON_LIBS,$PYTHON_LIBS) dnl -------------------------------- dnl Check for the geotiff package... dnl -------------------------------- OSSIM_CHECK_MPI dnl -------------------------------- dnl Check for the geotiff package... dnl -------------------------------- OSSIM_CHECK_GEOTIFF AC_OUTPUT( Makefile.common )