Add "BugOpts QtDragnDropWorkaround"
[fvwm.git] / bin / fvwm-config.in
blob56487478862d62cbfb124c38be7cf51a6283ade8
1 #!/bin/sh
3 # Querying fvwm installation. Author: Mikhael Goikhman.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 PACKAGE="@PACKAGE@"
20 VERSION="@VERSION@"
21 script=`basename $0`
23 usage()
25 cat <<EOF
26 This script is a part of $PACKAGE-$VERSION package.
28 Usage: $script [OPTIONS]
29 Options:
30 [-h] [--help] [-?]
31 [-v] [--version] [-V]
32 [-i] [--info]
34 [-P] [--prefix]
35 [-E] [--exec-prefix]
36 [-B] [--bindir]
37 [--datarootdir]
38 [-D] [--datadir]
39 [-L] [--libexecdir]
40 [-S] [--sysconfdir]
41 [-M] [--mandir]
42 [-O] [--localedir]
44 [-m] [--fvwm-moduledir]
45 [-d] [--fvwm-datadir]
46 [-p] [--fvwm-perllibdir]
47 [-I] [--default-imagepath]
48 [-U] [--default-userdir]
50 [-e] [--fvwm-exe] print fvwm executable name (in bindir)
51 [-s] [--supports] list supported features, one per line
52 [--supports-<feature>] return: 0 (yes), 100 (no), 200 (unknown)
53 [--is-final] print yes or no
54 [--is-stable] print yes or no
55 [--release-date] print the release date (if final)
56 EOF
57 exit $1
60 if test $# -eq 0; then
61 usage 1 1>&2
64 prefix="@prefix@"
65 exec_prefix="@exec_prefix@"
66 bindir="@bindir@"
67 datarootdir="@datarootdir@"
68 datadir="@datadir@"
69 libexecdir="@libexecdir@"
70 sysconfdir="@sysconfdir@"
71 mandir="@mandir@"
72 localedir="@LOCALEDIR@"
74 fvwm_moduledir="@FVWM_MODULEDIR@"
75 fvwm_datadir="@FVWM_DATADIR@"
76 fvwm_perllibdir="@FVWM_PERLLIBDIR@"
77 fvwm_imagepath="@FVWM_IMAGEPATH@"
78 fvwm_userdir='$HOME/.fvwm'
79 fvwm_exe='fvwm'
81 VERSIONINFO="@VERSIONINFO@"
82 release_date="@RELDATENUM@"
84 with_bidi=@with_bidi@
85 with_gettext=@with_gettext@
86 with_gtk=@with_gtk@
87 with_gdkimlib=@with_gdkimlib@
88 with_gnomelibs=@with_gnomelibs@
89 with_iconv=@with_iconv@
90 with_perllib=@with_perllib@
91 with_png=@with_png@
92 with_readline=@with_readline@
93 with_rplay=@with_rplay@
94 with_rsvg=@with_rsvg@
95 with_shape=@with_shape@
96 with_shm=@with_shm@
97 with_sm=@with_sm@
98 with_stroke=@with_stroke@
99 with_xcursor=@with_xcursor@
100 with_xinerama=@with_xinerama@
101 with_xft=@with_xft@
102 with_xpm=@with_xpm@
103 with_xrender=@with_xrender@
105 is_stable=no
106 is_final=@ISRELEASED@
108 while test $# -gt 0; do
109 case "$1" in
110 --help|-help|-h|-\?)
111 usage 0 ;;
113 --version|-version|-v|-V)
114 echo "$VERSION" ;;
116 --prefix|-prefix|-P)
117 echo "$prefix" ;;
119 --exec-prefix|-exec-prefix|-E)
120 echo "$exec_prefix" ;;
122 --bindir|-bindir|-B)
123 echo "$bindir" ;;
125 --datarootdir|-datarootdir)
126 echo "$datarootdir" ;;
128 --datadir|-datadir|-D)
129 echo "$datadir" ;;
131 --libexecdir|-libexecdir|-L)
132 echo "$libexecdir" ;;
134 --sysconfdir|-sysconfdir|-S)
135 echo "$sysconfdir" ;;
137 --mandir|-mandir|-M)
138 echo "$mandir" ;;
140 --localedir|-localedir|-O)
141 echo "$localedir" ;;
143 --fvwm-moduledir|-fvwm-moduledir|-m)
144 echo "$fvwm_moduledir" ;;
146 --fvwm-datadir|-fvwm-datadir|-d)
147 echo "$fvwm_datadir" ;;
149 --fvwm-perllibdir|-fvwm-perllibdir|--perllibdir|-perllibdir|-p)
150 echo "$fvwm_perllibdir" ;;
152 --default-imagepath|-default-imagepath|-I)
153 echo "$fvwm_imagepath" ;;
155 --default-userdir|-default-userdir|-U)
156 echo "$fvwm_userdir" ;;
158 --fvwm-exe|-fvwm-exe|-e)
159 echo "$fvwm_exe" ;;
161 --supports|-supports|-s)
162 test "$with_bidi" = "yes" && echo "bidi"
163 test "$with_gettext" = "yes" && echo "gettext"
164 test "$with_gtk" = "yes" && echo "gtk"
165 test "$with_gdkimlib" = "yes" && echo "gdk-imlib"
166 test "$with_gnomelibs" = "yes" && echo "gnome-libs"
167 test "$with_iconv" = "yes" && echo "iconv"
168 test "$with_perllib" = "yes" && echo "perllib"
169 test "$with_png" = "yes" && echo "png"
170 test "$with_readline" = "yes" && echo "readline"
171 test "$with_rplay" = "yes" && echo "rplay"
172 test "$with_rsvg" = "yes" && echo "rsvg"
173 test "$with_shape" = "yes" && echo "shape"
174 test "$with_shm" = "yes" && echo "shm"
175 test "$with_sm" = "yes" && echo "sm"
176 test "$with_stroke" = "yes" && echo "stroke"
177 test "$with_xcursor" = "yes" && echo "xcursor"
178 test "$with_xinerama" = "yes" && echo "xinerama"
179 test "$with_xft" = "yes" && echo "xft"
180 test "$with_xpm" = "yes" && echo "xpm"
181 test "$with_xrender" = "yes" && echo "xrender"
184 --supports-*)
185 feature=`echo "$1" | sed 's/^--supports-//'`
186 feature=`echo "$feature" | sed 's/[-_]//g'`
187 test "$feature" = "gnomewm" && feature="gnomehints"
188 with=`eval echo '$'with_"$feature"`
189 test "$with" = "yes" && exit 0
190 test "$with" = "no" && exit 100
191 exit 200
194 --info|-info|-i)
195 echo "Package: $PACKAGE"
196 echo "Version: $VERSION$VERSIONINFO"
197 echo ""
198 echo "Instalation options:"
199 echo " prefix: $prefix"
200 echo " exec-prefix: $exec_prefix"
201 echo " bindir: $bindir"
202 echo " datadir: $datadir"
203 echo " libexecdir: $libexecdir"
204 echo " sysconfdir: $sysconfdir"
205 echo " mandir: $mandir"
206 echo " localedir: $localedir"
207 echo ""
208 echo "Compiled-in paths:"
209 echo " Module directory: $fvwm_moduledir"
210 echo " Data directory: $fvwm_datadir"
211 echo " Perl lib directory: $fvwm_perllibdir"
212 echo " Default ImagePath: $fvwm_imagepath"
213 echo " Default UserDir: $fvwm_userdir"
214 echo ""
215 echo "Support for features:"
216 echo " bidi (bi-directionality): $with_bidi"
217 echo " gettext (Native Lang Support): $with_gettext"
218 echo " gtk (required for FvwmGtk): $with_gtk"
219 echo " gdk-imlib (in FvwmGtk): $with_gdkimlib"
220 echo " gnome-libs (in FvwmGtk): $with_gnomelibs"
221 echo " perllib (Perl library installed): $with_perllib"
222 echo " iconv (i18n conversions): $with_iconv"
223 echo " png: $with_png"
224 echo " readline: $with_readline"
225 echo " rplay: $with_rplay"
226 echo " shape (shaped windows): $with_shape"
227 echo " shm (shared memory): $with_shm"
228 echo " sm (session management): $with_sm"
229 echo " stroke (mouse gestures): $with_stroke"
230 echo " rsvg (SVG icons and images): $with_rsvg"
231 echo " xcursor (ARGB/animated cursors): $with_xcursor"
232 echo " xinerama (multi-head): $with_xinerama"
233 echo " xft (FreeType anti-alias font): $with_xft"
234 echo " xpm: $with_xpm"
235 echo " xrender (XFree86 Xrender extention): $with_xrender"
238 --is-stable|-is-stable)
239 test "$is_stable" = yes && echo yes
240 test "$is_stable" != yes && echo no
243 --is-final|-is-final)
244 test "$is_final" = yes && echo yes
245 test "$is_final" != yes && echo no
248 --release-date|-release-date)
249 echo $release_date
253 echo >&2 "$script: unknown argument '$1'."
254 echo >&2 "Run '$script --help' to get the usage."
255 exit 1
258 esac
259 shift
260 done
262 exit 0