Magellan Linux

Annotation of /trunk/gnokii/patches/gnokii-0.6.27-disable-database.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 849 - (hide annotations) (download)
Fri Jun 12 20:55:14 2009 UTC (14 years, 11 months ago) by niro
File size: 1236 byte(s)
-patches for gnokii

1 niro 849 diff -Nru gnokii-0.6.27.orig/configure.in gnokii-0.6.27/configure.in
2     --- gnokii-0.6.27.orig/configure.in 2008-10-06 06:56:15.000000000 +0000
3     +++ gnokii-0.6.27/configure.in 2009-01-11 17:06:22.000000000 +0000
4     @@ -685,9 +685,14 @@
5    
6     dnl ======================== Checks for databases support for smsd
7    
8     +AC_ARG_ENABLE(postgres,
9     + AC_HELP_STRING([--disable-postgres],
10     + [disable PostgresSQL support (default is autodetected)]),
11     + [enable_postgres=$enableval],
12     + [enable_postgres=yes])
13     have_postgres=no
14     AC_PATH_PROG(PGCONFIG, pg_config, no)
15     -if test x$PGCONFIG != xno ; then
16     +if test x$enable_postgres != xno && test x$PGCONFIG != xno ; then
17     have_postgres=yes
18     pg_libdir=`$PGCONFIG --libdir`
19     POSTGRES_LIBS="-L$pg_libdir -lpq"
20     @@ -699,9 +704,14 @@
21    
22     AM_CONDITIONAL(HAVE_POSTGRES, test "x$have_postgres" = "xyes")
23    
24     +AC_ARG_ENABLE(mysql,
25     + AC_HELP_STRING([--disable-mysql],
26     + [disable MySQL support (default is autodetected)]),
27     + [enable_mysql=$enableval],
28     + [enable_mysql=yes])
29     have_mysql=no
30     AC_PATH_PROG(MYSQLCONFIG, mysql_config, no)
31     -if test x$MYSQLCONFIG != xno ; then
32     +if test x$enable_mysql != xno && test x$MYSQLCONFIG != xno ; then
33     have_mysql=yes
34     MYSQL_LIBS=`$MYSQLCONFIG --libs`
35     MYSQL_CFLAGS=`$MYSQLCONFIG --cflags`