diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-11-25 11:39:41 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-11-25 11:39:41 +0000 |
commit | d5d70d40d82b12e8c10a60cccabc578e43fc4775 (patch) | |
tree | 393bb97ffd9ce5041de42303f1ffec41441e4165 /src/configure | |
parent | updated manpage (diff) |
moved version.h to config.h with additional info
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@5 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/configure b/src/configure index c87f3c2..d1fa13d 100755 --- a/src/configure +++ b/src/configure @@ -105,7 +105,6 @@ rm -f version.h rm -f include.mk case $TARGET in Linux) - LDFLAGS=$LDFLAGS' -ldl' ;; OpenBSD|FreeBSD|NetBSD|GNU/kFreeBSD) CFLAGS=$CFLAGS' -I/usr/local/include' @@ -175,23 +174,28 @@ fi HOSTNAME=`hostname` DATE=`date +"%d.%m.%Y %H:%M:%S %Z"` -cat >> version.h <<EOF +cat >> config.h <<EOF /* - * tcpproxy version info + * tcpproxy config header * * this file was created automatically * do not edit this file directly * use ./configure instead */ -#ifndef TCPPROXY_version_h_INCLUDED -#define TCPPROXY_version_h_INCLUDED +#ifndef TCPPROXY_config_h_INCLUDED +#define TCPPROXY_config_h_INCLUDED #define VERSION_STRING_0 "tcpproxy version $VERSION" #define VERSION_STRING_1 "built on $HOSTNAME, $DATE" -#endif +#define TARGET "$TARGET" +#define PREFIX "$PREFIX" +#define SBINDIR "$SBINDIR" +#define ETCDIR "$ETCDIR" +#define CONFFILE "$ETCDIR/tcpproxy.conf" +#endif EOF exit 0 |