Show an appropriate error message when the command line --append flag fails to open...
[synfig.git] / synfig-core / trunk / synfig-config.in
blob0c32754c5593402aa634b6884b84b5af0d74cafb
1 #!/bin/sh
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
6 bindir=@bindir@
7 libexecdir=@libexecdir@
8 datadir=@datadir@
9 sysconfdir=@sysconfdir@
10 sharedstatedir=@sharedstatedir@
11 localstatedir=@localstatedir@
12 libdir=@libdir@
13 infodir=@infodir@
14 mandir=@mandir@
15 includedir=@includedir@
17 LIBS="@SYNFIG_LIBS@"
19 VERSION=@VERSION@
20 PACKAGE=@PACKAGE@
22 CFLAGS="@CONFIG_CFLAGS@"
24 usage()
26 cat <<EOF
27 Usage: synfig-config [OPTION]...
29 Generic options
30 --version print installed version of synfig.
31 --help display this help and exit.
33 Compilation support options
34 --cflags print pre-processor and compiler flags
35 --libs print library linking information
37 Install directories
38 --prefix --exec-prefix --bindir --libexecdir --datadir
39 --sysconfdir --sharedstatedir --localstatedir --libdir --infodir
40 --mandir --includedir
42 EOF
44 exit 1
47 if test $# -eq 0; then
48 usage 1
51 case $1 in
52 --version)
53 echo $PACKAGE $VERSION
54 exit 0
56 --exec-prefix)
57 echo $exec_prefix
58 exit 0
60 --prefix)
61 echo $prefix
62 exit 0
64 --help)
65 usage 0
67 --cflags)
68 echo $CFLAGS
69 exit 0
71 --cxxflags)
72 echo $CFLAGS
73 exit 0
75 --libs)
76 echo $LIBS
77 exit 0
79 esac
81 echo Unknown option "$1"
82 exit 4