From: Adam Dickmeiss Date: Wed, 25 May 2011 13:20:18 +0000 (+0200) Subject: Update configure to generate config.h X-Git-Tag: v1.2.6~1 X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=commitdiff_plain;h=d1010e2fab0026b538230f67293bd5d4724c0913 Update configure to generate config.h --- diff --git a/configure.ac b/configure.ac index ff7b63d..47669f3 100644 --- a/configure.ac +++ b/configure.ac @@ -2,6 +2,7 @@ dnl This file is part of yazpp dnl Copyright (C) 1998-2011 Index Data AC_PREREQ(2.60) AC_INIT([yazpp],[1.2.5],[adam@indexdata.dk]) +AC_CONFIG_HEADERS([include/config.h]) AC_CONFIG_SRCDIR(configure.ac) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([1.9]) diff --git a/src/gdu.cpp b/src/gdu.cpp index 0d8efee..231e8ef 100644 --- a/src/gdu.cpp +++ b/src/gdu.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include using namespace yazpp_1; diff --git a/src/gduqueue.cpp b/src/gduqueue.cpp index 0b5cb61..1b18f38 100644 --- a/src/gduqueue.cpp +++ b/src/gduqueue.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/limit-connect.cpp b/src/limit-connect.cpp index b1bd57f..4af597e 100644 --- a/src/limit-connect.cpp +++ b/src/limit-connect.cpp @@ -25,6 +25,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/pdu-observer.cpp b/src/pdu-observer.cpp index d3f2303..2bb4078 100644 --- a/src/pdu-observer.cpp +++ b/src/pdu-observer.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include using namespace yazpp_1; diff --git a/src/query.cpp b/src/query.cpp index 53bfc0b..0540543 100644 --- a/src/query.cpp +++ b/src/query.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include using namespace yazpp_1; diff --git a/src/socket-observer.cpp b/src/socket-observer.cpp index b6063c2..6c3c5b5 100644 --- a/src/socket-observer.cpp +++ b/src/socket-observer.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include using namespace yazpp_1; diff --git a/src/timestat.cpp b/src/timestat.cpp index 5ea1755..078aaac 100644 --- a/src/timestat.cpp +++ b/src/timestat.cpp @@ -25,6 +25,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +#include +#endif #include using namespace yazpp_1; diff --git a/src/tstquery.cpp b/src/tstquery.cpp index 3dce6a2..da1e8f7 100644 --- a/src/tstquery.cpp +++ b/src/tstquery.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/yaz-cql2rpn.cpp b/src/yaz-cql2rpn.cpp index 1351b0e..3a4b357 100644 --- a/src/yaz-cql2rpn.cpp +++ b/src/yaz-cql2rpn.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/src/yaz-ir-assoc.cpp b/src/yaz-ir-assoc.cpp index 2106f93..83e953e 100644 --- a/src/yaz-ir-assoc.cpp +++ b/src/yaz-ir-assoc.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/yaz-marc-sample.cpp b/src/yaz-marc-sample.cpp index 3c81f1f..a11c5a2 100644 --- a/src/yaz-marc-sample.cpp +++ b/src/yaz-marc-sample.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include using namespace yazpp_1; diff --git a/src/yaz-my-client.cpp b/src/yaz-my-client.cpp index 7c4e479..69b4c9b 100644 --- a/src/yaz-my-client.cpp +++ b/src/yaz-my-client.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/src/yaz-my-server.cpp b/src/yaz-my-server.cpp index 0ef28ae..372629c 100644 --- a/src/yaz-my-server.cpp +++ b/src/yaz-my-server.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/src/yaz-pdu-assoc-thread.cpp b/src/yaz-pdu-assoc-thread.cpp index 095c6ec..94c3df1 100644 --- a/src/yaz-pdu-assoc-thread.cpp +++ b/src/yaz-pdu-assoc-thread.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #ifdef WIN32 #define USE_THREADS 1 #endif diff --git a/src/yaz-pdu-assoc.cpp b/src/yaz-pdu-assoc.cpp index 2d17f11..8a949cf 100644 --- a/src/yaz-pdu-assoc.cpp +++ b/src/yaz-pdu-assoc.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/src/yaz-socket-manager.cpp b/src/yaz-socket-manager.cpp index b6b789a..a768cb4 100644 --- a/src/yaz-socket-manager.cpp +++ b/src/yaz-socket-manager.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #if HAVE_SYS_TIME_H #include #endif diff --git a/src/yaz-z-assoc.cpp b/src/yaz-z-assoc.cpp index 2a8f3b3..e389184 100644 --- a/src/yaz-z-assoc.cpp +++ b/src/yaz-z-assoc.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/yaz-z-cache.cpp b/src/yaz-z-cache.cpp index 11544b3..ccb7463 100644 --- a/src/yaz-z-cache.cpp +++ b/src/yaz-z-cache.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/src/yaz-z-databases.cpp b/src/yaz-z-databases.cpp index 1e35179..6e190a3 100644 --- a/src/yaz-z-databases.cpp +++ b/src/yaz-z-databases.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/yaz-z-query.cpp b/src/yaz-z-query.cpp index 0ba1004..94e7781 100644 --- a/src/yaz-z-query.cpp +++ b/src/yaz-z-query.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/src/yaz-z-server-ill.cpp b/src/yaz-z-server-ill.cpp index f82a09a..6eec156 100644 --- a/src/yaz-z-server-ill.cpp +++ b/src/yaz-z-server-ill.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/yaz-z-server-sr.cpp b/src/yaz-z-server-sr.cpp index b07b839..05472dd 100644 --- a/src/yaz-z-server-sr.cpp +++ b/src/yaz-z-server-sr.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/yaz-z-server-update.cpp b/src/yaz-z-server-update.cpp index f86aef7..c3eb951 100644 --- a/src/yaz-z-server-update.cpp +++ b/src/yaz-z-server-update.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/src/yaz-z-server.cpp b/src/yaz-z-server.cpp index 71b8f39..80928ec 100644 --- a/src/yaz-z-server.cpp +++ b/src/yaz-z-server.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/src/z-server.cpp b/src/z-server.cpp index bb709d3..8df58d7 100644 --- a/src/z-server.cpp +++ b/src/z-server.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include using namespace yazpp_1; diff --git a/zlint/main.cpp b/zlint/main.cpp index a2a20cf..22a89f0 100644 --- a/zlint/main.cpp +++ b/zlint/main.cpp @@ -1,3 +1,6 @@ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zlint/test-init-01.cpp b/zlint/test-init-01.cpp index d0edf7f..3625443 100644 --- a/zlint/test-init-01.cpp +++ b/zlint/test-init-01.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zlint/test-init-02.cpp b/zlint/test-init-02.cpp index b83123f..9ea59ae 100644 --- a/zlint/test-init-02.cpp +++ b/zlint/test-init-02.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zlint/test-init-03.cpp b/zlint/test-init-03.cpp index b3a0c9b..0e4e7b5 100644 --- a/zlint/test-init-03.cpp +++ b/zlint/test-init-03.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zlint/test-init-04.cpp b/zlint/test-init-04.cpp index be14886..e8e53e2 100644 --- a/zlint/test-init-04.cpp +++ b/zlint/test-init-04.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zlint/test-init-05.cpp b/zlint/test-init-05.cpp index 6909063..f9b95f8 100644 --- a/zlint/test-init-05.cpp +++ b/zlint/test-init-05.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zlint/test-init-06.cpp b/zlint/test-init-06.cpp index 793d71a..8f9a529 100644 --- a/zlint/test-init-06.cpp +++ b/zlint/test-init-06.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zlint/test-init-07.cpp b/zlint/test-init-07.cpp index 15f71ae..eb52fd3 100644 --- a/zlint/test-init-07.cpp +++ b/zlint/test-init-07.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/zlint/test-init-08.cpp b/zlint/test-init-08.cpp index 7707eae..92c8ea4 100644 --- a/zlint/test-init-08.cpp +++ b/zlint/test-init-08.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/zlint/test-scan-01.cpp b/zlint/test-scan-01.cpp index cc50e5a..1e5b3d5 100644 --- a/zlint/test-scan-01.cpp +++ b/zlint/test-scan-01.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zlint/test-search-01.cpp b/zlint/test-search-01.cpp index de0ebb8..03bc84e 100644 --- a/zlint/test-search-01.cpp +++ b/zlint/test-search-01.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include diff --git a/zlint/zlint.cpp b/zlint/zlint.cpp index 8853e42..d148467 100644 --- a/zlint/zlint.cpp +++ b/zlint/zlint.cpp @@ -3,6 +3,9 @@ * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include diff --git a/zoom/zconn.cpp b/zoom/zconn.cpp index f016b63..5abb963 100644 --- a/zoom/zconn.cpp +++ b/zoom/zconn.cpp @@ -1,5 +1,8 @@ // Z39.50 Connection class +#if HAVE_CONFIG_H +#include +#endif #include "zoom.h" diff --git a/zoom/zexcept.cpp b/zoom/zexcept.cpp index 007738c..282177b 100644 --- a/zoom/zexcept.cpp +++ b/zoom/zexcept.cpp @@ -1,5 +1,8 @@ // Z39.50 Exception classes +#if HAVE_CONFIG_H +#include +#endif #include #include #include // for strerror(), strlen(), strcpy() diff --git a/zoom/zquery.cpp b/zoom/zquery.cpp index a729235..704a20f 100644 --- a/zoom/zquery.cpp +++ b/zoom/zquery.cpp @@ -1,5 +1,8 @@ // Z39.50 Query classes +#if HAVE_CONFIG_H +#include +#endif #include "zoom.h" diff --git a/zoom/zrec.cpp b/zoom/zrec.cpp index 97a2041..dc71a39 100644 --- a/zoom/zrec.cpp +++ b/zoom/zrec.cpp @@ -1,5 +1,8 @@ // Z39.50 Record class +#if HAVE_CONFIG_H +#include +#endif #include "zoom.h" #include // for yaz_matchstr() diff --git a/zoom/zrs.cpp b/zoom/zrs.cpp index 430b8f4..1d2e4d9 100644 --- a/zoom/zrs.cpp +++ b/zoom/zrs.cpp @@ -1,5 +1,8 @@ // Z39.50 Result Set class +#if HAVE_CONFIG_H +#include +#endif #include "zoom.h"