#!/bin/sh
# $Id: configure,v 1.1 2005/11/14 22:54:26 ca Exp $
# --prefix=/home/ca/BerkeleyDB.4.3.28-X
# --disable-cryptography
D=`dirname $0`
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell meta-characters.
sm_configure_args=
sm_sep=
for sm_arg
do
case $sm_arg in
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c) ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
sm_arg=`echo "$sm_arg" | sed "s/'/'\\\\\\\\''/g"`
sm_configure_args="$sm_configure_args$sm_sep'$sm_arg'"
sm_sep=" " ;;
*) sm_configure_args="$sm_configure_args$sm_sep$sm_arg"
sm_sep=" " ;;
esac
# Get rid of the leading space.
done
# Remove --srcdir argument so it does not pile up.
sm_sub_configure_args=
sm_prev=
for sm_arg in $sm_configure_args; do
if test -n "$sm_prev"; then
sm_prev=
continue
fi
case $sm_arg in
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
sm_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
;;
*) sm_sub_configure_args="$sm_sub_configure_args $sm_arg" ;;
esac
done
# The eval makes quoting arguments work.
eval $D/../db-4.3.28.NC/dist/configure --disable-shared --with-uniquename=4328X --disable-queue --disable-replication $sm_sub_configure_args
syntax highlighted by Code2HTML, v. 0.9.1