Home | History | Annotate | Download | only in m4

Lines Matching full:lib

0 # lib-link.m4 serial 1 (gettext-0.11)
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)
123 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
134 AC_ARG_WITH([lib$1-prefix],
135 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
136 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
148 additional_libdir="$withval/lib"
154 LIB[]NAME=
180 eval value=\"\$LIB$uppername\"
181 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
190 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
197 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
199 found_so="$additional_libdir/lib$name.$shlibext"
200 if test -f "$additional_libdir/lib$name.la"; then
201 found_la="$additional_libdir/lib$name.la"
204 if test -f "$additional_libdir/lib$name.$libext"; then
206 found_a="$additional_libdir/lib$name.$libext"
207 if test -f "$additional_libdir/lib$name.la"; then
208 found_la="$additional_libdir/lib$name.la"
219 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
221 found_so="$dir/lib$name.$shlibext"
222 if test -f "$dir/lib$name.la"; then
223 found_la="$dir/lib$name.la"
226 if test -f "$dir/lib$name.$libext"; then
228 found_a="$dir/lib$name.$libext"
229 if test -f "$dir/lib$name.la"; then
230 found_la="$dir/lib$name.la"
247 dnl standard /usr/lib.
248 if test "X$found_dir" = "X/usr/lib"; then
250 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
270 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
275 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
293 for x in $LDFLAGS $LIB[]NAME; do
301 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
307 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
316 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
324 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
328 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
334 */lib | */lib/)
335 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
391 dnl 1. if it's the standard /usr/lib,
392 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
396 if test "X$additional_libdir" != "X/usr/lib"; then
398 if test "X$additional_libdir" = "X/usr/local/lib"; then
407 for x in $LDFLAGS $LIB[]NAME; do
417 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
445 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
449 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
460 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
481 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
489 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
504 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes