-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure
executable file
·70 lines (60 loc) · 1.56 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh
##############################################################################
# Configure script for Unix & MacOS targets #
##############################################################################
QMAKE_OPTIONS="debug_off staticlibs"
MACOS_TEST=`uname -s | grep "Darwin" -`
find . -name Makefile -exec rm -f {} \;
QFE_PREFIX=
for opt do
optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
case "$opt" in
--prefix=*) QFE_PREFIX="$optarg"
;;
--help|-h) echo "No help yet." && exit 1
;;
*) QMAKE_OPTIONS=`echo -n "$QMAKE_OPTIONS $opt"`
;;
esac
done
HAVE_ASPELL=
ASPELLINC=
ASPELLLIB=
if [ -f /usr/include/aspell.h ]; then
if [ -f /usr/lib/libaspell.so ]; then
HAVE_ASPELL=aspell
fi
if [ -f /usr/lib64/libaspell.so ]; then
HAVE_ASPELL=aspell
fi
if [ -f /usr/lib/libaspell.dylib ]; then
HAVE_ASPELL=aspell
fi
fi
if [ -f /usr/local/include/aspell.h ]; then
if [ -f /usr/local/lib/libaspell.so ]; then
HAVE_ASPELL=aspell
fi
if [ -f /usr/local/lib/libaspell.dylib ]; then
HAVE_ASPELL=aspell
fi
if [ -f /usr/local/lib64/libaspell.so ]; then
HAVE_ASPELL=aspell
fi
fi
if [ -f /opt/local/include/aspell.h ]; then
ASPELLINC=/opt/local/include
ASPELLLIB=-L/opt/local/lib
if [ -f /opt/local/lib/libaspell.so ]; then
HAVE_ASPELL=aspell
fi
if [ -f /opt/local/lib/libaspell.dylib ]; then
HAVE_ASPELL=aspell
fi
fi
MACOS_PATCH=
if [ "$MACOS_TEST" != "" ]; then
MACOS_PATCH="-macx"
fi
qmake $MACOS_PATCH "PREFIX=$QFE_PREFIX" "ASPELLINC=$ASPELLINC" "ASPELLLIB=$ASPELLLIB" "CONFIG+=$QMAKE_OPTIONS $HAVE_ASPELL" qfe.pro
exit 0