Lines Matching full:lib
0 # lib-link.m4 serial 4 (gettext-0.12)
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)
124 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
135 AC_LIB_ARG_WITH([lib$1-prefix],
136 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
137 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
149 additional_libdir="$withval/lib"
155 LIB[]NAME=
181 eval value=\"\$LIB$uppername\"
182 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
191 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
198 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
200 found_so="$additional_libdir/lib$name.$shlibext"
201 if test -f "$additional_libdir/lib$name.la"; then
202 found_la="$additional_libdir/lib$name.la"
205 if test -f "$additional_libdir/lib$name.$libext"; then
207 found_a="$additional_libdir/lib$name.$libext"
208 if test -f "$additional_libdir/lib$name.la"; then
209 found_la="$additional_libdir/lib$name.la"
220 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
222 found_so="$dir/lib$name.$shlibext"
223 if test -f "$dir/lib$name.la"; then
224 found_la="$dir/lib$name.la"
227 if test -f "$dir/lib$name.$libext"; then
229 found_a="$dir/lib$name.$libext"
230 if test -f "$dir/lib$name.la"; then
231 found_la="$dir/lib$name.la"
248 dnl standard /usr/lib.
249 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
251 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
271 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
276 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
294 for x in $LDFLAGS $LIB[]NAME; do
302 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
308 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
317 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
325 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
329 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
335 */lib | */lib/)
336 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
392 dnl 1. if it's the standard /usr/lib,
393 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
397 if test "X$additional_libdir" != "X/usr/lib"; then
399 if test "X$additional_libdir" = "X/usr/local/lib"; then
408 for x in $LDFLAGS $LIB[]NAME; do
418 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
475 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
479 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
490 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
511 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
519 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
534 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes