/[inetutils]/inetutils/m4/lib-link.m4
ViewVC logotype

Diff of /inetutils/m4/lib-link.m4

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

revision 1.1 by ams, Fri Jan 21 13:02:48 2005 UTC revision 1.2 by gray, Fri Jul 29 10:52:44 2005 UTC
# Line 1  Line 1 
1  # lib-link.m4 serial 4 (gettext-0.12)  # lib-link.m4 serial 6 (gettext-0.14.3)
2  dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.  dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
3  dnl This file is free software; the Free Software Foundation  dnl This file is free software; the Free Software Foundation
4  dnl gives unlimited permission to copy and/or distribute it,  dnl gives unlimited permission to copy and/or distribute it,
5  dnl with or without modifications, as long as this notice is preserved.  dnl with or without modifications, as long as this notice is preserved.
6    
7  dnl From Bruno Haible.  dnl From Bruno Haible.
8    
9    AC_PREREQ(2.50)
10    
11  dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and  dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
12  dnl the libraries corresponding to explicit and implicit dependencies.  dnl the libraries corresponding to explicit and implicit dependencies.
13  dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and  dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
# Line 93  dnl libext, shlibext, hardcode_libdir_fl Line 95  dnl libext, shlibext, hardcode_libdir_fl
95  dnl hardcode_direct, hardcode_minus_L.  dnl hardcode_direct, hardcode_minus_L.
96  AC_DEFUN([AC_LIB_RPATH],  AC_DEFUN([AC_LIB_RPATH],
97  [  [
98      dnl Tell automake >= 1.10 to complain if config.rpath is missing.
99      m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
100    AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS    AC_REQUIRE([AC_PROG_CC])                dnl we use $CC, $GCC, $LDFLAGS
101    AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld    AC_REQUIRE([AC_LIB_PROG_LD])            dnl we use $LD, $with_gnu_ld
102    AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host    AC_REQUIRE([AC_CANONICAL_HOST])         dnl we use $host
# Line 348  AC_DEFUN([AC_LIB_LINKFLAGS_BODY], Line 352  AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
352                  if test "X$additional_includedir" = "X/usr/local/include"; then                  if test "X$additional_includedir" = "X/usr/local/include"; then
353                    if test -n "$GCC"; then                    if test -n "$GCC"; then
354                      case $host_os in                      case $host_os in
355                        linux*) haveit=yes;;                        linux* | gnu* | k*bsd*-gnu) haveit=yes;;
356                      esac                      esac
357                    fi                    fi
358                  fi                  fi
# Line 397  AC_DEFUN([AC_LIB_LINKFLAGS_BODY], Line 401  AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
401                        if test "X$additional_libdir" = "X/usr/local/lib"; then                        if test "X$additional_libdir" = "X/usr/local/lib"; then
402                          if test -n "$GCC"; then                          if test -n "$GCC"; then
403                            case $host_os in                            case $host_os in
404                              linux*) haveit=yes;;                              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
405                            esac                            esac
406                          fi                          fi
407                        fi                        fi

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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