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 |
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 |
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 |
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 |