Fix X detection to work properly. --- configure.orig 2024-07-27 08:25:08.000000000 -0500 +++ configure 2024-11-14 18:14:04.000000000 -0600 @@ -8941,7 +8941,7 @@ # Check for the libraries. test -z "$x_direct_test_library" && x_direct_test_library=Xt - test -z "$x_direct_test_function" && x_direct_test_function='int XtMalloc' + test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc # See if we find them without any special options. # Don't add to $LIBS permanently. @@ -8951,8 +8951,9 @@ #line 8943 "configure" #include "confdefs.h" +#include <${x_direct_test_include}> int main() { -${x_direct_test_function}() +${x_direct_test_function}(0) ; return 0; } EOF if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then --- rebuild.orig 2024-07-22 15:47:06.000000000 -0500 +++ rebuild 2024-11-14 18:47:14.000000000 -0600 @@ -124,7 +124,6 @@ /DELETE1/-1,/DELETE1/d /DELETE2/-1,/DELETE2/d ,s/^main/int main/ -,s/XtMalloc/'int XtMalloc'/ ,s/foo()/int foo()/ w q