Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/showroom/configure @ 2620

Last change on this file since 2620 was 1853, checked in by patrick, 21 years ago

orxonox/trunk: added working configure, Makefile and extended core-system

  • Property svn:executable set to *
File size: 3.4 KB
Line 
1## Conact Address
2###############################
3SUPPORT_ADDRESS="orxonox-dev@mail.datacore.ch"
4
5## Configure Version
6###############################
7CONFIG_VERS="0.1alpha - orxonox is still in development - please send bug-reports, requests, ideas to $SUPPORT_ADDRESS"
8
9## Defaults
10################################
11ENABLE_GLUT="yes"
12ENABLE_GTK="yes"
13VERBOSE="no"
14
15
16## Where to look for stuff
17################################
18std_bin_dirs="/usr/bin /usr/X11R6/bin /usr/local/bin $HOME/bin"
19std_include_dirs="/usr/include/GL"
20std_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################################
27source ./scripts/configure_functions
28
29## print instruction
30################################
31print_newline
32print_separator
33print_message "This scripts determines all options"
34print_message "needed to build Orxonox."
35print_message "This is no autoconf configure script"
36print_separator
37
38## Check command line for options
39#################################
40check_command_line_options $@
41
42## Check linux distribution
43#############################################################
44print_topic "Checking OS"
45OS=`uname -a | awk '{print $1}'`
46if [ $OS == "Linux" ]; then
47        print_ack
48        print_info "Running on a $OS system"
49else
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
57fi
58
59## Check GLUT installation
60##############################################################
61if [ $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     
72fi
73
74
75## Check Direct Rendering Support
76##############################################################
77if [ $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
92fi
93
94
95## Check GtK Installation
96##############################################################
97if [ $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
107fi
108
109## Write Makefile
110###############################################################
111print_topic "Writing out Makefile"
112if [ $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
118fi
119if [ -f Makefile ]; then
120        print_ack
121else
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
126fi
127print_separator
128print_message "Configure finished"
129print_newline
130print_message "Now, type 'make' to build Orxonox"
131print_newline
132
133### EOF
Note: See TracBrowser for help on using the repository browser.