Home | History | Annotate | Download | only in m4

Lines Matching full:lib

0 # lib-link.m4 serial 7 (gettext-0.15)
13 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
22 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
24 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
28 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
32 AC_SUBST([LIB]NAME)
45 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
48 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
57 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
62 dnl because if the user has installed lib[]Name and not disabled its use
63 dnl via --without-lib[]Name-prefix, he wants to use it.
67 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
69 LIBS="$LIBS $LIB[]NAME"
76 AC_MSG_CHECKING([how to link with lib[]$1])
77 AC_MSG_RESULT([$LIB[]NAME])
80 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
83 LIB[]NAME=
87 AC_SUBST([LIB]NAME)
126 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
138 AC_LIB_ARG_WITH([lib$1-prefix],
139 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
140 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
158 LIB[]NAME=
184 eval value=\"\$LIB$uppername\"
185 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
194 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
201 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
203 found_so="$additional_libdir/lib$name.$shlibext"
204 if test -f "$additional_libdir/lib$name.la"; then
205 found_la="$additional_libdir/lib$name.la"
208 if test -f "$additional_libdir/lib$name.$libext"; then
210 found_a="$additional_libdir/lib$name.$libext"
211 if test -f "$additional_libdir/lib$name.la"; then
212 found_la="$additional_libdir/lib$name.la"
223 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
225 found_so="$dir/lib$name.$shlibext"
226 if test -f "$dir/lib$name.la"; then
227 found_la="$dir/lib$name.la"
230 if test -f "$dir/lib$name.$libext"; then
232 found_a="$dir/lib$name.$libext"
233 if test -f "$dir/lib$name.la"; then
234 found_la="$dir/lib$name.la"
251 dnl standard /usr/lib.
254 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
274 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
279 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
297 for x in $LDFLAGS $LIB[]NAME; do
305 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
311 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
320 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
328 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
332 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
395 dnl 1. if it's the standard /usr/lib,
396 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
411 for x in $LDFLAGS $LIB[]NAME; do
421 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
478 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
482 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
493 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
514 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
522 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
537 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes