Intergrated test scripts with automake
[gnucomo.git] / configure.in
index cc36f33..f7ee27b 100644 (file)
@@ -41,14 +41,10 @@ AC_CHECK_LIB(AXE, main, , AC_MSG_ERROR(AXE Library is not installed))
 #AC_CHECK_LIB(pthread, pthread_create)
 AC_CHECK_LIB(xml2, xmlParseFile)
 
-# Find PostgreSQL includes and libraries
-AC_PATH_PROGS(PG_CONFIG, pqxx-config)
-if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG"; then
-       AC_MSG_ERROR([libpqxx configuration script was not found])
-fi
-with_postgres_include=`$PG_CONFIG --cflags`
+# PostgreSQL includes and libraries
+with_postgres_include="-I/usr/include/pqxx"
 AC_MSG_NOTICE([using PostgreSQL headers at $with_postgres_include])
-with_postgres_lib=`$PG_CONFIG --libs`
+with_postgres_lib="-lpqxx -lpq"
 AC_MSG_NOTICE([using PostgreSQL libraries at $with_postgres_lib])
 
 AC_SUBST(with_postgres_lib)
@@ -93,4 +89,4 @@ dnl Edit this to be your web server's document root
 DocumentRoot=/var/www/html
 
 #AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile src/web/Makefile)
-AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile)
+AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/gcm_input/Makefile test/Makefile)