Update of /cvsroot/mod-auth/mod_dbi_pool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23744
Added Files:
Makefile.am autogen.sh configure.in udcl.sh
Log Message:
get this project going.
added auto* crap.
--- NEW FILE: Makefile.am ---
EXTRA_DIST =
SUBDIRS = src
--- NEW FILE: autogen.sh ---
#!/bin/sh
# autogen.sh - generates configure using the autotools
# $Id: autogen.sh,v 1.1 2004/02/08 22:00:18 firechipmunk Exp $
libtoolize --force --copy
#libtoolize14 --force --copy
aclocal
autoheader
touch NEWS
automake --add-missing --copy
rm NEWS
autoconf
rm -rf autom4te.cache
--- NEW FILE: configure.in ---
AC_INIT(src/mod_dbi_pool.c)
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE(mod_dbi_pool, 0.1.0)
AM_CONFIG_HEADER(include/mod_dbi_pool_config.h:config.in)
AC_PROG_CC
AC_PROG_CPP
AC_PROG_LD
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AC_MSG_CHECKING(for --with-dbi)
AC_ARG_WITH(dbi, [ --with-dbi=PATH Path to dbi],
[
if test -e "$withval/include/dbi/dbi.h"
then
DBI_INCLUDES=$withval/include
DBI_LIB=$withval/lib
AC_MSG_RESULT([found dbi.h])
else
echo
AC_MSG_ERROR([$withval/include/dbi/dbi.h not found ])
fi
],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-dbi-include)
AC_ARG_WITH(dbi-include, [ --with-dbi-include=PATH Path to dbi headers],
[
if test -e "$withval/dbi/dbi.h"
then
DBI_INCLUDES=$withval
AC_MSG_RESULT([found dbi.h])
else
echo
AC_MSG_ERROR([$withval/dbi/dbi.h not found ])
fi
],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-dbi-libs)
AC_ARG_WITH(dbi-libs, [ --with-dbi-libs=PATH Path to dbi libs],
[
if test -e "$withval/libdbi.so"
then
DBI_LIB=$withval
AC_MSG_RESULT([found libdbi.so])
else
echo
AC_MSG_ERROR([$withval/libdbi.so not found ])
fi
],
AC_MSG_RESULT(no))
if test -z "$DBI_LIB"; then
AC_MSG_CHECKING(for dbi-libs in /usr/lib)
if test -e /usr/lib/libdbi.so; then
DBI_LIB=/usr/lib
AC_MSG_RESULT([found libdbi.so, we'll use this. Use --with-dbi-libs to specify another.])
else
AC_MSG_RESULT(no)
fi
fi
if test -z "$DBI_INCLUDES"; then
AC_MSG_CHECKING(for dbi-include in /usr/include)
if test -e /usr/include/dbi/dbi.h; then
DBI_INCLUDES=/usr/include
AC_MSG_RESULT([found dbi/dbi.h, we'll use this. Use --with-dbi-include to specify another.])
else
AC_MSG_RESULT(no)
fi
fi
if test -z "$DBI_LIB"; then
AC_MSG_CHECKING(for dbi-libs in /usr/local/lib)
if test -e /usr/local/lib/libdbi.so; then
DBI_LIB=/usr/local/lib
AC_MSG_RESULT([found libdbi.so, we'll use this. Use --with-dbi-libs to specify another.])
else
AC_MSG_ERROR([please set --with-dbi-libs=PATH or --with-dbi=PATH to your dbi install])
fi
fi
if test -z "$DBI_INCLUDES"; then
AC_MSG_CHECKING(for dbi-include in /usr/local/include)
if test -e /usr/local/include/dbi/dbi.h; then
DBI_INCLUDES=/usr/local/include
AC_MSG_RESULT([found dbi/dbi.h, we'll use this. Use --with-dbi-include to specify another.])
else
AC_MSG_ERROR([please set --with-dbi-include=PATH or --with-dbi=PATH to your dbi install])
fi
fi
# check for --with-apxs
AC_MSG_CHECKING(for --with-apxs)
AC_ARG_WITH(apxs, [ --with-apxs=PATH Path to apxs],
[
if test -x "$withval"
then
AC_MSG_RESULT([$withval executable, good])
APXS=$withval
else
echo
AC_MSG_ERROR([$withval not found or not executable])
fi
],
AC_MSG_RESULT(no))
# if no apxs found yet, check /usr/local/apache/sbin
# since it's the default Apache location
if test -z "$APXS"; then
AC_MSG_CHECKING(for apxs in /usr/local/apache/sbin)
if test -x /usr/local/apache/sbin/apxs; then
APXS=/usr/local/apache/sbin/apxs
AC_MSG_RESULT([found, we'll use this. Use --with-apxs to specify another.])
else
AC_MSG_RESULT(no)
fi
fi
if test -z "$APXS"; then
AC_MSG_CHECKING(for apxs in /usr/local/apache2/bin)
if test -x /usr/local/apache2/bin/apxs; then
APXS=/usr/local/apache2/bin/apxs
AC_MSG_RESULT([found, we'll use this. Use --with-apxs to specify another.])
else
AC_MSG_RESULT(no)
fi
fi
if test -z "$APXS"; then
AC_MSG_CHECKING(for apxs in /usr/sbin)
if test -x /usr/sbin/apxs; then
APXS=/usr/sbin/apxs
AC_MSG_RESULT([found, we'll use this. Use --with-apxs to specify another.])
else
AC_MSG_RESULT(no)
fi
fi
# last resort
if test -z "$APXS"; then
AC_MSG_CHECKING(for apxs in your PATH)
AC_PATH_PROG(APXS, apxs)
if test -n "$APXS"; then
AC_MSG_RESULT([found $APXS, we'll use this. Use --with-apxs to specify another.])
fi
fi
if test -z "$APXS"; then
AC_MSG_ERROR([**** apxs was not found, DSO compilation will not be available.])
fi
# determine LIBEXEC
AC_MSG_CHECKING(for Apache libexec directory)
LIBEXECDIR=`${APXS} -q LIBEXECDIR`
AC_MSG_RESULT($LIBEXECDIR)
# determine INCLUDES
AC_MSG_CHECKING([for Apache include directory])
AP_INCLUDES="-I`${APXS} -q INCLUDEDIR`"
AC_MSG_RESULT($AP_INCLUDES)
CFLAGS="${CFLAGS} $AP_INCLUDES"
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
PKG_PATH=
AC_SUBST(LIBEXECDIR)
AC_SUBST(AP_INCLUDES)
AC_SUBST(DBI_INCLUDES)
AC_SUBST(DBI_LIB)
AC_SUBST(CFLAGS)
AC_SUBST(APXS)
AC_OUTPUT(Makefile src/Makefile)
echo "---"
echo "Configuration summary for mod_dbi_pool"
echo ""
echo " * Apache modules directory = $LIBEXECDIR"
echo " * libdbi include directory = $DBI_INCLUDES"
echo " * libdbi libs = $DBI_LIB"
echo ""
echo "---"
echo "****"
echo " If you have problems with libtool try this:"
echo " export SED=sed"
echo "****"
--- NEW FILE: udcl.sh ---
#!/bin/sh
# define $EDITOR and EDITOR_FLAGS in your environment to customize this
CL="ChangeLog"
DSTR=`date +%d.%m.%Y`
DSTR2=`date +%H:%M\ \(%Z\)`
TF="ferite-changelog-entry-"$USER
if test -z $EDITOR; then
EDITOR="nano"
EDITOR_FLAGS="+"
fi
export UNAME=$USER;
if test $USER="chip"; then
export UNAME="firechipmunk"
fi
echo "--------------------------------------------------------------------------------------------------------" > $TF
echo "$DSTR $DSTR2, $UNAME" >> $TF
echo >> $TF
echo >> $TF
$EDITOR $EDITOR_FLAGS $TF
echo "" >> $TF
cat $CL >> $TF
rm $CL
if test -f $TF"~"; then
rm $TF"~"
fi
mv $TF $CL
|