--- armadillo-2.2.3+dfsg.orig/examples/Makefile
+++ armadillo-2.2.3+dfsg/examples/Makefile
@@ -1,11 +1,5 @@
-# NOTE:
-# This file is mainly useful when doing a manual installation of Armadillo.
-# It is overwritten by CMake when doing an automatic installation.
-#
-# You may need to edit this file to reflect the type and capabilities
-# of your system.  The defaults are for a Linux system and will need
-# to be changed for other systems (e.g. Mac OS X).
-
+# The generated "Makefile" from "Makefile.cmake" is only usable after
+# the Armadillo library has been configured and installed by CMake.
 
 CXX=g++
 #CXX=g++-4.2
@@ -17,44 +11,27 @@
 ## When using the Sun Studio compiler
 
 
-ARMA_INCLUDE_FLAG = -I ../include
-## If you've installed Armadillo's headers manually, 
-## you may need to tell the compiler where they are.
-## For example, change ../include to /usr/local/include
-## and uncomment the above line.
-
-
-#BOOST_INCLUDE_FLAG = -I /usr/include
-## If you have Boost libraries, change /usr/include
-## to point to where they are installed and uncomment
-## the above line.
-
-
-#EXTRA_LIB_FLAGS = -llapack -lblas
-## The above line is an example of the extra libraries
-## that can be used by Armadillo. You will also need
-## to modify "include/armadillo_bits/config.hpp"
-## to indicate which extra libraries are present.
-## If you're using Mac OS, comment out the line and
-## instead use the line below.
-
-
-#EXTRA_LIB_FLAGS = -framework Accelerate
-## Uncomment the above line when using Mac OS
-## and modify "include/armadillo_bits/config.hpp"
-## to indicate that LAPACK and BLAS libraries
-## are present
-
+# flags configured by CMake
+ifeq (unix,macos)
+  EXTRA_LIB_FLAGS = -framework Accelerate
+endif
 
 #EXTRA_LIB_FLAGS = -library=sunperf
 ## When using the Sun Studio compiler
 
 
-LIB_FLAGS = $(EXTRA_LIB_FLAGS)
+ifeq (true,true)
+  BOOST_INCLUDE_FLAG = -I /usr/include
+endif
+
+
+
+LIB_FLAGS = -larmadillo $(EXTRA_LIB_FLAGS)
 ## NOTE: on Ubuntu and Debian based systems you may need to add 
 ## -lgfortran to LIB_FLAGS
 
 
+
 OPT = -O1
 ## As the Armadillo library uses recursive templates,
 ## compilation times depend on the level of optimisation:
@@ -91,7 +68,7 @@
 #
 #
 
-CXXFLAGS = $(ARMA_INCLUDE_FLAG) $(BOOST_INCLUDE_FLAG) $(DEBUG) $(FINAL) $(OPT) $(EXTRA_OPT) 
+CXXFLAGS = $(BOOST_INCLUDE_FLAG) $(DEBUG) $(FINAL) $(OPT) $(EXTRA_OPT)
 
 all: example1 example2
 
--- armadillo-2.2.3+dfsg.orig/debian/copyright
+++ armadillo-2.2.3+dfsg/debian/copyright
@@ -0,0 +1,76 @@
+This package was debianized by Kumar Appaiah <akumar@debian.org> on
+Wed, 25 Mar 2009 15:02:42 -0500.
+
+It was downloaded from <http://arma.sourceforge.net>
+
+Upstream Author:
+
+	 Conrad Sanderson <conradsand ! ieee !org> (Change first `!' to `@', second one to `.')
+
+Contributors:
+	Justin Bedo
+	Ian Cullinan
+	Charles Gretton
+	Oka Kurniawan
+	Adam Piątyszek
+	Ola Rinta-Koski
+	Laurianne Sitbon
+	Yong Kang Wong
+
+Copyright:
+
+    Copyright © 2008 - 2011 NICTA
+
+This program is licensed under the GNU Lesser General Public License
+(LGPL), and you may use and redistribute the software under the LGPL
+version 3, or (at your option) any later version.
+
+LGPL:
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Library General Public
+    License as published by the Free Software Foundation; either
+    version 3 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Library General Public License for more details.
+
+    You should have received a copy of the GNU Library General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU Library General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+Files in build_aux/cmake/Modules:
+    Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
+    Redistribution and use is allowed according to the terms of the BSD license.
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions
+    are met:
+    
+    1. Redistributions of source code must retain the copyright
+    notice, this list of conditions and the following disclaimer.
+    2. Redistributions in binary form must reproduce the copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+    3. The name of the author may not be used to endorse or promote products 
+    derived from this software without specific prior written permission.
+    
+    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+    NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The Debian packaging is © 2009-2011, Kumar Appaiah <akumar@debian.org>
+and is licensed under the GNU General Public License version 2. On
+Debian systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL-2'.
--- armadillo-2.2.3+dfsg.orig/debian/watch
+++ armadillo-2.2.3+dfsg/debian/watch
@@ -0,0 +1,5 @@
+version=3
+#http://sf.net/arma/armadillo-(.*)\.tar\.gz
+opts=filenamemangle=s/.*armadillo-(.*)\.tar\.gz\/download/armadillo-$1.tar.gz/,\
+dversionmangle=s/\.dfsg\.\d+// \
+http://sourceforge.net/projects/arma/files armadillo-(.*)\.tar\.gz/download debian bash debian/dfsg-repack.sh
--- armadillo-2.2.3+dfsg.orig/debian/rules
+++ armadillo-2.2.3+dfsg/debian/rules
@@ -0,0 +1,68 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
+config.status: configure
+	dh_testdir
+	./configure
+
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
+
+build-stamp: config.status
+	dh_testdir
+	cmake -D INSTALL_LIB_DIR=lib -D CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT:BOOL=ON  . # specified to install to the debian/tmp directory.
+	$(MAKE)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	rm -rf debian/doc_gen
+	[ ! -f Makefile ] || $(MAKE) clean
+	rm -f config.guess config.sub Makefile
+	rm -f CMakeCache.txt cmake_install.cmake
+	rm -rf CMakeFiles
+	rm -f install_manifest.txt
+	dh_clean  --exclude ./src/include/armadillo_bits/dgemm_proto.hpp.orig
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean --exclude ./src/include/armadillo_bits/dgemm_proto.hpp.orig
+	dh_installdirs
+	$(MAKE) prefix=$(CURDIR)/debian/tmp/usr install DESTDIR=debian/tmp
+
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installchangelogs -a
+	dh_installdocs -a
+	dh_installexamples -a
+	dh_install -a --sourcedir=debian/tmp
+	dh_installman -a
+	dh_link -a
+	dh_strip -a
+	dh_compress -a -X.cpp
+	dh_fixperms -a
+	dh_makeshlibs -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary-indep: build install
+# Currently no arch-independent packages
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-arch binary install
--- armadillo-2.2.3+dfsg.orig/debian/changelog
+++ armadillo-2.2.3+dfsg/debian/changelog
@@ -0,0 +1,152 @@
+armadillo (2.2.3+dfsg-1) unstable; urgency=medium
+
+  * New upstream release
+  * This update fixes a multiplication issues with some functions
+    operating on complex numbers (Closes: #640474).
+
+ -- Kumar Appaiah <akumar@debian.org>  Mon, 05 Sep 2011 17:04:00 -0500
+
+armadillo (2.0.1+dfsg-1) unstable; urgency=medium
+
+  * New upstream release (Closes: #632616)
+  * Update build rule to comply with lintian recommendations (provide
+    build-arch and build-indep)
+
+ -- Kumar Appaiah <akumar@debian.org>  Sat, 09 Jul 2011 09:48:25 -0500
+
+armadillo (1.99.2+dfsg-1) unstable; urgency=low
+
+  * New upstream release
+  * Standards version is now 3.9.2 (no changes needed)
+
+ -- Kumar Appaiah <akumar@debian.org>  Thu, 26 May 2011 17:35:44 -0500
+
+armadillo (1.1.92+dfsg-1) unstable; urgency=low
+
+  * New upstream release
+  * Remove patches/no_lib64.diff; include definition in rules file for lib
+    directory.
+  * Add binary-indep to the rules file.
+
+ -- Kumar Appaiah <akumar@debian.org>  Wed, 06 Apr 2011 01:35:19 -0500
+
+armadillo (1.1.90+dfsg-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Kumar Appaiah <akumar@debian.org>  Wed, 23 Mar 2011 16:17:03 -0500
+
+armadillo (1.1.4+dfsg-1) unstable; urgency=low
+
+  * New upstream release
+  * Don't generate Doxygen docs anymore (Build-Depend on doxygen removed)
+  * Add missing copyright information
+  * Repack to be DFSG compliant
+  * Preserve config.hpp during clean operation
+  * Remove doc package; documentation now in dev package
+
+ -- Kumar Appaiah <akumar@debian.org>  Sun, 20 Feb 2011 18:00:25 -0600
+
+armadillo (1.1.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Bump soname to 1
+  * Don't compress C++ example files
+
+ -- Kumar Appaiah <akumar@debian.org>  Tue, 15 Feb 2011 23:34:00 -0600
+
+armadillo (1.0.0-1) experimental; urgency=low
+
+  * New upstream release.
+  * Fix cleanup routine in debian/rules.
+  * Standards version is now 3.9.1 (no changes needed)
+
+ -- Kumar Appaiah <akumar@debian.org>  Thu, 25 Nov 2010 08:17:45 -0600
+
+armadillo (0.9.52-1) unstable; urgency=low
+
+  * New upstream release.
+  * Update Standards Version to 3.9.0 (No changes needed)
+
+ -- Kumar Appaiah <akumar@debian.org>  Sun, 25 Jul 2010 09:24:52 -0500
+
+armadillo (0.9.8-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Kumar Appaiah <akumar@debian.org>  Mon, 17 May 2010 14:33:25 -0500
+
+armadillo (0.9.4-1) unstable; urgency=low
+
+  * New Upstream Release.
+
+ -- Kumar Appaiah <akumar@debian.org>  Sat, 20 Mar 2010 08:53:13 -0500
+
+armadillo (0.9.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Kumar Appaiah <akumar@debian.org>  Thu, 04 Mar 2010 22:16:57 -0600
+
+armadillo (0.9.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Kumar Appaiah <akumar@debian.org>  Wed, 17 Feb 2010 10:09:34 -0600
+
+armadillo (0.8.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Standards Version is now 3.8.4 (No changes needed)
+  * Add {$misc:Depends} to all packages.
+
+ -- Kumar Appaiah <akumar@debian.org>  Wed, 03 Feb 2010 06:04:11 -0600
+
+armadillo (0.8.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * Standards Version is now 3.8.3 (no changes needed)
+  * Update watch file.
+
+ -- Kumar Appaiah <akumar@debian.org>  Sat, 19 Dec 2009 01:41:31 -0600
+
+armadillo (0.6.12-2) unstable; urgency=low
+
+  * Add boost dependency. Thanks to Dirk Eddelbuettel for bringing this to
+    my notice. In particular, use libboost-math-dev and
+    libboost-date-time-dev.
+  * Fix echo -e bashism. Thanks to Raphael Geissert for pointing
+    this out. (Closes: #535371)
+
+ -- Kumar Appaiah <akumar@debian.org>  Mon, 27 Jul 2009 09:17:46 -0500
+
+armadillo (0.6.12-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+  * Standards version is now 3.8.2 (no changes).
+
+ -- Kumar Appaiah <akumar@debian.org>  Mon, 06 Jul 2009 06:30:45 -0400
+
+armadillo (0.6.10-2) unstable; urgency=low
+
+  * debian/control: Add quilt to Build-Depends.
+  * debian/patches: no_lib64.diff
+    + Patch to use lib64 always.
+
+ -- Kumar Appaiah <akumar@debian.org>  Sat, 09 May 2009 18:14:29 -0500
+
+armadillo (0.6.10-1) unstable; urgency=low
+
+  * New Upstream Version
+  * Update copyright: correct to mention that package is licensed under
+    LGPL v3 or later.
+  * Place library in /usr/lib64.
+
+ -- Kumar Appaiah <akumar@debian.org>  Sat, 09 May 2009 16:54:18 -0500
+
+armadillo (0.6.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #521978)
+
+ -- Kumar Appaiah <akumar@debian.org>  Wed, 25 Mar 2009 15:02:42 -0500
+
--- armadillo-2.2.3+dfsg.orig/debian/libarmadillo-dev.examples
+++ armadillo-2.2.3+dfsg/debian/libarmadillo-dev.examples
@@ -0,0 +1 @@
+examples/*
--- armadillo-2.2.3+dfsg.orig/debian/libarmadillo2.install
+++ armadillo-2.2.3+dfsg/debian/libarmadillo2.install
@@ -0,0 +1 @@
+usr/lib/*.so.* usr/lib
--- armadillo-2.2.3+dfsg.orig/debian/README.source
+++ armadillo-2.2.3+dfsg/debian/README.source
@@ -0,0 +1,22 @@
+Patch system for armadillo
+==========================
+
+This package uses quilt to maintain local changes to the speech-tools
+distribution.  The Debian-specific patches are maintained in the debian/patches/
+directory.
+
+To apply all the patches, preparing the source for building, use:
+  debian/rules patch
+
+To revert the patches, preparing to build a source package, use:
+  debian/rules unpatch
+
+You do not need to manually execute these targets when building the package;
+they are part of the debian/rules target chain.
+
+For more information on the quilt integration with Debian packages, as well as
+editing, adding or removing patches, please see the quilt documentation; in
+recent versions of the Debian package of quilt, See:
+  /usr/share/doc/quilt/README.source
+
+ -- Kumar Appaiah <akumar@debian.org>, Sat, 19 Dec 2009 01:45:05 -0600
--- armadillo-2.2.3+dfsg.orig/debian/compat
+++ armadillo-2.2.3+dfsg/debian/compat
@@ -0,0 +1 @@
+7
--- armadillo-2.2.3+dfsg.orig/debian/control
+++ armadillo-2.2.3+dfsg/debian/control
@@ -0,0 +1,37 @@
+Source: armadillo
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Kumar Appaiah <akumar@debian.org>
+Build-Depends: debhelper (>= 7), libblas-dev, liblapack-dev, cmake, libboost-math-dev (>= 1.3.4), libboost-date-time-dev (>= 1.3.4)
+Standards-Version: 3.9.2
+Section: libs
+Homepage: http://arma.sourceforge.net/
+Vcs-Git: git://git.debian.org/git/debian-science/packages/armadillo.git
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/armadillo.git
+
+Package: libarmadillo-dev
+Section: libdevel
+Architecture: any
+Suggests: libitpp-dev
+Depends: libarmadillo2 (= ${binary:Version}), ${misc:Depends}
+Replaces: libarmadillo-doc (<= 1.1.2-1)
+Conflicts: libarmadillo-doc
+Description: streamlined C++ linear algebra library - Headers
+ Armadillo is a streamlined C++ linear algebra library (matrix maths)
+ aiming towards a good balance between speed and ease of use. Integer,
+ floating point and complex numbers are supported, as well as a subset
+ of trigonometric and statistics functions. Optional integration with
+ LAPACK and ATLAS libraries is also provided.
+ .
+ This package has the development libraries and headers for Armadillo.
+
+Package: libarmadillo2
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: streamlined C++ linear algebra library
+ Armadillo is a streamlined C++ linear algebra library (matrix maths)
+ aiming towards a good balance between speed and ease of use. Integer,
+ floating point and complex numbers are supported, as well as a subset
+ of trigonometric and statistics functions. Optional integration with
+ LAPACK and ATLAS libraries is also provided.
--- armadillo-2.2.3+dfsg.orig/debian/dfsg-repack.sh
+++ armadillo-2.2.3+dfsg/debian/dfsg-repack.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+# Borrowed from Raphael Geissert's Debian PHP repack script.
+
+set -e
+
+if [ ! -f "$3" ] && [ ! -f "$1" ]; then
+    echo "This script must be run via uscan or by manually specifying the tarball" >&2
+    exit 1
+fi
+
+tarball=
+
+[ -f "$3" ] && tarball="$3"
+[ -z "$tarball" -a -f "$1" ] && tarball="$1"
+
+fname="$(basename "$tarball")"
+tarball="$(readlink -f "$tarball")"
+
+tdir="$(mktemp -d)"
+trap '[ ! -d "$tdir" ] || rm -r "$tdir"' EXIT
+
+zcat "$tarball" | tar --wildcards --delete '*/examples/lib_win32' --delete '*/examples*_win32' --delete '*/docs/*pdf' > "$tdir/${fname/.gz}"
+#touch -m -r "$tarball" "$tdir/${fname/.gz}"
+gzip -9 "$tdir/${fname/.gz}"
+
+mv "$tarball" "$tarball.bkp"
+tarballdfsg=$(echo $3|sed 's/\.orig\.tar\.gz/+dfsg.orig.tar.gz/')
+echo Writing $tarballdfsg
+mv "$tdir/$fname" "$tarballdfsg"
--- armadillo-2.2.3+dfsg.orig/debian/libarmadillo2.docs
+++ armadillo-2.2.3+dfsg/debian/libarmadillo2.docs
@@ -0,0 +1 @@
+README.txt
--- armadillo-2.2.3+dfsg.orig/debian/libarmadillo-dev.install
+++ armadillo-2.2.3+dfsg/debian/libarmadillo-dev.install
@@ -0,0 +1,2 @@
+usr/include/* usr/include
+usr/lib/lib*.so usr/lib
--- armadillo-2.2.3+dfsg.orig/debian/libarmadillo-dev.doc-base
+++ armadillo-2.2.3+dfsg/debian/libarmadillo-dev.doc-base
@@ -0,0 +1,12 @@
+Document: armadillo
+Title: Armadillo Manual
+Author: Conrad Sanderson
+Abstract: This manual contains the Armadillo technical documentation
+ which documents the various features and methods provided in
+ the Armadillo library for vector and matrix based mathematical
+ computations.
+Section: Science/Mathematics
+
+Format: HTML
+Index: /usr/share/doc/libarmadillo-dev/index.html
+Files: /usr/share/doc/libarmadillo-dev/*.html
--- armadillo-2.2.3+dfsg.orig/debian/libarmadillo-dev.docs
+++ armadillo-2.2.3+dfsg/debian/libarmadillo-dev.docs
@@ -0,0 +1 @@
+docs/*
--- armadillo-2.2.3+dfsg.orig/include/armadillo_bits/config.hpp
+++ armadillo-2.2.3+dfsg/include/armadillo_bits/config.hpp
@@ -13,14 +13,14 @@
 
 
 #if !defined(ARMA_USE_LAPACK)
-// #define ARMA_USE_LAPACK
+#define ARMA_USE_LAPACK
 //// Uncomment the above line if you have LAPACK or a fast replacement for LAPACK,
 //// such as Intel's MKL, AMD's ACML, or the Accelerate framework.
 //// LAPACK is required for matrix decompositions (eg. SVD) and matrix inverse.
 #endif
 
 #if !defined(ARMA_USE_BLAS)
-// #define ARMA_USE_BLAS
+#define ARMA_USE_BLAS
 //// Uncomment the above line if you have BLAS or a fast replacement for BLAS,
 //// such as GotoBLAS, Intel's MKL, AMD's ACML, or the Accelerate framework.
 //// BLAS is used for matrix multiplication.
@@ -48,14 +48,14 @@
 //// If you mainly use lots of very small vectors (eg. <= 4 elements),
 //// change the number to the size of your vectors.
 
-// #define ARMA_USE_ATLAS
-// #define ARMA_ATLAS_INCLUDE_DIR /usr/include/
+/* #undef ARMA_USE_ATLAS */
+#define ARMA_ATLAS_INCLUDE_DIR /
 //// If you're using ATLAS and the compiler can't find cblas.h and/or clapack.h
 //// uncomment the above define and specify the appropriate include directory.
 //// Make sure the directory has a trailing /
 
-// #define ARMA_USE_BOOST
-// #define ARMA_USE_BOOST_DATE
+#define ARMA_USE_BOOST
+#define ARMA_USE_BOOST_DATE
 
 #define ARMA_PRINT_LOGIC_ERRORS
 #define ARMA_PRINT_RUNTIME_ERRORS
@@ -65,8 +65,8 @@
 // #define ARMA_HAVE_STD_ISNAN
 // #define ARMA_HAVE_STD_SNPRINTF
 
-// #define ARMA_HAVE_LOG1P
-// #define ARMA_HAVE_GETTIMEOFDAY
+#define ARMA_HAVE_LOG1P
+#define ARMA_HAVE_GETTIMEOFDAY
 
 // #define ARMA_EXTRA_DEBUG
 // #define ARMA_NO_DEBUG
