Skip to content

Commit

Permalink
some porting work
Browse files Browse the repository at this point in the history
  • Loading branch information
peschue committed Jan 23, 2012
1 parent bbaa8d0 commit 3a2a8ab
Show file tree
Hide file tree
Showing 7 changed files with 742 additions and 40 deletions.
22 changes: 22 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
Markus Boegl
Vienna University of Technology
markus.boegl@student.tuwien.ac.at

Peter Schüller
Knowledge-Based Systems Group
Institute of Information Systems
Vienna University of Technology
ps@kr.tuwien.ac.at

Thomas Krennwallner
Knowledge-Based Systems Group
Institute of Information Systems
Vienna University of Technology
tkren@kr.tuwien.ac.at

Antonius Weinzierl
Knowledge-Based Systems Group
Institute of Information Systems
Vienna University of Technology
aweinz@kr.tuwien.ac.at

Xiriel
Vienna University of Technology
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2011-03-19 xiriel

Implementation of Saturation Encoding for calculating explanations.

2011-01-11 Peter Schueller <ps@kr.tuwien.ac.at>

* include/ContextInterfacePlugin.h: Workaround for clang issue (not sure
Expand Down Expand Up @@ -100,6 +104,10 @@

* configure.ac (BOOST_REQUIRE): Require boost >= 1.41.

2010-05-03 Markus Boegl <markus.boegl@student.tuwien.ac.at>

Initial version.

2010-04-23 Thomas Krennwallner <tkren@kr.tuwien.ac.at>

* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove.
Expand Down
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
dlvhex-mcsequilibrium-plugin NEWS -- history of user-visible changes.

* Version 2.0.0

** Adapt to dlvhex 2.0.0.
** Add saturation encoding.


* Version 1.7.1

** Adapt to changes in libaspsolver.
Expand All @@ -9,6 +15,7 @@ dlvhex-mcsequilibrium-plugin NEWS -- history of user-visible changes.

** First release.


Local variables:
mode: outline
paragraph-separate: "[ ]*$"
Expand Down
62 changes: 30 additions & 32 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
AC_PREREQ(2.61)

# main author of original plugin: markus.boegl@student.tuwien.ac.at
AC_INIT([dlvhex-mcsieplugin],[2.0.0],[ps@kr.tuwien.ac.at])

AC_INIT([dlvhex-mcsieplugin],[2.0.0],[dlvhex-devel@lists.sourceforge.net])
AC_CONFIG_SRCDIR([src/MCSdiagexplPlugin.cpp])

AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_MACRO_DIR([m4])

MAJOR=`echo $PACKAGE_VERSION | sed "s/^\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/"`
MINOR=`echo $PACKAGE_VERSION | sed "s/^\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/"`
MICRO=`echo $PACKAGE_VERSION | sed "s/^\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/"`

AC_DEFINE_UNQUOTED([MCSDIAGEXPLPLUGIN_MAJOR], [$MAJOR], [Major version number of the mcsie-plugin])
AC_DEFINE_UNQUOTED([MCSDIAGEXPLPLUGIN_MINOR], [$MINOR], [Minor version number of the mcsie-plugin])
AC_DEFINE_UNQUOTED([MCSDIAGEXPLPLUGIN_MICRO], [$MICRO], [Micro version number of the mcsie-plugin])

AC_CONFIG_MACRO_DIR([m4])
# for documentation of the versioning scheme see
# https://sourceforge.net/apps/trac/dlvhex/wiki/LibraryVersions
DLVHEX_DEFINE_VERSION([MCSIEPLUGIN],[$PACKAGE_VERSION])
DLVHEX_DEFINE_VERSION([DLVHEX_ABI],[7.0.0])

AM_INIT_AUTOMAKE

Expand Down Expand Up @@ -50,24 +42,8 @@ AC_PROG_LIBTOOL
# check for other libraries here
#

#
# of course we need dlvhex itself!
#
PKG_CHECK_MODULES([DLVHEX], [dlvhex >= 2.0])
_PKG_CONFIG([DLVHEX_USERPLUGINDIR], [variable=userplugindir], [dlvhex >= 2.0])
_PKG_CONFIG([DLVHEX_SYSPLUGINDIR], [variable=sysplugindir], [dlvhex >= 2.0])
_PKG_CONFIG([DLVHEX_BINDIR], [variable=bindir], [dlvhex >= 2.0])
DLVHEX_USERPLUGINDIR=$pkg_cv_DLVHEX_USERPLUGINDIR
DLVHEX_SYSPLUGINDIR=$pkg_cv_DLVHEX_SYSPLUGINDIR
DLVHEX_BINDIR=$pkg_cv_DLVHEX_BINDIR
AC_SUBST(DLVHEX_USERPLUGINDIR)
AC_SUBST(DLVHEX_SYSPLUGINDIR)
AC_SUBST(DLVHEX_BINDIR)

SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $DLVHEX_CFLAGS"
AC_CHECK_HEADER([dlvhex/OnlineModelBuilder.hpp],,[AC_MSG_ERROR([Cannot find dlvhex headers!])])
CPPFLAGS="$SAFE_CPPFLAGS"
# check for dlvhex, sets various variables
DLVHEX_REQUIRE([2.0.0])

# where the plugin will be installed by default.
# running configure will take sysplugindir from dlvhex.pc,
Expand Down Expand Up @@ -101,3 +77,25 @@ AC_CONFIG_FILES([

AC_OUTPUT

dnl output configuration
cat <<EOF

$PACKAGE_TARNAME $PACKAGE_VERSION configuration:

- Compiler settings
CC: $CC
CXX: $CXX
CFLAGS: $CFLAGS
CPPFLAGS: $CPPFLAGS
CXXFLAGS: $CXXFLAGS
LDFLAGS: $LDFLAGS

- from pkg-config
DLVHEX_CFLAGS: $DLVHEX_CFLAGS
DLVHEX_LIBS: $DLVHEX_LIBS
DLVHEX_BINDIR: $DLVHEX_BINDIR

- Path settings
prefix: $prefix
plugindir: $plugindir
EOF
1 change: 1 addition & 0 deletions m4/dlvhex.m4
8 changes: 0 additions & 8 deletions qitest.dlv

This file was deleted.

0 comments on commit 3a2a8ab

Please sign in to comment.