summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2009-04-11 16:51:27 (UTC)
committer Michael Krelin <hacker@klever.net>2009-04-11 16:51:27 (UTC)
commit4ac7115c3580315ad5979696042097db61405b78 (patch) (unidiff)
treedb9aa00bef0f944e457d4c92d1c8f8e00e8205b9
parentd0509b2da90aa54ea923cf5731174e6b0a33d0eb (diff)
downloadlibopkele-4ac7115c3580315ad5979696042097db61405b78.zip
libopkele-4ac7115c3580315ad5979696042097db61405b78.tar.gz
libopkele-4ac7115c3580315ad5979696042097db61405b78.tar.bz2
added AC_CONFIG_AUX_DIR
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--.gitignore34
-rw-r--r--configure.ac1
2 files changed, 15 insertions, 20 deletions
diff --git a/.gitignore b/.gitignore
index 4fe418f..16be7d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,22 +1,16 @@
1configure 1/configure
2Makefile.in 2Makefile.in
3Doxyfile 3/Doxyfile
4config.log 4/config.log
5depcomp 5/config.h
6config.guess 6/INSTALL
7config.h 7/NEWS
8config.sub
9ltmain.sh
10INSTALL
11NEWS
12Makefile 8Makefile
13config.status 9/config.status
14stamp-h1 10/stamp-h1
15config.h.in 11/config.h.in
16libtool 12/autom4te.cache
17autom4te.cache 13/libopkele.pc
18libopkele.pc 14/aclocal.m4
19missing 15/aclocal.d
20aclocal.m4 16/aux.d
21install-sh
22aclocal.d
diff --git a/configure.ac b/configure.ac
index fd68b5b..2ded490 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,100 +1,101 @@
1AC_INIT([libopkele], [2.0.2], [libopkele-bugs@klever.net]) 1AC_INIT([libopkele], [2.0.2], [libopkele-bugs@klever.net])
2AC_CONFIG_SRCDIR([include/opkele/opkele-config.h]) 2AC_CONFIG_SRCDIR([include/opkele/opkele-config.h])
3AC_CONFIG_HEADERS([config.h include/opkele/acconfig.h]) 3AC_CONFIG_HEADERS([config.h include/opkele/acconfig.h])
4AC_CONFIG_MACRO_DIR([aclocal.d]) 4AC_CONFIG_MACRO_DIR([aclocal.d])
5AC_CONFIG_AUX_DIR([aux.d])
5AM_INIT_AUTOMAKE([dist-bzip2]) 6AM_INIT_AUTOMAKE([dist-bzip2])
6 7
7AC_PROG_INSTALL 8AC_PROG_INSTALL
8AC_PROG_CXX 9AC_PROG_CXX
9AC_PROG_CC 10AC_PROG_CC
10AC_PROG_LIBTOOL 11AC_PROG_LIBTOOL
11PKG_PROG_PKG_CONFIG 12PKG_PROG_PKG_CONFIG
12 13
13AC_HEADER_STDC 14AC_HEADER_STDC
14AC_CHECK_FUNCS([timegm]) 15AC_CHECK_FUNCS([timegm])
15 16
16AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) 17AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
17 18
18AC_MSG_CHECKING([for source tree version]) 19AC_MSG_CHECKING([for source tree version])
19if headrev=$(cd $srcdir && git rev-parse --verify HEAD 2>/dev/null) ; then 20if headrev=$(cd $srcdir && git rev-parse --verify HEAD 2>/dev/null) ; then
20 PACKAGE_SRC_VERSION="$(cd $srcdir && git describe --tags $headrev)" 21 PACKAGE_SRC_VERSION="$(cd $srcdir && git describe --tags $headrev)"
21 test "$PACKAGE_SRC_VERSION" = "$PACKAGE_VERSION" \ 22 test "$PACKAGE_SRC_VERSION" = "$PACKAGE_VERSION" \
22 -o "${PACKAGE_SRC_VERSION#${PACKAGE_VERSION}-}" != "$PACKAGE_SRC_VERSION" || PACKAGE_SRC_VERSION="${PACKAGE_VERSION}:${PACKAGE_SRC_VERSION}" 23 -o "${PACKAGE_SRC_VERSION#${PACKAGE_VERSION}-}" != "$PACKAGE_SRC_VERSION" || PACKAGE_SRC_VERSION="${PACKAGE_VERSION}:${PACKAGE_SRC_VERSION}"
23 ( cd $srcdir && git diff-index $headrev | read dirt ) && PACKAGE_SRC_VERSION="${PACKAGE_SRC_VERSION}-dirty" 24 ( cd $srcdir && git diff-index $headrev | read dirt ) && PACKAGE_SRC_VERSION="${PACKAGE_SRC_VERSION}-dirty"
24else 25else
25 PACKAGE_SRC_VERSION="$PACKAGE_VERSION" 26 PACKAGE_SRC_VERSION="$PACKAGE_VERSION"
26fi 27fi
27AC_MSG_RESULT([$PACKAGE_SRC_VERSION]) 28AC_MSG_RESULT([$PACKAGE_SRC_VERSION])
28AC_SUBST([PACKAGE_SRC_VERSION]) 29AC_SUBST([PACKAGE_SRC_VERSION])
29AC_DEFINE_UNQUOTED([PACKAGE_SRC_VERSION],["$PACKAGE_SRC_VERSION"],[more or less precise source tree version]) 30AC_DEFINE_UNQUOTED([PACKAGE_SRC_VERSION],["$PACKAGE_SRC_VERSION"],[more or less precise source tree version])
30 31
31tr1_mem_std="false" 32tr1_mem_std="false"
32tr1_mem_boost="false" 33tr1_mem_boost="false"
33AC_CHECK_SHAREDPTR(std::tr1,tr1/memory,[ tr1_mem_std=true ]) 34AC_CHECK_SHAREDPTR(std::tr1,tr1/memory,[ tr1_mem_std=true ])
34AC_CHECK_SHAREDPTR(boost,boost/shared_ptr.hpp,[ tr1_mem_boost=true ]) 35AC_CHECK_SHAREDPTR(boost,boost/shared_ptr.hpp,[ tr1_mem_boost=true ])
35tr1_mem="" 36tr1_mem=""
36AC_ARG_WITH([tr1-memory], 37AC_ARG_WITH([tr1-memory],
37 AC_HELP_STRING([--with-tr1-memory=<boost|std>],[select tr1/memory (shared_ptr<>) implementation to use]), 38 AC_HELP_STRING([--with-tr1-memory=<boost|std>],[select tr1/memory (shared_ptr<>) implementation to use]),
38 [ tr1_mem="$withval" ] 39 [ tr1_mem="$withval" ]
39) 40)
40AC_MSG_CHECKING([for tr1/memory implementation to use]) 41AC_MSG_CHECKING([for tr1/memory implementation to use])
41test -z "$tr1_mem" && $tr1_mem_std && tr1_mem=std 42test -z "$tr1_mem" && $tr1_mem_std && tr1_mem=std
42test -z "$tr1_mem" && $tr1_mem_boost && tr1_mem=boost 43test -z "$tr1_mem" && $tr1_mem_boost && tr1_mem=boost
43if test -z "$tr1_mem" ; then 44if test -z "$tr1_mem" ; then
44 AC_MSG_RESULT([none found]) 45 AC_MSG_RESULT([none found])
45else 46else
46 AC_MSG_RESULT([$tr1_mem]) 47 AC_MSG_RESULT([$tr1_mem])
47fi 48fi
48case "$tr1_mem" in 49case "$tr1_mem" in
49 std) 50 std)
50 $tr1_mem_std || AC_MSG_ERROR([std implementation requested, but not found]) 51 $tr1_mem_std || AC_MSG_ERROR([std implementation requested, but not found])
51 OPKELE_TR1_MEM_NS=std::tr1 52 OPKELE_TR1_MEM_NS=std::tr1
52 OPKELE_TR1_MEM_HEADER=tr1/memory 53 OPKELE_TR1_MEM_HEADER=tr1/memory
53 ;; 54 ;;
54 boost) 55 boost)
55 $tr1_mem_boost || AC_MSG_ERROR([boost implementation requested, but not found]) 56 $tr1_mem_boost || AC_MSG_ERROR([boost implementation requested, but not found])
56 OPKELE_TR1_MEM_NS=boost 57 OPKELE_TR1_MEM_NS=boost
57 OPKELE_TR1_MEM_HEADER=boost/shared_ptr.hpp 58 OPKELE_TR1_MEM_HEADER=boost/shared_ptr.hpp
58 ;; 59 ;;
59 *) 60 *)
60 AC_MSG_ERROR([no shared_ptr<> implementation found]) 61 AC_MSG_ERROR([no shared_ptr<> implementation found])
61 ;; 62 ;;
62esac 63esac
63AC_SUBST([OPKELE_TR1_MEM_NS]) 64AC_SUBST([OPKELE_TR1_MEM_NS])
64AC_SUBST([OPKELE_TR1_MEM_HEADER]) 65AC_SUBST([OPKELE_TR1_MEM_HEADER])
65 66
66AC_MSG_CHECKING([for deprecated attribute support]) 67AC_MSG_CHECKING([for deprecated attribute support])
67AC_COMPILE_IFELSE([ 68AC_COMPILE_IFELSE([
68 int __attribute__((deprecated)) deprecated_function(); 69 int __attribute__((deprecated)) deprecated_function();
69 ],[ 70 ],[
70 AC_MSG_RESULT([yes]) 71 AC_MSG_RESULT([yes])
71 AC_DEFINE([OPKELE_DEPRECATE],[__attribute__((deprecated))],[deprecated function attribute]) 72 AC_DEFINE([OPKELE_DEPRECATE],[__attribute__((deprecated))],[deprecated function attribute])
72 ],[ 73 ],[
73 AC_MSG_RESULT([no]) 74 AC_MSG_RESULT([no])
74 AC_DEFINE([OPKELE_DEPRECATE],,[deprecated function attribute]) 75 AC_DEFINE([OPKELE_DEPRECATE],,[deprecated function attribute])
75 ] 76 ]
76) 77)
77 78
78AC_LANG_PUSH([C++]) 79AC_LANG_PUSH([C++])
79AC_MSG_CHECKING([for abi::__cxa_demangle]) 80AC_MSG_CHECKING([for abi::__cxa_demangle])
80AC_COMPILE_IFELSE([ 81AC_COMPILE_IFELSE([
81 #include <typeinfo> 82 #include <typeinfo>
82 using namespace std; 83 using namespace std;
83 #include <cxxabi.h> 84 #include <cxxabi.h>
84 int main(int c,char **v) { 85 int main(int c,char **v) {
85 int dstat; 86 int dstat;
86 char *demangled = abi::__cxa_demangle(typeid(dstat).name(),0,0,&dstat); 87 char *demangled = abi::__cxa_demangle(typeid(dstat).name(),0,0,&dstat);
87 return 0; 88 return 0;
88 } 89 }
89 ],[ 90 ],[
90 AC_MSG_RESULT([yes]) 91 AC_MSG_RESULT([yes])
91 AC_DEFINE([HAVE_DEMANGLE],,[defined if abi::__cxa_demangle is available]) 92 AC_DEFINE([HAVE_DEMANGLE],,[defined if abi::__cxa_demangle is available])
92 ],[ 93 ],[
93 AC_MSG_RESULT([no]) 94 AC_MSG_RESULT([no])
94 ] 95 ]
95) 96)
96AC_LANG_POP([C++]) 97AC_LANG_POP([C++])
97 98
98 99
99 100
100 101