#!/bin/sh # # Use: ./configure [args] # # where [args] are arguments passed to the scripts/configure script # # This script is a workaround to GNU autoconf which can't deal with having # all of its config scripts in a different directory than the configure # script itself. It also sets up CFLAGS without the default optimizer # flag (-O2). # Run the generated config.status in the *current* directory (which may be a # separate build directory), with --srcdir pointing back at the source tree, so # that generated files (defs.mak, makedbh, ...) land in the build directory # rather than in the source tree. basedir=$(cd "$(dirname "$0")" && pwd) ( CFLAGS=${CFLAGS:-"-g"}; export CFLAGS; exec "${basedir}/scripts/configure" --srcdir="${basedir}" "$@" )