diff options
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 51 |
1 files changed, 34 insertions, 17 deletions
diff --git a/src/configure b/src/configure index f5e7050..b07e4fd 100755 --- a/src/configure +++ b/src/configure @@ -127,6 +127,17 @@ case $TARGET in CFLAGS=$CFLAGS' -I/usr/local/include' LDFLAGS=$LDFLAGS' -L/usr/local/lib' ;; + MINGW*) + CFLAGS=$CFLAGS' -DWINVER=0x501 -D_WIN32_WINNT -D_WIN32' + LDFLAGS=$LDFLAGS' -lwsock32' + TARGET=mingw + CRYPTO_LIB=openssl + if [ -z "$LUA_DIR" ]; then + echo "No Lua tree specified, use --with-lua" + exit 1 + fi + echo "WARNING: don't use install target on this platform" + ;; *) echo "platform not supported" exit 1; @@ -247,27 +258,33 @@ SBINDIR := $SBINDIR ETCDIR := $ETCDIR EOF -if [ $INSTALLMANPAGE -eq 1 ]; then - echo "MANDIR := $MANDIR" >> include.mk - echo "installing manpage" -else - echo "not installing manpage" -fi +if [ "$TARGET" != "mingw" ]; then + if [ $INSTALLMANPAGE -eq 1 ]; then + echo "MANDIR := $MANDIR" >> include.mk + echo "installing manpage" + else + echo "not installing manpage" + fi -if [ $INSTALLEXAMPLES -eq 1 ]; then - echo "EXAMPLESDIR := $EXAMPLESDIR" >> include.mk - echo "installing example files" -else - echo "not installing example files" -fi + if [ $INSTALLEXAMPLES -eq 1 ]; then + echo "EXAMPLESDIR := $EXAMPLESDIR" >> include.mk + echo "installing example files" + else + echo "not installing example files" + fi -VERSION=`cat ../version` -if which svn >/dev/null; then - SVN_REV=`svn info | grep "^Revision: " | awk '{print($2)}'` - if [ -n "$SVN_REV" ]; then - VERSION="$VERSION (svn$SVN_REV)" + VERSION=`cat ../version` + if which svn >/dev/null; then + SVN_REV=`svn info | grep "^Revision: " | awk '{print($2)}'` + if [ -n "$SVN_REV" ]; then + VERSION="$VERSION (svn$SVN_REV)" + fi fi + +else + VERSION=`cat ../version` fi + HOSTNAME=`hostname` DATE=`date +"%d.%m.%Y %H:%M:%S %Z"` |