From a7f0e1ed3ec6f5c6f095dc15f97d86482fc7af55 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 19 Jun 2008 19:41:03 +0000 Subject: [PATCH] Fix regress to handle db_password git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7184 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/regress-config | 6 ++++++ regress/scripts/regress-config.in | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/regress/scripts/regress-config b/regress/scripts/regress-config index 5b589bd68f..60a7ddd6f5 100755 --- a/regress/scripts/regress-config +++ b/regress/scripts/regress-config @@ -4,6 +4,11 @@ # . ${1}/config +if test "x" = "x"; then + PASSWD= +else + PASSWO="--with-db-password=\"\"" +fi CFLAGS="-g -O2 -Wall" \ ./configure \ @@ -21,6 +26,7 @@ CFLAGS="-g -O2 -Wall" \ --with-smtp-host=${SMTP_HOST} \ --with-db-name=regress \ --with-db-user=regress \ + ${PASSWD} \ ${OPENSSL} \ ${TCPWRAPPERS} \ ${WHICHDB} \ diff --git a/regress/scripts/regress-config.in b/regress/scripts/regress-config.in index 401fbfa5ae..73e78e86fd 100644 --- a/regress/scripts/regress-config.in +++ b/regress/scripts/regress-config.in @@ -4,6 +4,11 @@ # . ${1}/config +if test "x@db_password@" = "x"; then + PASSWD= +else + PASSWO="--with-db-password=\"@db_password@\"" +fi CFLAGS="-g -O2 -Wall" \ ./configure \ @@ -21,6 +26,7 @@ CFLAGS="-g -O2 -Wall" \ --with-smtp-host=${SMTP_HOST} \ --with-db-name=@db_name@ \ --with-db-user=@db_user@ \ + ${PASSWD} \ ${OPENSSL} \ ${TCPWRAPPERS} \ ${WHICHDB} \ -- 2.39.5