ap_release.h revision ed7c95a71fe344cb51d182328d821203cb78ca71
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering/* Licensed to the Apache Software Foundation (ASF) under one or more
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering * contributor license agreements. See the NOTICE file distributed with
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering * this work for additional information regarding copyright ownership.
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering * The ASF licenses this file to You under the Apache License, Version 2.0
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering * (the "License"); you may not use this file except in compliance with
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering * the License. You may obtain a copy of the License at
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering *
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering * http://www.apache.org/licenses/LICENSE-2.0
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering *
3f612b9123208577736957786633ead53ae41b66Lennart Poettering * Unless required by applicable law or agreed to in writing, software
085b90af43fefd9ed195902c4b55f1da3c568554Lennart Poettering * distributed under the License is distributed on an "AS IS" BASIS,
49dbfa7b2b0bf3906704dac1eaeb4eba91056a19Lennart Poettering * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering * See the License for the specific language governing permissions and
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering * limitations under the License.
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering */
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-Szmek
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-Szmek/**
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-Szmek * @file ap_release.h
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-Szmek * @brief Version Release defines
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-Szmek */
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering#ifndef AP_RELEASE_H
454591be36880b0300b0448576c483a39d9cc611Lennart Poettering#define AP_RELEASE_H
47ec118473c864b6ae550fd7ee56d6f4982e5363Lennart Poettering
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering#include "apr_general.h" /* stringify */
374738d55b2bc4ab07c22f9a0be95a76de1c9478Lukasz Skalski
c2fc2c2560f0ca0fab383753c065e45d76f465e5Lennart Poettering#define AP_SERVER_COPYRIGHT \
f84aea434f2b014716ce9067f0af4db24a91a7c4Lennart Poettering "Copyright 2009 The Apache Software Foundation."
f84aea434f2b014716ce9067f0af4db24a91a7c4Lennart Poettering
f84aea434f2b014716ce9067f0af4db24a91a7c4Lennart Poettering/*
f84aea434f2b014716ce9067f0af4db24a91a7c4Lennart Poettering * The below defines the base string of the Server: header. Additional
* tokens can be added via the ap_add_version_component() API call.
*
* The tokens are listed in order of their significance for identifying the
* application.
*
* "Product tokens should be short and to the point -- use of them for
* advertizing or other non-essential information is explicitly forbidden."
*
* Example: "Apache/1.1.0 MrWidget/0.1-alpha"
*/
#define AP_SERVER_BASEVENDOR "Apache Software Foundation"
#define AP_SERVER_BASEPROJECT "Apache HTTP Server"
#define AP_SERVER_BASEPRODUCT "Apache"
#define AP_SERVER_MAJORVERSION_NUMBER 2
#define AP_SERVER_MINORVERSION_NUMBER 3
#define AP_SERVER_PATCHLEVEL_NUMBER 2
#define AP_SERVER_DEVBUILD_BOOLEAN 1
#if AP_SERVER_DEVBUILD_BOOLEAN
#define AP_SERVER_ADD_STRING "-dev"
#else
#define AP_SERVER_ADD_STRING ""
#endif
/* keep old macros as well */
#define AP_SERVER_MAJORVERSION APR_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
#define AP_SERVER_MINORVERSION APR_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
#define AP_SERVER_PATCHLEVEL APR_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
AP_SERVER_ADD_STRING
#define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
#define AP_SERVER_BASEREVISION AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
#define AP_SERVER_BASEVERSION AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
#define AP_SERVER_VERSION AP_SERVER_BASEVERSION
/* macro for Win32 .rc files using numeric csv representation */
#define AP_SERVER_PATCHLEVEL_CSV AP_SERVER_MAJORVERSION_NUMBER ##, \
##AP_SERVER_MINORVERSION_NUMBER ##, \
##AP_SERVER_PATCHLEVEL_NUMBER
#endif