]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Hard (code) X.
authorAkim Demaille <akim@epita.fr>
Wed, 7 Jun 2000 07:02:26 +0000 (07:02 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 7 Jun 2000 07:02:26 +0000 (07:02 +0000)
* 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'.

ChangeLog
acspecific.m4
lib/autoconf/specific.m4

index e34d9677c6893006338501075520ea751fc12452..139e196c1e3f72d296fd6195558da3c0a54d5d85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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.
index 79f179e4dffe406ee4aa9e801c477c438654c068..b08cd7b04f9fb1fe15baccb05978d88149e2bcd0 100644 (file)
@@ -2358,16 +2358,13 @@ ac_x_header_dirs='
 /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
@@ -2376,15 +2373,11 @@ fi # $ac_x_includes = no
 
 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=],
@@ -2393,7 +2386,7 @@ for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 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
index 79f179e4dffe406ee4aa9e801c477c438654c068..b08cd7b04f9fb1fe15baccb05978d88149e2bcd0 100644 (file)
@@ -2358,16 +2358,13 @@ ac_x_header_dirs='
 /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
@@ -2376,15 +2373,11 @@ fi # $ac_x_includes = no
 
 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=],
@@ -2393,7 +2386,7 @@ for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 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