version 1.1, 2012/05/30 22:47:39
|
version 1.2, 2012/06/15 20:51:14
|
|
|
fullproduct="Open Management Infrastructure" | fullproduct="Open Management Infrastructure" |
major=1 | major=1 |
minor=0 | minor=0 |
revision=0 |
revision=1 |
date=`date` | date=`date` |
version="$major.$minor.$revision" | version="$major.$minor.$revision" |
| |
|
|
disable_libpath=1 | disable_libpath=1 |
;; | ;; |
| |
|
--favorsize) |
|
favorsize=1 |
|
;; |
|
|
*) | *) |
echo "$0: unknown option: $opt" | echo "$0: unknown option: $opt" |
exit 1 | exit 1 |
|
|
--enable-wchar Use 'wchar_t' character type [char]. | --enable-wchar Use 'wchar_t' character type [char]. |
--target=TARGET Cross-compiler for the given platform. | --target=TARGET Cross-compiler for the given platform. |
--toolchain=PATH Cross-compiler toolchain path (contains 'lib' dir). | --toolchain=PATH Cross-compiler toolchain path (contains 'lib' dir). |
--prefix=PATH The installation prefix [/opt/omi-1.0.0] |
--prefix=PATH The installation prefix [/opt/omi-$version] |
--libdir=PATH Install library components here [*/lib]. | --libdir=PATH Install library components here [*/lib]. |
--bindir=PATH Install programs here [*/bin]. | --bindir=PATH Install programs here [*/bin]. |
--includedir=PATH Install C/C++ include files here [*/include]. | --includedir=PATH Install C/C++ include files here [*/include]. |
|
|
--httpsport=PORT Server listens on this port for HTTPS protocols. | --httpsport=PORT Server listens on this port for HTTPS protocols. |
--disable-libpath Disable embedding of library search paths in | --disable-libpath Disable embedding of library search paths in |
binaries (shared libraries and executables). | binaries (shared libraries and executables). |
|
--favorsize Enable the CONFIG_FAVORSIZE source code macro |
|
to compile alternative source code that yields |
|
smaller object code size. |
| |
EOF | EOF |
exit 0 | exit 0 |
|
|
root=`pwd` | root=`pwd` |
| |
if [ -z "$prefix" ]; then | if [ -z "$prefix" ]; then |
prefix=/opt/omi-1.0.0 |
prefix=/opt/omi-$version |
fi | fi |
| |
if [ -z "$bindir" ]; then | if [ -z "$bindir" ]; then |
|
|
CONFIG_PRODUCT=$product | CONFIG_PRODUCT=$product |
CONFIG_FULLPRODUCT=$fullproduct | CONFIG_FULLPRODUCT=$fullproduct |
CONFIG_VERSION=$version | CONFIG_VERSION=$version |
CONFIG_MINOR=$minor |
|
CONFIG_MAJOR=$major | CONFIG_MAJOR=$major |
|
CONFIG_MINOR=$minor |
CONFIG_REVISION=$revision | CONFIG_REVISION=$revision |
CONFIG_DATE=$date | CONFIG_DATE=$date |
| |
|
|
DISABLE_LIBPATH=$disable_libpath | DISABLE_LIBPATH=$disable_libpath |
DISABLE_TEMPLATES=$disable_templates | DISABLE_TEMPLATES=$disable_templates |
CONFIG_CIMSCHEMA=$cimschema | CONFIG_CIMSCHEMA=$cimschema |
|
CONFIG_FAVORSIZE=$favorsize |
EOF | EOF |
| |
echo "created $fn" | echo "created $fn" |
|
|
#define CONFIG_PRODUCT "$product" | #define CONFIG_PRODUCT "$product" |
#define CONFIG_FULLPRODUCT "$fullproduct" | #define CONFIG_FULLPRODUCT "$fullproduct" |
#define CONFIG_VERSION "$version" | #define CONFIG_VERSION "$version" |
#define CONFIG_MINOR $minor |
|
#define CONFIG_MAJOR $major | #define CONFIG_MAJOR $major |
|
#define CONFIG_MINOR $minor |
#define CONFIG_REVISION $revision | #define CONFIG_REVISION $revision |
#define CONFIG_DATE "$date" | #define CONFIG_DATE "$date" |
#define CONFIG_PLATFORM "$platform" | #define CONFIG_PLATFORM "$platform" |
|
|
echo "/* #define CONFIG_DISABLE_TEMPLATES */" >> $fn | echo "/* #define CONFIG_DISABLE_TEMPLATES */" >> $fn |
fi | fi |
| |
|
if [ "$favorsize" = "1" ]; then |
|
echo "#define CONFIG_FAVORSIZE" >> $fn |
|
else |
|
echo "/* #define CONFIG_FAVORSIZE */" >> $fn |
|
fi |
|
|
if [ "$have_function_macro" = "1" ]; then | if [ "$have_function_macro" = "1" ]; then |
echo "#define CONFIG_HAVE_FUNCTION_MACRO" >> $fn | echo "#define CONFIG_HAVE_FUNCTION_MACRO" >> $fn |
else | else |