summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-07-04 18:58:02 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-07-04 18:58:02 (GMT)
commitc1605e5b6df0248e8dae3a578a89885f26b41c88 (patch)
tree664f7eba133cf2b4d4e8add25229777806fc9b8c /configure
parent6b195c8d27c7cba3885acf1540f33ea7f51b9d1b (diff)
downloadDoxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.zip
Doxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.tar.gz
Doxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.tar.bz2
Release-1.3.7-20040704
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 17 insertions, 8 deletions
diff --git a/configure b/configure
index 3c00bf8..49b994a 100755
--- a/configure
+++ b/configure
@@ -27,6 +27,7 @@ f_prefix=/usr/local
f_insttool=NO
f_english=NO
f_wizard=NO
+f_thread=NO
f_langs=nl,se,cz,fr,it,de,jp,je,es,fi,ru,hr,pl,pt,hu,kr,ke,ro,si,cn,no,br,dk,sk,ua,gr,tw,sr,ca,lt
while test -n "$1"; do
@@ -233,21 +234,21 @@ if test "$f_wizard" = YES; then
if test -d "/usr/lib/qt3/lib"; then
if test -d "/usr/lib/qt3/include"; then
if test -x "/usr/lib/qt3/bin/moc"; then
- QTDIR="/usr/lib/qt3";
+ QTDIR="/usr/lib/qt3"
fi
fi
fi
if test -d "/usr/lib/qt2/lib"; then
if test -d "/usr/lib/qt2/include"; then
if test -x "/usr/lib/qt2/bin/moc"; then
- QTDIR="/usr/lib/qt2";
+ QTDIR="/usr/lib/qt2"
fi
fi
fi
if test -d "/usr/lib/qt/lib"; then
if test -d "/usr/lib/qt/include"; then
if test -x "/usr/lib/qt/bin/moc"; then
- QTDIR="/usr/lib/qt";
+ QTDIR="/usr/lib/qt"
fi
fi
fi
@@ -260,19 +261,22 @@ if test "$f_wizard" = YES; then
exit 2
else
if test ! -d "$QTDIR/lib"; then
- echo "QTDIR is set, but library directory does not exist!"
+ echo "QTDIR is set to $QTDIR, but library directory $QTDIR/lib does not exist!"
exit 2
fi
if test ! -d "$QTDIR/include"; then
- echo "QTDIR is set, but include directory does not exist!"
+ echo "QTDIR is set to $QTDIR, but include directory $QTDIR/include does not exist!"
exit 2
fi
if test ! -x "$QTDIR/bin/moc"; then
- echo "QTDIR is set, but the moc tool could not be found in $QTDIR/bin!"
+ echo "QTDIR is set to $QTDIR, but the moc tool could not be found in $QTDIR/bin!"
exit 2
fi
echo " headers $QTDIR/include,"
echo " libraries $QTDIR/lib"
+ if test -n "`ls $QTDIR/lib/* | grep qt-mt`"; then
+ f_thread=YES
+ fi
fi
fi
@@ -418,6 +422,7 @@ INSTALL = $f_prefix
INSTTOOL = $f_insttool
DOXYDOCS = ..
DOCDIR = $f_docdir
+QTDIR = $QTDIR
EOF
if test "$f_dot" != NO; then
@@ -505,10 +510,14 @@ for i in $f_inprofiles ; do
EOF
if test "$f_debug" = NO; then
- cat $SRC .tmakeconfig | sed -e "s/\$extraopts/release/g" >> $DST
+ realopts="release"
else
- cat $SRC .tmakeconfig | sed -e "s/\$extraopts/debug/g" >> $DST
+ realopts="debug"
+ fi
+ if test "$f_thread" = YES; then
+ realopts="$realopts thread"
fi
+ cat $SRC .tmakeconfig | sed -e "s/\$extraopts/$realopts/g" >> $DST
echo " Created $DST from $SRC..."
done