-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | autogen.bash | 9 | ||||
-rw-r--r-- | autogen.sh | 8 | ||||
-rw-r--r-- | configure.ac | 1 |
4 files changed, 11 insertions, 11 deletions
@@ -1,16 +1,14 @@ | |||
1 | Makefile | 1 | Makefile |
2 | Makefile.in | 2 | Makefile.in |
3 | /aclocal.m4 | 3 | /aclocal.m4 |
4 | /autom4te.cache | 4 | /autom4te.cache |
5 | /config.h | 5 | /config.h |
6 | /config.h.in | 6 | /config.h.in |
7 | /config.log | 7 | /config.log |
8 | /config.status | 8 | /config.status |
9 | /configure | 9 | /configure |
10 | /stamp-h1 | 10 | /stamp-h1 |
11 | /INSTALL | 11 | /INSTALL |
12 | /depcomp | ||
13 | /install-sh | ||
14 | /missing | ||
15 | /NEWS | 12 | /NEWS |
16 | TAGS | 13 | TAGS |
14 | /aux.d | ||
diff --git a/autogen.bash b/autogen.bash new file mode 100644 index 0000000..a798fad --- a/dev/null +++ b/autogen.bash | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/bash | ||
2 | ( cd "$(dirname "$0")" \ | ||
3 | && mkdir -p aux.d \ | ||
4 | && aclocal \ | ||
5 | && autoheader \ | ||
6 | && automake -a \ | ||
7 | && autoconf \ | ||
8 | && "$(dirname "$0")"/configure "$@" \ | ||
9 | ) | ||
diff --git a/autogen.sh b/autogen.sh deleted file mode 100644 index 86d2d88..0000000 --- a/autogen.sh +++ b/dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | WANT_AUTOMAKE=1.8 | ||
3 | export WANT_AUTOMAKE | ||
4 | aclocal \ | ||
5 | && autoheader \ | ||
6 | && automake -a \ | ||
7 | && autoconf \ | ||
8 | && ./configure "$@" | ||
diff --git a/configure.ac b/configure.ac index c814b53..1e0e42c 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,75 +1,76 @@ | |||
1 | AC_INIT([iii], [0.3], [iii-bugs@klever.net]) | 1 | AC_INIT([iii], [0.3], [iii-bugs@klever.net]) |
2 | AC_CONFIG_SRCDIR([src/iiid.cc]) | 2 | AC_CONFIG_SRCDIR([src/iiid.cc]) |
3 | AC_CONFIG_AUX_DIR([aux.d]) | ||
3 | AC_CONFIG_HEADERS([config.h]) | 4 | AC_CONFIG_HEADERS([config.h]) |
4 | AM_INIT_AUTOMAKE([dist-bzip2]) | 5 | AM_INIT_AUTOMAKE([dist-bzip2]) |
5 | 6 | ||
6 | AC_PROG_INSTALL | 7 | AC_PROG_INSTALL |
7 | AC_PROG_CXX | 8 | AC_PROG_CXX |
8 | AC_PROG_CC | 9 | AC_PROG_CC |
9 | PKG_PROG_PKG_CONFIG | 10 | PKG_PROG_PKG_CONFIG |
10 | 11 | ||
11 | AC_HEADER_STDC | 12 | AC_HEADER_STDC |
12 | 13 | ||
13 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 14 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) |
14 | 15 | ||
15 | PKG_CHECK_MODULES([MODULES],[gsoap++ libcrypto libconfuse]) | 16 | PKG_CHECK_MODULES([MODULES],[gsoap++ libcrypto libconfuse]) |
16 | PKG_CHECK_MODULES([UUID],[uuid],[have_uuid=true],[have_uuid=false]) | 17 | PKG_CHECK_MODULES([UUID],[uuid],[have_uuid=true],[have_uuid=false]) |
17 | AM_CONDITIONAL([HAVE_UUID],[$have_uuid]) | 18 | AM_CONDITIONAL([HAVE_UUID],[$have_uuid]) |
18 | if $have_uuid ; then | 19 | if $have_uuid ; then |
19 | AC_DEFINE([HAVE_LIBUUID],,[defined in presence of libuuid]) | 20 | AC_DEFINE([HAVE_LIBUUID],,[defined in presence of libuuid]) |
20 | AC_SUBST([UUID_UUID],[uuid]) | 21 | AC_SUBST([UUID_UUID],[uuid]) |
21 | fi | 22 | fi |
22 | 23 | ||
23 | AC_PATH_PROG([SOAPCPP2],[soapcpp2],[false]) | 24 | AC_PATH_PROG([SOAPCPP2],[soapcpp2],[false]) |
24 | test "$SOAPCPP2" = "false" && AC_MSG_ERROR([no soapcpp2 tool, part of gsoap package, found.]) | 25 | test "$SOAPCPP2" = "false" && AC_MSG_ERROR([no soapcpp2 tool, part of gsoap package, found.]) |
25 | 26 | ||
26 | notfound=false | 27 | notfound=false |
27 | AC_CHECK_HEADERS([archive.h],[ | 28 | AC_CHECK_HEADERS([archive.h],[ |
28 | AC_CHECK_LIB([archive],[archive_read_new],,[notfound=true]) | 29 | AC_CHECK_LIB([archive],[archive_read_new],,[notfound=true]) |
29 | ],[notfound=true]) | 30 | ],[notfound=true]) |
30 | $notfound && AC_MSG_ERROR([no required libarchive library found. get one from http://people.freebsd.org/~kientzle/libarchive/]) | 31 | $notfound && AC_MSG_ERROR([no required libarchive library found. get one from http://people.freebsd.org/~kientzle/libarchive/]) |
31 | 32 | ||
32 | notfound=false | 33 | notfound=false |
33 | AC_LANG_PUSH([C++]) | 34 | AC_LANG_PUSH([C++]) |
34 | AC_CHECK_HEADERS([autosprintf.h],[ | 35 | AC_CHECK_HEADERS([autosprintf.h],[ |
35 | AC_CHECK_LIB([asprintf],[main],,[notfound=true]) | 36 | AC_CHECK_LIB([asprintf],[main],,[notfound=true]) |
36 | ],[notfound=true]) | 37 | ],[notfound=true]) |
37 | $notfound && AC_MSG_ERROR([no autosprintf, part of gettext, found]) | 38 | $notfound && AC_MSG_ERROR([no autosprintf, part of gettext, found]) |
38 | AC_LANG_POP([C++]) | 39 | AC_LANG_POP([C++]) |
39 | 40 | ||
40 | nitpick=false | 41 | nitpick=false |
41 | AC_ARG_ENABLE([nitpicking], | 42 | AC_ARG_ENABLE([nitpicking], |
42 | AC_HELP_STRING([--enable-nitpicking],[make compiler somewhat overly fastidious about the code it deals with]), | 43 | AC_HELP_STRING([--enable-nitpicking],[make compiler somewhat overly fastidious about the code it deals with]), |
43 | [ test "$enableval" = "no" || nitpick=true ] | 44 | [ test "$enableval" = "no" || nitpick=true ] |
44 | ) | 45 | ) |
45 | if $nitpick ; then | 46 | if $nitpick ; then |
46 | CPP_NITPICK="-pedantic -Wall -Wextra -Wundef -Wshadow \ | 47 | CPP_NITPICK="-pedantic -Wall -Wextra -Wundef -Wshadow \ |
47 | -Wunsafe-loop-optimizations -Wconversion -Wmissing-format-attribute \ | 48 | -Wunsafe-loop-optimizations -Wconversion -Wmissing-format-attribute \ |
48 | -Wredundant-decls -ansi -Wlogical-op -Wmissing-noreturn" | 49 | -Wredundant-decls -ansi -Wlogical-op -Wmissing-noreturn" |
49 | C_NITPICK="$CPP_NITPICK" | 50 | C_NITPICK="$CPP_NITPICK" |
50 | CXX_NITPICK="$C_NITPICK" | 51 | CXX_NITPICK="$C_NITPICK" |
51 | 52 | ||
52 | CPPFLAGS="$CPPFLAGS $CPP_NITPICK" | 53 | CPPFLAGS="$CPPFLAGS $CPP_NITPICK" |
53 | CFLAGS="$CFLAGS $C_NITPICK" | 54 | CFLAGS="$CFLAGS $C_NITPICK" |
54 | CXXFLAGS="$CXXFLAGS $CXX_NITPICK" | 55 | CXXFLAGS="$CXXFLAGS $CXX_NITPICK" |
55 | fi | 56 | fi |
56 | 57 | ||
57 | ndebug=true | 58 | ndebug=true |
58 | AC_ARG_ENABLE([debug], | 59 | AC_ARG_ENABLE([debug], |
59 | AC_HELP_STRING([--enable-debug],[enable debugging code]), | 60 | AC_HELP_STRING([--enable-debug],[enable debugging code]), |
60 | [ test "$enableval" = "no" || ndebug=false ] | 61 | [ test "$enableval" = "no" || ndebug=false ] |
61 | ) | 62 | ) |
62 | if $ndebug ; then | 63 | if $ndebug ; then |
63 | CPPFLAGS_DEBUG="-DNDEBUG" | 64 | CPPFLAGS_DEBUG="-DNDEBUG" |
64 | else | 65 | else |
65 | CPPFLAGS_DEBUG="-DDEBUG" | 66 | CPPFLAGS_DEBUG="-DDEBUG" |
66 | fi | 67 | fi |
67 | AC_SUBST([CPPFLAGS_DEBUG]) | 68 | AC_SUBST([CPPFLAGS_DEBUG]) |
68 | 69 | ||
69 | AC_CONFIG_FILES([ | 70 | AC_CONFIG_FILES([ |
70 | Makefile | 71 | Makefile |
71 | src/Makefile | 72 | src/Makefile |
72 | doc/Makefile | 73 | doc/Makefile |
73 | doc/iiid.8 | 74 | doc/iiid.8 |
74 | ]) | 75 | ]) |
75 | AC_OUTPUT | 76 | AC_OUTPUT |