Debian Codegraph @

3rdparty/qtsingleapplication-2.6_1-opensource/configure

raw symbols SCIP
1 #!/bin/sh
2
3 if [ "x$1" != "x" -a "x$1" != "x-library" ]; then
4 echo "Usage: $0 [-library]"
5 echo
6 echo "-library: Build the component as a dynamic library (DLL). Default is to"
7 echo " include the component source code directly in the application."
8 echo " A DLL may be preferable for technical or licensing (LGPL) reasons."
9 echo
10 exit 0
11 fi
12
13
14 # only ask to accept the license text once
15 if [ ! -f .licenseAccepted ]; then
16 # determine if opensource or commercial package
17 if [ -f LICENSE.LGPL ]; then
18 # opensource edition
19 while true; do
20 echo
21 echo "You are licensed to use this software under the terms of"
22 echo "the GNU General Public License (GPL) version 3, or"
23 echo "the GNU Lesser General Public License (LGPL) version 2.1"
24 echo "with certain additional extra rights as specified in the"
25 echo "Nokia Qt LGPL Exception version 1.1."
26 echo
27 echo "Type 'G' to view the GNU General Public License (GPL) version 3."
28 echo "Type 'L' to view the GNU Lesser General Public License (LGPL) version 2.1."
29 echo "Type 'E' to view the Nokia Qt LGPL Exception version 1.1."
30 echo "Type 'yes' to accept this license offer."
31 echo "Type 'no' to decline this license offer."
32 echo
33 echo "Do you accept the terms of this license? "
34 read answer
35 echo
36
37 if [ "x$answer" = "xno" ]; then
38 echo "You are not licensed to use this software."
39 echo
40 exit 1
41 elif [ "x$answer" = "xyes" ]; then
42 echo license accepted > .licenseAccepted
43 break
44 elif [ "x$answer" = "xe" -o "x$answer" = "xE" ]; then
45 more LGPL_EXCEPTION.txt
46 elif [ "x$answer" = "xl" -o "x$answer" = "xL" ]; then
47 more LICENSE.LGPL
48 elif [ "x$answer" = "xg" -o "x$answer" = "xG" ]; then
49 more LICENSE.GPL3
50 fi
51 done
52 else
53 while true; do
54 echo
55 echo "Please choose your region."
56 echo
57 echo "Type 1 for North or South America."
58 echo "Type 2 for anywhere outside North and South America."
59 echo
60 echo "Select: "
61 read region
62 if [ "x$region" = "x1" ]; then
63 licenseFile=LICENSE.US
64 break;
65 elif [ "x$region" = "x2" ]; then
66 licenseFile=LICENSE.NO
67 break;
68 fi
69 done
70 while true; do
71 echo
72 echo "License Agreement"
73 echo
74 echo "Type '?' to view the Qt Solutions Commercial License."
75 echo "Type 'yes' to accept this license offer."
76 echo "Type 'no' to decline this license offer."
77 echo
78 echo "Do you accept the terms of this license? "
79 read answer
80 echo
81
82 if [ "x$answer" = "xno" ]; then
83 echo "You are not licensed to use this software."
84 echo
85 exit 1
86 elif [ "x$answer" = "xyes" ]; then
87 echo license accepted > .licenseAccepted
88 cp "$licenseFile" LICENSE
89 rm LICENSE.US
90 rm LICENSE.NO
91 break
92 elif [ "x$answer" = "x?" ]; then
93 more "$licenseFile"
94 fi
95 done
96 fi
97 fi
98
99 rm -f config.pri
100 if [ "x$1" = "x-library" ]; then
101 echo "Configuring to build this component as a dynamic library."
102 echo "SOLUTIONS_LIBRARY = yes" > config.pri
103 fi
104
105 echo
106 echo "This component is now configured."
107 echo
108 echo "To build the component library (if requested) and example(s),"
109 echo "run qmake and your make command."
110 echo
111 echo "To remove or reconfigure, run make distclean."
112 echo