Index: trunk/FACT++/configure
===================================================================
--- trunk/FACT++/configure	(revision 13031)
+++ trunk/FACT++/configure	(revision 13776)
@@ -624,4 +624,6 @@
 HAS_GUI_FALSE
 HAS_GUI_TRUE
+HAS_NOVA_FALSE
+HAS_NOVA_TRUE
 HAS_QWT_FALSE
 HAS_QWT_TRUE
@@ -926,4 +928,7 @@
 with_GLU_include
 with_GLU_libdir
+with_nova
+with_nova_include
+with_nova_libdir
 with_cfitsio
 with_cfitsio_include
@@ -1654,4 +1659,8 @@
   --with-GLU-libdir=DIR        specify exact library dir for GLU library (e.g. libGLU)
   --without-GLU        disables GLU usage completely
+  --with-nova=DIR	root directory of nova installation
+  --with-nova-include=DIR        specify exact include dir for nova headers (e.g. libnova/julian_day.h)
+  --with-nova-libdir=DIR        specify exact library dir for nova library (e.g. libnova)
+  --without-nova        disables nova usage completely
   --with-cfitsio=DIR	root directory of cfitsio installation
   --with-cfitsio-include=DIR        specify exact include dir for cfitsio headers (e.g. fitsio.h)
@@ -19934,4 +19943,120 @@
 
 
+# Check for libnova
+
+
+
+# Check whether --with-nova was given.
+if test "${with_nova+set}" = set; then :
+  withval=$with_nova; with_nova=$withval
+if test "${with_nova}" != yes; then
+	nova_include="$withval/include"
+	nova_libdir="$withval/lib"
+fi
+
+fi
+
+
+
+# Check whether --with-nova-include was given.
+if test "${with_nova_include+set}" = set; then :
+  withval=$with_nova_include; nova_include="$withval"
+fi
+
+
+
+# Check whether --with-nova-libdir was given.
+if test "${with_nova_libdir+set}" = set; then :
+  withval=$with_nova_libdir; nova_libdir="$withval"
+fi
+
+
+if test "${with_nova}" != no ; then
+	OLD_LIBS=$LIBS
+	OLD_LDFLAGS=$LDFLAGS
+	OLD_CFLAGS=$CFLAGS
+	OLD_CPPFLAGS=$CPPFLAGS
+
+	if test "${nova_libdir}" ; then
+		LDFLAGS="$LDFLAGS -L${nova_libdir}"
+	fi
+	if test "${nova_include}" ; then
+		CPPFLAGS="$CPPFLAGS -I${nova_include}"
+		CFLAGS="$CFLAGS -I${nova_include}"
+	fi
+
+	ac_fn_c_check_header_mongrel "$LINENO" "libnova/julian_day.h" "ac_cv_header_libnova_julian_day_h" "$ac_includes_default"
+if test "x$ac_cv_header_libnova_julian_day_h" = xyes; then :
+
+else
+  no_good=yes
+fi
+
+
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ln_get_julian_from_sys in -lnova" >&5
+$as_echo_n "checking for ln_get_julian_from_sys in -lnova... " >&6; }
+if ${ac_cv_lib_nova_ln_get_julian_from_sys+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lnova  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char ln_get_julian_from_sys ();
+int
+main ()
+{
+return ln_get_julian_from_sys ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_nova_ln_get_julian_from_sys=yes
+else
+  ac_cv_lib_nova_ln_get_julian_from_sys=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nova_ln_get_julian_from_sys" >&5
+$as_echo "$ac_cv_lib_nova_ln_get_julian_from_sys" >&6; }
+if test "x$ac_cv_lib_nova_ln_get_julian_from_sys" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBNOVA 1
+_ACEOF
+
+  LIBS="-lnova $LIBS"
+
+else
+  no_good=yes
+fi
+
+	if test "$no_good" = yes; then
+		HAVE_NOVA=no
+
+		LIBS=$OLD_LIBS
+		LDFLAGS=$OLD_LDFLAGS
+		CPPFLAGS=$OLD_CPPFLAGS
+		CFLAGS=$OLD_CFLAGS
+	else
+		HAVE_NOVA=yes
+
+		$as_echo "#define HAVE_PKG_nova 1" >>confdefs.h
+
+	fi
+
+fi
+
+
+
 # Taken from http://code.google.com/p/autoconf-gl-macros/
 #AX_CHECK_GL
@@ -23500,5 +23625,5 @@
 
 		cat > conftest.$ac_ext <<EOF
-#line 23502 "configure"
+#line 23627 "configure"
 #include "confdefs.h"
 #include <qglobal.h>
@@ -24504,4 +24629,12 @@
 fi
 
+ if test "$HAVE_NOVA" = yes; then
+  HAS_NOVA_TRUE=
+  HAS_NOVA_FALSE='#'
+else
+  HAS_NOVA_TRUE='#'
+  HAS_NOVA_FALSE=
+fi
+
 
  if test "$QT4_VERSION" -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes -a "$HAVE_QGL" = yes -a "$HAVE_ROOT_QT" = yes ; then
@@ -24549,4 +24682,8 @@
 if test "$HAVE_ZLIB" = yes; then
   $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
+
+fi
+if test "$HAVE_NOVA" = yes; then
+  $as_echo "#define HAVE_NOVA 1" >>confdefs.h
 
 fi
@@ -24893,4 +25030,8 @@
 if test -z "${HAS_QWT_TRUE}" && test -z "${HAS_QWT_FALSE}"; then
   as_fn_error $? "conditional \"HAS_QWT\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAS_NOVA_TRUE}" && test -z "${HAS_NOVA_FALSE}"; then
+  as_fn_error $? "conditional \"HAS_NOVA\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
@@ -27369,4 +27510,6 @@
 { $as_echo "$as_me:${as_lineno-$LINENO}:  zlib                   / 'zlib.h'           found: $HAVE_ZLIB" >&5
 $as_echo "$as_me:  zlib                   / 'zlib.h'           found: $HAVE_ZLIB" >&6;}
+{ $as_echo "$as_me:${as_lineno-$LINENO}:  nova                   / libnova.so         found: $HAVE_NOVA" >&5
+$as_echo "$as_me:  nova                   / libnova.so         found: $HAVE_NOVA" >&6;}
 #AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h              found: $HAVE_IZSTREAM_H])
 #AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h                  found: $HAVE_FITS_H])
