Ralf Wildenhues wrote:
* Ralph Blach wrote on Thu, May 20, 2010 at 10:27:59PM CEST:
AC_DEFUN([AC_CHECK_FUNC_PROTO],
[AC_CACHE_CHECK(for $1 function prototype in $2, ac_cv_have_$1_proto,
AC_EGREP_HEADER($1, $2,
ac_cv_have_$1_proto=yes,
ac_cv_have_$1_proto=no))
if test $ac_cv_have_$1_proto = yes ; then
ac_tr_func=HAVE_`echo $1 | tr
'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
AC_DEFINE_UNQUOTED($ac_tr_func)
fi
])
autoreconfig -v is run, the new configure file is made, but
I get this configure error
checking for gethostname function prototype in unistd.h...
./configure: line 3828: syntax error near unexpected token `newline'
./configure: line 3828: `*GNU*'
Your macro still lacks proper quotation. You need to [quote] at least
the third argument of the AC_CACHE_CHECK call, but better all others
too, as well as each argument of AC_EGREP_HEADER.
If that still causes the error above, then it would be helpful to see,
say, a dozen lines of the configure script around the line where the
error occurs.
Cheers,
Ralf
Ralf,
First I dont really understand "proper quotation"
because I dont really understand this language.
Here are the dozen lines from the conigure file
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in grep ggrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
# Check for GNU ac_path_GREP and select it if it is found.
# Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_gethostname_proto" >&5
$as_echo "$ac_cv_have_gethostname_proto" >&6; }
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
ac_count=0
$as_echo_n 0123456789 >"conftest.in"
while :
do
cat "conftest.in" "conftest.in" >"conft
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf