Having untarred the 1.0 distribution, and typing ./configure, ./configure breaks near the end saying:
config.status: creating bcb5/testNDC/Makefile
config.status: creating bcb5/testPattern/Makefile
config.status: creating openvms/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
creating include/log4cpp/config.h - prefix LOG4CPP for include/config.h defines
dirname: too many arguments
Try `dirname --help' for more information.
/* automatically generated bcb5/ config/ doc/ include/ m4/ msvc6/ openvms/ src
[b1591729@ibiza log4cpp-1.0]$
The problem seems to occur due to the string "automatically generated" appearing in the configure scriupt:
if test -z "$ac_prefix_conf_PKG" ; then
{ { echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
{ (exit 1); exit 1; }; }
else
{ echo "$as_me:$LINENO: result: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
echo "${ECHO_T}creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6; }
if test -f $ac_prefix_conf_INP ; then
$as_dirname -- /* automatically generated */ ||
$as_expr X/* automatically generated */ : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X/* automatically generated */ : 'X\(//\)[^/]' \| \
X/* automatically generated */ : 'X\(//\)$' \| \
X/* automatically generated */ : 'X\(/\)' \| . 2>/dev/null ||
echo X/* automatically generated */ |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
I am going to attach the various configuration logs. I am using Centos 4.4 and gcc version 3.4.6
Logged In: NO
I took one line from the prior release, and changed one line in the configure, after which it *seemed* to do the right thing.
The line I changed is the one containing dirname, line 23833 if I did this right.
if test -f $ac_prefix_conf_INP ; then
(dirname /* automatically generated */) 2>/dev/null ||
$as_expr X/* automatically generated */ : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \