>
> | TEST_FINDS_EXE=Y
>
> Wow, are you telling us we no longer need to dive into `test $ac_x'
> and things like this?
It's a solution designed so we don't have to modify configure scripts, but
it's a hack. And it's a DJGPP-only solution, so it doesn't help EMX or any
other similiar environment . My preference would be to test for programs
using 'prog_to_find${ac_exeext}'. Then somehow figure out when ${ac_exeext}
needs to be set without resorting to compiling a program.
> | > | The test for AC_PATH_XTRA in macros.m4 did fail, but it better since DJGPP
> | > | doesn't use X Windows. Either the test should be fixed somehow or this
> | > | expected failure should be mentioned in the docs.
> | >
> | > Please, send the config.log from this test.
> | >
> |
> | Here it is:
>
> Hm, I still don't understand why it failed, i.e., why `configure'
> exited with 1. Maybe `sh -x ./configure' will give more information?
Perhaps it was a Bash 2.04 bug I fixed, because I don't get an exit code of 0
anywhere. The test itself exits with 1, but I suppose this is to be expected
for a failure. This is result when I set CONFIG_SHELL to 'sh -x':
=================================
debug-66.sh: Testing AC_PATH_XTRA
=================================
./macros.m4:51: testing...
./macros.m4:51: testing...
./macros.m4:51: testing...
loading site script c:/djgpp/share/config.site
checking how to run the C preprocessor... gcc -E
checking for X... no
creating ./config.status
creating config.h
+ debug=false
++ echo ./config.status
++ sed -e 's,.*/,,'
+ me=config.status
+ SHELL=sh -x
+ config_headers= config.h:config.hin
+ ac_cs_usage=`config.status' instantiates files from templates according to
the
current configuration.
Usage: ./config.status [OPTIONS] FILE...
-h, --help print this help, then exit
-V, --version print version number, then exit
-d, --debug don't remove temporary files
--recheck update config.status by reconfiguring in the same
conditions
--header=FILE[:TEMPLATE]
instantiate the configuration header FILE
Configuration headers:
config.h:config.hin
Report bugs to <[EMAIL PROTECTED]>.
+ ac_cs_version=./config.status generated by autoconf version 2.14a.
Configured on host pc by
./configure
+ ac_given_srcdir=.
+ ac_need_defaults=:
+ test 0 '!=' 0
+ :
+ : config.h:config.hin
+ false
+ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+ trap 'exit $?' 1 2 13 15
+ : c:/djgpp/tmp
+ tmp=
+ tmp=c:/djgpp/tmp/cs7498-8953
+ umask 077
+ mkdir c:/djgpp/tmp/cs7498-8953
+ ac_dA=s%^\([ ]*\)#\([ ]*define[ ][ ]*\)
+ ac_dB=[ ].*$%\1#\2
+ ac_dC=
+ ac_dD=%;t
+ ac_uA=s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)
+ ac_uB=$%\1#\2define\3
+ ac_uC=
+ ac_uD=%;t
+ test x: = x:
+ continue
+ test xconfig.h:config.hin = x:
++ echo config.h:config.hin
++ sed 's%[^:]*:%%'
+ ac_file_in=config.hin
++ echo config.h:config.hin
++ sed 's%:.*%%'
+ ac_file=config.h
+ echo creating config.h
++ echo config.hin
++ sed -e 's%^%./%;s%:% ./%g'
+ ac_file_inputs=./config.hin
+ test -f ./config.hin
+ sed -e 's/[ ]*$//' ./config.hin
+ egrep '^[ ]*#[ ]*define' c:/djgpp/tmp/cs7498-8953/in
+ cat
+ sed -f c:/djgpp/tmp/cs7498-8953/frag c:/djgpp/tmp/cs7498-8953/in
+ rm -f c:/djgpp/tmp/cs7498-8953/in
+ mv c:/djgpp/tmp/cs7498-8953/out c:/djgpp/tmp/cs7498-8953/in
+ echo '/* config.h. Generated automatically by configure. */'
+ cat c:/djgpp/tmp/cs7498-8953/in
+ rm -f c:/djgpp/tmp/cs7498-8953/in
+ cmp -s config.h c:/djgpp/tmp/cs7498-8953/config.h
++ echo config.h
++ sed 's%/[^/][^/]*$%%'
+ ac_dir=config.h
+ test config.h '!=' config.h
+ rm -f config.h
+ mv c:/djgpp/tmp/cs7498-8953/config.h config.h
+ exit 0
+ exit_status=0
+ rm -rf c:/djgpp/tmp/cs7498-8953
+ exit 0
--- config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure 2.14a, executed with
> ./configure
configure:616: checking how to run the C preprocessor
configure:638: gcc -E conftest.c >/dev/null 2>conftest.out
configure:691: result: gcc -E
configure:693: checking for X
configure:757: gcc -E conftest.c >/dev/null 2>conftest.out
configure:753: X11/Intrinsic.h: No such file or directory (ENOENT)
configure: failed program was:
#line 752 "configure"
#include "confdefs.h"
#include <X11/Intrinsic.h>
configure:831: gcc -o conftest.exe conftest.c -lXt >&5
c:/djgpp/bin/ld.exe: cannot find -lXt
collect2: ld returned 1 exit status
configure: failed program was:
#line 821 "configure"
#include "confdefs.h"
int
main ()
{
XtMalloc()
;
return 0;
}
configure:901: result: no
Cache variables:
| ac_cv_have_x=have_x=no
| ac_cv_prog_CPP='gcc -E'
| ac_cv_prog_LN_S='cp -p'
confdefs.h:
|
| #define X_DISPLAY_MISSING 1
./macros.m4:51: testing...
--- expout Tue Jun 6 12:03:00 2000
+++ stdout Tue Jun 6 12:03:02 2000
@@ -62,6 +62,7 @@
mandir='${prefix}/man'
no_create=
no_recursion=
+no_x=yes
oldincludedir=/usr/include
prefix=NONE
program_prefix=NONE
Perhaps you were asking about the other test I mentioned, debug-96.sh?
===============================
debug-96.sh: Testing autoheader
===============================
cat > acconfig.h <<'EOF'
+ cat
# 1. Check that `acconfig.h' is still honored.
cat > configure.in <<'EOF'
+ cat
$at_traceoff
+ set +vx
./tools.m4:97: testing...
../autoheader -m .. -<configure.in
+ ../autoheader -m .. -
../autoheader: c:/djgpp/tmp/ah5773/traces.sh: line 1: syntax error near
unexpected token `AC_CONFIG_HEADERS(c'
../autoheader: c:/djgpp/tmp/ah5773/traces.sh: line 1:
`m4trace:c:/djgpp/tmp/ac5777/stdin:2: -1- AC_CONFIG_HEADERS(config.h)'
autoheader: error: AC_CONFIG_HEADERS not found in -
at_status=$?
+ at_status=1
if test $at_status != 0; then
test -n "$at_verbose" && cat stderr >&6
exit $at_status
fi
+ test 1 '!=' 0
+ test -n 1
+ cat stderr
c:/djgpp/bin/cat.exe: stderr: No such file or directory (ENOENT)
+ exit 1
Something is definitely wrong here, but it will be difficult to find out
exactly what.