AC_SUBST(moduleobjects)
AC_SUBST(modulelibs)
-if echo $modules | grep -q "mysql"
+for a in $modules
+do
+ case "$a" in
+ pgmysql )
+ if test "$dopgsql"
+ then
+ needpgsql=yes
+ fi
+ if test "$domysql"
+ then
+ needmysql=yes
+ fi
+ ;;
+ mysql )
+ needmysql=yes
+ ;;
+ pdns )
+ needmysql=yes
+ ;;
+ esac
+done
+
+
+if test "$needmysql"
then
AC_ARG_WITH(mysql,
[ --with-mysql=<path> root directory path of MySQL installation],
LIBS="$LIBS -lmysqlclient"
fi
-for a in $modules
-do
- case "$a" in
- pgmysql )
- if test "$dopgsql"
- then
- needpgsql=yes
- fi
- ;;
- esac
-done
if test "$needpgsql"
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-// $Id: dnspacket.cc,v 1.1 2002/11/27 15:18:31 ahu Exp $
+// $Id: dnspacket.cc,v 1.2 2002/11/29 22:02:33 ahu Exp $
#include "utility.hh"
#include <cstdio>
u_int32_t *ttlp=(u_int32_t *)(p+4);
- cout<<"adding ttl: "<<ttl<<endl;
*ttlp=htonl(ttl); // 4, 5, 6, 7
p[8]=0;
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-// $Id: ueberbackend.cc,v 1.1 2002/11/27 15:18:33 ahu Exp $
+// $Id: ueberbackend.cc,v 1.2 2002/11/29 22:02:33 ahu Exp $
/* (C) Copyright 2002 PowerDNS.COM BV */\r
#include "utility.hh"
#include <string>
rr.qtype=QType::SOA;
rr.content=DNSPacket::serializeSOAData(sd);
rr.ttl=sd.ttl;
- cout<<"Set rr.ttl to "<<sd.ttl<<endl;
rr.domain_id=sd.domain_id;
addOneCache(d_question,rr);
return true;