aboutsummaryrefslogtreecommitdiff
path: root/m4/lib-link.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/lib-link.m4')
-rw-r--r--m4/lib-link.m420
1 files changed, 9 insertions, 11 deletions
diff --git a/m4/lib-link.m4 b/m4/lib-link.m4
index ea0b0c4e..eeb200d2 100644
--- a/m4/lib-link.m4
+++ b/m4/lib-link.m4
@@ -1,13 +1,13 @@
1# lib-link.m4 serial 6 (gettext-0.14.3) 1# lib-link.m4 serial 4 (gettext-0.12)
2dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. 2dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software, distributed under the terms of the GNU
4dnl gives unlimited permission to copy and/or distribute it, 4dnl General Public License. As a special exception to the GNU General
5dnl with or without modifications, as long as this notice is preserved. 5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
6 8
7dnl From Bruno Haible. 9dnl From Bruno Haible.
8 10
9AC_PREREQ(2.50)
10
11dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and 11dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
12dnl the libraries corresponding to explicit and implicit dependencies. 12dnl the libraries corresponding to explicit and implicit dependencies.
13dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and 13dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
@@ -95,8 +95,6 @@ dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
95dnl hardcode_direct, hardcode_minus_L. 95dnl hardcode_direct, hardcode_minus_L.
96AC_DEFUN([AC_LIB_RPATH], 96AC_DEFUN([AC_LIB_RPATH],
97[ 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 98 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 99 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
102 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host 100 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
@@ -352,7 +350,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
352 if test "X$additional_includedir" = "X/usr/local/include"; then 350 if test "X$additional_includedir" = "X/usr/local/include"; then
353 if test -n "$GCC"; then 351 if test -n "$GCC"; then
354 case $host_os in 352 case $host_os in
355 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 353 linux*) haveit=yes;;
356 esac 354 esac
357 fi 355 fi
358 fi 356 fi
@@ -401,7 +399,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
401 if test "X$additional_libdir" = "X/usr/local/lib"; then 399 if test "X$additional_libdir" = "X/usr/local/lib"; then
402 if test -n "$GCC"; then 400 if test -n "$GCC"; then
403 case $host_os in 401 case $host_os in
404 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 402 linux*) haveit=yes;;
405 esac 403 esac
406 fi 404 fi
407 fi 405 fi