+2000-06-07 Akim Demaille <akim@epita.fr>
+
+ Hard (code) X.
+
+ * acspecific.m4 (_AC_PATH_X_DIRECT): Hard code `X11/Intrinsic.h'
+ instead of using `ac_x_direct_test_include', likewise for `Xt' and
+ `ac_x_direct_test_lib', `XtMalloc' and
+ `ac_x_direct_test_function'.
+
2000-06-07 Akim Demaille <akim@epita.fr>
* acspecific.m4 (AC_PATH_X): Use AC_DIVERT.
/usr/openwin/share/include'
if test "$ac_x_includes" = no; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$ac_x_direct_test_include" &&
- ac_x_direct_test_include=X11/Intrinsic.h
-
+ # Guess where to find include files, by looking for Intrinsic.h.
# First, try using that file with no special directory specified.
-AC_TRY_CPP([#include <$ac_x_direct_test_include>],
+ AC_TRY_CPP([@%:@include <X11/Intrinsic.h>],
[# We can compile using X headers with no special include directory.
ac_x_includes=],
[for ac_dir in $ac_x_header_dirs; do
- if test -r "$ac_dir/$ac_x_direct_test_include"; then
+ if test -r "$ac_dir/X11/Intrinsic.h"; then
ac_x_includes=$ac_dir
break
fi
if test "$ac_x_libraries" = no; then
# Check for the libraries.
-
- test -z "$ac_x_direct_test_library" && ac_x_direct_test_library=Xt
- test -z "$ac_x_direct_test_function" && ac_x_direct_test_function=XtMalloc
-
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS
- LIBS="-l$ac_x_direct_test_library $LIBS"
-AC_TRY_LINK(, [${ac_x_direct_test_function}()],
+ LIBS="-lXt $LIBS"
+ AC_TRY_LINK(, [XtMalloc (0)],
[LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=],
do
# Don't even attempt the hair of trying to link an X program!
for ac_extension in a so sl; do
- if test -r $ac_dir/lib${ac_x_direct_test_library}.$ac_extension; then
+ if test -r $ac_dir/libXt.$ac_extension; then
ac_x_libraries=$ac_dir
break 2
fi
/usr/openwin/share/include'
if test "$ac_x_includes" = no; then
- # Guess where to find include files, by looking for this one X11 .h file.
- test -z "$ac_x_direct_test_include" &&
- ac_x_direct_test_include=X11/Intrinsic.h
-
+ # Guess where to find include files, by looking for Intrinsic.h.
# First, try using that file with no special directory specified.
-AC_TRY_CPP([#include <$ac_x_direct_test_include>],
+ AC_TRY_CPP([@%:@include <X11/Intrinsic.h>],
[# We can compile using X headers with no special include directory.
ac_x_includes=],
[for ac_dir in $ac_x_header_dirs; do
- if test -r "$ac_dir/$ac_x_direct_test_include"; then
+ if test -r "$ac_dir/X11/Intrinsic.h"; then
ac_x_includes=$ac_dir
break
fi
if test "$ac_x_libraries" = no; then
# Check for the libraries.
-
- test -z "$ac_x_direct_test_library" && ac_x_direct_test_library=Xt
- test -z "$ac_x_direct_test_function" && ac_x_direct_test_function=XtMalloc
-
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS
- LIBS="-l$ac_x_direct_test_library $LIBS"
-AC_TRY_LINK(, [${ac_x_direct_test_function}()],
+ LIBS="-lXt $LIBS"
+ AC_TRY_LINK(, [XtMalloc (0)],
[LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=],
do
# Don't even attempt the hair of trying to link an X program!
for ac_extension in a so sl; do
- if test -r $ac_dir/lib${ac_x_direct_test_library}.$ac_extension; then
+ if test -r $ac_dir/libXt.$ac_extension; then
ac_x_libraries=$ac_dir
break 2
fi