Skip to content

Instantly share code, notes, and snippets.

@translunar
Created January 21, 2010 17:20
Show Gist options
  • Save translunar/282960 to your computer and use it in GitHub Desktop.
Save translunar/282960 to your computer and use it in GitHub Desktop.
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Canonical build */
#define CBUILD "i686-pc-linux-gnu"
/* Canonical host */
#define CHOST "i686-pc-linux-gnu"
/* Canonical target */
#define CTARGET "i686-pc-linux-gnu"
/* define if the Boost library is available */
#define HAVE_BOOST /**/
/* define if the Boost::Filesystem library is available */
#define HAVE_BOOST_FILESYSTEM /**/
/* define if the Boost::PROGRAM_OPTIONS library is available */
#define HAVE_BOOST_PROGRAM_OPTIONS /**/
/* define if the Boost::System library is available */
#define HAVE_BOOST_SYSTEM /**/
/* Define to 1 if you have the <boost_system.h> header file. */
/* #undef HAVE_BOOST_SYSTEM_H */
/* Define to 1 if you have the <inttypes.h> header file. */
/* #undef HAVE_INTTYPES_H */
/* Define to 1 if you have the <memory.h> header file. */
/* #undef HAVE_MEMORY_H */
/* Define to 1 if you have the `sqrt' function. */
/* #undef HAVE_SQRT */
/* Define to 1 if stdbool.h conforms to C99. */
#define HAVE_STDBOOL_H 1
/* Define to 1 if you have the <stdint.h> header file. */
/* #undef HAVE_STDINT_H */
/* Define to 1 if you have the <stdlib.h> header file. */
/* #undef HAVE_STDLIB_H */
/* Define to 1 if you have the <strings.h> header file. */
/* #undef HAVE_STRINGS_H */
/* Define to 1 if you have the <string.h> header file. */
/* #undef HAVE_STRING_H */
/* Define to 1 if you have the <sys/stat.h> header file. */
/* #undef HAVE_SYS_STAT_H */
/* Define to 1 if you have the <sys/types.h> header file. */
/* #undef HAVE_SYS_TYPES_H */
/* Define to 1 if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */
/* Define to 1 if the system has the type `_Bool'. */
#define HAVE__BOOL 1
/* Name of package */
#define PACKAGE "phenomatrix"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "john@gunfreeschools.org"
/* Define to the full name of this package. */
#define PACKAGE_NAME "phenomatrix"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "phenomatrix 0.1.0"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "phenomatrix"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.1.0"
/* Define to 1 if you have the ANSI C header files. */
/* #undef STDC_HEADERS */
/* Version number of package */
#define VERSION "0.1.0"
/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.64])
AC_LANG([C++])
AC_INIT([phenomatrix], [0.1.0], [john@gunfreeschools.org])
AC_CONFIG_AUX_DIR([/usr/share/automake-1.7])
AC_CONFIG_SRCDIR([src/oracle.h])
AC_CONFIG_HEADERS([config.h])
AC_CANONICAL_HOST
AC_DEFINE_UNQUOTED([CHOST], ["$host"], [Canonical host])
AC_CANONICAL_BUILD
AC_DEFINE_UNQUOTED([CBUILD], ["$build"], [Canonical build])
AC_CANONICAL_TARGET
AC_DEFINE_UNQUOTED([CTARGET], ["$target"], [Canonical target])
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
AX_BOOST_BASE([1.39.0])
AX_BOOST_SYSTEM
AX_BOOST_FILESYSTEM
AX_BOOST_PROGRAM_OPTIONS
AC_SEARCH_LIBS([get_system_category],[boost_system],[have_boost_system=yes])
# Checks for header files.
if test "x${have_boost_system}" = xyes; then
AC_CHECK_HEADERS([boost_system.h], [], [have_boost=no])
fi
#if test "x${have_boost}" = xno; then
# AC_MSG_ERROR([Could not find some or all of the boost libraries. These are required for building.])
# (exit 1); exit 1;
#fi
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([sqrt])
AM_INIT_AUTOMAKE
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT
/*
* File: main.cpp
* Author: jwoods
*
* Created on June 19, 2009, 4:15 PM
* Renamed from test.cpp on January 15, 2010, 3:52 PM
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
# include <string>
const std::string VERSION = PACKAGE_STRING;
const std::string TARGET_PLATFORM = CTARGET;
const std::string BUILD_PLATFORM = CBUILD;
const std::string HOST_PLATFORM = CHOST;
const std::string EMAIL_ADDRESS = PACKAGE_BUGREPORT;
#endif
#include <boost/program_options.hpp>
#include <boost/tokenizer.hpp>
#include <iostream>
#include "mindist.h"
#include "avgmindist.h"
#include "partialbayes.h"
namespace po = boost::program_options;
// Prints program version information.
void print_program_header() {
#ifdef HAVE_CONFIG_H
cout << "Phenomatrix++: " << VERSION << " on @ARCH@" << endl;
cout << "Target : " << TARGET_PLATFORM << endl;
cout << "Build : " << BUILD_PLATFORM << endl;
cout << "Host : " << HOST_PLATFORM << endl;
#else
cout << "Phenomatrix++" << endl;
cout << " No config.h suppied: version and platform information unavailable." << endl;
#endif
cout << "Copyright John O. Woods, 2009 - 2010" << endl;
cout << "The Marcotte Lab, The University of Texas at Austin" << endl;
cout << "Bug reports to " << EMAIL_ADDRESS << endl;
cout << endl;
}
/*
* MAIN: test genephene matrix class.
*/
int main(int argc, char** argv) {
// Print version information immediately, no matter what else is asked for.
print_program_header();
/* ... */
}
ACLOCAL_AMFLAGS = -I aclocal
AM_CXXFLAGS = $(BOOST_CPPFLAGS)
AM_LDFLAGS = $(BOOST_LDFLAGS) $(BOOST_SYSTEM_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB)
EXTRA_DIST = COPYING \
README \
aclocal
SUBDIRS = . src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment