From 5e058d5d4e7d449accc5039b893b7d0decdb40df Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 2 Sep 2009 00:07:37 +0200 Subject: Added a some comments to ./configure --- configure | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/configure b/configure index a4403d3..9635174 100755 --- a/configure +++ b/configure @@ -1,5 +1,27 @@ #!/bin/sh +# +# Simple cmake wrapper script to make it behave more like autotools +# +# GPLv2 only - Copyright (C) 2008-2009 +# David Sommerseth +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; version 2 +# of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + +# Some default variables PREFIX="/usr/local" BINDIR="${PREFIX}/bin" BINDIR_SET=0 @@ -11,6 +33,9 @@ EUREPHIADM_XSLT="${XSLTPATH}/eurephiadm" EUREPHIADM_XSLT_SET=0 SQLITE3PREFIX="/etc/openvpn" +# +# Misc functions +# usage() { cat < option when building the eurephia plug-in" exit 1; fi +# Make sure at least one database driver is enabled. if [ -z "${DB}" ]; then echo "You need to activate at least one database driver" exit 1; fi +# Set default parameters for the SQLite3 database if [ ${DB} = "SQLite3" ]; then PARAMS="${PARAMS} -DSQLITE3PREFIX:STIRNG=${SQLITE3PREFIX}" fi +# Run cmake with our parameters, and create a configure.log file at the same time rm -f CMakeCache.txt { cat <> Makefile <