configure

changeset 105
86d729874ff4
parent 79
052224670baf
child 156
62f1a55535e7
equal deleted inserted replaced
104:3efe0210e27e 105:86d729874ff4
27 # POSSIBILITY OF SUCH DAMAGE. 27 # POSSIBILITY OF SUCH DAMAGE.
28 # 28 #
29 29
30 OS=`uname -s` 30 OS=`uname -s`
31 OS_VERSION=`uname -r` 31 OS_VERSION=`uname -r`
32 PREFIX=/opt/mk12 32 PREFIX=/opt/toolkit
33 33
34 # 34 #
35 # parse arguments 35 # parse arguments
36 # 36 #
37 for ARG in $@ 37 for ARG in $@
85 if [ $OS = Linux ]; then 85 if [ $OS = Linux ]; then
86 BUILD_CONFIG=gcc 86 BUILD_CONFIG=gcc
87 echo "gcc" 87 echo "gcc"
88 fi 88 fi
89 89
90 if [ $OS = FreeBSD ]; then
91 BUILD_CONFIG=clang
92 echo "clang"
93 fi
94
90 if [ $OS = Darwin ]; then 95 if [ $OS = Darwin ]; then
91 BUILD_CONFIG=osx 96 BUILD_CONFIG=osx
92 echo "gcc" 97 echo "gcc"
93 fi 98 fi
94 99
95 echo $OS | grep -q "MINGW" 100 echo $OS | grep -q "MINGW"
96 if [ $? -eq 0 ]; then 101 if [ $? -eq 0 ]; then
97 BUILD_CONFIG=mingw 102 BUILD_CONFIG=mingw
98 echo "mingw" 103 echo "mingw"
104 fi
105
106 if [ -z "BUILD_CONFIG" ]; then
107 BUILD_CONFIG=gcc
108 echo "gcc"
99 fi 109 fi
100 110
101 111
102 #if [ $OS != Darwin ]; then 112 #if [ $OS != Darwin ]; then
103 # check_pkgconfig_lib "libxml2" "libxml-2.0" 113 # check_pkgconfig_lib "libxml2" "libxml-2.0"
123 echo "gtk3" 133 echo "gtk3"
124 else 134 else
125 pkg-config gtk+-2.0 135 pkg-config gtk+-2.0
126 RESULT=$? 136 RESULT=$?
127 if [ $RESULT -eq 0 ]; then 137 if [ $RESULT -eq 0 ]; then
128 TOOLKIT=gtk2legacy 138 TOOLKIT=gtk2
129 echo "gtk2" 139 echo "gtk2"
130 else 140 else
131 echo "not found" 141 which qmake-qt4 > /dev/null
132 exit 1 142 RESULT=$?
143 if [ $RESULT -eq 0 ]; then
144 TOOLKIT=qt4
145 echo "qt4"
146 else
147 echo "not found"
148 exit 1
149 fi
133 fi 150 fi
134 fi 151 fi
135 fi 152 fi
136 fi 153 fi
137 154

mercurial