Skip to content

Commit e017206

Browse files
committed
add fb_config
1 parent fa3bec2 commit e017206

File tree

2 files changed

+124
-1
lines changed

2 files changed

+124
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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_intldir=@FB_INTLDIR@
37+
fb_miscdir=@FB_MISCDIR@
38+
fb_securedbdir=@FB_SECDBDIR@
39+
fb_msgdir=@FB_MSGDIR@
40+
fb_logdir=@FB_LOGDIR@
41+
fb_glockdir=@FB_GUARDDIR@
42+
fb_pluginsdir=@FB_PLUGDIR@
43+
fb_tzdatadir=@FB_TZDATADIR@
44+
45+
fb_cflags="-I$fb_incdir"
46+
fb_libs="-L$fb_libdir -lfbclient @CRYPTLIB@ @MATHLIB@"
47+
48+
BuildVersion=@FIREBIRD_VERSION@.@FB_BUILD_NUM@
49+
PackageVersion=@FIREBIRD_PACKAGE_VERSION@
50+
CpuType=@CPU_TYPE@
51+
52+
Version="$BuildVersion-$PackageVersion.$CpuType"
53+
54+
fb_version=$Version
55+
56+
57+
usage() {
58+
cat <<EOF
59+
60+
Usage $0 [Options]
61+
62+
Where Options are:
63+
--cflags
64+
--libs
65+
--embedlibs
66+
--bindir
67+
--udfdir
68+
--sbindir
69+
--confdir
70+
--docdir
71+
--sampledir
72+
--sampledbdir
73+
--helpdir
74+
--intldir
75+
--miscdir
76+
--securedbdir
77+
--msgdir
78+
--logdir
79+
--glockdir
80+
--pluginsdir
81+
--version
82+
EOF
83+
}
84+
85+
if test "$#" -eq 0 ; then
86+
usage
87+
exit 1
88+
fi
89+
90+
91+
while test $# -gt 0
92+
do
93+
case "$1" in
94+
--cflags) echo $fb_cflags ;;
95+
--libs) echo $fb_libs ;;
96+
--embedlibs) echo $fb_libs ;;
97+
--bindir) echo $fb_bindir ;;
98+
--sbindir) echo $fb_sbindir ;;
99+
--confdir) echo $fb_confdir ;;
100+
--docdir) echo $fb_docdir ;;
101+
--sampledir) echo $fb_sampledir ;;
102+
--intldir) echo $fb_intldir ;;
103+
--miscdir) echo $fb_miscdir ;;
104+
--securedbdir) echo $fb_securedbdir ;;
105+
--msgdir) echo $fb_msgdir ;;
106+
--logdir) echo $fb_logdir ;;
107+
--glockdir) echo $fb_glockdir ;;
108+
--pluginsdir) echo $fb_pluginsdir ;;
109+
--tzdatadir) echo $fb_tzdatadir ;;
110+
--sampledbdir) echo $fb_sampledbdir ;;
111+
--version) echo $fb_version ;;
112+
--help) usage ;;
113+
*) usage ;
114+
esac
115+
shift
116+
done

configure.ac

+8-1
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,14 @@ case "$PLATFORM" in
16021602
;;
16031603

16041604
DARWIN)
1605+
AC_CONFIG_FILES([
1606+
gen/darwin.defaults:${MAKE_SRC_DIR}/darwin.defaults])
1607+
;;
1608+
win32)
1609+
AC_CONFIG_FILES([
1610+
gen/$fb_tgt/firebird/bin/fb_config:builds/install/arch-specific/mingw/fb_config.in
1611+
gen/$fb_tgt/firebird/bin/fb_install_service.bat:builds/install/arch-specific/win32/install_service.bat
1612+
gen/$fb_tgt/firebird/bin/fb_uninstall_service.bat:builds/install/arch-specific/win32/uninstall_service.bat])
16051613
;;
16061614
esac
16071615
if test -f ${MAKE_SRC_DIR}/postfix.${MAKEFILE_POSTFIX};then
@@ -1617,7 +1625,6 @@ AC_CONFIG_FILES(
16171625
gen/make.rules:${MAKE_SRC_DIR}/make.rules
16181626
gen/make.defaults:${MAKE_SRC_DIR}/make.defaults
16191627
gen/make.platform:${MAKE_SRC_DIR}/prefix.${MAKEFILE_PREFIX}
1620-
gen/darwin.defaults:${MAKE_SRC_DIR}/darwin.defaults
16211628
${POSTFIX_FILE}
16221629
gen/make.shared.variables:${MAKE_SRC_DIR}/make.shared.variables
16231630
gen/make.shared.targets:${MAKE_SRC_DIR}/make.shared.targets

0 commit comments

Comments
 (0)