Commit 5458072a authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Add configuration options for FLI cameras

parent 74116e55
ACLOCAL_AMFLAGS = -Im4
SUBDIRS = base
if USE_ALPAO
SUBDIRS += alpao
endif
if USE_ANDOR
SUBDIRS += andor
endif
if USE_FLI
SUBDIRS += fli
endif
if USE_PHOENIX
SUBDIRS += phoenix
endif
if USE_ALPAO
SUBDIRS += alpao
endif
clean-local:
$(RM) *~
......@@ -92,9 +92,10 @@ fi
# Checks for features.
TAO_CHECK_CFITSIO()
TAO_CHECK_ALPAO()
TAO_CHECK_ANDOR()
TAO_CHECK_FLI()
TAO_CHECK_PHOENIX()
TAO_CHECK_ALPAO()
TAO_CHECK_YORICK()
# Checks for header files.
......@@ -130,11 +131,13 @@ echo "Library version (version_info): $version_info"
echo ""
echo "Source directory: $srcdir"
echo "Math library: $LIBM"
echo
echo "Support for FITS files via CFITSIO library: $use_cfitsio"
if test $use_cfitsio = yes; then
echo " Pre-processor flags for CFITSIO: $CFITSIO_DEFS"
echo " Linker flags for CFITSIO: $CFITSIO_LIBS"
fi
echo
echo "Support for Andor cameras: $use_andor"
if test $use_andor = yes; then
echo " Directory for Andor headers: $ANDOR_INCDIR"
......@@ -142,6 +145,7 @@ if test $use_andor = yes; then
echo " Pre-processor flags for Andor SDK: $ANDOR_DEFS"
echo " Linker flags for Andor SDK: $ANDOR_LIBS"
fi
echo
echo "Support for ActiveSilicon Phoenix frame-grabbers: $use_phoenix"
if test $use_phoenix = yes; then
echo " Directory for Phoenix headers: $PHOENIX_INCDIR"
......@@ -150,6 +154,7 @@ if test $use_phoenix = yes; then
echo " Linker flags for Phoenix SDK: $PHOENIX_LIBS"
echo " Full path of Phoenix main DLL: $PHOENIX_DLL"
fi
echo
echo "Support for Alpao deformable mirrors: $use_alpao"
if test $use_alpao = yes; then
echo " Directory for Alpao headers: $ALPAO_INCDIR"
......@@ -157,6 +162,15 @@ if test $use_alpao = yes; then
echo " Pre-processor flags for Alpao SDK: $ALPAO_DEFS"
echo " Linker flags for Alpao SDK: $ALPAO_LIBS"
fi
echo
echo "Support for Finger Lakes Instrumentation (FLI) cameras: $use_fli"
if test $use_fli = yes; then
echo " Directory for FLI headers: $FLI_INCDIR"
echo " Directory for FLI libraries: $FLI_LIBDIR"
echo " Pre-processor flags for FLI SDK: $FLI_DEFS"
echo " Linker flags for FLI SDK: $FLI_LIBS"
fi
echo
echo "Support for Yorick: $use_yorick"
if test $use_yorick = yes; then
echo " Path to Yorick executable: $YORICK_EXE"
......@@ -168,9 +182,10 @@ echo "**********************************************************************"
# Output files.
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([base/Makefile])
AC_CONFIG_FILES([alpao/Makefile])
AC_CONFIG_FILES([andor/Makefile])
AC_CONFIG_FILES([base/Makefile])
AC_CONFIG_FILES([fli/Makefile])
AC_CONFIG_FILES([phoenix/Makefile])
AC_CONFIG_FILES([alpao/Makefile])
#AC_CONFIG_FILES([scripts/Makefile])
AC_OUTPUT
......@@ -170,6 +170,94 @@ AC_DEFUN([TAO_CHECK_ANDOR], [
AC_SUBST([ANDOR_LIBS], ["${ANDOR_LIBS}"])
])
# Check for Finger Lakes Instrumentation (FLI) SDK availability.
AC_DEFUN([TAO_CHECK_FLI], [
AC_ARG_ENABLE([fli],
AC_HELP_STRING([--enable-fli[[=yes|no|check|DIR]]],
[support for Finger Lakes Instrumentation (FLI) cameras @<:@default=check@:>@]),
[enable_fli=$enableval], [enable_fli=check])
if test "x$enable_fli" = x; then
AC_MSG_ERROR([empty argument for --enable-fli is not allowed])
fi
AC_MSG_CHECKING([for FLI SDK])
FLI_INCDIR=
FLI_LIBDIR=
use_fli=no
# usage: search_fli dir
search_fli() {
if test $use_fli = no \
-a -f "[$]1/include/libflipro.h" \
-a -r "[$]1/lib/liblibflipro.so"; then
FLI_INCDIR="[$]1/include"
FLI_LIBDIR="[$]1/lib"
AC_MSG_RESULT([found in $FLI_INCDIR and $FLI_LIBDIR])
use_fli=yes
elif test $use_fli = no \
-a -f "[$]1/libflipro.h" \
-a -r "[$]1/liblibflipro.so" \
-a -r "[$]1/liblibflialgo.so"; then
FLI_INCDIR="[$]1"
FLI_LIBDIR="[$]1"
AC_MSG_RESULT([found in $FLI_INCDIR and $FLI_LIBDIR])
use_fli=yes
fi
}
case "${enable_fli}" in
no )
AC_MSG_RESULT([no])
;;
yes | check )
# First search in EXEC_PREFIX, then in PREFIX, then in a list of
# predefined directories.
if test $use_fli = no -a x"$exec_prefix" != xNONE; then
search_fli "$exec_prefix"
search_fli "$exec_prefix/libflipro"
search_fli "$exec_prefix/libexec/libflipro"
fi
if test $use_fli = no -a x"$prefix" != xNONE; then
search_fli "$prefix"
search_fli "$prefix/libflipro"
search_fli "$prefix/libexec/libflipro"
fi
if test $use_fli = no; then
search_fli /opt/libflipro
search_fli /usr/local
search_fli /usr/local/libflipro
search_fli /usr/local/libexec/libflipro
search_fli /apps
search_fli /apps/libflipro
search_fli /apps/libexec/libflipro
fi
if test $use_fli = no; then
AC_MSG_RESULT([not found])
if test $enable_fli = yes; then
AC_MSG_ERROR([Finger Lakes Instrumentation SDK not found])
fi
fi
;;
* )
dir="${enable_fli}"
search_fli "$dir"
if test $use_fli = no; then
AC_MSG_RESULT([not found in $dir])
AC_MSG_ERROR([Finger Lakes Instrumentation not found, --enable-fli argument should be "yes", "check", "no" or the directory containing "libflipro.h" and "liblibflipro.so"])
fi
;;
esac
if test "$use_fli" = yes; then
FLI_DEFS="-I'\$(FLI_INCDIR)'"
FLI_LIBS="-L'\$(FLI_LIBDIR)' -llibflipro -llibflialgo"
else
FLI_DEFS=
FLI_LIBS=
fi
AM_CONDITIONAL([USE_FLI], [test "$use_fli" = yes])
AC_SUBST([FLI_INCDIR], ["${FLI_INCDIR}"])
AC_SUBST([FLI_LIBDIR], ["${FLI_LIBDIR}"])
AC_SUBST([FLI_DEFS], ["${FLI_DEFS}"])
AC_SUBST([FLI_LIBS], ["${FLI_LIBS}"])
])
# Check for the availability of ActiveSilicon Phoenix libraries.
AC_DEFUN([TAO_CHECK_PHOENIX], [
AC_ARG_ENABLE([phoenix],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment