summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 0241adf..299e867 100755
--- a/configure
+++ b/configure
@@ -104,52 +104,54 @@ then
104fi 104fi
105 105
106# Next, emit a usage message if something failed. 106# Next, emit a usage message if something failed.
107 107
108if [ "$HELP" = "yes" ]; then 108if [ "$HELP" = "yes" ]; then
109 cat <<EOF 109 cat <<EOF
110Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...] 110Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...]
111 111
112The defaults (*) are usually acceptable. Here is a short explanation of 112The defaults (*) are usually acceptable. Here is a short explanation of
113each option: 113each option:
114 114
115 * -release ........... Compile and link Qt with debugging turned off. 115 * -release ........... Compile and link Qt with debugging turned off.
116 -debug ............. Compile and link Qt with debugging turned on. 116 -debug ............. Compile and link Qt with debugging turned on.
117 117
118 * -shared ............ Create and use a shared Qt library (libqt.so) 118 * -shared ............ Create and use a shared Qt library (libqt.so)
119 -static ............ Create and use a static Qt library (libqt.a) 119 -static ............ Create and use a static Qt library (libqt.a)
120 120
121 -qt3 ............... Configure for use with Qt 3.x 121 -qt3 ............... Configure for use with Qt 3.x
122 122
123 -platform target ... The platform you are building on ($PLATFORM) 123 -platform target ... The platform you are building on ($PLATFORM)
124EOF 124EOF
125 exit 0; 125 exit 0;
126fi 126fi
127 127
128if [ -f library/custom-$PLATFORM.h ] 128CUSTOM=`echo $PLATFORM | sed -n -e "s/.*-\(.*\)-.*/\1/p"`
129
130if [ -f library/custom-$CUSTOM.h ]
129then 131then
130 rm -f library/custom.h 132 rm -f library/custom.h
131 ln -s custom-$PLATFORM.h library/custom.h 133 ln -s custom-$CUSTOM.h library/custom.h
132fi 134fi
133 135
134mkdir -p include/qpe 136mkdir -p include/qpe
135( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) 137( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; )
136 138
137mkdir -p include/opie 139mkdir -p include/opie
138( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; ) 140( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; )
139 141
140 142
141echo Creating makefiles... 143echo Creating makefiles...
142 144
143sed -e 's/^\(VERSION.*= \).*/\1'$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT/ <library/library.pro >library/library.pro-v 145sed -e 's/^\(VERSION.*= \).*/\1'$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT/ <library/library.pro >library/library.pro-v
144mv library/library.pro-v library/library.pro 146mv library/library.pro-v library/library.pro
145 147
146if [ "$QT3" = yes ] 148if [ "$QT3" = yes ]
147then 149then
148 VCONFIG="CONFIG+=qt3" 150 VCONFIG="CONFIG+=qt3"
149else 151else
150 VCONFIG="CONFIG+=qt2" 152 VCONFIG="CONFIG+=qt2"
151fi 153fi
152 154
153if [ -f $TMAKEPATH/tmake.conf ] 155if [ -f $TMAKEPATH/tmake.conf ]
154then 156then
155 # You have tmake. We'll regenerate the file for you... 157 # You have tmake. We'll regenerate the file for you...