1 | ## Conact Address |
---|
2 | ############################### |
---|
3 | SUPPORT_ADDRESS="orxonox-dev@mail.datacore.ch" |
---|
4 | |
---|
5 | ## Configure Version |
---|
6 | ############################### |
---|
7 | CONFIG_VERS="0.1alpha - orxonox is still in development - please send bug-reports, requests, ideas to $SUPPORT_ADDRESS" |
---|
8 | |
---|
9 | ## Defaults |
---|
10 | ################################ |
---|
11 | ENABLE_GLUT="yes" |
---|
12 | ENABLE_GTK="yes" |
---|
13 | VERBOSE="no" |
---|
14 | |
---|
15 | |
---|
16 | ## Where to look for stuff |
---|
17 | ################################ |
---|
18 | std_bin_dirs="/usr/bin /usr/X11R6/bin /usr/local/bin $HOME/bin" |
---|
19 | std_include_dirs="/usr/include/GL" |
---|
20 | std_lib_dirs="/usr/lib /usr/X11R6/lib /usr/local/lib $HOME/lib" |
---|
21 | |
---|
22 | ## The functions enter the room. |
---|
23 | ## In order to understand this |
---|
24 | ## file you have to understand |
---|
25 | ## scripts/configure_functions |
---|
26 | ################################ |
---|
27 | source ./scripts/configure_functions |
---|
28 | |
---|
29 | ## print instruction |
---|
30 | ################################ |
---|
31 | print_newline |
---|
32 | print_separator |
---|
33 | print_message "This scripts determines all options" |
---|
34 | print_message "needed to build Orxonox." |
---|
35 | print_message "This is no autoconf configure script" |
---|
36 | print_separator |
---|
37 | |
---|
38 | ## Check command line for options |
---|
39 | ################################# |
---|
40 | check_command_line_options $@ |
---|
41 | |
---|
42 | ## Check linux distribution |
---|
43 | ############################################################# |
---|
44 | print_topic "Checking OS" |
---|
45 | OS=`uname -a | awk '{print $1}'` |
---|
46 | if [ $OS == "Linux" ]; then |
---|
47 | print_ack |
---|
48 | print_info "Running on a $OS system" |
---|
49 | else |
---|
50 | print_nack |
---|
51 | print_error "Running on a $OS system - probably not supported" |
---|
52 | print_error "Orxonox is designed to run on Linux systems" |
---|
53 | print_error "please do not stop here an try to port the game to" |
---|
54 | print_error "your system. Send your patch to $SUPPORT_ADDRESS" |
---|
55 | print_exit |
---|
56 | exit 1 |
---|
57 | fi |
---|
58 | |
---|
59 | ## Check GLUT installation |
---|
60 | ############################################################## |
---|
61 | if [ $ENABLE_GLUT = "yes" ]; then |
---|
62 | print_topic "Verifing GLUT install" |
---|
63 | if check_for_GLUT; then |
---|
64 | print_ack |
---|
65 | print_info "GLUT found at: $GLUT_DIR" |
---|
66 | else |
---|
67 | print_nack |
---|
68 | print_error "GLUT not found!" |
---|
69 | print_exit |
---|
70 | exit 1 |
---|
71 | fi |
---|
72 | fi |
---|
73 | |
---|
74 | |
---|
75 | ## Check Direct Rendering Support |
---|
76 | ############################################################## |
---|
77 | if [ $ENABLE_GLUT = "yes" ]; then |
---|
78 | print_topic "Checking Direct Rendering Support (dri)" |
---|
79 | if check_for_glxinfo; then |
---|
80 | if check_for_dri; then |
---|
81 | print_ack |
---|
82 | print_info "DRI is working on your system" |
---|
83 | else |
---|
84 | print_nack |
---|
85 | print_warning "DRI not supported, you probably want to configure it" |
---|
86 | print_warning "or you try OpenGL emulation with Mesa" |
---|
87 | fi |
---|
88 | else |
---|
89 | print_nack |
---|
90 | print_error "no glxinfo detected - check your xfree install" |
---|
91 | fi |
---|
92 | fi |
---|
93 | |
---|
94 | |
---|
95 | ## Check GtK Installation |
---|
96 | ############################################################## |
---|
97 | if [ $ENABLE_GTK == "yes" ]; then |
---|
98 | print_topic "Checking for GtK Support" |
---|
99 | if check_for_gtk_config; then |
---|
100 | print_ack |
---|
101 | print_info "gtk-config found: $GTK_CONFIG" |
---|
102 | else |
---|
103 | print_nack |
---|
104 | print_warning "You won't be able to use our gtk config" |
---|
105 | print_warning "menu. This ain't gonna hurt..." |
---|
106 | fi |
---|
107 | fi |
---|
108 | |
---|
109 | ## Write Makefile |
---|
110 | ############################################################### |
---|
111 | print_topic "Writing out Makefile" |
---|
112 | if [ $ENABLE_GLUT == "yes" ]; then |
---|
113 | if [ $ENABLE_GLUT == "yes" ]; then |
---|
114 | cp scripts/Makefile.all Makefile > /dev/null |
---|
115 | else |
---|
116 | cp scripts/Makefile.GLUT Makefile > /dev/null |
---|
117 | fi |
---|
118 | fi |
---|
119 | if [ -f Makefile ]; then |
---|
120 | print_ack |
---|
121 | else |
---|
122 | print_nack |
---|
123 | print_error "This error should not occure, please send" |
---|
124 | print_error "a full bug-report to $SUPPORT_ADDRESS" |
---|
125 | exit 1 |
---|
126 | fi |
---|
127 | print_separator |
---|
128 | print_message "Configure finished" |
---|
129 | print_newline |
---|
130 | print_message "Now, type 'make' to build Orxonox" |
---|
131 | print_newline |
---|
132 | |
---|
133 | ### EOF |
---|