Lines Matching +full:- +full:- +full:libdir

1 # lib-link.m4 serial 28
2 dnl Copyright (C) 2001-2019 Free Software Foundation, Inc.
21 pushdef([Name],[m4_translit([$1],[./+-], [____])])
22 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
46 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
49 dnl the ability to compile and link the specified testcode. The missing-message
61 pushdef([Name],[m4_translit([$1],[./+-], [____])])
62 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
71 dnl disabled via --without-lib[]Name-prefix).
77 dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
78 dnl because these -l options might require -L options that are present in
79 dnl LIBS. -l options benefit only from the -L options listed before it.
85 *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
135 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
137 rm -f ./conftest.sh
151 [ --disable-rpath do not hardcode runtime library paths],
157 dnl will then not have a --with-libname-prefix option but a
158 dnl --with-package-prefix option. Several libraries can come from the same
163 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
168 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
184 pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
187 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
190 dnl By default, look in $includedir and $libdir.
194 eval additional_libdir=\"$libdir\"
196 AC_ARG_WITH(PACK[-prefix],
197 [[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
198 --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
206 eval additional_libdir=\"$libdir\"
212 && test ! -d "$withval/$acl_libdirstem"; then
219 dnl $LDFLAGS. Using breadth-first-search.
231 while test -n "$names_next_round"; do
242 if test -z "$already_handled"; then
246 …uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|…
248 if test -n "$value"; then
251 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
253 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
267 if test -n "$acl_shlibext"; then
276 if test -n "$acl_shlibext"; then
277 if test -f "$dir/$libname$shrext"; then
284 | sed -e "s,^$libname$shrext\\\\.,," \
285 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
287 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
294 if test -f "$dir/$f"; then
305 if test -f "$dir/$libname.$acl_libext"; then
311 if test -f "$dir/$libname.la"; then
320 -L*)
321 dir=`echo "X$x" | sed -e 's/^X-L//'`
323 if test -n "$acl_shlibext"; then
324 if test -f "$dir/$libname$shrext"; then
331 | sed -e "s,^$libname$shrext\\\\.,," \
332 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
334 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
341 if test -f "$dir/$f"; then
352 if test -f "$dir/$libname.$acl_libext"; then
358 if test -f "$dir/$libname.la"; then
371 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
393 if test -z "$haveit"; then
402 … if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
415 if test -z "$haveit"; then
419 dnl Rely on "-L$found_dir".
425 if test "X$x" = "X-L$found_dir"; then
430 if test -z "$haveit"; then
431 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
435 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
444 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
446 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
458 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
465 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
472 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
490 if test -n "$GCC"; then
492 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
496 if test -z "$haveit"; then
499 if test "X$x" = "X-I$additional_includedir"; then
504 if test -z "$haveit"; then
505 if test -d "$additional_includedir"; then
507 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
514 if test -n "$found_la"; then
517 dnl age, revision, installed, dlopen, dlpreopen, libdir.
518 save_libdir="$libdir"
523 libdir="$save_libdir"
527 -L*)
528 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
541 if test -n "$GCC"; then
543 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
547 if test -z "$haveit"; then
551 if test "X$x" = "X-L$additional_libdir"; then
556 if test -z "$haveit"; then
557 if test -d "$additional_libdir"; then
559 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
565 if test "X$x" = "X-L$additional_libdir"; then
570 if test -z "$haveit"; then
571 if test -d "$additional_libdir"; then
573 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
579 -R*)
580 dir=`echo "X$dep" | sed -e 's/^X-R//'`
591 if test -z "$haveit"; then
603 if test -z "$haveit"; then
608 -l*)
610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
614 dnl directory; it is already contained in a preceding -L
616 …names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,…
631 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
632 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
639 if test -n "$acl_hardcode_libdir_separator"; then
640 dnl Weird platform: only the last -rpath option counts, the user must
647 dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
648 acl_save_libdir="$libdir"
649 libdir="$alldirs"
651 libdir="$acl_save_libdir"
654 dnl The -rpath options are cumulative.
656 acl_save_libdir="$libdir"
657 libdir="$found_dir"
659 libdir="$acl_save_libdir"
666 dnl executables is -R. The -R options are cumulative.
668 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
692 if test -z "$haveit"; then
698 dnl For those cases where a variable contains several -L and -l options
701 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
703 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
711 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
717 if test -n "$next"; then
727 -L) next=yes ;;
728 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
740 if test -n ""$3""; then
741 dnl libtool is used for linking. Use -R options.
743 $1="${$1}${$1:+ }-R$dir"
747 if test -n "$acl_hardcode_libdir_separator"; then
748 dnl Weird platform: only the last -rpath option counts, the user
754 acl_save_libdir="$libdir"
755 libdir="$alldirs"
757 libdir="$acl_save_libdir"
760 dnl The -rpath options are cumulative.
762 acl_save_libdir="$libdir"
763 libdir="$dir"
765 libdir="$acl_save_libdir"