Debian Codegraph @

builds/install/posix-common/fb_config.in

raw
1 #! /bin/sh
2 #
3 # The contents of this file are subject to the Initial
4 # Developer's Public License Version 1.0 (the "License");
5 # you may not use this file except in compliance with the
6 # License. You may obtain a copy of the License at
7 # http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
8 #
9 # Software distributed under the License is distributed AS IS,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied.
11 # See the License for the specific language governing rights
12 # and limitations under the License.
13 #
14 # The Original Code was created by Mark O'Donohue
15 # for the Firebird Open Source RDBMS project.
16 #
17 # Copyright (c) Mark O'Donohue <[email protected]>
18 # and all contributors signed below.
19 #
20 # All Rights Reserved.
21 # Contributor(s): ______________________________________.
22 #
23
24 # stored configuration values
25
26 fb_install_prefix=@prefix@
27
28 fb_bindir=@FB_BINDIR@
29 fb_libdir=@FB_LIBDIR@
30 fb_incdir=@FB_INCDIR@
31 fb_sbindir=@FB_SBINDIR@
32 fb_confdir=@FB_CONFDIR@
33 fb_docdir=@FB_DOCDIR@
34 fb_sampledir=@FB_SAMPLEDIR@
35 fb_sampledbdir=@FB_SAMPLEDBDIR@
36 fb_helpdir=@FB_HELPDIR@
37 fb_intldir=@FB_INTLDIR@
38 fb_miscdir=@FB_MISCDIR@
39 fb_securedbdir=@FB_SECDBDIR@
40 fb_msgdir=@FB_MSGDIR@
41 fb_logdir=@FB_LOGDIR@
42 fb_glockdir=@FB_GUARDDIR@
43 fb_pluginsdir=@FB_PLUGDIR@
44 fb_tzdatadir=@FB_TZDATADIR@
45
46 fb_cflags="-I$fb_incdir"
47 fb_libs="-L$fb_libdir -lfbclient"
48
49 BuildVersion=@FIREBIRD_VERSION@.@FB_BUILD_NUM@
50 PackageVersion=@FIREBIRD_PACKAGE_VERSION@
51 CpuType=@CPU_TYPE@
52
53 Version="$BuildVersion-$PackageVersion.$CpuType"
54
55 fb_version=$Version
56
57
58 usage() {
59 cat <<EOF
60
61 Usage $0 [Options]
62
63 Where Options are:
64 --cflags
65 --libs
66 --embedlibs
67 --bindir
68 --udfdir
69 --sbindir
70 --confdir
71 --docdir
72 --sampledir
73 --sampledbdir
74 --helpdir
75 --intldir
76 --miscdir
77 --securedbdir
78 --msgdir
79 --logdir
80 --glockdir
81 --pluginsdir
82 --version
83 EOF
84 }
85
86 if test "$#" -eq 0 ; then
87 usage
88 exit 1
89 fi
90
91
92 while test $# -gt 0
93 do
94 case "$1" in
95 --cflags) echo $fb_cflags ;;
96 --libs) echo $fb_libs ;;
97 --embedlibs) echo $fb_libs ;;
98 --bindir) echo $fb_bindir ;;
99 --sbindir) echo $fb_sbindir ;;
100 --confdir) echo $fb_confdir ;;
101 --docdir) echo $fb_docdir ;;
102 --sampledir) echo $fb_sampledir ;;
103 --helpdir) echo $fb_helpdir ;;
104 --intldir) echo $fb_intldir ;;
105 --miscdir) echo $fb_miscdir ;;
106 --securedbdir) echo $fb_securedbdir ;;
107 --msgdir) echo $fb_msgdir ;;
108 --logdir) echo $fb_logdir ;;
109 --glockdir) echo $fb_glockdir ;;
110 --pluginsdir) echo $fb_pluginsdir ;;
111 --tzdatadir) echo $fb_tzdatadir ;;
112 --sampledbdir) echo $fb_sampledbdir ;;
113 --version) echo $fb_version ;;
114 --help) usage ;;
115 *) usage ;
116 esac
117 shift
118 done