From cc50d17ca13d24061a86a0cfbf82835d7e7333cb Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 31 May 2010 17:36:21 +0200 Subject: [PATCH] Changes to autotools. --- .gitignore | 1 + Makefile.am | 2 +- configure.ac | 3 +++ docs/Makefile.am | 1 + docs/sql/Makefile.am | 2 ++ {doc => docs}/sql/audit.sql | 0 src/audit.c | 4 +++- tests/Makefile.am | 0 8 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 docs/Makefile.am create mode 100644 docs/sql/Makefile.am rename {doc => docs}/sql/audit.sql (100%) create mode 100644 tests/Makefile.am diff --git a/.gitignore b/.gitignore index cae9cb8..d228bcc 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ config.h *.log *.status *.sub +*bak configure depcomp docs/reference/version.xml diff --git a/Makefile.am b/Makefile.am index ccbe197..a04d10b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = src +SUBDIRS = src docs tests EXTRA_DIST = \ libaudit.pc.in diff --git a/configure.ac b/configure.ac index 681641e..2fcc9a2 100644 --- a/configure.ac +++ b/configure.ac @@ -41,6 +41,9 @@ AC_CONFIG_FILES([ libaudit.pc Makefile src/Makefile + docs/Makefile + docs/sql/Makefile + tests/Makefile ]) AC_OUTPUT diff --git a/docs/Makefile.am b/docs/Makefile.am new file mode 100644 index 0000000..ee7fa76 --- /dev/null +++ b/docs/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = sql diff --git a/docs/sql/Makefile.am b/docs/sql/Makefile.am new file mode 100644 index 0000000..8e5c1b0 --- /dev/null +++ b/docs/sql/Makefile.am @@ -0,0 +1,2 @@ +EXTRA_DIST = \ + audit.sql diff --git a/doc/sql/audit.sql b/docs/sql/audit.sql similarity index 100% rename from doc/sql/audit.sql rename to docs/sql/audit.sql diff --git a/src/audit.c b/src/audit.c index 3fb17ba..d69cfca 100644 --- a/src/audit.c +++ b/src/audit.c @@ -287,7 +287,9 @@ static Datasource *get_datasource_from_name (Audit *audit, const char *datasource) { - GList *f = g_list_first (audit->datasources); + AuditPrivate *priv = AUDIT_GET_PRIVATE (audit); + + GList *f = g_list_first (priv->datasources); while (f != NULL) { diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..e69de29 -- 2.49.0