/[autoconf]/autoconf/lib/autoconf/libs.m4
ViewVC logotype

Diff of /autoconf/lib/autoconf/libs.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by akim, Sat Sep 28 16:38:48 2002 UTC revision 1.7 by akim, Sun Oct 27 18:21:32 2002 UTC
# Line 70  AC_DEFUN([AC_SEARCH_LIBS], Line 70  AC_DEFUN([AC_SEARCH_LIBS],
70  [AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1],  [AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1],
71  [ac_func_search_save_LIBS=$LIBS  [ac_func_search_save_LIBS=$LIBS
72  ac_cv_search_$1=no  ac_cv_search_$1=no
73  AC_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"])  AC_LINK_IFELSE([AC_LANG_CALL([], [$1])],
74                   [ac_cv_search_$1="none required"])
75  if test "$ac_cv_search_$1" = no; then  if test "$ac_cv_search_$1" = no; then
76    for ac_lib in $2; do    for ac_lib in $2; do
77      LIBS="-l$ac_lib $5 $ac_func_search_save_LIBS"      LIBS="-l$ac_lib $5 $ac_func_search_save_LIBS"
78      AC_TRY_LINK_FUNC([$1],      AC_LINK_IFELSE([AC_LANG_CALL([], [$1])],
79                       [ac_cv_search_$1="-l$ac_lib"                     [ac_cv_search_$1="-l$ac_lib"
80  break])  break])
81    done    done
82  fi  fi
# Line 120  AS_LITERAL_IF([$1], Line 121  AS_LITERAL_IF([$1],
121  AC_CACHE_CHECK([for $2 in -l$1], ac_Lib,  AC_CACHE_CHECK([for $2 in -l$1], ac_Lib,
122  [ac_check_lib_save_LIBS=$LIBS  [ac_check_lib_save_LIBS=$LIBS
123  LIBS="-l$1 $5 $LIBS"  LIBS="-l$1 $5 $LIBS"
124  AC_TRY_LINK_FUNC([$2],  AC_LINK_IFELSE([AC_LANG_CALL([], [$2])],
125                   [AS_VAR_SET(ac_Lib, yes)],                 [AS_VAR_SET(ac_Lib, yes)],
126                   [AS_VAR_SET(ac_Lib, no)])                 [AS_VAR_SET(ac_Lib, no)])
127  LIBS=$ac_check_lib_save_LIBS])  LIBS=$ac_check_lib_save_LIBS])
128  AS_IF([test AS_VAR_GET(ac_Lib) = yes],  AS_IF([test AS_VAR_GET(ac_Lib) = yes],
129        [m4_default([$3], [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1))        [m4_default([$3], [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1))
# Line 277  if test "$ac_x_libraries" = no; then Line 278  if test "$ac_x_libraries" = no; then
278    # Don't add to $LIBS permanently.    # Don't add to $LIBS permanently.
279    ac_save_LIBS=$LIBS    ac_save_LIBS=$LIBS
280    LIBS="-lXt $LIBS"    LIBS="-lXt $LIBS"
281    AC_TRY_LINK([@%:@include <X11/Intrinsic.h>], [XtMalloc (0)],    AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <X11/Intrinsic.h>],
282  [LIBS=$ac_save_LIBS                                    [XtMalloc (0)])],
283                     [LIBS=$ac_save_LIBS
284  # We can link X programs with no special library path.  # We can link X programs with no special library path.
285  ac_x_libraries=],  ac_x_libraries=],
286  [LIBS=$ac_save_LIBS                   [LIBS=$ac_save_LIBS
287  for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`  for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
288  do  do
289    # Don't even attempt the hair of trying to link an X program!    # Don't even attempt the hair of trying to link an X program!
# Line 416  dnl FIXME: banish uname from this macro! Line 418  dnl FIXME: banish uname from this macro!
418      # libraries were built with DECnet support.  And Karl Berry says      # libraries were built with DECnet support.  And Karl Berry says
419      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
420      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
421      AC_TRY_LINK_FUNC(XOpenDisplay, ,      AC_LINK_IFELSE([AC_LANG_CALL([], [XOpenDisplay])],
422                       [],
423      [AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"])      [AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"])
424      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
425        AC_CHECK_LIB(dnet_stub, dnet_ntoa,        AC_CHECK_LIB(dnet_stub, dnet_ntoa,

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26