[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/geas configure.in
From: |
Jade Meskill |
Subject: |
gnue/geas configure.in |
Date: |
Fri, 05 Jan 2001 10:18:33 -0800 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jade Meskill <address@hidden> 01/01/05 10:18:33
Modified files:
geas : configure.in
Log message:
Added checks for --enable-self-test and
--enable-max-database-connections
Changed --with-memory-debug to --enable-memory-debug
CVSWeb URLs:
http://subversions.gnu.org/cgi-bin/cvsweb/gnue/geas/configure.in.diff?r1=1.4&r2=1.5
Patches:
Index: gnue/geas/configure.in
diff -u gnue/geas/configure.in:1.4 gnue/geas/configure.in:1.5
--- gnue/geas/configure.in:1.4 Thu Jan 4 19:59:44 2001
+++ gnue/geas/configure.in Fri Jan 5 10:18:33 2001
@@ -73,7 +73,7 @@
AC_DEFINE(USE_POSTGRESQL,1,[ ])
DB_TYPE="postgresql"
- DB_CFLAGS="$DB_CFLAGS $POSTGRES_CFLAGS -DUSE_POSTGRESQL"
+ DB_CFLAGS="$DB_CFLAGS $POSTGRES_CFLAGS"
DB_LIBS="$DB_LIBS $POSTGRES_LIBS"
AC_MSG_RESULT(found)
@@ -111,7 +111,7 @@
AC_DEFINE(USE_MYSQL,1,[ ])
DB_TYPE="mysql"
- DB_CFLAGS="$DB_CFLAGS $MYSQL_CFLAGS -DUSE_MYSQL"
+ DB_CFLAGS="$DB_CFLAGS $MYSQL_CFLAGS"
DB_LIBS="$DB_LIBS $MYSQL_LIBS"
AC_MSG_RESULT(found)
@@ -149,7 +149,7 @@
AC_DEFINE(USE_LIBGDA,1,[ ])
DB_TYPE="libgda"
- DB_CFLAGS="$LIBGDA_CFLAGS -DUSE_LIBGDA"
+ DB_CFLAGS="$LIBGDA_CFLAGS"
DB_LIBS="$LIBGDA_LIBS"
AC_MSG_RESULT(found)
@@ -158,6 +158,19 @@
AC_MSG_RESULT(no)
fi
+dnl MAX_DATABASE_CONNECTIONS tests
+AC_MSG_CHECKING( whether to enable max database connections limit)
+AC_ARG_ENABLE(max-database-connections,
+ [ --enable-max-database-connections=[#|no] # of max connections or
no ],
+ [ enable_max_database_connections=$enableval ],
+ [ enable_max_database_connections=no ]
+ )
+if test "$enable_max_database_connections" != "no"; then
+
AC_DEFINE_UNQUOTED(MAX_DATABASE_CONNECTIONS,${enable_max_database_connections},[
])
+ AC_MSG_RESULT(${enable_max_database_connections})
+else
+ AC_MSG_RESULT(no)
+fi
dnl DMALLOC tests
AC_MSG_CHECKING( for dmalloc)
@@ -184,7 +197,7 @@
AC_DEFINE(HAS_DMALLOC,1,[ ])
- DMALLOC_CFLAGS="$DMALLOC_INCLUDE -DHAS_DMALLOC"
+ DMALLOC_CFLAGS="$DMALLOC_INCLUDE"
DMALLOC_LIBS="-L$DMALLOC_LIBDIR -ldmalloc"
AC_MSG_RESULT(found)
@@ -199,20 +212,30 @@
dnl MEMORY_DEBUG tests
AC_MSG_CHECKING( whether to enable memory debugging code)
-AC_ARG_WITH(memory-debug,
- [ --with-memory-debug=[yes|no] yes or no ],
- [ with_memory_debug=$withval ],
- [ with_memory_debug=no ]
+AC_ARG_ENABLE(memory-debug,
+ [ --enable-memory-debug=[yes|no] yes or no ],
+ [ enable_memory_debug=$withval ],
+ [ enable_memory_debug=no ]
)
-if test "$with_memory_debug" != "no"; then
- MEMORY_DEBUG_CFLAGS="-DMEMORY_DEBUG"
+if test "$enable_memory_debug" != "no"; then
+ AC_DEFINE(MEMORY_DEBUG,1,[ ])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
-if test "x$DB_TYPE" = "x"; then
- AC_MSG_ERROR(No database backend was found. Please check that you have the
proper client libraries installed)
+dnl SELF_TEST tests
+AC_MSG_CHECKING( whether to enable self test code)
+AC_ARG_ENABLE(self-test,
+ [ --enable-self-test=[yes|no] yes or no ],
+ [ enable_self_test=$enableval ],
+ [ enable_self_test=no ]
+ )
+if test "$enable_self_test" != "no"; then
+ AC_DEFINE(SELF_TEST,1,[ ])
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
fi
idldir="\${prefix}/share/idl"
@@ -233,7 +256,6 @@
AC_SUBST(LIBGDA_CFLAGS)
AC_SUBST(DMALLOC_LIBS)
AC_SUBST(DMALLOC_CFLAGS)
-AC_SUBST(MEMORY_DEBUG_CFLAGS)
AC_OUTPUT(
Makefile \