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

2 # $Id: dialog-config.in,v 1.13 2019/09/26 00:50:46 tom Exp $
4 # Copyright (c) 2007-2012,2019 Thomas E. Dickey #
40 test $# = 0 && exec @SHELL@ "$0" --error
42 while test $# -gt 0; do
56 eval libdir='"@libdir@"'
60 [ -z "$includedir" ] && includedir="${prefix}/include"
64 LIBS="-l${THIS} $LIBS"
66 # If the directory given by --libdir is not in the LDFLAGS+LIBS set,
71 if [ "x$-L${libdir}" = "x$opt" ]
79 [ -n "$LFLAGS" ] && LDFLAGS=" $LFDLAGS"
80 LDFLAGS="-L${libdir}$LDFLAGS"
82 [ -z "$LDFLAGS" ] && LDFLAGS="-L${exec_prefix}/lib"
84 # Ignore -L options which do not correspond to an actual directory,
94 -L*)
95 [ -d ${opt##-L} ] || continue
96 case ${opt##-L} in
97 @LD_SEARCHPATH@) # skip standard libdir
109 -*=*)
110 ARG=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
119 --prefix=*)
121 test -z "$exec_prefix" && exec_prefix="$ARG"
124 --prefix)
127 --exec-prefix=*)
131 --exec-prefix)
135 --cflags|--cflags-only-I)
138 INCS="-I$includedir"
140 sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
144 --cflags-only-other)
145 # no -D/-U options should be needed
148 --libs)
152 [ -n "$OPTS" ] && OPTS="$OPTS "
157 --libs-only-L)
162 x-L*)
163 [ -n "$OPTS" ] && OPTS="$OPTS "
170 --libs-only-l)
175 x-l*)
176 [ -n "$OPTS" ] && OPTS="$OPTS "
183 --libs-only-other)
188 x-[lL]*)
191 [ -n "$OPTS" ] && OPTS="$OPTS "
199 --version)
202 --abi-version)
203 echo "@VERSION@" | sed -e 's/:/./g'
206 --bindir)
209 --datadir)
212 --libdir)
213 echo "${libdir}"
215 --mandir)
219 --help)
221 Usage: ${THIS}-config [options]
224 --prefix echos the package-prefix of ${THIS}
225 --prefix=ARG sets the package-prefix of ${THIS}
226 --exec-prefix echos the executable-prefix of ${THIS}
227 --exec-prefix=ARG sets the executable-prefix of ${THIS}
229 --cflags echos the C compiler flags needed to compile with ${THIS}
230 --libs echos the libraries needed to link with ${THIS}
232 --libs-only-L echos -L linker options (search path) for ${THIS}
233 --libs-only-l echos -l linker options (libraries) for ${THIS}
234 --libs-only-other echos linker options other than -L/-l
236 --version echos the release+patchdate version of ${THIS}
237 --abi-version echos the ABI version of ${THIS}
239 --bindir echos the directory containing ${THIS} programs
240 --datadir echos the directory containing ${THIS} data
241 --libdir echos the directory containing ${THIS} libraries
242 --mandir echos the directory containing ${THIS} manual pages
244 --help prints this message
247 --error|*)
248 @SHELL@ "$0" --help 1>&2